/* UTILITÉ : style du nouvel accueil (FR/EN) : sombre, futuriste, en mouvement. Fond presque noir avec aurore animée (palette hydroélectricité : bleu eau, bleu-vert, vert, gris, blanc, noir ; rouge réservé à l'important ; aucun mauve,
   aucune couleur à plat : tout ce qui est coloré est un dégradé), grille fine en perspective, bandeau de mots qui défile, phrases-chocs géantes au dégradé mouvant, lignes au lieu de cartes,
   apparition au défilement. CSS seulement : aucun script, aucune ressource externe ; tout mouvement est coupé si l'utilisateur préfère moins de mouvement.
   LIEN : public/index.html, public/en/index.html (body.landing) ; variables de public/css/app.css redéfinies ICI pour l'accueil seulement ;
   « Nos tests AiSecurBox » garde sa feuille (tests-aisecurbox.css) et hérite des couleurs. */

/* L'accueil est toujours sombre : c'est sa signature. Le bouton clair/sombre n'y a donc pas de sens et y est masqué (les autres pages le gardent). */
body.landing {
  /* Palette (4 teintes, en triplets RVB pour servir aussi en transparence) : thème de Simon (2026-11-13) : bleu eau (l'eau fait notre électricité), bleu-vert, vert (hydroélectricité), gris ; blanc et noir pour le texte et le fond ; --rouge réservé à ce qui est important. Changer ces 4 lignes change toute la page. */
  --c1: 46, 134, 222; --c2: 38, 176, 170; --c3: 62, 184, 104; --c4: 150, 164, 172; --rouge: 226, 54, 54;
  --bg: #04070b; --bg-2: #070c12; --surface: #0b121a; --surface-2: #0f1822;
  --border: rgba(140, 220, 255, 0.14); --text: #eef7fb; --text-dim: #8fa6b3;
  --accent: rgb(var(--c2)); --accent-2: rgb(var(--c3));
  --grad: linear-gradient(100deg, rgb(var(--c1)) 0%, rgb(var(--c2)) 45%, rgb(var(--c3)) 100%);
  --grad-rouge: linear-gradient(100deg, rgb(var(--rouge)), rgb(168, 28, 40));
  --grad-froid: linear-gradient(100deg, rgb(var(--c1)), rgb(var(--c2)) 50%, rgb(var(--c3)));
  /* signature.css colore les titres avec --ardoise (bleu foncé en thème clair) : sur l'accueil sombre, ils prennent la couleur du texte. */
  --ardoise: #eef7fb;
  background: var(--bg); color: var(--text);
}
body.landing .theme-toggle { display: none; }
body.landing .nav { background: rgba(4, 7, 11, 0.72); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); }
body.landing .brand-name, body.landing .lang-switch strong { color: var(--text); }
body.landing a { color: var(--accent); }
body.landing .btn { color: var(--text); border-color: var(--border); background: rgba(255, 255, 255, 0.03); }
body.landing .btn:hover { border-color: transparent; background: linear-gradient(var(--bg-2), var(--bg-2)) padding-box, var(--grad) border-box; border: 1px solid transparent; }
body.landing .btn-primary { color: #021016; border: 0; background: var(--grad); background-size: 220% 100%; font-weight: 700; box-shadow: 0 0 34px rgba(var(--c2), 0.28); }
body.landing .btn-primary:hover { background: var(--grad); background-size: 220% 100%; background-position: 100% 0; border: 0; }
body.landing .footer { border-top: 1px solid var(--border); color: var(--text-dim); background: linear-gradient(180deg, transparent, rgba(var(--c3), 0.05)); }
body.landing .hero-badge { color: var(--text); border: 1px solid var(--border); background: linear-gradient(100deg, rgba(var(--c1), 0.16), rgba(var(--c3), 0.12)); }
body.landing .hero-kicker, body.landing .hero-sub, body.landing .hero-price { color: var(--text-dim); }
body.landing .hero-title { font-size: clamp(40px, 8.6vw, 104px); line-height: 0.98; letter-spacing: -0.045em; font-weight: 800; }
body.landing .hero { max-width: 1100px; padding-top: clamp(70px, 12vw, 150px); }

/* Fond : aurore qui dérive lentement + grille fine qui s'efface vers le bas. */
main { position: relative; overflow-x: clip; isolation: isolate; }
main::before {
  content: ""; position: absolute; inset: -140px -10% auto -10%; height: 980px; z-index: -2; pointer-events: none;
  background:
    radial-gradient(560px 380px at 18% 30%, rgba(var(--c1), 0.42), transparent 70%),
    radial-gradient(520px 340px at 80% 16%, rgba(var(--c3), 0.30), transparent 70%),
    radial-gradient(420px 300px at 58% 62%, rgba(var(--c2), 0.26), transparent 70%),
    radial-gradient(300px 220px at 92% 70%, rgba(var(--c4), 0.16), transparent 70%);
  filter: blur(34px);
}
main::after {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 900px; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(140, 220, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140, 220, 255, 0.07) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 20%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 20%, #000 20%, transparent 75%);
}

/* Dégradé mouvant sur les mots mis en avant (titre d'entrée et phrases-chocs). */
body.landing .grad, .enonce .grad {
  background: var(--grad); background-size: 240% 100%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
}

/* Bandeau de mots qui défile, entre l'entrée et la suite. Décoratif (aria-hidden dans la page) ; le texte vient de data-texte. */
.bandeau { overflow: hidden; white-space: nowrap; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 16px 0; margin: 10px 0 0; background: linear-gradient(90deg, rgba(var(--c1), 0.07), rgba(var(--c3), 0.07)); }
.bandeau::before {
  content: attr(data-texte) attr(data-texte) attr(data-texte) attr(data-texte);
  display: inline-block; font-size: clamp(15px, 2vw, 20px); font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; white-space: pre;
  background: var(--grad-froid); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
}

.actualites, .produits, .chez-vous, .passer-action { max-width: 1100px; margin: 0 auto 40px; padding: 0 20px; scroll-margin-top: 72px; }
.actualites h2, .produits h2, .chez-vous h2, .passer-action h2 { margin: 0 0 8px; font-size: clamp(30px, 5.2vw, 56px); line-height: 1.04; letter-spacing: -0.03em; font-weight: 800; }
.actualites .section-sub, .produits .section-sub, .chez-vous .section-sub, .passer-action .section-sub { margin: 0 0 34px; color: var(--text-dim); font-size: clamp(16px, 2vw, 19px); }

/* Phrases-chocs : une idée, énorme, entre deux sections. */
.enonce {
  max-width: 1100px; margin: clamp(84px, 15vw, 170px) auto clamp(60px, 10vw, 120px); padding: 0 20px;
  font-size: clamp(40px, 10vw, 124px); line-height: 0.96; letter-spacing: -0.05em; font-weight: 800; text-wrap: balance;
}
.enonce:nth-of-type(even) { text-align: right; }

/* Lignes plutôt que cartes : filet en dégradé, nom à gauche, phrase au centre, lien à droite. */
.actus-grille, .produits-grille { display: block; }
.actu, .produit {
  position: relative; display: grid; align-items: baseline; gap: 6px 36px; padding: 28px 0;
  background: none; border: 0; border-radius: 0; transition: padding-left 0.3s ease;
}
.actu::before, .produit::before, .chez-col::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, rgba(var(--c1), 0.75), rgba(var(--c2), 0.5) 40%, rgba(var(--c3), 0.35) 70%, transparent);
}
.actu::after, .produit::after {
  content: ""; position: absolute; inset: 0 -20px; z-index: -1; opacity: 0; transition: opacity 0.3s ease;
  background: linear-gradient(90deg, rgba(var(--c1), 0.10), rgba(var(--c3), 0.06) 60%, transparent);
}
.produit { grid-template-columns: minmax(190px, 1fr) minmax(0, 1.5fr) auto; }
.produit h3 { margin: 0; font-size: clamp(22px, 3vw, 32px); letter-spacing: -0.02em; }
.produit p { margin: 0; color: var(--text-dim); }
.produit .btn { white-space: nowrap; }

.actu { grid-template-columns: 150px minmax(0, 1fr); }
.actu .actu-meta { grid-column: 1; grid-row: 1 / span 3; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin: 0; font-size: 12px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-dim); }
.actu h3 { grid-column: 2; margin: 0; font-size: clamp(20px, 2.6vw, 28px); letter-spacing: -0.015em; }
.actu p:not(.actu-meta) { grid-column: 2; margin: 0; color: var(--text-dim); max-width: 62ch; }
.actu-tag { background: var(--grad-rouge); color: #fff; border-radius: 999px; padding: 2px 10px; font-weight: 800; letter-spacing: 0.04em; }
.actu-lien { grid-column: 2; font-weight: 700; }

/* Chez vous : deux colonnes de texte, sans boîtes. */
.chez-colonnes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px 56px; }
.chez-col { position: relative; background: none; border: 0; border-radius: 0; padding: 22px 0 0; }
.chez-col h3 { margin: 0 0 14px; font-size: 14px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-dim); }
.chez-col ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.chez-col li { position: relative; padding-left: 28px; font-size: clamp(18px, 2.4vw, 23px); letter-spacing: -0.01em; }
.chez-col li::before { content: "✓"; position: absolute; left: 0; font-weight: 800; background: var(--grad-froid); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.chez-venir li::before { content: "→"; }
.sobriete { margin: 52px 0 0; font-size: clamp(24px, 4vw, 42px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.08; max-width: 20ch;
  background: var(--grad); background-size: 240% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }

/* Section des tests : mêmes teintes, bordure en dégradé. */
body.landing .tests-direct { background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad-froid) border-box; border: 1px solid transparent; }
body.landing .demo-video { background: rgba(255, 255, 255, 0.02); border-color: var(--border); }

.passer-action { text-align: left; margin-top: clamp(90px, 13vw, 160px); margin-bottom: 56px; }
.passer-action .hero-cta { justify-content: flex-start; }

.plus-details { max-width: 1100px; margin: 40px auto 72px; padding: 0 20px; }
.plus-details > summary { cursor: pointer; font-weight: 600; padding: 16px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); list-style-position: inside; color: var(--text-dim); }
.plus-details[open] > summary { margin-bottom: 24px; }
body.landing .interface, body.landing .feature { background: var(--surface); border-color: var(--border); }

@media (max-width: 720px) {
  .produit { grid-template-columns: 1fr; gap: 8px; }
  .produit .btn { justify-self: start; }
  .actu { grid-template-columns: 1fr; }
  .actu .actu-meta { grid-column: 1; grid-row: auto; flex-direction: row; align-items: center; }
  .actu h3, .actu p:not(.actu-meta), .actu-lien { grid-column: 1; }
  .enonce:nth-of-type(even) { text-align: left; }
  .passer-action .hero-cta .btn { width: 100%; text-align: center; }
}

/* Mouvement : tout ce bloc est ignoré si l'utilisateur préfère moins de mouvement ; la page reste complète sans lui. */
@media (prefers-reduced-motion: no-preference) {
  @keyframes derive { 0% { transform: translate3d(-3%, 0, 0) scale(1); } 50% { transform: translate3d(4%, 5%, 0) scale(1.12); } 100% { transform: translate3d(-3%, 0, 0) scale(1); } }
  @keyframes glisse { from { background-position: 0% 0; } to { background-position: 240% 0; } }
  @keyframes defile { from { transform: translateX(0); } to { transform: translateX(-50%); } }
  @keyframes grille { from { background-position: 0 0, 0 0; } to { background-position: 0 56px, 56px 0; } }
  @keyframes apparait { from { opacity: 0; transform: translateY(46px) scale(0.97); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
  @keyframes pulse { 0%, 100% { box-shadow: 0 0 28px rgba(var(--c2), 0.25); } 50% { box-shadow: 0 0 52px rgba(var(--c3), 0.42); } }

  main::before { animation: derive 22s ease-in-out infinite; }
  main::after { animation: grille 9s linear infinite; }
  body.landing .grad, .enonce .grad, .sobriete { animation: glisse 9s linear infinite; }
  .bandeau::before { animation: defile 38s linear infinite; }
  body.landing .btn-primary { animation: pulse 4.5s ease-in-out infinite; transition: background-position 0.5s ease; }
  .actu:hover, .produit:hover { padding-left: 18px; }
  .actu:hover::after, .produit:hover::after { opacity: 1; }
  @supports (animation-timeline: view()) {
    .enonce, .actu, .produit, .chez-col, .sobriete, .actualites h2, .produits h2, .chez-vous h2, .passer-action h2 {
      animation: apparait linear both; animation-timeline: view(); animation-range: entry 0% entry 60%;
    }
    .enonce .grad, .sobriete { animation: glisse 9s linear infinite; }
  }
}

/* ---- Troisième passe (Simon, 2026-11-13) : plus aucun cadre autour des boutons, et davantage de mouvement. ----
   Les boutons deviennent des mots : texte, flèche qui avance, trait en dégradé qui se trace au survol. Seul le geste principal garde une forme (pastille ronde lumineuse, sans bord). */
body.landing .btn, body.landing .btn:hover {
  background: none; border: 0; border-radius: 0; box-shadow: none; padding: 6px 0; position: relative; font-weight: 700; color: var(--text);
}
body.landing .btn::after { content: " →"; display: inline-block; white-space: pre; transition: transform 0.3s ease; }
body.landing .btn::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--grad); background-size: 220% 100%;
  transform: scaleX(0.22); transform-origin: left; transition: transform 0.35s ease;
}
body.landing .btn:hover::before { transform: scaleX(1); }
body.landing .btn:hover::after { transform: translateX(7px); }
body.landing .btn-primary, body.landing .btn-primary:hover {
  padding: 15px 30px; border-radius: 999px; color: #03110c; background: var(--grad); background-size: 220% 100%;
  box-shadow: 0 0 44px rgba(var(--c2), 0.35), 0 0 90px rgba(var(--c3), 0.16);
}
body.landing .btn-primary::before { display: none; }
body.landing .hero-cta, .passer-action .hero-cta { gap: 14px 38px; align-items: center; }
body.landing .nav-links { gap: 26px; }
body.landing .hero-badge { border: 0; background: none; padding: 0; letter-spacing: 0.14em; text-transform: uppercase; font-size: 12px;
  background: var(--grad-froid); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
body.landing .brand-tag { border: 0; background: none; }
/* Section des tests : plus de boîtes non plus, seulement un filet lumineux à gauche. */
body.landing .tests-direct { background: none; border: 0; border-radius: 0; padding: 4px 0 4px 22px; position: relative; }
body.landing .tests-direct::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: linear-gradient(180deg, rgb(var(--c1)), rgb(var(--c2)), rgb(var(--c3)), transparent); }
body.landing .demo-video { border: 0; border-radius: 0; min-height: 120px; background: radial-gradient(ellipse at center, rgba(var(--c2), 0.10), transparent 70%); }
body.landing .tests-aisecurbox h2 { font-size: clamp(30px, 5.2vw, 56px); line-height: 1.04; letter-spacing: -0.03em; }
body.landing .tests-aisecurbox { max-width: 1100px; padding: 0 20px; }
.plus-details > summary { border-top: 0; }

/* Barre de progression de lecture, en haut, en dégradé (là où le navigateur sait lier une animation au défilement). */
body.landing::before {
  content: ""; position: fixed; left: 0; top: 0; height: 3px; width: 100%; z-index: 60; transform-origin: left; transform: scaleX(0);
  background: var(--grad); pointer-events: none;
}
/* Anneau lumineux qui tourne lentement derrière le titre d'entrée. */
body.landing .hero { position: relative; }
body.landing .hero::before {
  content: ""; position: absolute; left: 50%; top: 46%; width: min(760px, 92vw); aspect-ratio: 1; z-index: -1; pointer-events: none; border-radius: 50%;
  translate: -50% -50%; opacity: 0.5; filter: blur(38px);
  background: conic-gradient(from 0deg, rgba(var(--c1), 0.55), rgba(var(--c2), 0.05), rgba(var(--c3), 0.45), rgba(var(--c4), 0.08), rgba(var(--c1), 0.55));
  -webkit-mask-image: radial-gradient(circle, transparent 46%, #000 60%, transparent 74%); mask-image: radial-gradient(circle, transparent 46%, #000 60%, transparent 74%);
}

@media (prefers-reduced-motion: no-preference) {
  @keyframes tourne { to { rotate: 360deg; } }
  @keyframes entree { from { opacity: 0; transform: translateY(40px); filter: blur(14px); letter-spacing: 0.02em; } to { opacity: 1; transform: none; filter: none; } }
  @keyframes progres { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  @keyframes grossit { from { transform: scale(0.82); opacity: 0.2; } 50% { transform: scale(1); opacity: 1; } to { transform: scale(1.04); opacity: 0.9; } }
  body.landing .hero::before { animation: tourne 26s linear infinite; }
  body.landing .hero-title { animation: entree 1.1s cubic-bezier(0.2, 0.7, 0.1, 1) both; }
  body.landing .hero-sub { animation: entree 1.1s 0.18s cubic-bezier(0.2, 0.7, 0.1, 1) both; }
  body.landing .hero-cta { animation: entree 1.1s 0.34s cubic-bezier(0.2, 0.7, 0.1, 1) both; }
  body.landing .btn::before { animation: glisse 6s linear infinite; }
  @supports (animation-timeline: scroll()) {
    body.landing::before { animation: progres linear both; animation-timeline: scroll(root); }
    .enonce { animation: grossit linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; transform-origin: left center; }
    .enonce:nth-of-type(even) { transform-origin: right center; }
  }
}

/* ---- Pensée du moment et réseaux (Simon, 2026-11-13) : une phrase en grand, puis les icônes, sans cadre. Les icônes sont des SVG dans la page (aucune ressource externe, aucun traceur). ---- */
.pensee { max-width: 1100px; margin: clamp(80px, 12vw, 150px) auto 80px; padding: 0 20px; }
.pensee-etiquette { margin: 0 0 18px; font-size: 12px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
  background: var(--grad-froid); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; display: inline-block; }
.pensee-texte { margin: 0; padding: 0; border: 0; font-size: clamp(28px, 5.6vw, 68px); line-height: 1.04; letter-spacing: -0.035em; font-weight: 700; font-style: italic; max-width: 18ch; text-wrap: balance; color: var(--text); }
.pensee-texte::before { content: "« "; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; font-style: normal; }
.pensee-texte::after { content: " »"; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; font-style: normal; }
.reseaux { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: clamp(40px, 6vw, 70px); }
.reseaux-titre { font-size: 12px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-dim); }
.reseaux-icones { display: flex; gap: 22px; }
.reseau { display: inline-flex; width: 34px; height: 34px; transition: transform 0.3s ease, filter 0.3s ease; }
.reseau svg { width: 100%; height: 100%; fill: var(--text-dim); transition: fill 0.3s ease; }
.reseau:hover svg, .reseau:focus-visible svg { fill: rgb(var(--c2)); }
.reseau:focus-visible { outline: 2px solid rgb(var(--c2)); outline-offset: 6px; border-radius: 6px; }
@media (prefers-reduced-motion: no-preference) {
  .reseau:hover { transform: translateY(-5px) scale(1.15); filter: drop-shadow(0 0 14px rgba(var(--c2), 0.7)); }
  @supports (animation-timeline: view()) {
    .pensee-texte { animation: apparait linear both; animation-timeline: view(); animation-range: entry 0% entry 60%; }
  }
}
