/* ============================================
   PROJET: BillyBats.com (newsite16-fr)
   
   CSS ARCHITECTURE: BEM (Block Element Modifier)
   PALETTE: Ривьера (Riviera)
   EFFET: Animated Gradients
   TYPOGRAPHIE: Playfair Display + Lato
   BOUTONS: Gradient Fill
   ============================================ */

/* ============================================
   IMPORTS - GOOGLE FONTS
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;800&family=Lato:wght@300;400;700&display=swap');

/* ============================================
   CSS VARIABLES - RIVIERA PALETTE
   ============================================ */
:root {
    /* Riviera Colors - Thematic Names */
    --azure-sea: #0077be;
    --coral-sunset: #ff6b6b;
    --sand-beige: #f4e4c1;
    --ocean-depth: #003d5c;
    --golden-sun: #ffd700;
    --coastal-white: #f8f9fa;
    --wave-blue: #4a90e2;
    --seashell-pink: #ffe4e1;
    
    /* Functional Colors */
    --text-primary: #2c3e50;
    --text-secondary: #6c757d;
    --text-light: #ffffff;
    --border-color: rgba(0, 119, 190, 0.2);
    --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-heavy: 0 8px 32px rgba(0, 0, 0, 0.2);
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    
    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
    
    /* Layout */
    --header-height: 70px;
    --container-max: 1200px;
    --border-radius: 12px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Mobile header height */
@media (max-width: 768px) {
    :root {
        --header-height: 60px;
    }
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    max-width: 100%;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden !important;
}

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    line-height: 1.6;
    background: var(--coastal-white);
    overflow-x: hidden !important;
    width: 100% !important;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-medium);
}

ul, ol {
    list-style: none;
}

/* ============================================
   TYPOGRAPHY - BEM STYLE
   ============================================ */
.heading {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--ocean-depth);
}

.heading--h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: var(--spacing-md);
}

.heading--h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: var(--spacing-md);
}

.heading--h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: var(--spacing-sm);
}

.text {
    font-family: var(--font-body);
    font-size: clamp(1rem, 2vw, 1.125rem);
    line-height: 1.8;
}

.text--light {
    color: var(--text-light);
}

/* ============================================
   HEADER - BEM BLOCKS
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: linear-gradient(135deg, var(--azure-sea), var(--ocean-depth));
    box-shadow: var(--shadow-medium);
    z-index: 1000;
    animation: gradientShift 15s ease infinite;
    background-size: 300% 300%;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.header__container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header__logo {
    font-family: var(--font-heading);
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 800;
    color: var(--text-light);
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.header__logo:hover {
    color: var(--golden-sun);
}

/* Navigation */
.nav__list {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
}

.nav__item {
    position: relative;
}

.nav__link {
    color: var(--text-light);
    font-weight: 500;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: 6px;
    transition: var(--transition-medium);
}

.nav__link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--golden-sun);
}

/* Mobile Burger Menu */
.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
    background: none;
    border: none;
    padding: var(--spacing-xs);
}

.burger__line {
    width: 25px;
    height: 3px;
    background: var(--text-light);
    transition: var(--transition-medium);
    border-radius: 2px;
}

.burger--active .burger__line:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.burger--active .burger__line:nth-child(2) {
    opacity: 0;
}

.burger--active .burger__line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

@media (max-width: 768px) {
    .nav__list {
        position: fixed;
        top: calc(var(--header-height) - 1px);
        right: -100%;
        width: 280px;
        height: calc(100vh - var(--header-height));
        background: linear-gradient(180deg, var(--ocean-depth), var(--azure-sea));
        flex-direction: column;
        padding: var(--spacing-lg);
        gap: var(--spacing-sm);
        transition: var(--transition-medium);
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
        overflow-y: auto;
    }
    
    .nav__list--active {
        right: 0;
    }
    
    .burger {
        display: flex;
    }
    
    .header__logo {
        font-size: 1rem;
        letter-spacing: 0.5px;
    }
}

/* ============================================
   HERO SECTION - BEM STYLE
   ============================================ */
.hero {
    min-height: 100vh;
    padding-top: 120px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--azure-sea), var(--coral-sunset), var(--golden-sun));
    background-size: 400% 400%;
    animation: gradientShift 20s ease infinite;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hero__container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: var(--spacing-xl) var(--spacing-md);
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero__title {
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.4);
}

.hero__subtitle {
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    color: var(--coastal-white);
    margin-bottom: var(--spacing-xl);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero__buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .hero {
        padding-top: 100px;
        min-height: 90vh;
    }
}

/* ============================================
   BUTTONS - GRADIENT FILL STYLE (BEM)
   ============================================ */
.btn {
    display: inline-block;
    padding: clamp(0.75rem, 2vw, 1rem) clamp(1.5rem, 3vw, 2rem);
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: clamp(0.9rem, 2vw, 1rem);
    cursor: pointer;
    border: none;
    transition: var(--transition-medium);
    text-align: center;
    font-family: var(--font-body);
}

.btn--primary {
    background: linear-gradient(135deg, var(--coral-sunset), var(--golden-sun));
    color: var(--text-light);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.btn--secondary {
    background: linear-gradient(135deg, var(--azure-sea), var(--wave-blue));
    color: var(--text-light);
    box-shadow: 0 4px 15px rgba(0, 119, 190, 0.3);
}

.btn--secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 119, 190, 0.4);
}

.btn--outline {
    background: transparent;
    border: 2px solid var(--azure-sea);
    color: var(--azure-sea);
}

.btn--outline:hover {
    background: var(--azure-sea);
    color: var(--text-light);
}

.btn--large {
    padding: clamp(1rem, 2.5vw, 1.25rem) clamp(2rem, 4vw, 2.5rem);
    font-size: clamp(1rem, 2.5vw, 1.125rem);
}

.btn--small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* ============================================
   CONTAINER & SECTIONS
   ============================================ */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    width: 100%;
}

.section {
    padding: var(--spacing-xl) 0;
}

.section--alt {
    background: linear-gradient(135deg, var(--sand-beige) 0%, var(--seashell-pink) 100%);
}

.section__header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.section__title {
    position: relative;
    display: inline-block;
    padding-bottom: var(--spacing-sm);
}

.section__title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--coral-sunset), var(--golden-sun));
    border-radius: 2px;
}

/* ============================================
   CARDS - BEM BLOCKS
   ============================================ */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.card {
    background: var(--coastal-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--transition-medium);
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
}

.card__header {
    padding: var(--spacing-md);
    background: linear-gradient(135deg, var(--azure-sea), var(--wave-blue));
    color: var(--text-light);
    text-align: center;
}

.card__logo {
    width: 150px;
    height: auto;
    margin: 0 auto var(--spacing-sm);
    padding: var(--spacing-sm);
    background: var(--coastal-white);
    border-radius: 8px;
}

.card__rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    font-size: 1.25rem;
    font-weight: 700;
    margin-top: var(--spacing-sm);
}

.card__stars {
    color: var(--golden-sun);
}

.card__body {
    padding: var(--spacing-md);
    flex: 1;
}

.card__title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    color: var(--ocean-depth);
}

.card__text {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-sm);
}

.card__features {
    list-style: none;
    margin: var(--spacing-md) 0;
}

.card__feature {
    padding: var(--spacing-xs) 0;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.card__feature::before {
    content: '✓';
    color: var(--coral-sunset);
    font-weight: bold;
    font-size: 1.2rem;
}

.card__footer {
    padding: var(--spacing-md);
    background: var(--sand-beige);
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
}

/* ============================================
   FAQ ACCORDION - BEM STYLE
   ============================================ */
.faq {
    max-width: 900px;
    margin: 0 auto;
}

.faq__item {
    margin-bottom: var(--spacing-md);
    background: var(--coastal-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
}

.faq__question {
    width: 100%;
    padding: var(--spacing-md);
    background: linear-gradient(135deg, var(--azure-sea), var(--wave-blue));
    color: var(--text-light);
    border: none;
    text-align: left;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-medium);
    font-family: var(--font-body);
}

.faq__question:hover {
    background: linear-gradient(135deg, var(--wave-blue), var(--azure-sea));
}

.faq__icon {
    font-size: 1.5rem;
    transition: var(--transition-medium);
}

.faq__item--active .faq__icon {
    transform: rotate(180deg);
}

.faq__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq__answer-content {
    padding: var(--spacing-md);
    color: var(--text-primary);
    line-height: 1.8;
}

/* ============================================
   FOOTER - BEM STYLE
   ============================================ */
.footer {
    background: linear-gradient(180deg, var(--ocean-depth), #001428);
    color: var(--text-light);
    padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.footer__section-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: var(--spacing-md);
    color: var(--golden-sun);
}

.footer__text {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    margin-bottom: var(--spacing-sm);
}

.footer__links {
    list-style: none;
}

.footer__link-item {
    margin-bottom: var(--spacing-xs);
}

.footer__link {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition-medium);
}

.footer__link:hover {
    color: var(--golden-sun);
    padding-left: 5px;
}

.footer__compliance {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    align-items: center;
    justify-content: center;
}

.footer__compliance-logo {
    height: 35px;
    width: auto;
    background: rgba(255, 255, 255, 0.95);
    padding: 8px;
    border-radius: 8px;
    transition: var(--transition-medium);
}

.footer__compliance-logo:hover {
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.footer__bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.footer__age-badge {
    display: inline-block;
    background: var(--coral-sunset);
    color: var(--text-light);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.125rem;
    margin-right: var(--spacing-sm);
}

/* ============================================
   DISCLAIMER SECTION
   ============================================ */
.disclaimer {
    background: linear-gradient(135deg, var(--coral-sunset), #ff4757);
    color: var(--text-light);
    padding: var(--spacing-lg) 0;
    border-top: 3px solid var(--golden-sun);
    border-bottom: 3px solid var(--golden-sun);
}

.disclaimer__content {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    text-align: center;
}

.disclaimer__text {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: var(--spacing-sm);
}

.disclaimer__link {
    color: var(--text-light);
    text-decoration: underline;
    font-weight: 700;
}

.disclaimer__link:hover {
    color: var(--golden-sun);
}

/* ============================================
   MODALS - BEM STYLE
   ============================================ */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: var(--spacing-md);
}

.modal--hidden {
    display: none;
}

.modal__content {
    background: var(--coastal-white);
    border-radius: var(--border-radius);
    max-width: 500px;
    width: 100%;
    box-shadow: var(--shadow-heavy);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal__header {
    background: linear-gradient(135deg, var(--azure-sea), var(--ocean-depth));
    color: var(--text-light);
    padding: var(--spacing-md);
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    text-align: center;
}

.modal__body {
    padding: var(--spacing-lg);
    text-align: center;
}

.modal__buttons {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    margin-top: var(--spacing-md);
}

.modal__warning {
    margin-top: var(--spacing-md);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: 20px;
    right: 20px;
    max-width: 350px;
    background: linear-gradient(135deg, var(--ocean-depth), var(--azure-sea));
    color: var(--text-light);
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-heavy);
    z-index: 9999;
    animation: slideInRight 0.5s ease;
}

.cookie-consent--hidden {
    display: none;
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.cookie-consent__text {
    margin-bottom: var(--spacing-md);
    font-size: 0.9rem;
    line-height: 1.6;
}

.cookie-consent__buttons {
    display: flex;
    gap: var(--spacing-xs);
}

@media (max-width: 768px) {
    .cookie-consent {
        bottom: 0;
        right: 0;
        left: 0;
        max-width: 100%;
        border-radius: var(--border-radius) var(--border-radius) 0 0;
    }
}

/* ============================================
   UTILITY CLASSES - BEM STYLE
   ============================================ */
.u-text-center {
    text-align: center;
}

.u-mt-sm { margin-top: var(--spacing-sm); }
.u-mt-md { margin-top: var(--spacing-md); }
.u-mt-lg { margin-top: var(--spacing-lg); }
.u-mb-sm { margin-bottom: var(--spacing-sm); }
.u-mb-md { margin-bottom: var(--spacing-md); }
.u-mb-lg { margin-bottom: var(--spacing-lg); }

.u-hidden {
    display: none !important;
}

.u-visible {
    display: block !important;
}

/* ============================================
   RESPONSIVE UTILITIES
   ============================================ */
@media (max-width: 768px) {
    .u-hide-mobile {
        display: none !important;
    }
}

@media (min-width: 769px) {
    .u-hide-desktop {
        display: none !important;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .header,
    .footer,
    .modal,
    .cookie-consent,
    .btn {
        display: none !important;
    }
}

