/*
  YORAM Stratégie d'Entreprise
  Feuille de style principale

  Sommaire
  1. Base et variables
  2. En-tête et navigation
  3. Éléments communs (boutons, liens, titres)
  4. Accueil
  5. Page Business Plan
  6. Questionnaire
  7. Pages de texte (confidentialité)
  8. Pied de page
  9. Responsive
  10. Impression
*/

/* 1. Base et variables ------------------------------------------------ */

:root {
  --papier: #F5F2EA;
  --papier-2: #ECE6D8;
  --blanc: #FFFDF8;
  --encre: #1A1D1B;
  --encre-2: #4B514D;
  --encre-3: #7A7F79;
  --trait: #D9D1BF;
  --vert: #1F4A3B;
  --vert-fonce: #15352A;
  --ocre: #B4612A;
  --ocre-clair: #E9C9A6;
  --rouge: #A3362A;
  --ok: #2E7350;

  --titre: "Newsreader", "Iowan Old Style", Georgia, serif;
  --texte: "Public Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, "SF Mono", Consolas, monospace;

  --largeur: 1200px;
  --gouttiere: clamp(20px, 4vw, 40px);
  --courbe: cubic-bezier(.22, .61, .36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--papier);
  color: var(--encre);
  font: 400 17px/1.65 var(--texte);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; color: transparent; font-size: 0; }
svg { display: block; }
a { color: inherit; }
p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--titre);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -.012em;
  text-wrap: balance;
}

p { text-wrap: pretty; }

.wrap {
  width: 100%;
  max-width: calc(var(--largeur) + 2 * var(--gouttiere));
  margin-inline: auto;
  padding-inline: var(--gouttiere);
}

::selection { background: var(--ocre-clair); color: var(--encre); }

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

.sr-only {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.evitement {
  position: absolute; left: 12px; top: -60px; z-index: 300;
  background: var(--encre); color: var(--blanc);
  padding: 10px 16px; text-decoration: none;
}
.evitement:focus { top: 12px; }

/* 2. En-tête et navigation ------------------------------------------- */

.bandeau {
  background: var(--vert-fonce);
  color: #D9E2DC;
  font-size: .82rem;
}
.bandeau .wrap {
  display: flex; gap: 28px; justify-content: flex-end;
  padding-block: 7px;
}
.bandeau a { text-decoration: none; color: #fff; }
.bandeau a:hover { text-decoration: underline; }

.entete {
  position: sticky; top: 0; z-index: 100;
  background: rgba(245, 242, 234, .94);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid transparent;
  transition: transform .35s var(--courbe), border-color .3s;
}
.entete.decolle { border-bottom-color: var(--trait); }
.entete.cache { transform: translateY(-100%); }

.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; height: 76px;
}

.marque {
  display: flex; align-items: center; gap: 14px;
  text-decoration: none; flex: none;
}
.marque-nom {
  font-family: var(--titre);
  font-size: 1.55rem;
  letter-spacing: .18em;
  line-height: 1;
  padding-left: .18em;
}
.marque-sous {
  font-size: .72rem; line-height: 1.25;
  color: var(--encre-2);
  padding-left: 14px;
  border-left: 1px solid var(--trait);
}

.menu { display: flex; align-items: center; gap: 30px; }
.menu a {
  text-decoration: none; font-size: .95rem; color: var(--encre-2);
  padding-block: 6px;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .3s var(--courbe), color .2s;
}
.menu a:hover, .menu a[aria-current="page"] { color: var(--encre); background-size: 100% 1px; }
.menu .btn { color: var(--blanc); background: var(--vert); padding: 11px 18px; }
.menu .btn:hover { background: var(--vert-fonce); }

.burger {
  display: none;
  background: none; border: 0; padding: 10px; margin-right: -10px; cursor: pointer;
}
.burger span {
  display: block; width: 22px; height: 1.5px; background: var(--encre);
  transition: transform .25s, opacity .2s;
}
.burger span + span { margin-top: 6px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* 3. Éléments communs ------------------------------------------------ */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 24px;
  background: var(--vert); color: var(--blanc);
  border: 1px solid transparent; border-radius: 2px;
  font-weight: 600; font-size: .95rem; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--vert-fonce); }
.btn .fleche { transition: transform .25s var(--courbe); }
.btn:hover .fleche { transform: translateX(3px); }
.btn.clair { background: transparent; color: var(--encre); border-color: var(--encre); }
.btn.clair:hover { background: var(--encre); color: var(--blanc); }
.btn.ocre { background: var(--ocre); }
.btn.ocre:hover { background: #994F1F; }
.btn.blanc { background: var(--blanc); color: var(--vert-fonce); }
.btn.blanc:hover { background: var(--papier-2); }
.btn.petit { padding: 10px 16px; font-size: .88rem; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

.lien {
  color: var(--encre); font-weight: 600; text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
  border-bottom: 1px solid var(--ocre);
  padding-bottom: 2px;
}
.lien:hover { color: var(--ocre); }

.fleche { width: 16px; height: 16px; flex: none; }

.section { padding-block: clamp(72px, 10vw, 128px); }
.section.serre { padding-block: clamp(56px, 7vw, 88px); }

.entete-section { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.entete-section h2 { font-size: clamp(2rem, 4vw, 3rem); }
.entete-section p { margin-top: 18px; color: var(--encre-2); font-size: 1.08rem; max-width: 60ch; }

.numero {
  font-family: var(--titre); font-style: italic;
  color: var(--ocre); font-size: 1.05rem;
}

/* Apparition au défilement : courte et discrète */
.js .apparait {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .7s var(--courbe), transform .7s var(--courbe);
}
.js .apparait.vu { opacity: 1; transform: none; }

/* 4. Accueil ---------------------------------------------------------- */

.hero { padding-block: clamp(40px, 6vw, 80px) clamp(48px, 6vw, 72px); }
.hero-grille {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: end;
}
.hero h1 {
  font-size: clamp(2.6rem, 6.2vw, 5.2rem);
  line-height: 1.02;
  letter-spacing: -.025em;
}
.hero h1 em { font-style: italic; color: var(--vert); }
.hero .chapo {
  margin-top: 28px; max-width: 50ch;
  font-size: 1.12rem; color: var(--encre-2);
}
.hero .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin-top: 36px; }

.hero-photo { position: relative; }
.cadre-photo {
  position: relative; overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--papier-2) linear-gradient(135deg, #DCD3C0, #CFC5AF);
}
.cadre-photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%;
  filter: saturate(.92);
}
.hero-photo figcaption {
  margin-top: 12px; font-size: .82rem; color: var(--encre-3);
  display: flex; justify-content: space-between; gap: 12px;
}

/* Rideau sur la photo et titres ligne par ligne, au chargement seulement */
.js .rideau .cadre-photo { clip-path: inset(0 0 100% 0); transition: clip-path 1.1s .15s var(--courbe); }
.js .rideau.vu .cadre-photo { clip-path: inset(0 0 0 0); }
.ligne { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.ligne > span { display: inline-block; }
.js .titre-anime .ligne > span { transform: translateY(105%); transition: transform .9s var(--courbe); }
.js .titre-anime .ligne:nth-child(2) > span { transition-delay: .08s; }
.js .titre-anime .ligne:nth-child(3) > span { transition-delay: .16s; }
.js .titre-anime.vu .ligne > span { transform: none; }

.faits { border-block: 1px solid var(--trait); }
.faits dl {
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.faits dl > div { padding: 22px 24px 22px 0; }
.faits dl > div + div { padding-left: 24px; border-left: 1px solid var(--trait); }
.faits dt { font-size: .8rem; color: var(--encre-3); }
.faits dd { margin-top: 2px; font-weight: 600; font-size: .98rem; }

/* Contexte */
.contexte-grille {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
}
.contexte h2 { font-size: clamp(2rem, 4vw, 3rem); }
.contexte .texte p + p { margin-top: 18px; }
.contexte .texte p { color: var(--encre-2); }
.contexte .texte p:first-child { color: var(--encre); font-size: 1.18rem; }

.reperes { margin-top: 36px; border-top: 1px solid var(--encre); }
.reperes li {
  display: grid; grid-template-columns: 9.5rem 1fr; gap: 20px;
  padding: 16px 0; border-bottom: 1px solid var(--trait);
  align-items: baseline;
}
.reperes b { font-family: var(--titre); font-weight: 400; font-size: 1.75rem; line-height: 1.1; color: var(--vert); }
.reperes span { color: var(--encre-2); font-size: .95rem; }

.citation-forte {
  margin-top: clamp(56px, 8vw, 96px);
  padding-left: clamp(20px, 4vw, 48px);
  border-left: 3px solid var(--ocre);
  max-width: 900px;
}
.citation-forte p {
  font-family: var(--titre); font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1.28;
}

/* Piliers : trois colonnes séparées par un filet */
.piliers { background: var(--vert); color: #E8EEE9; }
.piliers .entete-section p { color: #BFD0C5; }
.piliers-grille {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255, 255, 255, .22);
}
.pilier { padding: 34px 32px 8px 0; }
.pilier + .pilier { padding-left: 32px; border-left: 1px solid rgba(255, 255, 255, .22); }
.pilier .numero { color: var(--ocre-clair); }
.pilier h3 { font-size: 1.7rem; margin: 6px 0 16px; color: #fff; }
.pilier p { color: #C8D6CD; font-size: .97rem; }
.pilier ul { margin-top: 18px; }
.pilier li {
  font-size: .93rem; color: #DCE5DF;
  padding: 9px 0 9px 18px; position: relative;
  border-top: 1px solid rgba(255, 255, 255, .12);
}
.pilier li::before {
  content: ""; position: absolute; left: 0; top: 19px;
  width: 7px; height: 1px; background: var(--ocre-clair);
}

/* Services : liste indexée et photo collante */
.services-grille {
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 6vw, 88px); align-items: start;
}
.services-photo { position: sticky; top: 110px; }
.services-photo .cadre-photo { aspect-ratio: 4 / 4.6; }
.services-photo img {
  position: absolute; inset: 0;
  opacity: 0; transform: scale(1.04);
  transition: opacity .5s var(--courbe), transform 1.2s var(--courbe);
}
.services-photo img.actif { opacity: 1; transform: none; }

.liste-services { border-top: 1px solid var(--encre); counter-reset: s; }
.service {
  position: relative;
  display: grid; grid-template-columns: 2.4rem 1fr; gap: 6px 16px;
  padding: 26px 0 28px;
  border-bottom: 1px solid var(--trait);
}
.service::before {
  counter-increment: s; content: "0" counter(s);
  font-family: var(--titre); font-style: italic; color: var(--ocre);
  font-size: 1.05rem; line-height: 2;
}
.service h3 { font-size: clamp(1.45rem, 2.4vw, 1.85rem); transition: color .25s; }
.service p { grid-column: 2; color: var(--encre-2); max-width: 54ch; }
.service .details {
  grid-column: 2; margin-top: 10px;
  font-size: .86rem; color: var(--encre-3);
}
.service:hover h3, .service.actif h3 { color: var(--vert); }
.service .photo-mobile { display: none; }

.encart-bp {
  margin-top: 40px;
  display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center;
  padding: 28px 30px;
  background: var(--blanc);
  border: 1px solid var(--trait);
  border-left: 3px solid var(--ocre);
}
.encart-bp h3 { font-size: 1.5rem; }
.encart-bp p { color: var(--encre-2); margin-top: 6px; font-size: .97rem; max-width: 52ch; }

.secteurs {
  margin-top: clamp(48px, 7vw, 80px);
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 0;
  font-family: var(--titre); font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  color: var(--encre-2);
}
.secteurs strong {
  font-family: var(--texte); font-size: .85rem; font-weight: 600;
  color: var(--encre); margin-right: 18px;
}
.secteurs span:not(:last-child)::after { content: "/"; color: var(--trait); margin: 0 .55em; }

/* Méthode */
.methode { background: var(--blanc); border-block: 1px solid var(--trait); }
.etapes {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border-top: 1px solid var(--encre);
}
.etape { padding: 24px 28px 0 0; }
.etape + .etape { padding-left: 28px; border-left: 1px solid var(--trait); }
.etape h3 { font-size: 1.4rem; margin: 4px 0 10px; }
.etape p { color: var(--encre-2); font-size: .95rem; }

/* Le cabinet */
.cabinet-grille {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  gap: clamp(32px, 6vw, 96px); align-items: start;
}
.cabinet h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 24px; }
.cabinet .texte p { color: var(--encre-2); }
.cabinet .texte p + p { margin-top: 16px; }
.cabinet .engagements { margin-top: 28px; }
.cabinet .engagements li {
  padding: 14px 0 14px 30px; position: relative;
  border-top: 1px solid var(--trait);
}
.cabinet .engagements li::before {
  content: ""; position: absolute; left: 2px; top: 22px;
  width: 12px; height: 7px;
  border-left: 1.5px solid var(--vert); border-bottom: 1.5px solid var(--vert);
  transform: rotate(-45deg);
}

.fiche {
  background: var(--blanc); border: 1px solid var(--trait);
  padding: 28px 28px 10px;
  font-size: .94rem;
}
.fiche h3 {
  font-family: var(--texte); font-size: .78rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--encre-3);
  margin-bottom: 8px;
}
.fiche div { padding: 12px 0; border-top: 1px solid var(--trait); }
.fiche div:first-of-type { border-top: 0; }
.fiche dt { font-size: .8rem; color: var(--encre-3); }
.fiche dd { margin-top: 2px; font-weight: 500; }

/* Témoignages */
.temoignages-grille {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  gap: clamp(32px, 6vw, 80px); align-items: start;
}
.temoignage p {
  font-family: var(--titre);
  font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.3;
}
.temoignage + .temoignage p { font-size: clamp(1.15rem, 1.8vw, 1.35rem); }
.temoignage footer {
  margin-top: 18px; font-size: .9rem; color: var(--encre-2);
  padding-top: 14px; border-top: 1px solid var(--trait); max-width: 340px;
}

/* Vision */
.vision { background: var(--encre); color: #E7E4DC; }
.vision-grille {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
}
.vision h2 { font-size: clamp(2rem, 4vw, 3.1rem); color: #fff; }
.vision .grand-chiffre {
  font-family: var(--titre); font-size: clamp(5rem, 11vw, 9rem);
  line-height: .9; color: var(--ocre-clair); margin-top: 28px;
}
.vision .grand-chiffre + p { color: #B9B6AE; max-width: 34ch; margin-top: 10px; }
.vision dl > div { padding: 20px 0; border-top: 1px solid rgba(255, 255, 255, .16); }
.vision dt { font-weight: 600; color: #fff; }
.vision dd { color: #B9B6AE; margin-top: 4px; font-size: .97rem; }

/* Contact */
.contact-grille {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 80px);
}
.contact h2 { font-size: clamp(2rem, 4vw, 3rem); }
.contact .intro { margin-top: 18px; color: var(--encre-2); max-width: 44ch; }
.coordonnees { margin-top: 32px; }
.coordonnees div { padding: 14px 0; border-top: 1px solid var(--trait); }
.coordonnees dt { font-size: .8rem; color: var(--encre-3); }
.coordonnees dd { font-weight: 600; }
.coordonnees a { text-decoration: none; }
.coordonnees a:hover { color: var(--ocre); text-decoration: underline; }

.carte {
  margin-top: 24px; position: relative;
  aspect-ratio: 16 / 9; background: var(--papier-2);
  border: 1px solid var(--trait); overflow: hidden;
}
.carte iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.4) contrast(.95); }
.carte a {
  position: absolute; right: 10px; bottom: 10px;
  background: var(--blanc); padding: 6px 10px; font-size: .8rem; font-weight: 600;
  text-decoration: none; border: 1px solid var(--trait);
}

.formulaire {
  background: var(--blanc);
  border: 1px solid var(--trait);
  padding: clamp(24px, 4vw, 40px);
}
.champs { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.champ { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.champ.plein { grid-column: 1 / -1; }
label, .etiquette { font-size: .87rem; font-weight: 600; }
.facultatif { font-weight: 400; color: var(--encre-3); }

input, select, textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 1rem;
  background: var(--papier);
  border: 1px solid var(--trait);
  border-radius: 2px;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
input:hover, select:hover, textarea:hover { border-color: #C3B9A3; }
input:focus, select:focus, textarea:focus {
  outline: none; background: #fff; border-color: var(--vert);
  box-shadow: 0 0 0 3px rgba(31, 74, 59, .14);
}
textarea { min-height: 128px; resize: vertical; line-height: 1.55; }
select {
  -webkit-appearance: none; appearance: none;
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%234B514D' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 12px 8px;
}
input[type="checkbox"], input[type="radio"] { width: auto; padding: 0; }

.envoi { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.message-statut { margin-top: 12px; font-size: .9rem; font-weight: 600; color: var(--rouge); min-height: 1.4em; }
.note { margin-top: 10px; font-size: .84rem; color: var(--encre-3); }

/* WhatsApp */
.wa {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  display: flex; align-items: center; gap: 8px;
  background: #1E6E46; color: #fff; text-decoration: none;
  padding: 12px 16px 12px 13px; border-radius: 999px;
  font-size: .88rem; font-weight: 600;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
  transition: transform .3s var(--courbe), opacity .3s, background .2s;
}
.wa:hover { background: #185C3A; }
.wa svg { width: 22px; height: 22px; }
.wa.masque { transform: translateY(140%); opacity: 0; pointer-events: none; }

/* 5. Page Business Plan ---------------------------------------------- */

.bp-hero { padding-block: clamp(40px, 6vw, 80px) clamp(40px, 5vw, 64px); }
.bp-hero-grille {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  gap: clamp(32px, 6vw, 88px); align-items: end;
}
.bp-hero h1 { font-size: clamp(2.4rem, 5.4vw, 4.4rem); line-height: 1.04; letter-spacing: -.022em; }
.bp-hero h1 em { font-style: italic; color: var(--vert); }
.bp-hero .chapo { margin-top: 24px; font-size: 1.1rem; color: var(--encre-2); max-width: 54ch; }
.bp-hero .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin-top: 32px; }

.essentiel { border-top: 1px solid var(--encre); font-size: .95rem; }
.essentiel div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--trait); }
.essentiel dt { color: var(--encre-2); }
.essentiel dd { font-weight: 600; text-align: right; }

.deroule {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--encre);
}
.deroule li { padding: 22px 26px 0 0; }
.deroule li + li { padding-left: 26px; border-left: 1px solid var(--trait); }
.deroule h3 { font-family: var(--texte); font-weight: 600; font-size: 1rem; margin: 6px 0 8px; }
.deroule p { color: var(--encre-2); font-size: .94rem; }

.tarif { background: var(--blanc); border-block: 1px solid var(--trait); }
.tarif-grille {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px); align-items: start;
}
.tarif h2 { font-size: clamp(2rem, 3.6vw, 2.8rem); }
.tarif .intro { color: var(--encre-2); margin-top: 16px; max-width: 48ch; }
.bareme { margin-top: 28px; border-top: 1px solid var(--encre); }
.bareme div { display: grid; grid-template-columns: 10rem 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--trait); align-items: baseline; }
.bareme dt { font-family: var(--titre); font-size: 1.35rem; color: var(--vert); }
.bareme dd { color: var(--encre-2); font-size: .95rem; }

.calcul {
  background: var(--papier); border: 1px solid var(--trait);
  padding: clamp(22px, 3.5vw, 34px);
}
.calcul h3 { font-size: 1.45rem; margin-bottom: 4px; }
.calcul > p { color: var(--encre-2); font-size: .93rem; margin-bottom: 20px; }
.calcul .montant-saisi { position: relative; }
.calcul .montant-saisi input { font-size: 1.25rem; padding-right: 70px; background: #fff; }
.calcul .montant-saisi span { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--encre-3); font-size: .9rem; }
.exemples { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.exemples button {
  background: none; border: 1px solid var(--trait); padding: 6px 10px; font-size: .82rem;
  cursor: pointer; border-radius: 2px; color: var(--encre-2);
}
.exemples button:hover { border-color: var(--encre); color: var(--encre); }
.resultat-calcul { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--trait); }
.resultat-calcul .valeur { font-family: var(--titre); font-size: clamp(2.2rem, 4.4vw, 3rem); line-height: 1.1; color: var(--vert); }
.resultat-calcul .regle { color: var(--encre-2); font-size: .9rem; margin-top: 4px; }

.confid-grille { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--encre); }
.confid-grille > div { padding: 22px 28px 0 0; }
.confid-grille > div + div { padding-left: 28px; border-left: 1px solid var(--trait); }
.confid-grille h3 { font-family: var(--texte); font-weight: 600; font-size: 1rem; margin-bottom: 8px; }
.confid-grille p { color: var(--encre-2); font-size: .94rem; }

/* 6. Questionnaire ---------------------------------------------------- */

.demande { background: var(--papier-2); border-top: 1px solid var(--trait); }

.portes { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.carte-bp {
  background: var(--blanc); border: 1px solid var(--trait);
  padding: clamp(22px, 3.5vw, 36px);
}
.carte-bp h3 { font-size: 1.55rem; margin-bottom: 6px; }
.carte-bp > p { color: var(--encre-2); font-size: .95rem; margin-bottom: 22px; }
.carte-bp .champs { gap: 16px; }

.case { display: flex; gap: 12px; align-items: flex-start; font-size: .92rem; font-weight: 400; cursor: pointer; }
.case input { width: 18px; height: 18px; flex: none; margin-top: 3px; accent-color: var(--vert); }

.erreur { color: var(--rouge); font-size: .84rem; font-weight: 600; }
.erreur:empty { display: none; }
.invalide input, .invalide select, .invalide textarea, input.invalide {
  border-color: var(--rouge); background: #FCF3F1;
}
.code-saisie { font-family: var(--mono); letter-spacing: .1em; text-transform: uppercase; }

.code-cree { max-width: 640px; margin-inline: auto; text-align: center; }
.code-cree .code {
  display: inline-block; margin: 20px 0 22px;
  font-family: var(--mono); font-weight: 700; font-size: clamp(1.25rem, 4.6vw, 1.9rem);
  letter-spacing: .1em; color: var(--vert);
  padding: 16px 24px; background: var(--papier); border: 1px dashed var(--ocre);
}
.code-cree .envoi { justify-content: center; }

/* Assistant : barre latérale + questions */
.assistant {
  display: grid; grid-template-columns: 250px minmax(0, 1fr);
  gap: clamp(24px, 4vw, 48px); align-items: start;
}
.cote { position: sticky; top: 100px; font-size: .9rem; }
.cote .ref { font-family: var(--mono); font-size: .82rem; color: var(--encre-2); letter-spacing: .04em; }
.cote .avancement { margin: 14px 0 6px; height: 4px; background: var(--trait); overflow: hidden; }
.cote .avancement span { display: block; height: 100%; background: var(--vert); transition: width .5s var(--courbe); }
.cote .compte { color: var(--encre-2); font-size: .85rem; }
.etapes-bp { margin-top: 22px; border-top: 1px solid var(--trait); }
.etapes-bp button {
  display: flex; align-items: center; gap: 12px; width: 100%;
  background: none; border: 0; border-bottom: 1px solid var(--trait);
  padding: 11px 0; text-align: left; cursor: pointer; color: var(--encre-2);
}
.etapes-bp button[disabled] { cursor: default; color: var(--encre-3); }
.etapes-bp .pastille {
  flex: none; width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--trait); font-size: .75rem; font-weight: 600; background: var(--blanc);
}
.etapes-bp button.fait .pastille { background: var(--vert); border-color: var(--vert); color: #fff; }
.etapes-bp button.actif { color: var(--encre); font-weight: 600; }
.etapes-bp button.actif .pastille { border-color: var(--encre); }
.cote .sauve { display: flex; align-items: center; gap: 8px; margin-top: 18px; font-size: .82rem; color: var(--encre-2); }
.cote .sauve i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); flex: none; }
.cote .sauve.encours i { background: var(--ocre); }
.cote .sauve.probleme i { background: var(--rouge); }
.cote .btn { margin-top: 18px; width: 100%; }

.vue-etape { min-width: 0; }
.js .vue-etape { animation: glisse .45s var(--courbe); }
@keyframes glisse { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.vue-etape > header { margin-bottom: 20px; }
.vue-etape > header p { font-size: .85rem; color: var(--encre-3); }
.vue-etape > header h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }

.question {
  background: var(--blanc); border: 1px solid var(--trait);
  padding: clamp(20px, 3vw, 30px);
  margin-bottom: 16px;
  position: relative;
}
.question::before {
  content: ""; position: absolute; left: -1px; top: -1px; bottom: -1px; width: 3px;
  background: transparent; transition: background .3s;
}
.question.ok::before { background: var(--ok); }
.question.ko::before { background: var(--rouge); }
.question h3 {
  font-family: var(--texte); font-weight: 600; font-size: 1.08rem; line-height: 1.4;
  display: grid; grid-template-columns: 2.2rem 1fr; gap: 6px;
}
.question h3 .n { font-family: var(--titre); font-style: italic; font-weight: 400; color: var(--ocre); font-size: 1.15rem; }

details.aide { margin: 8px 0 18px 2.2rem; font-size: .9rem; color: var(--encre-2); }
details.aide summary {
  cursor: pointer; list-style: none; display: inline-block;
  color: var(--vert); font-weight: 600; font-size: .86rem;
  border-bottom: 1px dotted currentColor;
}
details.aide summary::-webkit-details-marker { display: none; }
details.aide[open] summary { margin-bottom: 10px; }
details.aide .contenu { background: var(--papier); padding: 12px 14px; border-left: 2px solid var(--ocre-clair); }
details.aide .contenu p + p { margin-top: 8px; }

.grille { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grille .champ.plein { grid-column: 1 / -1; }

/* Choix : l'état coché passe par un span voisin, sans :has() */
.choix { display: flex; flex-wrap: wrap; gap: 8px; }
.choix label { position: relative; cursor: pointer; font-weight: 500; font-size: .92rem; }
.choix input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choix span {
  display: inline-block; padding: 9px 14px;
  border: 1px solid var(--trait); background: var(--papier); border-radius: 2px;
  transition: background .15s, border-color .15s, color .15s;
}
.choix label:hover span { border-color: #BDB29A; }
.choix input:checked + span { background: var(--vert); border-color: var(--vert); color: #fff; }
.choix input:focus-visible + span { outline: 2px solid var(--ocre); outline-offset: 2px; }
.invalide .choix span { border-color: var(--rouge); }

.compteur { font-size: .78rem; color: var(--encre-3); text-align: right; }
.compteur.bon { color: var(--ok); }
.avec-unite { position: relative; }
.avec-unite input { padding-right: 68px; }
.avec-unite span { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: .8rem; color: var(--encre-3); pointer-events: none; }

.lignes { display: grid; gap: 10px; }
.ligne-tab {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px;
  background: var(--papier); padding: 12px; border: 1px solid var(--trait); align-items: end;
}
.ligne-tab input, .ligne-tab select { background-color: #fff; }
.ligne-tab label { font-size: .76rem; color: var(--encre-2); font-weight: 600; }
.retirer {
  background: none; border: 0; padding: 6px 0; cursor: pointer; justify-self: start;
  color: var(--rouge); font-size: .82rem; font-weight: 600; text-decoration: underline;
}
.ajouter {
  justify-self: start; margin-top: 2px; cursor: pointer;
  background: none; border: 1px dashed var(--vert); color: var(--vert);
  padding: 9px 14px; font-weight: 600; font-size: .88rem;
}
.ajouter:hover { background: rgba(31, 74, 59, .06); }
.total { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--trait); font-weight: 600; font-size: .95rem; }
.total b { font-family: var(--titre); font-weight: 400; font-size: 1.45rem; color: var(--vert); white-space: nowrap; }
.mois { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }

.alerte { background: #FBF0DF; border-left: 3px solid var(--ocre); padding: 12px 16px; font-size: .92rem; margin-top: 14px; }
.resume-erreurs { background: #FCF3F1; color: var(--rouge); border-left: 3px solid var(--rouge); padding: 12px 16px; margin-top: 8px; font-weight: 600; font-size: .92rem; }
.pied-etape { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 22px; }

/* Devis */
.devis { background: var(--blanc); border: 1px solid var(--trait); padding: clamp(22px, 4vw, 40px); }
.devis-tete { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; padding-bottom: 20px; border-bottom: 2px solid var(--encre); margin-bottom: 18px; }
.devis-tete h3 { font-size: 2rem; }
.devis-tete p { font-size: .88rem; color: var(--encre-2); }
.devis-tete .emetteur { text-align: right; }
.devis .client { font-size: .93rem; margin-bottom: 14px; }
.devis table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.devis td { padding: 12px 0; border-bottom: 1px solid var(--trait); vertical-align: top; }
.devis td:last-child { text-align: right; font-weight: 600; padding-left: 16px; }
.devis tr.net td { border-bottom: 0; padding-top: 18px; font-family: var(--titre); font-weight: 400; font-size: 1.55rem; color: var(--vert); }
.devis .mentions-devis { font-size: .83rem; color: var(--encre-3); margin-top: 16px; }

/* Espace client */
.suivi { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 22px 0 6px; }
.suivi li { font-size: .78rem; color: var(--encre-3); border-top: 3px solid var(--trait); padding-top: 8px; }
.suivi li.fait { border-color: var(--vert); color: var(--encre); font-weight: 600; }
.recap details { border-top: 1px solid var(--trait); }
.recap summary { cursor: pointer; padding: 13px 0; font-weight: 600; }
.recap dl { margin-bottom: 14px; font-size: .92rem; }
.recap dt { color: var(--encre-3); font-size: .8rem; margin-top: 10px; }
.recap dd { white-space: pre-wrap; overflow-wrap: anywhere; }
.pile > * + * { margin-top: 18px; }

#impression { display: none; }

/* 7. Pages de texte --------------------------------------------------- */

.page-texte { max-width: 760px; }
.page-texte h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 12px; }
.page-texte .maj { color: var(--encre-3); font-size: .9rem; margin-bottom: 40px; }
.page-texte h2 { font-size: 1.6rem; margin: 40px 0 12px; }
.page-texte p, .page-texte li { color: var(--encre-2); }
.page-texte p + p { margin-top: 12px; }
.page-texte ul { margin-top: 10px; }
.page-texte li { padding-left: 18px; position: relative; margin-top: 6px; }
.page-texte li::before { content: ""; position: absolute; left: 0; top: .8em; width: 8px; height: 1px; background: var(--ocre); }
.page-texte a { color: var(--vert); }

/* 8. Pied de page ----------------------------------------------------- */

.pied { background: var(--vert-fonce); color: #B9C8BF; font-size: .92rem; padding-top: clamp(56px, 7vw, 80px); }
.pied-grille { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 48px; }
.pied .marque-nom { color: #fff; }
.pied .marque-sous { color: #B9C8BF; border-color: rgba(255, 255, 255, .2); }
.pied .presentation { margin-top: 18px; max-width: 36ch; }
.pied h2 { font-family: var(--texte); font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #fff; margin-bottom: 14px; }
.pied li + li { margin-top: 8px; }
.pied a { text-decoration: none; }
.pied a:hover { color: #fff; text-decoration: underline; }
.pied-bas {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px;
  padding-block: 20px 28px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: .82rem;
}

/* 9. Responsive ------------------------------------------------------- */

@media (max-width: 1080px) {
  .menu { gap: 22px; }
  .pied-grille { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  .hero-grille, .bp-hero-grille, .contexte-grille, .services-grille, .cabinet-grille,
  .temoignages-grille, .vision-grille, .contact-grille, .tarif-grille { grid-template-columns: 1fr; }
  .hero-photo { max-width: 520px; }
  .cadre-photo { aspect-ratio: 4 / 3.4; }
  .piliers-grille { grid-template-columns: 1fr; }
  .pilier, .pilier + .pilier { padding: 26px 0 18px; border-left: 0; border-bottom: 1px solid rgba(255, 255, 255, .22); }
  .services-photo { display: none; }
  .service .photo-mobile {
    display: block; grid-column: 2; margin-top: 16px; aspect-ratio: 16 / 9; overflow: hidden;
    background: var(--papier-2);
  }
  .service .photo-mobile img { width: 100%; height: 100%; object-fit: cover; }
  .etapes, .deroule { grid-template-columns: 1fr 1fr; }
  .etape:nth-child(3), .deroule li:nth-child(3) { padding-left: 0; border-left: 0; }
  .etape:nth-child(n+3), .deroule li:nth-child(n+3) { margin-top: 28px; }
  .confid-grille { grid-template-columns: 1fr; }
  .confid-grille > div, .confid-grille > div + div { padding: 20px 0; border-left: 0; border-bottom: 1px solid var(--trait); }
  .portes { grid-template-columns: 1fr; }
  .assistant { grid-template-columns: 1fr; }
  .cote { position: static; }
  .etapes-bp { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; border: 0; }
  .etapes-bp button { flex-direction: column; gap: 6px; border: 0; padding: 0; font-size: .72rem; text-align: center; }
  .cote .btn { width: auto; }
  .cote-pied { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
}

@media (max-width: 860px) {
  .bandeau { display: none; }
  .burger { display: block; }
  .marque-sous { display: none; }
  .menu {
    position: fixed; inset: 64px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--papier); border-bottom: 1px solid var(--trait);
    padding: 6px var(--gouttiere) 24px;
    box-shadow: 0 18px 30px -20px rgba(0, 0, 0, .25);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s, transform .25s var(--courbe), visibility .25s;
  }
  .menu.ouvert { opacity: 1; visibility: visible; transform: none; }
  .menu a { padding: 14px 0; border-bottom: 1px solid var(--trait); background: none; font-size: 1.05rem; color: var(--encre); }
  .menu .btn { margin-top: 18px; border: 0; justify-content: center; }
  .nav { height: 64px; }
  html { scroll-padding-top: 76px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .faits dl { grid-template-columns: 1fr 1fr; }
  .faits dl > div, .faits dl > div + div { padding: 16px 0; border-left: 0; }
  .faits dl > div:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--trait); }
  .faits dl > div:nth-child(n+3) { border-top: 1px solid var(--trait); }
  .reperes li { grid-template-columns: 1fr; gap: 2px; }
  .etapes, .deroule { grid-template-columns: 1fr; }
  .etape, .etape + .etape, .deroule li, .deroule li + li { padding: 20px 0; border-left: 0; margin-top: 0; border-bottom: 1px solid var(--trait); }
  .etape:nth-child(n+3), .deroule li:nth-child(n+3) { margin-top: 0; }
  .encart-bp { grid-template-columns: 1fr; }
  .champs, .grille { grid-template-columns: 1fr; }
  .bareme div { grid-template-columns: 1fr; gap: 2px; }
  .mois { grid-template-columns: 1fr 1fr; }
  .suivi { grid-template-columns: 1fr 1fr 1fr; }
  .etapes-bp span.libelle { display: none; }
  .pied-etape .btn { flex: 1; }
  details.aide { margin-left: 0; }
  .question h3 { grid-template-columns: 1.9rem 1fr; }
  .devis-tete .emetteur { text-align: left; }
  .pied-grille { grid-template-columns: 1fr; }
  .wa { padding: 13px; }
  .wa .texte-wa { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js .apparait, .js .titre-anime .ligne > span { opacity: 1; transform: none; }
  .js .rideau .cadre-photo { clip-path: none; }
}

/* 10. Impression du dossier ------------------------------------------- */

@media print {
  body > *:not(#impression) { display: none !important; }
  body { background: #fff; }
  #impression { display: block; color: #000; font: 10.5pt/1.45 var(--texte); }
  #impression h1 { font-size: 19pt; margin-bottom: 4pt; }
  #impression h2 { font-size: 13pt; margin: 16pt 0 6pt; padding-bottom: 3pt; border-bottom: 1px solid #999; }
  #impression h3 { font: 700 10.5pt var(--texte); margin: 10pt 0 2pt; }
  #impression p, #impression pre { margin: 0; white-space: pre-wrap; font-family: var(--texte); }
  #impression .q { break-inside: avoid; }
}
