/* Page d'accueil publique : feuille de style autonome (aucune dépendance au template). */

:root {
    --marque: #3b6ef0;
    --marque-fonce: #2454d6;
    --marque-clair: #eaf0ff;
    --texte: #1e293b;
    --texte-doux: #64748b;
    --bordure: #e2e8f0;
    --fond: #f8fafc;
    --succes: #157347;
    --orange: #f97316;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 5rem;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--texte);
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--marque);
    text-decoration: none;
}

.conteneur {
    width: 100%;
    max-width: 72rem;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* ---------- Boutons ---------- */

.bouton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    height: 3rem;
    padding: 0 1.5rem;
    font: inherit;
    font-weight: 600;
    color: #fff;
    background: var(--marque);
    border: 1px solid var(--marque);
    border-radius: 0.65rem;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.bouton:hover {
    background: var(--marque-fonce);
    border-color: var(--marque-fonce);
    box-shadow: 0 8px 20px rgba(59, 110, 240, 0.25);
    transform: translateY(-1px);
}

.bouton.contour {
    color: var(--texte);
    background: #fff;
    border-color: var(--bordure);
}

.bouton.contour:hover {
    background: var(--fond);
    border-color: #cbd5e1;
    box-shadow: none;
}

.bouton.petit {
    height: 2.5rem;
    padding: 0 1.15rem;
    font-size: 0.95rem;
}

.bouton.plein {
    width: 100%;
}

/* ---------- En-tête ---------- */

.entete {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--bordure);
}

.entete .conteneur {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    height: 4.25rem;
}

.entete nav {
    display: none;
    gap: 2rem;
}

.entete nav a {
    font-weight: 500;
    color: var(--texte-doux);
}

.entete nav a:hover {
    color: var(--texte);
}

/* Section affichée à l'écran : lien en couleur de marque, souligné d'un trait. */
.entete nav a.actif {
    position: relative;
    font-weight: 600;
    color: var(--marque);
}

.entete nav a.actif::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -0.35rem;
    height: 2px;
    background: var(--marque);
    border-radius: 2px;
}

.entete .actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.entete .connexion {
    font-weight: 500;
    color: var(--texte);
}

@media (min-width: 52rem) {
    .entete nav {
        display: flex;
    }
}

/* ---------- Accueil ---------- */

.accueil {
    padding: 4rem 0 5rem;
    background:
        radial-gradient(50rem 26rem at 90% -10%, rgba(59, 110, 240, 0.16), transparent 60%),
        radial-gradient(40rem 22rem at -10% 30%, rgba(59, 110, 240, 0.08), transparent 60%),
        #fff;
}

.accueil .conteneur {
    display: grid;
    gap: 3.5rem;
    align-items: center;
}

.pastille {
    display: inline-block;
    margin-bottom: 1.25rem;
    padding: 0.3rem 0.9rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--marque-fonce);
    background: var(--marque-clair);
    border-radius: 999px;
}

.accueil h1 {
    margin: 0 0 1.25rem;
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.accueil h1 em {
    font-style: normal;
    color: var(--marque);
}

.accueil .chapeau {
    max-width: 34rem;
    margin: 0 0 2rem;
    font-size: 1.15rem;
    color: var(--texte-doux);
}

.accueil .boutons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.accueil .garanties {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    margin: 1.75rem 0 0;
    padding: 0;
    font-size: 0.9rem;
    color: var(--texte-doux);
    list-style: none;
}

.accueil .garanties li::before {
    content: '\2713';
    margin-right: 0.45rem;
    font-weight: 700;
    color: var(--succes);
}

@media (min-width: 62rem) {
    .accueil {
        padding: 6rem 0 7rem;
    }

    .accueil .conteneur {
        grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    }
}

/* Aperçu du tableau de bord (décoratif) */

.apercu {
    padding: 1.5rem;
    background: #fff;
    border: 1px solid var(--bordure);
    border-radius: 1.1rem;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
}

.apercu-titre {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.1rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.apercu-titre span:last-child {
    font-weight: 400;
    color: var(--texte-doux);
}

.apercu-kpis {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.apercu-kpi {
    padding: 0.85rem 1rem;
    border-radius: 0.8rem;
    color: #fff;
}

.apercu-kpi small {
    display: block;
    font-size: 0.75rem;
    opacity: 0.85;
}

.apercu-kpi strong {
    font-size: 1.05rem;
}

.apercu-kpi.bleu {
    background: linear-gradient(135deg, #4680ff, #2454d6);
}

.apercu-kpi.orange {
    background: linear-gradient(135deg, #e58a00, #b45309);
}

.apercu-kpi.gris {
    color: var(--texte);
    background: var(--fond);
    border: 1px solid var(--bordure);
}

.apercu-barres {
    display: flex;
    align-items: flex-end;
    gap: 0.6rem;
    height: 9rem;
    margin-top: 1.5rem;
    padding-top: 0.5rem;
    border-top: 1px dashed var(--bordure);
}

.apercu-barres div {
    flex: 1;
    border-radius: 0.35rem 0.35rem 0 0;
    background: linear-gradient(180deg, #6f9bff, #3b6ef0);
}

.apercu-barres div:nth-child(even) {
    background: linear-gradient(180deg, #f5a524, #e58a00);
}

/* ---------- Sections ---------- */

.section {
    padding: 5rem 0;
}

.section.gris {
    background: var(--fond);
}

.section-tete {
    max-width: 40rem;
    margin: 0 auto 3rem;
    text-align: center;
}

.section-tete h2 {
    margin: 0 0 0.75rem;
    font-size: clamp(1.7rem, 3.5vw, 2.4rem);
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.section-tete p {
    margin: 0;
    color: var(--texte-doux);
}

/* Fonctionnalités */

.grille-fonctions {
    display: grid;
    gap: 1.25rem;
}

@media (min-width: 40rem) {
    .grille-fonctions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 64rem) {
    .grille-fonctions {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.fonction {
    padding: 1.6rem;
    background: #fff;
    border: 1px solid var(--bordure);
    border-radius: 1rem;
}

.fonction .icone {
    display: grid;
    place-items: center;
    width: 2.9rem;
    height: 2.9rem;
    margin-bottom: 1rem;
    color: var(--marque-fonce);
    background: var(--marque-clair);
    border-radius: 0.8rem;
}

.fonction h3 {
    margin: 0 0 0.4rem;
    font-size: 1.1rem;
}

.fonction p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--texte-doux);
}

/* Étapes */

.etapes {
    display: grid;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: etape;
}

@media (min-width: 52rem) {
    .etapes {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.etapes li {
    position: relative;
    padding: 1.75rem 1.5rem 1.5rem;
    background: #fff;
    border: 1px solid var(--bordure);
    border-radius: 1rem;
    counter-increment: etape;
}

.etapes li::before {
    content: counter(etape);
    display: grid;
    place-items: center;
    width: 2.4rem;
    height: 2.4rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: #fff;
    background: var(--marque);
    border-radius: 50%;
}

.etapes h3 {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
}

.etapes p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--texte-doux);
}

/* Tarifs */

.grille-tarifs {
    display: grid;
    gap: 1.5rem;
    align-items: stretch;
    max-width: 66rem;
    margin: 0 auto;
}

@media (min-width: 52rem) {
    .grille-tarifs {
        grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    }
}

.tarif {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 2rem 1.75rem;
    background: #fff;
    border: 1px solid var(--bordure);
    border-radius: 1.1rem;
}

.tarif.recommande {
    border: 2px solid var(--marque);
    box-shadow: 0 20px 48px rgba(59, 110, 240, 0.18);
}

.tarif .ruban {
    position: absolute;
    top: -0.85rem;
    left: 50%;
    padding: 0.25rem 1rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
    background: var(--marque);
    border-radius: 999px;
    transform: translateX(-50%);
}

.tarif h3 {
    margin: 0 0 0.25rem;
    font-size: 1.25rem;
}

.tarif .duree {
    margin: 0 0 1.25rem;
    color: var(--texte-doux);
}

.tarif .prix {
    margin: 0;
    font-size: 2.6rem;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.tarif .prix small {
    font-size: 1rem;
    font-weight: 600;
    color: var(--texte-doux);
}

/* Prix réellement payé, sous les dollars : même orange que le badge PDF du guide. */
.tarif .prix-local {
    margin: 0.25rem 0 0;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--orange);
}

.tarif .prix-barre {
    margin: 0 0 0.2rem;
    font-size: 1rem;
    color: var(--texte-doux);
}

.tarif .prix-barre .promo {
    display: inline-block;
    margin-left: 0.4rem;
    padding: 0.1rem 0.55rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: #c2410c;
    background: #ffedd5;
    border-radius: 999px;
}

/* Compte à rebours de la promotion en cours, au-dessus des formules. */
/* Bandeau sombre et orange : libellé à gauche, cases à droite ; empilé sur petit écran. */
.compte-a-rebours.tarifs-promo {
    max-width: 640px;
    margin: 0 auto 2.25rem;
    padding: 0.85rem 1.1rem;
    gap: 0.6rem 1.25rem;
    color: #fff7ed;
    background: radial-gradient(120% 140% at 0% 0%, rgba(249, 115, 22, 0.28) 0%, rgba(249, 115, 22, 0) 55%), #111827;
    border: 1px solid rgba(249, 115, 22, 0.45);
    border-radius: 16px;
    box-shadow: 0 14px 30px -18px rgba(17, 24, 39, 0.8);
}

.tarifs-promo .compte-a-rebours-libelle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-weight: 700;
}

/* Point orange qui pulse : l'offre est en cours. */
.tarifs-promo .compte-a-rebours-libelle::before {
    content: "";
    width: 0.55rem;
    height: 0.55rem;
    flex-shrink: 0;
    border-radius: 50%;
    background: #f97316;
    box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.6);
    animation: promo-pulse 1.8s ease-out infinite;
}

.tarifs-promo .compte-a-rebours-valeurs {
    gap: 0.4rem;
}

.tarifs-promo .compte-a-rebours-valeurs > span {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 3.2rem;
    padding: 0.35rem 0.3rem 0.3rem;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #fdba74;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(249, 115, 22, 0.35);
    border-radius: 10px;
}

.tarifs-promo .compte-a-rebours-valeurs strong {
    min-width: 0;
    padding: 0;
    font-size: 1.45rem;
    line-height: 1.15;
    color: #fb923c;
    background: none;
}

@keyframes promo-pulse {
    70% { box-shadow: 0 0 0 0.5rem rgba(249, 115, 22, 0); }
    100% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .tarifs-promo .compte-a-rebours-libelle::before {
        animation: none;
    }
}

@media (min-width: 40rem) {
    .compte-a-rebours.tarifs-promo {
        justify-content: space-between;
        padding: 0.85rem 1rem 0.85rem 1.4rem;
    }
}

.tarif .equivalent {
    min-height: 1.6rem;
    margin: 0.4rem 0 1.25rem;
    font-size: 0.9rem;
    color: var(--texte-doux);
}

.tarif .economie {
    display: inline-block;
    margin-left: 0.4rem;
    padding: 0.1rem 0.55rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--succes);
    background: #e7f5ee;
    border-radius: 999px;
}

.tarif ul {
    flex: 1;
    margin: 0 0 1.75rem;
    padding: 0;
    list-style: none;
}

.tarif li {
    position: relative;
    padding: 0.35rem 0 0.35rem 1.7rem;
    font-size: 0.95rem;
}

.tarif li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    font-weight: 700;
    color: var(--succes);
}

.tarifs-note {
    margin: 2rem 0 0;
    text-align: center;
    font-size: 0.9rem;
    color: var(--texte-doux);
}

.tarifs-note a {
    color: var(--marque);
    font-weight: 600;
}

/* ---------- Guide de démarrage ---------- */

.guide {
    display: grid;
    gap: 2.5rem;
    align-items: center;
    padding: 2rem 1.25rem;
    background: linear-gradient(135deg, var(--marque-clair) 0%, #fff7ed 100%);
    border: 1px solid var(--bordure);
    border-radius: 1.5rem;
}

.guide-visuel {
    position: relative;
    max-width: 26rem;
    width: 100%;
    margin: 0 auto;
    padding: 1rem 1.5rem 1.5rem 0.5rem;
}

.guide-page {
    position: relative;
    padding: 0.6rem;
    background: #fff;
    border-radius: 0.9rem;
    box-shadow: 0 22px 45px -20px rgba(15, 23, 42, 0.45);
}

.guide-page img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
}

/* Feuille de dessous, légèrement décalée : effet de document. */
.guide-page.arriere {
    position: absolute;
    inset: 1.6rem 0.4rem 0.6rem 1.4rem;
    background: #dbe5ff;
    box-shadow: none;
    transform: rotate(4deg);
}

.guide-badge {
    position: absolute;
    top: 0;
    right: 0.25rem;
    display: grid;
    place-items: center;
    width: 3.6rem;
    height: 3.6rem;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: #fff;
    background: var(--orange);
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: 0 10px 20px -8px rgba(194, 65, 12, 0.7);
}

.guide-texte h2 {
    margin: 0 0 0.75rem;
    font-size: clamp(1.6rem, 3.2vw, 2.2rem);
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.guide-texte > p {
    margin: 0 0 1rem;
    color: var(--texte-doux);
}

.guide-texte ul {
    margin: 0 0 1.5rem;
    padding: 0;
    list-style: none;
}

.guide-texte li {
    position: relative;
    padding-left: 1.6rem;
    margin-bottom: 0.45rem;
}

.guide-texte li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    font-weight: 700;
    color: var(--succes);
}

.guide-texte .boutons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.guide-details {
    display: block;
    margin-top: 0.85rem;
    font-size: 0.85rem;
    color: var(--texte-doux);
}

@media (min-width: 52rem) {
    .guide {
        grid-template-columns: 1fr 1.1fr;
        gap: 3.5rem;
        padding: 3rem;
    }
}

/* ---------- Appel final et pied de page ---------- */

.appel {
    padding: 4rem 0;
    color: #fff;
    text-align: center;
    background: linear-gradient(150deg, #0d2260 0%, #1b45bf 55%, #3b6ef0 100%);
}

.appel h2 {
    margin: 0 0 0.75rem;
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.appel p {
    margin: 0 auto 1.75rem;
    max-width: 32rem;
    color: rgba(255, 255, 255, 0.82);
}

.appel .bouton {
    color: var(--marque-fonce);
    background: #fff;
    border-color: #fff;
}

.appel .bouton:hover {
    background: #eef3ff;
    border-color: #eef3ff;
}

.pied {
    padding: 2.5rem 0;
    font-size: 0.9rem;
    color: var(--texte-doux);
    background: #fff;
}

.pied .conteneur {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 2rem;
}

.pied nav {
    display: flex;
    gap: 1.5rem;
}

/* ---------- Contact ---------- */

.grille-contact {
    display: grid;
    gap: 1.25rem;
    max-width: 62rem;
    margin: 0 auto;
}

@media (min-width: 40rem) {
    .grille-contact {
        grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
    }
}

.contact-carte {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1.6rem;
    color: var(--texte);
    background: #fff;
    border: 1px solid var(--bordure);
    border-radius: 1rem;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

a.contact-carte:hover {
    border-color: var(--marque);
    box-shadow: 0 12px 28px rgba(59, 110, 240, 0.14);
    transform: translateY(-2px);
}

.contact-carte .icone {
    display: grid;
    place-items: center;
    width: 2.9rem;
    height: 2.9rem;
    margin-bottom: 0.75rem;
    color: var(--marque-fonce);
    background: var(--marque-clair);
    border-radius: 0.8rem;
}

.contact-carte strong {
    font-size: 1.05rem;
}

.contact-carte > span:not(.icone) {
    color: var(--texte-doux);
    overflow-wrap: anywhere;
}

/* ---------- Menu mobile ---------- */

.menu-bouton {
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    color: var(--texte);
    background: #fff;
    border: 1px solid var(--bordure);
    border-radius: 0.6rem;
    cursor: pointer;
}

@media (max-width: 51.99rem) {
    .entete.menu-ouvert nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: flex;
        flex-direction: column;
        gap: 0;
        padding: 0.5rem 1.25rem 1rem;
        background: #fff;
        border-bottom: 1px solid var(--bordure);
        box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
    }

    .entete.menu-ouvert nav a {
        padding: 0.8rem 0;
        border-bottom: 1px solid var(--bordure);
    }

    /* Menu déroulé sur mobile : la couleur suffit, pas de trait sous le lien. */
    .entete.menu-ouvert nav a.actif::after {
        display: none;
    }

    .entete .connexion {
        display: none;
    }
}

@media (min-width: 52rem) {
    .menu-bouton {
        display: none;
    }
}

/* ---------- Aperçu : pastilles flottantes ---------- */

.apercu {
    position: relative;
}

.pastille-flottante {
    position: absolute;
    display: none;
    align-items: center;
    gap: 0.7rem;
    padding: 0.65rem 0.95rem;
    background: #fff;
    border: 1px solid var(--bordure);
    border-radius: 0.8rem;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.14);
}

.pastille-flottante strong,
.pastille-flottante small {
    display: block;
    line-height: 1.3;
}

.pastille-flottante strong {
    font-size: 0.85rem;
}

.pastille-flottante small {
    font-size: 0.75rem;
    color: var(--texte-doux);
}

.pastille-flottante .point {
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 50%;
}

.pastille-flottante.stock {
    left: -2rem;
    bottom: 4.5rem;
}

.pastille-flottante.stock .point {
    background: #dc2626;
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.15);
}

.pastille-flottante.paiement {
    right: -1.25rem;
    bottom: -1.4rem;
}

.pastille-flottante.paiement .point {
    background: #2ca87f;
    box-shadow: 0 0 0 4px rgba(44, 168, 127, 0.18);
}

@media (min-width: 62rem) {
    .pastille-flottante {
        display: flex;
    }
}

/* ---------- Bandeau d'atouts ---------- */

.bande {
    background: #fff;
    border-top: 1px solid var(--bordure);
    border-bottom: 1px solid var(--bordure);
}

.bande .conteneur {
    display: grid;
    gap: 1.25rem 2rem;
    padding-top: 1.75rem;
    padding-bottom: 1.75rem;
}

@media (min-width: 40rem) {
    .bande .conteneur {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 64rem) {
    .bande .conteneur {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.bande-item strong,
.bande-item span {
    display: block;
}

.bande-item strong {
    font-size: 0.95rem;
}

.bande-item span {
    font-size: 0.85rem;
    color: var(--texte-doux);
}

/* ---------- Pour qui ---------- */

.puces {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    max-width: 52rem;
    margin: 0 auto;
    padding: 0;
    list-style: none;
}

.puces li {
    padding: 0.55rem 1.15rem;
    font-weight: 500;
    color: var(--marque-fonce);
    background: var(--marque-clair);
    border-radius: 999px;
}

/* ---------- FAQ ---------- */

.faq {
    display: grid;
    gap: 0.75rem;
    max-width: 46rem;
    margin: 0 auto;
}

.faq-item {
    background: #fff;
    border: 1px solid var(--bordure);
    border-radius: 0.9rem;
}

.faq-item summary {
    position: relative;
    padding: 1.1rem 3rem 1.1rem 1.4rem;
    font-weight: 600;
    list-style: none;
    cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    position: absolute;
    top: 50%;
    right: 1.3rem;
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--marque);
    transform: translateY(-50%);
}

.faq-item[open] summary::after {
    content: '\2212';
}

.faq-item[open] {
    border-color: var(--marque);
}

.faq-item p {
    margin: 0;
    padding: 0 1.4rem 1.2rem;
    color: var(--texte-doux);
}

/* ---------- Accueil : fond en points et halos ---------- */

.accueil {
    position: relative;
    overflow: hidden;
}

.accueil::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(#c7d2e5 1px, transparent 1px);
    background-size: 26px 26px;
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 65% 35%, #000 10%, transparent 75%);
    mask-image: radial-gradient(ellipse 70% 60% at 65% 35%, #000 10%, transparent 75%);
    opacity: 0.55;
    pointer-events: none;
}

.accueil .conteneur {
    position: relative;
}

.accueil h1 em {
    background: linear-gradient(90deg, #3b6ef0, #6f9bff 60%, #3b6ef0);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: reflet 6s linear infinite;
}

@keyframes reflet {
    to {
        background-position: 200% center;
    }
}

.apercu {
    animation: flotte 7s ease-in-out infinite;
}

.pastille-flottante.stock {
    animation: flotte 6s ease-in-out infinite reverse;
}

.pastille-flottante.paiement {
    animation: flotte 8s ease-in-out infinite;
}

@keyframes flotte {
    50% {
        transform: translateY(-7px);
    }
}

/* ---------- Fonctionnalités : grille bento ---------- */

.bento {
    display: grid;
    gap: 1.25rem;
}

@media (min-width: 40rem) {
    .bento {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bento .grande {
        grid-column: span 2;
    }
}

@media (min-width: 64rem) {
    .bento {
        grid-template-columns: repeat(12, minmax(0, 1fr));
    }

    .bento .grande {
        grid-column: span 6;
    }

    .bento .petite {
        grid-column: span 3;
    }
}

.bento .fonction {
    display: flex;
    flex-direction: column;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.bento .fonction:hover {
    border-color: #b8c9f8;
    box-shadow: 0 16px 36px rgba(59, 110, 240, 0.1);
    transform: translateY(-2px);
}

.visuel {
    margin-top: auto;
    padding: 1.1rem 1.2rem;
    font-size: 0.85rem;
    background: var(--fond);
    border: 1px solid var(--bordure);
    border-radius: 0.85rem;
}

.fonction.grande p {
    margin-bottom: 1.5rem;
}

.visuel-stock .ligne {
    display: grid;
    grid-template-columns: minmax(0, 9.5rem) 1fr 2.4rem;
    align-items: center;
    gap: 0.9rem;
    padding: 0.35rem 0;
}

.visuel-stock span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.visuel-stock .barre {
    height: 0.5rem;
    overflow: hidden;
    background: #e2e8f0;
    border-radius: 999px;
}

.visuel-stock .barre i {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #6f9bff, #3b6ef0);
    border-radius: 999px;
}

.visuel-stock .barre i.bas {
    background: linear-gradient(90deg, #f87171, #dc2626);
}

.visuel-stock b {
    text-align: right;
}

.visuel-stock b.alerte {
    color: #dc2626;
}

.visuel-facture .fact-tete,
.visuel-facture .fact-ligne,
.visuel-facture .fact-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.4rem 0;
}

.visuel-facture .fact-tete {
    padding-top: 0;
    margin-bottom: 0.25rem;
    border-bottom: 1px dashed var(--bordure);
    padding-bottom: 0.6rem;
}

.visuel-facture .etiquette {
    padding: 0.1rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--succes);
    background: #e7f5ee;
    border-radius: 999px;
}

.visuel-facture .fact-ligne span {
    color: var(--texte-doux);
}

.visuel-facture .fact-total {
    margin-top: 0.3rem;
    padding-top: 0.6rem;
    border-top: 1px solid var(--bordure);
    font-weight: 700;
}

/* ---------- Apparition au défilement ---------- */

.js .revele {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    transition-delay: calc(var(--i, 0) * 90ms);
}

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

/* Le hover des cartes garde sa réactivité une fois révélées. */
.js .bento .fonction.visible,
.js .tarif.visible {
    transition: opacity 0.6s ease, transform 0.6s ease, border-color 0.2s, box-shadow 0.2s;
}

/* ---------- Bande du code promo (collée sous l'en-tête) ---------- */

.bande-code-promo {
    position: sticky;
    top: 4.25rem;
    z-index: 19;
}

/* Fixée par le script une fois dépassée : fiable sur tous les navigateurs mobiles. */
.bande-code-promo.collee {
    position: fixed;
    right: 0;
    left: 0;
}

/* Les ancres ne doivent pas passer sous l'en-tête + la bande. */
html:has(.bande-code-promo) {
    scroll-padding-top: 7.75rem;
}

@media (prefers-reduced-motion: reduce) {
    .js .revele {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .apercu,
    .pastille-flottante,
    .accueil h1 em {
        animation: none;
    }
}

/* ---------- Barre d'action mobile ---------- */

.cta-mobile {
    position: fixed;
    right: 0.75rem;
    bottom: 0.75rem;
    left: 0.75rem;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.65rem 0.75rem 0.65rem 1.1rem;
    font-size: 0.9rem;
    color: #fff;
    background: rgba(15, 23, 42, 0.94);
    border-radius: 0.9rem;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.3);
    backdrop-filter: blur(8px);
    transform: translateY(150%);
    transition: transform 0.3s ease;
}

.cta-mobile.visible {
    transform: none;
}

.cta-mobile .bouton {
    flex-shrink: 0;
    white-space: nowrap;
}

@media (min-width: 52rem) {
    .cta-mobile {
        display: none;
    }
}
