/* =====================================================
   MOBILE / TABLETTE
   chargé avec media="(max-width: 800px)"
===================================================== */

:root{
    --desktop-card-left:0px;
    --desktop-card-top:0px;
}

/* ===============================
   BASE
================================ */

body{
    overflow-x:hidden;
}

.container{
    width:min(100% - 24px, 1180px);
}

/* ===============================
   HEADER + HAMBURGER
================================ */

.site-header{
    height:72px;
    padding:0 14px;
    z-index:10000;
}

.brand{
    gap:10px;
    font-size:16px;
}

.brand img{
    width:40px;
    height:40px;
}

.mobile-menu-btn{
    width:48px;
    height:48px;
    border:1px solid rgba(255,255,255,.18);
    border-radius:14px;
    background:rgba(0,0,0,.30);
    display:flex;
    align-items:center;
    justify-content:center;
    flex-direction:column;
    gap:6px;
    cursor:pointer;
    position:relative;
    z-index:10001;
}

.mobile-menu-btn span{
    width:23px;
    height:2px;
    border-radius:99px;
    background:#ffd36a;
    display:block;
    transition:.25s ease;
}

.mobile-menu-btn.active span:nth-child(1){
    transform:translateY(8px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2){
    opacity:0;
}

.mobile-menu-btn.active span:nth-child(3){
    transform:translateY(-8px) rotate(-45deg);
}

.site-nav{
    position:fixed;
    top:84px;
    left:12px;
    right:12px;
    padding:18px;
    border-radius:22px;
    background:rgba(4,12,12,.98);
    border:1px solid rgba(255,255,255,.14);
    box-shadow:0 25px 70px rgba(0,0,0,.75);
    backdrop-filter:blur(18px);
    -webkit-backdrop-filter:blur(18px);

    display:grid !important;
    grid-template-columns:1fr;
    gap:12px;

    opacity:0;
    visibility:hidden;
    transform:translateY(-12px);
    pointer-events:none;
    transition:.25s ease;
    z-index:9999;
}

.site-nav.open{
    opacity:1;
    visibility:visible;
    transform:translateY(0);
    pointer-events:auto;
}

.site-nav a{
    min-height:48px;
    display:flex !important;
    align-items:center;
    justify-content:center;
    border-radius:14px;
    background:rgba(255,255,255,.05);
    color:#fff;
    font-weight:900;
    text-align:center;
}

.site-nav a:hover,
.site-nav a:focus{
    color:#ffd36a;
}

.site-nav .btn-nav{
    background:linear-gradient(135deg, var(--gold2), var(--gold));
    color:#080808 !important;
}

/* ===============================
   ACCUEIL / HERO
================================ */

.hero{
    min-height:auto;
    padding:32px 12px 24px;
    justify-content:center;
}

.hero .container{
    width:100%;
    justify-content:center;
}

.hero-card{
    width:100%;
    margin-left:0;
    padding:24px 22px;
    border-radius:22px;
    background:rgba(4,12,12,.58);
    backdrop-filter:blur(10px);
    -webkit-backdrop-filter:blur(10px);
}

.hero-card h1{
    font-size:38px;
    line-height:.95;
}

.hero-card p{
    font-size:16px;
    line-height:1.65;
}

.tag{
    font-size:11px;
    letter-spacing:.12em;
    padding:9px 13px;
}

.actions,
.actions-stack{
    display:grid;
    grid-template-columns:1fr;
    gap:14px;
}

.btn-primary,
.btn-outline,
.hero-action-btn{
    width:100%;
}

/* ===============================
   GALERIE
================================ */

.section{
    padding:34px 0 28px;
    margin-top:0;
}

.section-title{
    margin-bottom:24px;
}

.section-title h2{
    font-size:34px;
}

.cards-grid{
    grid-template-columns:1fr;
    gap:18px;
}

.competition-card{
    min-height:380px;
}

/* ===============================
   LOGIN
================================ */

.auth-shell{
    min-height:auto;
    padding:32px 12px 24px;
    justify-content:center;
}

.auth-shell .container{
    width:100%;
    justify-content:center;
}

.auth-card{
    width:100%;
    margin-left:0;
    padding:24px 22px;
    border-radius:22px;
    background:rgba(4,12,12,.58);
    backdrop-filter:blur(10px);
    -webkit-backdrop-filter:blur(10px);
}

.auth-card h1{
    font-size:38px;
    line-height:.95;
}

.auth-intro{
    font-size:16px;
}

.auth-actions{
    grid-template-columns:1fr;
}

.auth-create{
    padding:0 26px;
}

.auth-alert{
    font-size:14px;
    padding:14px 16px;
}
/* FORCE LOGIN INPUT SOMBRE MÊME APRÈS ERREUR / AUTOFILL */

.auth-form .auth-field input,
.auth-form .auth-field input:hover,
.auth-form .auth-field input:focus,
.auth-form .auth-field input:active,
.auth-form .auth-field input:-webkit-autofill,
.auth-form .auth-field input:-webkit-autofill:hover,
.auth-form .auth-field input:-webkit-autofill:focus,
.auth-form .auth-field input:-webkit-autofill:active{
    background:rgba(4,12,12,.72) !important;
    color:#ffffff !important;
    -webkit-text-fill-color:#ffffff !important;
    caret-color:#ffffff !important;
    border:1px solid rgba(255,255,255,.14) !important;
    box-shadow:0 0 0 1000px rgba(4,12,12,.92) inset !important;
}

.auth-form .auth-field input::placeholder{
    color:rgba(255,255,255,.45) !important;
}

.password-field input{
    padding-right:58px !important;
}

.password-toggle{
    color:#ffd36a !important;
}
/* ===============================
   SERVICES
================================ */

.services-hero{
    min-height:auto;
    padding:32px 12px 24px;
    justify-content:center;
}

.service-main-card{
    width:100%;
    margin-left:0;
    padding:24px 22px;
    border-radius:22px;
}

.service-main-card h1,
.service-main-card h2{
    font-size:38px;
}

.service-main-card p{
    font-size:16px;
}

.services-section{
    padding:22px 0 34px;
}

.services-grid{
    grid-template-columns:1fr;
    gap:18px;
}

.service-card{
    padding:24px 22px;
    border-radius:22px;
}

.service-card h2{
    font-size:26px;
}

/* ===============================
   MINI TARIFS
================================ */

.mini-tarifs{
    padding:12px 0 46px;
}

.mini-tarifs-card{
    padding:24px 22px;
    border-radius:22px;
}

.mini-tarifs-card h2{
    font-size:30px;
}

.mini-tarifs-grid{
    grid-template-columns:1fr;
    gap:12px;
}

.mini-tarifs-grid div{
    min-height:86px;
}

/* ===============================
   PAGES TEXTE MOBILE
================================ */

.page-content,
.legal-page,
.cgv-page,
.confidentialite-page{
    width:100%;
    padding:32px 14px 32px;
    display:flex;
    align-items:flex-start;
}

.page-card,
.legal-card{
    width:100%;
    margin:0;
    padding:24px 20px;
    border-radius:22px;
    background:rgba(4,12,12,.62);
    border:1px solid rgba(255,255,255,.14);
    backdrop-filter:blur(12px);
    -webkit-backdrop-filter:blur(12px);
}

.page-card h1,
.legal-card h1{
    margin:0 0 20px;
    color:var(--gold) !important;
    font-size:34px;
    line-height:1;
    letter-spacing:-.05em;
}

.page-card h2,
.page-card h3,
.legal-card h2,
.legal-card h3{
    margin:26px 0 12px;
    color:var(--gold) !important;
    font-size:24px;
    line-height:1.1;
}

.page-card p,
.page-card li,
.legal-card p,
.legal-card li{
    color:#e8e8e8;
    font-size:15px;
    line-height:1.55;
}

.page-card ul,
.legal-card ul{
    padding-left:20px;
}

.page-card table,
.legal-card table{
    width:100%;
    display:block;
    overflow-x:auto;
}

.page-card td,
.page-card th,
.legal-card td,
.legal-card th{
    display:block;
    width:100%;
    padding:6px 0;
}

.back-link,
.back-legal{
    display:none !important;
}
/* ===============================
   MAINTENANCE
================================ */
.maintenance-shell{
    min-height:auto;
    padding:32px 12px 40px;
    justify-content:center;
}

.maintenance-card{
    width:100%;
    margin-left:0;
    padding:24px 22px;
    border-radius:22px;
}

.maintenance-card h1{
    font-size:38px;
}
/* ===============================
   SCAN QRCODE
================================ */
.scan-shell{
    min-height:auto;
    padding:32px 12px 40px;
    justify-content:center;
}

.scan-card{
    width:100%;
    margin-left:0;
    padding:24px 22px;
    border-radius:22px;
}

.scan-card h1{
    font-size:38px;
}

#reader{
    min-height:300px;
}

/* ===============================
   REGISTER MOBILE
================================ */

.register-card{
    width:100%;
}

.register-row,
.step-actions{
    grid-template-columns:1fr;
}

.register-step h2{
    font-size:26px;
}

.plan-card{
    min-height:86px;
}
/* ===============================
   FOOTER MOBILE
================================ */

.footer-inner{
    display:flex;
    flex-direction:column;
    text-align:center;
    gap:8px;
}

.footer-meta,
.footer-links{
    justify-content:center;
    flex-wrap:wrap;
}
