/* Elogma : systeme de design (logo « Gelule », palette « Indigo clinique »). Mobile d'abord. */

/* Polices hébergées sur le site (licence SIL Open Font License) */
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 500 800; font-display: swap; src: url("fonts/plus-jakarta-sans-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: "Plus Jakarta Sans"; font-style: normal; font-weight: 500 800; font-display: swap; src: url("fonts/plus-jakarta-sans-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("fonts/source-sans-3-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: "Source Sans 3"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("fonts/source-sans-3-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  /* Couleurs de la palette */
  --primaire: #1E3A8A; --primaire-survol: #172E6E; --secondaire: #0F766E; --accent: #F59E0B; --accent-survol: #FBBF24; --sur-accent: #1F1300;
  --sombre: #0B1433; --pied: #070D24; --clair: #5EEAD4; --sur-sombre: #FFFFFF; --sur-sombre-muet: #CBD5E1;
  --succes: #166534; --erreur: #B91C1C;
  /* Roles (changent en theme sombre) */
  --fond: #FFFFFF; --fond-alt: #F1F5F9; --carte: #FFFFFF; --texte: #0F172A; --muet: #475569; --ligne: #CBD5E1;
  --titre: #1E3A8A; --lien: #0F766E; --teinte: #E6F4F2; --teinte-2: #E8EDFB;
  /* Typographie */
  --police-titre: "Plus Jakarta Sans", "Segoe UI", Arial, sans-serif;
  --police-texte: "Source Sans 3", "Segoe UI", Arial, sans-serif;
  --t-base: 1.0625rem; --t-petit: 1rem; --t-grand: 1.1875rem;
  --t-h1: clamp(1.875rem, 1.2rem + 2.9vw, 3.25rem); --t-h2: clamp(1.625rem, 1.2rem + 1.8vw, 2.375rem); --t-h3: 1.25rem;
  /* Espacements, rayons, ombres */
  --e1: .5rem; --e2: .75rem; --e3: 1rem; --e4: 1.5rem; --e5: 2rem; --e6: 3rem; --e-section: clamp(3.5rem, 2rem + 5vw, 6rem);
  --r1: .625rem; --r2: 1rem; --r-rond: 999px;
  --ombre-1: 0 1px 2px rgba(15,23,42,.06), 0 4px 14px rgba(15,23,42,.06);
  --ombre-2: 0 18px 44px rgba(7,13,36,.22);
  --largeur: 1180px; --cible: 48px; --entete: 68px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --fond: #0D1326; --fond-alt: #121A31; --carte: #18213C; --texte: #E8ECF6; --muet: #B3BED4; --ligne: #2C3759;
    --titre: #DDE4FF; --lien: #5EEAD4; --teinte: #12343A; --teinte-2: #222E57; --primaire: #3452B4; --primaire-survol: #4263CC;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--entete) + 8px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--fond); color: var(--texte); font-family: var(--police-texte); font-size: var(--t-base); line-height: 1.6; overflow-wrap: break-word; }
img, svg, video { max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--police-titre); line-height: 1.18; text-wrap: balance; margin: 0; }
p { margin: 0 0 var(--e3); }
a { color: var(--lien); }
a:focus-visible, button:focus-visible, video:focus-visible, summary:focus-visible { outline: 3px solid var(--lien); outline-offset: 3px; }
.hero a:focus-visible, .sombre a:focus-visible, .site-footer a:focus-visible, .cta-band a:focus-visible { outline-color: var(--clair); }
.wrap { width: min(100%, var(--largeur)); margin-inline: auto; padding-inline: 20px; }
.ico { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 100; background: var(--accent); color: var(--sur-accent); font-family: var(--police-titre); font-weight: 700; padding: 12px 16px; border-radius: var(--r1); text-decoration: none; }
.skip:focus { top: 12px; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--e1); min-height: var(--cible); padding: .7rem 1.35rem; border: 2px solid transparent; border-radius: var(--r1); font-family: var(--police-titre); font-weight: 700; font-size: var(--t-petit); line-height: 1.3; text-align: center; text-decoration: none; cursor: pointer; transition: background-color .2s, transform .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: var(--sur-accent); }
.btn-primary:hover { background: var(--accent-survol); box-shadow: 0 8px 20px rgba(245,158,11,.3); }
.btn-ghost { border-color: var(--clair); color: var(--sur-sombre); }
.btn-ghost:hover { background: rgba(255,255,255,.1); }
.btn-dark { background: var(--primaire); color: #fff; }
.btn-dark:hover { background: var(--primaire-survol); }
.lien-fleche { display: inline-flex; align-items: center; gap: 6px; min-height: var(--cible); font-family: var(--police-titre); font-weight: 700; font-size: var(--t-petit); text-decoration: none; }
.lien-fleche::after { content: "\2192"; transition: transform .2s; }
.lien-fleche:hover::after { transform: translateX(4px); }

/* En-tete et menu */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--fond); border-bottom: 1px solid var(--ligne); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: var(--e3); min-height: var(--entete); }
.logo { display: inline-flex; align-items: center; min-height: var(--cible); }
.logo img { display: block; width: 150px; height: auto; }
.menu-btn { position: relative; z-index: 52; display: grid; place-items: center; width: var(--cible); height: var(--cible); padding: 0; background: var(--carte); color: var(--titre); border: 1px solid var(--ligne); border-radius: var(--r1); cursor: pointer; }
.menu-btn .vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.menu-btn i, .menu-btn i::before, .menu-btn i::after { display: block; width: 22px; height: 2.5px; border-radius: 2px; background: currentColor; transition: transform .2s; }
.menu-btn i { position: relative; }
.menu-btn i::before, .menu-btn i::after { content: ""; position: absolute; left: 0; }
.menu-btn i::before { top: -7px; }
.menu-btn i::after { top: 7px; }
.menu-btn[aria-expanded="true"] i { background: transparent; }
.menu-btn[aria-expanded="true"] i::before { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] i::after { transform: translateY(-7px) rotate(-45deg); }
nav ul { list-style: none; margin: 0; padding: 0; }
nav a { display: flex; align-items: center; min-height: var(--cible); font-family: var(--police-titre); font-weight: 600; font-size: var(--t-petit); text-decoration: none; color: var(--texte); border-radius: var(--r1); }
nav a:hover { background: var(--fond-alt); }
nav a[aria-current="page"] { color: var(--titre); background: var(--teinte-2); }
nav a.btn-nav { justify-content: center; text-align: center; background: var(--accent); color: var(--sur-accent); padding-inline: var(--e3); }
nav a.btn-nav:hover { background: var(--accent-survol); }
@media (max-width: 1023px) {
  nav ul { position: fixed; z-index: 51; top: 0; right: 0; bottom: 0; width: min(100%, 360px); display: flex; flex-direction: column; gap: var(--e1); padding: calc(var(--entete) + var(--e3)) var(--e4) var(--e5); background: var(--carte); box-shadow: var(--ombre-2); overflow-y: auto; visibility: hidden; transform: translateX(105%); transition: transform .25s ease, visibility 0s .25s; }
  nav ul.open { visibility: visible; transform: none; transition: transform .25s ease; }
  nav a { padding-inline: var(--e3); font-size: var(--t-grand); }
  nav a.btn-nav { margin-top: var(--e3); font-size: var(--t-petit); }
  .menu-btn { order: 2; }
  .menu-ouvert { overflow: hidden; }
  .voile { position: fixed; inset: 0; z-index: 30; background: rgba(7,13,36,.55); }
}
@media (min-width: 1024px) {
  .menu-btn { display: none; }
  nav ul { display: flex; align-items: center; gap: 4px; }
  nav a { justify-content: center; min-width: var(--cible); padding-inline: .75rem; }
  nav a.btn-nav { margin-left: var(--e1); }
}

/* Accroche */
.hero { background: radial-gradient(110% 90% at 85% 0%, #1E3A8A 0%, var(--sombre) 62%); color: var(--sur-sombre); padding-block: var(--e4) var(--e6); overflow: hidden; }
.hero-grille { display: grid; gap: var(--e6); grid-template-columns: minmax(0, 1fr); }
.new-chip { display: inline-flex; align-items: center; gap: var(--e2); min-height: var(--cible); margin-bottom: var(--e3); padding: 4px 14px 4px 6px; border-radius: var(--r-rond); border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.08); color: #fff; font-family: var(--police-titre); font-weight: 600; font-size: var(--t-petit); line-height: 1.3; text-decoration: none; }
.new-chip:hover { background: rgba(255,255,255,.16); }
.new-chip span { background: var(--accent); color: var(--sur-accent); font-weight: 800; padding: 4px 10px; border-radius: var(--r-rond); }
.surtitre { font-family: var(--police-titre); font-weight: 700; font-size: var(--t-petit); line-height: 1.4; color: var(--lien); margin-bottom: var(--e1); }
.hero .surtitre, .sombre .surtitre { color: var(--clair); }
.hero h1 { font-size: var(--t-h1); font-weight: 800; margin-bottom: var(--e3); }
.hero-texte { color: var(--sur-sombre-muet); font-size: var(--t-base); max-width: 36em; margin: 0; }
.hero-actions { display: flex; flex-direction: column; gap: var(--e2); margin-top: var(--e4); }
.hero-liens { display: flex; flex-wrap: wrap; column-gap: var(--e4); margin-top: var(--e2); }
.hero-liens .btn { min-height: var(--cible); padding: 0; border: 0; border-radius: 4px; background: none; color: var(--sur-sombre); font-weight: 600; text-decoration: underline; text-decoration-color: var(--clair); text-underline-offset: 5px; }
.hero-liens .btn:hover { color: var(--clair); transform: none; }
.visuel { position: relative; margin: 0; min-width: 0; }
.visuel picture { display: block; border-radius: var(--r2); overflow: hidden; background: #fff; border: 1px solid rgba(255,255,255,.22); box-shadow: 0 18px 44px rgba(0,0,0,.4); }
.visuel img { display: block; width: 100%; height: auto; }
.visuel .devant { width: 86%; margin: -8% 0 0 auto; position: relative; }
.visuel figcaption { margin-top: var(--e3); color: var(--sur-sombre-muet); font-size: var(--t-petit); }
@media (min-width: 600px) {
  .hero-actions { flex-direction: row; flex-wrap: wrap; }
  .hero-texte { font-size: var(--t-grand); }
}
@media (min-width: 1024px) {
  .hero { padding-block: var(--e6) 4.5rem; }
  .hero-grille { grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); align-items: center; }
}
@media (min-width: 1024px) and (max-width: 1279px) {
  :root { --t-h1: 2.5rem; }
  .hero { padding-block: var(--e5) var(--e6); }
}

/* Sections */
.sec { padding-block: var(--e-section); }
.sec.alt { background: var(--fond-alt); }
.sec.sombre { background: var(--sombre); color: var(--sur-sombre); }
.tete { max-width: 44em; margin-bottom: var(--e5); }
h2.title { font-size: var(--t-h2); font-weight: 800; color: var(--titre); }
.sombre h2.title { color: var(--sur-sombre); }
.lead { color: var(--muet); font-size: var(--t-grand); margin: var(--e2) 0 0; }
.sombre .lead { color: var(--sur-sombre-muet); }
.cta-actions { display: flex; flex-wrap: wrap; gap: var(--e2); margin-top: var(--e5); }
.grille { display: grid; gap: var(--e3); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .grille.deux, .grille.quatre { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--e4); } }
@media (min-width: 900px) { .grille.trois { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--e4); } }
@media (min-width: 1100px) { .grille.quatre { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card { min-width: 0; background: var(--carte); border: 1px solid var(--ligne); border-radius: var(--r2); padding: var(--e4); box-shadow: var(--ombre-1); transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(15,23,42,.12); }
.card h3 { font-size: var(--t-h3); font-weight: 700; margin-bottom: var(--e1); }
.card p { color: var(--muet); margin: 0; }
.pastille { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: var(--e3); border-radius: var(--r1); background: var(--teinte); color: var(--lien); }
.card .fix { margin-top: var(--e3); padding-top: var(--e3); border-top: 1px solid var(--ligne); color: var(--texte); }
.fix strong { color: var(--lien); }

/* Les deux logiciels */
.product { display: flex; flex-direction: column; }
@media (min-width: 640px) { .product { padding: var(--e5); } }
.product .entete-produit { display: flex; align-items: center; gap: var(--e3); margin-bottom: var(--e3); }
.product .pastille { margin: 0; background: var(--primaire); color: #fff; }
.product h3 { font-size: 1.75rem; font-weight: 800; color: var(--titre); margin: 0; }
.tag { display: block; font-family: var(--police-titre); font-weight: 700; font-size: var(--t-petit); color: var(--lien); margin: 0; }
.liste { list-style: none; padding: 0; margin: var(--e4) 0; display: grid; gap: var(--e2); }
.liste li { position: relative; padding-left: 32px; }
.liste li::before { content: ""; position: absolute; left: 0; top: .3em; width: 20px; height: 20px; border-radius: 50%; background: var(--teinte); }
.liste li::after { content: ""; position: absolute; left: 7px; top: calc(.3em + 4px); width: 4px; height: 8px; border: solid var(--lien); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.product .from { margin: auto 0 var(--e3); color: var(--texte); font-weight: 600; }

/* Videos */
.videos { display: grid; gap: var(--e5); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 800px) { .videos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--e4); } }
.video-card { min-width: 0; }
.video-wrap { border-radius: var(--r2); overflow: hidden; background: #000; box-shadow: var(--ombre-1); }
.video-wrap video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #000; }
.video-wrap .nv { padding: 40px 20px; color: var(--sur-sombre-muet); background: var(--sombre); text-align: center; }
.video-card h3 { font-size: var(--t-h3); font-weight: 800; margin: var(--e3) 0 4px; }
.video-card p { margin: 0; color: var(--muet); }

/* Assistant IA */
.badge-option { display: inline-block; margin-left: var(--e1); padding: 2px 12px; border-radius: var(--r-rond); background: var(--accent); color: var(--sur-accent); font-weight: 800; }
.sombre .card { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.16); box-shadow: none; }
.sombre .card p { color: var(--sur-sombre-muet); }
.sombre .pastille { background: rgba(94,234,212,.14); color: var(--clair); }
.note { margin-top: var(--e4); max-width: 46em; padding: var(--e3) var(--e4); border-radius: var(--r1); border-left: 5px solid var(--secondaire); background: var(--teinte); color: var(--texte); }
.note p { margin: 0; }
.sombre .note { background: rgba(255,255,255,.08); border-left-color: var(--clair); color: var(--sur-sombre); }

/* Parcours : de la visite a l'encaissement */
.flow { list-style: none; counter-reset: f; margin: 0; padding: 0; display: grid; gap: var(--e2); }
.flow li { counter-increment: f; position: relative; display: flex; align-items: center; gap: var(--e3); min-width: 0; padding: var(--e3); border: 1px solid var(--ligne); border-radius: var(--r1); background: var(--carte); font-family: var(--police-titre); font-weight: 700; }
.flow li::before { content: counter(f); display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--primaire); color: #fff; }
.flow li:nth-child(n+3)::before { background: var(--secondaire); }
.flow li:not(:last-child)::after { content: ""; position: absolute; left: calc(var(--e3) + 19px); bottom: calc(-1 * var(--e2) - 1px); width: 2px; height: var(--e2); background: var(--secondaire); }
@media (min-width: 900px) {
  .flow { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--e4); }
  .flow li { flex-direction: column; text-align: center; padding: var(--e4) var(--e2); }
  .flow li:not(:last-child)::after { left: auto; right: calc(-1 * var(--e4) - 1px); bottom: auto; top: 50%; width: var(--e4); height: 2px; }
}

/* Pourquoi Elogma, publics */
.sous-bloc { margin-top: var(--e-section); }

/* Etapes */
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: var(--e4); }
.steps li { counter-increment: s; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: var(--e3); align-content: start; color: var(--muet); }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--secondaire); color: var(--lien); font-family: var(--police-titre); font-weight: 800; font-size: var(--t-grand); }
.steps strong { display: block; margin-bottom: 4px; font-family: var(--police-titre); color: var(--texte); }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) {
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .steps li { grid-template-columns: minmax(0, 1fr); padding-top: var(--e4); border-top: 3px solid var(--ligne); }
}

/* Appel final */
.cta-band { background: linear-gradient(135deg, #1E3A8A, #0F5E70); color: #fff; padding-block: var(--e-section); text-align: center; }
.cta-band h2 { font-size: var(--t-h2); font-weight: 800; margin-bottom: var(--e2); }
.cta-band p { color: #E2E8F0; font-size: var(--t-grand); max-width: 34em; margin-inline: auto; }
.cta-band .cta-actions { justify-content: center; margin-top: var(--e4); }
.cta-band .btn-ghost { border-color: #fff; }
@media (max-width: 599px) { .cta-actions { flex-direction: column; } }

/* Pied de page */
.site-footer { background: var(--pied); color: var(--sur-sombre-muet); padding-block: var(--e6) var(--e4); }
.foot { display: grid; gap: var(--e5); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .foot { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot > :first-child { grid-column: 1 / -1; } }
@media (min-width: 960px) { .foot { grid-template-columns: 1.6fr 1fr 1.2fr; } .foot > :first-child { grid-column: auto; } }
.foot .logo img { width: 160px; }
.foot-about { margin: var(--e2) 0 0; max-width: 28em; }
.foot h4 { color: #fff; font-size: var(--t-petit); margin-bottom: var(--e1); }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { min-height: 32px; }
.foot a { display: inline-flex; align-items: center; min-height: var(--cible); min-width: var(--cible);color: var(--sur-sombre-muet); text-decoration: none; overflow-wrap: anywhere; }
.foot a:hover { color: #fff; text-decoration: underline; }
.foot .texte { display: block; padding-block: var(--e2); }
.foot address { font-style: normal; padding-block: var(--e2); }
.copy { display: flex; flex-wrap: wrap; align-items: center; column-gap: var(--e4); margin-top: var(--e5); padding-top: var(--e3); border-top: 1px solid rgba(255,255,255,.14); }
.copy a { display: inline-flex; align-items: center; min-height: var(--cible); color: var(--sur-sombre-muet); text-underline-offset: 4px; }

/* Appel et WhatsApp : barre fixe sur telephone, pastille sur grand ecran */
.barre-contact { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; display: grid; grid-template-columns: 1fr 1fr; gap: var(--e2); padding: var(--e1) var(--e2) calc(var(--e1) + env(safe-area-inset-bottom, 0px)); background: var(--carte); border-top: 1px solid var(--ligne); box-shadow: 0 -4px 18px rgba(7,13,36,.14); }
.barre-contact .btn { width: 100%; }
.barre-contact .ico { width: 22px; height: 22px; }
.btn-appel { background: var(--primaire); color: #fff; }
.btn-wa { background: #137A40; color: #fff; }
.wa-float { display: none; }
body { padding-bottom: calc(66px + env(safe-area-inset-bottom, 0px)); background-color: var(--fond); }
@media (min-width: 768px) {
  body { padding-bottom: 0; }
  .barre-contact { display: none; }
  .wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 25; display: inline-flex; align-items: center; gap: var(--e1); min-height: var(--cible); padding: .7rem 1.2rem; border-radius: var(--r-rond); background: #137A40; color: #fff; font-family: var(--police-titre); font-weight: 700; font-size: var(--t-petit); text-decoration: none; box-shadow: 0 8px 22px rgba(0,0,0,.28); }
  .wa-float:hover { background: #0F6534; }
  .site-footer { padding-bottom: 5.5rem; }
}

/* ===== Pages interieures ===== */
.hero.small { padding-block: var(--e5) var(--e6); }
.hero.small .eyebrow { color: var(--clair); }
.hero.small h1 { max-width: 20em; }
.hero.small p:not(.eyebrow) { color: var(--sur-sombre-muet); font-size: var(--t-grand); max-width: 38em; margin: 0; }
.hero.small p.hero-note { font-size: var(--t-petit); margin-top: var(--e4); }
@media (min-width: 1024px) { .hero.small { padding-block: var(--e6) 4rem; } }
.eyebrow { font-family: var(--police-titre); font-weight: 700; font-size: var(--t-petit); line-height: 1.4; color: var(--lien); margin: 0 0 var(--e1); }

/* Sections : fonds alternes sur toute la largeur */
main > section.wrap { padding-block: var(--e-section); }
main > section.wrap:nth-of-type(even) { background: var(--fond-alt); box-shadow: 0 0 0 100vmax var(--fond-alt); clip-path: inset(0 -100vmax); }
main > section.wrap > .title { margin-bottom: var(--e3); }
main > section.wrap > .lead { max-width: 44em; margin: 0 0 var(--e5); }
main > section.wrap > .lead.flush { margin-bottom: 0; }
main > section.wrap > .title:not(:has(+ .lead)) { margin-bottom: var(--e4); }
main > section.wrap > .mt { margin-top: 0; }
main > section.wrap > .flow + .note { margin-top: var(--e4); }
.flow { margin-top: var(--e4); }
.sec .flow { margin-top: 0; }

.cards, .split, .plans, .captures { display: grid; gap: var(--e3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); }
.plans.two { max-width: 820px; }
.plans.une { max-width: 520px; }
.captures { grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); }
@media (min-width: 640px) { .cards, .split, .plans, .captures { gap: var(--e4); } }
.video-wrap { max-width: 900px; }
.videos .video-wrap { max-width: none; }

.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--e3); max-width: 46em; }
.checks li { position: relative; padding-left: 32px; }
.checks li::before { content: ""; position: absolute; left: 0; top: .3em; width: 20px; height: 20px; border-radius: 50%; background: var(--teinte); }
.checks li::after { content: ""; position: absolute; left: 7px; top: calc(.3em + 4px); width: 4px; height: 8px; border: solid var(--lien); border-width: 0 2px 2px 0; transform: rotate(45deg); }

.captures figure { margin: 0; min-width: 0; }
.captures img { display: block; width: 100%; height: auto; border: 1px solid var(--ligne); border-radius: var(--r1); background: #fff; }
.captures figcaption { margin-top: var(--e1); color: var(--muet); }
.capture-vide { aspect-ratio: 16 / 9; display: grid; place-items: center; padding: var(--e3); border: 2px dashed var(--lien); border-radius: var(--r1); color: var(--muet); text-align: center; overflow-wrap: anywhere; }

/* Tarifs */
.plan { display: flex; flex-direction: column; min-width: 0; padding: var(--e4); background: var(--carte); border: 1px solid var(--ligne); border-radius: var(--r2); box-shadow: var(--ombre-1); }
.plan.featured { border: 2px solid var(--lien); }
.plan.option { border: 2px dashed var(--lien); }
.plan h3 { font-size: 1.5rem; font-weight: 800; color: var(--titre); }
.plan .who { color: var(--muet); margin: 4px 0 0; padding-bottom: var(--e3); border-bottom: 1px solid var(--ligne); }
.plan ul { list-style: none; padding: 0; margin: var(--e3) 0; display: grid; gap: var(--e2); }
.plan li { position: relative; padding-left: 30px; }
.plan li::before { content: ""; position: absolute; left: 6px; top: .38em; width: 5px; height: 10px; border: solid var(--lien); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.plan .btn { margin-top: auto; }
.btn-ghost-dark { border-color: var(--lien); color: var(--lien); background: transparent; }
.btn-ghost-dark:hover { background: var(--teinte); }
.licence { margin: var(--e4) 0 0; max-width: 48em; color: var(--muet); }
.pack { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--e4); padding: var(--e4); background: var(--sombre); color: var(--sur-sombre-muet); border-radius: var(--r2); }
.pack p { margin: 0; flex: 1 1 320px; }
.pack strong { color: #fff; }
@media (max-width: 599px) { .pack .btn { width: 100%; } }

/* Questions frequentes et pages legales */
.narrow { width: min(100%, 820px); margin-inline: auto; padding-inline: 20px; }
.faq { padding-block: var(--e5) var(--e-section); }
.faq h2, .faq h3 { margin: var(--e5) 0 var(--e3); font-size: var(--t-h3); color: var(--titre); }
.faq details { margin-bottom: var(--e2); padding-inline: var(--e3); background: var(--carte); border: 1px solid var(--ligne); border-radius: var(--r1); }
.faq details[open] { border-color: var(--lien); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: var(--e3); min-height: 56px; padding-block: var(--e2); cursor: pointer; list-style: none; font-family: var(--police-titre); font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--lien); font-size: 1.5rem; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0 0 var(--e3); color: var(--muet); }
.legal { padding-block: var(--e6) var(--e-section); }
.legal h2 { font-size: 1.375rem; font-weight: 800; color: var(--titre); margin: var(--e5) 0 var(--e2); }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal ul { margin: 0 0 var(--e3); }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.legal .updated { color: var(--muet); margin-top: var(--e5); }
.todo { background: #FFF3A8; color: #3A2E00; padding: 1px 5px; border-radius: 4px; overflow-wrap: anywhere; }
.validation { border: 2px solid var(--accent); border-radius: var(--r1); padding: var(--e2) var(--e3); }

/* Formulaire de contact */
.contact-layout { display: grid; gap: var(--e4); grid-template-columns: minmax(0, 1fr); align-items: start; }
.contact-layout > * { min-width: 0; }
@media (min-width: 900px) { .contact-layout { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); } }
.form-card { position: relative; padding: var(--e3); background: var(--carte); border: 1px solid var(--ligne); border-radius: var(--r2); box-shadow: var(--ombre-1); }
@media (min-width: 640px) { .form-card { padding: var(--e5); } }
.form-grid { display: grid; gap: var(--e3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
label { font-family: var(--police-titre); font-weight: 700; font-size: var(--t-petit); }
input, select, textarea { width: 100%; min-width: 0; min-height: var(--cible); padding: .7rem .85rem; font: inherit; color: var(--texte); background: var(--carte); border: 1px solid #64748B; border-radius: var(--r1); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--lien); outline-offset: 2px; }
textarea { min-height: 130px; resize: vertical; }
.field.check { flex-direction: row; align-items: flex-start; gap: var(--e2); }
.field.check input { flex: none; width: 24px; height: 24px; min-height: 0; margin-top: 2px; padding: 0; accent-color: var(--secondaire); }
.field.check label { font-family: var(--police-texte); font-weight: 400; }
.requis { color: var(--erreur); font-weight: 800; }
.requis-note { margin: 0 0 var(--e4); color: var(--muet); }
.aide, .hint { color: var(--muet); font-size: var(--t-petit); }
.hint { margin: var(--e3) 0 0; }
.form-actions { display: flex; flex-wrap: wrap; gap: var(--e2); margin-top: var(--e4); }
@media (max-width: 599px) { .form-actions .btn { width: 100%; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.jeton { position: absolute; width: 1px; height: 1px; min-height: 0; opacity: 0; }
.contact-box { padding: var(--e4); background: var(--sombre); color: #fff; border-radius: var(--r2); }
.contact-box h3 { font-size: var(--t-h3); margin-bottom: var(--e3); }
.contact-box .who { font-family: var(--police-titre); font-weight: 700; }
.contact-box .row { display: grid; gap: 2px; margin-bottom: var(--e3); }
.contact-box .k { font-family: var(--police-titre); font-weight: 700; color: var(--clair); }
.contact-box .v { overflow-wrap: anywhere; }
.contact-box .v a { display: inline-flex; align-items: center; min-height: var(--cible); color: #fff; }
.contact-box .mt { margin: var(--e4) 0 0; }
.contact-box a:focus-visible { outline-color: var(--clair); }
.alerte { margin-bottom: var(--e4); padding: var(--e3) var(--e4); border: 2px solid var(--erreur); border-radius: var(--r1); }
.alerte h2 { font-size: var(--t-h3); font-weight: 800; color: var(--erreur); margin-bottom: var(--e1); }
.alerte ul { margin: 0 0 var(--e2); padding-left: 20px; }
.alerte p { margin: 0; }
.alerte:focus { outline: 3px solid var(--erreur); outline-offset: 3px; }@media (prefers-color-scheme: dark) { :root { --erreur: #FFB4AB; } input, select, textarea { border-color: #7C89A8; } }

/* Liens au fil du texte dans les listes et paragraphes : zone confortable au doigt */
.cta-band .hero-actions { justify-content: center; margin-top: var(--e4); }
.cta-band .hero-actions .btn-ghost { border-color: #fff; }
.card .more { display: inline-flex; align-items: center; min-height: var(--cible); font-family: var(--police-titre); font-weight: 700; }

/* Telephone : cartes compactes (icone a cote du titre) et pied de page resserre */
@media (max-width: 639px) {
  :root { --e-section: 2.75rem; }
  .tete { margin-bottom: var(--e4); }
  .grille .card:not(.product) { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: var(--e2); align-content: start; padding: var(--e3); }
  .grille .card:not(.product) .pastille { width: 44px; height: 44px; margin: 0; }
  .grille .card:not(.product) h3 { align-self: center; margin: 0; font-size: 1.125rem; }
  .grille .card:not(.product) p { grid-column: 1 / -1; margin-top: var(--e2); }
  .product { padding: var(--e3); }
  .liste { margin-block: var(--e3); }
  .flow li { padding-block: var(--e2); }
  .steps { gap: var(--e3); }
  .foot { gap: var(--e4); }
  .foot > :nth-child(2) ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--e3); }
}
.barre-contact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.barre-contact .btn { padding-inline: var(--e1); }

/* Apparition au defilement (classe ajoutee par le script) */
.rv { opacity: 0; transform: translateY(18px); }
.rv.vu { opacity: 1; transform: none; transition: opacity .5s ease, transform .5s ease; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .rv { opacity: 1; transform: none; }
}
@media print { .rv { opacity: 1; transform: none; } .barre-contact, .wa-float { display: none; } }

/* Sans JavaScript : le menu reste visible sur telephone */
@media (scripting: none) and (max-width: 1023px) {
  .menu-btn { display: none; }
  .site-header { position: static; }
  .bar { flex-wrap: wrap; }
  nav { width: 100%; }
  nav ul { position: static; visibility: visible; transform: none; width: auto; padding: 0 0 var(--e3); box-shadow: none; background: none; }
}
