/* ============================================================
   ClubProposition.vip - Feuille de style principale
   Fichier global - chargé sur toutes les pages
   
   Créé par: dev team
   Dernière modif: 18/03/2026 - ajout section plateformes
   
   NOTE IMPORTANTE: ne pas modifier les variables CSS en haut
   sans en parler avec l'équipe d'abord !
   ============================================================ */

:root {
    --cp-primary: #0f2d52;
    --cp-accent: #f0a500;
    --cp-dark: #080f1c;
    --cp-light-bg: #f4f6fa;
    --cp-text-muted: #6c757d;
    /* ancienne couleur primaire: #1a3a5c - changée le 10/03 */
}

/* reset basique - TODO: migrer vers normalize.css un jour */
*, *::before, *::after {
    box-sizing: border-box;
}
        *,
        *::before,
        *::after {
            box-sizing: border-box
        }

        html,
        body {
            max-width: 100%;
            overflow-x: clip
        }
body {
    font-family: 'Segoe UI', Roboto, Arial, sans-serif;
    color: #222;
    overflow-x: hidden;
    /* fond img1 sur le body entier comme demandé */
    background-image: url('../images/img1.jpg');
    background-size: cover;
    background-attachment: fixed;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
}

/* overlay sombre sur tout le body pour lisibilité */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(8, 15, 28, 0.82);
    z-index: 0;
    pointer-events: none;
}

/* toutes les sections au dessus de l'overlay body */
section, header, footer, .wrp-main-content {
    position: relative;
    z-index: 1;
}

/* ============================================================
   BARRE D'AVERTISSEMENT 18+
   ajoutée suite demande client - 12/03/2026
   ============================================================ */
#warning-bar-18 {
    background-color: #7b1a1a;
    color: #fff;
    font-size: 12px;
    padding: 7px 0;
    text-align: center;
    position: relative;
    z-index: 100;
    letter-spacing: 0.3px;
}

#warning-bar-18 i {
    margin-right: 5px;
}

/* ============================================================
   HEADER / NAVBAR
   ============================================================ */
#main-header {
    background-color: var(--cp-primary);
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 2px 15px rgba(0,0,0,0.4);
}

#main-header .navbar-brand img {
    max-height: 48px;
    width: auto;
}

/* fix pour le toggler sur mobile - Simon 15/03 */
#main-header .navbar-toggler {
    border-color: rgba(255,255,255,0.3);
}

#main-header .nav-link {
    color: rgba(255,255,255,0.85) !important;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 14px !important;
    transition: color 0.2s;
}

#main-header .nav-link:hover,
#main-header .nav-link.active {
    color: var(--cp-accent) !important;
}

/* ============================================================
   SECTION HERO
   Le fond vient du body (img1 + overlay), 
   on ajoute juste un gradient en plus pour la hero
   ============================================================ */
#section-hero {
    padding: 90px 0 80px;
    background: linear-gradient(to bottom, rgba(8,15,28,0.55) 0%, rgba(15,45,82,0.4) 100%);
    min-height: 560px;
    display: flex;
    align-items: center;
}

#section-hero .hero-badge {
    display: inline-block;
    background: var(--cp-accent);
    color: #111;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 18px;
}

#section-hero h1 {
    font-size: clamp(26px, 4vw, 46px);
    font-weight: 800;
    color: #fff;
    line-height: 1.22;
    margin-bottom: 20px;
}

#section-hero .hero-lead {
    font-size: 17px;
    color: rgba(255,255,255,0.82);
    max-width: 600px;
    line-height: 1.6;
    margin-bottom: 35px;
}

/* stats hero - ajoutées le 20/03 */
.hero-stat-item {
    text-align: center;
    padding: 14px 10px;
}

.hero-stat-item .stat-number {
    font-size: 28px;
    font-weight: 800;
    color: var(--cp-accent);
    display: block;
}

.hero-stat-item .stat-label {
    font-size: 12px;
    color: rgba(255,255,255,0.65);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================================
   SECTION PLATEFORMES
   ============================================================ */
#section-platforms {
    background: var(--cp-light-bg);
    padding: 70px 0 80px;
}

/* carte plateforme - style principal */
.card-platform {
    border: 1px solid #e0e6ef;
    border-radius: 14px;
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    background: #fff;
    height: 100%;
}

.card-platform:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 35px rgba(15,45,82,0.15) !important;
}

.card-platform .plt-header {
    background: var(--cp-primary);
    padding: 18px 20px 14px;
    position: relative;
}

.card-platform .plt-logo {
    height: 40px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    /* filtre pour forcer logo en blanc sur fond sombre */
}

/* badge "TOP" ou "POPULAIRE" */
.badge-top-pick {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--cp-accent);
    color: #111;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 9px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* étoiles note */
.plt-rating .fa-star {
    color: var(--cp-accent);
    font-size: 13px;
}

.plt-rating .rating-score {
    font-weight: 700;
    font-size: 15px;
    color: #222;
}

/* liste features dans les cartes */
.plt-features li {
    font-size: 13px;
    color: #444;
    padding: 4px 0;
    border-bottom: 1px solid #f0f0f0;
}

.plt-features li:last-child {
    border-bottom: none;
}

.plt-features li i {
    color: #28a745;
    width: 16px;
}

/* bouton voir plateforme */
.btn-voir-plt {
    background-color: var(--cp-accent);
    color: #111;
    font-weight: 700;
    font-size: 14px;
    border: none;
    border-radius: 7px;
    padding: 10px 0;
    width: 100%;
    transition: background 0.2s, transform 0.1s;
    text-decoration: none;
    display: block;
    text-align: center;
}

.btn-voir-plt:hover {
    background-color: #d4920a;
    color: #111;
    transform: scale(1.02);
}

/* ============================================================
   SECTION COMMENT CA MARCHE
   ============================================================ */
#section-howto {
    padding: 75px 0;
    background: var(--cp-primary);
    color: white;
}

#section-howto .step-num {
    width: 54px;
    height: 54px;
    background: var(--cp-accent);
    color: #111;
    font-weight: 800;
    font-size: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
}

#section-howto .step-icon {
    font-size: 2rem;
    color: var(--cp-accent);
    margin-bottom: 12px;
}

/* ============================================================
   TABLEAU COMPARATIF
   revampé le 22/03 - ancien design avec flex retiré
   ============================================================ */
#section-comparison {
    background: #fff;
    padding: 75px 0 80px;
}

#section-comparison .table {
    font-size: 13px;
    border-radius: 10px;
    overflow: hidden;
}

#section-comparison thead tr {
    background: var(--cp-primary);
    color: #fff;
}

#section-comparison thead th {
    padding: 14px 16px;
    font-weight: 600;
    font-size: 13px;
    border: none;
}

#section-comparison thead .th-logo-img {
    height: 28px;
    width: auto;
    max-width: 80px;
    filter: brightness(0) invert(1);
    object-fit: contain;
}

#section-comparison tbody tr:nth-child(even) {
    background-color: #f8f9fc;
}

#section-comparison tbody td {
    padding: 11px 16px;
    vertical-align: middle;
    border-color: #e8eaf0;
}

#section-comparison .ico-yes {
    color: #28a745;
    font-size: 16px;
}

#section-comparison .ico-no {
    color: #dc3545;
    font-size: 16px;
}

/* ============================================================
   SECTION NOTRE METHODE / POURQUOI NOUS
   ============================================================ */
#section-whyus {
    background: var(--cp-light-bg);
    padding: 70px 0;
}

.whyus-icon-wrap {
    width: 64px;
    height: 64px;
    background: var(--cp-primary);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cp-accent);
    font-size: 1.6rem;
    margin-bottom: 14px;
}

/* ============================================================
   SECTION JEU RESPONSABLE
   ============================================================ */
#section-respgaming {
    background: #0c2240;
    color: #cdd9e5;
    padding: 65px 0;
}

#section-respgaming h2 {
    color: #fff;
}

#section-respgaming p {
    font-size: 14px;
    line-height: 1.7;
}

/* logos partenaires jeu responsable */
.resp-partner-logo {
    height: 40px;
    width: auto;
    max-width: 100px;
    object-fit: contain;
    opacity: 0.75;
    transition: opacity 0.2s, filter 0.2s;
    filter: brightness(0) invert(1);
}

.resp-partner-logo:hover {
    opacity: 1;
    filter: none;
}

.resp-partner-link {
    display: inline-block;
    padding: 8px 12px;
    background: rgba(255,255,255,0.06);
    border-radius: 8px;
    transition: background 0.2s;
    text-decoration: none;
}

.resp-partner-link:hover {
    background: rgba(255,255,255,0.14);
}

/* ============================================================
   FOOTER
   Note: le footer doit être identique sur toutes les pages
   template copié-collé pour l'instant - à refactorer en include
   ============================================================ */
#main-footer {
    background: var(--cp-dark);
    color: #8a99b0;
    font-size: 13px;
    padding-top: 55px;
    padding-bottom: 0;
}

#main-footer .footer-logo img {
    max-height: 44px;
    opacity: 0.85;
}

#main-footer h6 {
    color: #cdd5e0;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

#main-footer a {
    color: #8a99b0;
    text-decoration: none;
    transition: color 0.2s;
    font-size: 13px;
}

#main-footer a:hover {
    color: var(--cp-accent);
}

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

#main-footer ul li {
    margin-bottom: 8px;
}

#main-footer ul li a::before {
    content: '›  ';
    color: var(--cp-accent);
    font-weight: bold;
}

/* logos footer jeu responsable */
.footer-resp-logo {
    height: 32px;
    width: auto;
    max-width: 70px;
    object-fit: contain;
    opacity: 0.6;
    filter: brightness(0) invert(1);
    transition: opacity 0.2s, filter 0.2s;
}

.footer-resp-logo:hover {
    opacity: 0.95;
    filter: none;
}

/* barre inférieure footer */
.footer-bottom {
    background: rgba(0,0,0,0.35);
    margin-top: 40px;
    padding: 16px 0;
    border-top: 1px solid rgba(255,255,255,0.06);
    font-size: 12px;
    color: #5a6880;
}

.footer-bottom a {
    font-size: 12px !important;
}

/* disclaimer texte footer - petit et gris */
.footer-disclaimer {
    font-size: 11px;
    color: #4a5568;
    line-height: 1.6;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
    margin-top: 20px;
}

/* ============================================================
   AGE POPUP OVERLAY
   IMPORTANT: z-index doit être > 9000 sinon navbar passe devant
   ============================================================ */
#age-popup-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(5, 12, 25, 0.97);
    z-index: 9500;
    display: flex;
    align-items: center;
    justify-content: center;
    /* affiché par défaut, JS le cache si déjà vérifié */
}

#age-popup-overlay .age-popup-box {
    background: #fff;
    border-radius: 16px;
    max-width: 500px;
    width: 92%;
    padding: 45px 40px;
    text-align: center;
    position: relative;
}

#age-popup-overlay .age-logo {
    max-height: 50px;
    margin-bottom: 22px;
}

#age-popup-overlay .age-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--cp-primary);
    margin-bottom: 10px;
}

#age-popup-overlay .age-subtitle {
    font-size: 14px;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.5;
}

/* bouton oui majeur */
#btn-age-yes {
    background: #1a8a3c;
    color: #fff;
    border: none;
    padding: 13px 32px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
    width: 100%;
    margin-bottom: 12px;
}

#btn-age-yes:hover {
    background: #15722f;
}

/* bouton non mineur */
#btn-age-no {
    background: transparent;
    color: #888;
    border: 1px solid #ddd;
    padding: 10px 32px;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
}

#btn-age-no:hover {
    background: #f5f5f5;
    color: #555;
}

/* ============================================================
   BLOCAGE U18 - overlay permanent jusqu'au refresh
   z-index encore plus élevé que le popup âge
   ============================================================ */
#u18-block-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: #050c19;
    z-index: 10000;
    display: none; /* JS l'active si user clique "moins de 18" */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #cdd9e5;
    text-align: center;
    padding: 30px;
}

#u18-block-overlay .u18-icon {
    font-size: 5rem;
    color: #7b1a1a;
    margin-bottom: 25px;
}

#u18-block-overlay h2 {
    color: #fff;
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 15px;
}

#u18-block-overlay p {
    font-size: 15px;
    max-width: 420px;
    line-height: 1.6;
}

/* ============================================================
   BANDEAU COOKIES
   positionné en bas de page
   ============================================================ */
#cookie-banner {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: rgba(8, 18, 38, 0.97);
    color: #c8d3e0;
    z-index: 8888;
    padding: 16px 24px;
    display: none;
    border-top: 2px solid var(--cp-accent);
    backdrop-filter: blur(4px);
}

#cookie-banner p {
    font-size: 13px;
    margin: 0;
    line-height: 1.5;
}

#cookie-banner a {
    color: var(--cp-accent);
}

#btn-cookie-accept {
    background: var(--cp-accent);
    color: #111;
    border: none;
    padding: 8px 22px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}

#btn-cookie-accept:hover {
    background: #d4920a;
}

#btn-cookie-refuse {
    background: transparent;
    color: #8a99b0;
    border: 1px solid #3a4a60;
    padding: 8px 18px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

#btn-cookie-refuse:hover {
    background: rgba(255,255,255,0.07);
}

/* ============================================================
   PAGES INTERNES (privacy, terms, contacts)
   ============================================================ */

/* hero des pages internes - plus petit que la homepage */
.page-hero-inner {
    background: var(--cp-primary);
    padding: 50px 0 40px;
    color: white;
    position: relative;
    z-index: 2;
}

.page-hero-inner h1 {
    font-size: clamp(22px, 3.5vw, 36px);
    font-weight: 800;
    color: #fff;
    margin-bottom: 10px;
}

.page-hero-inner .breadcrumb-item,
.page-hero-inner .breadcrumb-item a {
    color: rgba(255,255,255,0.65);
    font-size: 13px;
}

.page-hero-inner .breadcrumb-item.active {
    color: var(--cp-accent);
}

.page-hero-inner .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255,255,255,0.4);
}

/* corps du contenu des pages internes */
.content-page-wrap {
    background: #fff;
    border-radius: 12px;
    padding: 45px 50px;
    margin: 40px 0;
    box-shadow: 0 4px 25px rgba(0,0,0,0.07);
}

@media (max-width: 768px) {
    .content-page-wrap {
        padding: 28px 22px;
    }
}

.content-page-wrap h2 {
    color: var(--cp-primary);
    font-size: 20px;
    font-weight: 700;
    margin-top: 35px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--cp-accent);
    display: inline-block;
}

.content-page-wrap h2:first-child {
    margin-top: 0;
}

.content-page-wrap p {
    font-size: 14px;
    line-height: 1.75;
    color: #444;
}

.content-page-wrap ul li {
    font-size: 14px;
    color: #444;
    margin-bottom: 7px;
    line-height: 1.6;
}

/* carte info légale dans les pages */
.legal-info-card {
    background: var(--cp-light-bg);
    border-left: 4px solid var(--cp-accent);
    border-radius: 8px;
    padding: 22px 26px;
    margin-bottom: 30px;
}

.legal-info-card .lgl-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 14px;
    color: #333;
}

.legal-info-card .lgl-item i {
    color: var(--cp-primary);
    width: 20px;
    flex-shrink: 0;
}

/* formulaire de contact */
#form-contact .form-control,
#form-contact .form-select {
    border-radius: 8px;
    border: 1px solid #d0d8e8;
    font-size: 14px;
    padding: 10px 14px;
}

#form-contact .form-control:focus,
#form-contact .form-select:focus {
    border-color: var(--cp-primary);
    box-shadow: 0 0 0 3px rgba(15,45,82,0.12);
}

#form-contact .btn-submit-contact {
    background: var(--cp-primary);
    color: white;
    border: none;
    padding: 12px 35px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 15px;
    transition: background 0.2s;
    cursor: pointer;
}

#form-contact .btn-submit-contact:hover {
    background: #0a2244;
}

/* ============================================================
   UTILITAIRES CUSTOM
   ============================================================ */
.section-title-main {
    font-size: clamp(22px, 3vw, 34px);
    font-weight: 800;
    color: var(--cp-primary);
}

.section-subtitle {
    font-size: 15px;
    color: var(--cp-text-muted);
    max-width: 580px;
    margin: 0 auto;
    line-height: 1.6;
}

.divider-accent {
    width: 50px;
    height: 4px;
    background: var(--cp-accent);
    border-radius: 2px;
    margin: 14px auto 0;
}

/* couleur texte accent */
.text-cp-accent {
    color: var(--cp-accent) !important;
}

.text-cp-primary {
    color: var(--cp-primary) !important;
}

.bg-cp-primary {
    background-color: var(--cp-primary) !important;
}

/* ============================================================
   RESPONSIVE - fixes rapides
   TODO: revoir tout le responsive proprement
   ============================================================ */
@media (max-width: 991px) {
    #section-hero {
        padding: 60px 0 55px;
        min-height: auto;
    }

    #main-header .navbar-collapse {
        background: var(--cp-primary);
        padding: 15px;
        border-radius: 0 0 10px 10px;
    }
}

@media (max-width: 576px) {
    #age-popup-overlay .age-popup-box {
        padding: 30px 22px;
    }

    #age-popup-overlay .age-title {
        font-size: 18px;
    }

    .content-page-wrap {
        padding: 22px 16px;
    }

    #section-hero h1 {
        font-size: 24px;
    }
}
