/* --- 1. RESET & BASE --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body,
html {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    height: 100% !important;
    overflow: hidden;
    /* Bloque le scroll pour la transition par script */
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    background-color: #000000;
}

/* --- 2. STRUCTURE GLOBALE --- */
.site-wrapper {
    width: 100%;
    height: 100vh;
    margin: 0;
    padding: 0;
}

.screen-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    padding: 30px 50px 40px 50px;
    display: flex;
    flex-direction: column;
    transition: transform 0.8s cubic-bezier(0.65, 0, 0.35, 1);
    overflow-y: auto;
    /* Permet le scroll interne si le contenu dépasse (crucial pour mobile) */
    overflow-x: hidden;
}

/* --- 3. CONFIGURATION DE LA SECTION ACCUEIL (#HOME) --- */
#home {
    position: absolute;
    /* Change fixed par absolute pour que le site-wrapper le gère */
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    /* Force la hauteur de l'écran */
    display: flex;
    flex-direction: column;
    z-index: 1;
    overflow: hidden;
    /* Garde l'image cadrée */
}

#home .header-main #about .header-main {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    padding: 30px 50px !important;
    /* Ta valeur de référence */
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    z-index: 200 !important;
}

.brand-titles {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0px;
    /* Force l'espace entre les deux à zéro */
}

.brand-titles h1 {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 700 !important;
    font-size: 1.5rem !important;
    font-stretch: condensed !important;
    line-height: 0.9;
    text-transform: none;
    letter-spacing: 1px;
    color: #1F1F1F;
    margin: 0;
    padding: 0;
}

.brand-titles h2 {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-stretch: thin !important;
    font-weight: 350 !important;
    font-size: 0.8rem !important;
    line-height: 0.8;
    text-transform: none;
    letter-spacing: 1px;
    color: #1F1F1F;
    margin: 0;
    padding: 0;
}

/* Ajustement pour la page About (où le texte doit être clair) */
#home .brand-titles h1,
#home .brand-titles h2,
#home .brand-titles p,
#home .nav-btn {
    color: #F9F8F6
}

.hero-image-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Ces 4 directions forcent l'image à boucher tous les coins */
    z-index: 1;
    background-color: #000;
}

.hero-portrait {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* L'image remplit tout l'écran sans se déformer */
    object-position: center;
    display: block;
    filter: grayscale(100%);
    /* Garde l'aspect minimaliste noir et blanc si tu le souhaites */
}

/* Ajustement pour que le texte rouge ressorte bien sur la photo fixe */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
    /* Voile plus léger pour apprécier les images */
    z-index: 2;
    pointer-events: none;

}

.hero-keywords {
    position: absolute;
    top: 180px;
    /* Ajuste cette valeur pour que ce soit aligné avec ton logo */
    left: 50px;
    /* Même retrait que le logo (padding du header) */
    z-index: 10;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
    /* Écart entre les lignes */
    pointer-events: none;
}

.hero-keywords span {
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-stretch: condensed;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 2rem;
    /* Taille imposante comme sur ton mockup */
    color: #F9F8F6;
    line-height: 1.2;
    letter-spacing: -1px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* --- FOOTER SUR L'ACCUEIL --- */
.footer-home {
    position: absolute;
    bottom: 40px;
    right: 50px;
    z-index: 30;

}

/* --- 4. HEADER (LOGO & TITRES) --- */
#home .header-main,
#about .header-main {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    padding: 30px 50px !important;
    /* Ta valeur de référence */
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    z-index: 200 !important;
}

.brand-zone {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin: 0 !important;
}

.logo-wrapper {
    width: 70px;
    height: auto;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.site-logo {
    width: 100%;
    height: auto;
    display: block;
}

.brand-titles h1 {
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-size: 2rem;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 4px;
    letter-spacing: -0.5px;
}

.nav-btn {
    background: none;
    border: none;
    font-family: inherit;
    font-stretch: condensed;
    font-weight: 700;
    font-size: 1.3rem;
    cursor: pointer;
    text-transform: uppercase;
    color: inherit;
    letter-spacing: 0.5px;
    margin-top: 5px;
    transition: opacity 0.3s ease;
}

.nav-btn:hover {
    opacity: 0.5;
}

/* --- 5. FOOTER PAGE HOME --- */
.footer-home {
    position: relative;
    z-index: 10;
    margin-top: auto;
    display: flex;
    justify-content: flex-end;
}

.footer-right-group {
    display: flex;
    gap: 80px;
    /* Grand espace sur ordinateur */
    text-align: left;
    color: white;
}

.footer-col h3 {
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-stretch: condensed;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1rem;
    margin-bottom: 5px;
}

.footer-col p {
    font-size: 0.85rem;
    line-height: 1.2;
    color: rgba(255, 255, 255, 0.9);
}

.social-logo {
    height: 20px;
    margin-top: 4px;
    filter: brightness(0) invert(1);
}

/* --- 6. SECTION ABOUT (#ABOUT) --- */
#about {
    z-index: 100;
    background-color: #F9F8F6;
    color: #1F1F1F;
    transform: translateY(100%);
    position: absolute;
    inset: 0;
    width: 100%;
    /* CORRECTIF GAP : On passe en hauteur auto avec scroll */
    height: 100vh;
    min-height: 100vh;
    overflow-y: auto !important;
    display: block !important;
    /* Supprime l'espacement automatique entre blocs */
    padding: 0 !important;
}

#about.is-visible {
    transform: translateY(0);
}

/* LA STRUCTURE QUI ALIGNE LE TEXTE ET LE BIO */
.about-grid-layout {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    margin-top: 120px !important;
    /* Espace pour laisser le logo fixe en haut */
    width: 100%;
    /* Aligné sur le header */
}


/* LE TITRE BIO : On le pousse juste assez */
.about-title-side {
    width: auto;
    margin-left: 82px !important;
    margin-right: 10px;
    /* C'EST ICI : augmente pour l'éloigner, baisse pour le coller */
    padding-top: 50px;
    flex-shrink: 0;
    /* Pour l'aligner avec la première ligne de texte */
}

.about-text-side {
    display: flex !important;
    flex-direction: row !important;
    /* C'est ce qui met la citation à DROITE */
    align-items: flex-start !important;
    /* Aligne le haut du texte et le haut de la citation */
    gap: 60px !important;
    /* L'espace entre ton texte et ta citation */
}

.vertical-bio-title {
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-stretch: condensed;
    font-weight: 700;
    font-size: 1.9rem;
    text-transform: uppercase;
    color: #1F1F1F;
    margin: 0;
    padding: 0;
    white-space: nowrap;
}

/* TES PARAGRAPHES */

.section-title-container {

    width: 220px;
    margin-left: 82px;
    margin-right: 40px;

}

.bio-paragraphs {
    display: grid !important;
    /* On passe la 2ème colonne de 300px à 600px pour donner de la place au texte */
    grid-template-columns: 688px max-content !important;
    column-gap: 65px !important;
    justify-content: start !important;
    width: 100% !important;
    overflow: visible !important;
}

.bio-paragraphs p {
    font-size: 0.9rem;
    line-height: 1.2;
    max-width: 600px;
    /* Largeur fixe de ton texte */
    /* Ta marge à gauche */
    grid-template-columns: 1.5fr 1fr;
    text-align: justify;
    align-items: flex-start;
    flex: 0 0 550px !important;
}

.hero-statement.condensed-bold {
    grid-column: 2;
    /* TES RÉGLAGES EXACTS CONSERVÉS */
    font-family: "Helvetica Neue", Arial, sans-serif !important;
    font-stretch: condensed !important;
    font-weight: 700 !important;
    font-size: 1.5rem !important;
    line-height: 1.1 !important;
    /* Un peu réduit pour l'effet bloc compact */
    margin-top: 48px !important;
    color: #1F1F1F !important;

    /* TON POSITIONNEMENT RÉUSSI */
    text-align: left !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 20px !important;

    /* TA LARGEUR DE BLOC */
    width: 100% !important;
    max-width: 270px !important;
    text-align: left !important;

    /* STRUCTURE POUR L'ALIGNEMENT DES LIGNES */
    flex-direction: column !important;
}

/* --- 7. NOUVELLE SECTION RÉALISATIONS --- */

.realisations-section {
    display: flex;
    justify-content: flex-start;
    /* Aligne le titre à gauche et le reste suit */
    gap: 50px;
    /* Espace entre le titre et le début des colonnes */
    margin-top: 60px;
    margin-bottom: 0px;
    width: 100%;
    gap: 50px;
}

.realisations-title {

    width: 220px;
    margin-left: 82px;
    margin-right: 40px;

}

.realisations-title h2 {
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-stretch: condensed;
    font-weight: 700;
    font-size: 1.9rem;
    text-transform: uppercase;
    letter-spacing: -1px;
    width: fit-content !important;
}

.realisations-grid {
    display: flex;
    flex: 1;
    /* Prend tout l'espace restant à droite */
    justify-content: space-between;
    /* Distribue les 3 colonnes sur la droite */
    gap: 20px;
    margin-left: 80px !important;
}

.realisations-col {
    flex: 1;
    text-align: left;
    /* Alignement à gauche comme sur le mockup rouge */
    white-space: nowrap;
}

.realisations-col h4 {
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-weight: 900;
    font-size: 1.1rem;
    text-transform: uppercase;
    margin-bottom: 5px;
    color: #1F1F1F;
}

.realisations-col p {
    font-size: 0.85rem;
    line-height: 1.3;
    color: #1F1F1F;
    display: block;
    margin-top: 5px;
}


/* --- CARROUSEL PRESSE (VERSION FINALE NETTOYÉE) --- */
.revue-de-presse-container {
    display: block;
    flex-direction: column;
    /* On empile le titre et le carrousel */
    width: 100% !important;
    margin-top: 5px !important;
    align-items: center;
    overflow: hidden;
}

.revue-title-zone {
    width: 100%;
    padding-left: 0;
    margin-bottom: 10px;
    display: flex;
    justify-content: flex-start;
    margin-left: 49px;
}

.revue-de-presse-section {
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-stretch: condensed;
    font-weight: 700;
    font-size: 1.9rem;
    text-transform: uppercase;
    letter-spacing: -1px;
    width: auto;
    display: inline-block;

}

.revue-de-presse-container {
    width: 100%;
    overflow: visible;
    /* Permet au carrousel de sortir des limites si besoin */
}

.press-carousel-container {
    /* TECHNIQUE BORD À BORD SANS GRILLE */
    width: 100vw !important;
    position: relative !important;
    left: 50% !important;
    transform: translateX(-50%) !important;

    height: 250px !important;
    background-color: #F9F8F6;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    /* Garde les logos à l'intérieur du bandeau */
    line-height: 0;
}

/* On s'assure que rien ne bloque à l'intérieur */
.press-track {
    display: flex !important;
    height: 100% !important;
    width: max-content !important;
    animation: scrollPress 45s linear infinite;
}

.press-item {
    height: 100% !important;
    flex-shrink: 0;
}

.press-item img {
    height: 100% !important;
    max-height: 100% !important;
    width: auto !important;
    display: block;
    object-fit: contain !important;
    opacity: 0.9;
    filter: grayscale(100%);
    /* Force le Noir et Blanc */
    transition: all 0.3s ease;
}

.press-carousel-container:hover .press-track {
    animation-play-state: paused;
}

/* 3. Au survol d'un logo précis : COULEUR + OPACITÉ 100% */
.press-item:hover img {
    filter: grayscale(0%);
    /* Retire le Noir et Blanc */
    opacity: 1;
    /* Devient totalement net */
}

#btn-to-home.close-btn {
    /* On annule le position: fixed qui la décalait */
    position: relative !important;
    top: auto !important;
    right: auto !important;

    /* On utilise exactement le même style que .nav-btn */
    font-family: inherit;
    font-stretch: condensed;
    font-weight: 700;
    font-size: 2rem !important;
    /* Taille de la croix */
    line-height: 0.5 !important;
    /* Pour la centrer verticalement avec le logo */
    cursor: pointer;
    background: none !important;
    border: none !important;
    color: #1F1F1F !important;
    padding: 0 !important;
    margin-top: -10px;
    transition: opacity 0.3s ease;
}

#btn-to-home.close-btn:hover {
    opacity: 0.5;
}

.about-footer {
    width: 100%;
    padding: 7px 5px 3px 0;
    /* Aligné sur ta marge de droite de 50px */
    display: flex;
    justify-content: flex-end;
    /* Pousse le texte à droite */
    background-color: #F9F8F6;
    /* Même fond que la section About */
}

.about-footer p {
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-size: 0.75rem;
    font-weight: 400;
    color: #1F1F1F;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* L'animation de défilement */
@keyframes scrollPress {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}


@media (max-width: 768px) {

    #home .header-main {
        padding-top: calc(env(safe-area-inset-top) + 20px) !important;
        padding-left: 15px !important;
    }

    .hero-portrait {
        /* Le premier chiffre est l'axe X (gauche/droite), le second est l'axe Y (haut/bas) */
        object-position: 59% 20% !important;
    }

    /* On ajuste le texte rouge pour qu'il ne soit pas énorme */
    .hero-keywords {
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
        padding: 140px 20px 40px !important;
        /* Espace sous le header */
        margin: 0 !important;
    }

    .logo-wrapper {
        width: 50px !important;
        /* Réduit de 70px à 45px sur mobile */
    }

    .brand-titles h1 {
        font-size: 1.1rem !important;
        /* On réduit la taille pour que ça tienne */
        white-space: nowrap;
        /* Empêche le nom de se couper */
    }

    .brand-titles h2 {
        font-size: 0.7rem !important;
        /* On réduit le titre */
        white-space: nowrap;
        /* Empêche "Consultant Communication" de passer sur 2 lignes */
    }

    /* Optionnel : réduire l'écart avec le logo pour gagner de la place */
    .brand-zone {
        gap: 8px !important;
    }

    .hero-keywords span {
        font-size: 1.3rem !important;
        line-height: 1.2;
    }

    .hero-keywords span {
        font-size: 1.8rem !important;
        /* Augmente cette valeur selon ton besoin */
        line-height: 1.1 !important;
        /* On resserre l'interligne pour garder l'aspect bloc */
        letter-spacing: -1px !important;
    }

    /* On débloque le footer pour qu'il s'affiche sous le texte */
    .footer-home {
        position: relative !important;
        /* Il suit le texte au lieu d'être fixé */
        bottom: auto !important;
        right: auto !important;
        left: 0 !important;
        padding: 20px 20px 60px 20px !important;
        margin-top: auto !important;
        /* Pousse vers le bas */
        display: block !important;
    }

    /* On force l'empilement vertical des 3 blocs */
    .footer-right-group {
        flex-direction: column !important;
        gap: 20px !important;
        /* Espace entre chaque bloc */
        align-items: flex-start !important;
        width: 100% !important;
    }

    /* On réduit la taille des titres du bas */
    .footer-col h3 {
        font-size: 0.95rem !important;
        margin-bottom: 8px;
    }
}

/* ==========================================================================
   VERSION MOBILE (Smartphone)
   ========================================================================== */
@media (max-width: 768px) {

    /* Aligner le header mobile comme sur la Home */
    #home .header-main,
    #about .header-main {
        padding: 20px 15px !important;
    }

    /* Empiler le contenu About */
    .about-grid-layout {
        flex-direction: column !important;
        margin-top: 40px !important;
        padding: 0 15px !important;
        gap: 1px !important;
    }

    #btn-to-home.close-btn {
        font-size: 1.8rem !important;
        margin-right: 0 !important;
        /* Aligné sur le bord du padding 15px */
    }

    /* 3. Harmoniser les titres BIO et RÉALISATIONS (Même taille) */
    .vertical-bio-title,
    .realisations-title h2 {
        font-family: "Helvetica Neue", Arial, sans-serif !important;
        font-stretch: condensed !important;
        font-weight: 700 !important;
        font-size: 1.5rem !important;
        text-transform: uppercase !important;
        letter-spacing: -1px !important;
        line-height: 1 !important;
        margin-left: 0 !important;
        text-align: left !important;
        border-bottom: none !important;
        /* Pas de trait noir */
    }

    .about-title-side,
    .about-text-side,
    .bio-paragraphs,
    .bio-paragraphs p,
    .realisations-title h2,
    .realisations-grid,
    .revue-de-presse-section {
        margin-left: 0 !important;
        padding-left: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    /* RÉGLAGE SPÉCIFIQUE DU TEXTE POUR LA LISIBILITÉ */
    .bio-paragraphs {
        display: block !important;
        /* On annule la grille de 688px qui faisait déborder */
    }

    .bio-paragraphs p {
        display: block !important;

        /* RÉGLAGE JUSTIFIÉ */
        text-align: justify !important;
        text-justify: inter-word !important;
        /* Optimise l'espace entre les mots */
        hyphens: auto !important;
        /* Ajoute des tirets si un mot est trop long */
        -webkit-hyphens: auto;

        font-size: 1rem !important;
        line-height: 1.4 !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .realisations-section {
        display: block !important;
        margin-top: 70px !important;
        padding: 0 15px !important;
        /* REDONNE DE L'AIR SUR LES CÔTÉS */
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .realisations-title {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
    }

    .realisations-title h2 {
        margin-left: 0 !important;
        font-size: 1.5rem !important;
        width: 100%;
        padding-bottom: 8px;
        margin-bottom: 25px !important;
        /* Espace sous la ligne noire */
        text-align: left !important;
    }

    .realisations-grid {
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
    }

    .realisations-col {
        display: block !important;
        width: 100% !important;
        margin-bottom: 35px !important;
        /* Espace entre les catégories */
        text-align: left !important;
    }

    .realisations-col h4 {
        font-size: 1.1rem !important;
        margin-bottom: 10px !important;
        letter-spacing: 0.5px;
    }

    .realisations-col p {
        font-size: 0.95rem !important;
        line-height: 1.5 !important;
        margin: 0 !important;
        margin-bottom: 0 !important;
        /* Supprime la marge sous Sidaction */
        padding-bottom: 0 !important;
    }

    /* RÉGLAGE DE LA CITATION */
    .hero-statement.condensed-bold {
        display: flex;
        flex-direction: column !important;
        margin-left: 0 !important;
        padding-left: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-top: 30px !important;
        align-items: center !important;
        /* Centre horizontalement le contenu du flex */
        text-align: center !important;
    }

    /* 6. Revue de presse */
    .revue-title-zone {
        /* Même espacement que le logo et la bio */
        display: flex !important;
        justify-content: flex-start !important;
        width: 100% !important;
        margin-top: 5px !important;
        margin-left: 20px !important;
    }

    .revue-de-presse-section {
        margin-left: 0 !important;
        padding-left: 0 !important;
        font-size: 1.5rem !important;
        text-align: left !important;
        width: 100% !important;
    }

    .press-carousel-container {
        height: 160px !important;
        /* Moins haut sur mobile */
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }

    .press-logo,
    .press-carousel-container img,
    .press-item img {
        filter: none !important;
        -webkit-filter: none !important;
        mix-blend-mode: normal !important;
        /* Enlève les effets de fusion */
        opacity: 1 !important;
        background: none !important;
        /* Au cas où un fond gris serait appliqué */
    }

    /* 7. Footer About */
    .about-footer {
        justify-content: center !important;
        /* Centré c'est mieux sur mobile */
        margin-top: 5px !important;
        /* "Pratiquement collé" mais garde un micro-espace de respiration */
        padding-top: 0 !important;
        margin-bottom: 0px !important;
        /* Espace minimal avec le bord de l'écran */
    }

    .about-footer p {
        font-size: 0.6rem !important;
        text-align: center;
    }
}


h2 {

    font-family: "Helvetica Neue", Arial, sans-serif !important;
    font-stretch: condensed !important;
    font-weight: 700 !important;
    font-size: 1.5rem !important;
    line-height: 1.1 !important;

}

.about-grid {

    margin-top: 120px;

}

.about-grid-section {

    display: grid;
    grid-template-columns: 220px 1fr;
    margin-left: 49px;
    margin-right: 49px;
    margin-bottom: 40px;

}

.realisations-content {

    display: flex;
    gap: 40px;

}

.realisations-content-col {

    width: calc(300px - 20px);

}

@media (max-width: 1000px) {

    .realisations-content {

        flex-direction: column;
        gap: 40px;

    }

    .about-grid-section {

        grid-template-columns: 1fr;

    }

    h2 {

        margin-bottom: 20px;

    }

}

@media (max-width: 768px) {


    .about-grid-section {

        grid-template-columns: 1fr;
        margin-left: 20px;
        margin-right: 20px;

    }

    .revue-title-zone {

        margin-left: 20px;

    }


}

@media (max-width: 1200px) {

    .hero-statement {
        display: none;
    }

    .bio-paragraphs {

        grid-template-columns: none !important;

    }

a[href^="tel"] {
    color: white !important; 
    text-decoration: none !important;
}
}