/* =====================================================================
   Com Tidam — Web & DJ Events
   Feuille de style principale (site public + composants partagés)
   Mobile-first : tout est en une colonne par défaut.
   ===================================================================== */

:root {
    --ink: #14101f;
    --ink-2: #4b4460;
    --ink-3: #7a7390;
    --marque: #7c3aed;
    --marque-fonce: #5b21b6;
    --marque-clair: #ede9fe;
    --rose: #e11d74;
    --accent: #f59e0b;
    --fond: #f6f4fb;
    --fond-2: #efeaf9;
    --carte: #ffffff;
    --bord: #e7e2f2;
    --nuit: #120d1e;
    --nuit-2: #1c1530;
    --ok: #059669;
    --warn: #d97706;
    --err: #dc2626;
    --ombre: 0 4px 16px rgba(20, 16, 31, 0.06);
    --ombre-forte: 0 14px 40px rgba(20, 16, 31, 0.14);
    --r: 18px;
    --r-sm: 12px;
    --degrade: linear-gradient(120deg, #7c3aed 0%, #e11d74 100%);
    --degrade-2: linear-gradient(120deg, #5b21b6 0%, #7c3aed 45%, #e11d74 100%);
    --entete-h: 62px;
    --nav-h: 62px;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html, body {
    margin: 0;
    padding: 0;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: var(--fond);
    color: var(--ink);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px));
}

h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: 2rem; }
h2 { font-size: 1.55rem; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
a { color: var(--marque-fonce); text-decoration: none; }
a:hover { color: var(--rose); }
img { max-width: 100%; display: block; }
svg { flex: none; }

.conteneur { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 18px; }
.conteneur-etroit { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 18px; }

/* ---------------------------------------------------------------
   Écran d'ouverture (application installée uniquement)
   --------------------------------------------------------------- */
#app-splash {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    pointer-events: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    background: #120d1e;
}
#app-splash.show { display: flex; animation: splashOut .4s ease 1.2s forwards; }
#app-splash img { width: 96px; height: 96px; border-radius: 22px; }
#app-splash span { color: #fff; font-weight: 700; font-size: 1.1rem; letter-spacing: .02em; }
@keyframes splashOut { to { opacity: 0; visibility: hidden; } }

/* ---------------------------------------------------------------
   En-tête
   --------------------------------------------------------------- */
.entete {
    position: sticky;
    top: 0;
    z-index: 900;
    padding-top: env(safe-area-inset-top, 0px);
    background: rgba(18, 13, 30, .82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.entete-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: var(--entete-h);
}
.marque { display: flex; align-items: center; gap: 10px; color: #fff; }
.marque:hover { color: #fff; }
.marque-logo {
    width: 38px; height: 38px; border-radius: 11px;
    background: var(--degrade);
    display: flex; align-items: center; justify-content: center;
    color: #fff; flex: none;
}
.marque-texte { display: flex; flex-direction: column; line-height: 1.1; }
.marque-nom { font-weight: 800; font-size: 1rem; letter-spacing: .01em; }
.marque-slogan { font-size: .7rem; color: #c9bff0; text-transform: uppercase; letter-spacing: .14em; }
.entete-nav { display: none; align-items: center; gap: 4px; }
.entete-nav a {
    color: #ded7f5; padding: 9px 13px; border-radius: 999px;
    font-size: .93rem; font-weight: 500; transition: background .18s, color .18s;
}
.entete-nav a:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.entete-nav a.actif { background: var(--degrade); color: #fff; }
.entete-action { display: flex; align-items: center; gap: 8px; }
.entete-tel { display: none; color: #ded7f5; font-size: .9rem; align-items: center; gap: 6px; }

/* ---------------------------------------------------------------
   Boutons
   --------------------------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 20px; border-radius: 999px; border: 1px solid transparent;
    font-family: inherit; font-size: .96rem; font-weight: 600; cursor: pointer;
    transition: transform .12s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
    text-align: center; line-height: 1.2; background: transparent; color: var(--ink);
    -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.97); }
.btn-primaire { background: var(--degrade); color: #fff; box-shadow: 0 8px 22px rgba(124, 58, 237, .28); }
.btn-primaire:hover { color: #fff; box-shadow: 0 10px 26px rgba(225, 29, 116, .32); }
.btn-blanc { background: #fff; color: var(--ink); border-color: var(--bord); }
.btn-blanc:hover { color: var(--marque-fonce); border-color: var(--marque); }
.btn-contour { border-color: currentColor; color: var(--marque-fonce); }
.btn-contour:hover { background: var(--marque-clair); color: var(--marque-fonce); }
.btn-clair { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .28); }
.btn-clair:hover { background: rgba(255, 255, 255, .24); color: #fff; }
.btn-discret { background: var(--fond-2); color: var(--ink); }
.btn-danger { background: #fee2e2; color: #991b1b; }
.btn-petit { padding: 8px 14px; font-size: .86rem; }
.btn-bloc { width: 100%; }
.btn-icone { padding: 9px; border-radius: 12px; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* ---------------------------------------------------------------
   Sections & titres
   --------------------------------------------------------------- */
.section { padding: 42px 0; }
.section-sombre { background: var(--nuit); color: #fff; }
.section-douce { background: var(--fond-2); }
.section-entete { margin-bottom: 22px; }
.oeil {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
    color: var(--marque); margin-bottom: 10px;
}
.section-sombre .oeil { color: #c9b1ff; }
.titre-section { margin-bottom: 8px; }
.sous-titre { color: var(--ink-2); max-width: 720px; }
.section-sombre .sous-titre { color: #c6bfe0; }
.centre { text-align: center; }
.centre .sous-titre { margin-left: auto; margin-right: auto; }
.degrade-texte {
    background: var(--degrade); -webkit-background-clip: text; background-clip: text;
    color: transparent;
}

/* ---------------------------------------------------------------
   Hero
   --------------------------------------------------------------- */
.hero { position: relative; color: #fff; overflow: hidden; background: var(--nuit); }
.hero-fond { position: absolute; inset: 0; }
.hero-fond img { width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.hero-voile {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(18, 13, 30, .72) 0%, rgba(18, 13, 30, .86) 55%, rgba(18, 13, 30, .96) 100%);
}
.hero-contenu { position: relative; padding: 56px 0 52px; }
.hero h1 { font-size: 2.05rem; max-width: 780px; }
.hero .sous-titre { color: #d7d0ee; font-size: 1.02rem; max-width: 620px; }
.hero-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }
.hero-pastilles { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.hero-pastille {
    display: inline-flex; align-items: center; gap: 7px;
    background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18);
    color: #f0ecff; padding: 7px 13px; border-radius: 999px; font-size: .82rem; font-weight: 500;
}
.hero-pastille svg { color: #d8b4fe; }

/* ---------------------------------------------------------------
   Chiffres
   --------------------------------------------------------------- */
.chiffres {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
    padding: 18px 0 0;
}
.chiffre {
    background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12);
    border-radius: var(--r); padding: 14px; text-align: center;
}
.chiffre-valeur { font-size: 1.5rem; font-weight: 800; background: linear-gradient(120deg, #fff, #d8b4fe); -webkit-background-clip: text; background-clip: text; color: transparent; }
.chiffre-label { font-size: .78rem; color: #c6bfe0; line-height: 1.3; }

/* ---------------------------------------------------------------
   Cartes
   --------------------------------------------------------------- */
.carte {
    background: var(--carte); border: 1px solid var(--bord); border-radius: var(--r);
    box-shadow: var(--ombre); padding: 18px;
    transition: transform .16s ease, box-shadow .2s ease, border-color .2s ease;
}
.carte-cliquable:active { transform: scale(.985); }
.carte-titre { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.carte-texte { color: var(--ink-2); font-size: .95rem; margin-bottom: 12px; }
.grille { display: grid; grid-template-columns: 1fr; gap: 14px; }
.grille-2, .grille-3, .grille-4 { display: grid; grid-template-columns: 1fr; gap: 14px; }

.carte-media { border-radius: var(--r); overflow: hidden; }
.carte-media img { width: 100%; height: 200px; object-fit: cover; }

.prestation { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.prestation figure { margin: 0; height: 190px; overflow: hidden; background: var(--fond-2); }
.prestation figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.prestation:hover figure img { transform: scale(1.04); }
.prestation-corps { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.prestation-accroche { color: var(--ink-2); font-size: .93rem; margin-bottom: 12px; }
.prestation-pied {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: 10px; margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--bord);
}
.prestation-prix { font-weight: 700; color: var(--marque-fonce); font-size: .95rem; }
.prestation-duree { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; color: var(--ink-3); }

.evenement { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.evenement figure { margin: 0; height: 180px; overflow: hidden; background: var(--fond-2); }
.evenement figure img { width: 100%; height: 100%; object-fit: cover; }
.evenement-corps { padding: 15px 18px 18px; }
.evenement-meta { display: flex; flex-wrap: wrap; gap: 10px; font-size: .83rem; color: var(--ink-3); margin-bottom: 8px; }
.evenement-meta span { display: inline-flex; align-items: center; gap: 5px; }

.avis { display: flex; flex-direction: column; }
.avis-tete { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.avis-nom { font-weight: 700; }
.avis-ville { font-size: .82rem; color: var(--ink-3); }
.avis-texte { font-style: italic; color: var(--ink-2); margin: 0; }
.avis-prestation { font-size: .8rem; color: var(--marque); font-weight: 600; margin-top: 10px; }

.badge {
    display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px;
    border-radius: 999px; font-size: .76rem; font-weight: 700; letter-spacing: .01em;
    background: var(--marque-clair); color: var(--marque-fonce);
}
.badge-accent { background: #fff4e0; color: #92400e; }
.badge-ok { background: #dcfce7; color: #166534; }
.badge-warn { background: #fef3c7; color: #92400e; }
.badge-err { background: #fee2e2; color: #991b1b; }
.badge-neutre { background: #eceaf4; color: var(--ink-2); }

.etoiles { display: inline-flex; gap: 2px; color: var(--accent); }
.etoiles .off { color: #ddd6fe; }

.liste-points { list-style: none; margin: 0; padding: 0; }
.liste-points li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; color: var(--ink-2); }
.liste-points svg { color: var(--marque); margin-top: 3px; }

/* ---------------------------------------------------------------
   Galerie
   --------------------------------------------------------------- */
.galerie { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.galerie-item {
    position: relative; border-radius: var(--r); overflow: hidden; background: var(--fond-2);
    aspect-ratio: 4 / 3; cursor: pointer; border: none; padding: 0;
    transition: transform .14s ease;
}
.galerie-item:active { transform: scale(.97); }
.galerie-item img { width: 100%; height: 100%; object-fit: cover; }
.galerie-item figcaption {
    position: absolute; inset: auto 0 0 0; padding: 22px 12px 10px;
    background: linear-gradient(180deg, transparent, rgba(18, 13, 30, .85));
    color: #fff; font-size: .82rem; font-weight: 600; text-align: left;
}

.filtres { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 12px; scrollbar-width: none; }
.filtres::-webkit-scrollbar { display: none; }
.filtre {
    flex: none; padding: 9px 15px; border-radius: 999px; border: 1px solid var(--bord);
    background: #fff; color: var(--ink-2); font-size: .85rem; font-weight: 600;
    font-family: inherit; cursor: pointer; transition: transform .12s ease, background .16s, color .16s;
}
.filtre:active { transform: scale(.96); }
.filtre.actif { background: var(--degrade); color: #fff; border-color: transparent; }

/* ---------------------------------------------------------------
   Formulaires
   --------------------------------------------------------------- */
.formulaire { display: grid; grid-template-columns: 1fr; gap: 14px; }
.champ { display: flex; flex-direction: column; gap: 6px; }
.champ label { font-size: .86rem; font-weight: 600; color: var(--ink); }
.champ .aide { font-size: .78rem; color: var(--ink-3); }
.champ input, .champ select, .champ textarea {
    width: 100%; padding: 12px 14px; border-radius: var(--r-sm);
    border: 1px solid var(--bord); background: #fff; color: var(--ink);
    font-family: inherit; font-size: .96rem; transition: border-color .16s, box-shadow .16s;
}
.champ textarea { min-height: 130px; resize: vertical; }
.champ input:focus, .champ select:focus, .champ textarea:focus {
    outline: none; border-color: var(--marque); box-shadow: 0 0 0 3px rgba(124, 58, 237, .14);
}
.champ.erreur input, .champ.erreur select, .champ.erreur textarea { border-color: var(--err); }
.champ .message-erreur { font-size: .78rem; color: var(--err); display: none; }
.champ.erreur .message-erreur { display: block; }
.champ-plein { grid-column: 1 / -1; }
.requis { color: var(--rose); }
.pot-de-miel { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ---------------------------------------------------------------
   Contact / coordonnées
   --------------------------------------------------------------- */
.coordonnees { display: grid; grid-template-columns: 1fr; gap: 12px; }
.coordonnee { display: flex; gap: 12px; align-items: flex-start; }
.coordonnee-icone {
    width: 40px; height: 40px; border-radius: 12px; flex: none;
    background: var(--marque-clair); color: var(--marque-fonce);
    display: flex; align-items: center; justify-content: center;
}
.coordonnee-label { font-size: .78rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: .1em; }
.coordonnee-valeur { font-weight: 600; }

/* ---------------------------------------------------------------
   Pied de page
   --------------------------------------------------------------- */
.pied { background: var(--nuit); color: #b9b2d6; padding: 38px 0 30px; }
.pied h4 { color: #fff; font-size: .95rem; margin-bottom: 12px; }
.pied a { color: #b9b2d6; }
.pied a:hover { color: #fff; }
.pied-grille { display: grid; grid-template-columns: 1fr; gap: 24px; }
.pied-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: .92rem; }
.pied-reseaux { display: flex; gap: 10px; margin-top: 6px; }
.pied-reseaux a {
    width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, .08); color: #fff; transition: transform .12s ease, background .18s;
}
.pied-reseaux a:hover { background: var(--degrade); color: #fff; }
.pied-reseaux a:active { transform: scale(.94); }
.pied-bas {
    margin-top: 26px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .1);
    display: flex; flex-direction: column; gap: 8px; font-size: .82rem;
}
.pied-install {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
    margin-top: 26px; padding: 16px; border-radius: var(--r);
    background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12);
}
.pied-install h4 { color: #fff; }

/* ---------------------------------------------------------------
   Navigation basse (façon application)
   --------------------------------------------------------------- */
.nav-bas {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 950;
    display: flex; align-items: stretch;
    background: rgba(255, 255, 255, .86);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--bord);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    box-shadow: 0 -6px 24px rgba(20, 16, 31, .07);
}
.nav-bas a {
    flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 3px; padding: 9px 2px 8px; color: var(--ink-3); font-size: .68rem; font-weight: 600;
    transition: transform .12s ease, color .16s ease;
}
.nav-bas a:active { transform: scale(.94); }
.nav-bas a .nav-icone {
    position: relative;
    width: 40px; height: 28px; border-radius: 999px;
    display: flex; align-items: center; justify-content: center; transition: background .18s, color .18s;
}
.nav-bas a.actif { color: var(--marque-fonce); }
.nav-bas a.actif .nav-icone { background: var(--marque-clair); }
.nav-bas .nav-icone .pastille-nb {
    position: absolute; top: -3px; right: -2px; min-width: 17px; height: 17px; border-radius: 999px;
    background: var(--rose); color: #fff; font-size: .62rem; display: flex; align-items: center;
    justify-content: center; padding: 0 4px; font-weight: 700;
}
.nav-bas .nav-icone .pastille-nb:empty { display: none; }

/* ---------------------------------------------------------------
   Notifications
   --------------------------------------------------------------- */
.zone-toasts {
    position: fixed; left: 0; right: 0; bottom: calc(var(--nav-h) + 14px + env(safe-area-inset-bottom, 0px));
    z-index: 9000; display: flex; flex-direction: column; align-items: center; gap: 8px;
    padding: 0 16px; pointer-events: none;
}
.toast {
    max-width: 480px; width: 100%; background: var(--nuit); color: #fff;
    border-radius: 14px; padding: 13px 16px; font-size: .9rem;
    box-shadow: var(--ombre-forte); display: flex; align-items: flex-start; gap: 10px;
    animation: toastIn .25s ease;
}
.toast.ok { background: #065f46; }
.toast.err { background: #991b1b; }
.toast svg { margin-top: 2px; flex: none; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } }

/* ---------------------------------------------------------------
   Fenêtres modales
   --------------------------------------------------------------- */
.modale {
    position: fixed; inset: 0; z-index: 9600; display: flex; align-items: flex-end; justify-content: center;
    background: rgba(18, 13, 30, .55); padding: 0;
    -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
}
.modale-boite {
    background: #fff; width: 100%; max-width: 640px; border-radius: 22px 22px 0 0;
    padding: 20px 18px calc(20px + env(safe-area-inset-bottom, 0px));
    max-height: 92vh; overflow-y: auto; animation: modaleIn .24s ease;
}
@keyframes modaleIn { from { transform: translateY(18px); opacity: .6; } }
.modale-tete { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.modale-tete h3 { margin: 0; }
.modale-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.visuel-modale { width: 100%; border-radius: var(--r); }

/* ---------------------------------------------------------------
   Bandeau d'installation
   --------------------------------------------------------------- */
.bandeau-install {
    display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
    background: var(--carte); border: 1px solid var(--bord); border-radius: var(--r);
    padding: 14px 16px; box-shadow: var(--ombre);
}
.bandeau-install p { margin: 0; font-size: .88rem; color: var(--ink-2); }
.bandeau-install .titre { font-weight: 700; color: var(--ink); font-size: .95rem; }
.logos-install { display: inline-flex; gap: 8px; color: var(--ink-2); }

/* ---------------------------------------------------------------
   Animations d'apparition
   --------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------------------------------------------------------------
   Étapes de déroulé (accueil)
   --------------------------------------------------------------- */
.etapes { display: grid; grid-template-columns: 1fr; gap: 14px; }
.etape { display: flex; gap: 14px; align-items: flex-start; }
.etape-num {
    width: 38px; height: 38px; border-radius: 50%; flex: none; font-weight: 800;
    background: var(--degrade); color: #fff; display: flex; align-items: center; justify-content: center;
}

/* ---------------------------------------------------------------
   Tablettes et ordinateurs
   --------------------------------------------------------------- */
@media (min-width: 700px) {
    .hero-contenu { padding: 76px 0 68px; }
    .hero h1 { font-size: 2.7rem; }
    .hero-actions { flex-direction: row; flex-wrap: wrap; }
    .chiffres { grid-template-columns: repeat(4, 1fr); }
    .grille-2 { grid-template-columns: repeat(2, 1fr); }
    .grille-3 { grid-template-columns: repeat(2, 1fr); }
    .grille-4 { grid-template-columns: repeat(2, 1fr); }
    .formulaire { grid-template-columns: repeat(2, 1fr); }
    .coordonnees { grid-template-columns: repeat(2, 1fr); }
    .galerie { grid-template-columns: repeat(3, 1fr); }
    .pied-grille { grid-template-columns: 1.4fr 1fr 1fr; }
    .pied-bas { flex-direction: row; justify-content: space-between; align-items: center; }
    .modale { align-items: center; padding: 24px; }
    .modale-boite { border-radius: 22px; }
    .modale-actions { flex-direction: row; justify-content: flex-end; }
    .entete-nav { display: flex; }
    .entete-tel { display: inline-flex; }
    .bandeau-install { flex-wrap: nowrap; }
    .section { padding: 60px 0; }
    .etapes { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1000px) {
    .grille-3 { grid-template-columns: repeat(3, 1fr); }
    .grille-4 { grid-template-columns: repeat(4, 1fr); }
    body:not(.admin) .nav-bas { display: none; }
    body:not(.admin) { padding-bottom: 0; }
    .zone-toasts { bottom: 20px; }
}

/* L'administration garde sa barre de navigation sur tous les écrans. */
body.admin { padding-bottom: calc(var(--nav-h) + 16px + env(safe-area-inset-bottom, 0px)); }
.admin .nav-bas { display: flex; }
.admin .zone-toasts { bottom: calc(var(--nav-h) + 14px + env(safe-area-inset-bottom, 0px)); }

@media (max-width: 380px) {
    .galerie { grid-template-columns: 1fr; }
    .chiffres { grid-template-columns: 1fr 1fr; }
    h1 { font-size: 1.8rem; }
}

/* Impression */
@media print {
    .nav-bas, .entete, .zone-toasts { display: none !important; }
    body { padding: 0; }
}
