/* ==========================================================================
   Site vitrine — feuille de style unique
   Palette : pin des Landes, papier, rouge de la Madeleine.
   Aucune dépendance, aucun build. Déposer tel quel en FTP.
   ========================================================================== */

:root {
  /* Couleurs */
  --encre:      #16241D;  /* vert pin très sombre, sert de "noir" */
  --pin:        #2E5E4E;  /* vert pin moyen */
  --papier:     #E9E6DC;  /* papier légèrement grisé */
  --papier-vif: #F5F3EC;  /* papier clair, cartes */
  --sable:      #D3C7AB;  /* sable des Landes, filets et bordures */
  --feria:      #C1272D;  /* rouge des fêtes de la Madeleine */
  --encre-doux: #5A6960;  /* texte secondaire */

  /* Typographie */
  --display: "Bricolage Grotesque", Georgia, serif;
  --texte:   "Instrument Sans", system-ui, -apple-system, sans-serif;
  --chiffre: "JetBrains Mono", ui-monospace, "Courier New", monospace;

  /* Rythme */
  --marge:   clamp(1.25rem, 5vw, 4rem);
  --section: clamp(3.5rem, 9vw, 7rem);
  --max:     72rem;
}

/* --------------------------------------------------------------- Base --- */

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

body {
  margin: 0;
  background: var(--papier);
  color: var(--encre);
  font-family: var(--texte);
  font-size: clamp(1rem, .96rem + .2vw, 1.125rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--feria);
  outline-offset: 3px;
}

.enveloppe {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--marge);
}

.saut-contenu {
  position: absolute;
  left: -9999px;
  background: var(--encre);
  color: var(--papier-vif);
  padding: .75rem 1.25rem;
  z-index: 100;
}
.saut-contenu:focus { left: 1rem; top: 1rem; }

/* -------------------------------------------------------- Typographie --- */

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.02em;
  margin: 0 0 .6em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 1.4rem + 4.4vw, 4.6rem); }
h2 { font-size: clamp(1.8rem, 1.2rem + 2.4vw, 2.9rem); }
h3 { font-size: clamp(1.15rem, 1rem + .6vw, 1.4rem); }

p { margin: 0 0 1.1em; max-width: 62ch; }

.chapeau {
  font-size: clamp(1.1rem, 1rem + .5vw, 1.35rem);
  color: var(--encre-doux);
  max-width: 48ch;
}

.etiquette {
  font-family: var(--chiffre);
  font-size: .74rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--feria);
  display: block;
  margin-bottom: 1.2rem;
}

.etiquette--clair { color: var(--sable); }

/* ------------------------------------------------------------ Boutons --- */

.bouton {
  display: inline-block;
  font-family: var(--texte);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  padding: .95rem 1.7rem;
  border: 2px solid var(--encre);
  background: var(--encre);
  color: var(--papier-vif);
  transition: transform .15s ease, background-color .15s ease;
}
.bouton:hover { background: var(--pin); border-color: var(--pin); transform: translateY(-2px); }

.bouton--creux { background: transparent; color: var(--encre); }
.bouton--creux:hover { background: var(--encre); color: var(--papier-vif); border-color: var(--encre); }

.bouton--rouge { background: var(--feria); border-color: var(--feria); }
.bouton--rouge:hover { background: #A31F24; border-color: #A31F24; }

.groupe-boutons {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  margin-top: 2rem;
}

/* ---------------------------------------------------- En-tête / pied --- */

.entete {
  border-bottom: 1px solid var(--sable);
  background: var(--papier);
  position: sticky;
  top: 0;
  z-index: 50;
}

.entete__interieur {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
  flex-wrap: wrap;
}

.marque {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -.02em;
  text-decoration: none;
}
.marque span { color: var(--feria); }

.navigation {
  display: flex;
  gap: 1.6rem;
  align-items: center;
  font-size: .95rem;
}
.navigation a { text-decoration: none; padding: .35rem 0; border-bottom: 2px solid transparent; }
.navigation a:hover { border-bottom-color: var(--feria); }
.navigation a[aria-current="page"] { border-bottom-color: var(--encre); font-weight: 600; }

.pied {
  background: var(--encre);
  color: var(--papier);
  padding-block: var(--section) 2.5rem;
  margin-top: var(--section);
}
.pied a { color: var(--papier); }
.pied h3 { color: var(--papier-vif); }

.pied__grille {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 2.5rem;
}

.pied__bas {
  border-top: 1px solid rgba(211, 199, 171, .25);
  margin-top: 3rem;
  padding-top: 1.5rem;
  font-size: .85rem;
  color: var(--sable);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.75rem;
  justify-content: space-between;
}

/* ----------------------------------------------------------- Sections --- */

.section { padding-block: var(--section); }
.section--sombre { background: var(--encre); color: var(--papier); }
.section--sombre h2 { color: var(--papier-vif); }
.section--sombre .chapeau { color: var(--sable); }
.section--pin { background: var(--pin); color: var(--papier-vif); }
.section--pin h2 { color: var(--papier-vif); }

.section__titre { max-width: 38ch; }

/* ------------------------------------------------------------- Accueil --- */

.heros { padding-block: clamp(3rem, 8vw, 6rem) var(--section); }

.heros__grille {
  display: grid;
  gap: clamp(2.5rem, 6vw, 4.5rem);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 60rem) {
  .heros__grille { grid-template-columns: 1.05fr .95fr; }
}

.heros h1 em {
  font-style: normal;
  color: var(--feria);
}

/* Faux résultat Google — le constat de départ, dans le monde du client */
.fiche {
  background: var(--papier-vif);
  border: 1px solid var(--sable);
  padding: 1.5rem;
  box-shadow: 0 18px 40px -28px rgba(22, 36, 29, .55);
}

.fiche__recherche {
  display: flex;
  align-items: center;
  gap: .6rem;
  border: 1px solid var(--sable);
  border-radius: 999px;
  padding: .6rem 1rem;
  font-size: .9rem;
  color: var(--encre-doux);
  margin-bottom: 1.4rem;
  background: var(--papier);
}

.fiche__nom {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.3rem;
  margin: 0 0 .2rem;
}

.fiche__meta {
  font-size: .9rem;
  color: var(--encre-doux);
  margin: 0 0 1.2rem;
}
.fiche__meta strong { color: var(--encre); }

.fiche__actions { display: flex; gap: .6rem; flex-wrap: wrap; }

.fiche__bouton {
  font-size: .85rem;
  font-weight: 600;
  padding: .5rem 1.1rem;
  border: 1px solid var(--sable);
  border-radius: 999px;
  color: var(--pin);
  background: var(--papier);
}

.fiche__bouton--absent {
  color: #9AA39C;
  border-style: dashed;
  position: relative;
  text-decoration: line-through;
}

.fiche__note {
  margin: 1.3rem 0 0;
  padding-top: 1.1rem;
  border-top: 1px solid var(--sable);
  font-size: .9rem;
  color: var(--feria);
  font-weight: 600;
}

/* --------------------------------------------------------------- Devis --- */
/* L'élément signature : l'offre présentée comme un devis d'artisan.       */

.devis {
  background: var(--papier-vif);
  color: var(--encre);
  border: 1px solid var(--sable);
  max-width: 44rem;
  margin-inline: auto;
  box-shadow: 0 30px 60px -40px rgba(0, 0, 0, .5);
}

.devis__entete {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 1.75rem clamp(1.25rem, 4vw, 2.5rem);
  border-bottom: 2px solid var(--encre);
}

.devis__marque {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -.02em;
  margin: 0;
}

.devis__reference {
  font-family: var(--chiffre);
  font-size: .78rem;
  color: var(--encre-doux);
  text-align: right;
  line-height: 1.8;
}

.devis__corps { padding: clamp(1.25rem, 4vw, 2.5rem); }

.devis__lignes {
  width: 100%;
  border-collapse: collapse;
  font-size: .95rem;
}

.devis__lignes th {
  font-family: var(--chiffre);
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-align: left;
  color: var(--encre-doux);
  font-weight: 500;
  padding-bottom: .7rem;
  border-bottom: 1px solid var(--sable);
}

.devis__lignes th:last-child,
.devis__lignes td:last-child { text-align: right; }

.devis__lignes td {
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--sable);
  vertical-align: top;
}

.devis__intitule { font-weight: 600; display: block; margin-bottom: .3rem; }

.devis__detail {
  font-size: .875rem;
  color: var(--encre-doux);
  display: block;
  max-width: 34ch;
}

.devis__prix {
  font-family: var(--chiffre);
  font-size: 1.05rem;
  font-weight: 500;
  white-space: nowrap;
}

.devis__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.4rem;
  margin-top: .3rem;
}

.devis__total-intitule {
  font-family: var(--chiffre);
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--encre-doux);
}

.devis__total-montant {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem);
  letter-spacing: -.03em;
  line-height: 1;
}

.devis__mention {
  font-family: var(--chiffre);
  font-size: .72rem;
  color: var(--encre-doux);
  margin: 1.5rem 0 0;
  line-height: 1.7;
}

.devis__pied {
  border-top: 1px dashed var(--sable);
  padding: 1.5rem clamp(1.25rem, 4vw, 2.5rem) 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.devis__accord {
  font-family: var(--chiffre);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--encre-doux);
}

/* ------------------------------------------------------------- Étapes --- */

.etapes {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  margin-top: 3rem;
  counter-reset: etape;
}

.etape { counter-increment: etape; }

.etape::before {
  content: counter(etape);
  font-family: var(--chiffre);
  font-size: .8rem;
  color: var(--feria);
  display: block;
  padding-bottom: .8rem;
  margin-bottom: 1.1rem;
  border-bottom: 2px solid var(--feria);
}

.etape h3 { margin-bottom: .4rem; }
.etape p { font-size: .95rem; margin: 0; color: var(--encre-doux); }
.section--sombre .etape p,
.section--pin .etape p { color: var(--sable); }
.section--sombre .etape h3,
.section--pin .etape h3 { color: var(--papier-vif); }

/* ------------------------------------------------------- Réalisations --- */

.travaux {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr));
  margin-top: 3rem;
}

.travail {
  background: var(--papier-vif);
  border: 1px solid var(--sable);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.travail:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 44px -30px rgba(22, 36, 29, .6);
}

.travail img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  object-position: top center;
  border-bottom: 1px solid var(--sable);
  background: var(--papier);
}

.travail__texte { padding: 1.1rem 1.3rem 1.4rem; }
.travail__texte h3 { margin-bottom: .2rem; font-size: 1.1rem; }
.travail__texte p { margin: 0; font-size: .9rem; color: var(--encre-doux); }

/* ------------------------------------------------------------ Arguments --- */

.arguments {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  margin-top: 3rem;
}

.argument { border-left: 2px solid var(--sable); padding-left: 1.4rem; }
.argument h3 { margin-bottom: .35rem; }
.argument p { margin: 0; font-size: .95rem; color: var(--encre-doux); }
.section--sombre .argument { border-left-color: var(--pin); }
.section--sombre .argument p { color: var(--sable); }

/* ------------------------------------------------------------- Contact --- */

.contact-grille {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 56rem) {
  .contact-grille { grid-template-columns: 1fr 1fr; }
}

.coordonnees { list-style: none; margin: 2rem 0 0; padding: 0; }

.coordonnees li {
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--sable);
}
.coordonnees li:first-child { border-top: 1px solid var(--sable); }

.coordonnees dt,
.coordonnees .cle {
  font-family: var(--chiffre);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--encre-doux);
  display: block;
  margin-bottom: .3rem;
}

.coordonnees .valeur {
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
}
.coordonnees a.valeur:hover { color: var(--feria); }

/* --------------------------------------------------- Pages juridiques --- */

.page-texte { max-width: 46rem; }
.page-texte h2 { margin-top: 2.5rem; font-size: clamp(1.35rem, 1.1rem + 1vw, 1.7rem); }
.page-texte h2:first-of-type { margin-top: 1rem; }
.page-texte ul { padding-left: 1.2rem; max-width: 62ch; }
.page-texte li { margin-bottom: .5rem; }

.encadre {
  background: var(--papier-vif);
  border-left: 3px solid var(--feria);
  padding: 1.3rem 1.5rem;
  margin: 2rem 0;
}
.encadre p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------- Rappel --- */

.rappel {
  background: var(--feria);
  color: #fff;
  padding-block: clamp(3rem, 7vw, 5rem);
  text-align: center;
}
.rappel h2 { color: #fff; }
.rappel p { margin-inline: auto; color: rgba(255, 255, 255, .9); }
.rappel .bouton {
  background: #fff;
  color: var(--feria);
  border-color: #fff;
  margin-top: 1.5rem;
}
.rappel .bouton:hover { background: var(--encre); color: #fff; border-color: var(--encre); }
