/* Kech & Frontière — feuille de style du site
   Palette de la charte : terracotta et brun minéral en couleurs principales,
   brun profond du logo, vert olive, ivoire, anthracite. */

:root {
  --terre: #8B4B32;
  --brun: #A34A2F;
  --profond: #542E26;
  --ombre: #2E1813;
  --olive: #3D4F3A;
  --olive-clair: #B9C4A3;
  --olive-nuit: #232C21;
  --ivoire: #F5EFE6;
  --sable: #E9DFD0;
  --encre: #1E1E1E;

  --titre: "Fraunces", "Canela", Georgia, serif;
  --texte: "Sora", "Segoe UI", system-ui, sans-serif;
  --marque: "Gloock", "Fraunces", Georgia, serif;

  --marge: clamp(20px, 5vw, 84px);
  --rayon: 10px;
  --entete: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ivoire);
  color: var(--encre);
  font-family: var(--texte);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, video, canvas { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, dl, dd, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3 {
  font-family: var(--titre);
  font-weight: 340;
  font-variation-settings: "SOFT" 60, "opsz" 144;
  line-height: 1.02;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.7rem, 7.2vw, 6.6rem); }
h2 { font-size: clamp(2.1rem, 4.6vw, 4.1rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.75rem); line-height: 1.15; }
p { max-width: 62ch; text-wrap: pretty; }
.chapo { font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.55; }

:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 4px; }

.passer {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ivoire); color: var(--encre); padding: 10px 16px; border-radius: var(--rayon);
}
.passer:focus { top: 12px; }

/* ---------- Boutons et liens ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  border: 1px solid transparent; border-radius: var(--rayon);
  background: var(--ivoire); color: var(--profond);
  font-weight: 500; font-size: .98rem; text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { background: #fff; }
.btn-terre { background: var(--terre); color: var(--ivoire); }
.btn-terre:hover { background: var(--brun); }
.btn-contour { background: transparent; color: inherit; border-color: currentColor; }
.btn-contour:hover { background: rgba(245, 239, 230, .14); }
.sur-clair .btn-contour:hover { background: rgba(84, 46, 38, .08); }
.lien { text-underline-offset: 5px; text-decoration-thickness: 1px; }
.lien:hover { text-decoration-thickness: 2px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- En-tête : logo au centre, liens de part et d'autre, filet dessous ---------- */
.entete {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--entete);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 var(--marge);
  color: var(--ivoire);
  border: 1px solid transparent; border-radius: 0;
  transition: inset .45s cubic-bezier(.2, .7, .1, 1), padding .45s cubic-bezier(.2, .7, .1, 1), border-radius .45s, background .35s, border-color .35s, box-shadow .35s;
}
.entete::after { content: ""; position: absolute; left: var(--marge); right: var(--marge); bottom: 0; height: 1px; background: rgba(245, 239, 230, .38); transition: opacity .3s; }
/* Une fois la page descendue : barre flottante en verre, à 10 px du haut, coins arrondis */
.entete.est-pleine {
  inset: 10px clamp(10px, 2vw, 28px) auto;
  padding: 0 clamp(16px, 2.4vw, 34px);
  border-radius: 18px;
  border-color: rgba(245, 239, 230, .28);
  background: rgba(46, 24, 19, .58);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  box-shadow: 0 10px 34px rgba(20, 8, 5, .22), inset 0 1px rgba(255, 255, 255, .12);
}
.entete.est-pleine::after { opacity: 0; }
.entete-logo { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.entete-logo img { height: 44px; width: auto; }
.menu { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.menu-cote { display: flex; align-items: center; gap: clamp(14px, 2vw, 38px); }
.menu a {
  text-decoration: none; text-transform: uppercase; letter-spacing: .13em; white-space: nowrap;
  font-size: .7rem; font-weight: 400; padding: 10px 0; border-bottom: 1px solid transparent; transition: border-color .2s, opacity .2s;
}
.menu a:hover, .menu a[aria-current="page"] { border-bottom-color: currentColor; }
.menu-cta { border: 1px solid rgba(245, 239, 230, .6) !important; padding: 10px 16px !important; border-radius: 999px; }
.menu-cta:hover, .menu-cta[aria-current="page"] { background: var(--ivoire); color: var(--profond); }
.menu-bouton {
  display: none; min-height: 40px; padding: 0 14px; border-radius: 4px; margin-left: auto;
  border: 1px solid rgba(245, 239, 230, .6); background: transparent; color: inherit; cursor: pointer;
  text-transform: uppercase; letter-spacing: .16em; font-size: .72rem;
}

@media (max-width: 1180px) {
  .entete-logo { position: static; transform: none; }
  .entete-logo img { height: 40px; }
  .menu-bouton { display: inline-flex; align-items: center; }
  .menu {
    position: fixed; inset: var(--entete) 0 0 0; width: auto;
    flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 4px;
    padding: 28px var(--marge) 40px;
    background: var(--profond);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .25s, transform .25s, visibility .25s;
  }
  .menu.est-ouvert { transform: none; opacity: 1; visibility: visible; }
  .menu-cote { display: contents; }
  .menu a:not(.menu-cta) { font-family: var(--titre); font-size: 2rem; font-weight: 340; padding: 6px 0; text-transform: none; letter-spacing: -.01em; }
  .menu-cta { margin-top: 18px; padding: 14px 20px !important; }
  /* menu mobile ouvert : la barre redevient pleine largeur, sans flou (le flou casserait le panneau fixe) */
  .entete.menu-ouvert {
    inset: 0 0 auto 0; padding: 0 var(--marge); border-radius: 0; border-color: transparent; box-shadow: none;
    background: var(--profond); -webkit-backdrop-filter: none; backdrop-filter: none;
  }
}

/* ---------- Accueil : les quatre volets ---------- */
.hero {
  position: relative; height: 100svh; min-height: 620px;
  background: var(--ombre); color: var(--ivoire); overflow: hidden;
}
.volets { display: flex; gap: 2px; height: 100%; }
.volet {
  position: relative; flex: 1 1 0; min-width: 0; padding: 0; border: 0;
  background: var(--ombre); overflow: hidden; cursor: pointer;
  transition: flex-grow .8s cubic-bezier(.2, .7, .1, 1);
}
.volet.est-actif { flex-grow: 2.3; }
.volet img, .volet video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.volet video { opacity: 0; transition: opacity .7s; }
.volet.est-actif video.est-pret { opacity: 1; }
.volet::after {
  content: ""; position: absolute; inset: 0;
  background: var(--ombre); opacity: .5; transition: opacity .6s;
}
.volet.est-actif::after { opacity: 0; }
.volet-nom {
  position: absolute; z-index: 2; left: 18px; top: calc(var(--entete) + 14px);
  font-size: .85rem; font-weight: 400; color: var(--ivoire); text-align: left;
  opacity: 0; transform: translateY(6px); transition: opacity .5s, transform .5s;
  text-shadow: 0 1px 14px rgba(0, 0, 0, .55);
}
.volet.est-actif .volet-nom { opacity: 1; transform: none; }
.hero-voile {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to top, rgba(46, 24, 19, .94) 0%, rgba(46, 24, 19, .62) 26%, rgba(46, 24, 19, 0) 58%),
    linear-gradient(to bottom, rgba(46, 24, 19, .6) 0%, rgba(46, 24, 19, 0) 20%);
}
.hero-texte {
  position: absolute; left: var(--marge); right: var(--marge); bottom: clamp(28px, 6vh, 64px);
  pointer-events: none;
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 32px; align-items: end;
}
.hero-texte h1 { max-width: 11ch; }
.hero-texte .hero-suite { display: grid; gap: 22px; justify-items: start; }
.hero-texte p { max-width: 38ch; }
.hero-texte .actions { pointer-events: auto; }

@media (max-width: 900px) {
  .hero-texte { grid-template-columns: 1fr; gap: 18px; }
  .volet.est-actif { flex-grow: 7; }
  .volet-nom { left: 12px; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 11vw, 160px) var(--marge); }
.sur-profond { background: var(--profond); color: var(--ivoire); }
.sur-olive { background: var(--olive); color: var(--ivoire); }
.sur-terre { background: var(--terre); color: var(--ivoire); }
.sur-clair { background: var(--ivoire); color: var(--encre); }
.sur-sable { background: var(--sable); color: var(--encre); }

/* Agence */
.agence { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(32px, 7vw, 120px); align-items: start; }
.agence h2 { color: var(--profond); }
.agence-texte { display: grid; gap: 20px; padding-top: 10px; }
.agence-reperes { display: grid; gap: 0; margin-top: 18px; border-top: 1px solid rgba(84, 46, 38, .25); }
.agence-reperes li { display: grid; grid-template-columns: 11ch 1fr; gap: 20px; padding: 16px 0; border-bottom: 1px solid rgba(84, 46, 38, .25); }
.agence-reperes span { font-weight: 500; color: var(--olive); }
@media (max-width: 820px) { .agence { grid-template-columns: 1fr; } .agence-reperes li { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- La porte : cadre en arche pour les images en hauteur ---------- */
.porte {
  position: relative; overflow: hidden; background: var(--ombre);
  aspect-ratio: 9 / 16; border-radius: 999px 999px 0 0;
  isolation: isolate;
}
.porte > img, .porte > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- JOYA en vedette ---------- */
.vedette { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: clamp(32px, 7vw, 110px); align-items: center; }
.vedette-nom { font-family: var(--marque); font-weight: 400; font-variation-settings: normal; font-size: clamp(4.4rem, 13vw, 12rem); line-height: .86; letter-spacing: -.01em; }
.vedette-corps { display: grid; gap: 26px; }
.faits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid rgba(245, 239, 230, .28); }
.faits div { padding: 16px 16px 16px 0; border-bottom: 1px solid rgba(245, 239, 230, .28); }
.faits dt { font-size: .85rem; opacity: .78; }
.faits dd { font-family: var(--titre); font-size: clamp(1.3rem, 2.2vw, 1.9rem); line-height: 1.2; font-variation-settings: "SOFT" 60, "opsz" 60; }
.sur-clair .faits, .sur-clair .faits div, .sur-sable .faits, .sur-sable .faits div { border-color: rgba(84, 46, 38, .25); }
.note { font-size: .85rem; opacity: .75; }
@media (max-width: 820px) { .vedette { grid-template-columns: 1fr; } .vedette .porte { max-width: 300px; } }

/* ---------- Prochainement : des portes encore fermées ---------- */
.prochains-tete { display: grid; gap: 16px; margin-bottom: clamp(36px, 6vw, 72px); }
.prochains-tete h2 { color: var(--profond); }
.portes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 4vw, 56px); max-width: 980px; }
.porte-fermee { display: grid; gap: 16px; }
.porte-fermee .battant {
  position: relative; aspect-ratio: 3 / 4.6; border-radius: 999px 999px 0 0;
  background: var(--teinte, var(--terre));
  box-shadow: inset 0 0 0 10px rgba(46, 24, 19, .16);
}
.porte-fermee .battant::before { content: ""; position: absolute; left: 50%; top: 10px; bottom: 0; width: 2px; background: rgba(46, 24, 19, .32); }
.porte-fermee .battant::after {
  content: ""; position: absolute; left: calc(50% + 12px); top: 58%; width: 9px; height: 9px; border-radius: 50%;
  background: var(--ivoire); opacity: .85;
}
.porte-fermee h3 { color: var(--profond); }
.porte-fermee p { font-size: .95rem; color: var(--terre); font-weight: 400; }
@media (max-width: 620px) { .portes { gap: 14px; } .porte-fermee h3 { font-size: 1.05rem; } }

/* ---------- Bandeau estimer ---------- */
.bandeau { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 90px); align-items: end; }
.bandeau-suite { display: grid; gap: 22px; justify-items: start; }
@media (max-width: 820px) { .bandeau { grid-template-columns: 1fr; } }

/* ---------- Pied de page : vert olive profond, bord en arcades ---------- */
.pied { position: relative; background: var(--olive-nuit); color: var(--ivoire); padding: 0 var(--marge) 26px; }
.pied::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: calc(100% - 1px); height: 17px; pointer-events: none;
  background: radial-gradient(circle at 17px 17px, var(--olive-nuit) 16.5px, transparent 17px) repeat-x; background-size: 34px 17px;
}
.pied-appel {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(24px, 6vw, 100px); align-items: end;
  padding: clamp(56px, 8vw, 110px) 0 clamp(40px, 5vw, 64px); border-bottom: 1px solid rgba(245, 239, 230, .16);
}
.pied-sur, .surtitre { font-size: .76rem; font-weight: 400; text-transform: uppercase; letter-spacing: .18em; color: var(--olive-clair); }
.pied-sur { margin-bottom: 14px; }
.pied-titre {
  font-family: var(--titre); font-weight: 340; font-variation-settings: "SOFT" 60, "opsz" 144;
  font-size: clamp(2.5rem, 6.4vw, 5.6rem); line-height: 1; letter-spacing: -.015em; max-width: none;
}
.pied-appel-suite { display: grid; gap: 22px; justify-items: start; }
.pied-appel-suite p { max-width: 40ch; opacity: .86; }
.pied-grille { display: grid; grid-template-columns: 1.35fr 1fr 1fr 1.25fr; gap: 36px; padding: clamp(40px, 5vw, 64px) 0; }
.pied-marque img { height: 62px; width: auto; margin-bottom: 16px; }
.pied-marque p { opacity: .8; }
.pied h3 { font-family: var(--texte); font-size: .76rem; font-weight: 400; text-transform: uppercase; letter-spacing: .18em; color: var(--olive-clair); margin-bottom: 14px; font-variation-settings: normal; }
.pied li { padding: 4px 0; }
.pied-contacts { margin-top: 12px; }
.pied a { text-decoration: none; }
.pied-grille a, .pied-legal a { background: linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat; transition: background-size .35s; padding-bottom: 2px; }
.pied-grille a:hover, .pied-legal a:hover { background-size: 100% 1px; }
.pied-bas { padding-top: 20px; border-top: 1px solid rgba(245, 239, 230, .16); font-size: .82rem; display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: space-between; align-items: center; }
.pied-bas > span { opacity: .65; }
.pied-legal { display: flex; flex-wrap: wrap; gap: 8px 24px; }
@media (max-width: 900px) { .pied-appel { grid-template-columns: 1fr; align-items: start; } .pied-grille { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .pied-grille { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Page JOYA ---------- */
.joya-tete {
  min-height: 100svh; padding: calc(var(--entete) + 28px) var(--marge) 48px;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(28px, 6vw, 100px); align-items: center;
}
.joya-tete .porte { height: min(calc(100svh - var(--entete) - 80px), 800px); }
.joya-tete-texte { display: grid; gap: 24px; }
@media (max-width: 820px) {
  .joya-tete { grid-template-columns: 1fr; }
  .joya-tete .porte { height: auto; width: min(100%, 340px); justify-self: center; order: -1; }
}

.galerie-tete { display: flex; flex-wrap: wrap; gap: 14px 40px; align-items: end; justify-content: space-between; margin-bottom: 34px; }
.galerie {
  display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
  margin: 0 calc(-1 * var(--marge)); padding: 0 var(--marge) 18px; scrollbar-width: thin; scrollbar-color: var(--terre) transparent;
}
.galerie figure { flex: 0 0 min(72vw, 330px); scroll-snap-align: start; display: grid; gap: 10px; }
.galerie img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 4px; background: var(--sable); }
.galerie figcaption { font-size: .9rem; }

/* Maquette 3D */
.maquette-tete { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); align-items: end; margin-bottom: 30px; }
@media (max-width: 820px) { .maquette-tete { grid-template-columns: 1fr; } }
.maquette-avis {
  display: inline-block; padding: 8px 14px; border-radius: var(--rayon);
  border: 1px solid var(--olive-clair); color: var(--olive-clair); font-size: .88rem;
}
.maquette-scene {
  position: relative; height: min(76vh, 760px); min-height: 420px;
  border-radius: 6px; overflow: hidden; background: #c9a79a; touch-action: pan-y;
}
.maquette-scene canvas { width: 100%; height: 100%; }
.maquette-scene { border-radius: 14px; }
.maquette-scene::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 50% 46%, transparent 58%, rgba(30, 14, 10, .34) 100%); }
.maquette-attente {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px;
  background: var(--ombre); color: var(--ivoire); transition: opacity .6s;
}
.maquette-attente.est-cachee { opacity: 0; pointer-events: none; }
.maquette-attente { z-index: 3; overflow: hidden; }
.maquette-attente > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 62%; filter: brightness(.55) saturate(.9); transform: scale(1.04); }
.maquette-invite { position: relative; display: grid; gap: 16px; justify-items: center; }
.maquette-invite p { font-size: .95rem; max-width: 34ch; text-shadow: 0 1px 14px rgba(20, 8, 5, .7); }
.maquette-lancer { min-height: 60px; padding: 0 34px; border-radius: 999px; font-size: 1.05rem; box-shadow: 0 0 0 10px rgba(245, 239, 230, .16), 0 18px 50px rgba(20, 8, 5, .45); transition: transform .3s, box-shadow .3s, background .2s; }
.maquette-lancer:hover { transform: scale(1.04); box-shadow: 0 0 0 16px rgba(245, 239, 230, .14), 0 18px 50px rgba(20, 8, 5, .45); }
.maquette-lancer[disabled] { cursor: progress; transform: none; }
.maquette-reglages[hidden] { display: none; }
.maquette-filigrane {
  position: absolute; left: 14px; bottom: 12px; font-size: .78rem; color: var(--ivoire);
  background: rgba(46, 24, 19, .6); padding: 6px 10px; border-radius: 6px; pointer-events: none;
}
.maquette-reglages { display: flex; flex-wrap: wrap; gap: 14px 30px; margin-top: 18px; }
.reglage { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.reglage legend { padding: 0; font-size: .85rem; opacity: .78; margin-bottom: 8px; }
.choix { display: inline-flex; border: 1px solid rgba(245, 239, 230, .4); border-radius: var(--rayon); overflow: hidden; }
.choix button {
  min-height: 44px; padding: 0 16px; border: 0; background: transparent; color: var(--ivoire); cursor: pointer; font-size: .92rem;
}
.choix button + button { border-left: 1px solid rgba(245, 239, 230, .4); }
.choix button[aria-pressed="true"] { background: var(--ivoire); color: var(--profond); font-weight: 500; }
.choix button:hover:not([aria-pressed="true"]) { background: rgba(245, 239, 230, .12); }

/* Emplacement */
.emplacement { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: clamp(28px, 6vw, 100px); align-items: center; }
.emplacement-texte { display: grid; gap: 22px; }
.emplacement img { border-radius: 4px; width: 100%; aspect-ratio: 9 / 16; object-fit: cover; }
@media (max-width: 820px) { .emplacement { grid-template-columns: 1fr; } .emplacement img { max-width: 320px; } }

/* ---------- Pages simples (prochainement, estimer) ---------- */
.page-tete { padding: calc(var(--entete) + clamp(48px, 9vw, 120px)) var(--marge) clamp(48px, 8vw, 100px); display: grid; gap: 22px; }
.attente { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: clamp(28px, 7vw, 110px); align-items: center; }
.attente-texte { display: grid; gap: 22px; }
@media (max-width: 720px) { .attente { grid-template-columns: 1fr; } .attente .porte-fermee { max-width: 180px; } }

.fiche { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: clamp(28px, 6vw, 100px); align-items: start; }
.fiche-intro { display: grid; gap: 20px; position: sticky; top: calc(var(--entete) + 24px); }
@media (max-width: 860px) { .fiche { grid-template-columns: 1fr; } .fiche-intro { position: static; } }
.formulaire { display: grid; gap: 22px; }
.champs { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .champs { grid-template-columns: 1fr; } }
.champ { display: grid; gap: 6px; }
.champ label, .formulaire legend { font-size: .9rem; font-weight: 400; }
.champ input, .champ select, .champ textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  background: #fff; border: 1px solid rgba(84, 46, 38, .35); border-radius: var(--rayon);
}
.champ textarea { min-height: 120px; resize: vertical; }
.champ input:focus-visible, .champ select:focus-visible, .champ textarea:focus-visible { outline: 2px solid var(--terre); outline-offset: 1px; }
.bascule { border: 0; padding: 0; margin: 0; }
.bascule legend { padding: 0; margin-bottom: 8px; }
.bascule-choix { display: inline-flex; border: 1px solid var(--terre); border-radius: var(--rayon); overflow: hidden; }
.bascule-choix label { position: relative; cursor: pointer; }
.bascule-choix input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.bascule-choix span { display: flex; align-items: center; min-height: 48px; padding: 0 22px; }
.bascule-choix label + label span { border-left: 1px solid var(--terre); }
.bascule-choix input:checked + span { background: var(--terre); color: var(--ivoire); font-weight: 500; }
.bascule-choix input:focus-visible + span { outline: 2px solid var(--profond); outline-offset: -4px; }
.erreur { color: #9B1C1C; font-size: .9rem; font-weight: 400; }

/* ---------- Formulaires de demande (rendez-vous, estimation) ---------- */
.page-tete { position: relative; overflow: hidden; }
.page-tete .surtitre { margin-bottom: -6px; }
.sur-profond .surtitre { color: var(--olive-clair); }
.rdv-symbole { position: absolute; right: clamp(-40px, 2vw, 60px); bottom: -18%; width: clamp(180px, 26vw, 360px); height: auto; opacity: .12; pointer-events: none; }
.fiche-intro h2, .attente-texte h2 { color: var(--profond); }
.fiche-corps { min-width: 0; }
.carte-formulaire {
  background: #fff; border: 1px solid rgba(84, 46, 38, .14); border-radius: 18px;
  padding: clamp(20px, 3.4vw, 46px); box-shadow: 0 24px 60px rgba(84, 46, 38, .08); gap: 30px;
}
.rdv .carte-formulaire, .rdv .merci { margin-top: clamp(-90px, -7vw, -40px); position: relative; z-index: 2; }
@media (max-width: 860px) { .rdv .fiche-corps { order: -1; } .rdv .carte-formulaire, .rdv .merci { margin-top: -56px; } }
.groupe { border: 0; padding: 0; margin: 0; display: grid; gap: 18px; min-width: 0; }
.groupe + .groupe { border-top: 1px solid rgba(84, 46, 38, .14); padding-top: 28px; }
.groupe legend { display: flex; align-items: center; gap: 12px; padding: 0; margin-bottom: 18px; font-family: var(--titre); font-size: 1.5rem; color: var(--profond); font-variation-settings: "SOFT" 60, "opsz" 60; }
.groupe legend span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--olive); color: var(--ivoire); font-family: var(--texte); font-size: .85rem; font-weight: 500; }
.pastilles { display: flex; flex-wrap: wrap; gap: 10px; }
.pastilles label { position: relative; cursor: pointer; }
.pastilles input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.pastilles span { display: flex; align-items: center; min-height: 46px; padding: 0 18px; border: 1px solid rgba(84, 46, 38, .35); border-radius: 999px; transition: background .2s, color .2s, border-color .2s; }
.pastilles label:hover span { border-color: var(--olive); }
.pastilles input:checked + span { background: var(--olive); border-color: var(--olive); color: var(--ivoire); font-weight: 500; }
.pastilles input:focus-visible + span { outline: 2px solid var(--olive); outline-offset: 2px; }
.carte-formulaire .champ input, .carte-formulaire .champ select, .carte-formulaire .champ textarea { background: #FBF8F3; }
.carte-formulaire .champ [aria-invalid="true"] { border-color: #9B1C1C; }
.accord { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; font-size: .92rem; cursor: pointer; }
.accord input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--olive); }
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.formulaire .btn[disabled] { opacity: .6; cursor: progress; }
.merci { display: grid; gap: 18px; justify-items: start; background: #fff; border: 1px solid rgba(61, 79, 58, .35); border-radius: 18px; padding: clamp(24px, 4vw, 54px); box-shadow: 0 24px 60px rgba(84, 46, 38, .08); }
.merci[hidden] { display: none; }
.merci h2 { color: var(--olive); }
.merci img { width: 56px; height: 56px; }
.merci-ref { font-size: .95rem; }
.merci-ref b { font-weight: 600; letter-spacing: .04em; }
.etapes { counter-reset: etape; display: grid; border-top: 1px solid rgba(84, 46, 38, .25); }
.etapes li { counter-increment: etape; display: grid; grid-template-columns: 3ch 1fr; gap: 2px 14px; padding: 16px 0; border-bottom: 1px solid rgba(84, 46, 38, .25); }
.etapes li::before { content: counter(etape); grid-row: span 2; font-family: var(--titre); font-size: 1.6rem; line-height: 1.1; color: var(--olive); }
.etapes b { font-weight: 500; }
.etapes span { font-size: .95rem; opacity: .85; }
.carte-agence { display: grid; gap: 8px; padding: 22px; border-radius: 14px; background: var(--sable); }
.carte-agence h3 { font-size: 1.25rem; color: var(--profond); }
.porte-fermee.ouverte .battant { background: linear-gradient(to right, var(--teinte) 0 20%, #f6dcae 20% 80%, var(--teinte) 80%); box-shadow: inset 0 0 0 10px rgba(46, 24, 19, .12), 0 0 60px rgba(246, 205, 140, .55); }
.porte-fermee.ouverte .battant::before, .porte-fermee.ouverte .battant::after { display: none; }

/* ---------- Téléphone avec indicatif, étiquette de groupe ---------- */
.tel { display: grid; grid-template-columns: minmax(0, 7.6em) minmax(0, 1fr); gap: 8px; }
.tel select { padding-left: 10px; padding-right: 4px; }
.etiquette { font-size: .9rem; font-weight: 400; }

/* ---------- Bouton WhatsApp flottant ---------- */
.wa {
  position: fixed; z-index: 45; right: clamp(14px, 2vw, 26px); bottom: clamp(14px, 2vw, 26px);
  display: inline-flex; align-items: center; gap: 10px; height: 54px; padding: 0 20px 0 15px; border-radius: 999px;
  background: var(--olive); color: var(--ivoire); text-decoration: none; font-weight: 500; font-size: .95rem;
  border: 1px solid rgba(245, 239, 230, .3); box-shadow: 0 12px 32px rgba(20, 8, 5, .34);
  transition: transform .25s, background .2s;
}
.wa:hover { background: #2f7d4f; transform: translateY(-2px); }
.wa svg { flex: none; }
@media (max-width: 620px) { .wa { width: 54px; padding: 0; justify-content: center; } .wa span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); } }
@media print { .wa { display: none; } }

/* ---------- Qui sommes-nous ? ---------- */
.qui-intro { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, .7fr); gap: clamp(28px, 6vw, 100px); align-items: end; }
.qui-accroche { font-family: var(--titre); font-weight: 340; font-size: clamp(1.5rem, 2.9vw, 2.6rem); line-height: 1.22; letter-spacing: -.01em; color: var(--profond); max-width: 30ch; font-variation-settings: "SOFT" 60, "opsz" 100; }
.qui-valeurs { display: grid; border-top: 1px solid rgba(61, 79, 58, .4); }
.qui-valeurs li { padding: 14px 0; border-bottom: 1px solid rgba(61, 79, 58, .4); font-size: .8rem; text-transform: uppercase; letter-spacing: .18em; color: var(--olive); }
.associes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 3vw, 40px); margin-top: clamp(48px, 7vw, 100px); }
.associe { display: grid; gap: 14px; align-content: start; padding: clamp(24px, 3.4vw, 48px); background: #fff; border: 1px solid rgba(84, 46, 38, .14); border-radius: 18px 18px 18px 18px; box-shadow: 0 24px 60px rgba(84, 46, 38, .07); }
.associe:nth-child(2) { background: var(--olive); color: var(--ivoire); border-color: transparent; }
.associe-chiffre { display: flex; align-items: baseline; gap: 12px; padding-bottom: 14px; margin-bottom: 4px; border-bottom: 1px solid currentColor; max-width: none; }
.associe-chiffre b { font-family: var(--titre); font-weight: 340; font-size: clamp(3.4rem, 7vw, 6rem); line-height: .9; color: var(--terre); font-variation-settings: "SOFT" 60, "opsz" 144; font-variant-numeric: tabular-nums; }
.associe-chiffre b::before { content: "+"; font-size: .5em; vertical-align: .55em; margin-right: 2px; }
.associe:nth-child(2) .associe-chiffre b { color: var(--ivoire); }
.associe h2 { font-size: clamp(1.7rem, 2.8vw, 2.5rem); color: var(--profond); }
.associe:nth-child(2) h2 { color: var(--ivoire); }
.associe .surtitre { color: var(--olive); }
.associe:nth-child(2) .surtitre { color: var(--olive-clair); }
.associe-apport { padding-left: 16px; border-left: 2px solid var(--terre); font-weight: 400; }
.associe:nth-child(2) .associe-apport { border-left-color: var(--olive-clair); }
.qui-fin { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 100px); align-items: end; }
.qui-fin-suite { display: grid; gap: 24px; justify-items: start; }
@media (max-width: 820px) { .qui-intro, .associes, .qui-fin { grid-template-columns: 1fr; } }

/* ---------- Pages de politiques ---------- */
.texte-legal { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 72ch); gap: clamp(28px, 6vw, 100px); align-items: start; }
.legal-sommaire { position: sticky; top: calc(var(--entete) + 28px); display: grid; gap: 14px; }
.legal-sommaire h2 { font-family: var(--texte); font-size: .76rem; font-weight: 400; text-transform: uppercase; letter-spacing: .18em; color: var(--olive); font-variation-settings: normal; }
.legal-sommaire ol { counter-reset: s; display: grid; border-top: 1px solid rgba(84, 46, 38, .2); }
.legal-sommaire li { counter-increment: s; border-bottom: 1px solid rgba(84, 46, 38, .2); }
.legal-sommaire a { display: grid; grid-template-columns: 3ch 1fr; padding: 10px 0; text-decoration: none; font-size: .93rem; }
.legal-sommaire a::before { content: counter(s, decimal-leading-zero); color: var(--olive); }
.legal-sommaire a:hover { color: var(--terre); }
.legal-corps { display: grid; gap: 38px; }
.legal-corps section { display: grid; gap: 12px; scroll-margin-top: calc(var(--entete) + 30px); }
.legal-corps h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); color: var(--profond); }
.legal-corps ul { display: grid; gap: 6px; padding-left: 1.2em; list-style: disc; }
.legal-corps ul ::marker { color: var(--olive); }
.avis-brouillon { padding: 12px 16px; border-left: 3px solid var(--olive); background: var(--sable); border-radius: 0 var(--rayon) var(--rayon) 0; font-size: .92rem; max-width: none; }
@media (max-width: 820px) { .texte-legal { grid-template-columns: 1fr; } .legal-sommaire { position: static; } }

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