/* ================================================== */
/* VARIABLES GLOBALES - COULEURS ET POLICES */
/* ================================================== */
:root {
    /* COULEURS PRINCIPALES */
    --primary: #2c3e50;           /* Bleu marine - Principal (texte fort, fond footer) */
    --secondary: #9b59b6;         /* Violet - Secondaire (bordures, accents) */
    --accent: #e8d5f2;            /* Lavande clair - Accent (background léger) */
    --highlight: #f39c12;         /* Orange - Couleur de highlight (CTA/Attention) */
    --neutral: #f8f9fa;           /* Blanc cassé - Fond neutre des sections claires */

    /* COULEURS DE TEXTE */
    --text-dark: #333;
    --text-light: #fff;
    --text-muted: #666;

    /* ESPACEMENT & EFFETS */
    --section-padding: 80px 0;
    --shadow-soft: 0 5px 15px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

/* ================================================== */
/* RESET ET BASE TYPO */
/* ================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #fff;
    padding-top: 80px; /* Espace pour le header fixe */
    word-wrap: break-word;
}

/* Conteneur principal */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Titres génériques */
h2 {
    font-size: clamp(1.8rem, 1.2rem + 2vw, 2.5rem);
    text-align: center;
    color: var(--primary);
    margin-bottom: 40px;
    font-weight: 700;
    line-height: 1.2;
}
h3 {
    font-size: 1.35rem;
    color: var(--primary);
    margin-bottom: 10px;
}
.text-center { text-align: center; }

/* Sections */
section {
    padding: var(--section-padding);
    overflow-x: hidden;
}
section:nth-child(odd) {
    background-color: var(--neutral);
}
/* Ne pas colorer le fond des sections hero */
section.hero-cover:nth-child(odd) {
    background-color: transparent;
}

/* ================================================== */
/* HEADER & NAVIGATION */
/* ================================================== */

.main-header {
    background-color: var(--text-light);
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    height: 80px;
    transition: box-shadow 0.25s ease, background-color 0.25s ease;
}
.main-header.scrolled {
    box-shadow: 0 4px 24px rgba(0,0,0,0.1);
    background-color: rgba(255,255,255,0.96);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    flex-shrink: 0;
    max-width: 180px;
}
.logo img {
    height: 50px;
    width: auto;
    max-width: 100%;
}
.logo-mobile { display: none; }

@media (max-width: 768px) {
    .logo-desktop { display: none; }
    .logo-mobile { display: block; height: 40px; }
    .main-header { height: 70px; }
    body { padding-top: 70px; }
}

/* Navigation */
.main-nav {
    display: flex;
    align-items: center;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 5px;
    align-items: center; /* centrage vertical de tous les liens, y compris Atelier */
}
.nav-menu a {
    display: block;
    padding: 20px 15px; /* réduit pour aligner avec le bouton Atelier */
    text-decoration: none;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
    transition: var(--transition);
}
.nav-menu a:hover,
.nav-menu a.active {
    color: var(--secondary);
    background-color: rgba(155, 89, 182, 0.05);
}

/* Bouton menu mobile (hamburger) */
.nav-toggle {
    display: none;
}

/* Lignes du hamburger */
.nav-toggle span {
    display: block;
    width: 24px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    margin: 3px 0;
    transition: transform 0.25s ease, opacity 0.25s ease, background-color 0.25s ease;
}

/* État actif (croix) */
.nav-toggle.active span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}
.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 992px) {
    .nav-toggle {
        display: flex;
        flex-direction: column;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 10px;
        margin-left: 15px;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--text-light);
        flex-direction: column;
        align-items: stretch; /* on annule le centrage pour le menu en colonne */
        padding: 20px 0;
        transition: left 0.3s ease;
        box-shadow: var(--shadow-soft);
        z-index: 999;
        gap: 0;
    }
    .nav-menu-open {
        left: 0;
    }

    .nav-menu a {
        padding: 15px;
        text-align: center;
        border-left: 4px solid transparent;
        border-bottom: 1px solid var(--neutral);
    }
    .nav-menu a.active {
        border-left-color: var(--highlight);
    }
}

/* ================================================== */
/* BOUTONS CTA */
/* ================================================== */

.cta-button {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 8px;
    cursor: pointer;
}

.cta-button.primary {
    background-color: var(--highlight);
    color: var(--primary);
    border: 2px solid var(--highlight);
    box-shadow: 0 6px 15px rgba(243, 156, 18, 0.4);
}
.cta-button.primary:hover {
    background-color: #e67e22;
    border-color: #e67e22;
    transform: translateY(-2px);
}

.cta-button.secondary {
    background-color: transparent;
    color: var(--text-light);
    border: 2px solid var(--text-light);
}
.cta-button.secondary:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.cta-button.accent {
    background-color: var(--secondary);
    color: var(--text-light);
    border: 2px solid var(--secondary);
}
.cta-button.accent:hover {
    background-color: #8e44ad;
    border-color: #8e44ad;
}

.cta-button.large {
    padding: 16px 35px;
    font-size: 1.15rem;
}

/* ================================================== */
/* FOOTER – 3 colonnes : Branding / Nav / Contact+Horaires */
/* ================================================== */

.main-footer {
    background: #050510;
    background: radial-gradient(circle at top left, #2d174a 0%, #050510 55%, #020208 100%);
    color: #e0e0e0;
    position: relative;
    padding-top: 60px;
    overflow: hidden;
    margin-top: 40px;
}

.footer-main {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr) minmax(0, 1.4fr);
    gap: 40px;
    padding-bottom: 40px;
}

@media (max-width: 1024px) {
    .footer-main {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 576px) {
    .footer-main {
        grid-template-columns: 1fr;
    }
}

/* Colonne 1 : branding */

.footer-brand {
    max-width: 380px;
}

.footer-logo {
    filter: brightness(0) invert(1);
    margin-bottom: 15px;
    max-width: 220px;
    height: auto;
}

.footer-description {
    font-size: 0.95rem;
    opacity: 0.85;
    margin-bottom: 8px;
}

.footer-description-secondary {
    opacity: 0.8;
}

.footer-subtitle {
    margin-top: 26px;
    color: var(--text-light);
    font-size: 0.95rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

/* Social */

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.footer-social .social-link {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 50%;
    color: var(--text-light);
    transition: var(--transition);
}

.footer-social .social-link:hover {
    background: var(--highlight);
    color: #1a1a2e;
    transform: translateY(-3px);
}

/* Colonnes 2 et 3 */

.footer-column {
    align-self: flex-start;
}

/* Titres de colonnes */

.link-group h4 {
    color: var(--text-light);
    margin-bottom: 15px;
    font-size: 1.05rem;
    font-weight: 700;
    position: relative;
}

.link-group h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 32px;
    height: 2px;
    background: var(--highlight);
}

.link-group ul {
    list-style: none;
    margin-top: 15px;
}

/* Liens */

.link-group a {
    color: #e0e0e0;
    text-decoration: none;
    opacity: 0.8;
    transition: var(--transition);
    font-size: 0.9rem;
}

.link-group a:hover {
    color: var(--highlight);
    opacity: 1;
    padding-left: 5px;
}

/* Navigation en 2 colonnes */

.link-group ul.footer-col-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 18px;
}

@media (max-width: 576px) {
    .link-group ul.footer-col-2 {
        grid-template-columns: 1fr;
    }
}

/* Contact + horaires */

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.contact-list a,
.contact-list span {
    color: #e0e0e0;
}

.contact-icon {
    width: 20px;
    height: 20px;
    opacity: 0.7;
    margin-top: 3px;
}

.footer-hours {
    margin-top: 22px;
    font-size: 0.9rem;
}

.footer-hours-title {
    color: var(--text-light);
    margin-bottom: 10px;
    font-size: 0.95rem;
    font-weight: 600;
}

.hours-grid {
    display: grid;
    grid-template-columns: auto auto;
    column-gap: 20px;
    row-gap: 5px;
    font-size: 0.9rem;
}

.footer-zone {
    margin-top: 10px;
    font-size: 0.9rem;
    opacity: 0.85;
}

/* Ancienne grille footer-info désactivée */
.footer-info {
    display: none;
}

/* Bas de footer */

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 18px 0 22px;
    margin-top: 10px;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.footer-copyright p,
.footer-legal a {
    font-size: 0.85rem;
    opacity: 0.75;
    color: #e0e0e0;
}

.footer-legal a {
    margin-left: 18px;
    text-decoration: none;
}

.footer-legal a:hover {
    opacity: 1;
    color: var(--highlight);
}

@media (max-width: 600px) {
    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
    }

    .footer-legal {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .footer-legal a {
        margin-left: 0;
    }
}

/* ================================================== */
/* STYLES PAGES LÉGALES (Mentions & Confidentialité) */
/* ================================================== */

/* Hero légal compact (taille réduite, image en fond + overlay) */
.legal-hero.hero-cover {
    position: relative;
    min-height: 30vh;
    padding: 60px 0;
}

.legal-hero.hero-cover picture,
.legal-hero.hero-cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

/* Overlay sombre pour lisibilité */
.legal-hero.hero-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.75) 0%,
        rgba(0, 0, 0, 0.7) 100%
    );
    z-index: 2;
}

/* Texte au-dessus de l'image */
.legal-hero .hero-text {
    position: relative;
    z-index: 3;
}

.legal-hero.hero-cover h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}
.legal-hero.hero-cover .subtitle {
    font-size: 1.2rem;
    color: var(--accent);
    font-weight: 300;
}

/* Variante encore plus compacte si .small-hero est présente */
.small-hero.legal-hero.hero-cover {
    min-height: 24vh;
    padding: 45px 0;
}

/* Contenu légal */
.legal-content {
    background-color: var(--neutral);
    padding: 60px 0;
}

.legal-section {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-soft);
    border-left: 4px solid var(--secondary);
}

.legal-section h2 {
    text-align: left;
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--primary);
    border-bottom: 1px solid var(--neutral);
    padding-bottom: 10px;
}

.legal-section h3 {
    font-size: 1.2rem;
    margin-top: 20px;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.legal-info p {
    margin-bottom: 15px;
    color: var(--text-muted);
}

.legal-info ul {
    margin-bottom: 20px;
    padding-left: 20px;
}
.legal-info li {
    margin-bottom: 5px;
    color: var(--text-muted);
}

/* Grille des droits */
.rights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}
.right-item {
    background: var(--neutral);
    padding: 15px;
    border-radius: 6px;
    text-align: center;
}
.right-item h4 {
    color: var(--secondary);
    margin-bottom: 5px;
    font-size: 1rem;
}
.right-item p {
    font-size: 0.9rem;
    margin: 0;
}

/* Date de mise à jour */
.legal-update {
    text-align: center;
    margin-top: 40px;
    color: var(--text-muted);
    font-style: italic;
}

/* Responsive légal */
@media (max-width: 768px) {
    .legal-section {
        padding: 25px;
    }
    .legal-hero.hero-cover {
        min-height: 22vh;
        padding: 40px 0;
    }
    .small-hero.legal-hero.hero-cover {
        min-height: 20vh;
        padding: 35px 0;
    }
    .legal-hero.hero-cover h1 {
        font-size: 2rem;
    }
}

/* ================================================== */
/* ANIMATIONS D'APPARITION (utilisées par animations.js) */
/* ================================================== */

.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ================================================== */
/* BOUTON ATELIER DANS LE HEADER */
/* ================================================== */

.nav-menu .atelier-btn {
    padding: 10px 18px;
    margin-left: 12px;
    border-radius: 999px;
    background: var(--secondary);
    color: #fff !important;
    font-weight: 600;
    font-size: 0.9rem;
    border: 2px solid var(--secondary);
    transition: all 0.25s ease;
}

.nav-menu .atelier-btn:hover {
    background: transparent;
    color: var(--secondary) !important;
    transform: translateY(-2px);
}

/* Version mobile */
@media (max-width: 992px) {
    .nav-menu .atelier-btn {
        display: block;
        width: 80%;
        margin: 20px auto 10px;
        text-align: center;
    }
}




/* Message de confirmation dans la zone formulaire */
.form-success-message,
.form-error-message {
    padding: 18px 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-soft);
}

/* Succès */
.form-success-message {
    background: #d4f8e1;
    border-left: 5px solid #2ecc71;
    color: #1e6f3b;
}

/* Erreur */
.form-error-message {
    background: #fde4e4;
    border-left: 5px solid #e74c3c;
    color: #8c1f1f;
}

/* Icône */
.form-success-message .icon,
.form-error-message .icon {
    font-size: 1.4rem;
}
