/* 
   THEME IMPRO & COMPAGNIE V2 - PREMIUM STYLE 
   Author: Girafe Manager Agent
*/

:root {
    /* --- PALETTE PREMIUM --- */
    --color-bg: #0f0f13;
    /* Fond très sombre, presque noir */
    --color-bg-alt: #1a1a20;
    /* Fond alternatif sections */
    --color-text: #e0e0e0;
    /* Texte blanc cassé (moins agressif) */
    --color-text-muted: #a0a0a0;

    --color-accent: #D4AF37;
    /* OR (Gold) - Signature Premium */
    --color-accent-glow: rgba(212, 175, 55, 0.4);

    --color-primary: #ff4757;
    /* Rouge énergie (Impro) - optionnel */

    /* --- TYPOGRAPHY --- */
    --font-heading: 'Outfit', sans-serif;
    /* Moderne, Geometric */
    --font-body: 'Inter', sans-serif;
    /* Lisible, Clean */

    /* --- SPACING --- */
    --container-width: 1200px;
    --header-height: 80px;
}

/* RESET MODERNE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #0f0f13;
    color: var(--color-text);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ANIMATED MESH BACKGROUND */
.mesh-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    /* More visible opacity: 0.25 and 0.15 */
    background: radial-gradient(circle at 15% 50%, rgba(76, 29, 149, 0.25), transparent 30%),
        radial-gradient(circle at 85% 30%, rgba(212, 175, 55, 0.15), transparent 30%);
    filter: blur(60px);
    animation: moveMesh 20s infinite alternate ease-in-out;
    pointer-events: none;
}

@keyframes moveMesh {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1) translate(20px, -20px);
    }

    100% {
        transform: scale(1) translate(-20px, 20px);
    }
}

/* Glassmorphism Utility */
.glass-panel {
    background: rgba(30, 30, 36, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 24px -1px rgba(0, 0, 0, 0.2);
}

/* OPTION 3: ORGANIC & SPONTANEOUS */
/* OPTION 3: ORGANIC & SPONTANEOUS */
.font-handwritten {
    font-family: 'Caveat', cursive;
    font-weight: 400;
}

.title-blob {
    position: relative;
    display: inline-block;
    z-index: 1;
}

.title-blob::before {
    content: '';
    position: absolute;
    z-index: -1;
    top: -15px;
    /* Larger */
    left: -25px;
    right: -25px;
    bottom: -15px;
    background: linear-gradient(135deg, rgba(76, 29, 149, 0.6), rgba(212, 175, 55, 0.4));
    /* Stronger colors */
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    filter: blur(20px);
    opacity: 1;
    /* More visible */
    transform: rotate(-2deg);
    transition: all 0.5s ease;
}

.title-blob:hover::before {
    border-radius: 70% 30% 30% 70% / 60% 40% 60% 40%;
    transform: rotate(2deg) scale(1.1);
}

/* Organic Card Shape - Subtle Irregularity */
.organic-card {
    border-radius: 2% 98% 1% 99% / 99% 2% 98% 1%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    /* Remove standard border-radius if present when this class is used */
}

.organic-card:hover {
    border-radius: 98% 2% 99% 1% / 2% 99% 1% 98%;
    transition: border-radius 0.5s ease;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

/* --- LAYOUT --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* --- HEADER / NAV --- */
.site-header {
    background: rgba(15, 15, 19, 0.95);
    backdrop-filter: blur(10px);
    height: var(--header-height);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
}

.nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: #fff;
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--color-accent);
}

.main-menu {
    display: flex;
    gap: 30px;
}

.main-menu a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text);
    position: relative;
}

.main-menu a:hover {
    color: var(--color-accent);
}

/* BURGER MENU */
.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--color-text);
    margin: 5px;
    transition: all 0.3s ease;
}

@media screen and (max-width: 900px) {
    .main-menu {
        display: none;
        /* Hide default flex behavior on small screens before JS kicks in if needed, but better to use transform */
    }

    body {
        overflow-x: hidden;
    }

    .burger {
        display: block;
        z-index: 1001;
    }

    .main-menu {
        display: flex;
        /* Restore flex for the column layout */
        position: fixed;
        /* Fixed to viewport */
        right: 0;
        top: 0;
        height: 100vh;
        background-color: var(--color-bg-alt);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        /* Center items vertically */
        width: 100%;
        /* Full width or 50%? Full width is safer for mobile */
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
        z-index: 1000;
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        gap: 40px;
        /* Space between links */
    }

    .main-menu li {
        opacity: 0;
    }

    .nav-active {
        transform: translateX(0%);
    }

    /* BURGER ANIMATION */
    .toggle .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .toggle .line2 {
        opacity: 0;
    }

    .toggle .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }
}

@keyframes navLinkFade {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.main-menu a:hover,
.main-menu a.active {
    color: var(--color-accent);
}

/* --- HERO SECTION --- */
.hero {
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: radial-gradient(circle at center, #1a1a20 0%, #0f0f13 100%);
    position: relative;
    padding-top: var(--header-height);
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #fff 0%, #aaa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* --- CONTENT BLOCKS --- */
.page-content {
    padding: 80px 0;
    min-height: 60vh;
    margin-top: var(--header-height);
    /* Evite que le header cache le contenu */
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #fff;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--color-accent);
}

/* --- FOOTER --- */
.site-footer {
    background: #000;
    padding: 60px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 80px;
}

/* --- RESPONSIVE FIXES (MOBILE) --- */
@media screen and (max-width: 768px) {

    /* 1. Header & Navigation */
    .site-header .container {
        padding: 0 20px;
        /* Ensure padding on mobile */
        width: 100%;
    }

    .nav-flex {
        width: 100%;
        /* Ensure flex container takes full width */
    }

    .burger {
        margin-left: auto;
        /* Push burger to the far right */
    }

    /* 2. Typography & Hero Titles */
    .hero h1 {
        font-size: 2.2rem !important;
        /* Reduce huge Hero titles */
        word-wrap: break-word;
    }

    .section-title {
        font-size: 1.8rem;
    }

    /* 3. Contact Page Grid */
    .contact-grid {
        grid-template-columns: 1fr !important;
        /* Stack columns */
        gap: 30px !important;
    }

    .contact-grid>div:last-child {
        min-height: 300px !important;
        /* Ensure map has height */
    }

    /* 4. Footer Newsletter Form */
    #newsletter-form {
        flex-direction: column;
    }

    #newsletter-form button {
        width: 100%;
        margin-top: 10px;
        padding: 12px !important;
    }

    /* 5. Badges & Overflows (Entreprise / Girafe) */
    /* Target h1s with background styling or big text */
    h1 span,
    h2 span {
        display: inline-block;
    }

    /* Fix potential overflow on "ÉVÉNEMENTIEL" badges */
    .hero h1 {
        max-width: 100%;
        overflow-wrap: break-word;
    }

    /* 6. Qualiopi Logo overlapping */
    .qualiopi-logo {
        position: relative !important;
        right: auto !important;
        bottom: auto !important;
        margin: 20px auto !important;
        display: block !important;
        max-width: 100px !important;
    }
}