/* Mon Plan de Maison — site vitrine (styles communs à toutes les pages).
   Une seule police (Inter, fichier local), fond clair, accent orange du logo (#D2572A).
   Mobile d'abord : tout est pensé pour 360-414 px, puis élargi. */

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --fond: #FBF8F4;          /* crème chaud */
  --fond-2: #F5EFE7;        /* sable très clair */
  --carte: #FFFFFF;
  --encre: #1F1A17;
  --texte: #3D3530;
  --doux: #6E625A;
  --ligne: #EAE1D6;
  --ligne-2: #F1EAE1;
  --orange: #D2572A;        /* couleur du logo */
  --orange-bouton: #C24B1E; /* un ton plus profond : texte blanc lisible (contraste 4,8:1) */
  --orange-survol: #A93F17;
  --orange-texte: #B0441B;
  --orange-pale: #FCEEE6;
  --orange-pale-2: #F9E2D5;
  --vert: #2E7D4F;
  --vert-pale: #E6F3EB;
  --ombre-1: 0 1px 2px rgba(60, 40, 20, .05), 0 2px 8px rgba(60, 40, 20, .05);
  --ombre-2: 0 2px 6px rgba(60, 40, 20, .05), 0 18px 40px -12px rgba(60, 40, 20, .18);
  --ombre-3: 0 30px 60px -20px rgba(90, 50, 20, .28), 0 8px 20px -8px rgba(60, 40, 20, .12);
  --rayon: 20px;
  --rayon-s: 14px;
  --police: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --courbe: cubic-bezier(.22, .8, .24, 1);
  --large: 1160px;
  --gouttiere: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font-family: var(--police);
  font-size: 16.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv11", "ss01";
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange-texte); text-underline-offset: 3px; }
h1, h2, h3, h4 { color: var(--encre); margin: 0; font-weight: 750; letter-spacing: -0.022em; line-height: 1.12; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 3px solid rgba(210, 87, 42, .45); outline-offset: 3px; border-radius: 8px; }
.icone { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.conteneur { width: 100%; max-width: var(--large); margin: 0 auto; padding: 0 max(var(--gouttiere), env(safe-area-inset-left)); }
.etroit { max-width: 780px; }
section { padding: 64px 0; }

/* ---------- En-tête ---------- */
.entete {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 248, 244, .86);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.entete.defile { border-bottom-color: var(--ligne); box-shadow: 0 6px 20px -16px rgba(60, 40, 20, .35); }
.entete .conteneur { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.marque { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--encre); font-weight: 750; font-size: 16.5px; letter-spacing: -0.02em; white-space: nowrap; }
.marque img { width: 34px; height: 34px; border-radius: 10px; box-shadow: 0 4px 10px -4px rgba(210, 87, 42, .5); }
.marque span em { font-style: normal; color: var(--orange); }
.menu { display: none; gap: 4px; }
.menu a { color: var(--texte); text-decoration: none; font-weight: 550; font-size: 15px; padding: 8px 12px; border-radius: 10px; transition: background .2s, color .2s; }
.menu a:hover { background: var(--fond-2); color: var(--encre); }

/* ---------- Boutons ---------- */
.bouton {
  --h: 54px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--h); padding: 0 26px;
  border-radius: 14px; border: 0; cursor: pointer;
  font: 700 17px/1.1 var(--police); letter-spacing: -0.01em; text-decoration: none;
  background: var(--orange-bouton); color: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 10px 24px -10px rgba(194, 75, 30, .75);
  transition: background .2s, transform .2s var(--courbe), box-shadow .2s;
  -webkit-tap-highlight-color: transparent;
}
.bouton:hover { background: var(--orange-survol); }
.bouton:active { transform: scale(.98); }
.bouton .icone { width: 19px; height: 19px; transition: transform .25s var(--courbe); }
.bouton:hover .icone { transform: translateX(3px); }
.bouton.plein { width: 100%; }
.bouton.petit { --h: 42px; padding: 0 16px; font-size: 15px; border-radius: 11px; box-shadow: none; }
.bouton.clair { background: var(--carte); color: var(--encre); border: 1px solid var(--ligne); box-shadow: var(--ombre-1); }
.bouton.clair:hover { background: var(--fond-2); }
.bouton.clair .icone { color: var(--orange); }

/* ---------- Petits éléments ---------- */
.surtitre { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 650; color: var(--orange-texte); background: var(--orange-pale); border: 1px solid var(--orange-pale-2); padding: 6px 12px; border-radius: 999px; letter-spacing: .01em; }
.surtitre .point { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgba(210, 87, 42, .15); }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--orange-texte); margin-bottom: 12px; }
.titre-section { font-size: clamp(28px, 7.4vw, 44px); }
.chapeau { font-size: 17.5px; color: var(--doux); margin-top: 14px; max-width: 620px; }
.entete-section { margin-bottom: 36px; }
.entete-section.centre { text-align: center; }
.entete-section.centre .chapeau { margin-left: auto; margin-right: auto; }
.liste-coches { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.liste-coches li { display: flex; gap: 10px; align-items: flex-start; }
.liste-coches .icone { width: 20px; height: 20px; color: var(--vert); margin-top: 2px; stroke-width: 2.4; }
.note { font-size: 13.5px; color: var(--doux); }

/* ---------- Téléphone (vraies captures) ---------- */
.telephone {
  position: relative; width: 100%; max-width: 280px;
  background: #fff; border-radius: 38px; padding: 8px;
  border: 1px solid var(--ligne);
  box-shadow: var(--ombre-3);
}
.telephone::before { content: ""; position: absolute; top: 15px; left: 50%; width: 64px; height: 6px; margin-left: -32px; border-radius: 6px; background: #EDE6DE; z-index: 2; }
.telephone img { width: 100%; aspect-ratio: 600 / 1223; object-fit: cover; object-position: top; border-radius: 30px; background: var(--fond-2); }

/* ---------- Apparition au défilement ---------- */
.apparait { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--courbe), transform .7s var(--courbe); transition-delay: var(--retard, 0s); }
.apparait.vu { opacity: 1; transform: none; }
.sans-js .apparait { opacity: 1; transform: none; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--carte); border: 1px solid var(--ligne); border-radius: 16px; transition: box-shadow .25s, border-color .25s; }
.faq details[open] { box-shadow: var(--ombre-1); border-color: #E2D6C8; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-weight: 650; color: var(--encre); font-size: 16.5px; line-height: 1.35; min-height: 56px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { position: relative; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--orange-pale); }
.faq summary .plus::before, .faq summary .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; border-radius: 2px; background: var(--orange); transition: transform .3s var(--courbe); }
.faq summary .plus::after { transform: rotate(90deg); }
.faq details[open] summary .plus::after { transform: rotate(0); }
.faq .reponse { padding: 0 20px 18px; color: var(--texte); }
.faq .reponse p + p { margin-top: 10px; }
.faq .reponse ul { margin: 8px 0 0; padding-left: 20px; }
.faq .reponse li { margin: 4px 0; }

/* ---------- Pied de page ---------- */
.pied { border-top: 1px solid var(--ligne); background: var(--fond-2); padding: 44px 0 calc(36px + env(safe-area-inset-bottom)); font-size: 14.5px; color: var(--doux); }
.pied .grille { display: grid; gap: 28px; }
.pied .marque { font-size: 16px; }
.pied p { margin-top: 12px; max-width: 360px; }
.pied h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--encre); margin-bottom: 12px; font-weight: 700; }
.pied ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pied a { color: var(--texte); text-decoration: none; }
.pied a:hover { color: var(--orange-texte); text-decoration: underline; }
.pied .bas { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--ligne); display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; font-size: 13px; }

/* ---------- Bouton d'aide ---------- */
.aide {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 45;
  display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 16px 0 14px;
  border-radius: 999px; background: var(--carte); color: var(--encre); text-decoration: none;
  font-weight: 650; font-size: 14.5px; border: 1px solid var(--ligne); box-shadow: var(--ombre-2);
  transition: transform .3s var(--courbe), bottom .3s var(--courbe);
}
.aide .icone { color: var(--vert); }
.aide:hover { transform: translateY(-2px); }

/* ---------- Pages légales ---------- */
.legal { padding: 40px 0 72px; }
.legal h1 { font-size: clamp(30px, 7vw, 42px); margin-bottom: 8px; }
.legal .maj { color: var(--doux); margin-bottom: 28px; }
.legal .resume { background: var(--orange-pale); border: 1px solid var(--orange-pale-2); border-radius: var(--rayon); padding: 20px 22px; margin-bottom: 34px; }
.legal .resume h2 { font-size: 17px; margin: 0 0 8px; }
.legal .resume ul { margin: 0; padding-left: 20px; }
.legal h2 { font-size: 21px; margin: 38px 0 10px; }
.legal h3 { font-size: 17px; margin: 22px 0 6px; }
.legal p, .legal li { color: var(--texte); }
.legal p + p { margin-top: 10px; }
.legal ul { padding-left: 22px; }
.legal li { margin: 6px 0; }
.legal .encadre { background: var(--carte); border: 1px solid var(--ligne); border-radius: var(--rayon-s); padding: 18px 20px; margin-top: 12px; }
.legal table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 15px; background: var(--carte); border-radius: var(--rayon-s); overflow: hidden; border: 1px solid var(--ligne); }
.legal th, .legal td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--ligne-2); vertical-align: top; }
.legal th { background: var(--fond-2); color: var(--encre); font-weight: 650; }
.a-completer { background: #FFF3BF; color: #6B4E00; border: 1px dashed #D9A400; padding: 1px 6px; border-radius: 6px; font-weight: 700; font-size: .94em; }
.legal nav.sommaire { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.legal nav.sommaire a { font-size: 14px; font-weight: 600; text-decoration: none; padding: 7px 12px; border-radius: 999px; background: var(--carte); border: 1px solid var(--ligne); color: var(--texte); }
.legal nav.sommaire a[aria-current] { background: var(--orange-pale); border-color: var(--orange-pale-2); color: var(--orange-texte); }

@media (min-width: 720px) {
  :root { --gouttiere: 32px; }
  section { padding: 96px 0; }
  .pied .grille { grid-template-columns: 1.6fr 1fr 1fr; }
}
@media (min-width: 980px) {
  .menu { display: flex; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .apparait { opacity: 1; transform: none; }
}
