/* Socle atelier — tokens et composants (maquettes : design/v4/DS-*.dc.html) */

:root {
  --papier: #F2EEE5;
  --carte: #FBF9F4;
  --etabli: #E9E3D6;
  --photo: #E2DACB;
  --trait: #D3CBBB;
  --trait-fort: #C9C0AE;
  --champ: #8A8274;
  --encre: #1D1C19;
  --encre-texte: #3A3731;
  --encre-douce: #57524A;
  --cuivre: #9E4A22;
  --cuivre-fonce: #7A3517;
  --circuit: #2E5A4C;
  --ambre: #F5E4BD;
  --ambre-fonce: #7A4E0A;
  --ambre-filet: #C9A864;
  --erreur: #A3321F;
  --erreur-fond: #F6E0D8;
  --erreur-texte: #5C1B0F;

  --f-titre: 'Fraunces', Georgia, serif;
  --f-texte: 'IBM Plex Sans', system-ui, sans-serif;
  --f-mono: 'IBM Plex Mono', ui-monospace, monospace;

  --gouttiere: 80px;
  --rayon: 8px;
}

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

body {
  margin: 0;
  background: var(--papier);
  color: var(--encre);
  font-family: var(--f-texte);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--cuivre); }
a:hover { color: var(--cuivre-fonce); }
:focus-visible { outline: 3px solid var(--cuivre); outline-offset: 2px; }
img { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }

.wrap { max-width: 1440px; margin: 0 auto; padding-left: var(--gouttiere); padding-right: var(--gouttiere); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Typographie */
.surtitre { font-family: var(--f-mono); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--encre-douce); }
.titre-xl { font-family: var(--f-titre); font-weight: 500; font-size: 76px; line-height: 1.02; letter-spacing: -0.03em; }
.titre-l { font-family: var(--f-titre); font-weight: 500; font-size: 56px; line-height: 1.04; letter-spacing: -0.025em; }
.titre-m { font-family: var(--f-titre); font-weight: 500; font-size: 48px; line-height: 1.08; letter-spacing: -0.02em; }
.titre-s { font-family: var(--f-titre); font-weight: 500; font-size: 30px; line-height: 1.15; }
.chapo { font-size: 20px; line-height: 1.55; color: var(--encre-texte); max-width: 600px; }
.texte { color: var(--encre-texte); }
.discret { font-size: 14px; color: var(--encre-douce); }
.mono { font-family: var(--f-mono); }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border-radius: 6px; border: 1px solid transparent;
  font-family: var(--f-texte); font-size: 15px; font-weight: 500; text-decoration: none; cursor: pointer;
}
.btn--l { min-height: 56px; padding: 0 28px; font-size: 17px; }
.btn--plein { background: var(--cuivre); color: #FFFFFF; }
.btn--plein:hover { background: var(--cuivre-fonce); color: #FFFFFF; }
.btn--contour { border-color: var(--encre); color: var(--encre); background: transparent; }
.btn--contour:hover { background: var(--encre); color: var(--papier); }
.btn--encre { background: var(--encre); color: #FFFFFF; }
.btn--bloc { width: 100%; }

/* En-tête */
.entete { border-bottom: 1px solid var(--trait); }
.entete__barre { display: flex; align-items: center; justify-content: space-between; min-height: 88px; gap: 24px; }
.logo { display: flex; align-items: center; gap: 12px; color: var(--encre); text-decoration: none; }
.logo:hover { color: var(--encre); }
.logo__nom { font-family: var(--f-titre); font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.nav { display: flex; align-items: center; gap: 28px; font-size: 15px; font-weight: 500; }
.nav__lien { color: var(--encre); text-decoration: none; }
.nav__lien:hover, .nav__lien[aria-current="page"] { color: var(--cuivre); }
.nav__lien--crossover { font-family: var(--f-mono); letter-spacing: 0.08em; }
.nav .btn--contour[aria-current="page"] { background: var(--encre); color: var(--papier); }

/* Pied de page */
.pied { margin-top: 96px; background: var(--encre); color: var(--etabli); font-size: 15px; line-height: 1.7; }
.pied__grille { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding-top: 56px; padding-bottom: 56px; }
.pied__col { display: flex; flex-direction: column; }
.pied__label { color: #B5AD9E; }
.pied a { color: var(--etabli); }
.pied__nom { font-family: var(--f-titre); font-size: 22px; }

/* Sections */
.section { padding-top: 96px; padding-bottom: 96px; }
.section--etabli { background: var(--etabli); }
.section__tete { display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; margin-bottom: 40px; }
.grille { display: grid; gap: 24px; }
.grille--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grille--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grille--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grille--12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.span-4 { grid-column: span 4; } .span-5 { grid-column: span 5; } .span-6 { grid-column: span 6; }
.span-7 { grid-column: span 7; } .span-8 { grid-column: span 8; } .span-3 { grid-column: span 3; } .span-12 { grid-column: span 12; }
.col-droite { grid-column: 7 / span 6; }

.carte { background: var(--carte); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 32px; }
.carte--etabli { background: var(--etabli); border-color: transparent; }
.carte--contour { background: transparent; }
.pile { display: flex; flex-direction: column; gap: 16px; }
.pile--s { gap: 8px; } .pile--l { gap: 24px; } .pile--xl { gap: 32px; }
.ligne { display: flex; align-items: center; gap: 16px; }
.ligne--entre { justify-content: space-between; }

/* Accueil */
.hero { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: center; padding-top: 96px; padding-bottom: 96px; }
.hero__texte { grid-column: span 7; display: flex; flex-direction: column; gap: 32px; padding-right: 32px; }
.hero__visuel { grid-column: span 5; position: relative; min-height: 560px; }
.hero__photo { position: absolute; inset: 0; border-radius: 4px; background: var(--photo); display: flex; align-items: flex-end; padding: 20px; }
.hero__suivi { position: absolute; left: -48px; bottom: 56px; width: 380px; padding: 20px 22px; background: var(--carte); border: 1px solid var(--trait); border-radius: var(--rayon); box-shadow: 0 12px 32px rgba(29, 28, 25, 0.10); display: flex; flex-direction: column; gap: 14px; }
.canaux { display: flex; flex-wrap: wrap; gap: 12px 24px; font-size: 14px; color: var(--encre-douce); }
.etape { display: flex; flex-direction: column; gap: 12px; padding-top: 20px; border-top: 2px solid var(--encre); }
.etape__num { font-family: var(--f-mono); font-size: 14px; color: var(--cuivre); }
.etape h3 { font-size: 22px; font-weight: 600; line-height: 1.3; }
.chiffre { font-family: var(--f-titre); font-size: 88px; font-weight: 500; line-height: 1; letter-spacing: -0.04em; }
.bandeau-crossover { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 48px 56px; background: #0E0E0D; color: #D9D3C7; text-decoration: none; border-radius: 4px; }
.bandeau-crossover:hover { color: #FFFFFF; }
.bandeau-crossover__nom { font-family: var(--f-titre); font-size: 64px; font-weight: 600; letter-spacing: 0.02em; line-height: 1; }
.bandeau-crossover__tag { font-family: var(--f-mono); font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase; padding: 12px 18px; border: 1px solid #E0361B; color: #F0533A; }

/* Tableau de mesure */
.mesures { width: 100%; border-collapse: collapse; font-family: var(--f-mono); font-size: 15px; }
.mesures th { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--encre); font-weight: 500; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--encre-douce); }
.mesures td { padding: 12px 0; border-bottom: 1px solid var(--trait); }
.mesures tr:last-child td { border-bottom: 0; }

/* Carte tarif */
.tarif { display: flex; flex-direction: column; gap: 16px; }
.tarif h3 { font-size: 20px; font-weight: 600; }
.tarif__desc { flex-grow: 1; font-size: 15px; color: var(--encre-texte); }
.tarif__prix { display: flex; align-items: baseline; gap: 6px; }
.tarif__montant { font-family: var(--f-titre); font-size: 40px; font-weight: 500; }

/* Carte machine */
.machine { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.machine__photo { height: 280px; background: #D9D0BF; display: flex; align-items: flex-end; padding: 14px; }
.machine__photo img { width: 100%; height: 100%; object-fit: cover; }
.machine__photo--img { padding: 0; }
.machine__corps { display: flex; flex-direction: column; gap: 8px; padding: 22px 24px 24px; }
.machine__type { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--encre-douce); }
.machine h2, .machine h3 { font-size: 20px; font-weight: 600; }
.machine__prix { margin-top: 8px; font-family: var(--f-titre); font-size: 28px; font-weight: 500; }

/* Galerie Roxane */
.galerie { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
.galerie figure { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.galerie__oeuvre { min-height: 440px; background: var(--photo); border: 1px dashed #A89F8D; display: flex; align-items: center; justify-content: center; font-family: var(--f-mono); font-size: 12px; color: var(--encre-douce); }
.galerie figcaption { font-size: 13px; color: var(--encre-douce); }

/* Badge de statut */
.badge { display: inline-flex; align-items: center; font-family: var(--f-mono); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; padding: 8px 14px; border-radius: 999px; border: 1px solid transparent; white-space: nowrap; }
.badge--demande { background: transparent; border: 1px dashed var(--champ); color: var(--encre); }
.badge--recu { background: var(--etabli); border-color: var(--trait-fort); color: var(--encre); }
.badge--diagnostic { background: var(--carte); border-color: var(--encre); color: var(--encre); }
.badge--en_reparation { background: var(--cuivre); color: #FFFFFF; }
.badge--pret { background: var(--circuit); color: #FFFFFF; }
.badge--restitue { background: var(--encre); color: #FFFFFF; }

/* Frise d'avancement */
.frise { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.frise__etape { display: flex; flex-direction: column; gap: 14px; }
.frise__rail { display: flex; align-items: center; }
.frise__point { width: 32px; height: 32px; flex-shrink: 0; border-radius: 50%; border: 2px solid #BDB4A3; display: flex; align-items: center; justify-content: center; }
.frise__lien { flex-grow: 1; height: 2px; background: var(--trait); }
.frise__nom { font-size: 17px; font-weight: 500; color: var(--encre-douce); }
.frise__etape--fait .frise__point { background: var(--encre); border-color: var(--encre); }
.frise__etape--fait .frise__lien { background: var(--encre); }
.frise__etape--fait .frise__nom { font-weight: 600; color: var(--encre); }
.frise__etape--encours .frise__point { border: 3px solid var(--cuivre); background: var(--carte); }
.frise__etape--encours .frise__point::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--cuivre); }
.frise__etape--encours .frise__nom { font-weight: 600; color: var(--cuivre); }
.frise__pause { width: 28px; height: 28px; flex-shrink: 0; border-radius: 4px; background: var(--ambre); border: 1px solid var(--ambre-fonce); display: flex; align-items: center; justify-content: center; }
.frise__etape--saute .frise__point { border-style: dashed; }
.frise__etape--saute .frise__nom { text-decoration: line-through; }
.frise__etape--saute .frise__lien { background: var(--encre); }
.frise__lien--pause { height: 0; background: none; border-top: 2px dashed var(--ambre-fonce); }

/* Bloc devis conditionnel — ambre réservé à ce bloc */
.devis { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px; padding: 40px; background: var(--ambre); border: 2px dashed var(--ambre-fonce); border-radius: 12px; color: #2E2A22; }
.devis__texte { grid-column: span 7; display: flex; flex-direction: column; gap: 20px; }
.devis__montants { grid-column: span 5; align-self: start; display: flex; flex-direction: column; gap: 14px; padding: 32px; background: var(--carte); border-radius: var(--rayon); color: var(--encre); }
.devis__tag { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 4px; background: var(--encre); color: var(--ambre); font-family: var(--f-mono); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; }
.devis__titre { font-family: var(--f-titre); font-size: 40px; font-weight: 500; line-height: 1.1; letter-spacing: -0.015em; color: var(--encre); }
.devis__total { font-family: var(--f-titre); font-size: 36px; font-weight: 500; }

/* Journal / listes de définitions */
.infos { display: flex; flex-direction: column; gap: 12px; font-size: 15px; margin: 0; }
.infos div { display: flex; justify-content: space-between; gap: 16px; }
.infos dt { color: var(--encre-douce); }
.infos dd { margin: 0; text-align: right; }

/* Formulaires */
.champ { display: flex; flex-direction: column; gap: 8px; }
.champ label, .champ .champ__label { font-size: 15px; font-weight: 600; }
.champ__aide { font-size: 14px; color: var(--encre-douce); }
.champ__erreur { font-size: 14px; color: var(--erreur); }
.champ input[type="text"], .champ input[type="email"], .champ input[type="number"], .champ input[type="tel"], .champ select, .champ textarea {
  width: 100%; min-height: 52px; padding: 0 14px; border: 1px solid var(--champ); border-radius: 6px; background: #FFFFFF;
  font-family: var(--f-texte); font-size: 16px; color: var(--encre);
}
.champ textarea { padding: 14px; line-height: 1.5; min-height: 132px; resize: vertical; }
.champ--code input { min-height: 56px; font-family: var(--f-mono); font-size: 20px; letter-spacing: 0.16em; text-transform: uppercase; }
.champ--cp input { min-height: 56px; max-width: 200px; font-family: var(--f-mono); font-size: 20px; letter-spacing: 0.12em; }

.form-bloc { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.form-bloc legend { padding: 0; margin-bottom: 20px; display: flex; align-items: baseline; gap: 14px; }
.form-bloc__num { font-family: var(--f-mono); font-size: 14px; color: var(--cuivre); }
.form-bloc__titre { font-size: 26px; font-weight: 600; }

.option { display: flex; flex-direction: column; gap: 10px; padding: 22px; background: var(--carte); border: 1px solid var(--trait-fort); border-radius: var(--rayon); cursor: pointer; }
.option--ligne { flex-direction: row; align-items: center; gap: 16px; padding: 18px 22px; }
.option input { width: 20px; height: 20px; margin: 0; flex-shrink: 0; accent-color: var(--encre); }
.option:has(input:checked) { border-color: var(--encre); box-shadow: inset 0 0 0 1px var(--encre); background: #FFFFFF; }
.option__titre { font-size: 18px; font-weight: 600; }
.option__desc { font-size: 14px; line-height: 1.5; color: var(--encre-texte); }

.plafond { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px; }
.plafond__saisie { grid-column: span 5; display: flex; flex-direction: column; gap: 12px; }
.plafond__explications { grid-column: span 7; display: flex; flex-direction: column; gap: 18px; font-size: 15px; color: var(--encre-texte); }
.plafond__champ { display: flex; align-items: center; min-height: 72px; border: 2px solid var(--encre); border-radius: var(--rayon); background: #FFFFFF; overflow: hidden; }
.plafond__champ input { flex-grow: 1; min-width: 0; height: 68px; padding: 0 18px; border: 0; background: transparent; font-family: var(--f-titre); font-size: 36px; font-weight: 500; color: var(--encre); }
.plafond__champ input:focus-visible { outline: none; }
.plafond__champ:focus-within { outline: 3px solid var(--cuivre); outline-offset: 2px; }
.plafond__devise { padding: 0 20px; font-family: var(--f-titre); font-size: 30px; color: var(--encre-douce); }
.regle { display: flex; gap: 14px; }
.regle__icone { flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; color: #FFFFFF; display: flex; align-items: center; justify-content: center; font-family: var(--f-mono); font-size: 13px; }
.regle strong { color: var(--encre); }

.cle-suivi { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; align-items: center; padding: 24px 28px; background: var(--etabli); border-radius: 10px; }
.cle-suivi .champ--cp input { border: 2px solid var(--encre); }

.alerte { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; background: var(--erreur-fond); border: 1px solid var(--erreur); border-radius: 6px; color: var(--erreur-texte); }
.alerte__titre { font-size: 16px; font-weight: 600; }

.pause { display: flex; flex-direction: column; gap: 24px; }
.pause__icone { width: 64px; height: 64px; border-radius: 50%; background: var(--etabli); display: flex; align-items: center; justify-content: center; }

.code-suivi { font-family: var(--f-mono); font-size: 40px; letter-spacing: 0.16em; }

@media (max-width: 1100px) {
  :root { --gouttiere: 32px; }
  .nav { gap: 16px; flex-wrap: wrap; justify-content: flex-end; }
  .titre-xl { font-size: 56px; }
  .hero__suivi { left: 16px; }
}

@media (max-width: 760px) {
  :root { --gouttiere: 16px; }
  .entete__barre { flex-direction: column; align-items: flex-start; padding-top: 16px; padding-bottom: 16px; }
  .nav { justify-content: flex-start; }
  .titre-xl { font-size: 44px; } .titre-l { font-size: 40px; } .titre-m { font-size: 34px; } .chiffre { font-size: 64px; }
  .section { padding-top: 56px; padding-bottom: 56px; }
  .section__tete { flex-direction: column; align-items: flex-start; }
  .hero, .grille--2, .grille--3, .grille--4, .grille--12, .galerie, .plafond, .devis, .pied__grille, .cle-suivi { grid-template-columns: minmax(0, 1fr); }
  .hero > *, .grille--12 > *, .galerie > *, .plafond > *, .devis > * { grid-column: auto; }
  .col-droite { margin-top: 40px; padding: 24px !important; }
  .hero__texte { padding-right: 0; }
  .hero__visuel { min-height: 420px; margin-top: 40px; }
  .hero__suivi { left: 16px; right: 16px; width: auto; }
  .ligne { flex-wrap: wrap; }
  .frise { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .frise__lien { display: none; }
  .bandeau-crossover { flex-direction: column; align-items: flex-start; padding: 32px; }
  .bandeau-crossover__nom { font-size: 44px; }
  .carte, .devis, .devis__montants { padding: 24px; }
}

.frise__point svg { display: none; }
.frise__etape--fait .frise__point svg { display: block; }
.photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.photos figure { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; }
.photos figcaption { font-size: 13px; color: var(--encre-douce); }

.journal { list-style: none; margin: 0; padding: 0; }
.journal__entree { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 24px; padding: 16px 0; border-top: 1px solid var(--trait); }
.journal__date { font-family: var(--f-mono); font-size: 13px; color: var(--encre-douce); padding-top: 2px; }
@media (max-width: 760px) { .journal__entree { grid-template-columns: minmax(0, 1fr); gap: 4px; } }

.pieces { width: 100%; border-collapse: collapse; font-size: 15px; }
.pieces th { text-align: left; padding: 16px 12px 12px 0; border-bottom: 1px solid var(--encre); font-family: var(--f-mono); font-weight: 500; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--encre-douce); }
.pieces td { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--trait); vertical-align: middle; }
.pieces tr:last-child td { border-bottom: 0; }
@media (max-width: 760px) {
  .pieces thead { display: none; }
  .pieces tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 12px 0; border-bottom: 1px solid var(--trait); }
  .pieces td { border: 0; padding: 0; }
  .pieces td:nth-child(2), .pieces td:last-child { grid-column: 1 / -1; }
  .pieces td:last-child { text-align: left !important; margin-top: 8px; }
}

.creneaux { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.slot { display: flex; align-items: center; justify-content: center; min-height: 44px; border: 1px solid var(--trait-fort); border-radius: 6px; background: var(--carte); font-family: var(--f-mono); font-size: 14px; cursor: pointer; }
.slot:has(input:checked) { background: var(--encre); color: #FFFFFF; border-color: var(--encre); }
.slot:has(input:focus-visible) { outline: 3px solid var(--cuivre); outline-offset: 2px; }
@media (max-width: 760px) { .creneaux { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Champ piège anti-robots du formulaire de contact : hors écran, pas masqué par display. */
.piege { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.champ select { padding: 0 14px; }
