/* =====================================================================
   ShieldOne — PAGE D'ACCUEIL, refonte du 07.10.2026 (priorite.md §0).
   Feuille PROPRE à la home (les autres pages gardent styles.css).
   Palette fermée : blanc #FFFFFF, teinte #EFF6FF, encres #06234D / #082B68,
   gris #5C7090, bordures #E4ECF5, action #0864E5, jaune #FFD05A (touche minime).
   Police : Inter. Mobile d'abord ; 390 px et 1440 px vérifiés.
   ===================================================================== */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/inter-400.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/inter-500.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/inter-600.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/inter-700.woff2') format('woff2'); }

:root {
  --nuit: #06234D;
  --nuit-2: #082B68;
  --gris: #5C7090;
  --bordure: #E4ECF5;
  --teinte: #EFF6FF;
  --action: #0864E5;
  --jaune: #FFD05A;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif; color: var(--nuit-2); background: #FFFFFF; line-height: 1.55; font-size: 1rem; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--action); }
:focus-visible { outline: 3px solid var(--action); outline-offset: 3px; border-radius: 4px; }
em { font-style: italic; font-weight: 500; }

.a-saut { position: absolute; left: -999px; top: 8px; background: var(--nuit); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 50; }
.a-saut:focus { left: 8px; }
.a-cadre { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---------- En-tête ---------- */
.a-entete { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--bordure); }
.a-entete-int { display: grid; grid-template-columns: 1fr auto auto; grid-template-areas: "logo langue btn" "nav nav nav"; align-items: center; column-gap: 14px; row-gap: 0; padding-top: 8px; padding-bottom: 4px; }
.a-logo { grid-area: logo; display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--nuit); font-weight: 700; font-size: 1.1rem; min-height: 44px; }
.a-logo img { width: 24px; height: auto; }
.a-nav { grid-area: nav; display: flex; flex-wrap: wrap; gap: 4px 22px; overflow-x: auto; scrollbar-width: none; }
.a-nav::-webkit-scrollbar { display: none; }
.a-nav a { color: var(--nuit); text-decoration: none; font-weight: 500; font-size: .94rem; white-space: nowrap; min-height: 44px; display: inline-flex; align-items: center; }
.a-nav a:hover { color: var(--action); }
.a-langue { grid-area: langue; font-size: .85rem; color: var(--gris); }
.a-langue a { color: var(--nuit); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; }
.a-langue [aria-current] { color: var(--nuit); font-weight: 700; }

/* Étroit (360 px) : en-tête sur une ligne, navigation entière, bouton sans retour à la ligne */
@media (max-width: 420px) {
  .a-entete .a-cadre { padding-left: 16px; padding-right: 16px; }
  .a-entete-int { column-gap: 8px; }
  .a-logo { gap: 8px; font-size: 1rem; }
  .a-logo span { white-space: nowrap; }
  .a-logo img { flex: none; }
  .a-nav { gap: 6px 12px; justify-content: space-between; }
  .a-nav a { font-size: .875rem; }
  .a-btn-entete { padding: 0 14px; font-size: .85rem; white-space: nowrap; }
}

/* ---------- Boutons et liens ---------- */
.a-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px; border-radius: 999px; border: 0; background: var(--action); color: #fff; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; transition: background .15s; }
.a-btn:hover { background: #0753BF; }
.a-btn-2 { background: #fff; color: var(--action); box-shadow: inset 0 0 0 2px var(--action); }
.a-btn-2:hover { background: var(--teinte); }
.a-btn-carte { width: 100%; margin: 16px 0 8px; padding: 10px 18px; line-height: 1.3; text-align: center; }
.a-btn-entete { grid-area: btn; min-height: 44px; padding: 0 18px; font-size: .92rem; }
.a-lien { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--action); font-weight: 600; text-decoration: none; }
.a-lien:hover { text-decoration: underline; text-underline-offset: 4px; }
.a-fl { flex: none; transition: transform .15s; }
.a-lien:hover .a-fl { transform: translateX(3px); }

/* ---------- Titres ---------- */
.a-h1 { margin: 0; font-size: clamp(2.5rem, 9vw, 4.6rem); line-height: 1.04; letter-spacing: -.03em; font-weight: 700; color: var(--nuit); }
.a-h1 em, .a-h2 em { font-weight: 500; color: var(--action); }
.a-h2 { text-wrap: balance; margin: 0 0 32px; font-size: clamp(1.9rem, 6vw, 3rem); line-height: 1.1; letter-spacing: -.025em; font-weight: 700; color: var(--nuit); }
.a-h2-large { font-size: clamp(2.1rem, 7vw, 3.6rem); max-width: 18ch; }
.a-lead { margin: 20px 0 0; font-size: 1.1rem; color: var(--gris); max-width: 46ch; }

/* ---------- Visuels (emplacements d'images générées) ---------- */
.visuel { border-radius: 24px; background: linear-gradient(135deg, var(--teinte) 0%, #CFE2FB 55%, #9CC0F3 100%); position: relative; overflow: hidden; }
.visuel::after { content: ""; position: absolute; right: 8%; bottom: 10%; width: 14px; height: 14px; border-radius: 50%; background: var(--jaune); opacity: .9; }
.visuel picture { display: block; width: 100%; height: 100%; position: relative; z-index: 1; }
.visuel img { width: 100%; height: 100%; object-fit: cover; }
.visuel-hero img { object-position: 44% 50%; }
.visuel-final { z-index: 0; }
.visuel-hero { aspect-ratio: 4 / 3; }
.visuel-carte { aspect-ratio: 4 / 3; border-radius: 18px; margin-bottom: 20px; }
.visuel-carte::after { display: none; }

/* ---------- Sections ---------- */
.a-section { padding: 72px 0; }
.a-teinte { background: var(--teinte); }
.a-hero { padding: 40px 0 72px; }
.a-hero-int { display: grid; gap: 40px; }
.a-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 32px; }

.a-cartes { display: grid; gap: 20px; }
.a-carte { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--bordure); border-radius: 24px; padding: 20px 20px 24px; }
.a-carte p { flex: 1 1 auto; }
.a-carte .a-btn-carte { margin-top: auto; }
.a-carte p + .a-btn-carte { margin-top: 16px; }
.a-carte .a-lien { align-self: flex-start; }
.a-carte h3 { margin: 0 0 8px; font-size: 1.3rem; font-weight: 700; color: var(--nuit); letter-spacing: -.01em; }
.a-carte p { margin: 0 0 8px; color: var(--gris); }

.a-apercu { display: grid; gap: 40px; align-items: center; justify-items: start; }
/* Mobile : capture centrée explicitement (ne dépend plus du seul margin auto) ; le texte reste à gauche. */
@media (max-width: 480px) {
  .a-apercu { justify-items: center; }
  .a-apercu-texte { justify-self: start; }
  .a-capture { justify-self: center; margin-inline: auto; }
}
.a-capture { display: block; width: 100%; justify-self: center; text-align: center; }
.a-capture img { display: block; margin-inline: auto; width: min(72vw, 300px); height: auto; aspect-ratio: 1 / 2; border-radius: 24px; }

.a-garanties { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--bordure); }
.a-garanties li { padding: 20px 0 20px 28px; border-bottom: 1px solid var(--bordure); font-size: 1.1rem; font-weight: 600; color: var(--nuit); position: relative; }
.a-garanties li::before { content: ""; position: absolute; left: 0; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: var(--jaune); }

/* ---------- Liens proches (SEO pages principales) ---------- */
.a-proches { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 16px; }
.a-proches a { display: flex; flex-direction: column; gap: 6px; min-height: 44px; height: 100%; box-sizing: border-box; padding: 20px; background: #fff; border: 1px solid var(--bordure); border-radius: 18px; text-decoration: none; color: var(--gris); }
.a-proches a:hover { border-color: var(--action); }
.a-proches strong { color: var(--nuit); font-size: 1.1rem; }
@media (min-width: 900px) { .a-proches { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- Contact sur l'image finale ---------- */
.a-final { position: relative; padding: 72px 0; overflow: hidden; }
.visuel-final { position: absolute; inset: 0; border-radius: 0; background: linear-gradient(160deg, #CFE2FB 0%, #9CC0F3 45%, var(--nuit-2) 100%); }
.visuel-final::after { display: none; }
.a-final-int { position: relative; }
.a-contact { background: #fff; border-radius: 24px; padding: 28px 24px; max-width: 520px; box-shadow: 0 24px 60px -28px rgba(6,35,77,.45); }
.a-contact .a-h2 { font-size: clamp(1.7rem, 5vw, 2.2rem); margin-bottom: 20px; }
.a-etape { border: 0; margin: 0 0 20px; padding: 0; min-width: 0; }
.a-etape legend { font-weight: 600; color: var(--nuit); padding: 0; margin-bottom: 12px; }
.a-etape > label { display: block; font-size: .92rem; color: var(--nuit-2); margin: 12px 0 6px; }
.a-etape > label:has(input[type="radio"]) { display: flex; align-items: center; gap: 12px; min-height: 48px; margin: 0 0 8px; padding: 0 16px; border: 1px solid var(--bordure); border-radius: 14px; cursor: pointer; font-size: 1rem; }
.a-etape > label:has(input:checked) { border-color: var(--action); background: var(--teinte); }
.a-etape input[type="radio"] { accent-color: var(--action); width: 18px; height: 18px; }
.a-etape input[type="text"] { width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid #C5D3E6; border-radius: 12px; font: inherit; color: var(--nuit); background: #fff; }
.a-etape .a-btn { margin-top: 18px; width: 100%; }
.a-erreur { margin: 12px 0 0; color: #B3261E; font-size: .92rem; }
.a-merci { margin: 0; font-weight: 600; color: var(--nuit); }
.a-wa { margin: 8px 0 0; font-size: .95rem; color: var(--gris); }
.a-wa a { padding-block: 13px; margin-block: -13px; }
.a-pied-bas a { padding-block: 14px; margin-block: -14px; }
.a-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
[hidden] { display: none !important; }
/* Étapes : sous JS, une à la fois. Sans JS, les deux se lisent à la suite. */
.js-accueil .a-etape.a-masquee { display: none; }
.a-etape input[type="email"], .a-etape input[type="tel"], .a-etape select { min-height: 48px; padding: 0 14px; border: 1px solid #C5D3E6; border-radius: 12px; font: inherit; color: var(--nuit); background: #fff; }
.a-etape input[type="email"] { width: 100%; }
.a-tel { display: flex; gap: 8px; }
.a-tel select { flex: 0 0 auto; }
.a-tel input { flex: 1 1 auto; min-width: 0; }
.a-mention { margin: 14px 0 0; font-size: .8rem; line-height: 1.45; color: var(--gris); }
.a-hors { margin: 0 0 20px; }
.a-hors p { margin: 0 0 12px; }
.a-retour { font: inherit; background: none; border: 0; padding: 8px 0; min-height: 48px; color: var(--action); text-decoration: underline; cursor: pointer; }

/* ---------- Pied de page ---------- */
.a-pied { background: #fff; padding: 56px 0 40px; border-top: 1px solid var(--bordure); }
.a-pied-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 24px; }
.a-pied-titre { margin: 0 0 12px; font-weight: 700; color: var(--nuit); font-size: .95rem; }
.a-pied ul { list-style: none; margin: 0; padding: 0; }
.a-pied li a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; color: var(--gris); text-decoration: none; font-size: .95rem; }
.a-pied li a:hover { color: var(--action); text-decoration: underline; }
.a-pied-bas { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--bordure); font-size: .85rem; color: var(--gris); }
.a-pied-bas p { margin: 0 0 8px; }
.a-pied-bas a { color: var(--nuit-2); }

/* ---------- Grand écran ---------- */
@media (min-width: 900px) {
  .a-cadre { padding: 0 48px; }
  .a-entete-int { grid-template-columns: auto 1fr auto auto; grid-template-areas: "logo nav langue btn"; padding-top: 10px; padding-bottom: 10px; column-gap: 28px; }
  .a-nav { justify-content: center; gap: 36px; overflow: visible; }
  .a-section { padding: 120px 0; }
  .a-hero { padding: 72px 0 120px; }
  .a-hero-int { grid-template-columns: 1.05fr 1fr; align-items: center; gap: 72px; }
  .visuel-hero { aspect-ratio: 4 / 3; border-radius: 32px; }
  .a-cartes { grid-template-columns: repeat(3, 1fr); gap: 28px; }
  /* Les cinq rangées (visuel, titre, texte, bouton, lien) sont partagées : bouton et lien tombent sur la même ligne d'une carte à l'autre. */
  @supports (grid-template-rows: subgrid) {
    .a-carte { display: grid; grid-template-rows: subgrid; grid-row: span 5; row-gap: 0; }
    .a-carte .a-lien { justify-self: start; }
  }
  .a-apercu { grid-template-columns: 1fr 1fr; gap: 96px; justify-items: center; }
  .a-apercu-texte { justify-self: start; }
  .a-capture { width: auto; }
  .a-capture img { width: 360px; }
  .a-garanties { grid-template-columns: repeat(2, 1fr); column-gap: 64px; }
  .a-final { padding: 120px 0; }
  .a-pied-cols { grid-template-columns: repeat(4, 1fr); }
}
