/* ===================================
   Variables & Reset
   =================================== */
:root {
    --color-navy: #14143C;
    --color-navy-light: #1e2354;
    --color-gold: #d4af37;
    --color-gold-light: #f0d574;
    --color-white: #ffffff;
    --color-gray-light: #f5f5f5;
    --color-gray: #666666;
    --color-success: #2ecc71;
    --color-error: #e74c3c;
    
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Inter', sans-serif;
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);
    
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    line-height: 1.6;
    color: var(--color-navy);
    background-color: var(--color-white);
    overflow-x: hidden;
}

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

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

a:hover {
    color: var(--color-gold-light);
}

/* ===================================
   Container & Layout
   =================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hero doit être visible immédiatement */
section.hero {
    opacity: 1;
    transform: translateY(0);
}

/* ===================================
   Section Headers
   =================================== */
.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: 15px;
}

.title-underline {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
    margin: 0 auto;
}

/* ===================================
   Hero Section
   =================================== */
.hero {
    min-height: 70vh;
    background: #14143C;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: 60px 20px;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.logo-container {
    margin-bottom: 30px;
    animation: fadeInDown 1s ease;
}

.logo {
    width: 180px;
    height: auto;
    margin: 0 auto;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 25px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease 0.2s both;
}

.date-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--color-gold);
    color: var(--color-navy);
    padding: 15px 35px;
    border-radius: 50px;
    font-size: 1.3rem;
    font-weight: 600;
    box-shadow: var(--shadow-lg);
    margin-bottom: 30px;
    animation: fadeInUp 1s ease 0.4s both;
}

.date-badge i {
    font-size: 1.5rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--color-gray-light);
    margin-bottom: 30px;
    animation: fadeInUp 1s ease 0.6s both;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--color-gold);
    font-size: 2rem;
    animation: bounce 2s infinite;
}

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-15px); }
}

/* ===================================
   About Section
   =================================== */
.about {
    padding: 80px 0;
    background: var(--color-white);
}

.about-content {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.about-img:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.about-text {
    text-align: left;
}

.lead {
    font-size: 1.3rem;
    line-height: 1.8;
    color: var(--color-navy);
    margin-bottom: 25px;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--color-gray);
    margin-bottom: 40px;
    line-height: 1.8;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 30px;
    background: var(--color-gray-light);
    border-radius: 15px;
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.feature-item i {
    font-size: 3rem;
    color: var(--color-gold);
}

.feature-item span {
    font-weight: 500;
    color: var(--color-navy);
    text-align: center;
}

/* ===================================
   Brands Section (Réduite)
   =================================== */
.brands {
    padding: 50px 0;
    background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-light) 100%);
}

.brands .section-title {
    color: var(--color-white);
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    max-width: 1000px;
    margin: 0 auto;
}

.brand-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    color: var(--color-white);
    font-weight: 500;
    font-size: 0.95rem;
    border: 1px solid rgba(212, 175, 55, 0.2);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.brand-card:hover {
    background: rgba(212, 175, 55, 0.15);
    border-color: var(--color-gold);
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.3);
}

.brand-card i {
    font-size: 1.5rem;
    color: var(--color-gold);
}

/* ===================================
   Newsletter Section (Brevo Integration)
   =================================== */
.newsletter {
    padding: 80px 0;
    background: var(--color-gray-light);
}

.newsletter-wrapper {
    max-width: 700px;
    margin: 0 auto;
}

.newsletter-intro {
    text-align: center;
    font-size: 1.2rem;
    color: var(--color-gray);
    margin-bottom: 40px;
    line-height: 1.8;
}

.newsletter-intro strong {
    color: var(--color-gold);
    font-weight: 600;
}

/* Container pour formulaire Brevo */
.brevo-form-container {
    background: var(--color-white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    min-height: 400px;
}

/* Placeholder temporaire avant intégration Brevo */
.brevo-placeholder {
    text-align: center;
    padding: 40px 20px;
}

.brevo-placeholder i {
    font-size: 4rem;
    color: var(--color-gold);
    margin-bottom: 25px;
}

.brevo-placeholder h3 {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    color: var(--color-navy);
    margin-bottom: 20px;
}

.brevo-placeholder p {
    font-size: 1.1rem;
    color: var(--color-gray);
    margin-bottom: 20px;
    line-height: 1.8;
}

.brevo-placeholder ol {
    text-align: left;
    max-width: 500px;
    margin: 30px auto;
    padding-left: 20px;
}

.brevo-placeholder ol li {
    font-size: 1rem;
    color: var(--color-gray);
    margin-bottom: 12px;
    line-height: 1.6;
}

.brevo-placeholder a {
    color: var(--color-gold);
    font-weight: 600;
    text-decoration: underline;
}

.brevo-placeholder code {
    background: var(--color-gray-light);
    padding: 3px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: var(--color-navy);
}

.brevo-placeholder .note {
    background: #fff3cd;
    border: 2px solid var(--color-gold);
    border-radius: 8px;
    padding: 15px;
    margin-top: 30px;
    font-size: 0.95rem;
}

/* Styles pour iframe Brevo */
.brevo-form-container iframe {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    display: block;
    border: none;
    border-radius: 8px;
}

.newsletter-form {
    background: var(--color-white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 500;
    color: var(--color-navy);
    margin-bottom: 8px;
}

.form-group input[type="text"],
.form-group input[type="email"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--color-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.checkbox-group {
    margin: 25px 0;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--color-gray);
}

.checkbox-label input[type="checkbox"] {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-light) 100%);
    color: var(--color-navy);
    border: none;
    border-radius: 8px;
    font-family: var(--font-sans);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.submit-btn:active {
    transform: translateY(0);
}

.message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    display: none;
}

.message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* ===================================
   Contact Section
   =================================== */
.contact {
    padding: 80px 0;
    background: var(--color-white);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-card {
    text-align: center;
    padding: 40px 30px;
    background: var(--color-gray-light);
    border-radius: 15px;
    transition: var(--transition);
}

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

.contact-card i {
    font-size: 3rem;
    color: var(--color-gold);
    margin-bottom: 20px;
}

.contact-card h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--color-navy);
    margin-bottom: 15px;
}

.contact-card p {
    color: var(--color-gray);
    line-height: 1.8;
}

/* ===================================
   Footer
   =================================== */
.footer {
    padding: 40px 0;
    background: var(--color-navy);
    color: var(--color-white);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-logo img {
    width: 120px;
    height: auto;
    filter: brightness(1.2);
}

.footer-text {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .date-badge {
        font-size: 1.1rem;
        padding: 12px 25px;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .logo {
        width: 150px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .newsletter-form {
        padding: 30px 20px;
    }
    
    /* Brevo container responsive */
    .brevo-form-container {
        padding: 30px 20px;
    }
    
    .newsletter-wrapper {
        max-width: 100%;
    }
    
    .newsletter-intro {
        font-size: 1.1rem;
        padding: 0 10px;
    }
    
    /* Formulaire Brevo responsive */
    #sib-container {
        max-width: 100% !important;
        padding: 20px !important;
    }
    
    /* About section responsive */
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-text {
        text-align: center;
    }
    
    .about-image {
        order: -1; /* Image en premier sur mobile */
    }
    
    .features {
        grid-template-columns: 1fr;
    }
    
    .brands-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 12px;
    }
    
    .brand-card {
        padding: 12px;
        font-size: 0.9rem;
    }
    
    /* Contact cards responsive */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .contact-card {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .date-badge {
        font-size: 1rem;
        padding: 10px 20px;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .logo {
        width: 120px;
    }
    
    /* Brevo container très petit écran */
    .brevo-form-container {
        padding: 20px 15px;
        min-height: auto;
    }
    
    .newsletter-intro {
        font-size: 1rem;
    }
    
    #sib-container {
        padding: 15px !important;
    }
    
    /* Contact section */
    .contact-card {
        padding: 25px 15px;
    }
    
    .contact-card i {
        font-size: 2.5rem;
    }
    
    .contact-card h3 {
        font-size: 1.3rem;
    }
    
    /* Features */
    .feature-item {
        padding: 20px;
    }
    
    .feature-item i {
        font-size: 2.5rem;
    }
    
    /* About section */
    .about-text p,
    .about-text .lead {
        font-size: 1rem;
    }
    
    /* Footer */
    .footer-logo img {
        width: 100px;
    }
    
    .footer {
        padding: 30px 0;
    }
}