:root {
  --encre: #1b2150;
  --texte: #2a3158;
  --doux: #4a5278;
  --bleu: #2e5bda;
  --bleu-fonce: #1f43a8;
  --ciel: #eaf3ff;
  --creme: #fff9ef;
  --jaune: #ffc93c;
  --rouge: #c81e2e;
  --trait: #d5dcf0;
  --blanc: #ffffff;
  --rayon: 18px;
  --ombre: 0 10px 30px rgba(27, 33, 80, 0.14);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--texte);
  background: var(--creme);
}
img, svg { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { color: var(--encre); line-height: 1.15; margin: 0 0 0.6em; font-weight: 800; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 6vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 4.2vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
a { color: var(--bleu-fonce); text-underline-offset: 3px; }
a:hover { color: var(--encre); }
:focus-visible { outline: 3px solid var(--encre); outline-offset: 3px; box-shadow: 0 0 0 6px var(--jaune); border-radius: 6px; }
.conteneur { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .conteneur { padding: 0 28px; } }

.evitement { position: absolute; left: 12px; top: -80px; background: var(--encre); color: var(--blanc); padding: 12px 18px; border-radius: 10px; z-index: 10; font-weight: 700; }
.evitement:focus { top: 12px; }

/* En-tête */
.entete { background: var(--blanc); border-bottom: 1px solid var(--trait); }
.entete__ligne { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 20px; padding-top: 10px; padding-bottom: 10px; }
.marque { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--encre); min-height: 44px; }
.marque__nom { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; }
.marque__nom b { color: var(--bleu); font-weight: 800; }
.menu ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 6px; }
.menu a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 999px; text-decoration: none; color: var(--encre); font-weight: 600; font-size: 0.97rem; }
.menu a:hover { background: var(--ciel); }
.menu a[aria-current="page"] { background: var(--ciel); }
.menu .menu__connexion { background: var(--bleu); color: var(--blanc); }
.menu .menu__connexion:hover { background: var(--bleu-fonce); color: var(--blanc); }
@media (max-width: 699px) {
  .entete__ligne { justify-content: center; }
  .menu ul { justify-content: center; }
  .menu a { padding: 0 10px; font-size: 0.92rem; }
}

/* Boutons */
.boutons { display: flex; flex-wrap: wrap; gap: 14px; margin: 1.4rem 0 1rem; }
.bouton { display: inline-flex; align-items: center; justify-content: center; min-height: 60px; padding: 0 30px; border-radius: 16px; font-size: 1.2rem; font-weight: 800; text-decoration: none; border: 3px solid var(--encre); box-shadow: 0 5px 0 var(--encre); transition: transform 0.12s ease, box-shadow 0.12s ease; }
.bouton:hover { transform: translateY(2px); box-shadow: 0 3px 0 var(--encre); }
.bouton:active { transform: translateY(5px); box-shadow: 0 0 0 var(--encre); }
.bouton--principal { background: var(--bleu); color: var(--blanc); }
.bouton--principal:hover { background: var(--bleu-fonce); color: var(--blanc); }
.bouton--jaune { background: var(--jaune); color: var(--encre); }
.bouton--jaune:hover { background: #ffd666; color: var(--encre); }
.bouton--clair { background: var(--blanc); color: var(--encre); }
@media (max-width: 520px) { .bouton { width: 100%; } }
.sous-bouton { font-size: 0.95rem; color: var(--doux); }

/* Sections */
.section { padding: 56px 0; }
@media (min-width: 900px) { .section { padding: 84px 0; } }
.section--ciel { background: var(--ciel); }
.section--blanc { background: var(--blanc); }
.section__tete { max-width: 720px; margin-bottom: 2rem; }
.surtitre { display: inline-block; font-size: 0.85rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--bleu-fonce); margin-bottom: 0.6rem; }
.chapeau { font-size: 1.2rem; color: var(--texte); }

/* Héros */
.heros { background: linear-gradient(180deg, var(--ciel) 0%, var(--creme) 100%); padding: 40px 0 56px; overflow: hidden; }
.heros__grille { display: grid; gap: 36px; align-items: center; }
@media (min-width: 960px) { .heros { padding: 72px 0 84px; } .heros__grille { grid-template-columns: 1fr 1.05fr; gap: 56px; } }
.puces { list-style: none; margin: 1.2rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 10px; }
.puces li { background: var(--blanc); border: 1px solid var(--trait); border-radius: 999px; padding: 6px 14px; font-size: 0.93rem; font-weight: 600; color: var(--encre); }

/* Cadre d'iPad dessiné en CSS */
.ipad { background: var(--encre); padding: 14px; border-radius: 30px; box-shadow: var(--ombre); position: relative; max-width: 620px; margin: 0 auto; }
.ipad::after { content: ""; position: absolute; left: 50%; top: 5px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: #4a5278; }
.ipad img { border-radius: 14px; width: 100%; background: var(--blanc); }
.ipad__legende { text-align: center; font-size: 0.9rem; color: var(--doux); margin: 14px 0 0; }

/* Étapes */
.etapes { list-style: none; counter-reset: etape; margin: 0; padding: 0; display: grid; gap: 20px; }
@media (min-width: 860px) { .etapes--3 { grid-template-columns: repeat(3, 1fr); } }
.etape { counter-increment: etape; background: var(--blanc); border: 2px solid var(--trait); border-radius: var(--rayon); padding: 24px; position: relative; }
.etape::before { content: counter(etape); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--jaune); color: var(--encre); font-weight: 800; font-size: 1.3rem; border: 3px solid var(--encre); margin-bottom: 14px; }
.etape p:last-child { margin-bottom: 0; }

/* Cartes */
.cartes { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .cartes { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .cartes--3 { grid-template-columns: repeat(3, 1fr); } }
.carte { background: var(--blanc); border-radius: var(--rayon); padding: 24px; border: 2px solid var(--trait); }
.carte svg { width: 48px; height: 48px; margin-bottom: 12px; }
.carte p:last-child { margin-bottom: 0; }

/* Deux colonnes */
.duo { display: grid; gap: 36px; align-items: center; }
@media (min-width: 900px) { .duo { grid-template-columns: 1fr 1fr; gap: 56px; } .duo--inverse > :first-child { order: 2; } }
.liste-coches { list-style: none; padding: 0; margin: 0 0 1.2rem; }
.liste-coches li { position: relative; padding-left: 34px; margin-bottom: 0.7em; }
.liste-coches li::before { content: ""; position: absolute; left: 0; top: 0.2em; width: 22px; height: 22px; border-radius: 50%; background: var(--bleu); }
.liste-coches li::after { content: ""; position: absolute; left: 7px; top: 0.42em; width: 6px; height: 11px; border: solid var(--blanc); border-width: 0 3px 3px 0; transform: rotate(45deg); }
.liste-non li::before { background: var(--rouge); }
.liste-non li::after { content: "×"; border: 0; transform: none; left: 5.5px; top: 0.12em; color: var(--blanc); font-weight: 800; width: auto; height: auto; line-height: 1.3; font-size: 1rem; }

/* FAQ */
.faq { max-width: 820px; }
.faq details { background: var(--blanc); border: 2px solid var(--trait); border-radius: 14px; margin-bottom: 12px; }
.faq summary { cursor: pointer; padding: 18px 56px 18px 20px; font-weight: 700; color: var(--encre); font-size: 1.1rem; list-style: none; position: relative; min-height: 56px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.6rem; color: var(--bleu-fonce); font-weight: 800; }
.faq details[open] summary::after { content: "−"; }
.faq details[open] { border-color: var(--bleu); }
.faq .reponse { padding: 0 20px 18px; }
.faq .reponse p:last-child { margin-bottom: 0; }

/* Marqueur à compléter */
.a-completer { background: #fff1b8; color: #5a3b00; padding: 1px 6px; border-radius: 6px; font-weight: 700; }

/* Bandeau d'appel */
.appel { background: var(--bleu); color: var(--blanc); text-align: center; padding: 56px 0; }
.appel h2 { color: var(--blanc); }
.appel p { color: #e6eeff; max-width: 640px; margin-left: auto; margin-right: auto; }
.appel .boutons { justify-content: center; }
.appel .bouton { box-shadow: 0 5px 0 #0f1a4a; border-color: #0f1a4a; }

/* Installation */
.pas { display: grid; gap: 28px; align-items: center; background: var(--blanc); border: 2px solid var(--trait); border-radius: var(--rayon); padding: 24px; margin-bottom: 22px; }
@media (min-width: 760px) { .pas { grid-template-columns: 1fr 340px; } }
.pas__num { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--jaune); border: 3px solid var(--encre); color: var(--encre); font-weight: 800; margin-right: 10px; }
.pas h2 { font-size: 1.5rem; display: flex; align-items: center; }
.illustration { width: 100%; max-width: 340px; height: auto; margin: 0 auto; }
.note { background: var(--ciel); border-left: 6px solid var(--bleu); padding: 14px 18px; border-radius: 10px; }

/* Pied de page */
.pied { background: var(--encre); color: #dfe5ff; padding: 48px 0 32px; font-size: 0.97rem; }
.pied a { color: #ffffff; }
.pied h2 { color: var(--blanc); font-size: 1.05rem; margin-bottom: 0.6rem; }
.pied ul { list-style: none; padding: 0; margin: 0; }
.pied li { margin-bottom: 0.3em; }
.pied li a { display: inline-block; padding: 4px 0; }
.pied__haut { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; margin-bottom: 28px; }
.pied__haut p { margin: 0; max-width: 460px; }
.marque--pied { color: var(--blanc); }
.marque--pied .marque__nom b { color: var(--jaune); }
.pied__colonnes { display: grid; gap: 28px; grid-template-columns: 1fr; border-top: 1px solid #3a4284; padding-top: 28px; }
@media (min-width: 760px) { .pied__colonnes { grid-template-columns: repeat(3, 1fr); } }
.pied__credits, .pied__droits { font-size: 0.88rem; margin: 24px 0 0; color: #c9d1f5; }
.pied__droits { margin-top: 10px; }
.pied .a-completer { background: #fff1b8; color: #5a3b00; }

/* 404 */
.page-404 { text-align: center; padding: 72px 0; }
.page-404 .boutons { justify-content: center; }

.appel--pale { background: none; padding: 12px 0; }
.logo-404 { margin: 0 auto 16px; }
.ipad-fig { margin: 0; }

/* Accueil simplifié */
.heros--accueil { padding: 28px 0 36px; }
@media (min-width: 960px) { .heros--accueil { padding: 32px 0 40px; } .heros--accueil .heros__grille { grid-template-columns: 1fr 1.1fr; gap: 48px; } }
.heros--accueil h1 { font-size: clamp(2.2rem, 5.5vw, 3.3rem); }
.bouton--grand { min-height: 72px; padding: 0 40px; font-size: 1.4rem; }
.heros--accueil .ipad { max-width: 560px; }
.atouts { background: var(--blanc); border-top: 1px solid var(--trait); border-bottom: 1px solid var(--trait); }
.atouts__liste { list-style: none; margin: 0 auto; padding-top: 18px; padding-bottom: 18px; display: grid; gap: 12px; }
@media (min-width: 760px) { .atouts__liste { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.atouts li { display: flex; align-items: center; gap: 14px; background: var(--ciel); border-radius: 999px; padding: 10px 20px 10px 14px; font-weight: 700; color: var(--encre); line-height: 1.25; }
.atouts svg { width: 40px; height: 40px; flex: none; }
.pied--court { padding: 24px 0 20px; }
.pied__liens { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.pied__liens li { margin: 0; }
.pied--court .pied__credits { margin-top: 12px; }
.faq { margin: 0 auto 0 0; }
