/* ══════════════════════════════════════════════════════════════════
   BLUE DORSA FOUNDRY
   Fond : le zellige vivant de hadith-search, transposé en bleu azur.
   ══════════════════════════════════════════════════════════════════ */

:root {
    --bg-deep: #020716;
    --bg: #041026;
    --panel: rgba(4, 15, 36, 0.82);
    --card: rgba(8, 28, 62, 0.78);

    --azure: #007fff;
    --azure-2: #2f9bff;
    --azure-3: #7fd4ff;
    --ice: #dcefff;
    --white: #f6faff;

    --text: #e2ebf9;
    --muted: #94a9c7;
    --line: rgba(150, 200, 255, 0.16);
    --line-strong: rgba(150, 200, 255, 0.36);

    --font-display: "Sora", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
    --gutter: clamp(18px, 5vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }

html {
    background: var(--bg);
    scroll-behavior: smooth;
    scroll-padding-top: 84px;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    overflow-x: hidden;
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
svg { display: block; }
button { font: inherit; color: inherit; }

:focus-visible {
    outline: 2px solid var(--azure-3);
    outline-offset: 3px;
    border-radius: 6px;
}

.skip {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 100;
    padding: 10px 16px;
    border-radius: 10px;
    background: var(--azure);
    color: #fff;
    text-decoration: none;
    transform: translateY(-160%);
    transition: transform 0.2s var(--ease);
}
.skip:focus { transform: none; }

.container {
    width: min(1120px, 100% - 2 * var(--gutter));
    margin-inline: auto;
}

/* ══════════════════════════════════════════════
   FOND — mêmes couches que hadith-search
   ══════════════════════════════════════════════ */

.celestial-bg {
    position: fixed;
    inset: 0;
    z-index: -3;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 30% 15%, rgba(0, 127, 255, 0.20) 0%, transparent 55%),
        radial-gradient(ellipse at 70% 85%, rgba(127, 212, 255, 0.07) 0%, transparent 45%),
        radial-gradient(ellipse at 50% 50%, rgba(30, 110, 220, 0.10) 0%, transparent 65%),
        var(--bg);
}

/* Couche 1 : tapisserie de fleurs, tourne avec le défilement */
.celestial-bg::before {
    content: "";
    position: absolute;
    top: -25%;
    left: -25%;
    width: 150%;
    height: 150%;
    background-image: url("../patterns/mosaic-flower.svg");
    background-size: 200px 200px;
    opacity: 0.15;
    transform: rotate(var(--scroll-rotation, 0deg));
    will-change: transform;
    pointer-events: none;
    transition: transform 0.1s linear;
}

/* Couche 2 : étoiles, tournent en sens inverse */
.celestial-bg::after {
    content: "";
    position: absolute;
    top: -15%;
    left: -15%;
    width: 130%;
    height: 130%;
    background-image: url("../patterns/mosaic-star.svg");
    background-size: 120px 120px;
    opacity: 0.08;
    transform: rotate(var(--scroll-rotation-rev, 0deg));
    will-change: transform;
    pointer-events: none;
    transition: transform 0.1s linear;
}

/* Points lumineux */
.star {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--ice);
    opacity: 0.3;
    animation: mosaicTwinkle 5s ease-in-out infinite;
    pointer-events: none;
}
.star.star-large { box-shadow: 0 0 8px rgba(220, 239, 255, 0.45); }
.star.star-azure { background: var(--azure-2); box-shadow: 0 0 6px rgba(47, 155, 255, 0.4); }

@keyframes mosaicTwinkle {
    0%, 100% { opacity: 0.2; transform: scale(0.8); }
    50%      { opacity: 0.7; transform: scale(1.2); }
}

/* ── Grille de cellules autonomes (construite par mosaic.js) ── */
#mosaicGrid {
    position: fixed;
    inset: 0;
    z-index: -2;
    overflow: hidden;
    pointer-events: none;
    opacity: 0.55;
}

/* L'emplacement porte les réactions au pointeur ; la cellule garde son
   animation propre. Deux éléments, pour que l'un n'écrase pas l'autre. */
.mc-slot {
    position: absolute;
    transition: transform 0.45s var(--ease);
}
.mc-slot.is-near {
    transform: scale(calc(1 + var(--near, 0) * 0.16));
    filter: brightness(calc(1 + var(--near, 0) * 0.9));
}
.mc-slot.wave { animation: mcWave 0.9s var(--ease) backwards; }

@keyframes mcWave {
    0%   { transform: scale(1); }
    35%  { transform: scale(1.22); }
    100% { transform: scale(1); }
}

.mc-cell {
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
    background-position: center;
    transform-origin: center center;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
}

/* Petites étoiles dans les losanges : elles tournent */
.mc-cell.mc-spin-cw  { animation-name: mcSpinCw;  animation-timing-function: linear; }
.mc-cell.mc-spin-ccw { animation-name: mcSpinCcw; animation-timing-function: linear; }
.mc-cell.mc-pulse    { animation-name: mcPulse; }
.mc-cell.mc-wobble   { animation-name: mcWobble; }
/* Grandes fleurs : jamais de rotation, le pavage reste aligné */
.mc-cell.mc-breathe  { animation-name: mcBreatheBig; }
.mc-cell.mc-shimmer  { animation-name: mcShimmerBig; }
.mc-cell.mc-still    { animation: none; }

@keyframes mcSpinCw  { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes mcSpinCcw { from { transform: rotate(0deg); } to { transform: rotate(-360deg); } }
@keyframes mcPulse {
    0%, 100% { transform: scale(0.78); opacity: 0.50; }
    50%      { transform: scale(1.10); opacity: 1; }
}
@keyframes mcWobble {
    0%, 100% { transform: rotate(-20deg) scale(0.92); }
    50%      { transform: rotate(20deg) scale(1.08); }
}
@keyframes mcBreatheBig {
    0%, 100% { transform: scale(0.96); opacity: 0.70; filter: brightness(0.95); }
    50%      { transform: scale(1.04); opacity: 0.95; filter: brightness(1.25); }
}
@keyframes mcShimmerBig {
    0%, 100% { filter: brightness(0.85) saturate(0.95); }
    33%      { filter: brightness(1.30) saturate(1.20); }
    66%      { filter: brightness(0.95) saturate(1.05); }
}

/* Téléphone : mêmes mouvements, sans filtres (seuls transform et opacity
   restent sur le compositeur, donc pas de saccade au défilement). */
@media (max-width: 768px) {
    .mc-cell.mc-breathe { animation-name: mcBreatheLite; }
    .mc-cell.mc-shimmer { animation-name: mcShimmerLite; }
}
@keyframes mcBreatheLite {
    0%, 100% { transform: scale(0.96); opacity: 0.70; }
    50%      { transform: scale(1.04); opacity: 0.95; }
}
@keyframes mcShimmerLite {
    0%, 100% { opacity: 0.60; }
    33%      { opacity: 1; }
    66%      { opacity: 0.72; }
}

/* Halo qui suit le pointeur et « éclaire » la mosaïque */
.bg-spot {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 28%),
        rgba(47, 155, 255, 0.22), rgba(0, 127, 255, 0.07) 42%, transparent 66%);
    mix-blend-mode: screen;
}

/* Onde au clic */
.ripples {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}
.ripple {
    position: absolute;
    width: 28px;
    height: 28px;
    margin: -14px 0 0 -14px;
    border-radius: 50%;
    border: 1.5px solid rgba(127, 212, 255, 0.85);
    animation: ripple 1.2s var(--ease) forwards;
}
@keyframes ripple {
    from { transform: scale(0.4); opacity: 0.9; }
    to   { transform: scale(34); opacity: 0; }
}

/* ══════════════════════════════════════════════
   NAVIGATION
   ══════════════════════════════════════════════ */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    border-bottom: 1px solid transparent;
    transition: background 0.3s, border-color 0.3s;
}
.nav.is-scrolled {
    background: rgba(3, 10, 26, 0.78);
    -webkit-backdrop-filter: blur(14px) saturate(1.3);
    backdrop-filter: blur(14px) saturate(1.3);
    border-bottom-color: var(--line);
}
.nav-inner {
    width: min(1180px, 100% - 2 * var(--gutter));
    margin-inline: auto;
    padding: 14px 0;
    display: flex;
    align-items: center;
    gap: 20px;
}
.progress {
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 100%;
    height: 2px;
    transform: scaleX(var(--progress, 0));
    transform-origin: left;
    background: linear-gradient(90deg, var(--azure), var(--azure-3));
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--white);
    text-decoration: none;
}
.brand-mark { width: 34px; height: 34px; color: var(--ice); flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.16em;
}
.brand-sub {
    margin-top: 6px;
    font-family: var(--font-display);
    font-weight: 300;
    font-size: 0.56rem;
    letter-spacing: 0.62em;
    color: var(--azure-3);
}

.nav-links { margin-inline-start: auto; display: flex; gap: 24px; }
.nav-links a {
    position: relative;
    padding: 6px 0;
    font-size: 0.9rem;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s;
}
.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1.5px;
    background: var(--azure-3);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s var(--ease);
}
.nav-links a:hover, .nav-links a.is-current { color: var(--white); }
.nav-links a:hover::after, .nav-links a.is-current::after { transform: scaleX(1); }

/* ══════════════════════════════════════════════
   BOUTONS
   ══════════════════════════════════════════════ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 26px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: translate 0.3s var(--ease), box-shadow 0.25s, background 0.25s, border-color 0.25s;
}
.btn-sm { padding: 9px 18px; font-size: 0.85rem; }
.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--azure-2), var(--azure) 45%, #0a5fd6);
    box-shadow: 0 10px 30px rgba(0, 127, 255, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
.btn-primary:hover { box-shadow: 0 14px 42px rgba(0, 127, 255, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
.btn-ghost {
    color: var(--white);
    background: rgba(8, 26, 58, 0.66);
    border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: var(--azure-3); background: rgba(12, 40, 88, 0.8); }
.btn-arrow { width: 18px; height: 18px; transition: transform 0.3s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(4px); }

/* ══════════════════════════════════════════════
   BANNIÈRE
   ══════════════════════════════════════════════ */

.hero {
    position: relative;
    isolation: isolate;
    min-height: 100vh;
    min-height: 100svh;
    display: grid;
    place-items: center;
    padding: 120px var(--gutter) 96px;
    text-align: center;
}
/* Voile sombre derrière le texte : la mosaïque reste vive autour */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(ellipse 62% 58% at 50% 50%,
        rgba(2, 7, 22, 0.86), rgba(2, 7, 22, 0.6) 48%, transparent 76%);
    pointer-events: none;
}
.hero-inner { max-width: 900px; }

.hero-mark {
    width: 74px;
    height: 74px;
    margin: 0 auto 22px;
    color: var(--ice);
    filter: drop-shadow(0 0 22px rgba(47, 155, 255, 0.55));
}
.hero-mark.rise {
    animation: rise 0.9s var(--ease) both, markBreathe 9s ease-in-out 1.2s infinite;
}
@keyframes markBreathe {
    0%, 100% { scale: 0.96; }
    50%      { scale: 1.06; }
}

.wordmark { font-family: var(--font-display); }
.wordmark-name {
    display: block;
    font-weight: 700;
    font-size: clamp(1.5rem, 4.4vw, 2.5rem);
    letter-spacing: 0.2em;
    text-indent: 0.2em;
    color: var(--white);
}
.wordmark-sub {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 10px;
    font-weight: 300;
    font-size: clamp(0.62rem, 1.5vw, 0.82rem);
    letter-spacing: 0.9em;
    text-indent: 0.9em;
    color: var(--azure-3);
}
.wordmark-sub::before, .wordmark-sub::after {
    content: "";
    width: clamp(26px, 8vw, 84px);
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--line-strong));
}
.wordmark-sub::after { transform: scaleX(-1); }

.eyebrow {
    margin-top: 34px;
    font-family: var(--font-display);
    font-size: clamp(0.66rem, 1.6vw, 0.8rem);
    font-weight: 600;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--azure-3);
}

.hero h1 {
    margin: 18px 0 22px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(2.3rem, 7.2vw, 5.2rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--white);
    text-wrap: balance;
}
/* « Forge » : un reflet qui parcourt le mot, comme du métal chauffé au bleu */
.forge {
    background: linear-gradient(100deg, #fff 0%, var(--azure-3) 28%, var(--azure) 52%, var(--azure-3) 76%, #fff 100%);
    background-size: 220% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: forgeShine 6s linear infinite;
}
@keyframes forgeShine { to { background-position: -220% 0; } }

.hero-sub {
    max-width: 640px;
    margin-inline: auto;
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: var(--text);
}
.hero-cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-top: 34px;
}
.hero-tag {
    margin-top: 30px;
    font-family: var(--font-display);
    font-size: 0.82rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
}

/* Entrée en cascade (CSS pur : visible même sans JavaScript) */
.rise { animation: rise 0.9s var(--ease) both; animation-delay: calc(var(--i, 0) * 90ms + 80ms); }
@keyframes rise {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: none; }
}

.scroll-cue {
    position: absolute;
    left: 50%;
    bottom: 26px;
    width: 26px;
    height: 42px;
    margin-left: -13px;
    border: 1.5px solid var(--line-strong);
    border-radius: 14px;
}
.scroll-cue span {
    position: absolute;
    left: 50%;
    top: 8px;
    width: 4px;
    height: 8px;
    margin-left: -2px;
    border-radius: 2px;
    background: var(--azure-3);
    animation: cue 1.8s var(--ease) infinite;
}
@keyframes cue {
    0%   { transform: translateY(0); opacity: 1; }
    80%  { transform: translateY(14px); opacity: 0; }
    100% { transform: translateY(0); opacity: 0; }
}

/* ══════════════════════════════════════════════
   SECTIONS
   ══════════════════════════════════════════════ */

.section { padding: clamp(28px, 5vw, 56px) 0; }
#contact { padding-bottom: clamp(56px, 8vw, 96px); }

.panel {
    position: relative;
    padding: clamp(26px, 5vw, 58px);
    border: 1px solid var(--line);
    border-radius: 28px;
    background: var(--panel);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.section-head { max-width: 720px; margin-bottom: clamp(26px, 4vw, 42px); }
.kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    font-family: var(--font-display);
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--azure-3);
}
.kicker::before {
    content: "";
    width: 9px;
    height: 9px;
    background: var(--azure-2);
    transform: rotate(45deg);
    box-shadow: 0 0 12px rgba(47, 155, 255, 0.9);
}

h2 {
    margin-bottom: 14px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.7rem, 3.8vw, 2.7rem);
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: var(--white);
    text-wrap: balance;
}
h3 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.16rem;
    line-height: 1.3;
    color: var(--white);
}
.lead { font-size: 1.06rem; color: var(--muted); }

/* Apparition au défilement — n'agit que si JavaScript tourne (classe .js) */
.js .reveal { opacity: 0; }
.js .reveal.in { animation: revealIn 0.7s var(--ease) both; animation-delay: var(--d, 0ms); }
@keyframes revealIn {
    from { opacity: 0; translate: 0 22px; }
    to   { opacity: 1; translate: 0 0; }
}

/* ── Introduction ── */
.intro h2 { max-width: 16ch; font-size: clamp(1.9rem, 4.6vw, 3.2rem); }
.intro-cols {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: clamp(24px, 4vw, 52px);
    align-items: center;
    margin-top: 26px;
}
.intro-cols p + p { margin-top: 14px; }
.intro-cols .lead { color: var(--text); }
.intro-cols strong { color: var(--white); }
.mission {
    position: relative;
    padding: 28px 28px 28px 30px;
    border-radius: 20px;
    border: 1px solid var(--line-strong);
    background: linear-gradient(140deg, rgba(0, 127, 255, 0.22), rgba(6, 22, 52, 0.5));
    overflow: hidden;
}
.mission-mark {
    position: absolute;
    right: -26px;
    bottom: -30px;
    width: 150px;
    height: 150px;
    color: rgba(220, 239, 255, 0.10);
    animation: mcSpinCw 60s linear infinite;
}
.mission p {
    position: relative;
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 2.2vw, 1.38rem);
    font-weight: 600;
    line-height: 1.4;
    color: var(--white);
}

/* ── Problèmes → solutions ── */
.challenges { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; align-items: start; }
.challenge {
    position: relative;
    padding: 20px 48px 20px 26px;
    padding-inline: 26px 48px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--card);
    overflow: hidden;
    transition: border-color 0.3s, background 0.3s;
}
.challenge::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--azure-3), var(--azure));
    transform: scaleY(0.28);
    transform-origin: top;
    transition: transform 0.45s var(--ease);
}
.challenge:hover { border-color: var(--line-strong); background: rgba(10, 36, 80, 0.85); }
.challenge:hover::before { transform: scaleY(1); }
.challenge-pain {
    font-family: var(--font-display);
    font-size: 1.08rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--white);
}
.challenge-fix {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    color: var(--azure-3);
    font-size: 0.97rem;
}
.challenge-fix svg {
    flex: none;
    width: 18px;
    height: 18px;
    margin-top: 4px;
    transition: transform 0.35s var(--ease);
}
.challenge:hover .challenge-fix svg { transform: translateX(4px); }

/* ── Services ── */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; align-items: start; }
.card {
    position: relative;
    padding: 22px 24px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: linear-gradient(160deg, rgba(12, 38, 84, 0.86), rgba(4, 14, 34, 0.92));
    overflow: hidden;
    transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
    transition: transform 0.4s var(--ease), border-color 0.3s, box-shadow 0.3s;
}
.card.is-tilting { transition: border-color 0.3s, box-shadow 0.3s; }
.card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 0%), rgba(127, 212, 255, 0.18), transparent 55%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}
.card:hover { border-color: var(--line-strong); box-shadow: 0 24px 60px rgba(0, 60, 160, 0.38); }
.card:hover::before { opacity: 1; }
.card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; padding-inline-end: 30px; }
.card-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    border: 1px solid var(--line-strong);
    background: rgba(0, 127, 255, 0.16);
    color: var(--azure-3);
}
.card-icon svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.card-num {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    color: rgba(150, 200, 255, 0.45);
}
.card p { margin-top: 10px; color: var(--muted); font-size: 0.97rem; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chips li {
    padding: 5px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(0, 127, 255, 0.10);
    font-size: 0.78rem;
    color: var(--ice);
}

/* ── Approche ── */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.step {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px 18px 20px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(6, 22, 50, 0.6);
    text-align: start;
    cursor: pointer;
    overflow: hidden;
    transition: border-color 0.3s, background 0.3s;
}
.step:hover { border-color: var(--line-strong); }
.step.is-active { border-color: var(--azure-2); background: rgba(0, 127, 255, 0.18); }
.step-num { font-family: var(--font-display); font-size: 0.76rem; letter-spacing: 0.2em; color: var(--azure-3); }
.step-name { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--white); }
.step-bar {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--azure), var(--azure-3));
    transform: scaleX(0);
    transform-origin: left;
}
.step.is-active .step-bar { transform: scaleX(1); }
.stepper.is-auto .step.is-active .step-bar { animation: stepFill 5.2s linear both; }
@keyframes stepFill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.step-panels { margin-top: 14px; }
.step-panel {
    padding: clamp(22px, 3.5vw, 34px);
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--card);
}
.step-panel + .step-panel { margin-top: 12px; }
.step-panel p { margin-top: 10px; max-width: 66ch; color: var(--muted); }
.js .step-panel:not([hidden]) { animation: panelIn 0.5s var(--ease); }
@keyframes panelIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ── Infrastructure ── */
.infra {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(22px, 4vw, 52px);
    align-items: center;
}
.orbit { width: min(420px, 100%); height: auto; margin-inline: auto; overflow: visible; }
.orbit-ring {
    fill: none;
    stroke: var(--line-strong);
    stroke-width: 1;
    stroke-dasharray: 2 10;
    transform-box: fill-box;
    transform-origin: center;
    animation: mcSpinCw 80s linear infinite;
}
.orbit-ring--inner { stroke-dasharray: 1 7; animation: mcSpinCcw 60s linear infinite; }
.orbit-link {
    stroke: rgba(127, 212, 255, 0.32);
    stroke-width: 1.5;
    stroke-dasharray: 5 9;
    animation: orbitFlow 1.6s linear infinite;
    transition: stroke 0.35s, stroke-width 0.35s;
}
.orbit-link.is-active { stroke: var(--azure-3); stroke-width: 2.6; }
@keyframes orbitFlow { to { stroke-dashoffset: -28; } }
.orbit-core rect { fill: rgba(0, 127, 255, 0.14); stroke: var(--ice); stroke-width: 2; stroke-linejoin: round; }
.orbit-core circle { fill: var(--ice); }
.orbit-core {
    animation: mcBreatheLite 7s ease-in-out infinite;
    transform-box: fill-box;
    transform-origin: center;
}
.orbit-core-label {
    fill: var(--muted);
    font-family: var(--font-display);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.orbit-node { cursor: pointer; }
.orbit-node circle {
    fill: rgba(6, 24, 56, 0.96);
    stroke: var(--line-strong);
    stroke-width: 1.5;
    transform-box: fill-box;
    transform-origin: center;
    transition: fill 0.35s, stroke 0.35s, transform 0.35s var(--ease);
}
.orbit-node text {
    fill: var(--ice);
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 600;
    pointer-events: none;
}
.orbit-node.is-active circle {
    fill: var(--azure);
    stroke: #fff;
    transform: scale(1.1);
    filter: drop-shadow(0 0 14px rgba(47, 155, 255, 0.85));
}
.orbit-node.is-active text { fill: #fff; }

.pillars { display: grid; gap: 12px; }
.pillar {
    display: block;
    width: 100%;
    padding: 20px 22px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(6, 22, 50, 0.6);
    text-align: start;
    cursor: pointer;
    transition: border-color 0.3s, background 0.3s;
}
.pillar:hover { border-color: var(--line-strong); }
.pillar.is-active { border-color: var(--azure-2); background: rgba(0, 127, 255, 0.16); }
.pillar-title { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.06rem; color: var(--white); }
.pillar-text { display: block; margin-top: 6px; color: var(--muted); font-size: 0.95rem; }

/* ── Contact ── */
.panel-contact {
    background:
        radial-gradient(ellipse 70% 60% at 100% 0%, rgba(0, 127, 255, 0.20), transparent 60%),
        var(--panel);
}
.contact {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: clamp(20px, 3.5vw, 40px);
    align-items: start;
}
.mail-cards { display: grid; gap: 14px; }
.mail-card { padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); }
.mail-label { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.mail-addr {
    display: inline-block;
    margin-top: 8px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(1rem, 2.2vw, 1.22rem);
    color: var(--white);
    text-decoration: none;
    overflow-wrap: anywhere;
    background: linear-gradient(var(--azure-3), var(--azure-3)) no-repeat 0 100% / 0 1.5px;
    transition: background-size 0.35s var(--ease);
}
.mail-addr:hover { background-size: 100% 1.5px; }
.mail-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

.form {
    display: grid;
    gap: 14px;
    padding: clamp(20px, 3vw, 30px);
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(4, 14, 34, 0.7);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; }
.field > span { font-size: 0.82rem; color: var(--muted); }
.field input, .field select, .field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    background: rgba(8, 26, 58, 0.7);
    color: var(--white);
    font: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--azure-3) 50%), linear-gradient(135deg, var(--azure-3) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.field option { background: #06142e; color: var(--white); }
.field input::placeholder, .field textarea::placeholder { color: rgba(148, 169, 199, 0.7); }
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none;
    border-color: var(--azure-2);
    box-shadow: 0 0 0 3px rgba(0, 127, 255, 0.28);
}
.form .btn { justify-self: start; }
.form-note { font-size: 0.82rem; color: var(--muted); }

/* ── Notification ── */
.toast {
    position: fixed;
    left: 50%;
    bottom: 26px;
    z-index: 80;
    padding: 12px 20px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: rgba(6, 24, 56, 0.96);
    color: var(--white);
    font-size: 0.9rem;
    opacity: 0;
    transform: translate(-50%, 16px);
    transition: opacity 0.3s, transform 0.3s var(--ease);
    pointer-events: none;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ══════════════════════════════════════════════
   ADAPTATION
   ══════════════════════════════════════════════ */

@media (max-width: 900px) {
    .nav-links { display: none; }
    .lang { margin-inline-start: auto; }
    .intro-cols, .infra, .contact { grid-template-columns: 1fr; }
    .infra-visual { order: -1; }
    .orbit { width: min(340px, 100%); }
}
@media (max-width: 720px) {
    .challenges, .cards, .terms, .form-row { grid-template-columns: 1fr; }
    .steps { grid-template-columns: repeat(2, 1fr); }
    .panel { border-radius: 22px; }
    .bg-spot { mix-blend-mode: normal; }
    .hero::before {
        background: radial-gradient(ellipse 120% 64% at 50% 50%,
            rgba(2, 7, 22, 0.9), rgba(2, 7, 22, 0.7) 55%, transparent 90%);
    }
}
@media (max-width: 420px) {
    .nav-cta { display: none; }
    .brand-name { font-size: 0.86rem; }
    .hero-cta .btn { width: 100%; }
}

/* Mouvement réduit : le zellige reste, immobile */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .mc-cell, .star, .forge { animation: none !important; }
    .js .reveal, .js .reveal.in { opacity: 1; animation: none !important; }
}


/* ══════════════════════════════════════════════
   FINITION
   ══════════════════════════════════════════════ */

/* Profondeur : bords assombris et grain très léger, derrière le contenu */
.vignette {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(ellipse 120% 90% at 50% 40%, transparent 55%, rgba(1, 4, 14, 0.62) 100%);
}
.grain {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.07;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.9 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Le premier affichage attend le choix de langue par pays (700 ms au plus) */
.lang-pending body { visibility: hidden; }

/* Les éléments de marque restent en caractères latins, de gauche à droite */
[lang="en"] { direction: ltr; unicode-bidi: isolate; }

/* ── Bannière ── */
/* Le halo déborde volontairement de la bannière : on le rogne à ses bords,
   sinon il élargit la page et fait apparaître un défilement horizontal. */
.hero { overflow: hidden; overflow: clip; }
.hero-aurora {
    position: absolute;
    inset: -10% -20%;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(38% 34% at 30% 40%, rgba(0, 127, 255, 0.34), transparent 70%),
        radial-gradient(34% 30% at 72% 60%, rgba(127, 212, 255, 0.16), transparent 70%);
    filter: blur(40px);
    animation: aurora 24s ease-in-out infinite alternate;
}
@keyframes aurora {
    from { transform: translate3d(-3%, -2%, 0) scale(1); }
    to   { transform: translate3d(3%, 3%, 0) scale(1.08); }
}
.hero-seal {
    position: relative;
    display: grid;
    place-items: center;
    width: 116px;
    height: 116px;
    margin: 0 auto 26px;
}
.hero-ring {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    fill: none;
    stroke: var(--line-strong);
    stroke-width: 0.7;
    stroke-dasharray: 1 5;
    animation: mcSpinCw 50s linear infinite;
}
.hero-ring circle + circle { stroke-dasharray: 16 7; stroke: rgba(127, 212, 255, 0.5); }
.hero-seal .hero-mark {
    width: 62px;
    height: 62px;
    margin: 0;
    animation: markBreathe 9s ease-in-out infinite;
}
.wordmark-name {
    background: linear-gradient(180deg, #ffffff 25%, #b4dcff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-tag { display: flex; align-items: center; justify-content: center; gap: 14px; }
.hero-tag::before, .hero-tag::after {
    content: "";
    width: 34px;
    height: 1px;
    background: var(--line-strong);
}

h2 {
    background: linear-gradient(180deg, #ffffff 35%, #c4e2ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.kicker-num { color: var(--white); opacity: 0.5; letter-spacing: 0.12em; }

/* ── Boutons : blanc glacé sur bleu nuit, reflet au survol ── */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.22) 50%, transparent 65%);
    transform: translateX(-120%);
    transition: transform 0.75s var(--ease);
}
.btn:hover::after { transform: translateX(120%); }
.btn-primary {
    color: #041026;
    background: linear-gradient(180deg, #ffffff, #d3e9ff);
    box-shadow: 0 10px 34px rgba(47, 155, 255, 0.4), inset 0 -2px 0 rgba(4, 16, 38, 0.12);
}
.btn-primary::after { background: linear-gradient(105deg, transparent 35%, rgba(47, 155, 255, 0.4) 50%, transparent 65%); }
.btn-primary:hover { box-shadow: 0 14px 46px rgba(47, 155, 255, 0.65), inset 0 -2px 0 rgba(4, 16, 38, 0.12); }

/* ── Panneaux : liseré qui s'éclaire sous le pointeur ── */
.panel {
    border-color: transparent;
    background: linear-gradient(180deg, rgba(9, 27, 60, 0.84), rgba(3, 11, 28, 0.88));
}
.glow { position: relative; }
.glow::after {
    content: "";
    position: absolute;
    inset: 0;
    padding: 1px;
    border-radius: inherit;
    pointer-events: none;
    background: radial-gradient(520px circle at var(--px, 50%) var(--py, -30%),
        rgba(170, 220, 255, 0.8), rgba(150, 200, 255, 0.16) 38%, rgba(150, 200, 255, 0.08) 70%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}
.card.glow { border-color: transparent; }

/* ── Bandeau défilant ── */
.ticker {
    overflow: hidden;
    padding: 18px 0;
    border-block: 1px solid var(--line);
    background: rgba(2, 7, 22, 0.6);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.ticker-track { display: flex; width: max-content; animation: ticker 60s linear infinite; }
.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 28px;
    padding-inline-end: 28px;
    font-family: var(--font-display);
    font-size: 0.78rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--ice);
}
.ticker-item::after { content: ""; width: 6px; height: 6px; background: var(--azure-2); transform: rotate(45deg); }
@keyframes ticker    { to { transform: translateX(-50%); } }
@keyframes tickerRtl { to { transform: translateX(50%); } }

/* ── Cartes compactes : le détail n'apparaît qu'au survol ou au toucher ── */
.more { display: grid; grid-template-rows: 1fr; }
.more-inner { display: block; overflow: hidden; min-height: 0; }
.js .expand { cursor: pointer; }
.js .expand .more,
.js .pillar .more {
    grid-template-rows: 0fr;
    opacity: 0;
    transition: grid-template-rows 0.5s var(--ease), opacity 0.4s var(--ease);
}
.js .expand.is-open .more,
.js .expand:focus-visible .more,
.js .expand:has(:focus-visible) .more,
.js .pillar.is-active .more { grid-template-rows: 1fr; opacity: 1; }
@media (hover: hover) and (pointer: fine) {
    .js .expand:hover .more { grid-template-rows: 1fr; opacity: 1; transition-delay: 0.07s; }
    .js .expand:hover .expand-hint { transform: rotate(45deg); opacity: 1; }
}
.expand-hint {
    position: absolute;
    inset-block-start: 20px;
    inset-inline-end: 20px;
    width: 16px;
    height: 16px;
    color: var(--azure-3);
    opacity: 0.6;
    transition: transform 0.4s var(--ease), opacity 0.3s;
}
html:not(.js) .expand-hint { display: none; }
.expand.is-open .expand-hint { transform: rotate(45deg); opacity: 1; }
.more-inner > :first-child { margin-top: 12px; }
.challenge .more-inner > :first-child { margin-top: 10px; }
.challenge-pain { font-size: 1.02rem; }
.card h3 { font-size: 1.1rem; }
.card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--azure-3);
    text-decoration: none;
}
.card-link:hover { color: var(--white); }
.card-link .btn-arrow { width: 16px; height: 16px; }
.card-link:hover .btn-arrow { transform: translateX(4px); }
.pillar { padding: 16px 20px; }
.pillar .more { display: grid; }
.pillar-text { margin-top: 0; }

/* ── Expertise ── */
.terms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: start; }
.term {
    position: relative;
    padding: 20px 46px 20px 22px;
    padding-inline: 22px 46px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(6, 22, 50, 0.55);
    transition: border-color 0.3s, background 0.3s;
}
.term:hover, .term.is-open { border-color: var(--line-strong); background: rgba(8, 30, 68, 0.75); }
.term h3 { font-size: 1.02rem; }
.term-def { color: var(--muted); font-size: 0.94rem; }
.term-use {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed var(--line);
    color: var(--azure-3);
    font-size: 0.9rem;
}

/* ── FAQ ── */
.faq { display: grid; gap: 10px; max-width: 880px; }
.faq-item {
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(6, 22, 50, 0.55);
    transition: border-color 0.3s, background 0.3s;
}
.faq-item[open] { border-color: var(--line-strong); background: rgba(8, 30, 68, 0.75); }
.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 22px;
    cursor: pointer;
    list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item h3 { font-size: 1.03rem; }
.faq-icon { position: relative; flex: none; width: 14px; height: 14px; }
.faq-icon::before, .faq-icon::after {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    width: 14px;
    height: 2px;
    border-radius: 2px;
    background: var(--azure-3);
    transition: transform 0.3s var(--ease);
}
.faq-icon::after { transform: rotate(90deg); }
.faq-item[open] .faq-icon::after { transform: rotate(0deg); }
.faq-a { padding: 0 22px 20px; max-width: 72ch; color: var(--muted); }

/* ── Menu des langues ── */
.lang { position: relative; }
.lang summary {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 12px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: rgba(6, 22, 50, 0.7);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--white);
    cursor: pointer;
    list-style: none;
    user-select: none;
    transition: border-color 0.2s;
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover, .lang[open] summary { border-color: var(--azure-3); }
.lang-globe, .lang-caret {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.lang-caret { width: 12px; height: 12px; transition: transform 0.25s; }
.lang[open] .lang-caret { transform: rotate(180deg); }
.lang-list {
    position: absolute;
    inset-block-start: calc(100% + 10px);
    inset-inline-end: 0;
    min-width: 176px;
    padding: 6px;
    border: 1px solid var(--line-strong);
    border-radius: 16px;
    background: rgba(4, 14, 34, 0.97);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
    animation: panelIn 0.25s var(--ease);
}
.lang-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 9px 12px;
    border-radius: 10px;
    font-size: 0.93rem;
    color: var(--text);
    text-decoration: none;
}
.lang-list a:hover { background: rgba(0, 127, 255, 0.16); color: #fff; }
.lang-list a[aria-current] { background: rgba(0, 127, 255, 0.24); color: #fff; }
.lang-list a[aria-current]::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--azure-3); }

/* ── Pied de page ── */
.footer { padding: 56px 0 34px; border-top: 1px solid var(--line); background: rgba(2, 6, 18, 0.9); }
.footer-top { display: grid; grid-template-columns: 1.5fr 1.2fr 0.8fr 1fr; gap: 36px; }
.footer-brand p { max-width: 36ch; margin-top: 16px; font-size: 0.9rem; color: var(--muted); }
.footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; }
.footer-title {
    margin-bottom: 6px;
    font-family: var(--font-display);
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--azure-3);
}
.footer-col a { font-size: 0.9rem; color: var(--muted); text-decoration: none; transition: color 0.2s; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px 24px;
    margin-top: 44px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
    font-size: 0.84rem;
    color: var(--muted);
}
.footer-bottom p:first-child { font-family: var(--font-display); letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.74rem; }

/* ── Écritures : polices et réglages par langue ── */
:lang(en) {
    --font-display: "Sora", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
:lang(zh) {
    --font-display: "Sora", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
    --font-body: "Inter", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}
:lang(hi) {
    --font-display: "Noto Sans Devanagari", "Sora", system-ui, sans-serif;
    --font-body: "Noto Sans Devanagari", "Inter", system-ui, sans-serif;
}
:lang(ar) {
    --font-display: "IBM Plex Sans Arabic", "Sora", system-ui, sans-serif;
    --font-body: "IBM Plex Sans Arabic", "Inter", system-ui, sans-serif;
}
/* L'espacement des lettres casse les ligatures arabes et les conjointes hindi */
:lang(ar), :lang(hi) { letter-spacing: 0 !important; }
:lang(ar) h2, :lang(hi) h2 { line-height: 1.45; }
:lang(ar) h3, :lang(hi) h3, :lang(ar) .challenge-pain, :lang(hi) .challenge-pain, :lang(ar) .mission p, :lang(hi) .mission p { line-height: 1.6; }
:lang(zh) h2 { line-height: 1.35; }

/* ── Droite à gauche ── */
[dir="rtl"] .btn-arrow, [dir="rtl"] .challenge-fix svg { transform: scaleX(-1); }
[dir="rtl"] .btn:hover .btn-arrow, [dir="rtl"] .card-link:hover .btn-arrow { transform: scaleX(-1) translateX(4px); }
[dir="rtl"] .progress, [dir="rtl"] .step-bar, [dir="rtl"] .nav-links a::after { transform-origin: right; }
[dir="rtl"] .ticker-track { animation-name: tickerRtl; }
.field select { padding-right: 14px; padding-inline-end: 40px; }
[dir="rtl"] .field select { background-position: 14px 50%, 20px 50%; }

@media (max-width: 900px) {
    .terms { grid-template-columns: repeat(2, 1fr); }
    .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
    .terms { grid-template-columns: 1fr; }
    .ticker-track { animation-duration: 44s; }
}
@media (max-width: 520px) {
    .footer-top { grid-template-columns: 1fr; gap: 28px; }
    .lang summary { padding: 7px 10px; }
}
@media (prefers-reduced-motion: reduce) {
    .ticker-track, .hero-aurora, .hero-ring, .hero-seal .hero-mark { animation: none !important; }
}

/* ── Signature : version épurée ──
   Graisse fine, un seul mot appuyé, curseur de terminal. Plus de dégradé animé. */
.hero h1 {
    font-weight: 300;
    font-size: clamp(1.9rem, 5.2vw, 3.9rem);
    letter-spacing: -0.035em;
    line-height: 1.12;
}
.forge {
    font-weight: 600;
    background: none;
    -webkit-text-fill-color: currentColor;
    color: var(--azure-3);
    animation: none;
}
.hero h1::after {
    content: "";
    display: inline-block;
    width: 0.48em;
    height: 0.07em;
    margin-inline-start: 0.14em;
    background: var(--azure-2);
    box-shadow: 0 0 12px rgba(47, 155, 255, 0.9);
    animation: caret 1.1s steps(1) infinite;
}
@keyframes caret { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .hero h1::after { animation: none; } }


/* ══════════════════════════════════════════════
   FOND : MOSAÏQUE DE PLUMES (plumes.js)
   Remplace l'ancien pavage de rosaces. Le canvas est dessiné par plumes.js ;
   sans lui, il reste le dégradé bleu nuit de .celestial-bg.
   ══════════════════════════════════════════════ */
#plumes {
    position: fixed;
    inset: 0;
    z-index: -2;
    width: 100vw;
    height: 100vh;
    height: 100lvh;
    display: block;
    pointer-events: none;
}
.celestial-bg::before, .celestial-bg::after { content: none; }
.grain { display: none; }
/* Le texte de la bannière passe sur des traînées claires : une ombre le détache. */
.hero-inner { text-shadow: 0 2px 22px rgba(2, 7, 22, 0.9), 0 0 3px rgba(2, 7, 22, 0.7); }
.hero .btn { text-shadow: none; }
.hero::before {
    background: radial-gradient(ellipse 66% 60% at 50% 50%,
        rgba(2, 7, 22, 0.84), rgba(2, 7, 22, 0.58) 50%, transparent 78%);
}
.vignette { background: radial-gradient(ellipse 120% 90% at 50% 40%, transparent 60%, rgba(1, 4, 14, 0.5) 100%); }
/* Le nom en dégradé ne supporte pas text-shadow (l'ombre transparaît dans les lettres) : ombre portée par filtre. */
.wordmark-name { text-shadow: none; filter: drop-shadow(0 2px 14px rgba(2, 7, 22, 0.9)); }
.hero h1 { font-size: clamp(1.9rem, 4.4vw, 3.4rem); }
/* Le menu passe sur des traînées claires tant que la page n'a pas défilé */
.nav { background: linear-gradient(180deg, rgba(2, 7, 22, 0.78), rgba(2, 7, 22, 0)); }
