/* Variables de couleurs - Style minimaliste cohérent */
:root {
    --blanc-casse: #F8F8F8;
    --gris-fonce: #1C1C1C;
    --gris-moyen: #6E6E6E;
    --anthracite: #0F0F0F;
    --jaune-accent: #FFC300;
}

/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--blanc-casse);
    color: var(--gris-fonce);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Hero Section */
main {
    margin-top: 80px;
}

.hero {
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 5%;
    background-color: var(--blanc-casse);
}

.hero-content {
    text-align: center;
    max-width: 800px;
}

.hero h1 {
    font-size: 5rem;
    font-weight: 700;
    color: var(--gris-fonce);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.6rem;
    color: var(--gris-moyen);
    font-weight: 400;
}

/* Section Legal */
.legal-section {
    padding: 3.5rem 5%;
    background-color: var(--blanc-casse);
}

.legal-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Cartes légales */
.legal-card {
    background-color: white;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.3s ease;
}

.legal-card:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 2rem;
    cursor: pointer;
    background-color: white;
    transition: background-color 0.3s ease;
}

.card-header:hover {
    background-color: rgba(255, 195, 0, 0.05);
}

.card-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
}

.card-header h3 {
    flex: 1;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--gris-fonce);
}

.card-arrow {
    font-size: 1.2rem;
    color: var(--jaune-accent);
    transition: transform 0.3s ease;
}

.card-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    padding: 0 2rem;
}

.card-content.active {
    max-height: 3000px;
    padding: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.card-content h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--gris-fonce);
    margin-bottom: 1.5rem;
}

.card-content h5 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gris-fonce);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.card-content p {
    color: var(--gris-moyen);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

/* Grille d'informations */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1rem;
    background-color: var(--blanc-casse);
    border-radius: 8px;
}

.info-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gris-moyen);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 1rem;
    color: var(--gris-fonce);
    font-weight: 500;
}

/* Boîtes de mise en évidence */
.highlight-box,
.update-box {
    background-color: rgba(255, 195, 0, 0.1);
    border-left: 4px solid var(--jaune-accent);
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1.5rem;
}

.highlight-box h5,
.update-box h5 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    color: var(--gris-fonce);
}

.highlight-box p,
.update-box p {
    margin-bottom: 0;
    color: var(--gris-fonce);
}

/* Section retour */
.back-section {
    margin-top: 3rem;
    text-align: center;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background-color: var(--anthracite);
    color: var(--blanc-casse);
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background-color: var(--jaune-accent);
    color: var(--anthracite);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 195, 0, 0.3);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 30vh;
        padding: 2rem 5%;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .legal-section {
        padding: 2.5rem 5%;
    }

    .card-header {
        padding: 1.25rem 1.5rem;
    }

    .card-header h3 {
        font-size: 1.2rem;
    }

    .card-content.active {
        padding: 1.5rem;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 25vh;
        padding: 1.5rem 5%;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .legal-section {
        padding: 2rem 5%;
    }

    .card-header {
        padding: 1rem;
    }

    .card-header h3 {
        font-size: 1.1rem;
    }

    .card-icon {
        font-size: 1.5rem;
    }

    .card-content h4 {
        font-size: 1.2rem;
    }
}