/* ==========================================================================
   CASAMAST — Design system
   Palette : navy « bâtiment », teal « efficacité », amber « énergie »
   Modifier les variables ci-dessous suffit à rebrander tout le site.
   ========================================================================== */

/* ---- Police auto-hébergée : aucune requête vers un tiers (RGPD) --------- */
@font-face {
  font-family: "InterVariable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
                 U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
                 U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "InterVariable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
                 U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
                 U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* ---- Couleurs de marque, relevées sur le logo CASAMAST ---------------- */
  --brand-teal:  #29bc9f;   /* teal du picto et du mot « CASA »            */
  --brand-deep:  #124e56;   /* teal profond du mot « MAST »                */
  --brand-grey:  #a8a8a8;   /* gris du toit                               */

  /* Déclinaisons foncées (fonds, en-têtes) */
  --navy-900: #08282d;
  --navy-800: #0d3a41;
  --navy-700: #124e56;
  --navy-600: #1b646e;
  --navy-500: #2a7c86;

  /* Déclinaisons teal (le 500 est la couleur exacte du logo) */
  --teal-700: #166757;
  --teal-600: #1b7c68;   /* seuil AA sur blanc : 5,1:1 — texte et liens    */
  --teal-500: #29bc9f;   /* couleur de marque — aplats, barres, boutons    */
  --teal-400: #4fcdb4;
  --teal-100: #ddf5ef;

  /* Accent chaud : seul ton hors charte, réservé aux alertes et à
     l'énergie. Le supprimer revient à remplacer ces trois variables
     par leurs équivalents --brand-grey / --slate-*.                       */
  --amber-500: #d9882b;
  --amber-400: #eda344;
  --amber-100: #fbeedc;

  --slate-900: #0c1f24;
  --slate-700: #2f4a51;
  --slate-500: #5d7980;
  --slate-400: #8aa2a8;
  --slate-200: #d8e3e5;
  --slate-100: #ecf3f4;
  --slate-50:  #f6fafa;
  --white: #ffffff;

  /* Sémantique */
  --bg: var(--white);
  --bg-alt: var(--slate-50);
  --bg-dark: var(--navy-900);
  --text: var(--slate-900);
  --text-muted: var(--slate-500);
  --border: var(--slate-200);
  --brand: var(--teal-500);
  --brand-dark: var(--teal-600);
  --on-brand: #062a2f;      /* texte posé sur un aplat teal — 6,5:1        */
  --accent: var(--amber-500);

  /* Typo */
  --font-sans: "InterVariable", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "InterVariable", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Rythme */
  --maxw: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(4rem, 9vw, 7.5rem);
  --radius-s: 8px;
  --radius: 16px;
  --radius-l: 28px;

  --shadow-s: 0 1px 2px rgba(8, 40, 45, .06), 0 2px 8px rgba(8, 40, 45, .05);
  --shadow-m: 0 4px 12px rgba(8, 40, 45, .07), 0 14px 40px rgba(8, 40, 45, .08);
  --shadow-l: 0 10px 30px rgba(8, 40, 45, .1), 0 30px 70px rgba(8, 40, 45, .12);
}

/* --------------------------------------------------------------- Reset -- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy-900);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 .6em;
  font-weight: 700;
}
h1 { font-size: clamp(2.15rem, 5.2vw, 3.65rem); letter-spacing: -0.033em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.55rem); letter-spacing: -0.028em; }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.35rem); }
h4 { font-size: 1.02rem; }
p  { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.15em; }
li { margin-bottom: .45em; }
hr { border: 0; border-top: 1px solid var(--border); margin: 2.5rem 0; }
:focus-visible { outline: 3px solid var(--teal-400); outline-offset: 3px; border-radius: 4px; }

/* ------------------------------------------------------------- Layout -- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 820px; }
.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(2.75rem, 6vw, 4.5rem); }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--bg-dark); color: #cfdae4; }
.section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }
.section--dark a { color: var(--teal-400); }

.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--text-muted); font-size: 1.08rem; margin-bottom: 0; }
.section--dark .section-head p { color: #a9bccd; }

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--brand-dark);
  margin-bottom: .85rem;
}
.section--dark .eyebrow { color: var(--teal-400); }

.grid { display: grid; gap: clamp(1.1rem, 2.2vw, 1.75rem); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(.9rem, 1.6vw, 1.15rem); }
.grid--5 .card { padding: 1.25rem 1.15rem; }
.grid--5 .card h3 { font-size: 1.02rem; }
.grid--5 .card p { font-size: .9rem; }
@media (max-width: 1140px) { .grid--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1040px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 780px) { .grid--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) {
  .grid--2, .grid--3, .grid--4, .grid--5 { grid-template-columns: 1fr; }
}

/* Ancrage : compense l'en-tête collant lors d'un saut vers une section */
.section[id] { scroll-margin-top: 92px; }
.card[id] { scroll-margin-top: 110px; }

/* ------------------------------------------------------------ Buttons -- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .82rem 1.5rem;
  border-radius: 999px;
  font-weight: 600; font-size: .97rem; line-height: 1;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
  text-decoration: none !important;
}
.btn svg { width: 1.05em; height: 1.05em; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--brand); color: var(--on-brand); box-shadow: 0 6px 18px rgba(41,188,159,.32); }
.btn--primary:hover { background: var(--teal-400); box-shadow: 0 10px 26px rgba(41,188,159,.40); }
.btn--dark { background: var(--navy-800); color: #fff; }
.btn--dark:hover { background: var(--navy-900); }
.btn--ghost { border-color: var(--slate-200); color: var(--navy-800); background: #fff; }
.btn--ghost:hover { border-color: var(--navy-800); }
.section--dark .btn--ghost { background: transparent; border-color: rgba(255,255,255,.28); color: #fff; }
.section--dark .btn--ghost:hover { border-color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.btn-row--center { justify-content: center; }

.link-arrow { font-weight: 600; display: inline-flex; align-items: center; gap: .4rem; }
.link-arrow::after { content: "→"; transition: transform .18s ease; }
.link-arrow:hover::after { transform: translateX(3px); }

/* ------------------------------------------------------------- Header -- */
.header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.header__inner { display: flex; align-items: center; gap: 1.5rem; height: 74px; }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none !important; flex: none; }
.brand__logo { height: 40px; width: auto; display: block; }
.brand__mark { width: 40px; height: auto; flex: none; }
/* Version claire du logo, pour les fonds foncés (pied de page) */
.brand--light .lg-dark { fill: #ffffff; }
.brand--light .lg-grey { fill: rgba(255,255,255,.5); }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-size: 1.32rem; line-height: 1; font-style: italic; letter-spacing: .005em; }
.brand__name b { font-weight: 800; color: var(--brand-teal); }
.brand__name i { font-weight: 300; font-style: italic; color: var(--brand-deep); }
.brand--light .brand__name i { color: #ffffff; }
.brand__tag { font-size: .6rem; letter-spacing: .19em; text-transform: uppercase; color: var(--text-muted); margin-top: 3px; }

.nav { margin-left: auto; display: flex; align-items: center; gap: .35rem; }
.nav__item { position: relative; }
.nav__link {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .6rem .62rem; border-radius: 10px;
  font-size: .92rem; font-weight: 500; color: var(--slate-700);
  text-decoration: none !important; white-space: nowrap;
}
.nav__link:hover, .nav__item:hover > .nav__link { color: var(--navy-900); background: var(--slate-100); }
.nav__link[aria-current="page"] { color: var(--navy-900); font-weight: 650; }
.nav__caret { width: .6rem; opacity: .5; }

.nav__panel {
  position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%) translateY(6px);
  min-width: 340px; padding: .6rem;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-m);
  opacity: 0; visibility: hidden; transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.nav__item:hover > .nav__panel, .nav__item:focus-within > .nav__panel {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.nav__sub { display: flex; flex-direction: column; }
.nav__sublink { padding: .6rem .7rem; border-radius: 10px; text-decoration: none !important; }
.nav__sublink:hover { background: var(--slate-100); }
.nav__sublink strong { display: block; color: var(--navy-900); font-size: .94rem; font-weight: 620; }
.nav__sublink span { display: block; color: var(--text-muted); font-size: .82rem; line-height: 1.4; }

.header__actions { display: flex; align-items: center; gap: .6rem; flex: none; }
.lang {
  display: inline-flex; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; background: #fff;
}
.lang a { padding: .34rem .66rem; font-size: .78rem; font-weight: 700; color: var(--text-muted); text-decoration: none !important; letter-spacing: .04em; }
.lang a[aria-current="true"] { background: var(--navy-800); color: #fff; }
.header .btn { padding: .62rem 1.1rem; font-size: .9rem; }

.burger {
  display: none; width: 42px; height: 42px; border: 1px solid var(--border); background: #fff;
  border-radius: 11px; cursor: pointer; padding: 0; align-items: center; justify-content: center;
}
.burger span { display: block; width: 18px; height: 2px; background: var(--navy-800); position: relative; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--navy-800); }
.burger span::before { top: -6px; } .burger span::after { top: 6px; }

@media (max-width: 1180px) {
  .nav, .header__actions .btn { display: none; }
  .burger { display: inline-flex; }
  .header__actions { margin-left: auto; }
}
@media (max-width: 560px) {
  .header__inner { gap: .75rem; height: 66px; }
  .brand__tag { display: none; }
  .brand__name { font-size: 1.05rem; }
  .header__actions { gap: .45rem; }
}

.mobile-nav {
  display: none; border-top: 1px solid var(--border); background: #fff;
  max-height: calc(100vh - 74px); overflow-y: auto;
}
.mobile-nav.is-open { display: block; }
.mobile-nav ul { list-style: none; margin: 0; padding: .75rem var(--gutter) 1.5rem; }
.mobile-nav li { margin: 0; }
.mobile-nav a { display: block; padding: .72rem 0; border-bottom: 1px solid var(--slate-100); color: var(--navy-800); font-weight: 550; text-decoration: none !important; }
.mobile-nav .is-sub a { padding-left: 1rem; font-weight: 450; color: var(--slate-700); font-size: .94rem; }
.mobile-nav .btn { margin-top: 1.1rem; width: 100%; justify-content: center; }

/* --------------------------------------------------------------- Hero -- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 480px at 78% -8%, rgba(41,188,159,.22), transparent 60%),
    radial-gradient(700px 420px at 8% 108%, rgba(168,168,168,.16), transparent 62%),
    linear-gradient(168deg, var(--navy-900) 0%, var(--navy-800) 46%, #12525c 100%);
  color: #d3dfe9;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(ellipse 78% 72% at 62% 34%, #000 20%, transparent 78%);
}
.hero__inner { position: relative; z-index: 1; padding-block: clamp(3.75rem, 9vw, 7rem); }
.hero__grid { display: grid; gap: clamp(2rem, 4vw, 3.5rem); align-items: center; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); }
@media (max-width: 900px) { .hero__grid { grid-template-columns: 1fr; } }
.hero h1 { color: #fff; margin-bottom: .55em; }
.hero__lead { font-size: clamp(1.05rem, 1.7vw, 1.24rem); color: #b7c8d7; max-width: 40ch; }
.hero--page .hero__inner { padding-block: clamp(3rem, 6vw, 4.75rem); }
.hero--page .hero__lead { max-width: 58ch; }

.hero__badge {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .34rem .8rem .34rem .4rem; border-radius: 999px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
  font-size: .82rem; color: #d9e6ef; margin-bottom: 1.3rem;
}
.hero__badge b { background: var(--teal-500); color: var(--on-brand); padding: .18rem .5rem; border-radius: 999px; font-size: .7rem; letter-spacing: .07em; text-transform: uppercase; }

.breadcrumb { font-size: .84rem; color: #93a9bb; margin-bottom: 1rem; }
.breadcrumb a { color: #93a9bb; }
.breadcrumb span { opacity: .5; margin-inline: .4rem; }

/* Visuel « bâtiment piloté » */
.hero__viz { position: relative; }
.viz-card {
  background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-l); padding: 1.35rem; backdrop-filter: blur(8px);
  box-shadow: var(--shadow-l);
}
.viz-card__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.1rem; }
.viz-card__title { font-size: .82rem; letter-spacing: .11em; text-transform: uppercase; color: #9fb5c7; }
.viz-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal-400); box-shadow: 0 0 0 4px rgba(41,188,159,.22); }
.viz-rows { display: grid; gap: .6rem; }
.viz-row {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .75rem;
  padding: .72rem .9rem; border-radius: 13px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.07);
}
.viz-row__label { font-size: .88rem; color: #cddbe6; }
.viz-row__label small { display: block; color: #7f97ab; font-size: .74rem; }
.viz-row__value { font-variant-numeric: tabular-nums; font-weight: 700; color: #fff; font-size: .95rem; }
.viz-row__value em { font-style: normal; color: var(--teal-400); font-size: .78rem; margin-left: .3rem; }
.viz-bar { grid-column: 1 / -1; height: 4px; border-radius: 999px; background: rgba(255,255,255,.1); overflow: hidden; }
.viz-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--teal-500), var(--teal-400)); }
.viz-bar--amber i { background: linear-gradient(90deg, var(--amber-500), var(--amber-400)); }
.viz-bar--grey  i { background: linear-gradient(90deg, #8f9a9c, var(--brand-grey)); }

/* Le panneau de supervision est conçu pour les fonds sombres (hero, section
   sombre). Sur fond clair, il bascule automatiquement en habillage clair.    */
.section:not(.section--dark) .viz-card {
  background: #fff; border-color: var(--border); box-shadow: var(--shadow-m); backdrop-filter: none;
}
.section:not(.section--dark) .viz-card__title { color: var(--text-muted); }
.section:not(.section--dark) .viz-row { background: var(--slate-50); border-color: var(--border); }
.section:not(.section--dark) .viz-row__label { color: var(--slate-700); }
.section:not(.section--dark) .viz-row__label small { color: var(--text-muted); }
.section:not(.section--dark) .viz-row__value { color: var(--navy-900); }
.section:not(.section--dark) .viz-row__value em { color: var(--teal-600); }
.section:not(.section--dark) .viz-bar { background: var(--slate-200); }

/* --------------------------------------------------------------- Stats -- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.5rem; }
.stat__value { font-size: clamp(2rem, 3.6vw, 2.75rem); font-weight: 800; letter-spacing: -.035em; color: var(--navy-900); line-height: 1; }
.section--dark .stat__value { color: #fff; }
.stat__label { color: var(--text-muted); font-size: .93rem; margin-top: .55rem; }
.section--dark .stat__label { color: #9db2c3; }
.stat { border-left: 3px solid var(--teal-400); padding-left: 1.1rem; }

/* --------------------------------------------------------------- Cards -- */
.card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: clamp(1.35rem, 2.4vw, 1.85rem);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
a.card { text-decoration: none !important; color: inherit; }
a.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-m); border-color: var(--teal-400); }
.card__icon {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  background: var(--teal-100); color: var(--teal-700); margin-bottom: 1.05rem; flex: none;
}
.card__icon svg { width: 23px; height: 23px; }
.card__icon--amber { background: var(--amber-100); color: #b9741c; }
.card__icon--navy { background: #e3ebf3; color: var(--navy-700); }
.card h3 { margin-bottom: .45em; }
.card p { color: var(--text-muted); font-size: .96rem; margin-bottom: 0; }
.card__meta { margin-top: auto; padding-top: 1.15rem; font-weight: 600; font-size: .93rem; color: var(--brand-dark); }
.card ul { margin-top: .9rem; margin-bottom: 0; padding-left: 1.05em; color: var(--text-muted); font-size: .94rem; }
.card--dark { background: rgba(255,255,255,.045); border-color: rgba(255,255,255,.12); }
.card--dark p { color: #9fb5c7; }
.card--feature { background: linear-gradient(160deg, var(--navy-800), var(--navy-900)); border-color: transparent; color: #cbd9e4; }
.card--feature h3 { color: #fff; } .card--feature p { color: #a4b8c8; }

.tag {
  display: inline-block; padding: .28rem .68rem; border-radius: 999px;
  background: var(--slate-100); color: var(--slate-700);
  font-size: .76rem; font-weight: 650; letter-spacing: .02em; margin: 0 .35rem .35rem 0;
}
.tag--brand { background: var(--teal-100); color: var(--teal-700); }
.tag--amber { background: var(--amber-100); color: #a96a17; }

/* --------------------------------------------------------------- Split -- */
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: clamp(2rem, 4.5vw, 4rem); align-items: center; }
.split--reverse > *:first-child { order: 2; }
@media (max-width: 760px) { .split--reverse > *:first-child { order: 0; } }
.split__media {
  border-radius: var(--radius-l); overflow: hidden; border: 1px solid var(--border);
  background: linear-gradient(150deg, var(--slate-100), #fff);
  min-height: 260px; display: grid; place-items: center; padding: 2rem;
  box-shadow: var(--shadow-s);
}
.split__media--dark { background: linear-gradient(150deg, var(--navy-800), var(--navy-900)); border-color: transparent; }

/* ------------------------------------------------------------- Feature -- */
.featlist { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.15rem; }
.featlist li { display: grid; grid-template-columns: 26px 1fr; gap: .9rem; margin: 0; }
.featlist svg { width: 22px; height: 22px; color: var(--brand); margin-top: 2px; }
.featlist strong { display: block; color: var(--navy-900); font-weight: 640; }
.featlist span { color: var(--text-muted); font-size: .96rem; }
.section--dark .featlist strong { color: #fff; }
.section--dark .featlist span { color: #9db2c3; }

/* --------------------------------------------------------------- Steps -- */
.steps { counter-reset: step; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.step { position: relative; padding-top: 2.9rem; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; top: 0; left: 0;
  font-size: .8rem; font-weight: 800; letter-spacing: .1em; color: var(--brand-dark);
  background: var(--teal-100); border-radius: 999px; padding: .3rem .7rem;
}
.step h3 { font-size: 1.08rem; margin-bottom: .4em; }
.step p { color: var(--text-muted); font-size: .95rem; margin-bottom: 0; }
.section--dark .step::before { background: rgba(41,188,159,.16); color: var(--teal-400); }

/* --------------------------------------------------------------- Table -- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 560px; }
th, td { text-align: left; padding: .95rem 1.15rem; border-bottom: 1px solid var(--slate-100); vertical-align: top; }
th { background: var(--slate-50); font-weight: 650; color: var(--navy-900); font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; }
tbody tr:last-child td { border-bottom: 0; }
td strong { color: var(--navy-900); }

/* ----------------------------------------------------------------- FAQ -- */
.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.25rem 2.5rem 1.25rem 0; position: relative;
  font-weight: 620; color: var(--navy-900); font-size: 1.04rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: .4rem; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; font-weight: 400; color: var(--brand); line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding-bottom: 1.35rem; color: var(--text-muted); max-width: 68ch; }
.faq details > div p:last-child { margin-bottom: 0; }

/* -------------------------------------------------------------- Downloads */
.doc {
  display: flex; align-items: center; gap: 1.05rem;
  padding: 1.1rem 1.25rem; border: 1px solid var(--border); border-radius: var(--radius);
  background: #fff; text-decoration: none !important; color: inherit;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.doc:hover { border-color: var(--teal-400); box-shadow: var(--shadow-s); transform: translateY(-2px); }
.doc__icon { width: 42px; height: 42px; flex: none; border-radius: 11px; background: var(--slate-100); color: var(--navy-700); display: grid; place-items: center; }
.doc__icon svg { width: 20px; height: 20px; }
.doc__body { min-width: 0; }
.doc__body strong { display: block; color: var(--navy-900); font-size: .99rem; }
.doc__body span { color: var(--text-muted); font-size: .85rem; }
.doc__cta { margin-left: auto; color: var(--brand-dark); font-weight: 650; font-size: .9rem; white-space: nowrap; }

/* ---------------------------------------------------------------- Forms -- */
.form { display: grid; gap: 1.05rem; }
.form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.05rem; }
.field { display: grid; gap: .4rem; }
.field label { font-size: .88rem; font-weight: 620; color: var(--navy-900); }
.field label span { color: var(--text-muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; padding: .78rem .95rem; font: inherit; font-size: .97rem; color: var(--text);
  background: #fff; border: 1px solid var(--slate-200); border-radius: 11px;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--teal-400); box-shadow: 0 0 0 4px rgba(41,188,159,.18);
}
.check { display: grid; grid-template-columns: 20px 1fr; gap: .7rem; align-items: start; font-size: .88rem; color: var(--text-muted); }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--teal-500); }
.form__note { font-size: .84rem; color: var(--text-muted); }

.callout {
  border: 1px solid var(--border); border-left: 3px solid var(--amber-500);
  background: var(--amber-100); border-radius: var(--radius-s);
  padding: 1.1rem 1.3rem; font-size: .95rem; color: #6c4712;
}
.callout strong { color: #4d3209; }
.callout p:last-child { margin-bottom: 0; }


/* ------------------------------------------------------- Captures écran -- */
.screens { display: grid; gap: clamp(1.1rem, 2.4vw, 2rem); align-items: start; }
.screens--1 { grid-template-columns: minmax(0, 1fr); max-width: 340px; margin-inline: auto; }
.screens--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 700px; margin-inline: auto; }
.screens--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 1000px; margin-inline: auto; }
.screens--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .screens--3, .screens--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .screens--2, .screens--3, .screens--4 { grid-template-columns: 1fr; max-width: 320px; } }

.shot { margin: 0; }
.shot img { width: 100%; height: auto; display: block; background: var(--slate-100); }
.shot--phone img {
  border-radius: 26px;
  box-shadow: 0 0 0 6px var(--navy-800), 0 18px 40px -14px rgba(8,40,45,.55);
}
.shot--wide { max-width: 100%; }
.shot--wide img {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-m);
}
.section--dark .shot--wide img { border-color: rgba(255,255,255,.14); }
.shot figcaption {
  margin-top: .95rem; font-size: .88rem; line-height: 1.5; color: var(--text-muted); text-align: center;
}
.section--dark .shot figcaption { color: #9db2c3; }
.shot figcaption strong { color: var(--navy-900); font-weight: 620; }
.section--dark .shot figcaption strong { color: #fff; }
/* Une capture large seule occupe toute la largeur du conteneur */
.screens--1 .shot--wide { max-width: none; }
.screens:has(.shot--wide) { max-width: none; }

/* --------------------------------------------------------------- Prose -- */
.prose { max-width: 72ch; }
.prose h2 { margin-top: 2.4em; }
.prose h3 { margin-top: 1.9em; }
.prose > *:first-child { margin-top: 0; }
.prose .muted { color: var(--text-muted); font-size: .92em; }

/* -------------------------------------------------------------- CTA band */
.cta-band {
  background: linear-gradient(140deg, var(--navy-800), var(--navy-900) 62%, #10464f);
  border-radius: var(--radius-l); padding: clamp(2.25rem, 5vw, 3.75rem);
  color: #c9d8e4; position: relative; overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; inset: auto -10% -70% auto; width: 460px; height: 460px;
  background: radial-gradient(circle, rgba(41,188,159,.30), transparent 66%);
}
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; max-width: 20ch; }
.cta-band p { color: #a8bccc; max-width: 52ch; }

/* -------------------------------------------------------------- Footer -- */
.footer { background: var(--navy-900); color: #92a8ba; padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; font-size: .93rem; }
.footer a { color: #b9cbd9; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer__grid { display: grid; gap: 2.25rem; grid-template-columns: minmax(240px, 1.4fr) repeat(auto-fit, minmax(150px, 1fr)); }
.footer h4 { color: #fff; font-size: .8rem; letter-spacing: .13em; text-transform: uppercase; margin-bottom: 1rem; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: .55rem; }
.footer .brand__name { color: #fff; } .footer .brand__tag { color: #7d94a8; }
.footer__bottom {
  margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.1);
  display: flex; flex-wrap: wrap; gap: 1rem 1.75rem; align-items: center; font-size: .85rem;
}
.footer__bottom p { margin: 0; }
.footer__legal { margin-left: auto; display: flex; flex-wrap: wrap; gap: 1.25rem; }

/* -------------------------------------------------------- Utils / anim -- */
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.text-muted { color: var(--text-muted); }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s cubic-bezier(.22,1,.36,1), transform .6s cubic-bezier(.22,1,.36,1); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--navy-900); color: #fff;
  padding: .75rem 1.25rem; z-index: 100; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

@media print {
  .header, .footer, .cta-band, .mobile-nav { display: none !important; }
  body { font-size: 12pt; }
}
