/* =========================================================
   Accueil d'aditua.com — refonte du 18/11/2026
   Se pose sur style-v2.css (en-tête, pied, boutons, fond).
   Zéro dépendance externe, police système.
   ========================================================= */
body.accueil {
  --cyan: #7dd3c7;
  --teal: #27b3b0;
  --glace: rgba(16, 25, 35, .62);
  --bord: rgba(125, 211, 199, .16);
  --bord-fort: rgba(125, 211, 199, .38);
  --rouge: #f87171;
  --vert: #34d399;
  --ambre: #fbbf24;
}
body.accueil main { position: relative; z-index: 1; }
body.accueil section { padding: clamp(64px, 9vw, 120px) 0; }

.a-degrade {
  background: linear-gradient(100deg, #a7f3e9 0%, var(--cyan) 35%, var(--teal) 65%, #a7f3e9 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: a-reflet 9s ease-in-out infinite;
}
@keyframes a-reflet { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

.a-entete { max-width: 760px; margin: 0 auto clamp(36px, 5vw, 56px); text-align: center; }
.a-entete h2 { text-wrap: balance; font-size: clamp(30px, 4.2vw, 50px); font-weight: 800; letter-spacing: -.02em; margin: 14px 0 16px; }
.a-entete p { color: var(--muted); font-size: clamp(16px, 1.6vw, 18px); margin: 0; }
.a-entete .eyebrow { justify-content: center; }

/* ===== Héros ===== */
.a-hero { padding-top: clamp(40px, 6vw, 80px) !important; overflow: hidden; }
.a-hero::before {
  content: ""; position: absolute; inset: -10% -20% auto; height: 760px; pointer-events: none; z-index: -1;
  background:
    radial-gradient(520px 340px at 72% 42%, rgba(39, 179, 176, .22), transparent 70%),
    radial-gradient(460px 300px at 18% 20%, rgba(37, 166, 230, .14), transparent 70%);
  filter: blur(6px);
}
.a-hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.a-pastille {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 12px; border-radius: 999px;
  font-size: 13px; font-weight: 600; color: var(--cyan);
  background: rgba(39, 179, 176, .10); border: 1px solid var(--bord);
}
.a-point { width: 8px; height: 8px; border-radius: 50%; background: var(--vert); box-shadow: 0 0 0 0 rgba(52, 211, 153, .6); animation: a-battement 2.2s ease-out infinite; }
@keyframes a-battement { 0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, .55); } 70%, 100% { box-shadow: 0 0 0 10px rgba(52, 211, 153, 0); } }
.a-titre { text-wrap: balance; font-size: clamp(38px, 4.3vw, 62px); font-weight: 850; letter-spacing: -.035em; line-height: 1.02; margin: 22px 0 22px; }
.a-lead { font-size: clamp(17px, 1.7vw, 20px); color: #c9d4e0; max-width: 560px; margin: 0 0 30px; }
.a-lead strong { color: var(--fg); }
.a-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.a-cta-centre { justify-content: center; }
.a-btn-grand { height: 52px; padding: 0 24px; font-size: 16px; font-weight: 650; background: linear-gradient(120deg, var(--cyan), var(--teal)); box-shadow: 0 14px 34px -12px rgba(39, 179, 176, .85); }
.a-btn-grand:hover { background: linear-gradient(120deg, #a7f3e9, var(--cyan)); }
.a-micro { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; padding: 0; margin: 30px 0 0; color: var(--muted); font-size: 14px; }
.a-micro b { color: var(--fg); font-variant-numeric: tabular-nums; }

/* ===== Scène ===== */
.a-scene {
  margin: 0; position: relative; padding: 18px 18px 16px; border-radius: 22px;
  background: linear-gradient(180deg, rgba(16, 25, 35, .78), rgba(10, 18, 27, .78));
  border: 1px solid var(--bord);
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .05);
  backdrop-filter: blur(10px);
}
.a-scene::after {
  content: ""; position: absolute; inset: -1px; border-radius: 22px; pointer-events: none; padding: 1px;
  background: linear-gradient(140deg, rgba(125, 211, 199, .55), transparent 35%, transparent 65%, rgba(39, 179, 176, .4));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.a-scene-svg { width: 100%; height: auto; display: block; overflow: visible; }
.s-chassis { fill: #0e1925; stroke: rgba(125, 211, 199, .28); stroke-width: 1.5; transition: fill .6s, stroke .6s; }
.s-baies rect { fill: #13202e; stroke: rgba(255, 255, 255, .06); transition: fill .6s; }
.s-leds circle { fill: var(--vert); filter: drop-shadow(0 0 4px rgba(52, 211, 153, .9)); transition: fill .3s, filter .3s; }
.s-leds circle:nth-child(2) { animation: a-clignote 1.3s steps(2) infinite; }
.s-leds circle:nth-child(4) { animation: a-clignote 0.9s steps(2) infinite .3s; }
@keyframes a-clignote { 50% { opacity: .35; } }
.s-halo { transition: opacity .8s; }
.s-nom { fill: var(--fg); font-size: 16px; font-weight: 700; }
.s-role { fill: var(--muted); font-size: 12.5px; transition: fill .4s; }
.s-legende { fill: var(--muted-2); font-size: 11.5px; letter-spacing: .02em; }
.s-prise-corps { fill: #111c28; stroke: rgba(167, 179, 193, .35); }
.s-watts { fill: var(--vert); font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; transition: fill .3s; }
.s-vm { transition: transform 1.05s cubic-bezier(.65, .02, .2, 1); filter: drop-shadow(0 12px 22px rgba(39, 179, 176, .35)); }
.s-vm-nom { fill: var(--cyan); font-size: 11.5px; font-weight: 600; }
.s-vm-compte { fill: var(--fg); font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; }
.s-vm-sous { fill: var(--muted); font-size: 10.5px; }
.s-b .s-halo { opacity: .25; }

/* serveur A sans courant */
.a-scene.panne .s-a .s-chassis { fill: #0b121a; stroke: rgba(248, 113, 113, .45); }
.a-scene.panne .s-a .s-baies rect { fill: #0d141c; }
.a-scene.panne .s-a .s-leds circle { fill: #1f2a36; filter: none; animation: none; }
.a-scene.panne .s-a .s-halo { opacity: 0; }
.a-scene.panne .s-a .s-role { fill: var(--rouge); }
.a-scene.panne .s-watts { fill: var(--rouge); }
.a-scene.panne .s-paquet { opacity: 0; }
.a-scene.panne .s-lien path { stroke: rgba(248, 113, 113, .25); }
.a-scene.eclair .s-eclair { animation: a-eclair .9s ease-out; }
@keyframes a-eclair { 0% { opacity: 0; } 15% { opacity: 1; } 100% { opacity: 0; } }
.a-scene.repris .s-b .s-halo { opacity: 1; }
.a-scene.repris .s-b .s-chassis { stroke: var(--bord-fort); }
.a-scene.repris .s-b .s-role { fill: var(--cyan); }

.a-scene-etat { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; min-height: 34px; margin-top: 6px; }
.a-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--border); color: #c9d4e0;
}
.a-chip-chrono { color: var(--ambre); border-color: rgba(251, 191, 36, .35); background: rgba(251, 191, 36, .08); font-variant-numeric: tabular-nums; }
.a-chip-ok { color: var(--vert); border-color: rgba(52, 211, 153, .35); background: rgba(52, 211, 153, .08); }
.a-chip[hidden] { display: none; }
.a-scene-note { margin: 10px 4px 0; font-size: 12.5px; color: var(--muted-2); text-align: center; }
.a-scene-note b { color: var(--muted); }

/* ===== Preuve ===== */
.a-bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.a-carte {
  position: relative; padding: 26px 24px; border-radius: 18px; background: var(--glace); border: 1px solid var(--bord);
  backdrop-filter: blur(8px); overflow: hidden; transition: transform .35s, border-color .35s;
}
.a-carte:hover { transform: translateY(-3px); border-color: var(--bord-fort); }
.a-carte::before {
  content: ""; position: absolute; inset: auto -30% -60% auto; width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(39, 179, 176, .16), transparent 70%); pointer-events: none;
}
.a-carte-geante { grid-row: span 2; display: flex; flex-direction: column; justify-content: flex-end; padding: 34px 30px; }
.a-chiffre {
  font-size: clamp(46px, 5.4vw, 68px); font-weight: 850; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums;
  background: linear-gradient(120deg, #e9fffb, var(--cyan) 55%, var(--teal)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.a-carte-geante .a-chiffre { font-size: clamp(110px, 14vw, 190px); }
.a-chiffre small { font-size: .42em; margin-left: 4px; letter-spacing: 0; }
.a-chiffre-mot { font-size: clamp(40px, 4.4vw, 56px); }
.a-carte h3 { font-size: 17px; margin: 12px 0 8px; }
.a-carte-geante h3 { font-size: clamp(20px, 2.2vw, 26px); }
.a-carte p { color: var(--muted); font-size: 14.5px; margin: 0; }
.a-carte b { color: var(--fg); }

.a-journal { margin-top: 22px; border-radius: 16px; border: 1px solid var(--bord); background: #050c14; overflow: hidden; box-shadow: 0 30px 70px -40px rgba(0, 0, 0, .9); }
.a-journal-barre, .a-ecran-barre {
  display: flex; align-items: center; gap: 14px; padding: 11px 16px; font-size: 12.5px; color: var(--muted-2);
  background: rgba(255, 255, 255, .03); border-bottom: 1px solid var(--border-2);
}
.a-feux { display: inline-flex; gap: 6px; }
.a-feux i { width: 10px; height: 10px; border-radius: 50%; background: #2a3646; }
.a-feux i:first-child { background: #f87171; } .a-feux i:nth-child(2) { background: #fbbf24; } .a-feux i:nth-child(3) { background: #34d399; }
.a-journal-lignes { list-style: none; margin: 0; padding: 16px 18px 18px; font: 13px/1.65 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.a-journal-lignes li { display: flex; flex-wrap: wrap; gap: 4px 14px; padding: 3px 0; opacity: 0; transform: translateX(-8px); transition: opacity .45s, transform .45s; }
.a-journal.vu .a-journal-lignes li { opacity: 1; transform: none; }
.a-journal-lignes li:nth-child(2) { transition-delay: .35s; } .a-journal-lignes li:nth-child(3) { transition-delay: .7s; }
.a-journal-lignes li:nth-child(4) { transition-delay: 1.05s; } .a-journal-lignes li:nth-child(5) { transition-delay: 1.4s; }
.a-journal-lignes li:nth-child(6) { transition-delay: 1.85s; }
.a-journal-lignes time { color: var(--ambre); min-width: 88px; }
.a-journal-lignes code { color: #b7f5ec; word-break: break-word; }
.a-j-ev { color: var(--fg); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
.a-j-note { color: var(--muted-2); }
.a-j-note::before { content: "← "; }
.a-j-fin { margin-top: 6px; padding-top: 10px !important; border-top: 1px dashed var(--border); }
.a-j-fin time { color: var(--vert); }

/* ===== Console ===== */
.a-onglets { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 22px; }
.a-onglets button {
  font: inherit; font-size: 14px; font-weight: 600; color: var(--muted); padding: 9px 16px; border-radius: 999px; cursor: pointer;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--border); transition: color .2s, background .2s, border-color .2s;
}
.a-onglets button:hover { color: var(--fg); }
.a-onglets button[aria-selected="true"] { color: #06131f; background: linear-gradient(120deg, var(--cyan), var(--teal)); border-color: transparent; }
.a-ecran {
  max-width: 980px; margin: 0 auto; border-radius: 16px; overflow: hidden; border: 1px solid var(--bord-fort);
  background: #0a121b; box-shadow: 0 60px 120px -50px rgba(39, 179, 176, .45), 0 30px 60px -30px rgba(0, 0, 0, .9);
  transform: perspective(1600px) rotateX(4deg); transform-origin: 50% 0; transition: transform .8s;
}
.a-ecran.vu { transform: perspective(1600px) rotateX(0); }
.a-url { margin-left: 6px; padding: 3px 12px; border-radius: 6px; background: rgba(255, 255, 255, .05); font-family: ui-monospace, Menlo, monospace; }
.a-ecran-vue { position: relative; aspect-ratio: 1600 / 1499; }
.a-ecran-vue img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity .6s; }
.a-ecran-vue img.actif { opacity: 1; }

/* ===== Fonctions ===== */
.a-grille { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.a-fonction { padding: 26px 24px; border-radius: 18px; background: var(--glace); border: 1px solid var(--bord); transition: transform .35s, border-color .35s; }
.a-fonction:hover { transform: translateY(-3px); border-color: var(--bord-fort); }
.a-fonction svg { width: 34px; height: 34px; fill: none; stroke: var(--cyan); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.a-fonction h3 { font-size: 18px; margin: 14px 0 8px; }
.a-fonction p { color: var(--muted); font-size: 14.5px; margin: 0; }
.a-fonction a { display: inline-block; margin-top: 14px; color: var(--cyan); font-weight: 600; text-decoration: none; }
.a-fonction-une {
  grid-column: span 2; background: linear-gradient(135deg, rgba(39, 179, 176, .18), rgba(16, 25, 35, .7) 55%);
  border-color: var(--bord-fort);
}
.a-fonction-une h3 { font-size: 24px; }
.a-fonction-une p { font-size: 16px; color: #c9d4e0; max-width: 560px; }

/* ===== Étapes ===== */
.a-etapes { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; position: relative; }
.a-etapes::before {
  content: ""; position: absolute; left: 4%; right: 4%; top: 22px; height: 2px;
  background: linear-gradient(90deg, rgba(125, 211, 199, .15), var(--cyan), var(--teal));
}
.a-etapes li { position: relative; padding: 58px 20px 24px; border-radius: 18px; background: var(--glace); border: 1px solid var(--bord); }
.a-etapes li::before {
  content: ""; position: absolute; top: 14px; left: 20px; width: 16px; height: 16px; border-radius: 50%;
  background: #07111c; border: 2px solid var(--cyan); box-shadow: 0 0 0 5px rgba(125, 211, 199, .10);
}
.a-etape-fin { border-color: var(--bord-fort) !important; background: linear-gradient(160deg, rgba(39, 179, 176, .2), rgba(16, 25, 35, .7) 60%) !important; }
.a-etape-fin::before { background: var(--cyan) !important; box-shadow: 0 0 18px 4px rgba(125, 211, 199, .55) !important; }
.a-quand { font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--cyan); }
.a-etapes h3 { font-size: 18px; margin: 8px 0 8px; }
.a-etapes p { color: var(--muted); font-size: 14.5px; margin: 0; }

/* ===== Comparer ===== */
.a-colonnes { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 16px; align-items: stretch; }
.a-col { padding: 26px 24px; border-radius: 18px; background: rgba(16, 25, 35, .5); border: 1px solid var(--border); }
.a-col h3 { font-size: 18px; margin: 0 0 14px; }
.a-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.a-col li { position: relative; padding-left: 26px; color: var(--muted); font-size: 14.5px; }
.a-col li::before { content: "–"; position: absolute; left: 6px; color: var(--muted-2); }
.a-col-hoster { background: linear-gradient(160deg, rgba(39, 179, 176, .2), rgba(16, 25, 35, .75) 60%); border-color: var(--bord-fort); box-shadow: 0 30px 70px -40px rgba(39, 179, 176, .6); }
.a-col-hoster li { color: #dbe6f0; }
.a-col-hoster li::before { content: "✓"; color: var(--vert); left: 2px; font-weight: 700; }

/* ===== Appel ===== */
.a-appel-boite {
  position: relative; overflow: hidden; text-align: center; padding: clamp(44px, 7vw, 84px) clamp(22px, 5vw, 60px); border-radius: 26px;
  background: linear-gradient(135deg, #0f2a33, #0b1a26 50%, #10303a); border: 1px solid var(--bord-fort);
}
.a-appel-boite::before {
  content: ""; position: absolute; inset: -40%; pointer-events: none;
  background: conic-gradient(from 0deg, transparent 0 25%, rgba(125, 211, 199, .16) 35%, transparent 50% 75%, rgba(39, 179, 176, .14) 85%, transparent);
  animation: a-aurore 18s linear infinite;
}
@keyframes a-aurore { to { transform: rotate(1turn); } }
.a-appel-boite > * { position: relative; }
.a-appel-boite h2 { font-size: clamp(30px, 4.4vw, 54px); font-weight: 850; letter-spacing: -.03em; margin: 0 0 14px; }
.a-appel-boite p { color: #c9d4e0; font-size: 18px; margin: 0 0 28px; }

/* ===== Apparitions ===== */
.a-reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.a-reveal.vu { opacity: 1; transform: none; }

/* ===== Écrans étroits ===== */
@media (max-width: 980px) {
  .a-hero-grid { grid-template-columns: 1fr; }
  .a-hero-texte { text-align: left; }
  .a-bento { grid-template-columns: 1fr 1fr; }
  .a-carte-geante { grid-column: span 2; grid-row: auto; }
  .a-grille { grid-template-columns: 1fr 1fr; }
  .a-etapes { grid-template-columns: 1fr 1fr; }
  .a-etapes::before { display: none; }
  .a-colonnes { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  body.accueil .wrap { padding-inline: 16px; }
  .a-bento, .a-grille, .a-etapes { grid-template-columns: 1fr; }
  .a-carte-geante, .a-fonction-une { grid-column: auto; }
  .a-scene { padding: 12px 10px; }
  .a-journal-lignes { font-size: 12px; }
  .a-journal-lignes time { min-width: 0; }
  .a-ecran { transform: none; }
}

/* ===== Mouvement réduit ===== */
@media (prefers-reduced-motion: reduce) {
  .a-degrade, .a-point, .s-leds circle, .a-appel-boite::before { animation: none !important; }
  .a-reveal, .a-journal-lignes li { opacity: 1 !important; transform: none !important; transition: none !important; }
  .s-vm, .a-ecran { transition: none !important; }
  .a-ecran { transform: none; }
}
