/* VARIABLES & RESET */
:root {
    --bg-portfolio: #fdf7e4;
    --bg-accent: #C8D1CC;
    --bg-btn: #730217;
    --text-color: #0D0D0D;
    --font-label: 'DM Sans', sans-serif;
    --header-height: 90px; /* Hauteur de la barre */
    --hover-color: #A60303;
    --accent-orange: #BF9004;
    --secteur-color: #730217;
}

html {
 scroll-behavior: smooth;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* body {
    background-color: var(--bg-portfolio);
    font-family: var(--font-label);
    margin: 0;
    padding: 0;
} */

body {
    background-color: var(--bg-portfolio);
    font-family: var(--font-label);
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.font-italic {
    font-style: italic;
}

/* --- 2. BANDEAU INFO PROJET --- */
.project-info-bar {
    /* Mise en page Flex pour les 3 colonnes */
    display: flex;
    justify-content: space-between;
    align-items: center;
    
    /* Les lignes orange */
    border-top: 1px solid var(--accent-orange);
    border-bottom: 1px solid var(--accent-orange);
    
    /* Espacements */
    margin: 0 3rem; /* Marges latérales identiques au header */
    padding: 1.5rem 0; /* Hauteur intérieure du bandeau */
    margin-bottom: 3rem; /* Espace avant le titre suivant */
    
    font-size: 1rem;
}

.mt-1 {
    margin-top: 1rem;
}
.mt-2 {
    margin-top: 2rem;
}
.mt-5 {
    margin-top: 5rem;
}
.p-3 {
    padding: 3rem;
}

.text-left {
    text-align: left;
}

/* --- SYSTÈME "LIRE LA SUITE" --- */

/* 1. L'état par défaut : le contenu supplémentaire est caché */
.more-content {
    display: none;
    /* Optionnel : petit effet de fondu à l'apparition */
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* 2. L'état "déplié" : quand le conteneur parent a la classe .expanded */
/* Le Javascript ajoutera cette classe 'expanded' au clic */
.expandable-text-container.expanded .more-content {
    display: inline; /* S'affiche à la suite du texte */
    opacity: 1;
}

/* 3. Style du bouton "Lire la suite" */
.read-more-btn {
    background: none;
    border: none;
    padding: 0;
    margin-top: 2rem;
    color: #8b5a3c; 
    font-family: inherit;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: underline dashed;
    text-underline-offset: 3px;
    transition: color 0.3s ease;
}

.read-more-btn:hover {
    color: #6f462e; /* Un marron un peu plus foncé au survol */
}

/* --- CONTENEUR GLOBAL DU SOUS-MENU --- */
.portfolio-submenu-container {
    max-width: 1400px;
    margin: 0 auto 2rem auto; /* Marge haut/bas */
    padding: 0 5%; /* Alignement avec le reste du site */
    /* font-family: 'Helvetica', 'Arial', sans-serif; */
}

/* --- LE MENU ALIGNÉ À DROITE --- */
.submenu-nav {
    display: flex;
    justify-content: flex-end; /* C'est ici qu'on pousse tout à droite */
    margin-bottom: 1.5rem; /* Espace avant la ligne de séparation */
}

.submenu-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 0.5rem; /* Espace entre les éléments */
    font-size: 0.95rem;
    font-weight: 400;
}

.submenu-list li {
    display: flex;
    align-items: center;
    color: #000;
}

/* Les liens */
.submenu-list a {
    text-decoration: none;
    color: #000;
    transition: opacity 0.3s ease;
}

/* Effet au survol */
.submenu-list a:hover {
    opacity: 0.6;
}


@media (min-width: 1400px) and (max-width: 1599.98px) {
    
    .big {
        font-size: 6rem;
    }
}

/* --- SECTION EXPERTISE --- */

/* .portfolio-bg{
  background-repeat: no-repeat;
  transform: translateZ(0);
} */

.expertise-section {
    padding: 6rem 0; /* Marges comme le reste du site */
    background-color: var(--bg-portfolio);
    border-top: 1px solid var(--text-color); /* La ligne noire du haut comme sur l'image */
}

/* Titre principal en haut à droite */
.expertise-header-row {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 6rem;
    padding-left: 3rem;
}

.expertise-main-title {
    font-family: var(--font-label);
    font-size: 6rem;
    line-height: 1.1;
    /* text-transform: uppercase; */
    /* text-align: right; */
    font-weight: 400;
    /* max-width: 800px; */
    margin: 0;
}

/* La Grille Principale */
.expertise-container {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 50% Gauche / 50% Droite */
    gap: 4rem;
    align-items: start;
    border-top: 3px solid var(--text-color); /* Ligne de séparation interne */
    padding: 6rem 2rem;
    /* text-transform: uppercase; */
}

/* --- COLONNE GAUCHE (Contenu) --- */
.expertise-display {
    min-height: 300px; /* Évite que ça saute quand on change d'onglet */
}

/* Masquer les contenus non actifs */
.tab-content {
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Afficher le contenu actif */
.tab-content.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
    margin-top: 1.25rem;
}

.tab-label {
    display: block;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.tab-title {
    font-family: var(--font-label);
    font-size: 2.85rem; /* Très gros titre comme "IDEATE" */
    font-weight: 400;
    text-transform: uppercase;
    margin: 0 0 2rem 0;
    line-height: 1;
}

.tab-text {
    font-size: 2rem;
    line-height: 1.6;
    max-width: 90%;
    margin-bottom: 2rem;
    color: var(--text-color);
    text-transform: initial;
}

 .tab-link {
    /* font-family: 'Courier New', monospace;
    text-decoration: none;
    font-weight: bold;
    color: var(--secteur-color, #d3541e);
    border-bottom: 1px solid transparent; /* Pour le soulignement au survol */
    transition: border-color 0.3s;
    font-size: 1.5rem;
    font-weight: 700 !important;
  padding: 1.25rem 3rem !important;
}

.tab-link:hover {
    border-color: var(--secteur-color);
}

/* --- COLONNE DROITE (Navigation) --- */
.expertise-nav {
    display: flex;
    flex-direction: column;
    max-width: 90%;
}

.nav-btn {
    background: none;
    border: none;
    border-bottom: 1px solid var(--accent-orange);
    padding: 1.5rem 0;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    /* group: pointer; */
}

/* Le premier item a aussi une bordure en haut ? Optionnel */
/* .nav-btn:first-child { border-top: 1px solid #ddd; } */

.nav-btn .btn-text {
    font-family: var(--font-label);
    font-size: 3rem;
    font-weight: 300;
    color: var(--secteur-color); /* Gris par défaut */
    transition: color 0.3s ease;
    text-transform: uppercase;
}

.nav-btn .btn-icon {
    font-size: 3.5rem;
    font-weight: 300;
    color: var(--accent-orange);
    transition: transform 0.3s ease, color 0.3s ease;
}

/* ÉTAT ACTIF (Au clic) */
.nav-btn.active .btn-text {
    color: var(--text-color); 
    font-weight: 700;
}

.nav-btn.active .btn-icon {
    transform: rotate(45deg); /* Le + devient un x */
    color: #121D59;
}

.nav-btn:hover .btn-text {
    color: #000;
}

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 1024px) {
    .expertise-header-row {
        justify-content: flex-start;
        margin-bottom: 3rem;
        padding-left: 2rem;
    }
    .expertise-main-title {
        font-size: 3.5rem;
        text-align: left;
        font-weight: bold;
    }

    .expertise-container {
        grid-template-columns: 1fr; /* 1 seule colonne */
        gap: 3rem;
        /* padding-top: 2rem; */
    }

    .expertise-section {
  padding: 3rem 0;
}

    /* On inverse l'ordre : Navigation en premier, Contenu en dessous */
    .expertise-nav { order: 1; }
    .expertise-display { order: 2; }

    .tab-title { font-size: 2.5rem; }
    
    .nav-btn { padding: 1rem 0; }
    .nav-btn .btn-text { font-size: 1.2rem; }
}

/* Style de l'élément actif (Gras ?) */
.submenu-list a.active {
    font-weight: 700; /* Ou border-bottom si vous préférez */
}

/* --- LES SÉPARATEURS SLASH (/) --- */
/* On ajoute un '/' après chaque élément SAUF le dernier */
.submenu-list li:not(:last-child)::after {
    content: "/";
    margin-left: 0.5rem; /* Espace après le mot */
    font-weight: 300;
    color: #000;
}

/* --- LA LIGNE DE SÉPARATION --- */
.submenu-nav {
    /* width: 100%; */
    /* height: 1px; */
    border-top: 1px solid var(--accent-orange);
    border-bottom: 1px solid var(--accent-orange);
    /* background-color:  var(--accent-orange); */
    padding: 1.5rem 0; /* Espace vertical pour aérer la ligne */
    margin-bottom: 6rem;
}

/* --- LE LABEL "TOUS SECTEURS" (EN DESSOUS À GAUCHE) --- */
.current-filter-label {
    text-align: left;
    font-size: 0.9rem;
    color: #000;
    font-weight: 700;
}

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 768px) {
 .tab-text {
        font-size: 1.5rem;
    }
    .tab-link {
        padding: 1rem 2rem !important;
        font-size: 1.15rem;
    }
    .submenu-nav {
        justify-content: flex-start; /* Sur mobile, on remet tout à gauche */
        margin-bottom: 3rem;
    }
    
    .portfolio-submenu-container {
        margin-top: 2rem;
    }
}

/* --- GRILLE DE PROJETS (3 colonnes) --- */

.portfolio-grid {
    display: grid;
    /* 3 colonnes de largeur égale */
    grid-template-columns: repeat(3, 1fr); 
    /* Espacement entre les cases (Gouttière) */
    gap: 6rem; /* Environ 32px, ajustez selon vos goûts */
    
    /* Largeur max pour ne pas que ça soit trop large sur les écrans géants */
    /* max-width: 1400px; */
    margin: 3rem auto; /* Centre la grille */
    padding: 0 3%; /* Marge interne sur les côtés */
}

/* --- CONFIGURATION GLOBALE DE LA BOITE --- */
.portfolio-item {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1; /* Force le format carré parfait */
    overflow: hidden;    /* Empêche l'image de dépasser au zoom */
    display: block;
    min-height: 300px; /* Évite que les cases soient trop petites sur mobile */
}

.portfolio-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
    position: relative;
}

/* --- L'IMAGE D'ARRIÈRE-PLAN --- */
.portfolio-bg {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center; /* Cadré haut pour voir le visage/buste */
    background-repeat: no-repeat;
    transition: transform 0.6s ease; /* Transition douce pour le zoom */
    z-index: 0;
}

/* --- BOUTON CONTACT STYLE "PILULE" --- */

.contact-section {
 padding: 2rem;
}

.main-navigation .btn-contact,
.cta .btn-contact,
.submit-btn,
.tab-link,
.footer-inner .btn-contact {
    color: #1b1b1b;
    border-radius: 51px;    /* Bords très arrondis (pilule) */
    border: 1px solid var(--accent-orange);
    
    /* Espacements */
    padding: 0.6rem 3rem;   /* Ajustez selon la taille voulue */
    
    /* Flexbox pour aligner le point et le texte */
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;            /* Espace entre le point et le texte */
    
    /* Typo */
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    
    /* Annule le soulignement au survol des autres liens */
    position: relative;
}

/* Le petit point blanc */
.btn-contact .dot,
.submit-btn .dot,
.tab-link .dot,
.footer-inner .dot {
    display: block;
    width: 12px;
    height: 12px;
    background-color: #1f1f1f;
    border-radius: 50%; /* Rend le carré rond */
}

/* --- EFFETS AU SURVOL --- */

/* 1. Pas de trait de soulignement sous ce bouton */
.main-navigation .btn-contact::after {
    display: none; 
}

/* 2. Changement de couleur au survol (Optionnel) */
.main-navigation .btn-contact:hover,
.cta .btn-contact:hover {
    background-color: var(--hover-color); /* Gris très foncé */
    /* transform: translateY(-2px); */
    color: #fff; /* Garde le texte blanc */
}


/* --- LA BOITE DE CONTENU (CRÈME) --- */
.portfolio-content {
    position: absolute;
    z-index: 1;
    background-color: #F9F5EA;
    
    /* Positionnement : on laisse une marge pour voir l'image (l'effet cadre) */
    top: 6%;
    bottom: 6%;
    left: 6%;
    right: 6%;
    
    padding: 3rem; /* Espace interne du texte */
    box-sizing: border-box;
    
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Ecarte le haut (titre) du bas (expertise) */
    text-align: left;
    border-radius: 21px;
    border: 1px solid var(--text-color);
}

.portfolio-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Magique : recadre l'image exactement comme background-size: cover */
    object-position: center center;
    z-index: 0;
    transition: transform 0.6s ease;
    display: block;
}

/* --- TYPOGRAPHIE --- */
.project-nature {
    font-family: inherit; /* Votre font principale */
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.2;
    margin: 0 0 1.5rem 0; /* Marge sous le titre */
}

.client-sector {
    font-family: inherit;
    font-size: 1.125rem;
    font-weight: 400;
    color: #333;
    line-height: 1.3;
    margin: 0;
}

.project-expertise {
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent-orange);
    /* text-decoration: underline;
    text-underline-offset: 4px; 
    text-decoration-thickness: 1px; */
    text-transform: uppercase;
}

/* --- EFFET HOVER (SURVOL) --- */
/* Quand on survole l'item, l'image de fond grandit un peu */
.portfolio-item:hover .portfolio-bg {
    transform: scale(1.1);
}

/* --- RESPONSIVE (MOBILE) --- */
@media (max-width: 768px) {
    .portfolio-content {
        padding: 1.75rem;
        /* Sur mobile, on peut réduire un peu le cadre si on veut plus de place */
        /* top: 3%; bottom: 3%; */
        left: 11%;
        right: 11%;
        border-radius: 21px; /* On arrondit les coins pour un look plus doux sur mobile */
    }

    /* On réduit la marge sous le menu de filtres */
    .portfolio-submenu-container {
        margin-bottom: 1rem; /* Ajustez cette valeur (ex: 0.5rem pour moins d'espace) */
        padding-bottom: 0;   /* On s'assure qu'il n'y a pas de padding inutile */
    }

    .client-sector {
        font-size: 1.125rem;
    }
    
    .project-nature {
        font-size: 3.5rem;
        line-height: .9;
        margin-bottom: 2rem;
    }
    .content-top {
        margin-top: 3rem;
    }
}

/* --- RESPONSIVE : TABLETTE (2 colonnes) --- */
@media (max-width: 1024px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

/* --- RESPONSIVE : MOBILE (1 colonne) --- */
@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: 1fr; /* Une seule colonne qui prend toute la place */
        gap: 3rem; /* On garde de l'espace vertical entre les projets */
        padding: 0;
        margin-top: 0;       /* Colle la grille au menu */
        padding-top: 0;
    }
}

.mb-6 {
    margin-bottom: 6rem;
} 

/* --- BOX CONTACT (Composant) --- */

.contact-box {
    /* Dimensions et Espacement */
    /* background-color: #fffbf2; */
    /* border: 1px solid #eecfa1; */
    /* border-radius: 12px; */
    padding: 0 2rem 2rem; /* Espace interne aéré */
    
    /* Mise en page Flex */
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Aligne tout à gauche */
    gap: 2rem; /* Espace entre icône, texte et bouton */
    
    /* Largeur */
    width: 100%;
    max-width: 330px; /* Largeur max pour garder l'élégance */
    margin: 0 auto; /* Centré si le parent est plus large */
    box-sizing: border-box;
}

.contact-cta-box {
    padding: 0; 
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    /* max-width: 600px; */
    box-sizing: border-box;
}

/* Création du signe "+" */
.plus-icon {
    position: relative;
    width: 50px;
    height: 50px;
    margin-bottom: 0.5rem;
    filter: drop-shadow(-4px 4px 0px #121D59);
}

.plus-icon::before,
.plus-icon::after {
    content: '';
    position: absolute;
    background-color: #D9A404;
    
    /* IMPORTANT : On retire le box-shadow individuel et les z-index */
    /* box-shadow: none; */
}

/* La barre VERTICALE */
.plus-icon::before {
    width: 21px;
    height: 111px;
    right: 66px; /* (50 - 10) / 2 */
    top: 0;
}

/* La barre HORIZONTALE */
.plus-icon::after {
    width: 50px;
    height: 10px;
    left: 0;
    top: 20px; /* (50 - 10) / 2 */
}

/* Le Texte */
.contact-text {
    font-family: var(--font-label, sans-serif);
    font-size: 2.5rem;
    font-weight: 500;
    line-height: 1;
    color: var(--text-color);
    margin: 0;
    padding: 0;
}

/* Le Bouton */
.contact-btn {
    display: block;
    width: 100%;
    /* background-color: var(--bg-btn); */
    color: var(--text-color);
    text-decoration: none;
    text-align: center;
    padding: 1rem 0;
    border: 1px solid var(--text-color);
    border-radius: 51px;
    font-weight: 500;
    font-size: 1.1rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
}
.contact-btn-cta {
    display: block;
    width: 100%;
    /* background-color: #8b5a3c; */
    /* color: #333232; */
    border: 1px solid var(--accent-orange);
    text-decoration: underline dashed;
    /* text-align: center; */
    padding: 2rem;
    font-weight: 600;
    /* font-size: 1rem; */
    transition: background-color 0.3s ease, transform 0.2s ease;
}

/* Effet au survol du bouton */
.contact-btn:hover,
.contact-btn-cta:hover {
    background-color: #121D59;
    color: #c6f6d5;
    /* transform: translateY(-2px); */
}

.border-radius-left-21 {
    border-top-left-radius: 21px;
    border-bottom-left-radius: 21px;
}

.border-top {
    border-top: 1px solid var(--secteur-color);
}

.small {
    font-size: 0.875rem;
    color: #666;
    font-style: italic;
    /* margin-top: 3rem; */
}

/* Styles spécifiques du texte */
.text-orange {
    color: var(--secteur-color);
    font-weight: 400;
}

.info-center {
    font-weight: 400;
    text-align: center;
}

.info-right {
    font-weight: 400;
    /* Optionnel : alignement à droite assuré par le flex space-between */
}

/* --- SLIDER SEO SIMPLE --- */

.slider-container {
    width: 100%;
    /* Optionnel : définit une largeur max si vous ne voulez pas qu'il soit immense */
    /* max-width: 800px;  */
    /* margin: 2rem auto; Centré avec un peu d'espace autour */
    overflow: hidden; /* Cache l'image qui n'est pas active */
    /* border-radius: 8px;  Coins arrondis pour l'esthétique */
    position: relative;
    /* Ombre portée légère pour détacher le slider du fond */
    /* box-shadow: 0 4px 12px rgba(0,0,0,0.05);  */
}

.slider-wrapper {
    display: flex; /* Met les images côte à côte */
    width: 100%;
    /* C'est ici que la magie opère : la transition fluide */
    transition: transform 0.8s ease-in-out; 
}

.slider-img {
    width: 100%; /* L'image prend toute la largeur du conteneur */
    flex-shrink: 0; /* Empêche l'image de s'écraser */
    height: auto; /* Garde les proportions */
    display: block;
}

/* --- EN-TÊTE DE PROJET (H1 + Sous-titre) --- */

.project-header {
    /* S'assure que le bloc prend toute la largeur si placé dans une Grid */
    grid-column: 1 / -1; 
    
    /* Espacements verticaux */
    margin-top: 2rem;
    margin-bottom: 6rem; /* Espace avant de commencer le contenu */
    padding-bottom: 3rem; /* Espace entre le texte et la ligne */
    
    /* La ligne de séparation fine et élégante */
    border-bottom: 1px solid #e0e0e0; 
    
    /* Alignement */
    display: flex;
    flex-direction: column;
    gap: 1rem; /* Espace entre le H1 et le sous-titre */
}

/* 1. Le Titre Principal (H1) */
/* .project-header h1 {
    font-family: var(--font-label, sans-serif);
    font-weight: 200;
    font-size: 1.5rem; 
    line-height: 1.1; 
    text-transform: uppercase;
    letter-spacing: 0; 
    color: #000;
    margin: 0 3rem;
} */

.info-center h1 {
    font-family: var(--font-label, sans-serif);
    font-weight: 400;
    font-size: 1.25rem;
    /* text-transform: uppercase; */
    letter-spacing: 0; 
    color: var(--text-color);
    margin: 0;
}

/* 2. Le Sous-titre (Nom du client) */
.project-header .subtitle {
    display: block;
    font-family: 'Courier New', monospace; /* Touche "Note technique" */
    font-size: 1.1rem;
    color: #666; /* Gris moyen pour hiérarchiser l'info */
    text-transform: uppercase;
    letter-spacing: 2px; /* Lettres espacées pour le style */
    font-weight: 600;
}

/* 3. Petit trait décoratif orange avant le sous-titre (Optionnel mais stylé) */
.project-header .subtitle::before {
    content: '// ';
    color: var(--secteur-color, #ff6827); /* Utilise votre orange */
}

.lead-content {
    font-size: 2.250rem;
    line-height: 0.7;
    color: var(--text-color);
}
/* --- RESPONSIVE (Mobile) --- */
@media (max-width: 768px) {
    .project-header {
        margin-bottom: 4rem;
        padding-bottom: 2rem;
    }

    .project-header h1 {
        font-size: 2.2rem; /* Taille adaptée pour ne pas écraser l'écran mobile */
        line-height: 1.2;
    }
    
    .project-header .subtitle {
        font-size: 0.9rem;
    }
}

/* --- LISTE EXPERTISES (Menu Ancre) --- */
ul {
    list-style: none;
    /* padding: 0; */
    /* margin-bottom: 2.5rem; */
    /* display: flex; */
    flex-wrap: wrap;
    gap: 1rem;
    /* width: 66%; */
    font-size: 1.250rem;
    line-height: 1.6;
    color: #444;
}

/* --- STRUCTURE HEADER --- */
.site-header {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: var(--bg-color);
    z-index: 1000;
    margin-bottom : 6rem;
    display: flex;
    align-items: center;
}

/* .site-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    left: auto; 
    width: 50%; 
    height: 0.5px; 
    background-color: #acacac; 
} */

.header-inner {
    width: 100%;
    max-width: none; /* Largeur max du contenu */
    margin: 0;
    padding: 0 3rem; /* Marges latérales (Gouttière) */ 
    display: flex;
    justify-content: space-between; /* Logo à gauche, Menu à droite */
    align-items: center;
    height: 100%;
}

/* --- 1. LOGO --- */
.logo-text {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 2px; 
    text-decoration: none;
}

.header-logo a {
    text-decoration: none;
}

/* --- 2. MENU NAVIGATION --- */
.main-navigation .menu-list {
    display: flex;
    list-style: none;
    gap: 3rem; /* Espace entre les liens du menu */
    align-items: center; /* AJOUT : Aligne verticalement les items au centre */
    margin: 0; /* AJOUT : Supprime les marges par défaut du ul */
    padding: 0; /* AJOUT : Supprime le padding par défaut du ul */
}

.main-navigation a,
.cta a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 1.25rem;
    letter-spacing: -1px;
    text-transform: normal;
    transition: color 0.3s ease;
    position: relative;
}


/* Effet Hover (Soulignement qui apparait) */
.main-navigation a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    color: #ff682735;
    bottom: -5px;
    left: 0;
    background-color: var(--hover-color);
    transition: width 0.3s ease;
}

.main-navigation a:hover::after,
.main-navigation a.active::after {
    width: 100%; /* Le trait s'étend au survol */
}

.main-navigation a:hover {
    color: #333; /* Légère variation couleur si voulu */
}

/* --- 3. MOBILE BURGER (Design basique) --- */
.mobile-burger {
    display: none; /* Caché sur Desktop */
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.mobile-burger span {
    width: 30px;
    height: 2px;
    background-color: var(--text-color);
}

/* --- AJUSTEMENTS ESPACEMENTS LISTE --- */

/* 1. On réduit la marge sous le paragraphe qui précède la liste */
.content-creation .note {
    margin: 0;
    padding-bottom: 0;
}

/* 2. On configure la liste pour qu'elle remonte */
.content-creation ul {
    margin: 0; /* Supprime l'espace au-dessus de la liste */
}

/* 3. (Optionnel) Aérer légèrement les éléments de la liste entre eux */
.content-creation ul li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

/* --- TYPOGRAPHIE DES TITRES (Hn) --- */

/* Conteneur du H1 pour qu'il prenne toute la largeur au dessus des images */
.project-header {
    grid-column: 1 / -1; /* S'étend sur toute la largeur de la grille */
    margin-bottom: 3rem;
    border-bottom: 1px solid #e0e0e0; /* Ligne fine de séparation */
    padding-bottom: 2rem;
}

h1 {
    font-family: var(--font-label);
    font-weight: 400; 
    font-size: 3.5rem;
    /* text-transform: uppercase; */
    letter-spacing: -1px; 
    line-height: 1;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

h2 {
    font-family: var(--font-label);
    font-weight: 400;
    font-size: 5.5rem;
    /* margin-bottom: 2rem; */
    line-height: 1;
    color: var(--text-color);
}

/* --- CTA --- */

.project-cta-block {
    margin: 4rem 0;
    padding: 3rem 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between; /* Texte à gauche, Bouton à droite */
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.project-cta-block h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.cta-subtitle {
    color: #666;
    font-size: 1rem;
}

/* Style du bouton "Architecte" */
.btn-primary {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: #000;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #8b5a3c; /* Votre couleur Terracotta/Accent */
}

@media (max-width: 768px) {
    .project-cta-block {
        flex-direction: column;
        text-align: center;
    }
}

/* --- CTA SECONDAIRE (Web & Stratégie) --- */

.cta-secondary-block {
    text-align: center;
    margin-top: 2rem; /* Espace après le séparateur */
}

/* Le titre (H4) : Discret et élégant */
.cta-secondary-block h4 {
    font-size: 1.1rem;
    font-weight: 400; /* Normal, pas gras */
    color: #666;      /* Gris pour ne pas voler la vedette au H3 principal */
    margin: 0 0 0.5rem 0;
    letter-spacing: 0.5px;
}

/* Le lien avec la flèche */
.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem; /* Espace entre le texte et la flèche */
    
    text-decoration: none;
    color: #000; /* Noir pour le contraste */
    font-weight: 500;
    font-size: 1rem;
    
    /* Transition douce pour la couleur */
    transition: color 0.3s ease;
}

/* Animation au survol */
.link-arrow:hover {
    color: #8b5a3c; /* Votre couleur Terracotta */
}

/* La flèche (span) */
.link-arrow span {
    display: inline-block;
    transition: transform 0.3s ease;
}

/* Quand on survole le lien, la flèche bouge vers la droite */
.link-arrow:hover span {
    transform: translateX(5px);
}


/* --- SECTION STRATÉGIE & SEO (CORRECTION) --- */

/* 1. On cible les deux classes pour forcer l'application des règles */
.portfolio-showcase.strategy-section {
    display: grid;
    grid-template-columns: 1fr 1fr; 
    gap: 3rem;
    align-items: start;
    
    margin-top: 6rem;
    margin-bottom: 6rem;

    /* CORRECTION ICI : */
    /* On utilise le padding pour "pousser" le contenu vers l'intérieur */
    padding-left: 3rem;  
    padding-right: 0;
    
    /* Indispensable : s'assure que le padding s'ajoute DANS la largeur (pas en plus) */
    box-sizing: border-box; 
    
    /* On force la largeur à 100% de l'écran pour que le padding se cale sur les bords */
    width: 100%;
    margin-left: 0; /* On reset les marges externes pour éviter les conflits */
    margin-right: 0;
}

/* 2. Grille Interne (Gauche) */
.strategy-section .col-left.strategy-grid {
    display: grid;
    grid-template-columns: 1fr 2fr; 
    row-gap: 6rem;    
    column-gap: 3rem; 
    align-items: start;
    padding: 0;
}


.title-orange, 
.strategy-grid h2.border { /* On applique aussi le style au H2 "Stratégie" */
    color: #68280c; 
    /* font-size: 2.5rem;  */
    font-weight: 300; 
    margin: 0;
    line-height: 1;
    border: none; /* On enlève la bordure noire si elle gêne le style orange */
    padding-bottom: 0;
}

/* 4. Textes */
.text-content p {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    line-height: 1.6;
    color: #000;
    padding: 0 21px;
}
.text-content p:last-child {
    margin-bottom: 0;
}

.border {
 color: #68280c;
 font-size: 6rem;
}
.note {
 font-size: 1.5rem;
 line-height: 1.6;
 color: #444;
 border-top: 1px solid #ff682735;
 padding-top: 0.5rem;
 margin-bottom: 0;
}
.bold {
    font-weight: bold;
}

.underline {
 /* font-weight: bold; */
  background-color: #ff68278f;
}

.border-bottom {
color: #ff6827;
 font-size: 6rem;
 border-bottom: 1px solid #ff6827;
}

.client-label {
 text-transform: uppercase;
 letter-spacing: 0;
 font-weight: bold;
 font-size: .75rem;
}

/* Style du lien */
.btn-link {
 font-family: 'Courier New', monospace;
 font-weight: bold;
 color: #000;
 text-decoration: none;
 font-size: 0.9rem;
}



/* --- SECTION CRÉATION DE CONTENU (Photo) --- */

/* 1. La Grille Principale (Gauche / Droite) */
.content-creation {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 50% / 50% ou ajustez selon vos goûts (ex: 1.5fr 1fr) */
    gap: 4rem;
    align-items: start; /* Aligne le haut du texte avec le haut de l'image */
    margin-top: 6rem;
    margin-bottom: 6rem;
}

/* 2. La Colonne de Gauche (Titre + Texte en colonne simple) */
.content-creation .col-left {
    /* C'EST ICI QUE LA MODIFICATION SE FAIT : */
    display: flex;
    flex-direction: column; /* Force les éléments à s'empiler verticalement */
    gap: 3rem; /* Espace entre le Titre H2 et le Paragraphe */
    padding: 0; /* Reset des paddings */
    text-align: left;
}

.content-creation h2 {
    text-align: left;
    /* width: 66.666%; */
}

/* Style du Titre dans cette section */
.content-creation h2 {
    /* font-size: 2rem; */
    margin: 0;
    line-height: 1.2;
}

/* Style du Paragraphe "Note" */
.content-creation .note {
    font-size: 1.250rem;
    line-height: 1.6;
    color: #444;
    max-width: 90%; /* Pour éviter que les lignes soient trop longues à lire */
}

.info-center a {
    color: #000;
    text-decoration: none;
}

.bold {
    font-weight: 700;
    color: #000;
}

.text-right {
    text-align: right;
}

.mr-2 {
    margin-right: 2rem;
}
.mr-1 {
    margin-right: 1rem;
}

/* --- SECTION PORTRAITS ÉQUIPE --- */

.team-section {
    /* Force le conteneur à prendre toute la largeur de l'écran */
    width: 100vw; 
    max-width: 100%;
    
    /* Gestion des marges internes */
    /* padding-left: 3rem;
    padding-right: 3rem; */
    box-sizing: border-box; /* Indispensable pour que le padding ne crée pas de scroll horizontal */
    
    /* Espacement vertical */
    margin-top: 6rem;
    margin-bottom: 6rem;
    
    /* S'assure que le contenu s'empile (Titre au-dessus, grille en dessous) */
    display: block; 
}

.team-title {
    font-size: 1.5rem;
    margin-bottom: 3rem;
    font-weight: 700;
    text-align: left;
}

.team-grid {
    /* La grille prend 100% de la largeur du parent (.team-section) */
    width: 100%; 
    display: grid;
    /* 5 colonnes de taille égale */
    grid-template-columns: repeat(5, 1fr); 
    gap: 1.5rem;
}

/* Les images */
.team-member .interface-wrapper {
    width: 100%;
    /* On force l'image à remplir sa colonne */
    display: block; 
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background-color: #f0f0f0;
}

.team-member .img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.text-right {
    text-align: right;
}

/* --- SECTION PRINT --- */
.print .col-left {
    display: flex;
    flex-direction: column; /* Force l'empilement vertical */
    gap: 4rem; /* Espace entre la photo 1 et la photo 2 */
    padding: 0;
}

/* --- SECTION GALERIE PHOTOS --- */

/* 1. La structure globale (2 colonnes côte à côte) */
.gallery-section {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 50% / 50% */
    gap: 4rem; /* Espace central */
    align-items: start; /* Important : aligne le haut des colonnes */
    margin-top: 6rem;
    margin-bottom: 6rem;
}

/* 2. La Colonne GAUCHE (Images l'une sous l'autre) */
.gallery-section .col-left {
    display: flex;
    flex-direction: column; /* Force l'empilement vertical */
    gap: 3rem; /* Espace entre la photo 1 et la photo 2 */
    padding: 0;
}

/* 3. La Colonne DROITE (Idem, avec un petit décalage stylé) */
.gallery-section .col-right {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    padding: 0;
    /* Optionnel : Le petit décalage vers le bas pour l'effet "Agence" */
    margin-top: 6rem; 
}

.m-xl {
    margin: 8rem 0;
}
/* --- AJUSTEMENT GALERIE : PREMIÈRE IMAGE RÉDUITE --- */

/* On applique ce style uniquement sur les écrans plus larges que les tablettes/mobiles */
@media (min-width: 1025px) {
    
    /* Cible le 1er conteneur .interface-wrapper DANS la .col-left DE la .gallery-section */
    .gallery-section .col-left .interface-wrapper:first-child,
    .gallery-section .col-left .interface-wrapper:nth-child(3) {
        /* Réduit la largeur aux 2/iers (environ 66.66%) */
        width: 66.666%;
        
        /* Par défaut, l'image sera alignée à gauche.
           Si vous voulez la centrer, décommentez la ligne suivante : */
        /* margin: 0 auto; */
    }
    
}


/* GRILLE PRINCIPALE */
.portfolio-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 50% gauche / 50% droite */
    gap: 6rem; /* Pas d'espace entre les colonnes pour coller le fond coloré */
    width: 100%;
    max-width: none;
    margin: 0;
    align-items: start;
    margin-bottom: 3rem;
}

/* COLONNE GAUCHE (Blanc) */
.col-left {
    /* background-color: #fff; */
    padding: 3rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh; /* Hauteur min pour l'équilibre */
}

.content-creation .col-left {
    padding: 111px 0; /* Annule le padding pour cette section spécifique */
    width: 84%; /* Pour éviter que l'image soit trop grande */
}

/* --- LISTE ÉLÉGANTE (Style Architecte) --- */
.elegant-list {
    list-style: none; /* On enlève les puces moches par défaut */
    /* padding-left: 0;
    margin: 1.5rem 0; */
}

.elegant-list li {
    /* position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    font-family: 'Helvetica', 'Arial', sans-serif;
    font-size: 1rem;
    color: #333; */
    line-height: 1.6; /* Une bonne hauteur de ligne améliore la lisibilité */
}

/* La création de la puce personnalisée (le tiret) */
.elegant-list li::before {
    content: ''; 
    position: absolute;
    
    /* Positionnement précis */
    left: 0;
    top: 0.6em; /* On le centre par rapport à la première ligne de texte */
    
    /* Forme du tiret */
    width: 12px;  /* Longueur du trait */
    height: 1px;  /* Épaisseur (très fin) */
    
    /* Couleur */
    background-color: #8b5a3c; /* Votre Terracotta */
    
    /* Optionnel : transition si vous voulez animer au survol */
    transition: width 0.3s ease;
}

/* Petit effet interactif (Optionnel) */
.elegant-list li:hover::before {
    width: 18px; /* Le trait s'allonge un peu au survol */
    background-color: #000; /* Il devient noir */
}

/* COLONNE DROITE (Fond coloré) */
.col-right {
    /* padding: 4rem; */
    display: flex;
    flex-direction: column;
    gap: 6rem; /* Espace vertical entre l'image Agence et Services */
    padding: 0;
    /* padding: 3rem; 
    padding-top: 2rem;*/
}

.item-agence {
 /* background-color: var(--bg-accent);
 border-radius:12px; */
 padding: 3rem;
}
.item-services {
 padding: 0 3rem;
}

/* STYLE DES IMAGES & LABELS */
.interface-wrapper {
    position: relative;
    width: 100%;
}

.img {
    width: 100%;
    height: auto;
    display: block;
}

.vw-66 {
    width: 66.666%; 
}

.vw-75 {
    width: 75%; 
}

.mb-3 {
    margin-bottom: 3rem;
}

.fs-2 {
    font-size: 1.5rem;
    font-weight: 500;
    margin-top: 1rem;
}

/* AJUSTEMENTS SPÉCIFIQUES POUR CRÉER LE DÉCALAGE */

/* Pour centrer verticalement l'image de gauche si besoin */
.col-left .interface-wrapper {
    margin-top: 6rem; /* Descend l'image Accueil pour le rythme visuel */
}

.big {
    /* font-size: 9rem; */
    font-weight: 700;
}

/* --- SECTION AUTRES PROJETS --- */
.other-projects {
    margin-top: 3rem;
    
    /* Ligne de séparation et espacement vertical */
    /* border-top: 1px solid #e0e0e0; */
    padding-top: 3rem;
    margin-bottom: 3rem;

    /* C'EST ICI : Augmentation forte des marges latérales */
    padding-left: 3rem;  /* Valeur importante pour centrer le bloc */
    padding-right: 3rem;
}

.section-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    margin-bottom: 3rem;
    font-weight: 500;
}

/* Annule les marges latérales (4rem) de la barre originale 
   car .other-projects a déjà 10rem de padding */
.other-projects .project-info-bar.no-margin {
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 3rem; /* Espace entre la barre et les cartes projets */
    width: 100%;
}

/* Optionnel : Si vous voulez que le texte "Autres projets" soit en gras comme en haut */
.other-projects .text-orange {
    font-weight: 500;
    text-transform: uppercase;
    /* La couleur est déjà gérée par la classe .text-orange existante */
}

/* Grille de 3 projets */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 colonnes égales */
    gap: 3rem;
}

/* Autres Projets */
.project-card {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.card-image {
    overflow: hidden; /* Pour l'effet de zoom */
    aspect-ratio: 4/5; /* Format rectangulaire standard */
    background-color: #f0f0f0;
}

.project-card .img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Effet au survol : léger zoom de l'image */
.project-card:hover .img {
    transform: scale(1.05);
}

.card-infos {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-top: 1px solid #000; /* Ligne noire au dessus du titre */
    padding-top: 0.8rem;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #000;
}

.card-cat {
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    color: #666;
}

/* --- BOUTON BACK TO TOP --- */
/* --- BOUTON BACK TO TOP (Version Icône seule) --- */
#back-to-top {
    position: fixed;
    bottom: 60px;
    right: 30px;
    z-index: 999;
    
    /* MODIFICATION 1 : Fond transparent et pas de dimensions fixes */
    background-color: transparent;
    border: none;
    cursor: pointer;
    padding: 0; /* On s'assure qu'il n'y a pas de marge interne par défaut */
    
    /* MODIFICATION 2 : Couleur de base noire */
    color: #000;

    /* Animation d'apparition (inchangée) */
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

/* MODIFICATION 3 : On double la taille du SVG ici */
#back-to-top svg {
    width: 48px;  /* 24px * 2 */
    height: 48px; /* 24px * 2 */
    display: block; /* Évite les espaces fantômes sous l'icône */
}

/* État visible (inchangé) */
#back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* MODIFICATION 4 : État au survol */
#back-to-top:hover {
    /* On ne change plus le fond, mais la couleur du trait */
    color: #8b5a3c; /* Votre couleur Terracotta */
    transform: translateY(-5px); /* Un rebond un peu plus marqué vu la taille */
}

/* Responsive : On réduit un peu sur mobile pour ne pas gêner */
@media (max-width: 768px) {
    #back-to-top {
        bottom: 20px;
        right: 20px;
    }
    #back-to-top svg {
       width: 36px; /* Une taille intermédiaire sur mobile */
       height: 36px;
    }
}

/* --- FOOTER COMPACT (Style Minimaliste) --- */

.site-footer-compact {
    /* background-color: #ff2b2b; */
    color: #3b0609; /* Votre couleur texte sombre */
    padding: 2rem 4rem; /* Hauteur réduite (2rem en haut/bas au lieu de 5rem) */
    font-size: 0.9rem;
    font-family: 'Courier New', monospace; /* Touche technique */
}

.footer-inner {
    display: flex;
    justify-content: space-between; /* Répartit GAUCHE - CENTRE - DROITE */
    align-items: center; /* Aligne tout verticalement au centre */
}

/* Styles des liens */
.site-footer-compact a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.3s;
}

.site-footer-compact a:hover {
    opacity: 0.7;
}

/* Séparateur visuel (/) */
.sep {
    margin: 0 0.5rem;
    opacity: 0.5;
}

/* L'email au centre un peu plus gras */
.footer-mail {
    font-weight: 700;
    font-size: 1rem;
}

/* Espacement des liens réseaux */
.footer-right a {
    margin-left: 2rem;
}

/* Style du bouton de contact au centre */
.footer-cta {
    font-weight: 700;
    font-size: 1rem;
    /* text-transform: uppercase;  */
    letter-spacing: 1px;
    border-bottom: 1px solid currentColor; /* Soulignement élégant */
    padding-bottom: 3px; /* Espace entre le texte et la ligne */
}

.footer-cta:hover {
    color: #fff; /* Changement de couleur au survol (blanc) */
    border-bottom-color: #fff;
}

/* ==========================================================================
   RESPONSIVE (Tablette & Mobile)
   ========================================================================== */


@media (max-width: 1024px) {

     .header-inner {
        padding: 0 2rem; /* Marges réduites sur tablette/mobile */
    }

    .main-navigation {
        display: none; /* On cache le menu texte sur mobile */
        /* Ici il faudrait ajouter du JS pour ouvrir un panneau latéral */
    }

    .mobile-burger {
        display: flex; /* On affiche le burger */
    }

    /* 1. Configuration du Menu Mobile (fermé par défaut) */
    .main-navigation {
        display: block; /* On le rend présent dans le code... */
        
        /* ... mais on le cache visuellement et on le sort de l'écran */
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--bg-portfolio); /* ou #ffffff */
        z-index: 999; /* En dessous du burger (1000) mais au dessus du reste */
        
        /* Flex pour centrer les liens */
        flex-direction: column;
        justify-content: center;
        align-items: center;
        
        /* Animation d'arrivée */
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        transition: all 0.4s ease-in-out;
    }

    /* Il faut s'assurer que la liste est en colonne */
    .main-navigation .menu-list {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    /* Les liens plus gros sur mobile */
    .main-navigation a {
        font-size: 1.5rem;
    }

    /* 2. L'ÉTAT OUVERT (activé par le JS) */
    .main-navigation.nav-open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        display: flex; /* Important pour activer le flexbox centré */
    }

    /* 3. Le Burger Button */
    .mobile-burger {
        display: flex; /* On l'affiche */
        z-index: 1001; /* Très important : doit être AU-DESSUS du menu blanc pour pouvoir fermer */
        position: relative;
    }

    /* Animation du Burger en Croix (X) */
    .burger-active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }
    .burger-active span:nth-child(2) {
        opacity: 0; /* La barre du milieu disparaît */
    }
    .burger-active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }
    
    /* Transition douce pour les barres du burger */
    .mobile-burger span {
        transition: all 0.3s ease;
    }
    
    /* Empêcher le scroll quand le menu est ouvert */
    .no-scroll {
        overflow: hidden;
    }

     .site-footer-compact {
        padding: 2rem 1.5rem; /* Marges latérales réduites */
    }

    .footer-inner {
        flex-direction: column; /* On empile tout sur mobile */
        gap: 1.5rem; /* Espace entre les blocs */
        text-align: center;
    }

    .footer-right a {
        margin-left: 1rem;
        margin-right: 1rem;
    }
    
    /* On change l'ordre pour mettre le MAIL en premier sur mobile */
    .footer-center { order: 1; }
    .footer-right { order: 2; }
    .footer-left { order: 3; opacity: 0.6; font-size: 0.8rem; }
}



/* RESPONSIVE (Mobile & Tablette) */
@media (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: 1fr;
        /* 1 colonne sur mobile */
        gap: 3rem;
    }

    .other-projects {
        padding-left: 2rem;
        padding-right: 2rem;
    }

    .site-footer {
        padding: 3rem 1.5rem;
    }

    .footer-top {
        flex-direction: column;
        gap: 3rem;
    }

    .big-mail {
        font-size: 1.5rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
    }
}


/* --- 1. TABLETTE (max-width: 1024px) --- */
@media (max-width: 1024px) {

    /* --- TYPOGRAPHIE --- */
    h1 { font-size: 3rem; }
    h2 { font-size: 3.5rem; }
    /*.border { font-size: 3.5rem; } */
    .text-content p,
    .note {
    /* On force la même taille que sur desktop (ou on ajuste les deux ensemble) */
    font-size: 1.5rem; 
    line-height: 1.6;
    padding: 0; /* On s'assure qu'aucun padding ne gêne */
    }

    .site-header {
        margin-bottom:3rem;
    }
    /* --- LAYOUT GLOBAL --- */
    .portfolio-showcase, 
    .content-creation, 
    .gallery-section {
        grid-template-columns: 1fr; /* Une seule colonne partout */
        gap: 3rem; /* On réduit les écarts de 8rem à 3rem */
        margin-top: 3rem;
        margin-bottom: 3rem;
    }

    .col-left .interface-wrapper {
    margin-top: 0;
    }

    /* Reset des marges  */
    .m-xl { margin: 4rem 0; }

    .mb-3 {
        margin-bottom: 0; /* On passe de 3rem à 1rem (environ 16px) */
    }
    
    /* --- HEADER --- */
    .site-header, .project-info-bar {
        padding-left: 0;
        padding-right: 0;
    }
    
    .project-info-bar {
        flex-direction: row;
        gap: 1rem;
        align-items: flex-start;
        margin-bottom: 0;
         margin-left: 2rem;
         margin-right: 2rem;
    }
    
    .info-center { text-align: left; }

    /* --- STRATÉGIE --- */
    /* On remet de la symétrie dans les marges */
    .portfolio-showcase.strategy-section,
    .portfolio-showcase.content-creation,
    .portfolio-showcase.gallery-section,
    .portfolio-showcase.print {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
        width: 100%; /* Important */
    }

    .portfolio-showcase.strategy-section {
         display: grid;
        grid-template-columns: 1fr; /* Une seule colonne */
    }

    .item-agence,
    .item-services {
        padding: 0;
    }

    .team-section {
        margin-top: 0;
    }

    .strategy-section .col-left.strategy-grid {
        grid-template-columns: 1fr; /* Les textes SEO/Stratégie s'empilent */
        row-gap: 3rem;
        column-gap: 0;
    }

    /* Ajustement des textes */
    .text-content p {
        padding: 0; /* On enlève le padding latéral desktop */
       /* font-size: 1.1rem;  Taille de lecture confortable */
    }

    /* --- CRÉATION DE CONTENU --- */
    .content-creation {
    /* 1. On passe en Flexbox pour pouvoir réorganiser l'ordre */
    display: flex;
    flex-direction: column; /* On empile verticalement */
    gap: 3rem;
    }

    /* 2. On cible la colonne de DROITE (Titre + Texte) pour qu'elle passe en PREMIER */
    .content-creation .col-right {
        order: 1; /* Priorité 1 : s'affiche en haut */
    }

    /* 3. On cible la colonne de GAUCHE (Photo) pour qu'elle passe en SECOND */
    .content-creation .col-left {
        order: 2; /* Priorité 2 : s'affiche en bas */
        
        /* (Rappel de vos réglages précédents) */
        width: 100%;
        padding: 0 !important;
    }
    .content-creation .col-left {
        width: 100%; /* L'image prend toute la largeur */
        padding: 0; /* On enlève le gros padding top */
        margin-top: 0;
    }
    
    /* On centre l'image si besoin ou on la laisse en 100% */
    .content-creation .col-left img {
        width: 100%;
    }

    /* --- GALERIE PHOTOS --- */
    .col-left, .col-right {
        padding: 0; /* Reset des paddings internes */
    }
    
    .gallery-section .col-right {
        margin-top: 0; /* On annule le décalage esthétique */
    }


/* 1. On cible la section galerie spécifique */
.gallery-section {
    display: flex;
    flex-direction: column;
}

/* 2. LA MAGIE : On dit au navigateur d'ignorer les boîtes .col-left et .col-right
   Les enfants (images et textes) deviennent donc des éléments directs de .gallery-section */
.gallery-section .col-left, 
.gallery-section .col-right {
    display: contents; 
}

/* 3. On réorganise les éléments maintenant qu'ils sont tous au même niveau */

/* Groupe A : Les images de GAUCHE s'affichent en PREMIER */
.gallery-section .col-left > img,
.gallery-section .col-left .interface-wrapper {
    order: 1;
    margin-bottom: 0; /* On garde l'espacement */
}

/* Groupe B : Les images de DROITE s'affichent en DEUXIÈME */
.gallery-section .col-right .interface-wrapper {
    order: 2;
    margin-bottom: 0;
}

/* Groupe C : Le texte (qui était à gauche) s'affiche en DERNIER */
.gallery-section .col-left p.note {
    order: 3;
    margin-top: 1rem; /* Un peu d'espace au-dessus du texte */
    width: 100% !important; /* S'assure qu'il prend toute la largeur */
}

    /* --- PORTRAITS ÉQUIPE --- */
    .team-section {
        /* CORRECTION CRITIQUE : Pas de 100vw pour éviter le scroll horizontal */
        width: 100%; 
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    .team-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 colonnes sur tablette */
        gap: 1rem;
    }

    /* --- PRINT --- */

    .print {
    /* 1. On passe en Flexbox vertical */
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

/* 2. La colonne de DROITE (Titre + Texte) passe en PREMIER (Haut) */
.print .col-right {
    order: 1;
    margin: 0; /* On annule la marge 'm-xl' qui est trop grande sur mobile */
    gap: 1.5rem;
}

/* 3. La colonne de GAUCHE (Images) passe en SECOND (Bas) */
.print .col-left {
    order: 2;
    padding: 0;
}

    /* --- AUTRES PROJETS --- */
    .other-projects {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
        margin-top: 3rem;
    }
    
    .projects-grid {
        gap: 2rem;
    }

    /* --- FOOTER --- */
    .site-footer {
        padding: 3rem 1.5rem;
    }
    .footer-top {
        flex-direction: column;
        gap: 2rem;
    }
}


/* --- 2. MOBILE (max-width: 768px) --- */
@media (max-width: 768px) {

    /* --- TYPOGRAPHIE MOBILE --- */
    h1 { font-size: 2.2rem; }
    h2 {
        font-size: 3rem;
        font-weight: 500;
        margin-bottom: 0;
    }
    .info-center h1 {
        letter-spacing: 0;
        font-weight: 600;
    }
    .border { font-size: 3.5rem; }
    
    /* --- IMAGES --- */
    /* Force toutes les images réduites (vw-66, vw-75) à prendre 100% sur mobile */
    .vw-66, .vw-75 { 
        width: 100% !important; 
    }
    
    /* --- PORTRAITS ÉQUIPE MOBILE --- */
    .team-grid {
        grid-template-columns: repeat(1, 1fr); /* 2 colonnes sur mobile */
        gap: 1rem;
    }

    .contact-cta-box,
    .info-left {
        display: none; /* On cache le bloc sur mobile */
    }

    .note {
        border-top: none;
    }

    .contact-box {
        /* Un chiffre élevé pour le forcer à aller à la fin */
        order: 21; 
        
        /* Optionnel : ajouter une marge pour l'espacer du reste */
        /* margin-top: 2rem;  */
    }

    /* --- AUTRES PROJETS MOBILE --- */
    .projects-grid {
        grid-template-columns: 1fr; /* 1 colonne pour les projets */
    }

    /* --- MENUS --- */
    .main-navigation {
        display: block; /* Présent dans le DOM */
        position: fixed;
        top: 0; left: 0;
        width: 100%; height: 100vh;
        background-color: var(--bg-portfolio);
        z-index: 999;
        opacity: 0; visibility: hidden;
        transform: translateY(-20px);
        transition: all 0.4s ease-in-out;
        
        /* Centrage du contenu */
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    
    .main-navigation.nav-open {
        opacity: 1; visibility: visible;
        transform: translateY(0);
    }
    
    .main-navigation .menu-list {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .main-navigation a {
        font-size: 1.8rem; /* Gros liens pour le tactile */
    }
    
    /* Burger Button visible */
    .mobile-burger {
        display: flex;
        z-index: 1001; /* Au-dessus du menu */
    }

    /* --- MARGES GÉNÉRALES --- */
    .portfolio-showcase {
        gap: 2rem; /* Espacement réduit entre les blocs */
    }
    
    /* Nettoyage final des paddings qui trainent */
    .content-creation .col-left {
        padding: 0 !important;
        min-height: 0; /* Annule la hauteur min */
    }
}

/* --- PAGE CONTACT --- */

.contact-page-wrapper {
    /* padding: 30px 3%;
    max-width: 1400px;
    margin: 0 auto; */
    padding: 30px 3%; /* Garde une petite marge sur les côtés */
    margin: 0 auto;
    width: 100%;
    flex: 1; /* C'est ça qui colle le footer en bas */
}

.contact-container {
    display: block; /* On enlève le Grid 2 colonnes */
    width: 100%;
    /* display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem; */
}

.contact-left {
    width: 100%;
}

/* TYPOGRAPHIE & TEXTES */
.contact-left h1 {
    font-size: 3.5rem;
    font-weight: 400;
    margin-bottom: 2rem;
    letter-spacing: -1px;
}

.intro-text {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 4rem;
    max-width: 600px;
    color: #333;
}

/* Gère l'alignement côte à côte */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Deux colonnes de taille égale */
    gap: 2rem; /* Espace entre gauche et droite */
    margin-bottom: 1rem; /* Petit espace sous chaque ligne */
}

/* Responsive Mobile : tout passe l'un sous l'autre */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 2rem; /* Garde l'espace vertical */
    }
    .input-group label {
        font-size: 1rem !important; /* Labels plus gros sur mobile */
    }
    .submit-btn {
        padding: 2rem 5rem !important; /* Bouton plus grand sur mobile */
        font-size: 1.25rem;
}
}

/* LE FORMULAIRE STYLE "ARCHI" */
.minimal-form {
    display: flex;
    flex-direction: column;
    gap: 3rem; /* Espace vertical entre les lignes */
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Nom et Email côte à côte */
    gap: 2rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Les Labels en majuscules gris clair */
.input-group label {
    font-family: inherit;
    font-size: 2.5rem;
    /* color: #999;*/
    text-transform: uppercase;
    /* letter-spacing: 1px;
    margin-bottom: 0.5rem; */
}

/* Les Inputs : Pas de bordure sauf en bas */
.input-group input,
.input-group textarea {
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--text-color);
    padding: 10px 0;
    font-family: inherit;
    font-size: 1rem;
    color: #000;
    outline: none;
    transition: border-color 0.3s ease;
    width: 100%;
    resize: vertical; /* Pour le textarea */
}

/* Effet au focus : la ligne devient noire */
.input-group input:focus,
.input-group textarea:focus {
    border-bottom: 1px solid #000;
}

/* BOUTON ENVOYER (Style Maquette : Contour noir simple) */
.submit-btn {
    align-self: flex-start; /* Calé à gauche */
    background: transparent;
    padding: 1rem 3rem;
    /* border: 1px solid #000;
    color: #000;
    font-size: 1rem;
    text-transform: lowercase; */
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.submit-btn:hover {
    background: var(--hover-color);
    color: #fff;
}

/* COLONNE DROITE (Infos) */
.contact-right {
    padding-top: 1rem; /* Pour s'aligner visuellement avec le texte de gauche */
    display: flex;
    flex-direction: column;
    justify-content:start; /* Centre VERTICALEMENT (par rapport au formulaire) */
    align-items: center; /* Centre HORIZONTALEMENT (le bloc dans la colonne) */
    height: 100%;
}

.info-label {
    display: block;
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.contact-right p {
    font-size: 1rem;
    line-height: 1.8;
    color: #000;
}

.contact-right a {
    color: #000;
    text-decoration: none;
}

/* MESSAGES SUCCESS/ERROR */
.success-message {
    padding: 1rem;
    background-color: #f0fff4;
    color: #2c7a3f;
    border: 1px solid #c6f6d5;
    margin-bottom: 2rem;
}

.error-message {
    padding: 1rem;
    background-color: #fff5f5;
    color: #c53030;
    border: 1px solid #feb2b2;
    margin-bottom: 2rem;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr; /* Tout en une seule colonne sur mobile */
        gap: 3rem;
    }
    
    .form-row {
        grid-template-columns: 1fr; /* Inputs l'un sous l'autre sur mobile */
    }

   .contact-left h1 {
        font-size: 4.5rem;
    }
}