/* ==========================================================================
   1. RESET CSS & VARIABLES (DA Provence Moderne & Colorée)
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Nouvelle Palette Provence Vibrante & Moderne */
    --provence-jaune: #FBBF24;
    /* Un jaune plus chaud et éclatant */
    --provence-vert: #A3E635;
    /* Un vert anis plus lumineux */
    --provence-violet: #7C3AED;
    /* Un violet profond et électrique */
    --provence-bleu: #38BDF8;
    /* Un bleu plus vif */
    --provence-sable: #EAB308;
    /* Un sable qui tire sur l'or */

    /* Couleurs de fond et texte modernisées (Clair par défaut) */
    --couleur-fond: #FAFAFA;
    /* Un blanc cassé très épuré, très moderne */
    --couleur-texte: #171717;
    /* Gris presque noir profond */
    --couleur-texte-secondaire: #525252;
    --couleur-navbar-bg: rgba(250, 250, 250, 0.7);
    --couleur-navbar-border: rgba(124, 58, 237, 0.1);
    --couleur-transparent: transparent;

    /* Variables de verre effet "Apple Glass" */
    --couleur-hero-bg: rgba(255, 255, 255, 0.35);
    /* Beaucoup plus transparent */
    --couleur-hero-border: rgba(255, 255, 255, 0.7);
    /* Reflet de lumière blanc */
    --couleur-hero-shadow: rgba(0, 0, 0, 0.08);
    /* Ombre douce et large */
    --hero-bg-image: url('Sainte_victoire_ligt.jpg');

    /* Typographie Moderne (Google Fonts) */
    --police-texte: 'Inter', sans-serif;
    /* Lecture optimale */
    --police-titre: 'Outfit', sans-serif;
    /* Titres géométriques et audacieux */
}

/* Variables du Thème Sombre */
[data-theme="dark"] {
    --couleur-fond: #121212;
    /* Gris très sombre presque noir */
    --couleur-texte: #FAFAFA;
    /* Blanc cassé */
    --couleur-texte-secondaire: #A3A3A3;
    --couleur-navbar-bg: rgba(18, 18, 18, 0.75);
    --couleur-transparent: transparent;
    --couleur-navbar-border: rgba(255, 255, 255, 0.795);
    /* Ligne translucide */

    /* Variables de verre foncé effet "Apple Glass" */
    --couleur-hero-bg: rgba(18, 18, 18, 0.35);
    /* Transparent sombre */
    --couleur-hero-border: rgba(255, 255, 255, 0.15);
    /* Reflet léger */
    --couleur-hero-shadow: rgba(0, 0, 0, 0.4);
    /* Ombre plus marquée */
    --hero-bg-image: url('Sainte_victoire_dark.jpg');

    /* On décale un peu le jaune et le violet pour qu'ils poppent plus sur fond noir */
    --provence-violet: #A78BFA;
    --provence-jaune: #FDE047;
}

body {
    background-color: var(--couleur-fond);
    color: var(--couleur-texte);
    font-family: var(--police-texte);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

/* CLASSES OUTILS (Pour réparer la mise en page cassée !) */
.flex {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

/* ==========================================================================
   2. EN-TÊTE ET NAVIGATION (Effet Verre Moderne)
   ========================================================================== */
.navbar {
    height: 85px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 50px;
    background-color: transparent !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: none;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    box-shadow: none;
}

.logo img {
    height: 40px;
    width: auto;
    display: block;
    content: url('logo_noir.svg');
    transition: content 0.3s ease;
}

[data-theme="dark"] .logo img {
    content: url('logo_blanc.svg');
}

.logo a {
    font-family: var(--police-titre);
    font-size: 1.6rem;
    font-weight: 800;
    text-decoration: none;
    color: var(--provence-violet);
    /* Touche colorée */
    letter-spacing: 1px;
}

.menu-droite ul {
    display: flex;
    list-style: none;
    gap: 40px;
}

.menu-droite a {
    text-decoration: none;
    color: var(--couleur-texte);
    font-family: var(--police-titre);
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    /* Espace pour vos icônes FontAwesome */
}

.menu-droite a:hover {
    color: var(--provence-violet);
    transform: translateY(-2px);
}

/* Bouton Dark Mode Toggle */
#theme-toggle {
    font-size: 1.2rem;
    padding: 6px 12px;
    border-radius: 50%;
    color: var(--couleur-texte);
    background-color: transparent;
    transition: all 0.3s ease;
}

#theme-toggle:hover {
    color: var(--provence-jaune);
    transform: rotate(15deg) scale(1.1);
}

/* ==========================================================================
   2.5 RESPONSIVE MENU (Hamburger)
   ========================================================================== */
.menu-toggle {
    display: none;
    font-size: 1.8rem;
    color: var(--couleur-texte);
    cursor: pointer;
    transition: color 0.3s ease;
}

.menu-toggle:hover {
    color: var(--provence-violet);
}

@media screen and (max-width: 768px) {
    .navbar {
        padding: 0 20px;
    }

    .menu-toggle {
        display: block;
        /* Affiche le burger sur petit écran */
    }

    .menu-droite {
        position: fixed;
        top: 85px;
        /* Juste sous la navbar */
        right: -100%;
        /* Caché hors de l'écran par défaut */
        width: 100%;
        height: calc(100vh - 85px);
        background-color: var(--couleur-navbar-bg);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        /* Animation fluide slide */
        display: flex;
        justify-content: center;
        align-items: center;
        border-top: 1px solid var(--couleur-navbar-border);
    }

    .menu-droite.active {
        right: 0;
        /* Menu apparaît */
    }

    .menu-droite ul {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }

    .menu-droite a {
        font-size: 1.5rem;
        /* Liens beaucoup plus gros sur mobile */
    }

    #theme-toggle {
        font-size: 2rem;
        /* Bouton thème plus gros sur mobile */
    }
}

/* ==========================================================================
   3. HERO SECTION (Accueil)
   ========================================================================== */
#hero {
    height: 100vh;
    background-image: var(--hero-bg-image);
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Un filtre plus chaleureux pour rappeler le sud */
#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
}

.hero-texte {
    background-color: var(--couleur-hero-bg);
    padding: 50px 70px;
    text-align: center;
    border-radius: 0px;
    /* Arrondi légèrement plus grand, très iOS */
    /* Ombre principale profonde + reflet blanc sur le contour intérieur propre aux vitres d'Apple */
    box-shadow: 0 30px 60px var(--couleur-hero-shadow),
        inset 0 0 0 1px var(--couleur-hero-border);
    position: relative;
    z-index: 2;
    /* Flou beaucoup plus fort et saturation augmentée pour un vrai effet verre dépoli Apple */
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.hero-texte h1 {
    font-size: 4rem;
    font-family: var(--police-titre);
    font-weight: 800;
    color: var(--provence-violet);
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}

.hero-texte p {
    font-size: 1.3rem;
    color: var(--couleur-texte-secondaire);
    font-family: var(--police-texte);
    font-style: italic;
}

/* ==========================================================================
   4. TITRES GÉANTS (Réparation de l'alignement)
   ========================================================================== */
.section-titre-geants {
    padding: 8vw 0;
    overflow: hidden;
    background-color: var(--couleur-fond);
}

.inner-wrap {
    width: 100vw;
    margin: 0;
}

.gTitre {
    font-family: var(--police-titre);
    font-size: 7.5vw;
    font-weight: 400;
    line-height: 1.1;
    color: var(--provence-sable);
    white-space: nowrap;
}

.line-flex {
    display: flex;
    justify-content: center;
    /* RÉPARE LE DÉCALAGE SUR LA GAUCHE ! */
    overflow: hidden;
    width: 100%;
}

.split {
    display: inline-block;
    will-change: transform;
}

.gTitre.au {
    margin-right: 2vw;
    font-style: italic;
    font-family: var(--police-texte);
    color: var(--provence-bleu);
    /* Mot mis en valeur en bleu Provence */
}

/* Nécessaire pour Locomotive Scroll */
html.has-scroll-smooth {
    overflow: hidden;
}

html.has-scroll-dragging {
    user-select: none;
}

.has-scroll-smooth body {
    overflow: hidden;
}

/* ==========================================================================
   6. SECTION A PROPOS (BIO)
   ========================================================================== */
.section-bio {
    background-color: rgba(217, 181, 115, 0.1);
    padding-top: 120px;
    padding-bottom: 120px;
}

.inner-bio {
    width: 90vw;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}

.bio-image-col {
    width: 40%;
    position: relative;
}

.bio-text-col {
    width: 55%;
    padding-left: 5%;
}

@media (max-width: 768px) {

    .bio-image-col,
    .bio-text-col {
        width: 100%;
        padding-left: 0;
    }

    .bio-text-col {
        margin-top: 80px;
    }
}

/* Images en forme d'arche (Très éditorial) */
.brutal-cover {
    width: 100%;
    border-radius: 200px 200px 0 0;
    overflow: hidden;
    position: relative;
    box-shadow: 0 30px 60px rgba(175, 88, 185, 0.15);
    /* Ombre douce violette */
}

.brutal-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    aspect-ratio: 3 / 4;
}

.small-bio-pic {
    width: 50%;
    margin-top: -20%;
    margin-left: 60%;
    border-radius: 50%;
    border: 8px solid var(--couleur-fond);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.small-bio-pic img {
    aspect-ratio: 1 / 1;
}

.bio-title {
    font-size: 3.5rem;
    font-family: var(--police-titre);
    font-weight: 800;
    /* Plus impactant */
    color: var(--provence-violet);
    margin-bottom: 10px;
}

.style {
    font-family: var(--police-titre);
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--provence-vert);
    font-size: 0.9rem;
    margin-bottom: 30px;
}

.multi-col {
    column-count: 2;
    column-gap: 40px;
    margin-top: 30px;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--couleur-texte-secondaire);
}

.multi-col p {
    margin-bottom: 20px;
    break-inside: avoid;
}

@media (max-width: 768px) {
    .multi-col {
        column-count: 1;
    }
}

/* Bouton Moderne (Jaune soleil avec belle ombre) */
.btn-brutal {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
    padding: 16px 36px;
    background-color: var(--provence-jaune);
    color: #000;
    /* Contraste fort assumé */
    font-family: var(--police-titre);
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    border-radius: 50px;
    box-shadow: 0 10px 25px rgba(251, 191, 36, 0.5);
    /* Ombre jaune lumineuse vibrante */
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    /* Effet rebond très moderne */
}

.btn-brutal:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 35px rgba(246, 209, 10, 0.6);
}

/* ==========================================================================
   7. PAGE BIO (A propos)
   ========================================================================== */
.bio-header {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 85px;
    position: relative;
    background-color: var(--couleur-fond);
    overflow: hidden;
}

.bio-header-content {
    text-align: center;
    z-index: 2;
    max-width: 800px;
    padding: 0 5vw;
}

.bio-header h1 {
    font-size: 5vw;
    font-family: var(--police-titre);
    font-weight: 800;
    color: var(--provence-violet);
    margin-bottom: 20px;
    line-height: 1.1;
}

.bio-header p.subtitle {
    font-size: 1.5rem;
    color: var(--couleur-texte-secondaire);
    font-family: var(--police-texte);
    font-style: italic;
}

.bio-blob {
    position: absolute;
    background: radial-gradient(circle, var(--provence-jaune) 0%, transparent 70%);
    width: 800px;
    height: 800px;
    border-radius: 50%;
    opacity: 0.15;
    top: -200px;
    right: -200px;
    z-index: 1;
    filter: blur(60px);
}

.bio-content-section {
    padding: 100px 0;
    background-color: var(--couleur-fond);
}

.bio-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5vw;
    align-items: center;
}

.bio-text-large {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--couleur-texte);
    margin-bottom: 30px;
}

.bio-text-large strong {
    color: var(--provence-violet);
}

.bio-image-large {
    width: 100%;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
    position: relative;
}

.bio-image-large img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 4/5;
    object-fit: cover;
}

.bio-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(124, 58, 237, 0.4), transparent);
    mix-blend-mode: overlay;
}

.expertise-section {
    background-color: rgba(217, 181, 115, 0.1);
    padding: 120px 5vw;
}

.expertise-container {
    max-width: 1200px;
    margin: 0 auto;
}

.expertise-title {
    text-align: center;
    font-size: 3rem;
    font-family: var(--police-titre);
    color: var(--provence-sable);
    margin-bottom: 60px;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.expertise-card {
    background: var(--couleur-fond);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .expertise-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.expertise-card:hover {
    transform: translateY(-10px);
}

.expertise-icon {
    font-size: 2.5rem;
    color: var(--provence-vert);
    margin-bottom: 20px;
}

.expertise-card h3 {
    font-family: var(--police-titre);
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--couleur-texte);
}

.expertise-card p {
    color: var(--couleur-texte-secondaire);
    line-height: 1.6;
    font-size: 1rem;
}

.contact-cta {
    text-align: center;
    padding: 120px 5vw;
    background-color: var(--couleur-fond);
}

.contact-cta h2 {
    font-family: var(--police-titre);
    font-size: 3rem;
    color: var(--provence-violet);
    margin-bottom: 30px;
}

@media screen and (max-width: 900px) {
    .bio-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .bio-header h1 {
        font-size: 3rem;
    }
}

/* ==========================================================================
   8. FOOTER FANCY FADING (Moderne)
   ========================================================================== */
.section-dark {
    background-color: var(--provence-sable);
    color: #fff;
    padding-top: 80px;
    padding-bottom: 40px;
}

.fancy-footer {
    position: relative;
    width: 100%;
    margin-top: -15rem;
    padding-top: 15rem;
    padding-bottom: 5rem;
    color: var(--couleur-texte);
    /* Adaptatif */
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

/* On force certains textes internes au blanc par défaut SAUF si la variable color a changé en Light Mode */
.fancy-footer .col2 b,
.fancy-footer .col3 b {
    color: var(--couleur-texte) !important;
}

/* Backdrop du Footer - Adapte son dégradé au fond du site (Blanc ou Noir) */
.fancy-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    /* Dégradé calculé sur base blanche pour le Light Mode */
    background: linear-gradient(rgba(250, 250, 250, 0) 0%,
            rgba(250, 250, 250, 0.3) 20%,
            rgba(250, 250, 250, 0.6) 30%,
            rgba(250, 250, 250, 0.8) 40%,
            rgba(250, 250, 250, 1) 50%,
            rgb(250, 250, 250));
    z-index: -2;
    pointer-events: none;
    transition: background 0.3s ease;
}

[data-theme="dark"] .fancy-footer::before {
    /* Dégradé Dark Mode */
    background: linear-gradient(rgba(18, 18, 18, 0) 0%,
            rgba(18, 18, 18, 0.3) 20%,
            rgba(18, 18, 18, 0.6) 30%,
            rgba(18, 18, 18, 0.8) 40%,
            rgba(18, 18, 18, 1) 50%,
            rgb(18, 18, 18));
}

.footer-backdrop {
    z-index: -1;
    position: absolute;
    inset: 0;
    pointer-events: none;
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    mask-image: linear-gradient(transparent,
            rgba(0, 0, 0, 0) 50%,
            rgba(0, 0, 0, 0.5) 70%,
            rgba(0, 0, 0, 0.8) 85%,
            rgba(0, 0, 0, 1) 95%,
            black);
    -webkit-mask-image: linear-gradient(transparent,
            rgba(0, 0, 0, 0) 50%,
            rgba(0, 0, 0, 0.5) 70%,
            rgba(0, 0, 0, 0.8) 85%,
            rgba(0, 0, 0, 1) 95%,
            black);
}

.footer-content {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: stretch;
    width: 100%;
    max-width: 1200px;
    padding: 0 2vw;
    gap: 2rem;
    position: relative;
    z-index: 10;
}

.fancy-footer .col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    padding: 2.5rem;
    flex: 1;
}

/* Boîtes des colonnes : verre clair en Light Mode, verre sombre en Dark */
.fancy-footer .col2,
.fancy-footer .col3 {
    background-color: rgba(0, 0, 0, 0.03);
    border-radius: 2rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    /* Apple Glass touch clair */
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

[data-theme="dark"] .fancy-footer .col2,
[data-theme="dark"] .fancy-footer .col3 {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Typographie Footer */
.footer-logo {
    font-size: 3rem;
    font-family: var(--police-titre);
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--provence-violet);
    letter-spacing: 2px;
}

.footer-sub {
    font-family: var(--police-texte);
    font-size: 1.1rem;
    color: var(--couleur-texte-secondaire);
    margin-bottom: 2rem;
}

.fancy-footer p {
    margin-bottom: 1rem;
    font-family: var(--police-texte);
    font-size: 1.05rem;
}

.fancy-footer .link-act {
    color: var(--couleur-texte-secondaire);
    text-decoration: none;
    transition: all 0.3s ease;
}

.fancy-footer .link-act:hover {
    color: var(--provence-jaune);
}

.fancy-footer .social {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    gap: 1rem;
}

/* Icônes de réseaux sociaux */
.fancy-footer .link {
    width: 45px;
    height: 45px;
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    color: var(--couleur-texte-secondaire);
}

.fancy-footer .link:hover {
    background-color: rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
    color: var(--provence-violet);
}

[data-theme="dark"] .fancy-footer .link {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .fancy-footer .link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.totop {
    font-family: var(--police-titre);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--provence-violet);
    color: white !important;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.totop:hover {
    background: var(--provence-jaune);
    color: black !important;
}

@media screen and (max-width: 900px) {
    .footer-content {
        flex-direction: column;
        padding: 0 5vw;
    }

    .fancy-footer .col {
        width: 100%;
        margin-bottom: 1.5rem;
    }
}