/* ────────────────────────────────────────────────────────────────────────────
   SafeXell — charte visuelle du site safexell.com
   Source de vérité des couleurs et de la typographie : safexell-brand/README.md
   (kit livré le 01/10/2026, fonds clairs à la demande de Plamen). Blindage
   #0B1826, vert accès #1FAE75 → bleu VuXell #2B86E8, givre #F4F7FB, glacier
   #F9FBFD → #E3ECF6, Sora 700 pour les titres.

   Le CSS vit dans CE fichier et pas dans les pages : les pages sont traduites
   en 26 langues (tools/build-i18n.mjs) et tout ce qui traverse la traduction
   risque d'être abîmé. Une feuille externe est traduite zéro fois et sert les
   27 langues. Même gabarit que eatxell.com, en version claire.
   ──────────────────────────────────────────────────────────────────────── */

:root {
  --blindage:   #0B1826;
  --nuit:       #06121F;
  --givre:      #F4F7FB;
  --glacier-h:  #F9FBFD;
  --glacier-b:  #E3ECF6;
  --craie:      #FFFFFF;
  --vert:       #1FAE75;
  --bleu:       #2B86E8;
  --vert-v:     #3ECF8E;
  --bleu-v:     #41A6FF;
  --ambre:      #FFB454;
  --rouge:      #D6455A;
  --acier:      #55647A;
  --acier-c:    #8B96AD;
  --gris:       #8A94A6;
  --texte-2:    #3A4658;
  --carte:      #FFFFFF;
  --trait:      #D3DDE8;
  --grad:       linear-gradient(90deg, var(--vert), var(--bleu));
  --grad-v:     linear-gradient(90deg, var(--vert-v), var(--bleu-v));
  --maxw:       1140px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: Sora, -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, system-ui, sans-serif;
  color: var(--blindage); line-height: 1.55;
  background:
    radial-gradient(1100px 780px at 84% -6%, rgba(62,207,142,.16), transparent 56%),
    radial-gradient(900px 700px at -6% 26%, rgba(65,166,255,.14), transparent 55%),
    linear-gradient(168deg, var(--glacier-h) 0%, #EAF1F8 100%);
  background-attachment: fixed; min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ── Barre de navigation ─────────────────────────────────────────────────── */
nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(244,247,251,.84); border-bottom: 1px solid var(--trait);
}
nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 18px; }
.logo { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.logo img { height: 30px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 26px; font-size: 15px; font-weight: 500; color: var(--acier); }
.nav-links a:hover { color: var(--blindage); transition: color .15s; }
@media (max-width: 860px) { .nav-links a:not(.btn):not(.lang-item) { display: none; } .nav-links { gap: 12px; } }

/* ── Boutons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; font-weight: 700; font-size: 15px;
  background: var(--blindage); color: var(--craie);
  box-shadow: 0 10px 34px rgba(11,24,38,.16);
  transition: transform .15s ease, box-shadow .15s ease;
  border: 0; cursor: pointer; font-family: inherit;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 42px rgba(11,24,38,.22); }
.btn.ghost { background: transparent; color: var(--blindage); border: 1px solid var(--trait); box-shadow: none; }
.btn.ghost:hover { border-color: rgba(43,134,232,.55); }
.btn.sm { padding: 10px 20px; font-size: 14px; }

/* ── Sections ────────────────────────────────────────────────────────────── */
section { padding: 88px 0; }
.eyebrow { text-align: center; font-size: 13px; letter-spacing: .32em; text-transform: uppercase; color: var(--gris); font-weight: 700; }
h2 { text-align: center; font-size: clamp(29px, 4.4vw, 48px); font-weight: 800; letter-spacing: -.025em; margin-top: 14px; }
.lead { text-align: center; color: var(--acier); font-size: 18px; max-width: 640px; margin: 16px auto 0; font-weight: 500; }

/* ── Bandeau d'état (le module est en préparation) ───────────────────────── */
.avis {
  background: rgba(65,166,255,.10);
  border-bottom: 1px solid rgba(65,166,255,.30);
  color: var(--blindage); font-size: 14px; text-align: center; padding: 10px 20px; font-weight: 500;
}
.avis b { color: var(--bleu); font-weight: 700; }
.avis a { color: var(--bleu); text-decoration: underline; text-underline-offset: 2px; }

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero { text-align: center; padding: 104px 0 76px; }
.hero h1 { font-size: clamp(42px, 7vw, 84px); font-weight: 800; letter-spacing: -.038em; line-height: 1.02; }
.hero p { font-size: clamp(17px, 2.3vw, 22px); color: var(--acier); max-width: 680px; margin: 26px auto 0; font-weight: 500; }
.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 40px; }
.trust-row { display: flex; gap: 26px; justify-content: center; flex-wrap: wrap; margin-top: 44px; color: var(--acier); font-size: 14px; font-weight: 600; }
.trust-row span { display: inline-flex; align-items: center; gap: 7px; }
.trust-row span::before { content: "\2713"; color: var(--vert); }

.badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 18px; border-radius: 999px;
  border: 1px solid var(--trait); background: var(--carte);
  font-size: 14px; color: var(--acier); font-weight: 600;
}
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--vert-v); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: .35 } }

/* ── Le point de contrôle : le parcours d'un passage, en quatre temps ───── */
.passe { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 52px; counter-reset: etape; }
.passe .etape {
  padding: 30px 24px; border-radius: 20px; background: var(--carte);
  border: 1px solid var(--trait); position: relative;
}
.passe .etape::before {
  counter-increment: etape; content: counter(etape);
  display: flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--grad); color: var(--craie); font-weight: 800; font-size: 14px;
}
.passe h3 { font-size: 18px; font-weight: 700; margin-top: 15px; }
.passe p { color: var(--acier); font-size: 15px; margin-top: 8px; line-height: 1.5; }
@media (max-width: 900px) { .passe { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .passe { grid-template-columns: 1fr; } }

/* ── Grille de fonctions ─────────────────────────────────────────────────── */
.grille { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 52px; }
.carte {
  padding: 32px 27px; border-radius: 20px; background: var(--carte);
  border: 1px solid var(--trait); transition: transform .18s, border-color .18s;
}
.carte:hover { transform: translateY(-4px); border-color: rgba(43,134,232,.5); }
.carte .ic { font-size: 34px; line-height: 1; }
.carte h3 { font-size: 19px; font-weight: 700; margin-top: 15px; }
.carte p { color: var(--acier); font-size: 15px; margin-top: 8px; line-height: 1.55; }
.carte ul { margin: 12px 0 0; padding-left: 20px; color: var(--acier); font-size: 14.5px; }
.carte li { margin-top: 5px; }
@media (max-width: 900px) { .grille { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grille { grid-template-columns: 1fr; } }

/* ── Bloc en deux colonnes (sur place / dans le cloud) ───────────────────── */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: center; margin-top: 50px; }
.duo h3 { font-size: clamp(23px, 3vw, 33px); font-weight: 800; letter-spacing: -.02em; }
.duo p { color: var(--acier); font-size: 16.5px; margin-top: 14px; line-height: 1.65; }
.duo ul { margin-top: 18px; padding-left: 0; list-style: none; }
.duo li { color: var(--acier); font-size: 16px; margin-top: 10px; padding-left: 28px; position: relative; }
.duo li::before { content: "\2713"; position: absolute; left: 0; color: var(--vert); font-weight: 700; }
.duo .visuel {
  border-radius: 22px; border: 1px solid var(--trait);
  background: linear-gradient(158deg, var(--glacier-h), var(--glacier-b));
  padding: 40px; display: flex; align-items: center; justify-content: center;
}
.duo .visuel img { width: 100%; max-width: 320px; height: auto; }
@media (max-width: 860px) { .duo { grid-template-columns: 1fr; gap: 32px; } }

/* ── Les trois couches : site, cloud, identité ───────────────────────────── */
.couches { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 52px; }
.couche { padding: 32px 27px; border-radius: 20px; background: var(--carte); border: 1px solid var(--trait); border-top: 4px solid var(--vert); }
.couche.cloud { border-top-color: var(--bleu); }
.couche.identite { border-top-color: var(--blindage); }
.couche .ou { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--gris); font-weight: 700; }
.couche h3 { font-size: 20px; font-weight: 700; margin-top: 10px; }
.couche p { color: var(--acier); font-size: 15px; margin-top: 10px; line-height: 1.55; }
.couche ul { margin: 12px 0 0; padding-left: 20px; color: var(--acier); font-size: 14.5px; }
.couche li { margin-top: 5px; }
@media (max-width: 900px) { .couches { grid-template-columns: 1fr; } }

/* ── Formulaire « être prévenu » ─────────────────────────────────────────── */
.form-bloc { max-width: 560px; margin: 40px auto 0; }
.form-bloc form { display: flex; flex-direction: column; gap: 12px; }
.form-bloc .ligne { display: flex; gap: 12px; flex-wrap: wrap; }
.form-bloc .ligne > * { flex: 1 1 200px; }
.form-bloc input, .form-bloc textarea {
  width: 100%; padding: 13px 16px; border-radius: 13px;
  background: var(--carte); border: 1px solid var(--trait);
  color: var(--blindage); font-size: 15px; font-family: inherit;
}
.form-bloc input:focus, .form-bloc textarea:focus { outline: 2px solid rgba(43,134,232,.5); outline-offset: 1px; }
.form-bloc input::placeholder, .form-bloc textarea::placeholder { color: var(--gris); }
.form-bloc .btn { justify-content: center; }
.form-bloc .mention { color: var(--gris); font-size: 13px; line-height: 1.55; text-align: center; margin-top: 4px; }
.form-bloc .mention a { color: var(--bleu); text-decoration: underline; text-underline-offset: 2px; }
.form-bloc .etat { text-align: center; font-size: 15px; font-weight: 600; min-height: 22px; }
.form-bloc .etat.ok { color: var(--vert); }
.form-bloc .etat.ko { color: var(--rouge); }
.pot-de-miel { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ── Famille Xell ────────────────────────────────────────────────────────── */
.famille { display: flex; gap: 12px 26px; flex-wrap: wrap; justify-content: center; margin-top: 34px; font-size: 14px; color: var(--gris); font-weight: 600; letter-spacing: .04em; }
.famille a:hover { color: var(--blindage); }

/* ── Sélecteur de langue ─────────────────────────────────────────────────── */
.lang-selector { position: relative; flex-shrink: 0; }
.lang-current {
  display: flex; align-items: center; gap: 6px;
  background: var(--carte); border: 1px solid var(--trait);
  color: var(--blindage); padding: 8px 14px; border-radius: 999px;
  font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit;
}
.lang-current:hover { border-color: rgba(43,134,232,.5); }
.lang-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--carte); border: 1px solid var(--trait);
  border-radius: 14px; padding: 6px; min-width: 178px;
  display: none; flex-direction: column; gap: 2px;
  box-shadow: 0 16px 48px rgba(11,24,38,.16); z-index: 100;
  max-height: 340px; overflow-y: auto;
}
.lang-selector.open .lang-dropdown { display: flex; }
.lang-item {
  padding: 8px 12px; border-radius: 8px; font-size: 14px; font-weight: 500;
  color: var(--acier); display: flex; align-items: center; gap: 8px;
}
.lang-item:hover { background: rgba(43,134,232,.10); color: var(--blindage); }
.lang-item.active { color: var(--bleu); font-weight: 700; }
@media (max-width: 640px) { .lang-current span { display: none; } .lang-current { padding: 8px 11px; } }

/* ── Pied de page ────────────────────────────────────────────────────────── */
footer { border-top: 1px solid var(--trait); padding: 46px 0; color: var(--gris); font-size: 14px; }
footer .wrap { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
footer a:hover { color: var(--blindage); }
footer .liens { display: flex; gap: 22px; flex-wrap: wrap; }

/* ── Pages légales ───────────────────────────────────────────────────────── */
.legal { max-width: 780px; margin: 0 auto; padding: 70px 20px 92px; }
.legal h1 { font-size: clamp(31px, 4.4vw, 50px); font-weight: 800; letter-spacing: -.03em; }
.legal .maj { color: var(--gris); font-size: 14px; margin-top: 10px; }
.legal h2 { font-size: 21px; font-weight: 700; margin: 42px 0 12px; }
.legal p, .legal li { color: var(--texte-2); font-size: 16px; line-height: 1.7; }
.legal ul { padding-left: 22px; margin: 10px 0; }
.legal strong { color: var(--blindage); font-weight: 600; }
.legal a { color: var(--bleu); }
.legal dl { display: grid; grid-template-columns: minmax(180px, 34%) 1fr; gap: 6px 20px; margin: 14px 0 0; }
.legal dt { color: var(--gris); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; align-self: center; }
.legal dd { color: var(--blindage); font-size: 16px; margin: 0; }
@media (max-width: 600px) { .legal dl { grid-template-columns: 1fr; gap: 2px; } .legal dd { margin-bottom: 12px; } }

/* ── Petits écrans : la barre de navigation doit tenir sur 375 px dans les 27
   langues (le libellé du bouton est plus long en turc, en allemand, en finnois). ── */
@media (max-width: 560px) {
  .wrap { padding: 0 20px; }
  nav .wrap { gap: 10px; }
  .logo img { height: 26px; }
  .nav-links .btn.sm { padding: 8px 14px; font-size: 13px; line-height: 1.2; max-width: 132px; text-align: center; justify-content: center; white-space: normal; }
  .btn { max-width: 100%; text-align: center; justify-content: center; white-space: normal; }
}

@media (max-width: 380px) {
  .wrap { padding: 0 16px; }
  nav .wrap { gap: 8px; }
  .logo img { height: 22px; }
  .nav-links { gap: 8px; }
  .nav-links .btn.sm { padding: 7px 10px; font-size: 12px; max-width: 104px; }
  .lang-current { padding: 7px 9px; }
  h1, h2, h3 { overflow-wrap: break-word; hyphens: auto; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
