/* La Maison Garante — feuille de style commune (direction « Le Relevé »)
   Jetons : voir DESIGN.md. Aucune valeur brute hors de :root. */
:root {
  --ivoire: #F7F6F1;
  --creme: #EFEEE5;
  --blanc: #FFFFFF;
  --brun-profond: #3B3527;
  --brun: #675D44;
  --brun-clair: #8C7A55;
  --dore: #C9A96E;
  --filet: #E2DED2;
  --voile: rgba(59, 53, 39, 0.78);
  --erreur: #9A3B2E;

  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'DM Sans', Helvetica, Arial, sans-serif;
  --t-display: clamp(40px, 5.2vw, 68px);
  --t-h1: clamp(36px, 4.2vw, 54px);
  --t-h2: clamp(32px, 3.6vw, 46px);
  --t-h3: clamp(25px, 2.4vw, 32px);
  --t-chiffre: clamp(30px, 3.4vw, 44px);
  --t-lead: clamp(15px, 1.3vw, 17px);
  --t-corps: 16px;
  --t-petit: 13px;
  --t-surtitre: 12px;
  --t-bouton: 13px;

  --marge: clamp(20px, 4.5vw, 64px);
  --largeur-max: 1440px;
  --largeur-texte: 600px;
  --section: clamp(56px, 7vw, 96px);
  --decalage-cadre: 18px;
  --duree: 400ms;
  --duree-survol: 200ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ivoire);
  color: var(--brun-profond);
  font-family: var(--sans);
  font-size: var(--t-corps);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brun); text-decoration-color: var(--dore); text-underline-offset: 4px; transition: color var(--duree-survol); }
a:hover { color: var(--brun-profond); }
:focus-visible { outline: 2px solid var(--brun-profond); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 300; margin: 0; color: var(--brun-profond); }
h1 em, h2 em, h3 em { font-style: italic; color: var(--brun); }
p { margin: 0; }
.wrap { max-width: var(--largeur-max); margin: 0 auto; padding-inline: var(--marge); }
.surtitre { font-size: var(--t-surtitre); letter-spacing: .22em; text-transform: uppercase; color: var(--brun); margin: 0; }
.lead { font-size: var(--t-lead); font-weight: 300; line-height: 1.7; max-width: var(--largeur-texte); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--brun-profond); color: var(--ivoire); padding: 12px 18px; z-index: 200; }
.skip:focus { top: 12px; color: var(--ivoire); }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 18px 30px; font-family: var(--sans); font-size: var(--t-bouton); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; text-align: center; border: 1px solid transparent; cursor: pointer; transition: background var(--duree-survol), color var(--duree-survol); }
.btn-principal { background: var(--brun-profond); color: var(--ivoire); }
.btn-principal:hover { background: var(--brun); color: var(--ivoire); }
.btn-secondaire { border-color: var(--brun-clair); color: var(--brun-profond); background: transparent; }
.btn-secondaire:hover { background: var(--creme); color: var(--brun-profond); }
.lien-discret { font-size: var(--t-bouton); letter-spacing: .14em; text-transform: uppercase; text-decoration: underline; text-decoration-color: var(--dore); text-underline-offset: 8px; padding: 10px 0; display: inline-block; }

/* En-tête */
.entete { background: var(--ivoire); position: relative; z-index: 50; }
.entete .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 20px; border-bottom: 1px solid var(--filet); }
.logo img { height: 42px; width: auto; }
.nav { display: flex; gap: 30px; }
.nav a { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; color: var(--brun-profond); padding: 10px 0; }
.nav a:hover, .nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--dore); text-underline-offset: 6px; }
.entete-actions { display: flex; align-items: center; gap: 22px; }
.tel { text-decoration: none; font-size: 14px; color: var(--brun-profond); white-space: nowrap; }
.entete .btn { padding: 14px 20px; font-size: 12px; }
.icone { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; border: 1px solid var(--brun-clair); border-radius: 50%; background: transparent; color: var(--brun-profond); cursor: pointer; }
.icone svg { width: 18px; height: 18px; }
.menu-mobile { display: none; }

/* Hero */
.hero .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 72px; align-items: center; padding-block: 64px 56px; }
.hero-texte { display: flex; flex-direction: column; gap: 28px; }
.hero h1 { font-size: var(--t-display); line-height: 1.08; }
.boutons { display: flex; flex-wrap: wrap; gap: 14px; }

/* Carte d'estimation */
.estim { background: var(--blanc); border: 1px solid var(--filet); padding: 32px; display: flex; flex-direction: column; gap: 20px; }
.estim h2 { font-size: var(--t-h3); font-weight: 400; line-height: 1.15; }
.estim fieldset { border: 0; margin: 0; padding: 0; }
.estim legend, .estim label { font-size: var(--t-petit); padding: 0 0 10px; display: block; }
.segment { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.segment button { min-height: 46px; font-family: var(--sans); font-size: 14px; background: var(--blanc); color: var(--brun-profond); border: 1px solid var(--brun-clair); cursor: pointer; transition: background var(--duree-survol), color var(--duree-survol); }
.segment button[aria-pressed="true"] { background: var(--brun-profond); color: var(--ivoire); border-color: var(--brun-profond); }
.estim select { width: 100%; height: 48px; border: 1px solid var(--brun-clair); background: var(--blanc); color: var(--brun-profond); font-family: var(--sans); font-size: 15px; padding: 0 12px; border-radius: 0; }
.estim .btn { width: 100%; }
.mention { font-size: 12px; line-height: 1.55; color: var(--brun); }

/* Bandeau photo */
.bandeau { position: relative; height: 380px; overflow: hidden; }
.bandeau img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 45%; }
.chiffres { position: absolute; left: 0; right: 0; bottom: 0; background: var(--voile); padding: 26px 36px; display: flex; flex-wrap: wrap; gap: 20px 56px; margin: 0; }
.chiffres div { display: flex; flex-direction: column; gap: 6px; min-width: 140px; }
.chiffres dt { order: 2; font-size: 13px; color: var(--ivoire); }
.chiffres dd { order: 1; margin: 0; font-family: var(--serif); font-weight: 300; font-size: var(--t-chiffre); line-height: 1; color: var(--ivoire); }

/* Sections */
.section { padding-block: var(--section); }
.section-creme { background: var(--creme); }
.entete-section { display: flex; flex-direction: column; gap: 18px; margin-bottom: 48px; max-width: 760px; }
.entete-section h2 { font-size: var(--t-h2); line-height: 1.1; }

/* Services : liste éditoriale */
.services { border-top: 1px solid var(--filet); }
.service { display: grid; grid-template-columns: 64px minmax(0, 3fr) minmax(0, 5fr) minmax(0, 3fr) auto; gap: 32px; align-items: baseline; padding: 32px 0; border-bottom: 1px solid var(--filet); }
.service .num { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--brun); }
.service h3 { font-size: 30px; font-weight: 400; }
.service p { font-weight: 300; }
.service .prix { font-size: 14px; color: var(--brun); }
.service .lien-discret { white-space: nowrap; }
.renvoi { margin-top: 24px; font-size: 14px; }

/* Arguments */
.arguments { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 72px; border-top: 1px solid var(--filet); }
.argument { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 16px; padding: 32px 0; border-bottom: 1px solid var(--filet); }
.argument .num { font-family: var(--serif); font-style: italic; font-size: 24px; color: var(--brun); line-height: 1.2; }
.argument h3 { font-size: 26px; font-weight: 400; margin-bottom: 8px; }
.argument p { font-weight: 300; }

/* Deux colonnes 5/7 */
.duo { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 80px; align-items: center; }
.duo-texte { display: flex; flex-direction: column; gap: 22px; }
.duo-texte h2 { font-size: var(--t-h2); line-height: 1.1; }
.carte { border-top: 1px solid var(--filet); border-bottom: 1px solid var(--filet); padding: 24px 0; }
.carte svg { width: 100%; height: auto; display: block; }

/* Portrait */
.portrait { margin: 0; display: flex; flex-direction: column; gap: 16px; max-width: 440px; width: 100%; justify-self: center; }
.cadre { position: relative; padding: 0 0 var(--decalage-cadre) var(--decalage-cadre); }
.cadre::before { content: ""; position: absolute; left: 0; bottom: 0; width: calc(100% - var(--decalage-cadre)); height: calc(100% - var(--decalage-cadre)); border: 1px solid var(--dore); }
.cadre-fond { position: relative; background: var(--creme); aspect-ratio: 4 / 5; overflow: hidden; display: flex; align-items: flex-end; justify-content: center; }
.cadre-fond img { width: 100%; }
.portrait figcaption { font-family: var(--serif); font-size: 20px; padding-left: var(--decalage-cadre); }
.portrait figcaption em { color: var(--brun); }
.parcours { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--filet); max-width: var(--largeur-texte); }
.parcours li { padding: 14px 0; border-bottom: 1px solid var(--filet); font-weight: 300; }

/* Avis */
.avis { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px; }
.avis-col { display: flex; flex-direction: column; gap: 24px; }
.avis blockquote { margin: 0; background: var(--blanc); border: 1px solid var(--filet); padding: 32px; display: flex; flex-direction: column; justify-content: space-between; gap: 20px; height: 100%; }
.avis blockquote p { font-weight: 300; }
.avis .avis-une p { font-family: var(--serif); font-size: clamp(22px, 2.2vw, 28px); line-height: 1.35; font-weight: 400; }
.avis cite { font-style: normal; font-size: var(--t-petit); color: var(--brun); }
.avis-note { margin-top: 28px; }

/* Encart militaires */
.encart { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; align-items: center; }
.encart h2 { font-size: var(--t-h3); font-weight: 400; line-height: 1.2; }
.encart-texte { display: flex; flex-direction: column; gap: 22px; }

/* FAQ */
.faq { border-top: 1px solid var(--filet); max-width: 900px; }
.faq details { border-bottom: 1px solid var(--filet); }
.faq summary { list-style: none; cursor: pointer; padding: 24px 40px 24px 0; font-family: var(--serif); font-size: 24px; line-height: 1.3; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 12px; height: 12px; border-right: 1px solid var(--brun); border-bottom: 1px solid var(--brun); transform: translateY(-75%) rotate(45deg); transition: transform var(--duree-survol); }
.faq details[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.faq details p { padding: 0 0 24px; font-weight: 300; max-width: 720px; }

/* Appel final */
.final { text-align: center; }
.final .wrap { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.final h2 { font-size: var(--t-h2); }
.final .boutons { justify-content: center; }

/* Pied de page */
.pied { background: var(--creme); color: var(--brun-profond); font-size: 14px; border-top: 1px solid var(--filet); }
.pied a { color: var(--brun-profond); }
.pied-grille { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 3fr) minmax(0, 3fr); gap: 48px; padding-block: 64px 40px; }
.pied-grille ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.pied h2 { font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--brun); margin-bottom: 14px; }
.pied-logo img { height: 40px; width: auto; margin-bottom: 16px; }
.pied-legal { border-top: 1px solid var(--filet); padding-block: 28px; font-size: 13px; line-height: 1.7; }
.pied-liens { display: flex; flex-wrap: wrap; gap: 8px 22px; border-top: 1px solid var(--filet); padding-block: 22px 32px; font-size: 13px; }
.pied-liens button { background: none; border: 0; padding: 0; font: inherit; color: var(--brun-profond); text-decoration: underline; text-decoration-color: var(--dore); text-underline-offset: 4px; cursor: pointer; }

/* Barre d'action mobile */
.barre-mobile { display: none; }

/* Pages de contenu (honoraires, légal) */
.page-entete .wrap { padding-block: 64px 32px; display: flex; flex-direction: column; gap: 18px; }
.page-entete h1 { font-size: var(--t-h1); line-height: 1.1; }
.contenu { padding-bottom: var(--section); }
.contenu .wrap > * { max-width: 900px; }
.contenu h2 { font-size: 30px; font-weight: 400; margin: 48px 0 16px; }
.contenu h3 { font-size: 24px; font-weight: 400; margin: 36px 0 12px; }
.contenu p { margin: 0 0 14px; font-weight: 300; }
.contenu ul { font-weight: 300; padding-left: 20px; }
.table-box { overflow-x: auto; margin: 0 0 16px; }
.contenu table { width: 100%; border-collapse: collapse; font-size: 15px; background: var(--blanc); }
.contenu th, .contenu td { text-align: left; vertical-align: top; padding: 14px 16px; border-bottom: 1px solid var(--filet); font-weight: 300; }
.contenu th { font-weight: 500; font-size: 13px; letter-spacing: .06em; color: var(--brun); background: var(--creme); }
.contenu td:first-child { font-weight: 400; width: 38%; }
.encadre { background: var(--creme); padding: 24px 28px; margin: 32px 0; font-size: 14px; }

/* Bandeau cookies */
.consent { display: none; position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 300; max-width: 560px; margin: 0 auto; background: var(--ivoire); border: 1px solid var(--brun-clair); padding: 22px; }
.consent.ouvert { display: block; }
.consent p.titre { font-family: var(--serif); font-size: 22px; margin-bottom: 8px; }
.consent p { font-size: 13px; line-height: 1.6; margin-bottom: 16px; }
.consent .boutons button { flex: 1; min-width: 140px; }

/* Apparitions */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity var(--duree) ease-out, transform var(--duree) ease-out; }
.reveal.vu { opacity: 1; transform: none; }


/* Rythme des fonds : blanc, ivoire, crème, brun, brun profond */
.section-blanc { background: var(--blanc); }
.section-sombre, .section-brun { color: var(--ivoire); }
.section-sombre { background: var(--brun-profond); }
.section-brun { background: var(--brun); }
.section-sombre h2, .section-sombre h3, .section-brun h2, .section-brun h3 { color: var(--ivoire); }
.section-sombre h2 em, .section-sombre h3 em { color: var(--dore); }
.section-brun h2 em, .section-brun h3 em { color: var(--creme); }
.section-sombre .surtitre, .section-sombre .num { color: var(--dore); }
.section-brun .surtitre { color: var(--creme); }
.section-sombre a, .section-brun a { color: var(--ivoire); }
.section-sombre a:hover, .section-brun a:hover { color: var(--dore); }
.section-sombre .arguments, .section-sombre .argument { border-color: rgba(247, 246, 241, 0.2); }
.section-sombre .btn-principal, .section-brun .btn-principal { background: var(--ivoire); color: var(--brun-profond); }
.section-sombre .btn-principal:hover, .section-brun .btn-principal:hover { background: var(--dore); color: var(--brun-profond); }
.section-sombre .btn-secondaire, .section-brun .btn-secondaire { border-color: var(--ivoire); color: var(--ivoire); }
.section-sombre .btn-secondaire:hover, .section-brun .btn-secondaire:hover { background: rgba(247, 246, 241, 0.1); color: var(--ivoire); }
.section-blanc .estim { background: var(--ivoire); }
.section-creme .avis blockquote { background: var(--blanc); }


/* Pages de service */
.page-hero .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 72px; align-items: center; padding-block: 64px 72px; }
.page-hero h1 { font-size: var(--t-h1); line-height: 1.08; }
.prix-carte { background: var(--blanc); border: 1px solid var(--filet); padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.prix-carte .montant { font-family: var(--serif); font-size: clamp(36px, 4vw, 52px); line-height: 1; color: var(--brun-profond); }
.prix-carte .montant small { font-family: var(--sans); font-size: 14px; color: var(--brun); }
.prix-carte ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--filet); }
.prix-carte li { padding: 10px 0; border-bottom: 1px solid var(--filet); font-size: 15px; font-weight: 300; }
.prix-carte .btn { width: 100%; }
.etapes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0; border-top: 1px solid rgba(247, 246, 241, 0.2); }
.etapes li { padding: 28px 24px 28px 0; border-bottom: 1px solid rgba(247, 246, 241, 0.2); display: flex; flex-direction: column; gap: 10px; }
.etapes .num { font-family: var(--serif); font-style: italic; font-size: 34px; line-height: 1; color: var(--dore); }
.etapes h3 { font-size: 24px; font-weight: 400; }
.etapes p { font-weight: 300; font-size: 15px; }
.comparatif { width: 100%; border-collapse: collapse; background: var(--blanc); font-size: 15px; }
.comparatif th, .comparatif td { padding: 16px 18px; border-bottom: 1px solid var(--filet); text-align: left; vertical-align: top; font-weight: 300; }
.comparatif thead th { font-family: var(--serif); font-size: 24px; font-weight: 400; color: var(--brun-profond); background: var(--ivoire); }
.comparatif thead th span { display: block; font-family: var(--sans); font-size: 13px; color: var(--brun); margin-top: 4px; }
.comparatif tbody th { font-weight: 400; width: 40%; }
.comparatif .oui { color: var(--brun-profond); font-weight: 400; }
.comparatif .vous { color: var(--brun); }
.liste-filet { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--filet); }
.liste-filet li { padding: 16px 0; border-bottom: 1px solid var(--filet); font-weight: 300; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 5fr); gap: 24px; }
.liste-filet li strong { font-weight: 400; font-family: var(--serif); font-size: 22px; line-height: 1.2; }
@media (max-width: 1000px) {
  .page-hero .wrap { grid-template-columns: 1fr; gap: 40px; padding-block: 40px 56px; }
  .liste-filet li { grid-template-columns: 1fr; gap: 4px; }
}


/* Formulaire */
.formulaire .champ { display: flex; flex-direction: column; gap: 6px; }
.formulaire label { font-size: var(--t-petit); }
.formulaire input:not([type="checkbox"]), .formulaire select, .formulaire textarea { width: 100%; min-height: 48px; border: 1px solid var(--brun-clair); background: var(--blanc); color: var(--brun-profond); font-family: var(--sans); font-size: 15px; padding: 12px; border-radius: 0; }
.formulaire textarea { resize: vertical; }
.formulaire .case { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; font-size: 13px; line-height: 1.5; }
.formulaire .case input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--brun-profond); }
.page-hero .portrait { justify-self: center; }

/* Responsive */
@media (max-width: 1100px) {
  .nav { gap: 20px; }
  .tel { display: none; }
  .service { grid-template-columns: 48px minmax(0, 1fr); gap: 8px 16px; }
  .service > :nth-child(n+3) { grid-column: 2; }
}
@media (max-width: 1000px) {
  .nav, .entete-actions .btn { display: none; }
  .icone { display: inline-flex; }
  .entete-actions { gap: 8px; }
  .hero .wrap, .duo, .encart, .avis, .pied-grille { grid-template-columns: 1fr; gap: 40px; }
  .arguments { grid-template-columns: 1fr; }
  .menu-mobile.ouvert { display: flex; position: fixed; inset: 0; z-index: 100; background: var(--ivoire); flex-direction: column; padding: 24px var(--marge); gap: 8px; overflow-y: auto; }
  .menu-mobile .fermer { align-self: flex-end; }
  .menu-mobile a { font-family: var(--serif); font-size: 28px; text-decoration: none; color: var(--brun-profond); padding: 8px 0; border-bottom: 1px solid var(--filet); }
}
@media (max-width: 600px) {
  .logo img { height: 32px; }
  .hero .wrap { padding-block: 32px 40px; gap: 32px; }
  .estim { padding: 20px; }
  .bandeau { height: 300px; }
  .chiffres { padding: 16px 20px; gap: 14px 24px; }
  .chiffres div { min-width: 0; flex: 1 1 40%; }
  .chiffres dt { font-size: 11px; }
  .avis blockquote { padding: 22px; }
  .faq summary { font-size: 21px; }
  .barre-mobile { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; background: var(--ivoire); border-top: 1px solid var(--filet); padding-bottom: env(safe-area-inset-bottom); }
  .barre-mobile a { text-align: center; text-decoration: none; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; padding: 19px 8px; color: var(--brun-profond); }
  .barre-mobile a:first-child { background: var(--brun-profond); color: var(--ivoire); }
  body { padding-bottom: 64px; }
  .consent { bottom: 76px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
