/* ==========================================================================
   AICKO IPTV — design system du site
   --------------------------------------------------------------------------
   Une seule feuille pour tout le site : les pages n'embarquent plus leur
   propre <style>, ce qui evitait jusqu'ici que deux pages divergent sur la
   meme couleur.

   Reperes repris de l'application Flutter pour que le site et l'app se
   ressemblent :
     - fond  : assets/images/background-iptv.png, voile noir 0.55 -> 0.88
               (lib/widgets/app_background.dart)
     - accent: le rouge AICKO deja utilise par la page de presentation
   ========================================================================== */

/* ---------- Jetons ------------------------------------------------------- */
:root {
    --bg:            #0a0e1a;
    --bg-elev:       #111726;
    --bg-card:       rgba(19, 26, 43, 0.93);
    --bg-card-hover: rgba(27, 36, 58, 0.97);

    --primary:        #ef4444;
    --primary-glow:   #dc2626;
    --primary-soft:   rgba(239, 68, 68, 0.12);
    --primary-border: rgba(239, 68, 68, 0.28);

    --accent:      #f59e0b;   /* dore du halo de focus TV */
    --accent-soft: rgba(245, 158, 11, 0.14);

    --text:           #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted:     #94a3b8;
    --text-faint:     #64748b;

    --success: #22c55e;
    --border:  rgba(255, 255, 255, 0.09);
    --border-strong: rgba(255, 255, 255, 0.16);

    --radius:    16px;
    --radius-sm: 10px;
    --radius-lg: 24px;

    --shadow:    0 18px 48px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 28px 70px rgba(0, 0, 0, 0.55);

    --nav-h:     64px;
    --sidebar-w: clamp(280px, 19vw, 340px);
    /* Pleine largeur sur ordinateur, avec une limite haute pour que les lignes
       de texte restent lisibles sur un ecran tres large : au-dela, une ligne
       de plus de 120 caracteres devient penible a suivre. */
    --maxw:      1920px;

    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Base --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    /* La nav collante masquerait la cible d'une ancre sans ce decalage. */
    scroll-padding-top: calc(var(--nav-h) + 16px);
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.75;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Le fond de l'app, pose en couche fixe. Un pseudo-element plutot que
   background-attachment: fixed, que iOS ignore en etirant l'image. */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -2;
    /* Voile beaucoup plus dense que celui de l'application : l'image est une
       capture d'ecran de l'app, tres chargee et tres contrastee. Aux opacites
       du mobile (0.55 -> 0.88), les affiches transparaissaient derriere les
       cartes et le texte devenait illisible. L'image ne sert plus ici que de
       texture ; c'est l'en-tete qui la montre vraiment. */
    background:
        linear-gradient(to bottom,
            rgba(8, 11, 20, 0.93) 0%,
            rgba(8, 11, 20, 0.95) 45%,
            rgba(8, 11, 20, 0.97) 100%),
        url('/images/background-iptv.png') center center / cover no-repeat;
}

/* Halos colores, tres legers : ils donnent de la profondeur sans voler la
   lisibilite au texte. */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(circle at 12% -5%,  rgba(239, 68, 68, 0.16), transparent 42%),
        radial-gradient(circle at 92% 12%,  rgba(245, 158, 11, 0.09), transparent 46%),
        radial-gradient(circle at 50% 108%, rgba(220, 38, 38, 0.13), transparent 52%);
}

img { max-width: 100%; display: block; }
a   { color: var(--primary); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: #fca5a5; }

strong, b { color: #fff; font-weight: 700; }

::selection { background: var(--primary); color: #fff; }

/* Focus visible au clavier : le site doit rester utilisable a la telecommande
   comme l'app, qui s'appuie sur un halo dore. */
:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
    border-radius: 6px;
}

/* ---------- Layout ------------------------------------------------------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(16px, 3vw, 48px); }
.container-narrow { width: 100%; max-width: 880px; margin: 0 auto; padding: 0 24px; }

.shell {
    display: grid;
    /* Le contenu occupe la colonne large, la barre laterale passe a droite :
       c'est l'ordre demande, et il place aussi le contenu principal avant la
       navigation secondaire dans le document — ce que lisent d'abord les
       moteurs et les lecteurs d'ecran. */
    grid-template-columns: minmax(0, 1fr) var(--sidebar-w);
    gap: 44px;
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 40px clamp(16px, 3vw, 48px) 0;
    align-items: start;
}
.shell-main { min-width: 0; }

/* ---------- Barre de navigation ------------------------------------------ */
.nav {
    position: sticky;
    top: 0;
    z-index: 200;
    background: rgba(10, 14, 26, 0.82);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    border-bottom: 1px solid var(--border);
    transition: background .3s var(--ease), box-shadow .3s var(--ease);
}
.nav.scrolled { background: rgba(10, 14, 26, 0.96); box-shadow: 0 8px 30px rgba(0, 0, 0, .45); }

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    height: var(--nav-h);
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 clamp(16px, 3vw, 48px);
}

.nav-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-weight: 800;
    letter-spacing: 1.4px;
    font-size: 16px;
    flex-shrink: 0;
}
.nav-brand:hover { color: var(--text); }
.nav-brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav-brand .accent { color: var(--primary); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin-left: auto;
}
.nav-links > li { position: relative; }

.nav-links a {
    display: block;
    padding: 8px 13px;
    border-radius: 9px;
    color: var(--text-secondary);
    font-size: 14.5px;
    font-weight: 500;
    white-space: nowrap;
    transition: color .2s var(--ease), background .2s var(--ease);
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, 0.07); }
.nav-links a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--primary); }

/* Sous-menu « Fonctionnalites » */
.nav-drop > button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 13px;
    border: 0;
    border-radius: 9px;
    background: none;
    color: var(--text-secondary);
    font: inherit;
    font-size: 14.5px;
    font-weight: 500;
    cursor: pointer;
    transition: color .2s var(--ease), background .2s var(--ease);
}
.nav-drop > button:hover,
.nav-drop.open > button { color: #fff; background: rgba(255, 255, 255, 0.07); }
.nav-drop > button svg { width: 14px; height: 14px; transition: transform .25s var(--ease); }
.nav-drop.open > button svg { transform: rotate(180deg); }

.nav-drop-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 290px;
    padding: 8px;
    border: 1px solid var(--border-strong);
    border-radius: 14px;
    background: rgba(17, 23, 38, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow);
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
}
.nav-drop.open .nav-drop-panel { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-drop-panel a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 10px;
    font-size: 14px;
}
.nav-drop-panel a span.ico { font-size: 16px; line-height: 1; }

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 16px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), var(--primary-glow));
    color: #fff !important;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 6px 20px rgba(239, 68, 68, .3);
    transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(239, 68, 68, .45); }
.nav-cta svg { width: 16px; height: 16px; }

.nav-burger {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--border-strong);
    border-radius: 10px;
    background: rgba(255, 255, 255, .05);
    color: var(--text);
    cursor: pointer;
    align-items: center;
    justify-content: center;
}
.nav-burger svg { width: 20px; height: 20px; }

/* ---------- En-tete illustre --------------------------------------------- */
.page-header {
    position: relative;
    isolation: isolate;
    padding: 88px 0 72px;
    text-align: center;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}
.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -2;
    background: url('/images/background-iptv.png') center 38% / cover no-repeat;
    transform: scale(1.06);
    animation: header-drift 26s var(--ease) infinite alternate;
}
.page-header::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(to bottom,
            rgba(10, 14, 26, 0.72) 0%,
            rgba(10, 14, 26, 0.86) 55%,
            rgba(10, 14, 26, 0.99) 100%),
        radial-gradient(circle at 50% 0%, rgba(239, 68, 68, 0.22), transparent 58%);
}
@keyframes header-drift {
    from { transform: scale(1.06) translate3d(0, 0, 0); }
    to   { transform: scale(1.14) translate3d(0, -16px, 0); }
}
.page-header.is-home { padding: 112px 0 92px; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 7px 16px;
    margin-bottom: 22px;
    border: 1px solid var(--primary-border);
    border-radius: 999px;
    background: var(--primary-soft);
    color: #fecaca;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: .6px;
    text-transform: uppercase;
}
.eyebrow .dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, .75);
    animation: pulse 2.4s infinite;
}
@keyframes pulse {
    70%  { box-shadow: 0 0 0 9px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.header-logo {
    width: 96px; height: 96px;
    margin: 0 auto 24px;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    animation: float 6s ease-in-out infinite;
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-11px); }
}

h1, .h1 {
    font-size: clamp(2.1rem, 5.4vw, 3.6rem);
    line-height: 1.12;
    font-weight: 900;
    letter-spacing: -1.2px;
    margin-bottom: 18px;
}
.grad {
    background: linear-gradient(110deg, var(--primary) 0%, #fb923c 48%, var(--accent) 100%);
    background-size: 220% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: shimmer 7s linear infinite;
}
@keyframes shimmer { to { background-position: 220% center; } }

.lede {
    max-width: 720px;
    margin: 0 auto;
    color: var(--text-secondary);
    font-size: clamp(1rem, 2.1vw, 1.18rem);
}

/* ---------- Colonne laterale --------------------------------------------- */
.sidebar {
    position: sticky;
    top: calc(var(--nav-h) + 24px);
    align-self: start;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(17, 23, 38, 0.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: var(--shadow);
}
.sidebar-title {
    margin-bottom: 12px;
    color: var(--text-faint);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 1.3px;
    text-transform: uppercase;
}
.sidebar-nav { list-style: none; }
.sidebar-nav + .sidebar-title { margin-top: 24px; }
.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 9px 11px;
    margin-bottom: 2px;
    border-radius: 10px;
    color: var(--text-secondary);
    font-size: 14.2px;
    font-weight: 500;
    line-height: 1.35;
    transition: background .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.sidebar-nav a .ico { flex-shrink: 0; font-size: 16px; line-height: 1; }
.sidebar-nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; transform: translateX(3px); }
.sidebar-nav a[aria-current="page"] {
    background: var(--primary-soft);
    border-left: 3px solid var(--primary);
    padding-left: 8px;
    color: #fff;
    font-weight: 600;
}

.sidebar-cta {
    margin-top: 22px;
    padding: 16px;
    border: 1px solid var(--primary-border);
    border-radius: 14px;
    background: linear-gradient(160deg, rgba(239, 68, 68, .16), rgba(239, 68, 68, .04));
    text-align: center;
}
.sidebar-cta p { margin-bottom: 12px; color: var(--text-secondary); font-size: 13.4px; line-height: 1.55; }

/* ---------- Sections et titres ------------------------------------------- */
section { padding: 62px 0; }
.shell-main section:first-of-type { padding-top: 8px; }

.section-header { margin-bottom: 40px; text-align: center; }
.section-eyebrow {
    display: inline-block;
    margin-bottom: 11px;
    color: var(--primary);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}
h2, .h2 {
    font-size: clamp(1.55rem, 3.4vw, 2.15rem);
    line-height: 1.22;
    font-weight: 800;
    letter-spacing: -.6px;
    margin-bottom: 14px;
}
h3, .h3 {
    font-size: clamp(1.12rem, 2.2vw, 1.3rem);
    line-height: 1.35;
    font-weight: 700;
    margin-bottom: 9px;
}
.section-sub { max-width: 680px; margin: 0 auto; color: var(--text-muted); font-size: 15.5px; }

.prose > * + * { margin-top: 18px; }
.prose h2 { margin-top: 44px; }
.prose h3 { margin-top: 30px; }
.prose p  { color: var(--text-secondary); }
.prose ul, .prose ol { padding-left: 22px; color: var(--text-secondary); }
.prose li + li { margin-top: 9px; }
.prose li::marker { color: var(--primary); }

/* ---------- Cartes ------------------------------------------------------- */
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); }

.card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 26px 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: transform .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}
/* Liseré lumineux qui suit le survol, dessine en ::before pour ne pas
   ajouter de noeud dans le HTML de chaque carte. */
.card::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0;
    background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%),
                rgba(239, 68, 68, .14), transparent 45%);
    transition: opacity .3s var(--ease);
}
.card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-border);
    background: var(--bg-card-hover);
}
.card:hover::before { opacity: 1; }
.card p { color: var(--text-muted); font-size: 14.6px; }

.card-icon {
    display: grid;
    place-items: center;
    width: 50px; height: 50px;
    margin-bottom: 17px;
    border: 1px solid var(--primary-border);
    border-radius: 14px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 22px;
    transition: transform .3s var(--ease);
}
.card:hover .card-icon { transform: scale(1.09) rotate(-5deg); }
.card-icon svg { width: 24px; height: 24px; }

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 15px;
    font-size: 14px;
    font-weight: 600;
}
.card-link svg { width: 15px; height: 15px; transition: transform .2s var(--ease); }
.card:hover .card-link svg { transform: translateX(4px); }

/* ---------- Boutons ------------------------------------------------------ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 13px 25px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-glow));
    color: #fff !important;
    box-shadow: 0 8px 26px rgba(239, 68, 68, .32);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 14px 36px rgba(239, 68, 68, .46); }
.btn-secondary {
    border-color: var(--border-strong);
    background: rgba(255, 255, 255, .06);
    color: var(--text) !important;
}
.btn-secondary:hover { transform: translateY(-3px); background: rgba(255, 255, 255, .11); }

.btn-row { display: flex; flex-wrap: wrap; gap: 13px; justify-content: center; margin-top: 30px; }

/* ---------- Badges des stores -------------------------------------------- */
.store-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 26px;
}
.store-badges a { display: inline-block; transition: transform .2s var(--ease), filter .2s var(--ease); }
.store-badges a:hover { transform: translateY(-3px); filter: brightness(1.1); }
.store-badges img { height: 54px; width: auto; }

/* ---------- Bande de telechargement -------------------------------------- */
.download-band {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    margin: 72px 0 0;
    padding: 54px 28px;
    border-top: 1px solid var(--primary-border);
    border-bottom: 1px solid var(--primary-border);
    text-align: center;
}
.download-band::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(135deg, rgba(239, 68, 68, .19), rgba(245, 158, 11, .09), rgba(239, 68, 68, .19));
    background-size: 280% 280%;
    animation: band-shift 16s ease infinite;
}
@keyframes band-shift {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}
.download-band h2 { margin-bottom: 10px; }
.download-band p  { max-width: 640px; margin: 0 auto; color: var(--text-secondary); }

.dl-platforms {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 13px;
    margin-top: 26px;
}
.dl-tile {
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 218px;
    padding: 15px 21px;
    border: 1px solid var(--border-strong);
    border-radius: 14px;
    background: rgba(10, 14, 26, .62);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--text) !important;
    text-align: left;
    transition: transform .22s var(--ease), border-color .22s var(--ease), background .22s var(--ease);
}
.dl-tile:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    background: rgba(10, 14, 26, .86);
}
.dl-tile svg { width: 27px; height: 27px; flex-shrink: 0; color: var(--primary); }
.dl-tile .small { display: block; color: var(--text-muted); font-size: 11.5px; line-height: 1.3; }
.dl-tile .big   { display: block; font-size: 16px; font-weight: 700; line-height: 1.3; }

/* ---------- Etapes ------------------------------------------------------- */
.steps { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(245px, 1fr)); counter-reset: step; }
.step {
    position: relative;
    padding: 26px 24px 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-card);
    transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.step:hover { transform: translateY(-4px); border-color: var(--primary-border); }
.step-num {
    display: grid;
    place-items: center;
    width: 42px; height: 42px;
    margin-bottom: 15px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--primary-glow));
    color: #fff;
    font-size: 17px;
    font-weight: 800;
    box-shadow: 0 6px 18px rgba(239, 68, 68, .3);
}

/* ---------- FAQ ---------------------------------------------------------- */
.faq { max-width: 860px; margin: 0 auto; }
.faq-item {
    margin-bottom: 11px;
    border: 1px solid var(--border);
    border-radius: 13px;
    background: var(--bg-card);
    overflow: hidden;
    transition: border-color .25s var(--ease), background .25s var(--ease);
}
.faq-item[open] { border-color: var(--primary-border); background: var(--bg-card-hover); }
.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 17px 21px;
    cursor: pointer;
    font-size: 15.6px;
    font-weight: 600;
    list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '';
    flex-shrink: 0;
    width: 11px; height: 11px;
    border-right: 2px solid var(--primary);
    border-bottom: 2px solid var(--primary);
    transform: rotate(45deg) translateY(-3px);
    transition: transform .25s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.faq-item summary:hover { color: #fff; }
.faq-answer { padding: 0 21px 19px; color: var(--text-secondary); font-size: 14.9px; }
.faq-answer > * + * { margin-top: 12px; }

/* ---------- Encadres ----------------------------------------------------- */
.note {
    display: flex;
    gap: 14px;
    padding: 19px 21px;
    border: 1px solid var(--primary-border);
    border-left: 3px solid var(--primary);
    border-radius: var(--radius-sm);
    background: var(--primary-soft);
}
.note svg { width: 21px; height: 21px; flex-shrink: 0; color: var(--primary); margin-top: 3px; }
.note p { color: var(--text-secondary); font-size: 14.6px; }

/* ---------- Pied de page ------------------------------------------------- */
.footer {
    margin-top: 0;
    padding: 56px 0 30px;
    border-top: 1px solid var(--border);
    background: rgba(10, 14, 26, .72);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.footer-grid {
    display: grid;
    gap: 36px;
    /* Cinq colonnes depuis l'ajout du bloc « Plateformes » : la premiere reste
       plus large, elle porte la marque et le texte de presentation. */
    grid-template-columns: 1.7fr repeat(4, 1fr);
    margin-bottom: 36px;
}
.footer h4 {
    margin-bottom: 14px;
    color: var(--text);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.1px;
    text-transform: uppercase;
}
.footer ul { list-style: none; }
.footer li + li { margin-top: 8px; }
.footer a { color: var(--text-muted); font-size: 14.2px; }
.footer a:hover { color: var(--primary); }
.footer p { color: var(--text-muted); font-size: 14.2px; }
.footer-bottom {
    padding-top: 22px;
    border-top: 1px solid var(--border);
    color: var(--text-faint);
    font-size: 13.2px;
    text-align: center;
}

/* ---------- Apparition au defilement ------------------------------------- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .65s var(--ease), transform .65s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- Adaptatif ---------------------------------------------------- */
@media (max-width: 1040px) {
    .shell { grid-template-columns: 1fr; gap: 0; }
    .sidebar {
        position: static;
        margin-top: 40px;
        margin-bottom: 10px;
    }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
    .nav-links, .nav-drop { display: none; }
    .nav-burger { display: inline-flex; }

    /* Menu deroulant plein ecran une fois ouvert au doigt. */
    .nav.open .nav-links {
        position: absolute;
        top: var(--nav-h);
        left: 0;
        right: 0;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        padding: 14px;
        border-bottom: 1px solid var(--border);
        background: rgba(10, 14, 26, .98);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
        box-shadow: var(--shadow);
    }
    .nav.open .nav-links a { padding: 12px 14px; font-size: 15.5px; }
}

@media (max-width: 640px) {
    :root { --nav-h: 58px; }
    .page-header { padding: 60px 0 50px; }
    .page-header.is-home { padding: 74px 0 60px; }
    .header-logo { width: 78px; height: 78px; }
    section { padding: 46px 0; }
    .container, .container-narrow, .shell { padding-left: 16px; padding-right: 16px; }
    .store-badges img { height: 46px; }
    .dl-tile { min-width: 100%; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .btn { width: 100%; }
    .btn-row { flex-direction: column; }
}

/* Respect du reglage systeme : pas d'animation pour qui n'en veut pas. */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
    .reveal { opacity: 1; transform: none; }
}
