/* ==========================================================================
   DOMUS INTELLIGENCE — feuille de style
   Polices auto-hébergées (SIL OFL). Aucun appel externe, aucun cookie.
   ========================================================================== */

@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/newsreader-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("fonts/newsreader-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("fonts/newsreader-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("fonts/inter-latin-500-normal.woff2") format("woff2"); }

:root {
  --papier:    #fbfaf6;
  --papier-2:  #f2f1ea;
  --menthe:    #e3ebe4;
  --nuit:      #0b1a22;
  --nuit-2:    #112731;
  --sarcelle:  #0e6b63;
  --sarcelle-vif: #35b0a3;
  --sarcelle-fonce: #0a4a45;
  --encre:     #0e1c24;
  --gris:      #4f626b;
  --gris-nuit: #8ca3ac;
  --trait:     #ded9cd;
  --trait-nuit:#20353f;

  --serif: "Newsreader", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --marge: clamp(1.25rem, 4.5vw, 5rem);
  --rythme: clamp(5rem, 9vw, 9rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--papier);
  color: var(--encre);
  font-family: var(--sans);
  font-size: clamp(1rem, .95rem + .18vw, 1.05rem);
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--sarcelle); outline-offset: 3px; }

.evitement { position: absolute; left: -9999px; background: var(--sarcelle); color: #fff; padding: .75rem 1rem; z-index: 100; }
.evitement:focus { left: 1rem; top: 1rem; }

.enveloppe { width: min(1380px, 100%); margin-inline: auto; padding-inline: var(--marge); }
section { padding-block: var(--rythme); }

/* ---------- titraille ---------- */

h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(3rem, 1.2rem + 6vw, 6rem); line-height: .99; letter-spacing: -.021em; }
h2 { font-size: clamp(2.1rem, 1.15rem + 3.2vw, 3.7rem); line-height: 1.04; letter-spacing: -.018em; max-width: 17ch; }
h3 { font-size: 1.45rem; line-height: 1.22; letter-spacing: -.01em; }
p { margin: 0; }
.intro { color: var(--gris); font-size: 1.06rem; max-width: 54ch; }

.chapeau {
  display: flex; align-items: center; gap: .85rem;
  font-size: .7rem; font-weight: 500; letter-spacing: .19em; text-transform: uppercase;
  color: var(--sarcelle); margin: 0 0 1.9rem;
}
.chapeau::before { content: ""; width: 30px; height: 1px; background: currentColor; flex: none; }

.tete { max-width: 60rem; margin-bottom: clamp(3rem, 5vw, 4.75rem); }
.tete h2 + .intro { margin-top: 1.6rem; }

/* dispositif de périmètre : quatre équerres, employé avec parcimonie */
.perimetre-cadre { position: relative; }
.perimetre-cadre::before, .perimetre-cadre::after,
.perimetre-cadre > .coin-bas::before, .perimetre-cadre > .coin-bas::after {
  content: ""; position: absolute; width: 18px; height: 18px; border: 1px solid var(--sarcelle); opacity: .5;
}
.perimetre-cadre::before { top: -9px; left: -9px; border-right: 0; border-bottom: 0; }
.perimetre-cadre::after { top: -9px; right: -9px; border-left: 0; border-bottom: 0; }
.perimetre-cadre > .coin-bas::before { bottom: -9px; left: -9px; border-right: 0; border-top: 0; }
.perimetre-cadre > .coin-bas::after { bottom: -9px; right: -9px; border-left: 0; border-top: 0; }

/* ---------- en-tête ---------- */

.entete {
  position: sticky; top: 0; z-index: 60;
  background: rgba(251, 250, 246, .93);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--trait);
}
.entete .enveloppe { display: flex; align-items: center; gap: 2rem; min-height: 80px; }

.marque { display: flex; align-items: center; gap: .8rem; text-decoration: none; }
.marque > span { font-size: .99rem; letter-spacing: .14em; white-space: nowrap; }
.marque .b1 { font-weight: 500; color: var(--encre); }
.marque .b2 { font-weight: 400; color: var(--gris); }

.navigation { margin-left: auto; display: flex; align-items: center; gap: 1.9rem; }
.navigation a { font-size: .95rem; text-decoration: none; padding-block: .25rem; border-bottom: 1px solid transparent; }
.navigation a:hover { border-bottom-color: var(--sarcelle); color: var(--sarcelle); }
.langue { font-size: .78rem; font-weight: 500; letter-spacing: .12em; color: var(--gris); }

.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: .7rem;
  font: inherit; font-size: .96rem; font-weight: 500;
  padding: .95rem 1.7rem; background: var(--sarcelle); color: #fff;
  border: 1px solid var(--sarcelle); text-decoration: none; cursor: pointer;
  transition: background .18s ease, border-color .18s ease;
}
.bouton:hover { background: var(--sarcelle-fonce); border-color: var(--sarcelle-fonce); color: #fff; }
.entete .bouton { padding: .78rem 1.45rem; }
.entete .bouton:hover { border-bottom-color: var(--sarcelle-fonce); }

.lien-cle { text-decoration: none; font-size: .96rem; border-bottom: 1px solid var(--trait); padding-bottom: .45rem; }
.lien-cle:hover { border-color: var(--sarcelle); color: var(--sarcelle); }

/* menu mobile : divulgation native, sans script */
.menu { display: none; margin-left: auto; position: relative; }
.menu summary { list-style: none; cursor: pointer; font-size: .9rem; letter-spacing: .1em; text-transform: uppercase; padding: .6rem 0; }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { color: var(--sarcelle); }
.menu-panneau {
  position: absolute; right: 0; top: calc(100% + .7rem); width: max-content; min-width: 14rem;
  background: var(--papier); border: 1px solid var(--trait); padding: 1rem 1.4rem;
  display: grid; gap: .45rem; box-shadow: 0 18px 40px rgba(11, 26, 34, .1);
}
.menu-panneau a { text-decoration: none; padding: .35rem 0; font-size: .97rem; }
@media (max-width: 1120px) {
  .navigation { display: none; }
  .menu { display: block; }
}

/* ---------- ouverture ---------- */

.ouverture {
  background: linear-gradient(158deg, var(--papier-2) 0%, var(--papier) 45%, #e7eee8 100%);
  padding-block: clamp(3.5rem, 6vw, 6.5rem) clamp(4rem, 7vw, 7.5rem);
  border-bottom: 1px solid var(--trait);
}
.ouverture .enveloppe {
  display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: clamp(2.5rem, 5vw, 4.5rem); align-items: center;
}
@media (max-width: 980px) { .ouverture .enveloppe { grid-template-columns: 1fr; } }
h1 em { font-style: italic; color: var(--sarcelle); }
.ouverture .intro { margin-top: 2.4rem; font-size: 1.1rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; margin-top: 2.6rem; }

.schema text { font-family: var(--sans); }
@media (prefers-reduced-motion: no-preference) {
  .schema .pulse { animation: pulse 5.5s ease-in-out infinite; }
}
@keyframes pulse { 0%, 100% { opacity: .18; } 50% { opacity: .5; } }

/* ---------- bandeau sombre ---------- */

.bandeau { background: var(--nuit); color: #fff; padding-block: 3.1rem; }
.bandeau .enveloppe { display: flex; flex-wrap: wrap; gap: 2rem 3.5rem; align-items: center; justify-content: space-between; }
.bandeau q { font-family: var(--serif); font-style: italic; font-size: clamp(1.25rem, 1rem + .95vw, 1.7rem); line-height: 1.38; max-width: 33ch; quotes: none; }
.termes { display: flex; flex-wrap: wrap; gap: 1.4rem 2.75rem; list-style: none; margin: 0; padding: 0; }
.termes li { font-size: .73rem; letter-spacing: .15em; text-transform: uppercase; color: var(--gris-nuit); }
.termes i { display: block; font-style: normal; font-size: .72rem; letter-spacing: 0; text-transform: none; color: #5b757f; margin-top: .25rem; }

/* ---------- pourquoi : deux colonnes, filets seuls ---------- */

.arguments { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(2rem, 5vw, 5rem); }
.arguments > article { padding: 2.4rem 0; border-top: 1px solid var(--trait); display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); gap: 0 1.4rem; }
.arguments svg { color: var(--sarcelle); grid-row: span 2; margin-top: .35rem; }
.arguments p { color: var(--gris); margin-top: .7rem; font-size: .99rem; max-width: 42ch; }
@media (max-width: 820px) { .arguments { grid-template-columns: 1fr; } }

/* ---------- solutions ---------- */

.menthe { background: var(--menthe); }
.solutions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(2rem, 5vw, 5rem); }
.solutions > article { padding: 2.5rem 0 2.6rem; border-top: 1px solid rgba(14, 28, 36, .16); }
.solutions h3 { margin-bottom: .9rem; }
.solutions p { color: var(--gris); font-size: .99rem; max-width: 44ch; }
@media (max-width: 820px) { .solutions { grid-template-columns: 1fr; } }

/* ---------- sécurité ---------- */

.nuit { background: var(--nuit); color: #fff; }
.nuit .intro { color: var(--gris-nuit); max-width: 58ch; }
.nuit .chapeau { color: var(--sarcelle-vif); }

.echelle-legende {
  display: flex; align-items: center; gap: 1rem;
  font-size: .72rem; letter-spacing: .15em; text-transform: uppercase; color: var(--gris-nuit);
  margin-bottom: 1.25rem;
}
.echelle-legende i { flex: 1; height: 1px; background: linear-gradient(90deg, var(--sarcelle-vif), #e0a33a 55%, #3d7fd6); }

.niveaux { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.niveaux > article { padding: 2.4rem 2.4rem 2.8rem; border-left: 1px solid var(--trait-nuit); }
.niveaux > article:first-child { border-left: 0; padding-left: 0; }
.niveaux > article:last-child { padding-right: 0; }
.rang { display: flex; align-items: center; gap: .8rem; font-size: .74rem; letter-spacing: .15em; text-transform: uppercase; color: var(--gris-nuit); margin-bottom: 1.6rem; }
.pastille { width: 9px; height: 9px; border-radius: 50%; display: block; }
.niveaux h3 { margin-bottom: .9rem; }
.niveaux p { color: var(--gris-nuit); font-size: .98rem; }
@media (max-width: 900px) {
  .niveaux { grid-template-columns: 1fr; }
  .niveaux > article { border-left: 0; border-top: 1px solid var(--trait-nuit); padding: 2rem 0 2.2rem; }
  .niveaux > article:first-child { border-top: 0; }
}
.note { margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid var(--trait-nuit); color: var(--gris-nuit); font-size: .93rem; max-width: 84ch; }

/* ---------- données ---------- */

.donnees { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .92fr); gap: clamp(2.5rem, 5vw, 5.5rem); align-items: center; }
@media (max-width: 980px) { .donnees { grid-template-columns: 1fr; } }
.acquis { list-style: none; margin: 2.8rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2.5rem; }
@media (max-width: 620px) { .acquis { grid-template-columns: 1fr; } }
.acquis li { padding: .95rem 0; border-bottom: 1px solid var(--trait); font-size: .98rem; display: flex; gap: .75rem; }
.acquis li::before { content: "✓"; color: var(--sarcelle); }

.coffre { background: var(--nuit); color: #fff; padding: 1.9rem 2.1rem; }
.coffre-tete, .coffre-pied { display: flex; justify-content: space-between; align-items: center; font-size: .71rem; letter-spacing: .15em; text-transform: uppercase; color: var(--gris-nuit); }
.coffre-tete { padding-bottom: 1.3rem; }
.coffre-pied { padding-top: 1.5rem; border-top: 1px solid var(--trait-nuit); }
.coffre-tete em { font-style: normal; color: var(--sarcelle-vif); display: flex; align-items: center; gap: .5rem; }
.coffre-tete em::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--sarcelle-vif); }
.coffre ul { list-style: none; margin: 0; padding: 0; }
.coffre li { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: 1.15rem 0; border-top: 1px solid var(--trait-nuit); }
.coffre li b { display: block; font-size: .81rem; font-weight: 500; letter-spacing: .11em; text-transform: uppercase; }
.coffre li i { font-style: normal; font-size: .83rem; color: var(--gris-nuit); }
.coffre li em { font-style: normal; font-size: .8rem; color: var(--gris-nuit); letter-spacing: .06em; white-space: nowrap; }
.coffre-mention { margin-top: 1.1rem; font-size: .79rem; color: var(--gris); }

/* ---------- cas d'usage ---------- */

.usages { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--trait); }
.usages li { padding: 2.3rem 2rem 2.4rem; border-left: 1px solid var(--trait); }
.usages li:first-child { border-left: 0; padding-left: 0; }
.usages li:last-child { padding-right: 0; }
.usages h3 { font-size: 1.3rem; margin-bottom: .8rem; }
.usages p { color: var(--gris); font-size: .96rem; }
@media (max-width: 1000px) {
  .usages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .usages li:nth-child(odd) { border-left: 0; padding-left: 0; }
  .usages li:nth-child(even) { padding-right: 0; }
  .usages li:nth-child(n+3) { border-top: 1px solid var(--trait); }
}
@media (max-width: 560px) {
  .usages { grid-template-columns: 1fr; }
  .usages li { border-left: 0; padding: 1.8rem 0; border-top: 1px solid var(--trait); }
  .usages li:first-child { border-top: 0; }
}

/* ---------- méthode ---------- */

.etapes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0 1.75rem; }
.etapes li { position: relative; padding-top: 2.6rem; }
.etapes li::before {
  content: ""; position: absolute; top: 0; left: 0; right: -1.75rem; height: 1px; background: rgba(14, 28, 36, .2);
}
.etapes li:last-child::before { right: 0; }
.etapes li::after {
  content: ""; position: absolute; top: -3px; left: 0; width: 7px; height: 7px; border-radius: 50%;
  background: var(--menthe); border: 1px solid var(--sarcelle);
}
.etapes li:last-child::after { background: var(--sarcelle); }
.etapes .rang-etape { font-family: var(--serif); font-size: 1rem; color: var(--sarcelle); display: block; margin-bottom: 1.1rem; }
.etapes h3 { font-size: 1.28rem; margin-bottom: .7rem; }
.etapes p { color: var(--gris); font-size: .95rem; }
@media (max-width: 1000px) {
  .etapes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2rem; }
  .etapes li { padding-bottom: 2rem; }
  .etapes li::before { right: -2rem; }
  .etapes li:nth-child(2n)::before { right: 0; }
}
@media (max-width: 560px) { .etapes { grid-template-columns: 1fr; } .etapes li::before { right: 0; } }

/* ---------- FAQ et engagements ---------- */

.deux-colonnes { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
@media (max-width: 900px) { .deux-colonnes { grid-template-columns: 1fr; } }

.faq details { border-bottom: 1px solid var(--trait); }
.faq details:first-child { border-top: 1px solid var(--trait); }
.faq summary { cursor: pointer; list-style: none; position: relative; padding: 1.55rem 3rem 1.55rem 0; font-family: var(--serif); font-size: 1.3rem; line-height: 1.3; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .25rem; top: 50%; transform: translateY(-50%); font-family: var(--sans); font-size: 1.3rem; font-weight: 400; color: var(--sarcelle); }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 3rem 1.75rem 0; color: var(--gris); font-size: .99rem; }

.engagements { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(2rem, 4vw, 4rem); }
.engagements > div { padding: 2rem 0 2.2rem; border-top: 1px solid rgba(14, 28, 36, .16); }
.engagements h3 { font-size: 1.3rem; }
.engagements p { color: var(--gris); font-size: .95rem; margin-top: .65rem; max-width: 38ch; }
@media (max-width: 760px) { .engagements { grid-template-columns: 1fr; } }

/* ---------- contact ---------- */

.contact-bloc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2.5rem, 5vw, 5.5rem); align-items: start; }
@media (max-width: 900px) { .contact-bloc { grid-template-columns: 1fr; } }
.contact-bloc h2 { margin-bottom: 1.8rem; }
.confidentiel { display: flex; gap: 1.1rem; align-items: flex-start; margin-top: 3.25rem; padding-top: 1.75rem; border-top: 1px solid var(--trait-nuit); }
.confidentiel b { display: block; font-weight: 500; font-size: 1rem; color: #fff; }
.confidentiel span span, .confidentiel a { color: var(--gris-nuit); font-size: .93rem; }
.confidentiel a:hover { color: #fff; }

.formulaire { display: grid; gap: 2rem; }
.champ { display: grid; gap: .55rem; }
.champ label { font-size: .72rem; font-weight: 500; letter-spacing: .15em; text-transform: uppercase; color: var(--gris-nuit); }
.champ input, .champ textarea {
  font: inherit; color: #fff; background: transparent; border: 0;
  border-bottom: 1px solid var(--trait-nuit); padding: .5rem 0 .75rem; border-radius: 0;
}
.champ textarea { min-height: 6rem; resize: vertical; }
.champ input:focus, .champ textarea:focus { outline: none; border-bottom-color: var(--sarcelle-vif); }
.formulaire .bouton { width: 100%; padding: 1.15rem 1.7rem; }
.mention-rgpd { font-size: .83rem; color: var(--gris-nuit); line-height: 1.6; }
.mention-rgpd a { color: #fff; }

/* ---------- pied ---------- */

.pied { background: var(--nuit); color: var(--gris-nuit); border-top: 1px solid var(--trait-nuit); padding-block: 2.75rem; font-size: .89rem; }
.pied .enveloppe { display: flex; flex-wrap: wrap; gap: 1.25rem 2.5rem; align-items: center; justify-content: space-between; }
.pied .marque .b1 { color: #fff; }
.pied .marque .b2 { color: var(--gris-nuit); }
.pied nav { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.pied a { text-decoration: none; }
.pied a:hover { color: #fff; text-decoration: underline; }

/* ---------- pages juridiques ---------- */

.page-legale { padding-block: clamp(3rem, 5vw, 5rem) var(--rythme); }
.page-legale .enveloppe { width: min(880px, 100%); }
.page-legale h1 { font-size: clamp(2.2rem, 1.4rem + 2.4vw, 3.3rem); margin-bottom: .9rem; }
.page-legale h2 { font-size: 1.55rem; margin: 3.1rem 0 1rem; max-width: none; }
.page-legale p, .page-legale li { color: var(--gris); }
.page-legale p { max-width: 74ch; margin-bottom: 1rem; }
.page-legale ul { padding-left: 1.1rem; max-width: 74ch; }
.page-legale li { margin-bottom: .5rem; }
.page-legale strong { color: var(--encre); font-weight: 500; }
.page-legale .maj { font-size: .87rem; color: var(--sarcelle); margin-bottom: 2.4rem; }
.page-legale table { width: 100%; border-collapse: collapse; margin: 1.4rem 0; font-size: .95rem; }
.page-legale th, .page-legale td { text-align: left; vertical-align: top; padding: .85rem 1rem .85rem 0; border-bottom: 1px solid var(--trait); color: var(--gris); font-weight: 400; }
.page-legale th { color: var(--encre); width: 34%; font-weight: 500; }
