/* ── Polices auto-hébergées (RGPD : aucune requête vers Google) ──────────────
   Fichiers dans public/fonts/ (woff2 prioritaire, woff en fallback). */

/* Open Sans */
@font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 300; /* Light */
    font-display: swap;
    src: url('../fonts/OpenSans-Light.woff2') format('woff2'),
         url('../fonts/OpenSans-Light.woff') format('woff');
}
@font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 400; /* Regular */
    font-display: swap;
    src: url('../fonts/OpenSans-Regular.woff2') format('woff2'),
         url('../fonts/OpenSans-Regular.woff') format('woff');
}
@font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 500; /* Medium */
    font-display: swap;
    src: url('../fonts/OpenSans-Medium.woff2') format('woff2'),
         url('../fonts/OpenSans-Medium.woff') format('woff');
}
@font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 600; /* Semibold */
    font-display: swap;
    src: url('../fonts/OpenSans-SemiBold.woff2') format('woff2'),
         url('../fonts/OpenSans-SemiBold.woff') format('woff');
}
@font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 700; /* Bold */
    font-display: swap;
    src: url('../fonts/OpenSans-Bold.woff2') format('woff2'),
         url('../fonts/OpenSans-Bold.woff') format('woff');
}

/* Montserrat */
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 100; /* Thin */
    font-display: swap;
    src: url('../fonts/Montserrat-Thin.woff2') format('woff2'),
         url('../fonts/Montserrat-Thin.woff') format('woff');
}
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 300; /* Light */
    font-display: swap;
    src: url('../fonts/Montserrat-Light.woff2') format('woff2'),
         url('../fonts/Montserrat-Light.woff') format('woff');
}
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 400; /* Regular */
    font-display: swap;
    src: url('../fonts/Montserrat-Regular.woff2') format('woff2'),
         url('../fonts/Montserrat-Regular.woff') format('woff');
}
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 600; /* Semibold */
    font-display: swap;
    src: url('../fonts/Montserrat-SemiBold.woff2') format('woff2'),
         url('../fonts/Montserrat-SemiBold.woff') format('woff');
}
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 700; /* Bold */
    font-display: swap;
    src: url('../fonts/Montserrat-Bold.woff2') format('woff2'),
         url('../fonts/Montserrat-Bold.woff') format('woff');
}

:root {
    --lor-gold:       #C2A24B;
    --lor-gold-light: #e8c46a;
    --lor-dark:       #000000;
    --lor-card:       #1a1a1a;
    --lor-border:     #2e2e2e;
    --lor-second:  #746744;
    --lor-bg:       #0E0E0E;



    /* Familles de polices — fallback système si le .woff2 n'est pas encore présent */
    --font-body:    'Open Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-heading: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html{
    scroll-behavior: smooth;
    overflow-x: hidden;
}
body {
    background: var(--lor-bg);
    color: #f0f0f0;
    min-height: 100vh;
    font-family: var(--font-body);
    font-weight: 400;
}

a{
    text-decoration: underline;
    transition: all 250ms;
}



.container{
    max-width: 1400px;
}

footer{
    border-top: 1px solid var(--lor-gold);
    font-size:.8rem;
    color:#888;
}

footer .row{
    align-items: center;
}

footer a:hover{
    color: var(--lor-gold)!important;
}

footer ul{
    list-style: none;
    padding: 0;
    margin: 0;
}

footer ul.social-media{
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 0.5rem;
}


h2{
    font-size: 1.8rem;
    font-family: var(--font-heading);
    color: #fff;
    font-weight: 400;
    text-transform: uppercase;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--lor-gold);
}

h3{
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--lor-gold);
    line-height: 1.4;
}

ul{
    margin-top: 20px;
    margin-bottom: 40px;
}

li{
    margin-bottom: 8px;
}

li::marker {
    color: var(--lor-gold);
    font-size: 1.2rem;
}

.btn-primary{
    background-color: var(--lor-gold);
    border: none;
    color: #fff;
    text-transform: uppercase;
    border-radius: 0;
    padding: 0.75rem 2.5rem;
    font-weight: 700;
    letter-spacing: .4px;

}

.btn-primary:hover, .btn-primary:active, :not(.btn-check)+.btn:active {
    background-color: var(--lor-gold-light);
    color: #000;
}


.btn-secondary{
    background-color: var(--lor-gold);
    border: none;
    color: #fff;
    font-size: 0.8rem;
    text-transform: uppercase;
    border-radius: 0;
    padding: 0.75rem 2.5rem;
    font-weight: 700;
    letter-spacing: .4px;

    display: block;
}

.btn-secondary:hover, .btn-secondary:active, :not(.btn-check)+.btn:active {
    background-color: var(--lor-gold-light);
    color: #000;
}


/* Animation d'apparition pour les figures dans le header */

/* Djibril : apparition + léger glissement de gauche à droite */
@keyframes figure-in-left {
    from { opacity: 0; transform: translateX(-40px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* Darko : apparition + léger glissement de droite à gauche */
@keyframes figure-in-right {
    from { opacity: 0; transform: translateX(40px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* Respecte la préférence système « réduire les animations » */
@media (prefers-reduced-motion: reduce) {
    .header-figure {
        animation: none;
        opacity: 1;
    }
}


header{
    background-image: url('../img/landing-header-bg.png');
    background-size:contain;
    background-position: top center;
    background-repeat: no-repeat;
    width: 100%;

    position: relative;
}

.header-logo{
    width: 140px;
    display: block;
    margin: auto;
}

.header-accroche{
    width: 100%;
    display: block;
    max-width: 350px;
    margin: 180px auto 0;
    z-index: 10;
}

.header-btn{
    display: block;
    margin: 20px 40px;
}



.header-figure{
    position: absolute;
    top: 100px;
    display: block;
    width: 220px;
    /* état initial avant animation */
    animation-duration: 1s;
    animation-timing-function: cubic-bezier(.16, 1, .3, 1);
    animation-fill-mode: forwards;
    animation-delay: .3s;
    z-index: 5;
}

.header-figure.header-djibril{
    left: calc(50% - 200px);
    animation-name: figure-in-left;
}

.header-figure.header-darko{
    right: calc(50% - 200px);
    animation-name: figure-in-right;
}


.header-container{
    z-index: 10;
    position: relative;
    height: 100%;
}

 .header-text{
    max-width: 90%;
    margin: 20px auto 0;
    line-height: 1.4;
    text-align: center;
    font-size: 15px;
}

/* Masqué hors étape 1 (comme le bouton « Je participe ») */
.no-lp .header-text {
    display: none;
}

/* Contenu landing masqué aux étapes 2, 3 et 4 */
.no-lp .content-lp {
    display: none;
}



.wrapper {
    max-width: 600px;
    margin:  auto;
    padding: 2rem 1rem 4rem;
    position: relative;
    z-index: 20;
}

/*1100px */

@media (min-width: 850px){

    .btn-secondary{
        display: inline-block;
    }

    header{
        background-image: url('../img/landing-header-bg.png');
        background-size: cover;
        background-position: center;
        width: 100%;

        position: relative;


        height: 700px;
    }

    .header-container{
        background-color: #0E0E0E;
        width: 420px;
        margin: auto;
        text-align: center;
        padding: 25px 25px 50px;
    }

    .no-lp .header-container{
        padding-bottom: 200px
    }

    .header-logo{
        width: 140px;
        margin-bottom: 20px;
    }


    .header-figure{
        width: 400px;
        position: absolute;
        bottom: 0;
        top: auto;
        display: block;
        z-index: 20;
        /* état initial avant animation */
        animation-duration: 1s;
        animation-timing-function: cubic-bezier(.16, 1, .3, 1);
        animation-fill-mode: forwards;
        animation-delay: .3s;
    }

    .header-figure.header-djibril{
        left: calc(50% - 420px - 100px + 80px);
        animation-name: figure-in-left;
    }

    .header-figure.header-darko{
        right: calc(50% - 420px - 100px  + 80px);
        animation-name: figure-in-right;
    }


    .header-accroche{
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
    }


    .header-text{
        max-width: 280px;
        margin: 20px auto 0;
        line-height: 1.4;
    }



    .header-figure.header-djibril{
        left: calc(50% - 420px - 200px + 80px);
        animation-name: figure-in-left;
    }

    .header-figure.header-darko{
        right: calc(50% - 420px - 200px  + 80px);
        animation-name: figure-in-right;
    }


    .no-lp .wrapper{
        margin-top: -370px;
        position: relative;
        z-index: 25;
    }



}


@media (min-width: 1460px){

    .row{
        --bs-gutter-x: 3rem;
    }

    header{
        height: 900px;
    }

    .link-legal{
        display: flex;

    }


    .header-container{
        width: 520px;
        padding: 25px 25px 50px;
    }

    .header-logo{
        width: 180px;
        margin-bottom: 20px;
    }

    .header-text{
        max-width: 400px;
        margin: 20px auto 0;
    }


    .header-figure{
        width: 516px;
    }

    .header-figure.header-djibril{
        left: calc(50% - 520px - 258px + 80px);
        animation-name: figure-in-left;
    }

    .header-figure.header-darko{
        right: calc(50% - 520px - 258px  + 80px);
        animation-name: figure-in-right;
    }

    .wrapper{
        margin-top: -270px;
    }

    .no-lp .wrapper{
        margin-top: -480px;
        position: relative;
        z-index: 25;
    }


}


/* Logo */
.logo-area { text-align: center; margin-bottom: 2rem; }
.logo-area .brand {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--lor-gold);
    letter-spacing: 3px;
    text-transform: uppercase;
}
.logo-area .subtitle { color: #777; font-size: 0.85rem; margin-top: 4px; }

/* Stepper */
.stepper-wrapper {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin-bottom: 2.5rem;
}
.stepper-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}
.stepper-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    background: #252525;
    border: 2px solid #383838;
    color: #555;
    transition: all 0.35s ease;
}
.stepper-circle.active {
    background: var(--lor-gold);
    border-color: var(--lor-gold);
    color: #000;
    box-shadow: 0 0 12px rgba(201,168,76,0.4);
}
.stepper-circle.done {
    background: #1f4d1f;
    border-color: #2d7a2d;
    color: #6fcf6f;
}
.stepper-circle.done::after { content: "✓"; }
.stepper-label {
    font-size: 0.68rem;
    color: #555;
    transition: color 0.3s;
    white-space: nowrap;
}
.stepper-label.active { color: var(--lor-gold); }
.stepper-label.done   { color: #4caf50; }
.stepper-connector {
    height: 2px;
    width: 52px;
    background: #333;
    margin-top: 17px; /* aligns with circle center */
    flex-shrink: 0;
    transition: background 0.4s;
}
.stepper-connector.done { background: #2d7a2d; }

/* Form */
.lor-card {
    background: var(--lor-card);
    border: 1px solid var(--lor-border);
    border-radius: 14px;
    padding: 1.75rem;
}
.form-label { color: #ccc; font-weight: 500; font-size: 0.88rem; }
.required-star { color: var(--lor-gold); }
.form-control, .form-select {
    background: #222;
    border-color: #383838;
    color: #f0f0f0;
    border-radius: 8px;
}
.form-control:focus, .form-select:focus {
    background: #222;
    border-color: var(--lor-gold);
    color: #f0f0f0;
    box-shadow: 0 0 0 .2rem rgba(201,168,76,.2);
}
.form-control::placeholder { color: #555; }
.form-check-input { background-color: #222; border-color: #444; }
.form-check-input:checked {
    background-color: var(--lor-gold);
    border-color: var(--lor-gold);
}
.form-check-input:focus {
    box-shadow: none
}

.form-check-label { color: #bbb; font-size: 0.88rem; }

/* Button */
.btn-lor {
    background: var(--lor-gold);
    border: none;
    color: #fff;
    font-weight: 700;
    letter-spacing: .4px;
    padding: .75rem 1.5rem;
    border-radius: 0px;
    transition: background 0.2s, transform 0.1s;
    width: 100%;
    text-transform: uppercase;
}
.btn-lor:hover:not(:disabled),
.btn-lor:active:not(:disabled) {
    background: var(--lor-gold-light);
    color: #000;
    transform: translateY(-1px);
}
.btn-lor:disabled { background: #3a3a3a; color: #666; cursor: not-allowed; }

/* Errors */
.field-error {
    color: #f77;
    font-size: .82rem;
    margin-top: 5px;
}
.field-error:empty { display: none; }

/* Step title */
.step-title {
    text-align: center;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: .25rem;
    text-transform: uppercase;
    color: var(--lor-gold);
    font-family: var(--font-heading);
}
.step-subtitle {
    text-align: center;
    color: #777;
    font-size: .88rem;
    margin-bottom: 1.5rem;
}

.input-tel{
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 2px;
}

/* OTP field — 6 cases individuelles */
.otp-group {
    display: flex;
    gap: .5rem;
    justify-content: center;
}
.otp-digit {
    flex: 1 1 0;
    min-width: 0;
    max-width: 56px;
    padding: .5rem 0;
    text-align: center;
    font-size: 1.6rem;
    font-weight: 700;
    background: #222;
    border-color: var(--lor-border);
    color: #fff;
    border-radius: 8px;
    -moz-appearance: textfield;
    appearance: textfield;
}
.otp-digit:focus {
    background: #222;
    border-color: var(--lor-gold);
    color: #fff;
    box-shadow: 0 0 0 .2rem rgba(201,168,76,.2);
}
.otp-digit::-webkit-outer-spin-button,
.otp-digit::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Match cards */
.match-card {
    background: var(--lor-card);
    border: 2px solid var(--lor-border);
    border-radius: 12px;
    cursor: pointer;
    transition: border-color .2s, background .2s;
    color: #f0f0f0;
    padding: 1rem;
    margin-bottom: .75rem;
}
.match-card:hover { border-color: rgba(201,168,76,.5); }
.match-card.selected {
    border-color: var(--lor-gold);
    background-color: #1e1800;
}
.match-card {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
}
.team-flag-img {
    width: 40px;
    height: 27px;
    object-fit: cover;
    border-radius: 3px;
    vertical-align: middle;
}
/* Dans une carte match (colonne centrée) */
.text-center .team-flag-img {
    display: block;
    margin: 0 auto 4px;
}
.flag-fallback { font-size: 1.6rem; line-height: 1; }
.match-card .team-name  { font-size: .9rem; font-weight: 600; }
.match-card .vs-badge   { font-weight: 800; color: var(--lor-gold); font-size: 1.1rem; }

/* Checkbox visuel dans la carte */
.match-card-check {
    width: 26px;
    min-width: 26px;
    height: 26px;
    border-radius: 6px;
    border: 2px solid #444;
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
    transition: border-color .2s, background .2s;
}
.match-card.selected .match-card-check {
    border-color: var(--lor-gold);
    background: #2a1e00;
}

/* Match passé — affiché mais non modifiable */
.match-card.match-past {
    opacity: .45;
    cursor: default;
    pointer-events: none;
}
.match-card.match-past .match-card-check {
    border-color: #333;
    background: #111;
}
.badge-past {
    background: #2a2a2a;
    color: #666;
    font-size: .65rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: .05em;
}

/* Groupes de matchs par date */
.match-group-header {
    font-size: .78rem;
    font-weight: 700;
    color: var(--lor-gold);
    text-transform: uppercase;
    letter-spacing: .08em;
    padding: .4rem 0 .5rem;
    border-bottom: 1px solid #2e2e2e;
    margin-bottom: .6rem;
}

/* Accordéon « Matchs passés » (fermé par défaut) */
.past-accordion {
    border: 1px solid var(--lor-border);
    border-radius: 10px;
    background: var(--lor-card);
    overflow: hidden;
}
.past-accordion-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .8rem 1rem;
    background: transparent;
    border: none;
    color: #888;
    font-family: var(--font-heading);
    font-size: .78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    cursor: pointer;
    transition: color .2s, background .2s;
}
.past-accordion-header:hover {
    color: var(--lor-gold);
    background: rgba(255, 255, 255, .03);
}
.past-accordion-chevron {
    flex-shrink: 0;
    font-size: .9rem;
    line-height: 1;
    transition: transform .25s ease;
}
.past-accordion-header.open .past-accordion-chevron {
    transform: rotate(180deg);
}
.past-accordion-body {
    padding: .25rem 1rem 1rem;
    border-top: 1px solid var(--lor-border);
}
/* La dernière journée de l'accordéon ne garde pas de marge superflue */
.past-accordion-body .match-group:last-child {
    margin-bottom: 0 !important;
}

/* Confirmation */
.confirm-box {
    background: #1a1400;
    border: 1px solid var(--lor-gold);
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
}
.calltime-box {
    background: #0f1f0f;
    border: 1px solid #2d7a2d;
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    color: #7ecf7e;
}

/* DND tabs */
.nav-tabs { border-color: #333; }
.nav-tabs .nav-link { color: #888; border-color: #333 #333 transparent; border-radius: 8px 8px 0 0; }
.nav-tabs .nav-link.active {
    background: #222;
    border-color: var(--lor-gold) var(--lor-gold) #222;
    color: var(--lor-gold);
}
.tab-content {
    background: #222;
    border: 1px solid #333;
    border-top: none;
    border-radius: 0 0 10px 10px;
    padding: 1.25rem;
    font-size: .88rem;
}
.dnd-step { display: flex; align-items: flex-start; gap: .75rem; margin-bottom: .9rem; }
.dnd-num {
    width: 22px; height: 22px; border-radius: 50%;
    background: var(--lor-gold); color: #000;
    font-weight: 700; font-size: .75rem;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; margin-top: 1px;
}
.dnd-placeholder {
    background: #333;
    border-radius: 8px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    font-size: .8rem;
    margin-top: .5rem;
}

/* Link */
a.lor-link { color: var(--lor-gold); }

/* Back link */
.back-link { color: #555; font-size: .85rem; cursor: pointer; }
.back-link:hover { color: var(--lor-gold); }



/* CONSENTEMENT BANNER */
#coiOverlay h2{
    color: var(--lor-gold);

}

.coi-banner__maintext{
    font-size: 0.8rem;
}

#coiOverlay button:not(:disabled):not(.coi-banner__privacy-policy) {
    cursor: pointer;
    background-color: var(--lor-gold);
    color: #fff;
    padding: 10px 20px;
    border-radius: 0;
    text-decoration: none;
}


.modal .modal-title,
.modal p{
    color: #000;
}


.callnight{
    background-image: url('../img/callnight.png');
    background-repeat: no-repeat;
    background-size: 23px;
    background-position: 19px 49px;
}


.alert p{
    font-size: 0.8rem;
    margin-bottom: 0;
}


.alert img{
    width: 20px;
    height: 20px;
    margin-right: 5px;
}
