/* =====================================================================
   style.css — SITE CONCOURS Amagatewax
   ---------------------------------------------------------------------
   RÔLE      : toute la mise en page du site concours (pages publiques
               et espace d'administration).
   SOURCE    : la charte de l'espace privé — mêmes variables, mêmes
               couleurs, même police, mêmes boutons, mêmes cartes.
   NB        : pour changer une couleur, changer la variable ci-dessous,
               jamais la valeur dans une règle.
   ===================================================================== */


/* =========================
   VARIABLES DE THÈME (identiques à la charte)
   ========================= */

:root{
    --brand-primary: #f4a12e;
    --brand-primary-2: #e88c2f;
    --brand-brown: #5B3721;
    --brand-ink: #121212;
    --brand-muted: #6b5e55;

    --bg-soft: #fff6ee;
    --border: rgba(91, 55, 33, 0.14);
    --shadow: 0 10px 24px rgba(18, 18, 18, 0.08);
    --shadow-hover: 0 16px 40px rgba(18, 18, 18, 0.12);

    --success-bg: #edf8f1;
    --success-text: #1f6b3b;
    --error-bg: #fff1f1;
    --error-text: #9a1f1f;
    --warning-bg: #fff7e6;

    --r-lg: 16px;
    --r-md: 12px;
}

*{ box-sizing: border-box; }
html{ -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body{
    margin: 0;
    background: radial-gradient(1200px 600px at 50% -100px, var(--bg-soft) 0%, #fff 55%, #fff 100%);
    color: var(--brand-ink);
    font-family: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
}

/* Liens dans un texte : marron au repos, orange au survol, jamais soulignés. */
a{
    color: var(--brand-brown);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover{
    color: var(--brand-primary-2);
}

h1, h2, h3{
    line-height: 1.2;
    margin: 0 0 0.6em;
    color: var(--brand-brown);
    text-wrap: balance;
}

h1{ font-size: clamp(1.7rem, 5vw, 2rem); font-weight: 700; }
h2{ font-size: 1.3rem; font-weight: 700; }

main{
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    padding: 2rem 1rem 3rem;
}

main.large{ max-width: 1360px; }


/* Bandeau de l'administratrice avant l'ouverture au public */
.bandeau-admin{
    padding: 0.6rem 1rem;
    background: var(--brand-brown);
    color: #fff;
    font-size: 0.9rem;
    text-align: center;
}

.bandeau-admin a{ color: var(--brand-primary); font-weight: 700; }
.bandeau-admin a:hover{ color: #fff; }

/* =========================
   EN-TÊTE ET PIED DE PAGE
   ========================= */

.entete{
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 2rem;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 1rem;
    background: linear-gradient(180deg, #fff 0%, #fff 50%, rgba(255, 246, 238, 0.8) 100%);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 6px 18px rgba(18, 18, 18, 0.06);
}

.marque{
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--brand-brown);
}

.marque img{
    display: block;
    height: 64px;
    width: auto;
}

.entete nav{
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.6rem;
}

/* Liens isolés (menu, pied de page) : marron et gras, avec un trait orange
   qui se déploie dessous au survol. Le texte, lui, reste marron. */
.entete nav a,
.footer-site a,
.footer-links a{
    position: relative;
    color: var(--brand-brown);
    font-weight: 700;
}

.entete nav a::after,
.footer-site a::after,
.footer-links a::after{
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 3px;
    border-radius: 999px;
    background: var(--brand-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s ease;
}

.entete nav a:hover,
.footer-site a:hover,
.footer-links a:hover{
    color: var(--brand-brown);
}

.entete nav a:hover::after,
.footer-site a:hover::after,
.footer-links a:hover::after{
    transform: scaleX(1);
}

/* Pied de page : repris de la charte (réseaux, site principal, société,
   liens légaux, copyright). */
.footer{
    margin-top: 1rem;
    padding: 2.5rem 1rem;
    background: #fff;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.footer-inner{
    max-width: 1360px;
    margin: 0 auto;
    text-align: center;
}

.footer-social{
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 20px;
}

.social-btn{
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    font-size: 1.2rem;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.social-btn:hover{
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.social-btn.fb, .social-btn.fb:hover{ color: #1877F2; }
.social-btn.ig, .social-btn.ig:hover{ color: #E1306C; }
.social-btn.yt, .social-btn.yt:hover{ color: #FF0000; }

.footer-site{
    margin: 0 0 14px;
    font-weight: 700;
}

.footer-legal{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin: 10px 0 0;
    font-size: 0.9rem;
    line-height: 1.6;
    text-align: center;
    color: var(--brand-muted);
}

.footer-legal::before{
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    margin-bottom: 10px;
    border-radius: 999px;
    background: var(--brand-primary);
    opacity: 0.8;
}

.footer-company{
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: 0.5px;
    color: var(--brand-ink);
}

.footer-line{ display: block; }

.footer-meta{
    font-size: 0.85rem;
    color: var(--brand-muted);
}

.footer-bottom{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.footer-links{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 18px;
    font-size: 1rem;
}

.footer-copy{
    font-size: 0.8rem;
    color: #9ca3af;
    text-align: center;
}


/* =========================
   BLOCS ET TEXTES
   ========================= */

.hero{
    text-align: center;
    padding: 1rem 0 1.5rem;
}

.petit-hero{ padding-bottom: 0.5rem; }

.surtitre{
    margin: 0 0 0.6rem;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--brand-muted);
}

.intro{
    max-width: 34em;
    margin: 0 auto 1.4rem;
    font-size: 1.08rem;
    color: var(--brand-ink);
}

.carte{
    margin: 0 0 1.5rem;
    padding: 2rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow);
}

.centre{ text-align: center; }

.petit{
    font-size: 0.88rem;
    color: var(--brand-muted);
}

/* Encadré d'information : même forme que les étiquettes de la charte,
   fond crème et filet orange à gauche. */
.info{
    padding: 0.8rem 1rem;
    background: var(--bg-soft);
    border-left: 6px solid var(--brand-primary);
    border-radius: var(--r-md);
    color: var(--brand-brown);
    font-weight: 600;
}

.etapes{ padding-left: 1.3em; margin: 0 0 0.8rem; }
.etapes li{ margin-bottom: 0.5rem; }
/* Titre de la page et titres des articles des pages légales : même
   bandeau que sur l'espace privé — fond crème, filet orange à gauche,
   texte marron. Le titre de la page est un peu plus grand. */
.texte h1,
.texte h2{
    display: table;               /* largeur du texte, mais toujours seul sur sa ligne */
    background: var(--bg-soft);
    color: var(--brand-brown);
    border-left: 6px solid var(--brand-primary);
    border-radius: 12px;
    padding: 0.6rem 1rem;
    margin: 1.5rem 0 0.6rem;
    font-size: 1.05rem;
    font-weight: 700;
}
.texte h1{ font-size: 1.2rem; }

@media (max-width: 700px){
    .carte{ padding: 1.4rem; }
}


/* =========================
   BOUTONS (identiques à la charte)
   ========================= */

.bouton{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    margin: 0.25rem 0.1rem;
    padding: 0.95rem 1.6rem;
    border: none;
    border-radius: var(--r-md);
    background: var(--brand-primary);
    color: var(--brand-brown);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 10px 18px rgba(244, 161, 46, 0.22);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, color 0.18s ease;
    appearance: none;
    -webkit-appearance: none;
}

/* Survol : les deux couleurs s'échangent, fond marron et texte orange. */
.bouton:hover{
    background: var(--brand-brown);
    color: var(--brand-primary);
    box-shadow: 0 14px 26px rgba(0, 0, 0, 0.18);
    transform: translateY(-1px);
}

.bouton:active{ transform: translateY(0); }

.bouton:focus-visible{
    outline: 3px solid rgba(244, 161, 46, 0.45);
    outline-offset: 3px;
}

/* Variante grise : action secondaire posée à côté de l'action principale. */
.bouton.secondaire{
    background: #f7f7f7;
    color: var(--brand-brown);
    border: 1px solid rgba(91, 55, 33, 0.16);
    box-shadow: none;
}

.bouton.secondaire:hover{
    background: var(--brand-brown);
    color: #fff;
}

.bouton.grand{
    width: 100%;
    padding: 1.1rem 1.6rem;
    font-size: 1.15rem;
}

/* Variante rouge : action irréversible, et rien d'autre. */
.bouton.danger{
    background: var(--error-text);
    color: #fff;
    box-shadow: none;
}

.bouton.danger:hover{
    background: #6d1616;
    color: #fff;
}


/* =========================
   FORMULAIRES
   ========================= */

form label{
    display: block;
    margin-bottom: 1rem;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--brand-ink);
}

input[type=text], input[type=email], input[type=tel], input[type=password], input[type=search],
input[type=time], input[type=number], textarea{
    display: block;
    width: 100%;
    margin-top: 0.4rem;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(91, 55, 33, 0.18);
    border-radius: var(--r-md);
    background: #fff;
    color: var(--brand-ink);
    font: inherit;
    font-weight: 400;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus, textarea:focus{
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 4px rgba(244, 161, 46, 0.16);
}

textarea{ resize: vertical; font-size: 0.95rem; }

.ligne{ display: flex; gap: 0.8rem; }
.ligne > label{ flex: 1; min-width: 0; }
.ligne > label.court{ flex: 0 0 34%; }

.facultatif{
    font-weight: 400;
    font-size: 0.85rem;
    color: var(--brand-muted);
}

.case{
    display: flex !important;
    gap: 0.6rem;
    align-items: flex-start;
    font-weight: 400 !important;
}

.case input{
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    margin-top: 2px;
    accent-color: var(--brand-primary);
}

form .bouton[type=submit]{ width: 100%; margin-top: 0.4rem; }

/* Date de naissance : trois menus côte à côte, plus simples sur téléphone
   qu'un calendrier qu'il faudrait remonter de plusieurs dizaines d'années. */
.naissance{
    margin: 0 0 1rem;
    padding: 0;
    border: 0;
}

.naissance legend{
    padding: 0;
    margin-bottom: 0.4rem;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--brand-ink);
}

.naissance-champs{
    display: grid;
    grid-template-columns: 1fr 1.6fr 1.2fr;
    gap: 0.6rem;
}

.naissance select,
.simulation select{
    width: 100%;
    min-width: 0;
    padding: 0.85rem 0.7rem;
    border: 1px solid rgba(91, 55, 33, 0.18);
    border-radius: var(--r-md);
    background: #fff;
    color: var(--brand-ink);
    font: inherit;
}

.naissance select:focus,
.simulation select:focus{
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 4px rgba(244, 161, 46, 0.16);
}

/* Champ technique, jamais affiché. */
.hp-field{ display: none; }

@media (max-width: 480px){
    .ligne{ flex-direction: column; gap: 0; }
    .ligne > label.court{ flex: 1; }
}


/* =========================
   MESSAGES
   ========================= */

.erreurs,
.succes-msg{
    margin-bottom: 1.2rem;
    padding: 0.95rem 1rem;
    border-radius: var(--r-md);
    font-weight: 600;
}

.erreurs{
    background: var(--error-bg);
    color: var(--error-text);
    border: 1px solid rgba(154, 31, 31, 0.12);
}

.succes-msg{
    background: var(--success-bg);
    color: var(--success-text);
    border: 1px solid rgba(31, 107, 59, 0.12);
}

.erreurs p, .succes-msg p{ margin: 0.25rem 0; }
.succes h1{ color: var(--success-text); }


/* =========================
   LISTE DES TIRAGES
   ========================= */

.resultats{
    display: grid;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.resultat{
    display: block;
    padding: 1rem 1.2rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow);
    color: inherit;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

a.resultat:hover{
    color: inherit;
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(244, 161, 46, 0.35);
}

.resultat.tire{ border-left: 6px solid var(--brand-primary); }

.resultat .jour{
    margin: 0;
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--brand-muted);
}

.decouvrir{
    margin: 0.25rem 0 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--brand-brown);
}

.a-venir{
    margin: 0.25rem 0 0;
    font-style: italic;
    color: var(--brand-muted);
}

.gagnante{
    margin: 0.25rem 0;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--brand-brown);
}

.horaires{ list-style: none; padding: 0; margin: 0 0 0.6rem; }

.horaires li{
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
}

.horaires li{ align-items: center; gap: 1rem; }

.horaires li > span:last-child{
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--brand-brown);
    white-space: nowrap;
}

.horaires-jour small{
    display: block;
    font-size: 0.82rem;
    color: var(--brand-muted);
}


/* =========================
   PASTILLE « PRÉSENT AU SALON » (notre logo) ET AFFICHE DU SALON
   ========================= */

.badge-salon{
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
    padding: 0.4rem 1rem 0.4rem 0.4rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 999px;
    box-shadow: var(--shadow);
    text-align: left;
    font-size: 0.82rem;
    line-height: 1.3;
    color: var(--brand-muted);
}

.badge-salon img{
    width: 58px;
    height: 58px;
    object-fit: contain;
    border-radius: 50%;
    background: #fff;
}

.badge-salon strong{
    display: block;
    font-size: 0.95rem;
    color: var(--brand-brown);
}

.salon{
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 1.2rem;
    align-items: center;
}

.salon img{
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--r-md);
    box-shadow: var(--shadow);
}

.salon p{ margin: 0 0 0.5rem; }

@media (max-width: 480px){
    .salon{ grid-template-columns: 110px minmax(0, 1fr); gap: 0.9rem; }
}


/* =========================
   PAGE RÉSULTAT D'UN JOUR
   ========================= */

.scene{
    min-height: 58vh;
    padding: 1.5rem 0 0.5rem;
    text-align: center;
}

.scene h1{ margin-bottom: 1.5rem; }

.compteur{
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin: 0.6rem 0 1.5rem;
}

.compteur div{
    min-width: 78px;
    padding: 0.8rem 0.5rem;
    background: var(--bg-soft);
    border-left: 6px solid var(--brand-primary);
    border-radius: var(--r-md);
    box-shadow: var(--shadow);
}

.compteur b{
    display: block;
    font-size: 2.4rem;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    color: var(--brand-brown);
}

.compteur span{ font-size: 0.8rem; color: var(--brand-muted); }

.tambour{ display: flex; justify-content: center; gap: 0.6rem; margin: 2rem 0 1.2rem; }

.tambour span{
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--brand-brown);
    animation: rebond 1s infinite ease-in-out;
}

.tambour span:nth-child(2){ animation-delay: 0.15s; background: var(--brand-primary); }
.tambour span:nth-child(3){ animation-delay: 0.3s; }

@keyframes rebond{
    0%, 80%, 100%{ transform: translateY(0); opacity: 0.5; }
    40%{ transform: translateY(-18px); opacity: 1; }
}

.annonce{
    margin: 0.6rem 0;
    font-size: 1.4rem;
    color: var(--brand-muted);
    animation: apparait 1s ease-out;
}

.annonce.discret{ font-size: 1rem; }

.nom-revele{
    min-height: 1.3em;
    margin: 0.6rem 0 0.9rem;
    font-size: clamp(2.2rem, 10vw, 4.2rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--brand-brown);
    overflow-wrap: anywhere;
}

.nom-revele.chiffre{ font-size: clamp(4rem, 22vw, 7rem); color: var(--brand-primary); animation: battement 1s ease-out; }
.nom-revele.brouille{ letter-spacing: 0.04em; color: var(--brand-muted); }
.nom-revele.final{ animation: pop 0.6s cubic-bezier(0.2, 1.6, 0.4, 1); }
/* Les deux cotillons de part et d'autre du nom de la gagnante */
.nom-revele .cotillon{ display: inline-block; margin: 0 0.3em; font-size: 0.75em; vertical-align: 0.08em; }
.nom-revele .insecable{ white-space: nowrap; }

@keyframes battement{ from{ transform: scale(1.8); opacity: 0; } to{ transform: scale(1); opacity: 1; } }
@keyframes apparait{ from{ opacity: 0; transform: translateY(10px); } to{ opacity: 1; transform: none; } }
@keyframes pop{ from{ transform: scale(0.6); opacity: 0; } to{ transform: scale(1); opacity: 1; } }

.bravo{ margin: 0.4rem 0; font-size: 1.3rem; font-weight: 700; color: var(--brand-brown); }

.lien-passer{
    margin-top: 1.5rem;
    background: none;
    border: 0;
    font: inherit;
    font-size: 0.9rem;
    color: var(--brand-muted);
    cursor: pointer;
}

.lien-passer:hover{ color: var(--brand-primary-2); }

#confettis{ position: fixed; inset: 0; pointer-events: none; z-index: 5; }

@media (prefers-reduced-motion: reduce){
    .annonce, .nom-revele, .tambour span{ animation: none !important; }
}


/* =========================
   ADMINISTRATION
   ========================= */

.connexion{ max-width: 400px; margin: 3rem auto; }

.bandeau-test{
    margin-bottom: 1rem;
    padding: 0.8rem 1rem;
    background: var(--warning-bg);
    border: 1px solid var(--brand-primary);
    border-radius: var(--r-md);
    color: #92400e;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Onglets des jours : même forme que les onglets de la charte. */
.onglets{ display: flex; flex-wrap: wrap; gap: 0.7rem; margin-bottom: 0.4rem; }

.onglets a{
    padding: 0.7rem 1rem;
    background: var(--bg-soft);
    border-left: 6px solid var(--border);
    border-radius: var(--r-md);
    color: var(--brand-brown);
    font-weight: 700;
    font-size: 0.92rem;
    opacity: 0.65;
    transition: opacity 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.onglets a:hover{ opacity: 1; color: var(--brand-brown); }

.onglets a.actif{
    opacity: 1;
    border-left-color: var(--brand-primary);
    box-shadow: var(--shadow);
}

.pastille{
    display: inline-block;
    min-width: 1.6em;
    margin-left: 0.25rem;
    padding: 0 0.4rem;
    border-radius: 999px;
    background: rgba(91, 55, 33, 0.1);
    font-size: 0.8rem;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.grille-admin{
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
    gap: 1.2rem;
    margin-top: 1rem;
}

@media (max-width: 900px){
    .grille-admin{ grid-template-columns: 1fr; }
}

.gagnante-bloc{
    margin-bottom: 1rem;
    padding: 1rem 1.1rem;
    background: var(--bg-soft);
    border-left: 6px solid var(--brand-primary);
    border-radius: var(--r-md);
}

.coordonnees{ display: grid; grid-template-columns: auto 1fr; gap: 0.25rem 0.9rem; margin: 0.6rem 0; }
.coordonnees dt{ font-weight: 700; color: var(--brand-muted); }
.coordonnees dd{ margin: 0; overflow-wrap: anywhere; }

.tableau-defile{ max-height: 600px; overflow: auto; }

table{ width: 100%; border-collapse: collapse; font-size: 0.9rem; }

th, td{
    padding: 0.55rem 0.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    text-align: left;
    white-space: nowrap;
}

th{ position: sticky; top: 0; background: #fff; font-weight: 700; }

.ligne-gagnante td{ background: var(--bg-soft); font-weight: 700; color: var(--brand-brown); }

#filtre{ margin: 0 0 0.6rem; }

/* Carte « QR code du stand » de l'admin, repliée par défaut. */
.qr-stand summary{ cursor: pointer; color: var(--brand-brown); }
.qr-stand-contenu{ display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.2rem; align-items: start; margin-top: 1rem; }
.qr-stand-image img{ display: block; width: 200px; height: 200px; border-radius: var(--r-md); box-shadow: var(--shadow); }
@media (max-width: 640px){ .qr-stand-contenu{ grid-template-columns: 1fr; justify-items: center; } }

.lien-public{ display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.9rem; }
.lien-public input{ flex: 1 1 200px; margin: 0; font-size: 0.85rem; }
.lien-public .bouton{ margin: 0; padding: 0.65rem 1rem; font-size: 0.9rem; }

.zone-danger{ border-color: rgba(154, 31, 31, 0.2); }

/* Page de simulation : champs côte à côte, petits boutons dans le tableau. */
.ligne-sim{ display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: flex-end; }
.ligne-sim label{ flex: 1 1 200px; margin-bottom: 0; }
.ligne-sim select{ margin-top: 0.4rem; }
.ligne-sim .bouton{ margin: 0; }
.simulation .carte + .carte form:not(.ligne-sim){ margin-top: 0.8rem; }
.actions-sim{ display: flex; flex-wrap: wrap; gap: 0.4rem; }
.actions-sim form{ margin: 0; }
.bouton.mini{ margin: 0; padding: 0.45rem 0.8rem; font-size: 0.85rem; }
.zone-danger form{ display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }
.zone-danger input{ flex: 1; width: auto; margin: 0; }
.zone-danger .bouton{ width: auto !important; margin: 0; }

textarea[readonly]{ font-family: monospace; font-size: 0.85rem; }

/* Animation du tirage, côté administration. */
.revele{
    position: fixed;
    inset: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: var(--brand-brown);
    color: #fff;
    text-align: center;
}

.revele-titre{ letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.8; }

.revele-nom{
    min-height: 1.3em;
    margin: 0.6rem 0 2rem;
    font-size: clamp(2rem, 9vw, 5rem);
    font-weight: 800;
}

.revele-nom.final{ color: var(--brand-primary); animation: pop 0.5s ease-out; }