/* ==========================================================================
   ACAA Jeux : feuille de style unique du site (pages publiques et admin)
   Pour changer une couleur ou une police : modifier uniquement le bloc
   « Direction artistique » ci-dessous. Le reste du fichier n'utilise que
   les variables de rôle (--fond, --texte, --accent…).
   ========================================================================== */


/* --- Direction artistique ------------------------------------------------ */

:root {
    /* Palette (planche du 8 novembre 2026, valeurs relevées sur l'image) */
    --olive: #6E5F00;
    --moutarde: #A69A05;
    --rouge: #BE0418;           /* non utilisé (à la demande) */
    --rouge-vif: #F0071C;       /* non utilisé (à la demande) */
    --orange: #D97A08;
    --bordeaux: #5A0004;        /* pièce de puzzle */
    --brun: #722D07;            /* texte de l'exemple */
    --sable: #F0D49A;           /* titre de l'exemple */
    --vert-noel: #2F4A2A;       /* « Noël » */
    --creme: #FFFAF0;
    --creme-fonce: #F8EBCF;

    /* Rôles : c'est ici qu'on choisit quelle couleur sert à quoi */
    --fond: var(--creme);
    --carte: var(--creme-fonce);     /* formulaires, récapitulatifs */
    --bordure: #E6D3AB;
    --texte: var(--brun);
    --texte-doux: #8A5A3C;           /* texte secondaire */
    --titres: var(--bordeaux);
    --accent: var(--bordeaux);       /* liens, prix, mots en valeur, erreurs, case à cocher */
    --bouton: var(--bordeaux);
    --bouton-survol: var(--brun);
    --detail: var(--orange);         /* focus, étapes, bandeau de test */
    --etape-validee: var(--vert-noel);
    --bandeau: var(--bordeaux);      /* menu, pied de page */
    --bandeau-texte: var(--sable);
    --ombre-titres: 0 2px 6px rgba(90, 0, 4, 0.15);

    /* Polices */
    --police-titres: Georgia, serif;
    --police-texte: Georgia, serif;
    /* Chiffres des étapes : il faut des chiffres alignés (ceux de Georgia
       descendent sous la ligne et ne sont pas centrés dans les ronds) */
    --police-chiffres: Verdana, serif;

    /* Mise en page */
    --largeur: 992px;
    --arrondi: 14px;
    --arrondi-petit: 8px;
}


/* --- Base ---------------------------------------------------------------- */

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

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;   /* mobile : hauteur réelle, barre d'adresse comprise */
    display: flex;
    flex-direction: column;
    background: var(--fond);
    color: var(--texte);
    font-family: var(--police-texte);
    font-size: 1.0625rem;
    line-height: 1.65;
}

main {
    flex: 1;
    width: 100%;
    max-width: var(--largeur);
    margin: 0 auto;
    padding: 0 16px 56px;
    overflow-wrap: break-word;   /* longues adresses email ou URL */
}

h1, h2, h3 {
    font-family: var(--police-titres);
    font-weight: 700;
    line-height: 1.15;
    color: var(--titres);
    text-shadow: 2px 2px 20px var(--texte);
    margin: 1.6em 0 0.5em;
}

h1 {
    font-size: clamp(2rem, 6vw, 3rem);
    margin-top: 1.4em;
}

h2 {
    font-size: 1.5rem;
}

h3 {
    font-size: 1.2rem;
}

/* Mot mis en valeur dans un titre : <h1>… votre <em>sapin</em></h1> */
h1 em, h2 em {
    color: var(--accent);
}

p, ul, ol, dl {
    margin: 0 0 1em;
}

a {
    color: var(--accent);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

a:hover {
    text-decoration-thickness: 2px;
}

strong {
    font-weight: 700;
}

/* Citation (ex. informations produit dans les CGV) : en retrait, plus petite */
blockquote {
    margin: -0.4em 0 1em 1.5em;
    padding: 4px 0 4px 14px;
    border-left: 3px solid var(--bordure);
    color: var(--texte-doux);
    font-size: 0.9em;
    line-height: 1.55;
}

hr {
    border: 0;
    border-top: 1px dashed var(--bordure);
    margin: 1em 0;
}

:focus-visible {
    outline: 3px solid var(--detail);
    outline-offset: 2px;
}

.wrapper {

}
/* Texte justifié seulement sur écran large : sur mobile, les lignes sont trop
   courtes et la justification creuse de grands blancs entre les mots */
p {
    hyphens: auto;
}

@media (min-width: 600px) {
    p {
        text-align: justify;
    }
}
/* Petit sur-titre en capitales espacées, comme sur la planche de la DA */
.surtitre {
    margin: 0 0 0.4em;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--texte-doux);
}

#noel2026 {
    max-width: 100%;
    box-shadow: 0px 0px 20px 5px dimgray;
}
.btn {
    display: inline-block;
    padding: .85rem 1.8rem;
    border-radius: 999px;
    background: #8e1f2c;
    color: #fff;
    text-decoration: none;
}

.row { display: flex; gap: 1.5rem; flex-wrap: wrap; min-height: 43px; }
.col { flex: 1 1 200px; } /* equal widths, wraps below 200px each */
.col-2 { flex-grow: 2; }
.text-center { text-align: center; }
.text-right { text-align: right; }

/* --- Bandeau du mode test ------------------------------------------------ */

.test-banner {
    margin: 0;
    padding: 6px;
    text-align: center;
    font-size: 1.5rem;
    text-transform: uppercase;
    color: var(--texte);
    background: repeating-linear-gradient(
            45deg,
            var(--sable),
            var(--sable) 10px,
            var(--detail) 10px,
            var(--detail) 20px
    );
}


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

body > nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 28px;
    padding: 14px 16px;
    background: var(--bandeau);
}

body > nav a {
    padding: 6px 4px;   /* zone de clic plus confortable au doigt */
    color: var(--bandeau-texte);
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.02em;
}

body > nav a:hover {
    color: var(--detail);
}


/* --- Pied de page -------------------------------------------------------- */

body > footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 12px 16px;
    text-align: center;
    font-size: 0.8rem;
    line-height: 1.8;
    background: var(--bandeau);
    color: var(--bandeau-texte);
}

body > footer a {
    white-space: nowrap;   /* un lien ne se coupe pas en deux lignes */
    text-decoration: none;
    color: var(--bandeau-texte);
}

body > footer a:hover {
    text-decoration: underline;
    color: var(--detail);
}

/* Séparateurs « | » entre les trois blocs (copyright, liens, lyrau) */
.pied-liens::before,
.pied-lyrau::before {
    content: "|";
    margin: 0 0.4em;   /* même espace des deux côtés du séparateur */
}

/* Textes courts : seulement sur mobile (voir le bloc « Mobile ») */
.pied-court,
.texte-court {
    display: none;
}


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

button, .bouton {
    display: inline-block;
    padding: 12px 24px;
    border: 0;
    border-radius: var(--arrondi-petit);
    background: var(--bouton);
    color: var(--fond);
    font: inherit;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
}

button:hover, .bouton:hover {
    background: var(--bouton-survol);
}

/* Bouton secondaire : contour seul (la bordure remplace 2px de padding pour garder la même taille) */
.btn-outlined {
    padding: 10px 22px;
    border: 2px solid var(--bouton);
    background: transparent;
    color: var(--bouton);
}

.btn-outlined:hover {
    border-color: var(--bouton-survol);
    background: transparent;
    color: var(--bouton-survol);
}

/* Bouton discret qui ressemble à un lien (ex. « Annuler ma commande ») */
button.bouton-lien,
button.bouton-lien:hover {
    width: auto;
    padding: 0;
    background: none;
    color: var(--texte-doux);
    font-size: 0.9rem;
    font-weight: normal;
    text-decoration: underline;
    text-underline-offset: 3px;
}

button.bouton-lien:hover {
    color: var(--accent);
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}


/* --- Formulaires --------------------------------------------------------- */

main form {
    margin: 1.5em 0;
    padding: 24px;
    background: var(--carte);
    border: 1px solid var(--bordure);
    border-radius: var(--arrondi);
}

/* Champs du site. Le module Mondial Relay (#relais-carte) en est exclu :
   il garde sa propre mise en page, que ces règles cassaient (libellés et champs décalés) */
label:not(:where(#relais-carte *)) {
    display: block;
    margin-bottom: 4px;
    font-weight: 600;
}

input[type="text"]:not(:where(#relais-carte *)),
input[type="email"]:not(:where(#relais-carte *)),
input[type="tel"]:not(:where(#relais-carte *)),
input[type="password"]:not(:where(#relais-carte *)),
select:not(:where(#relais-carte *)) {
    display: block;
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--bordure);
    border-radius: var(--arrondi-petit);
    background: var(--fond);
    color: var(--texte);
    font: inherit;
}

select:not(:where(#relais-carte *)) {
    width: auto;
    min-width: 6em;
}

/* Mobile : liste des pays (drapeau + indicatif) à gauche du numéro */
.telephone {
    display: flex;
    gap: 8px;
}

.telephone select {
    flex: none;
    min-width: 0;
}

.telephone input {
    flex: 1;
    min-width: 0;
}

input:focus, select:focus {
    border-color: var(--detail);
}

input[type="checkbox"] {
    width: 1.15em;
    height: 1.15em;
    margin: 0 8px 0 0;
    vertical-align: -0.15em;
    accent-color: var(--accent);
}

input[type="checkbox"] + label {
    display: inline;
    font-weight: normal;
}

/* Lien « Retour » à côté du bouton « Continuer » */
form > a {
    margin-right: 20px;
}

/* Lignes « libellé / valeur » du formulaire (prix, quantité, total) :
   toujours côte à côte, même sur mobile */
main form .row {
    flex-wrap: nowrap;
    align-items: center;
}

main form .row .col {
    flex-basis: 0;
}

main form .row label,
main form .row p {
    margin: 0;
}

/* Image du set, à gauche du texte : carrée, recadrée si besoin */
.image-produit {
    flex: none;
    width: 96px;
    height: 96px;
    object-fit: cover;
    border-radius: var(--arrondi-petit);
}

/* Étape 1 : produit à gauche, prix / quantité / total à droite ;
   sur mobile, les deux blocs passent l'un sous l'autre */
@media (max-width: 640px) {
    main form .row.bloc-produit {
        flex-direction: column;
        align-items: stretch;
        gap: 1em;
    }

    main form .row.bloc-produit > .col {
        flex: none;
    }

    /* Image à gauche du texte plutôt qu'au-dessus, pour gagner de la hauteur */
    main form .row.bloc-produit .produit {
        display: flex;
        align-items: flex-start;
        gap: 14px;
        line-height: 1.45;
    }
}

@media (max-width: 520px) {
    .image-produit {
        width: 72px;
        height: 72px;
    }

    /* Description du set et mention de livraison plus petites, pour éviter les mots seuls en fin de ligne */
    main form .produit .aide,
    main form small.pays-livraison {
        font-size: 0.8em;
    }
}

/* Formulaire réduit à un seul bouton (reprendre, annuler, confirmer) */
main form:not(:has(input:not([type="hidden"]), select)) {
    padding: 0;
    background: none;
    border: 0;
}


/* --- Messages ------------------------------------------------------------ */

.message, .erreurs, .erreur {
    padding: 12px 16px;
    border: 4px solid var(--detail);
    border-radius: var(--arrondi-petit);
    background: var(--detail);
    color: var(--creme);
}

.erreurs, .erreur {
    color: var(--accent);
}

.erreurs {
    padding-left: 36px;
}

.aide {
    font-size: 0.9em;
    color: var(--texte-doux);
}


/* --- Tunnel de commande -------------------------------------------------- */

/* Étapes 1 à 4 */
.etapes {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 20px;
    padding: 0;
    list-style: none;
    counter-reset: etape;
    font-size: 0.95rem;
    color: var(--texte-doux);
    margin: 1em 0;
}

.etapes li {
    counter-increment: etape;
}

.etapes li::before {
    content: counter(etape);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.6em;
    height: 1.6em;
    margin-right: 6px;
    border: 1px solid var(--detail);
    border-radius: 50%;
    vertical-align: 0.1em;
    font-size: 0.85em;
    line-height: 1;
    font-family: var(--police-chiffres);
    font-variant-numeric: lining-nums;
}

.etapes li[aria-current] {
    color: var(--texte);
    font-weight: 700;
}

/* Étape en cours */
.etapes li[aria-current]::before {
    background: var(--detail);
    color: var(--fond);
}

/* Étapes validées (celles qui précèdent l'étape en cours) : coche sur fond vert */
.etapes li:has(~ li[aria-current])::before {
    content: "\2713";
    border-color: var(--etape-validee);
    background: var(--etape-validee);
    color: var(--fond);
}

/* Texte lu par les lecteurs d'écran mais invisible */
.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;
}
#price {
    font-size: 1.3em;
}
#total {
    font-family: var(--police-titres);
    font-size: 1.3em;
    color: var(--accent);
}

/* Bloc masqué par le tunnel (choix du retrait) : rien ne doit le réafficher */
[hidden] {
    display: none !important;
}

/* Étape 3 : choix entre Mondial Relay et dépôt, puis choix du dépôt */
.choix-retrait {
    margin: 1.5em 0;
    padding: 0;
    border: 0;
}

.choix-retrait legend {
    margin-bottom: 8px;
    padding: 0;
    font-weight: 700;
}

label.choix {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin: 0 0 10px;
    padding: 14px 16px;
    border: 1px solid var(--bordure);
    border-radius: var(--arrondi);
    background: var(--carte);
    font-weight: normal;
    line-height: 1.45;
    cursor: pointer;
}

label.choix:has(input:checked) {
    border-color: var(--accent);
    box-shadow: inset 0 0 0 1px var(--accent);
}

label.choix input[type="radio"] {
    flex: none;
    width: 1.15em;
    height: 1.15em;
    margin: 0.2em 0 0;
    accent-color: var(--accent);
}

/* Dans le formulaire des dépôts, les cartes sont déjà sur fond beige : fond clair */
#form-depot label.choix {
    background: var(--fond);
}

/* Carte Mondial Relay */
#relais-carte {
    margin: 1em 0;
    /* Pas de overflow ici : il couperait la liste déroulante des pays */
}

/* Le widget occupe tout le haut du formulaire : marges négatives égales au padding
   du formulaire (24px, 16px sur mobile) et coins du haut arrondis comme lui */
#relais-carte {
    --marge-form: 24px;
    margin: calc(-1 * var(--marge-form)) calc(-1 * var(--marge-form)) 1em;
}

#relais-carte .MR-Widget {
    min-height: 300px;
    width: 100% !important;
    max-width: none;
    margin: 0;
    border: 0;
    border-radius: calc(var(--arrondi) - 1px) calc(var(--arrondi) - 1px) 0 0;   /* -1px : bordure du formulaire */
}

/* Recherche : logo, puis drapeau du pays, puis Ville et CP.
   La ligne du widget est en flex : on change seulement l'ordre d'affichage */
#relais-carte .MRW-SearchLogo {
    order: -2;
}

#relais-carte .MRW-CountryContainer {
    order: -1;
}

/* Sur téléphone, le widget s'affiche en liste, sans carte (voir order/script.js).
   Les !important sont nécessaires : la feuille de Mondial Relay en utilise. */
@media (max-width: 640px) {
    #relais-carte .MR-Widget.MR-Widget-Responsive {
        width: 100%;
        font-size: 15px !important;
    }

    /* La liste des points défile dans son cadre : avec la recherche au-dessus,
       les boutons Retour / Continuer restent visibles en dessous */
    #relais-carte .MR-Widget-Responsive .MRW-Results {
        height: auto;
        max-height: 350px;
        margin-left: 0;
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    #relais-carte .MR-Widget-Responsive .MRW-RList {
        height: auto;
        min-width: 0;
        overflow: visible;
    }

    /* Boutons et coche aux couleurs du site au lieu du vert Mondial Relay */
    #relais-carte .MR-Widget-Responsive .MRW-ButtonContainer button,
    #relais-carte .MR-Widget-Responsive .MRW-ButtonContainer button:hover {
        border-color: var(--bouton);
        background-color: var(--bouton);
    }

    /* Bouton « Chercher » plus étroit : le bouton de géolocalisation tient sur la ligne */
    #relais-carte .MR-Widget-Responsive .MRW-ButtonContainer button:not(.MRW-BtGeoGo) {
        width: auto;
        padding: 5px 10px;
    }

    #relais-carte .MR-Widget-Responsive .PR-List-Item.PR-Selected:before {
        border-color: var(--etape-validee);
        background-color: var(--etape-validee);
    }
}


/* « Livraison en … Autre pays ? Écrivez-nous » (accueil, étape 1) */
p.pays-livraison {
    margin: 0.4em 0 1em;
    text-align: center;
    hyphens: manual;
}

main form p.pays-livraison {
    margin: 0.8em 0 0;
    text-align: right;
}

/* --- Informations sur le produit (accueil, étape 1, obligation GPSR) ------ */

.infos-produit {
    margin: 2em 0 0;
    padding: 14px 18px;
    border-top: 1px dashed var(--bordure);
    color: var(--texte-doux);
    font-size: 0.85rem;
    line-height: 1.5;
}

.infos-produit p {
    margin: 0 0 0.6em;
    text-align: left;
    hyphens: manual;   /* pas de « Bel-gique » dans une adresse */
}

.infos-produit p:last-child {
    margin-bottom: 0;
}


/* --- Valider ma réponse (valid/) ---------------------------------------- */

.reussite {
    margin: 1.5em 0;
    padding: 24px;
    text-align: center;
    background: var(--carte);
    border: 2px solid var(--etape-validee);
    border-radius: var(--arrondi);
}

.reussite p {
    text-align: center;
}

/* Code promo : gros, espacé, facile à recopier */
.promo {
    display: inline-block;
    margin: 0;
    border: 2px dashed var(--accent);
    border-radius: var(--arrondi-petit);
    background: var(--fond);
    color: var(--accent);
    max-width: 100%;
    font-family: var(--police-chiffres);
    padding: 10px 14px;
    font-size: clamp(0.8rem, 4.2vw, 1.6rem);   /* NOEL2027-XXXXX-XXXXX sur une ligne, même à 320 px */
    font-weight: 700;
    letter-spacing: 0.04em;
    white-space: nowrap;
    user-select: all;   /* un clic sélectionne tout le code */
}

/* « M'envoyer le code par email », sous le code promo */
main form.envoi-promo {
    margin: 1.5em 0 0;
    padding: 0;
    text-align: left;
    background: none;
    border: 0;
}

.envoi-promo input[type="email"] {
    margin: 4px 0 10px;
}

.reussite .message, .reussite .erreur {
    margin-top: 1.5em;
    text-align: left;
}

#code {
    text-transform: uppercase;
    letter-spacing: 0.1em;
}


/* --- Récapitulatifs (commande, retour de paiement, rétractation) --------- */

main > dl {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 10px 24px;
    padding: 20px 24px;
    background: var(--carte);
    border: 1px solid var(--bordure);
    border-radius: var(--arrondi);
}

main > dl dt {
    font-weight: 700;
}

main > dl dd {
    margin: 0;
    overflow-wrap: anywhere;
}

@media (max-width: 520px) {
    main > dl {
        grid-template-columns: 1fr;
        gap: 2px;
    }

    main > dl dd {
        margin-bottom: 10px;
    }
}


/* ==========================================================================
   Admin (dossier gestion-…) : <body class="admin">
   ========================================================================== */

.admin {
    font-size: 1rem;
    line-height: 1.45;
}

.admin > header, .admin > main {
    width: 100%;
    max-width: var(--largeur);
    margin: 0 auto;
    padding: 0 8px;
}

.admin > header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.admin > main {
    padding-bottom: 40px;
}

.admin h1 {
    font-size: 1.6rem;
}

.admin h2 {
    margin-top: 0em;
}

.admin form {
    margin: 0;
    padding: 0;
    background: none;
    border: 0;
}

.admin button {
    padding: 8px 14px;
}

.admin .connexion {
    max-width: 340px;
    margin-top: 15vh;
}

.admin .connexion input {
    margin: 6px 0 14px;
}

.stock dl {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
}

.stock dl div {
    flex: 1 1 140px;
    padding: 8px 12px;
    background: var(--carte);
    border-radius: var(--arrondi-petit);
}

.stock dt {
    font-size: 0.85em;
    color: var(--texte-doux);
}

.stock dd {
    margin: 0;
    font-family: var(--police-titres);
    font-size: 1.5em;
}

/* Admin : section Énigme (onglet Paramètres) */
.enigme h3 {
    margin: 1.4em 0 0.4em;
}

.actions-enigme {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.actions-enigme .bouton {
    padding: 6px 12px;
}

table.reussites, table.journal {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9em;
}

table.reussites th, table.reussites td, table.journal th, table.journal td {
    padding: 6px 8px;
    border-bottom: 1px solid var(--bordure);
    text-align: left;
}

/* Journaux : les adresses longues (pages, provenances) passent à la ligne au lieu d'élargir la page */
table.journal td {
    overflow-wrap: anywhere;
}

/* Code et code promo sur une seule ligne */
table.reussites td:nth-child(1), table.reussites td:nth-child(3) {
    white-space: nowrap;
}

/* Admin : onglets Commandes / Paramètres */
/* « body > nav.onglets » : plus précis que le menu du site (body > nav), dont on annule le bandeau */
body > nav.onglets {
    display: flex;
    justify-content: flex-start;
    gap: 4px;
    background: none;
    width: 100%;
    max-width: var(--largeur);
    margin: 8px auto 24px;
    padding: 0 8px;
    border-bottom: 2px solid var(--bordure);
}

body > nav.onglets a {
    margin-bottom: -2px;
    padding: 8px 16px;
    border-bottom: 2px solid transparent;
    color: var(--texte-doux);
    font-weight: 700;
    text-decoration: none;
}

body > nav.onglets a:hover {
    color: var(--accent);
}

body > nav.onglets a[aria-current] {
    border-bottom-color: var(--accent);
    color: var(--accent);
}

/* Admin : activer / désactiver les dépôts */
.depots ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.depots li {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    padding: 8px 12px;
    background: var(--carte);
    border-radius: var(--arrondi-petit);
}

.vues {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 24px 0 16px;
}

.vues a {
    padding: 6px 12px;
    border-radius: var(--arrondi-petit);
    background: var(--carte);
    color: inherit;
    text-decoration: none;
}

.vues a[aria-current] {
    background: var(--bandeau);
    color: var(--fond);
}

.commande {
    margin-bottom: 16px;
    padding: 12px 16px;
    background: var(--carte);
    border: 1px solid var(--bordure);
    border-radius: var(--arrondi);
}

.commande h2 {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: baseline;
    margin: 0 0 8px;
    font-size: 1.15em;
}

.quantite, .statut {
    font-family: var(--police-texte);
    font-size: 0.8em;
    font-weight: normal;
    color: var(--texte-doux);
}
#quantite {
    float: right;
}

.commande dl {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 4px 16px;
    margin: 0 0 12px;
}

.commande dt {
    color: var(--texte-doux);
}

.commande dd {
    margin: 0;
    overflow-wrap: anywhere;
}


/* ==========================================================================
   Mobile (écrans de 520 px et moins)
   ========================================================================== */

@media (max-width: 520px) {
    body {
        font-size: 1rem;   /* reste à 16 px : iOS ne zoome pas sur les champs */
    }

    .test-banner {
        font-size: 1rem;
    }

    /* Pied de page sur une ligne : « Confidentialité · CGV · ACAA Jeux © 2026 · {lyrau} »
       (sur les écrans très étroits, il passe à la ligne entre deux blocs) */
    body > footer {
        padding: 8px 16px;
        line-height: 1.7;
    }

    .pied-long,
    .texte-long {
        display: none;
    }

    .pied-court,
    .texte-court {
        display: inline;
    }

    .pied-liens {
        order: -1;
    }

    .pied-liens::before {
        content: none;
    }

    .pied-copyright::before,
    .pied-lyrau::before {
        content: "·";
        margin: 0 0.25em;   /* même espace que le « · » entre Confidentialité et CGV */
    }

    h1 {
        margin-top: 1em;
    }

    h2 {
        font-size: 1.35rem;
    }

    main form {
        padding: 16px;
    }

    #relais-carte {
        --marge-form: 16px;
    }

    main > dl {
        padding: 16px;
    }

    /* Boutons des formulaires (Retour, Continuer, Payer…) : pleine largeur, plus faciles à toucher */
    main form .row .bouton,
    main form button:not(.bouton-lien) {
        width: 100%;
        text-align: center;
    }

    /* Étapes : seulement les numéros, avec le nom de l'étape en cours.
       Les autres noms restent lus par les lecteurs d'écran. */
    .etapes {
        gap: 6px 10px;
        align-items: center;
    }

    .etapes li:not([aria-current]) {
        font-size: 0;
    }

    .etapes li::before {
        font-size: 0.85rem;
    }

    .etapes li:not([aria-current])::before {
        margin-right: 0;
    }

    /* Admin : fiches de commande en une colonne */
    .commande dl {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .commande dd {
        margin-bottom: 6px;
    }
}
