/*
 * Page "Télécharger l'application" — Inkwelya (v3)
 * Héros avec téléphone interactif, compte à rebours, liste d'attente, statistiques,
 * avantages, nouveautés de version, étapes, FAQ, bandeau final et barre collante mobile.
 *
 * Thème : toutes les couleurs passent par des variables locales (--tele-*) ;
 * le mode sombre ne redéfinit que ces variables (+ quelques cas particuliers en bas de fichier).
 */

/* ==========================================================================
   Variables (clair par défaut, sombre en surcharge)
   ========================================================================== */

.tele {
    --tele-fond: var(--couleur-beige);
    --tele-fond-alt: #fbf7f3;
    --tele-texte: var(--couleur-anthracite);
    --tele-doux: rgba(38, 53, 60, 0.74);
    --tele-carte: #ffffff;
    --tele-bord: rgba(38, 53, 60, 0.12);
    --tele-ombre: 0 12px 32px rgba(38, 53, 60, 0.1);
    --tele-corail: var(--couleur-corail);
    --tele-vert: var(--couleur-vert-emeraude);
    --tele-bleu: var(--couleur-bleu-vif);
    --tele-focus: var(--couleur-bleu-vif);
    --tele-halo-corail: var(--couleur-rose-pale);
    --tele-halo-lavande: var(--couleur-lavande);
    --tele-halo-opacite: 0.55;

    /* Écran du téléphone */
    --ecran-fond: #fffaf6;
    --ecran-texte: var(--couleur-anthracite);
    --ecran-trait: rgba(38, 53, 60, 0.13);
    --ecran-trait-fort: rgba(38, 53, 60, 0.4);
    --ecran-bord: rgba(38, 53, 60, 0.08);
    --ecran-bulle: #efe6df;

    color: var(--tele-texte);
    overflow-x: clip;
}

[data-theme="sombre"] .tele {
    --tele-fond: #171b1e;
    --tele-fond-alt: #1c2126;
    --tele-texte: #f0ebe6;
    --tele-doux: rgba(240, 235, 230, 0.76);
    --tele-carte: #232a2f;
    --tele-bord: rgba(255, 255, 255, 0.12);
    --tele-ombre: 0 14px 34px rgba(0, 0, 0, 0.45);
    --tele-corail: #ff7a7d;
    --tele-vert: #38d3b6;
    --tele-bleu: #86adff;
    --tele-focus: #9dbcff;
    --tele-halo-corail: #ff676a;
    --tele-halo-lavande: #8a6bb8;
    --tele-halo-opacite: 0.16;

    --ecran-fond: #1b2227;
    --ecran-texte: #f0ebe6;
    --ecran-trait: rgba(240, 235, 230, 0.16);
    --ecran-trait-fort: rgba(240, 235, 230, 0.5);
    --ecran-bord: rgba(255, 255, 255, 0.08);
    --ecran-bulle: #2a343a;
}

:root[data-theme="sombre"] {
    color-scheme: dark;
}

.tele ::selection {
    background-color: var(--tele-corail);
    color: #fff;
}

.tele :focus-visible {
    outline: 3px solid var(--tele-focus);
    outline-offset: 3px;
}

/* Transitions douces au changement de thème (uniquement sur les surfaces principales) */
.tele-hero,
.tele-section,
.tele-stats,
.tele-avantage,
.tele-question,
.tele-qr,
.tele-pwa,
.tele-puce,
.tele-version,
.tele-attente__champ,
.tele-compte__cellule {
    transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

/* ==========================================================================
   États (chargement / bientôt / disponible)
   ========================================================================== */

body:not([data-tele-etat]) .tele [data-etat],
body[data-tele-etat="bientot"] .tele [data-etat="disponible"],
body[data-tele-etat="disponible"] .tele [data-etat="bientot"] {
    display: none !important;
}

body[data-tele-etat] .tele-chargement {
    display: none;
}

.tele-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.tele-chargement {
    font-size: 2rem;
    color: var(--tele-corail);
    padding: 80px 0;
}

/* ==========================================================================
   Héros
   ========================================================================== */

.tele-hero {
    position: relative;
    overflow: hidden;
    background-color: var(--tele-fond);
    padding: clamp(56px, 8vw, 104px) 0 clamp(64px, 8vw, 112px);
}

.tele-hero__fond {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.tele-hero__halo {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: var(--tele-halo-opacite);
}

.tele-hero__halo--corail {
    width: clamp(260px, 32vw, 460px);
    aspect-ratio: 1;
    right: -80px;
    top: -60px;
    background: var(--tele-halo-corail);
}

.tele-hero__halo--lavande {
    width: clamp(240px, 28vw, 400px);
    aspect-ratio: 1;
    left: -120px;
    bottom: -120px;
    background: var(--tele-halo-lavande);
}

.tele-hero__decor {
    position: absolute;
    width: clamp(56px, 7vw, 96px);
    opacity: 0.9;
}

[data-theme="sombre"] .tele-hero__decor {
    opacity: 0.5;
    filter: saturate(0.85);
}

.tele-hero__decor--plume {
    left: 3%;
    top: 12%;
    transform: rotate(-12deg);
}

.tele-hero__decor--etoile {
    right: 46%;
    bottom: 6%;
    width: clamp(44px, 5vw, 72px);
    transform: rotate(10deg);
}

.tele-hero__grille {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: center;
    gap: clamp(32px, 5vw, 64px);
}

.tele-hero__texte {
    min-width: 0;
}

.tele-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 14px;
    border-radius: 999px;
    background-color: var(--tele-carte);
    border: 1px solid var(--tele-bord);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--tele-corail);
    margin-bottom: 22px;
}

.tele-eyebrow--ok {
    color: var(--tele-vert);
}

.tele-eyebrow__point {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: currentColor;
    animation: tele-pulse 2.2s ease-out infinite;
}

@keyframes tele-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 103, 106, 0.5);
    }

    70% {
        box-shadow: 0 0 0 9px rgba(255, 103, 106, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 103, 106, 0);
    }
}

.tele-titre {
    font-size: clamp(2rem, 4.4vw, 3.4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--tele-texte);
    margin-bottom: 20px;
    overflow-wrap: break-word;
    hyphens: auto;
}

.tele-texte {
    font-size: clamp(1rem, 1.4vw, 1.1rem);
    line-height: 1.75;
    color: var(--tele-doux);
    max-width: 540px;
    margin-bottom: 30px;
}

/* ==========================================================================
   Compte à rebours
   ========================================================================== */

.tele-compte {
    margin-bottom: 28px;
}

.tele-compte[hidden] {
    display: none;
}

.tele-compte__titre {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--tele-texte);
}

.tele-compte__titre::before {
    content: "\f017";
    font-family: "Font Awesome 6 Free";
    font-weight: 400;
    color: var(--tele-corail);
}

.tele-compte__grille {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 76px));
    gap: 10px;
}

.tele-compte__cellule {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 12px 6px 10px;
    border-radius: 14px;
    background-color: var(--tele-carte);
    border: 1px solid var(--tele-bord);
}

.tele-compte__cellule strong {
    font-size: clamp(1.35rem, 3.4vw, 1.75rem);
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
    color: var(--tele-texte);
}

.tele-compte__cellule span {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--tele-doux);
}

/* ==========================================================================
   Liste d'attente
   ========================================================================== */

.tele-attente {
    max-width: 520px;
    margin-bottom: 22px;
}

.tele-attente__titre {
    margin-bottom: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--tele-texte);
}

.tele-attente__champ {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 6px 6px 16px;
    border-radius: 14px;
    background-color: var(--tele-carte);
    border: 1px solid var(--tele-bord);
    box-shadow: var(--ombre-carte);
}

.tele-attente__champ:focus-within {
    border-color: var(--tele-corail);
    box-shadow: 0 0 0 3px rgba(255, 103, 106, 0.22);
}

.tele-attente__champ i {
    color: var(--tele-doux);
}

.tele-attente__champ input {
    flex: 1;
    min-width: 0;
    min-height: 44px;
    border: 0;
    outline: 0;
    background: transparent;
    font: inherit;
    font-size: 1rem;
    color: var(--tele-texte);
}

.tele-attente__champ input::placeholder {
    color: var(--tele-doux);
    opacity: 0.7;
}

.tele-attente__champ .bouton {
    flex-shrink: 0;
    min-height: 44px;
    white-space: nowrap;
}

.tele-attente__consentement {
    margin-top: 12px;
    font-size: 0.82rem;
    color: var(--tele-doux);
}

.tele-attente__consentement a {
    color: var(--tele-corail);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.tele-attente--invalide .tele-attente__champ {
    border-color: var(--couleur-rouge-vif);
    animation: tele-secoue 0.35s ease;
}

@keyframes tele-secoue {

    20%,
    60% {
        transform: translateX(-5px);
    }

    40%,
    80% {
        transform: translateX(5px);
    }
}

.tele-attente__retour {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    padding: 12px 16px;
    border-radius: 12px;
    background-color: rgba(1, 144, 124, 0.12);
    color: var(--tele-vert);
    font-weight: 600;
    font-size: 0.92rem;
}

.tele-attente__retour[hidden] {
    display: none;
}

.tele-attente__retour--erreur {
    background-color: rgba(237, 28, 36, 0.12);
    color: var(--couleur-rouge-vif);
}

[data-theme="sombre"] .tele-attente__retour--erreur {
    color: #ff8a8d;
}

.tele-attente--envoye .tele-attente__titre,
.tele-attente--envoye .tele-attente__champ,
.tele-attente--envoye .tele-attente__consentement {
    display: none;
}

/* ==========================================================================
   Badges des magasins
   ========================================================================== */

.tele-magasins {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 26px;
}

.magasin-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 200px;
    min-height: 56px;
    padding: 12px 22px;
    border-radius: 14px;
    background-color: var(--couleur-anthracite);
    color: #fff;
    text-decoration: none;
    border: 1px solid transparent;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

[data-theme="sombre"] .magasin-badge:not(.magasin-badge--desactive) {
    background-color: #f0ebe6;
    color: #171b1e;
}

[data-theme="sombre"] .magasin-badge--desactive {
    background-color: #2c373d;
}

.magasin-badge:hover {
    transform: translateY(-2px);
    box-shadow: var(--tele-ombre);
}

.magasin-badge i {
    font-size: 1.9rem;
    flex-shrink: 0;
}

.magasin-badge__texte {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.25;
    text-align: left;
}

.magasin-badge__texte small {
    font-size: 0.68rem;
    font-weight: 400;
    opacity: 0.85;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.magasin-badge__texte strong {
    font-size: 1.08rem;
    font-weight: 700;
}

.magasin-badge--desactive {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.magasin-badge--prioritaire {
    order: -1;
    border-color: var(--tele-corail);
    box-shadow: 0 0 0 3px rgba(255, 103, 106, 0.28);
}

.tele-appareil {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--tele-vert);
    margin-bottom: 14px;
}

.tele-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 22px;
}

.tele-actions--centre {
    justify-content: center;
}

.tele-retour {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}

.tele-retour i {
    margin-right: 6px;
}

/* Bouton de partage */

.tele-partage {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    margin-top: 6px;
    padding: 8px 14px;
    border: 1px solid var(--tele-bord);
    border-radius: 999px;
    background-color: transparent;
    font: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--tele-texte);
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.tele-partage[hidden] {
    display: none;
}

.tele-partage:hover {
    background-color: var(--tele-carte);
    border-color: var(--tele-corail);
}

/* ==========================================================================
   QR code
   ========================================================================== */

.tele-qr {
    display: flex;
    align-items: center;
    gap: 18px;
    width: fit-content;
    max-width: 100%;
    margin-bottom: 8px;
    padding: 16px 20px 16px 16px;
    border-radius: var(--rayon-carte);
    background-color: var(--tele-carte);
    border: 1px solid var(--tele-bord);
    box-shadow: var(--ombre-carte);
}

.tele-qr[hidden] {
    display: none;
}

.tele-qr__image {
    width: 104px;
    height: 104px;
    flex-shrink: 0;
    padding: 8px;
    border-radius: 10px;
    background-color: #ffffff;
    color: #111111;
}

.tele-qr__image svg {
    display: block;
    width: 100%;
    height: 100%;
}

.tele-qr figcaption {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-width: 220px;
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--tele-doux);
}

.tele-qr figcaption strong {
    font-size: 0.98rem;
    color: var(--tele-texte);
}

/* ==========================================================================
   Installation du site comme application (PWA)
   ========================================================================== */

.tele-pwa {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
    padding: 16px 18px;
    max-width: 560px;
    border-radius: var(--rayon-carte);
    border: 1px dashed var(--tele-bord);
    background-color: var(--tele-carte);
}

.tele-pwa[hidden] {
    display: none;
}

.tele-pwa__icone {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 50%;
    background-color: rgba(43, 119, 255, 0.14);
    color: var(--tele-bleu);
}

.tele-pwa__texte {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
    font-size: 0.86rem;
    line-height: 1.5;
    color: var(--tele-doux);
}

.tele-pwa__texte strong {
    font-size: 0.95rem;
    color: var(--tele-texte);
}

/* ==========================================================================
   Téléphone interactif
   ========================================================================== */

.tele-hero__visuel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 34px;
    min-width: 0;
}

.tele-telephone {
    --tele-incl-x: 0deg;
    --tele-incl-y: 0deg;
    position: relative;
    width: clamp(220px, 24vw, 292px);
    transform: perspective(1100px) rotateX(var(--tele-incl-x)) rotateY(var(--tele-incl-y));
    transition: transform 0.18s ease-out;
    will-change: transform;
    animation: tele-flotte 7s ease-in-out infinite;
}

.tele-telephone--incline {
    animation: none;
}

@keyframes tele-flotte {

    0%,
    100% {
        translate: 0 0;
    }

    50% {
        translate: 0 -10px;
    }
}

.tele-telephone__cadre {
    position: relative;
    padding: 11px;
    border-radius: 42px;
    background: linear-gradient(160deg, #3a4a52, #1b262b);
    box-shadow: 0 30px 60px rgba(38, 53, 60, 0.32), inset 0 0 0 2px rgba(255, 255, 255, 0.08);
}

[data-theme="sombre"] .tele-telephone__cadre {
    background: linear-gradient(160deg, #56666e, #2a363c);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55), inset 0 0 0 2px rgba(255, 255, 255, 0.12);
}

.tele-telephone__encoche {
    position: absolute;
    top: 17px;
    left: 50%;
    z-index: 3;
    width: 34%;
    height: 22px;
    transform: translateX(-50%);
    border-radius: 0 0 14px 14px;
    background-color: #0f171a;
}

.tele-ecran {
    position: relative;
    display: flex;
    flex-direction: column;
    height: clamp(430px, 46vw, 510px);
    padding: 40px 15px 12px;
    border-radius: 32px;
    background-color: var(--ecran-fond);
    color: var(--ecran-texte);
    overflow: hidden;
    transition: background-color 0.25s ease, color 0.25s ease;
}

.tele-scenes {
    position: relative;
    flex: 1;
    min-height: 0;
}

.tele-scene {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    gap: 13px;
    opacity: 0;
    transform: translateX(14px);
    visibility: hidden;
    transition: opacity 0.35s ease, transform 0.35s ease, visibility 0s linear 0.35s;
}

.tele-scene--active {
    opacity: 1;
    transform: none;
    visibility: visible;
    transition-delay: 0s;
}

.tele-ecran__barre {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 0.85rem;
}

.tele-ecran__logo {
    font-family: var(--police-logo);
    font-size: 1.15rem;
    color: var(--tele-corail);
}

.tele-ecran__legende,
.tele-ecran__legende-forte {
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ecran-trait-fort);
}

.tele-ecran__legende-forte {
    font-size: 0.85rem;
    letter-spacing: 0;
    text-transform: none;
    color: var(--ecran-texte);
}

.tele-ecran__mini-bouton {
    padding: 4px 10px;
    border-radius: 999px;
    background-color: var(--couleur-corail);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
}

.tele-ecran__en-tete {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tele-ecran__couverture {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 70px;
    flex-shrink: 0;
    border-radius: 8px;
    background: linear-gradient(145deg, var(--couleur-corail), var(--couleur-rose));
    color: #fff;
    font-size: 1.3rem;
    box-shadow: 0 6px 14px rgba(255, 103, 106, 0.35);
}

.tele-ecran__titres,
.tele-ecran__texte {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tele-ecran__titres,
.tele-ecran__texte {
    flex: 1;
}

.tele-trait {
    display: block;
    height: 8px;
    border-radius: 4px;
    background-color: var(--ecran-trait);
}

.tele-trait--titre {
    height: 11px;
    width: 88%;
    background-color: var(--ecran-trait-fort);
}

.tele-trait--court {
    width: 55%;
}

.tele-trait--moyen {
    width: 78%;
}

.tele-trait--accent {
    background: linear-gradient(90deg, rgba(255, 103, 106, 0.5), rgba(255, 148, 219, 0.5));
}

.tele-ecran__progression {
    height: 5px;
    border-radius: 3px;
    background-color: var(--ecran-trait);
}

.tele-ecran__progression span {
    display: block;
    width: 42%;
    height: 100%;
    border-radius: 3px;
    background-color: var(--couleur-corail);
}

.tele-scene--active .tele-ecran__progression span {
    animation: tele-lecture 4.5s ease-out both;
}

@keyframes tele-lecture {
    from {
        width: 12%;
    }

    to {
        width: 62%;
    }
}

/* Scène « écrire » */

.tele-outils {
    display: flex;
    gap: 16px;
    padding: 8px 12px;
    border-radius: 10px;
    background-color: var(--ecran-trait);
    font-size: 0.8rem;
}

.tele-machine {
    flex: 1;
    min-height: 0;
    font-size: 0.82rem;
    line-height: 1.65;
    color: var(--ecran-texte);
    overflow: hidden;
}

.tele-curseur {
    display: inline-block;
    width: 2px;
    height: 1em;
    margin-left: 1px;
    vertical-align: text-bottom;
    background-color: var(--couleur-corail);
    animation: tele-clignote 1s steps(1) infinite;
}

@keyframes tele-clignote {
    50% {
        opacity: 0;
    }
}

.tele-ecran__statut {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--tele-vert);
}

/* Scène « échanger » */

.tele-discussion {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 9px;
    padding-top: 4px;
}

.tele-bulle {
    max-width: 82%;
    padding: 9px 12px;
    border-radius: 16px;
    font-size: 0.78rem;
    line-height: 1.4;
    opacity: 0;
    transform: translateY(8px);
}

.tele-bulle--recue {
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    background-color: var(--ecran-bulle);
    color: var(--ecran-texte);
}

.tele-bulle--envoyee {
    align-self: flex-end;
    border-bottom-right-radius: 4px;
    background-color: var(--couleur-corail);
    color: #fff;
}

.tele-bulle--ecrit {
    align-self: flex-start;
    display: flex;
    gap: 4px;
    padding: 12px 14px;
    border-bottom-left-radius: 4px;
    background-color: var(--ecran-bulle);
}

.tele-bulle--ecrit span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--ecran-trait-fort);
    animation: tele-saut 1.1s ease-in-out infinite;
}

.tele-bulle--ecrit span:nth-child(2) {
    animation-delay: 0.15s;
}

.tele-bulle--ecrit span:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes tele-saut {

    0%,
    60%,
    100% {
        transform: translateY(0);
    }

    30% {
        transform: translateY(-4px);
    }
}

.tele-scene--active .tele-bulle {
    animation: tele-bulle 0.45s ease-out both;
}

.tele-scene--active .tele-bulle:nth-child(1) {
    animation-delay: 0.15s;
}

.tele-scene--active .tele-bulle:nth-child(2) {
    animation-delay: 0.85s;
}

.tele-scene--active .tele-bulle:nth-child(3) {
    animation-delay: 1.55s;
}

.tele-scene--active .tele-bulle:nth-child(4) {
    animation-delay: 2.2s;
}

@keyframes tele-bulle {
    to {
        opacity: 1;
        transform: none;
    }
}

/* Scène « bibliothèque » */

.tele-rayon {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
}

.tele-livre {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 3 / 4;
    border-radius: 8px;
    color: #fff;
    font-size: 1.15rem;
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.18);
}

.tele-livre--a {
    background: linear-gradient(145deg, var(--couleur-corail), var(--couleur-rose));
}

.tele-livre--b {
    background: linear-gradient(145deg, var(--couleur-bleu-vif), var(--couleur-lavande));
}

.tele-livre--c {
    background: linear-gradient(145deg, var(--couleur-vert-emeraude), var(--couleur-turquoise));
}

.tele-livre--d {
    background: linear-gradient(145deg, var(--couleur-ocre), var(--couleur-jaune-vert));
}

.tele-livre--e {
    background: linear-gradient(145deg, #7a5aa0, var(--couleur-rose));
}

.tele-livre--f {
    background: linear-gradient(145deg, var(--couleur-anthracite), var(--couleur-bleu-vif));
}

.tele-livre__barre {
    position: absolute;
    left: 7px;
    right: 7px;
    bottom: 7px;
    height: 4px;
    border-radius: 2px;
    background-color: rgba(255, 255, 255, 0.35);
}

.tele-livre__barre span {
    display: block;
    height: 100%;
    border-radius: 2px;
    background-color: #fff;
}

.tele-scene--active .tele-livre {
    animation: tele-livre 0.5s ease-out both;
}

.tele-scene--active .tele-livre:nth-child(2) {
    animation-delay: 0.08s;
}

.tele-scene--active .tele-livre:nth-child(3) {
    animation-delay: 0.16s;
}

@keyframes tele-livre {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.94);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

/* Barre d'onglets du téléphone */

.tele-ecran__onglets {
    display: flex;
    justify-content: space-around;
    padding-top: 10px;
    margin-top: 10px;
    border-top: 1px solid var(--ecran-bord);
    font-size: 1rem;
    color: var(--ecran-trait-fort);
}

.tele-ecran__onglets i {
    transition: color 0.25s ease, transform 0.25s ease;
}

.tele-ecran__onglets .tele-actif {
    color: var(--tele-corail);
    transform: translateY(-2px) scale(1.12);
}

/* Pastilles flottantes */

.tele-puce {
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px 10px 10px;
    border-radius: 14px;
    background-color: var(--tele-carte);
    border: 1px solid var(--tele-bord);
    box-shadow: var(--tele-ombre);
    color: var(--tele-texte);
}

.tele-puce--notif {
    top: 70px;
    left: -92px;
    max-width: 220px;
    animation: tele-puce-a 6s ease-in-out infinite;
}

.tele-puce--hors-ligne {
    bottom: 64px;
    right: -64px;
    animation: tele-puce-b 7s ease-in-out infinite;
}

@keyframes tele-puce-a {

    0%,
    100% {
        translate: 0 0;
    }

    50% {
        translate: 0 -8px;
    }
}

@keyframes tele-puce-b {

    0%,
    100% {
        translate: 0 0;
    }

    50% {
        translate: 0 8px;
    }
}

.tele-puce__icone {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border-radius: 10px;
    background-color: rgba(255, 103, 106, 0.16);
    color: var(--tele-corail);
    font-size: 0.95rem;
}

.tele-puce__icone--vert {
    background-color: rgba(1, 144, 124, 0.18);
    color: var(--tele-vert);
}

.tele-puce__texte {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
    font-size: 0.82rem;
}

.tele-puce__texte small {
    font-size: 0.74rem;
    color: var(--tele-doux);
}

/* Commandes de l'aperçu */

.tele-apercu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    max-width: 100%;
}

.tele-apercu__bouton {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 8px 14px;
    overflow: hidden;
    border: 1px solid var(--tele-bord);
    border-radius: 999px;
    background-color: var(--tele-carte);
    font: inherit;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--tele-doux);
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.tele-apercu__bouton:hover {
    color: var(--tele-texte);
    border-color: var(--tele-corail);
}

.tele-apercu__bouton--actif {
    color: var(--tele-texte);
    border-color: var(--tele-corail);
}

.tele-apercu__bouton--actif i {
    color: var(--tele-corail);
}

.tele-apercu__barre {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 0;
    background-color: var(--tele-corail);
}

.tele-apercu--auto .tele-apercu__bouton--actif .tele-apercu__barre {
    animation: tele-progression var(--tele-duree, 4500ms) linear forwards;
}

@keyframes tele-progression {
    to {
        width: 100%;
    }
}

.tele-apercu__pause {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--tele-bord);
    border-radius: 50%;
    background-color: transparent;
    color: var(--tele-doux);
    cursor: pointer;
}

.tele-apercu__pause:hover {
    color: var(--tele-texte);
    border-color: var(--tele-corail);
}

/* ==========================================================================
   Statistiques
   ========================================================================== */

.tele-stats {
    padding: 38px 0;
    background-color: var(--tele-fond-alt);
    border-top: 1px solid var(--tele-bord);
    border-bottom: 1px solid var(--tele-bord);
}

.tele-stats[hidden] {
    display: none;
}

.tele-stats__eyebrow {
    margin-bottom: 18px;
    text-align: center;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--tele-corail);
}

.tele-stats__grille {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    max-width: 760px;
    margin: 0 auto;
}

.tele-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
}

.tele-stat strong {
    font-size: clamp(1.5rem, 4.4vw, 2.4rem);
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
    color: var(--tele-texte);
}

.tele-stat span {
    font-size: 0.86rem;
    color: var(--tele-doux);
}

/* ==========================================================================
   Sections
   ========================================================================== */

.tele-section {
    padding: clamp(56px, 8vw, 92px) 0;
    background-color: var(--tele-fond);
}

.tele-section--teinte {
    background-color: var(--tele-fond-alt);
}

.tele-section--compacte {
    padding-top: 0;
}

.tele-section[hidden] {
    display: none;
}

.tele-section__entete {
    max-width: 640px;
    margin: 0 auto clamp(32px, 5vw, 52px);
    text-align: center;
}

.tele-section__eyebrow {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--tele-corail);
    margin-bottom: 12px;
}

.tele-section__titre {
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--tele-texte);
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Avantages */

.tele-avantages {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.tele-avantage {
    padding: 28px 26px;
    border-radius: var(--rayon-carte);
    background-color: var(--tele-carte);
    border: 1px solid var(--tele-bord);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.25s ease, border-color 0.25s ease;
}

.tele-avantage:hover {
    transform: translateY(-4px);
    box-shadow: var(--tele-ombre);
}

.tele-avantage__icone {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 18px;
    border-radius: 14px;
    font-size: 1.2rem;
}

.tele-avantage__icone--corail {
    background-color: rgba(255, 103, 106, 0.15);
    color: var(--tele-corail);
}

.tele-avantage__icone--bleu {
    background-color: rgba(43, 119, 255, 0.15);
    color: var(--tele-bleu);
}

.tele-avantage__icone--vert {
    background-color: rgba(1, 144, 124, 0.16);
    color: var(--tele-vert);
}

.tele-avantage__icone--ocre {
    background-color: rgba(202, 136, 0, 0.18);
    color: var(--couleur-ocre);
}

.tele-avantage__icone--lavande {
    background-color: rgba(213, 196, 228, 0.45);
    color: #7a5aa0;
}

.tele-avantage__icone--turquoise {
    background-color: rgba(0, 213, 205, 0.16);
    color: #00968f;
}

[data-theme="sombre"] .tele-avantage__icone--ocre {
    color: #f0b73c;
}

[data-theme="sombre"] .tele-avantage__icone--lavande {
    background-color: rgba(213, 196, 228, 0.16);
    color: #cfb6ee;
}

[data-theme="sombre"] .tele-avantage__icone--turquoise {
    color: #3be3dc;
}

.tele-avantage__titre {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--tele-texte);
    margin-bottom: 8px;
}

.tele-avantage__texte {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--tele-doux);
}

/* Nouveautés de la version */

.tele-version {
    max-width: 820px;
    margin: 0 auto;
    padding: clamp(22px, 4vw, 34px);
    border-radius: 22px;
    background: linear-gradient(135deg, var(--tele-carte), var(--tele-fond-alt));
    border: 1px solid var(--tele-bord);
    box-shadow: var(--tele-ombre);
}

.tele-version__entete {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.tele-version__pastille {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border-radius: 16px;
    background: linear-gradient(145deg, var(--couleur-corail), var(--couleur-rose));
    color: #fff;
    font-size: 1.25rem;
    box-shadow: 0 8px 18px rgba(255, 103, 106, 0.35);
}

.tele-version__eyebrow {
    margin-bottom: 4px;
}

.tele-version__titre {
    font-size: clamp(1.25rem, 2.6vw, 1.6rem);
    font-weight: 800;
    color: var(--tele-texte);
}

.tele-version__meta {
    margin-top: 2px;
    font-size: 0.88rem;
    color: var(--tele-doux);
}

.tele-version__notes {
    display: grid;
    gap: 10px;
    margin: 0 0 4px;
    padding: 0;
    list-style: none;
}

.tele-version__notes li {
    position: relative;
    padding-left: 28px;
    font-size: 0.97rem;
    line-height: 1.6;
    color: var(--tele-doux);
}

.tele-version__notes li::before {
    content: "\f00c";
    position: absolute;
    left: 0;
    top: 0.1em;
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.78rem;
    color: var(--tele-vert);
}

.tele-version__compat {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px dashed var(--tele-bord);
    font-size: 0.84rem;
    color: var(--tele-doux);
}

.tele-version__compat[hidden] {
    display: none;
}

/* Étapes */

.tele-etapes {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.tele-etapes::before {
    content: "";
    position: absolute;
    top: 28px;
    left: 16%;
    right: 16%;
    border-top: 2px dashed var(--tele-bord);
}

.tele-etape {
    position: relative;
    text-align: center;
}

.tele-etape__numero {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin-bottom: 18px;
    border-radius: 50%;
    background-color: var(--couleur-corail);
    color: #fff;
    font-size: 1.3rem;
    font-weight: 800;
    box-shadow: 0 8px 20px rgba(255, 103, 106, 0.35);
}

.tele-etape__titre {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--tele-texte);
    margin-bottom: 6px;
}

.tele-etape__texte {
    max-width: 260px;
    margin: 0 auto;
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--tele-doux);
}

/* FAQ */

.tele-faq {
    max-width: 780px;
}

.tele-faq__liste {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tele-question {
    border-radius: var(--rayon-carte);
    background-color: var(--tele-carte);
    border: 1px solid var(--tele-bord);
    transition: box-shadow 0.2s ease, background-color 0.25s ease, border-color 0.25s ease;
}

.tele-question[open] {
    box-shadow: var(--tele-ombre);
}

.tele-question summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 56px;
    padding: 16px 22px;
    font-weight: 700;
    font-size: 1rem;
    color: var(--tele-texte);
    cursor: pointer;
    list-style: none;
}

.tele-question summary::-webkit-details-marker {
    display: none;
}

.tele-question summary i {
    flex-shrink: 0;
    font-size: 0.8rem;
    color: var(--tele-corail);
    transition: transform 0.2s ease;
}

.tele-question[open] summary i {
    transform: rotate(180deg);
}

.tele-question p {
    padding: 0 22px 20px;
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--tele-doux);
}

.tele-question p a {
    display: inline-block;
    margin-left: 4px;
    font-weight: 600;
    color: var(--tele-corail);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ==========================================================================
   Bandeau final
   ========================================================================== */

.tele-cta {
    padding: clamp(56px, 8vw, 88px) 0;
    background-color: var(--couleur-anthracite);
    color: #f0ebe6;
    text-align: center;
}

[data-theme="sombre"] .tele-cta {
    background: linear-gradient(180deg, #11161a, #0c1013);
    border-top: 1px solid var(--tele-bord);
}

.tele-cta__contenu {
    max-width: 680px;
}

.tele-cta__titre {
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 14px;
    overflow-wrap: break-word;
    hyphens: auto;
}

.tele-cta__texte {
    font-size: 1.05rem;
    line-height: 1.7;
    opacity: 0.85;
    margin-bottom: 30px;
}

.tele-cta .bouton--contour {
    border-color: rgba(240, 235, 230, 0.5);
    color: #f0ebe6;
}

.tele-cta .bouton--contour:hover {
    background-color: #f0ebe6;
    color: var(--couleur-anthracite);
}

/* ==========================================================================
   Barre d'installation collante (mobile)
   ========================================================================== */

.tele-barre {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    z-index: 90;
    display: none;
    align-items: center;
    gap: 12px;
    padding: 10px 10px 10px 12px;
    border-radius: 18px;
    background-color: var(--tele-carte);
    border: 1px solid var(--tele-bord);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
    transform: translateY(140%);
    transition: transform 0.35s ease;
}

.tele-barre[hidden] {
    display: none !important;
}

.tele-barre--visible {
    transform: none;
}

.tele-barre__icone {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 10px;
}

.tele-barre__texte {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    line-height: 1.25;
    color: var(--tele-texte);
}

.tele-barre__texte small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.76rem;
    color: var(--tele-doux);
}

.tele-barre__action {
    flex-shrink: 0;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

.tele-barre__fermer {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border: 0;
    background: transparent;
    color: var(--tele-doux);
    cursor: pointer;
}

/* ==========================================================================
   Révélation au scroll (activée uniquement quand le JS a posé .tele-js)
   ========================================================================== */

.tele-js .tele-revele {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    transition-delay: var(--tele-delai, 0ms);
}

.tele-js .tele-revele.tele-visible {
    opacity: 1;
    transform: none;
}

/* ==========================================================================
   Adaptations (du plus large au plus étroit)
   ========================================================================== */

@media (min-width: 1500px) {

    .tele-hero__grille,
    .tele-hero .conteneur {
        max-width: 1320px;
    }
}

@media (max-width: 1100px) {
    .tele-puce--notif {
        left: -52px;
    }

    .tele-puce--hors-ligne {
        right: -34px;
    }
}

@media (max-width: 960px) {
    .tele-hero__grille {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .tele-texte,
    .tele-attente {
        margin-left: auto;
        margin-right: auto;
    }

    .tele-magasins,
    .tele-actions,
    .tele-compte__grille {
        justify-content: center;
    }

    .tele-compte__titre {
        justify-content: center;
    }

    .tele-compte__grille {
        margin: 0 auto;
    }

    .tele-qr,
    .tele-pwa {
        margin-left: auto;
        margin-right: auto;
        text-align: left;
    }

    .tele-attente__consentement {
        text-align: left;
    }

    .tele-hero__decor--etoile {
        display: none;
    }

    .tele-hero__decor--plume {
        left: auto;
        right: 5%;
        top: 3%;
        opacity: 0.55;
    }

    .tele-telephone {
        width: clamp(230px, 46vw, 292px);
    }

    .tele-ecran {
        height: clamp(440px, 92vw, 510px);
    }

    .tele-avantages {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .tele-barre {
        display: flex;
    }

    /* Laisse la place de la barre collante au-dessus du pied de page */
    .tele {
        padding-bottom: 0;
    }
}

@media (max-width: 680px) {
    .tele-magasins .magasin-badge {
        flex: 1 1 100%;
        justify-content: center;
    }

    .tele-avantages {
        grid-template-columns: 1fr;
    }

    .tele-avantage {
        padding: 22px 20px;
    }

    .tele-etapes {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .tele-etapes::before {
        display: none;
    }

    .tele-pwa {
        flex-wrap: wrap;
    }

    .tele-pwa .bouton {
        width: 100%;
        justify-content: center;
    }

    .tele-qr {
        flex-direction: column;
        text-align: center;
    }

    .tele-puce--notif {
        left: -14px;
        top: 54px;
        max-width: 190px;
    }

    .tele-puce--hors-ligne {
        right: -14px;
        bottom: 46px;
    }

    .tele-apercu__bouton span:not(.tele-apercu__barre) {
        font-size: 0.8rem;
    }
}

@media (max-width: 520px) {
    .tele-attente__champ {
        flex-wrap: wrap;
        padding: 8px;
    }

    .tele-attente__champ i {
        display: none;
    }

    .tele-attente__champ input {
        flex: 1 1 100%;
        padding: 0 8px;
    }

    .tele-attente__champ .bouton {
        flex: 1 1 100%;
        justify-content: center;
    }

    .tele-compte__grille {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 8px;
    }

    .tele-compte__cellule span {
        font-size: 0.6rem;
        letter-spacing: 0;
    }

    .tele-stats__grille {
        gap: 8px;
    }

    .tele-stat span {
        font-size: 0.76rem;
    }

    .tele-version__entete {
        align-items: flex-start;
    }

    .tele-apercu {
        gap: 6px;
    }

    .tele-apercu__bouton {
        padding: 8px 11px;
    }

    /* Sur écran étroit, seules les icônes des commandes d'aperçu restent visibles pour tenir sur une ligne */
    .tele-apercu__bouton span:not(.tele-apercu__barre) {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
    }
}

@media (max-width: 380px) {
    .tele-puce--hors-ligne {
        display: none;
    }

    .tele-puce--notif {
        left: -6px;
        max-width: 160px;
    }

    .tele-puce__texte small {
        display: none;
    }

    .tele-qr__image {
        width: 92px;
        height: 92px;
    }

    .tele-barre__texte small {
        display: none;
    }
}

/* Téléphone tenu à l'horizontale : on compacte le héros */
@media (max-height: 520px) and (orientation: landscape) {
    .tele-hero {
        padding: 36px 0 44px;
    }

    .tele-ecran {
        height: 400px;
    }

    .tele-barre {
        display: none;
    }
}

/* ==========================================================================
   Accessibilité : mouvement réduit, contraste renforcé, couleurs forcées, impression
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {

    .tele-telephone,
    .tele-eyebrow__point,
    .tele-puce,
    .tele-curseur,
    .tele-bulle--ecrit span,
    .tele-scene--active .tele-ecran__progression span {
        animation: none;
    }

    .tele-scene,
    .tele-barre,
    .tele-js .tele-revele,
    .tele-avantage,
    .magasin-badge,
    .tele-question,
    .tele-question summary i {
        transition: none;
    }

    .tele-scene--active .tele-bulle,
    .tele-scene--active .tele-livre {
        animation: none;
        opacity: 1;
        transform: none;
    }

    .tele-js .tele-revele {
        opacity: 1;
        transform: none;
    }

    .tele-apercu--auto .tele-apercu__bouton--actif .tele-apercu__barre {
        animation: none;
        width: 100%;
    }
}

@media (prefers-contrast: more) {
    .tele {
        --tele-bord: currentColor;
        --tele-doux: var(--tele-texte);
    }

    .tele-question,
    .tele-avantage,
    .tele-version,
    .tele-compte__cellule {
        border-width: 2px;
    }
}

@media (forced-colors: active) {

    .tele-hero__fond,
    .tele-hero__decor {
        display: none;
    }

    .magasin-badge,
    .tele-avantage,
    .tele-question,
    .tele-puce,
    .tele-apercu__bouton,
    .tele-version,
    .tele-barre {
        border: 1px solid CanvasText;
    }

    .tele-apercu__bouton--actif {
        border-color: Highlight;
        outline: 2px solid Highlight;
    }
}

@media print {

    .tele-hero__fond,
    .tele-hero__visuel,
    .tele-barre,
    .tele-cta,
    .tele-pwa,
    .tele-partage,
    .tele-attente {
        display: none !important;
    }

    .tele-section,
    .tele-hero,
    .tele-stats {
        padding: 16px 0;
        background: #fff;
        color: #000;
    }
}