/* --- VARIABLES DA COMMUNE --- */
:root {
    --couleur-fond: #F4F4F0; 
    --couleur-texte: #0A0A0A; 
    --bordure-epaisse: 3px solid var(--couleur-texte);
    --bordure-fine: 1px solid var(--couleur-texte);
}

/* --- REINITIALISATION --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none;
    scroll-behavior: smooth;
}

body {
    background-color: var(--couleur-fond);
    color: var(--couleur-texte);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

/* --- CURSEUR PERSONNALISÉ --- */
.curseur-suiveur {
    position: fixed; top: 0; left: 0; width: 24px; height: 24px;
    background-color: #FFFFFF; border-radius: 50%; pointer-events: none;
    z-index: 9999; mix-blend-mode: difference;
    transition: width 0.4s cubic-bezier(0.25, 1, 0.5, 1), height 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}
.curseur-suiveur.survol { width: 80px; height: 80px; }

/* --- TYPOGRAPHIE GLOBALE --- */
h1, h2, h3 { font-family: 'Archivo Black', sans-serif; text-transform: uppercase; }
a { color: inherit; text-decoration: none; }

/* --- NAVIGATION --- */
.navigation {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 40px; border-bottom: var(--bordure-epaisse);
    position: sticky; top: 0; background-color: var(--couleur-fond); z-index: 100;
}
.nav-lien {
    font-weight: 900; font-size: 1rem; text-transform: uppercase;
    margin-left: 30px; transition: opacity 0.3s;
}
.nav-retour { margin-left: 0; border-bottom: 2px solid var(--couleur-texte); padding-bottom: 2px; }
.nav-lien:hover { opacity: 0.5; }

/* --- EN-TÊTE PAGE (HÉROS) --- */
.entete-page {
    padding: 80px 40px;
    border-bottom: var(--bordure-epaisse);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.titre-conteneur { display: flex; flex-direction: column; text-align: center; line-height: 0.9; }
.titre-geant { font-size: clamp(3rem, 9vw, 9rem); margin: 0; letter-spacing: -2px; }
.titre-geant.contour { color: transparent; -webkit-text-stroke: 2px var(--couleur-texte); }

.sous-titre-outils {
    margin-top: 40px; text-align: center;
}
.sous-titre-outils p { font-weight: 900; letter-spacing: 5px; margin-bottom: 15px; font-size: 1.2rem;}
.outils-liste {
    border-top: var(--bordure-epaisse); padding-top: 15px; font-weight: 900; font-size: 1.1rem;
}

/* --- BANDEAU DÉFILANT --- */
.bandeau-defilant {
    background-color: var(--couleur-texte); color: var(--couleur-fond);
    padding: 15px 0; overflow: hidden; white-space: nowrap; border-bottom: var(--bordure-epaisse);
}
.bandeau-piste {
    display: inline-block; animation: defilement 25s linear infinite;
    font-family: 'Archivo Black', sans-serif; font-size: 1.2rem; letter-spacing: 2px;
}
@keyframes defilement { 0% { transform: translateX(0%); } 100% { transform: translateX(-50%); } }

/* --- SECTION EXPERTISE (Triptyque) --- */
.section-expertise {
    padding: 80px 40px; border-bottom: var(--bordure-epaisse);
}
.section-titre {
    font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 60px;
    border-bottom: var(--bordure-epaisse); padding-bottom: 10px; display: inline-block;
}
.section-titre.droite { float: right; }
.section-portfolio { padding-top: 80px; }
.section-portfolio::after { content: ""; display: table; clear: both; }

.grille-valeur {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px;
}
.carte-valeur {
    border: var(--bordure-epaisse); padding: 40px;
    background-color: var(--couleur-fond); transition: transform 0.4s ease, box-shadow 0.4s ease;
    box-shadow: 8px 8px 0px var(--couleur-texte);
}
.carte-valeur.inversée {
    background-color: var(--couleur-texte); color: var(--couleur-fond);
}
.carte-valeur:hover {
    transform: translate(-5px, -5px); box-shadow: 15px 15px 0px var(--couleur-texte);
}
.carte-valeur.inversée:hover {
    box-shadow: 15px 15px 0px rgba(10, 10, 10, 0.5);
}
.carte-valeur h3 {
    font-size: 1.8rem; border-bottom: var(--bordure-fine); padding-bottom: 15px; margin-bottom: 20px;
}
.carte-valeur.inversée h3 { border-bottom-color: var(--couleur-fond); }
.carte-valeur p { line-height: 1.6; font-size: 1.05rem; font-weight: 500;}

/* --- TAGS --- */
.etude-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.etude-tags span {
    border: var(--bordure-fine); padding: 5px 15px; border-radius: 50px;
    font-size: 0.85rem; font-weight: 900; text-transform: uppercase;
}
.carte-valeur.inversée .etude-tags span { border-color: var(--couleur-fond); }

/* --- GRILLE ÉDITORIALE PORTFOLIO --- */
.bloc-etude {
    display: grid; grid-template-columns: 1fr 1fr; border-top: var(--bordure-epaisse);
}
.bloc-etude.inverse { grid-template-columns: 1fr 1fr; }
.bloc-etude.inverse .etude-texte { order: 2; border-right: none; border-left: var(--bordure-epaisse); }
.bloc-etude.inverse .etude-visuel { order: 1; }

.etude-texte { padding: 80px 60px; border-right: var(--bordure-epaisse); display: flex; flex-direction: column; justify-content: center; }
.etude-numero { font-family: 'Archivo Black', sans-serif; font-size: 1.5rem; margin-bottom: 20px; display: block; }
.etude-texte h2 { font-size: clamp(2.5rem, 4vw, 4rem); margin-bottom: 30px; line-height: 1.1; }
.etude-texte p { font-size: 1.1rem; line-height: 1.6; font-weight: 500; margin-bottom: 20px; }
.etude-texte strong { font-weight: 900; }

/* Visuels adaptatifs pour le Graphisme */
.etude-visuel { 
    padding: 60px; background-color: #EAEAEA; 
    display: flex; align-items: center; justify-content: center; 
}
.conteneur-media {
    border: var(--bordure-epaisse);
    box-shadow: 15px 15px 0px var(--couleur-texte);
    background: var(--couleur-fond);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    overflow: hidden; 
}

.media-graphisme {
    width: 100%; max-width: 600px;
    height: 700px;
}
.media-graphisme.horizontal {
    max-width: 800px; height: auto;
}

.conteneur-media:hover {
    transform: translate(-8px, -8px); box-shadow: 23px 23px 0px var(--couleur-texte);
}
.media-brut {
    width: 100%; height: 100%; object-fit: contain; display: block; padding: 15px;
    filter: grayscale(100%) contrast(1.2); transition: filter 0.5s ease, transform 0.5s ease;
}
.conteneur-media:hover .media-brut { 
    filter: grayscale(0%) contrast(1); transform: scale(1.02);
}

/* --- NAVIGATION TRANSVERSALE --- */
.navigation-transversale { border-bottom: var(--bordure-epaisse); border-top: var(--bordure-epaisse); display: flex; flex-direction: column;}
.lien-transversal {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 100px 40px; text-align: center; transition: background-color 0.4s, color 0.4s;
}
.lien-label { font-size: 1rem; font-weight: 900; margin-bottom: 10px; }
.lien-titre { font-family: 'Archivo Black', sans-serif; font-size: clamp(3rem, 6vw, 6rem); transition: transform 0.4s; }
.lien-transversal:hover { background-color: var(--couleur-texte); color: var(--couleur-fond); }
.lien-transversal:hover .lien-titre { transform: scale(1.05); }

/* --- LIENS RAPIDES --- */
.liens-rapides {
    display: flex; 
    justify-content: center; 
    align-items: center; 
    flex-wrap: wrap; 
    gap: 15px;
    padding: 20px 40px; 
    background-color: var(--couleur-fond);
    border-top: var(--bordure-epaisse);
}

.rapide-label { 
    font-size: 0.85rem; 
    font-weight: 900; 
    opacity: 0.5; 
}

.rapide-lien { 
    font-size: 0.95rem; 
    font-weight: 900; 
    text-transform: uppercase; 
    transition: opacity 0.3s ease, transform 0.3s ease; 
    display: inline-block;
}

.rapide-lien:hover { 
    opacity: 0.5; 
    transform: translateY(-2px); 
}

.rapide-sep { 
    font-weight: 900; 
    opacity: 0.3; 
    font-size: 0.8rem; 
}

/* --- PIED DE PAGE --- */
.pied-de-page { padding: 80px 40px 40px 40px; background-color: var(--couleur-texte); color: var(--couleur-fond); }
.footer-titre-conteneur { display: flex; flex-direction: column; line-height: 0.9; margin-bottom: 60px; }
.footer-titre { font-size: clamp(3rem, 8vw, 8rem); }
.footer-titre.contour { color: transparent; -webkit-text-stroke: 2px var(--couleur-fond); }

.grille-contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; border-top: 1px solid rgba(244, 244, 240, 0.3); padding-top: 40px; }
.element-contact h3 { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; color: rgba(244, 244, 240, 0.6); }
.lien-contact { font-size: 1.5rem; font-weight: 900; position: relative; display: inline-block; }
.lien-contact:not(.statique)::after { content: ''; position: absolute; width: 0; height: 2px; bottom: -5px; left: 0; background-color: var(--couleur-fond); transition: width 0.3s ease; }
.lien-contact:not(.statique):hover::after { width: 100%; }

/* --- ANIMATIONS DE RÉVÉLATION --- */
.anim-reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease, transform 0.8s ease; }
.anim-reveal.visible { opacity: 1; transform: translateY(0); }

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .bloc-etude, .bloc-etude.inverse { grid-template-columns: 1fr; }
    .bloc-etude.inverse .etude-texte { order: 1; border-left: none; border-right: none; }
    .bloc-etude.inverse .etude-visuel { order: 2; }
    
    .etude-texte { padding: 40px 20px; border-right: none; border-bottom: var(--bordure-epaisse); }
    .etude-visuel { padding: 40px 20px; }
    
    .media-graphisme { height: auto; min-height: 400px; }
    
    .navigation { flex-direction: column; gap: 20px; padding: 20px; }
    .nav-droite { display: flex; flex-wrap: wrap; justify-content: center; gap: 15px; }
    .nav-droite .nav-lien { margin-left: 0; }
    
    .section-expertise { padding: 40px 20px; }
    .section-titre.droite { float: none; }
    
    .curseur-suiveur { display: none; }
    * { cursor: auto; }
}

@media (max-width: 600px) {
    .liens-rapides { flex-direction: column; gap: 12px; padding: 20px; }
    .rapide-sep { display: none; }
}