/* ==========================================================================
   SOMMAIRE :
   0.  POLICES (TYPOGRAPHIE)
   1.  VARIABLES & RESET
   2.  LOADER (Écran de chargement)
   3.  TYPOGRAPHIE & STRUCTURE GLOBALE
   4.  BOUTONS & ÉLÉMENTS UI
   5.  HEADER & NAVIGATION (Menu, Logo)
   6.  FOOTER
   7.  PAGE : ACCUEIL (Index, Hero, Carrousel Fond)
   8.  PAGE : PROFIL (Compétences, Timeline, Contact)
   9.  PAGE : LOGIN (Connexion)
   10. ESPACE CLIENT (Dashboard & Galerie Privée)
   11. PAGE : DÉTAIL PROJET (Hero, Description, Processus, Stats)
   12. LIGHTBOX (Modal images)
   13. PAGE 404
   14. MENTIONS LÉGALES
   ========================================================================== */

/* ==========================================================================
   0. POLICES (TYPOGRAPHIE)
   ========================================================================== */
@font-face {
  font-family: 'Sharp Grotesk';
  src: url('../fonts/SharpGrotesk-Book20.otf') format('opentype');
  font-weight: 400;
}
@font-face {
  font-family: 'Sharp Grotesk';
  src: url('../fonts/SharpGrotesk-Medium20.otf') format('opentype');
  font-weight: 500;
}
@font-face {
  font-family: 'Sharp Grotesk Title';
  src: url('../fonts/SharpGrotesk-Black15.otf') format('opentype'); /* Ou Black05 selon ton fichier */
  font-weight: 600;
}

/* ==========================================================================
   1. VARIABLES & RESET & BASE
   ========================================================================== */
:root {
  --background: #0a0a0a;
  --foreground: #ffffff;
  --primary: #ef4444;       /* Rouge vif */
  --primary-hover: #dc2626;
  --gray-950: #030712;
  --gray-900: #111827;
  --gray-800: #1f2937;
  --gray-700: #374151;
  --gray-500: #6b7280;
  --gray-400: #9ca3af;
  --gray-300: #d1d5db;     
  --gray-200: #e5e7eb;
  
  --photoshop-glow: rgba(49, 168, 255, 0.8);
  --premiere-glow: rgba(153, 153, 255, 0.8);
  --lightroom-glow: rgba(173, 213, 236, 0.8);
  --illustrator-glow: rgba(255, 154, 0, 0.8);
}

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

html { scroll-behavior: smooth; }

::-webkit-scrollbar { display: none; }
html, body { -ms-overflow-style: none; scrollbar-width: none; }

body {
  font-family: "Sharp Grotesk", sans-serif; /* MODIFIÉ : Police Sharp Grotesk */
  font-weight: 400;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased; 
}

a { color: inherit; text-decoration: none; transition: color 0.3s; }
img { max-width: 100%; height: auto; display: block; }
button { background: none; border: none; cursor: pointer; font-family: inherit; }

body.page-accueil { overflow: hidden; } 
body.page-tableau-bord { min-height: 100vh; display: flex; flex-direction: column; background-color: #050505; }
body.page-galerie { background-color: #050505; color: white; }


/* ==========================================================================
   2. LOADER
   ========================================================================== */
#ecran-chargement {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: #0a0a0a; z-index: 99999;
    display: flex; justify-content: center; align-items: center;
    transition: background-color 0.8s ease-out, visibility 0s linear 1.5s; 
}
#ecran-chargement.cache { background-color: transparent; visibility: hidden; pointer-events: none; }
.contenu-chargement { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.video-chargement { width: 100px; height: auto; display: block; opacity: 1; transform: scale(1); transition: opacity 0.6s ease-out 0.5s, transform 0.6s ease-out 0.5s, filter 0.6s ease-out 0.5s; }
#ecran-chargement.cache .video-chargement { opacity: 0; transform: scale(1.5); filter: blur(10px); }
@media (max-width: 768px) { .video-chargement { width: 30vw; } }


/* ==========================================================================
   3. TYPOGRAPHIE & STRUCTURE GLOBALE
   ========================================================================== */
.conteneur-page { min-height: 100vh; display: flex; flex-direction: column; }
.contenu-principal { max-width: 1200px; margin: 0 auto; padding: 3rem 1rem; width: 100%; flex: 1; }

/* MODIFIÉ : Style des titres globaux (Grand, Capitales, Sharp Grotesk) */
.page-title, h1, h2 { 
    font-family: 'Sharp Grotesk', sans-serif;
    font-size: 3.5rem; 
    font-weight: 700; 
    line-height: 1.1;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    margin-bottom: 1rem; 
    text-align: center; 
}

.page-subtitle { font-size: 1.25rem; color: var(--gray-400); margin-bottom: 3rem; text-align: center; }

.section-title, .titre-section { 
    font-family: 'Sharp Grotesk', sans-serif;
    font-size: 3.5rem; /* Adapté au style global */
    font-weight: 700; 
    margin: 3rem 0 1.5rem; 
    color: var(--foreground); 
    text-align: center; /* Centré comme demandé */
    text-transform: uppercase;
    width: 100%;
    display: block;
}


/* ==========================================================================
   4. BOUTONS & ÉLÉMENTS UI
   ========================================================================== */
/* MODIFIÉ : Uppercase et letter-spacing pour un look plus premium */
.bouton { 
    display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.7rem 1.5rem; 
    border-radius: 9999px; font-weight: 500; transition: all 0.3s; 
    font-family: 'Sharp Grotesk', sans-serif; text-transform: uppercase; 
    font-size: 0.85rem; letter-spacing: 0.05em; 
}

.bouton-contour { 
    border: 1px solid white; background-color: transparent; color: white; 
    padding: 14px 24px; border-radius: 50px; text-decoration: none; font-weight: 500; 
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; 
    transition: all 0.3s ease; cursor: pointer;
}
.bouton-contour:hover { background-color: rgba(255, 255, 255, 0.1); transform: translateY(-2px); }

.bouton-primaire { background-color: var(--primary); color: var(--foreground); border: 1px solid var(--primary); }
.bouton-primaire:hover { background-color: var(--primary-hover); }

.bouton-plein { width: 100%; justify-content: center; margin-top: 1rem; cursor: pointer; }

.bouton-rond { 
    display: flex; align-items: center; justify-content: center; width: 50px; height: 50px; border-radius: 50%; 
    background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); 
    border: 1px solid rgba(255, 255, 255, 0.2); color: white; transition: all 0.3s ease; cursor: pointer; text-decoration: none; 
}
.bouton-rond:hover { background: var(--primary); border-color: var(--primary); transform: translateY(-2px); box-shadow: 0 5px 15px rgba(239, 68, 68, 0.3); }
.bouton-rond svg { width: 20px; height: 20px; stroke-width: 2; }
.bouton-rond.deconnexion { background: rgba(239, 68, 68, 0.2); border-color: rgba(239, 68, 68, 0.5); }
.bouton-rond.deconnexion:hover { background: #ef4444; color: white; }


/* ==========================================================================
   5. HEADER & NAVIGATION
   ========================================================================== */
.superposition-entete { position: fixed; top: 0; left: 0; width: 100%; height: 0; z-index: 2000; }

.logo-entete { position: absolute; top: 35px; left: 3rem; height: 50px; width: auto; display: flex; align-items: center; pointer-events: auto; z-index: 2001; }
.logo-entete img { height: 50px !important; width: auto !important; max-width: none !important; max-height: 50px !important; object-fit: contain; display: block; transition: transform 0.3s ease; }
.logo-entete:hover img { transform: scale(1.05); }

.logo-entete-scroll { position: fixed; top: 35px; left: 3rem; height: 50px; display: flex; align-items: center; z-index: 2001; pointer-events: auto; }
.logo-entete-scroll img { height: 50px !important; width: auto !important; max-width: none !important; object-fit: contain; display: block; transition: transform 0.3s ease; }
.logo-entete-scroll:hover img { transform: scale(1.05); }

.actions-entete { position: absolute; top: 35px; right: 3rem; height: 50px; display: flex; align-items: center; gap: 15px; pointer-events: auto; }

/* MODIFIÉ : padding uniforme 10px */
.barre-navigation { 
    position: fixed; top: 30px; left: 50%; transform: translateX(-50%); 
    background: rgba(0, 0, 0, 0.3); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); 
    border-radius: 50px; border: 1px solid rgba(255, 255, 255, 0.2); 
    padding: 10px; /* Uniforme */
    z-index: 1000; white-space: nowrap; 
}
.barre-navigation ul { display: flex; list-style: none; gap: 20px; margin: 0; padding: 0; }
.barre-navigation ul li a { display: block; font-size: 0.9rem; font-weight: 500; padding: 8px 18px; border-radius: 50px; color: #fff; transition: all 0.3s ease; }
.barre-navigation ul li a:hover { background: rgba(255, 255, 255, 0.15); }
.barre-navigation ul li a.actif { background-color: var(--primary); color: #fff; box-shadow: 0 0 10px rgba(239, 68, 68, 0.4); }

/* --- RESPONSIVE MOBILE NAV BAR (Celle qu'on a perfectionnée) --- */
@media (max-width: 768px) {
    .logo-entete, .logo-entete-scroll { left: 1.5rem; top: 25px; height: 40px; }
    .logo-entete img, .logo-entete-scroll img { height: 40px !important; max-height: 40px !important; }
    .actions-entete { right: 1.5rem; top: 25px; }
    .bouton-rond { width: 40px; height: 40px; }
    .logo-entete-scroll { display: none !important; }

    /* Fix barre de navigation mobile */
    .barre-navigation {
        left: 1.5rem !important; 
        right: 85px !important; 
        transform: none !important;
        width: auto !important;
        min-width: auto !important; 
        top: 25px;
        padding: 5px; 
        display: flex;
        align-items: center;
        background: rgba(0, 0, 0, 0.3);
        border-radius: 50px;
        overflow: hidden; 
    }
    .barre-navigation ul {
        display: flex !important;
        width: 100% !important;
        justify-content: space-evenly;
        margin: 0;
        padding: 0;
        list-style: none;
    }
    .barre-navigation ul li {
        flex: 1;
        display: flex;
    }
    .barre-navigation ul li a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        padding: 8px 0;
        border-radius: 50px;
        font-size: 0.75rem; 
        white-space: nowrap; 
        transition: background 0.3s;
    }
    .barre-navigation ul li a.actif {
        background-color: var(--primary);
        color: #fff;
    }
}

/* Sécurité pour très petits écrans */
@media (max-width: 415px) {
    .barre-navigation {
        left: 1rem !important; 
        right: 75px !important; 
    }
    .barre-navigation ul li a {
        font-size: 0.65rem; 
        letter-spacing: -0.02em; 
    }
}


/* ==========================================================================
   6. FOOTER
   ========================================================================== */
.pied-page-global { background-color: #050505; padding: 4rem 2rem; margin-top: auto; width: 100%; position: relative; z-index: 10; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.contenu-pied-page { max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 2rem; }
.logo-pied-page { width: 120px; opacity: 0.7; transition: opacity 0.3s ease; }
.logo-pied-page:hover { opacity: 1; }
.logo-pied-page img { width: 100%; height: auto; display: block; }
.liens-pied-page { display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem; }
.liens-pied-page a { color: var(--gray-400); text-decoration: none; transition: color 0.3s ease; font-size: 0.95rem; }
.liens-pied-page a:hover { color: var(--foreground); }
.copyright-pied-page { color: var(--gray-500); font-size: 0.85rem; text-align: center; margin-top: 1rem; }
@media (max-width: 768px) { .pied-page-global { padding: 3rem 1rem; } .liens-pied-page { gap: 1rem; } }


/* ==========================================================================
   7. PAGE : ACCUEIL (INDEX)
   ========================================================================== */
.conteneur-principal { height: 100vh; height: 100dvh; width: 100%; position: relative; }

.points-navigation { position: fixed; right: 2rem; top: 50%; transform: translateY(-50%); z-index: 50; display: flex; flex-direction: column; gap: 1rem; }
.point-nav { width: 10px; height: 10px; border-radius: 50%; background-color: rgba(255, 255, 255, 0.3); border: 1px solid transparent; cursor: pointer; transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.point-nav:hover { background-color: rgba(255, 255, 255, 0.6); transform: scale(1.2); }
.point-nav.actif { background-color: var(--foreground); height: 35px; border-radius: 20px; box-shadow: 0 0 15px rgba(255, 255, 255, 0.4); }

.section { position: relative; height: 100vh; height: 100dvh; width: 100%; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; }

.fond-anime { position: absolute; inset: 0; z-index: 0; background-color: var(--background);}
.fond-fixe { position: fixed !important; width: 100vw; height: 100vh;}
.element-fond { position: absolute; border-radius: 50%; filter: blur(3rem); opacity: 0.4; }
.element-fond-1 { height: 60vh; width: 60vh; background: linear-gradient(to right, #3b82f6, #8b5cf6); animation: flottement-lent 12s ease-in-out infinite; left: 20%; top: 20%; }
.element-fond-2 { height: 50vh; width: 50vh; background: linear-gradient(to right, #ef4444, #f97316); animation: flottement-moyen 8s ease-in-out infinite; right: 20%; bottom: 20%; }
.element-fond-3 { height: 40vh; width: 40vh; background: linear-gradient(to right, #10b981, #14b8a6); animation: flottement-rapide 6s ease-in-out infinite; left: 35%; bottom: 35%; }
.element-fond-4 { height: 50vh; width: 50vh; background: linear-gradient(to right, #f59e0b, #d97706); animation: flottement-moyen 10s ease-in-out infinite; left: 25%; top: 25%; opacity: 0.3; }
.element-fond-5 { height: 40vh; width: 40vh; background: linear-gradient(to right, #06b6d4, #0ea5e9); animation: flottement-lent 15s ease-in-out infinite; right: 25%; bottom: 25%; opacity: 0.3; }
@keyframes flottement-lent { 0% { transform: translate(0, 0); } 50% { transform: translate(-60px, 60px); } 100% { transform: translate(0, 0); } }
@keyframes flottement-moyen { 0% { transform: translate(0, 0); } 50% { transform: translate(40px, -40px); } 100% { transform: translate(0, 0); } }
@keyframes flottement-rapide { 0% { transform: translate(0, 0); } 50% { transform: translate(-30px, 30px); } 100% { transform: translate(0, 0); } }

.fond-carrousel { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; background-color: #000; }
.fond-carrousel img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: 0; transition: opacity 1.5s ease-in-out; filter: brightness(0.65); }
.fond-carrousel img.actif { opacity: 1; }
.carrousel-mobile { display: none !important; }
.carrousel-bureau { display: block !important; }

/* MODIFIÉ : TITRES MASSIFS (Exclusif à l'index) */
body.page-accueil .section .contenu-section h2, 
body.page-accueil .contenu-hero h1 a,
body.page-accueil .contenu-contact h2 {
    font-family: 'Sharp Grotesk Title', sans-serif !important;
    font-size: 8.5vw !important; 
    line-height: 0.9 !important;
    letter-spacing: 0.02em !important;
    text-transform: uppercase !important;
    display: block;
    margin-bottom: 0;
}
body.page-accueil .contenu-hero h1 a { font-size: 7vw !important; letter-spacing: 0.03em !important; }
body.page-accueil .contenu-contact h2 { font-size: 8vw !important; }

.contenu-hero { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 10; text-align: center; width: 100%; }
.section .contenu-section { position: absolute !important; top: 10rem; left: 3rem; z-index: 10; text-align: left; }
.section .contenu-section p { font-size: 1.25rem; color: var(--gray-300); text-shadow: 0 2px 10px rgba(0,0,0,0.6); }
.section .bouton-section { position: absolute !important; bottom: 5rem; left: 3rem; z-index: 10; padding: 0.75rem 1.5rem; font-size: 1rem; border-width: 2px; }
.liens-sociaux { position: absolute; bottom: 3rem; left: 0; right: 0; display: flex; gap: 1rem; justify-content: center; z-index: 10; }
.lien-social { display: flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; background-color: var(--foreground); color: var(--background); border-radius: 50%; }
.lien-social:hover { background-color: var(--gray-200); }
.bouton-defilement { position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%); animation: rebond 2s infinite; z-index: 10; color: var(--foreground); }
.sous-titre-page { font-size: 1.25rem; color: var(--gray-400); margin-bottom: 3rem; text-align: center; }

@keyframes rebond { 0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); } 40% { transform: translateX(-50%) translateY(-10px); } 60% { transform: translateX(-50%) translateY(-5px); } }

@media (max-width: 1200px) { .section .contenu-section { top: 8rem; } }
@media (max-width: 1024px) { #hero .logo { display: none; } }
@media (max-width: 768px), (orientation: portrait) { 
    .carrousel-bureau { display: none !important; } 
    .carrousel-mobile { display: block !important; } 
    /* MODIFIÉ : Cacher les points sur mobile */
    .points-navigation { display: none !important; }
}
@media (max-width: 768px) {
    body.page-accueil .section .contenu-section h2, 
    body.page-accueil .contenu-hero h1 a,
    body.page-accueil .contenu-contact h2 { font-size: 15vw !important; }
}


/* ==========================================================================
   8. PAGE : PROFIL
   ========================================================================== */
.grille-profil { display: grid; grid-template-columns: 1fr; gap: 3rem; margin-bottom: 4rem; }
@media (min-width: 768px) { .grille-profil { grid-template-columns: 1fr 1fr; } }
.colonne-profil { display: flex; flex-direction: column; gap: 2rem; }

/* MODIFIÉ : Petits titres proportionnés pour le contenu */
.section-competences h2,
.section-outils h2,
.section-chronologie h2,
.section-projets h2 {
    font-family: 'Sharp Grotesk', sans-serif;
    font-size: 1.5rem !important; 
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.texte-profil p { margin-bottom: 1rem; font-size: 1.15rem; line-height: 1.7; color: var(--gray-300); }
.citation { text-align: center; font-size: 1.25rem; font-style: italic; color: var(--gray-400); margin-bottom: 3rem; }
.photo-profil { aspect-ratio: 1 / 1; border-radius: 0.5rem; overflow: hidden; }
.photo-profil img { width: 100%; height: 100%; object-fit: cover; }

.barre-competence { margin-bottom: 1rem; }
.entete-competence { display: flex; justify-content: space-between; margin-bottom: 0.25rem; }
.progression-competence { height: 0.5rem; background-color: var(--gray-700); border-radius: 9999px; overflow: hidden; }
.remplissage-progression { height: 100%; background: linear-gradient(to right, var(--primary), #ef4444); border-radius: 9999px; }

.grille-outils { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
@media (min-width: 640px) { .grille-outils { grid-template-columns: repeat(4, 1fr); } }
.outil { display: flex; flex-direction: column; align-items: center; }
.icone-adobe { width: 4rem; height: 4rem; border-radius: 0.5rem; display: flex; align-items: center; justify-content: center; margin-bottom: 0.5rem; transition: all 0.3s ease; }
.icone-adobe img { width: 2.5rem; height: 2.5rem; }
.icone-adobe.photoshop:hover { box-shadow: 0 0 15px var(--photoshop-glow); }
.icone-adobe.premiere:hover { box-shadow: 0 0 15px var(--premiere-glow); }
.icone-adobe.lightroom:hover { box-shadow: 0 0 15px var(--lightroom-glow); }
.icone-adobe.illustrator:hover { box-shadow: 0 0 15px var(--illustrator-glow); }

.section-chronologie { margin-top: 4rem; }
.section-chronologie h2 { text-align: center; margin-bottom: 2rem; }
.grille-chronologie { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 768px) { .grille-chronologie { grid-template-columns: repeat(3, 1fr); } }
.chronologie { position: relative; margin: 2rem 0; }
.chronologie::before { content: ""; position: absolute; left: 0; top: 0; width: 2px; height: 100%; background: linear-gradient(to bottom, transparent, var(--primary) 15%, var(--primary) 85%, transparent); }
.item-chronologie { position: relative; padding-left: 2rem; padding-bottom: 1.5rem; }
.item-chronologie::before { content: ""; position: absolute; left: -4px; top: 0; width: 10px; height: 10px; border-radius: 50%; background-color: var(--primary); }
.contenu-chronologie h4 { font-weight: 600; font-size: 1rem; }
.contenu-chronologie p { color: var(--gray-400); font-size: 0.875rem; }
.date-chronologie { font-size: 0.75rem; color: var(--gray-500); position: absolute; right: 0; top: 0; }
@media (max-width: 640px) { .date-chronologie { position: static; display: block; } }

.bloc-contact { background-color: #111827; text-align: center; padding: 80px 20px; color: #fff; border-radius: 15px; margin-top: 4rem; }
.titre-contact { font-size: 2.5rem; margin-bottom: 20px; }
.desc-contact { font-size: 1.2rem; max-width: 700px; margin: 0 auto 50px; color: #fff; font-weight: 500; line-height: 1.5; }
.cartes-contact { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px; margin-bottom: 40px; }
.carte-contact { flex: 1 1 250px; max-width: 300px; background-color: #1f2937; border-radius: 15px; padding: 40px 20px; text-decoration: none; color: #fff; transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease; display: flex; flex-direction: column; align-items: center; text-align: center; border: 1px solid transparent; }
.carte-contact svg { margin-bottom: 20px; width: 50px; height: 50px; stroke: #fff; }
.carte-contact h3 { margin-bottom: 10px; font-size: 1.3rem; }
.carte-mail:hover { box-shadow: 0 0 15px #f44336; border-color: #f44336; transform: scale(1.05); }
.carte-insta:hover { box-shadow: 0 0 15px #E1306C; border-color: #E1306C; transform: scale(1.05); }
.carte-linkedin:hover { box-shadow: 0 0 15px #0A66C2; border-color: #0A66C2; transform: scale(1.05); }
.boutons-contact { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.bouton-rouge { background-color: #f44336; color: #fff; padding: 14px 24px; border-radius: 50px; }
.bouton-rouge:hover { background-color: #ff5a4c; }
.boutons-contact .bouton-contour { padding: 14px 24px; border-radius: 50px; font-size: 1rem; }

.section-projets h2 { margin-bottom: 3rem; text-align: center; }
.conteneur-carrousel { overflow: hidden; width: 100%; position: relative; mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent); -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent); }
.carrousel-infini { display: flex; gap: 1rem; animation: scroll 30s linear infinite; width: max-content; }
.carrousel-infini:hover { animation-play-state: paused; }
.carte-carrousel { width: 280px; flex-shrink: 0; }
.interieur-carte-carrousel { background: var(--gray-900); border-radius: 0.5rem; overflow: hidden; }
.image-carrousel { aspect-ratio: 16/9; }
.image-carrousel img { width: 100%; height: 100%; object-fit: cover; }
.contenu-carrousel { padding: 1rem; }
.titre-carrousel { font-weight: 700; margin-bottom: 0.5rem; }
.description-carrousel { font-size: 0.85rem; color: var(--gray-400); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 1rem; }
.lien-carrousel { font-size: 0.8rem; color: var(--primary); text-transform: uppercase; font-weight: 700; }
@keyframes scroll { to { transform: translateX(-50%); } }

@media (max-width: 768px) {
  .profile-grid { display: flex; flex-direction: column; gap: 2rem; }
  .colonne-profil { display: contents; }
  .photo-profil { order: 1; margin-bottom: 1rem; }
  .texte-profil { order: 2; }
  .cartes-contact { flex-direction: column; align-items: center; }
}


/* ==========================================================================
   9. PAGE : LOGIN (CONNEXION)
   ========================================================================== */
.ecran-connexion { position: relative; width: 100%; height: 100dvh; display: flex; align-items: center; justify-content: center; z-index: 10; }
.boite-connexion { width: 90%; max-width: 400px; background-color: rgba(10, 10, 10, 0.65); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 1rem; padding: 2.5rem; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6); transform: translateY(-20px); }
.titre-connexion h2 { font-size: 1.75rem; font-weight: 700; margin-bottom: 0.5rem; text-align: center; }
.titre-connexion p { color: var(--gray-400); font-size: 0.9rem; text-align: center; margin-bottom: 2rem; }
.groupe-formulaire { margin-bottom: 1.5rem; }
.etiquette-formulaire { display: block; margin-bottom: 0.5rem; color: var(--gray-300); font-size: 0.9rem; }
.champ-saisie { width: 100%; padding: 0.75rem 1rem; background-color: rgba(255, 255, 255, 0.05); border: 1px solid var(--gray-700); border-radius: 0.5rem; color: white; outline: none; transition: 0.3s; }
.champ-saisie:focus { border-color: var(--primary); background-color: rgba(255, 255, 255, 0.1); }


/* ==========================================================================
   10. ESPACE CLIENT (DASHBOARD & GALERIE PRIVÉE)
   ========================================================================== */
.barre-entete-client { position: fixed; top: 0; left: 0; width: 100%; height: 120px; background: rgba(10, 10, 10, 0.85); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); border-bottom: 1px solid rgba(255, 255, 255, 0.1); z-index: 10; display: flex; align-items: center; justify-content: center; }
.bienvenue-client { text-align: center; color: white; padding-top: 10px; }
.bienvenue-client span { font-size: 0.8rem; color: var(--gray-400); text-transform: uppercase; letter-spacing: 2px; display: block; }
.bienvenue-client h2 { font-size: 1.5rem; font-weight: 700; margin: 0.25rem 0 0; color: white; }
.conteneur-tableau-bord { flex: 1; width: 100%; margin: 0 auto; padding: 2rem 2rem; margin-top: 7vw; }
.grille-projets-client { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; justify-content: center; max-width: 900px; margin: 0 auto; }
.carte-projet-client { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.1); border-radius: 1rem; overflow: hidden; transition: all 0.4s ease; position: relative; }
.carte-projet-client:hover { transform: translateY(-5px); border-color: #ef4444; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.image-carte { height: 200px; width: 100%; position: relative; overflow: hidden; }
.image-carte img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.carte-projet-client:hover .image-carte img { transform: scale(1.05); }
.contenu-carte { padding: 1.5rem; }
.infos-carte { font-size: 0.85rem; color: var(--gray-500); margin-bottom: 0.5rem; display: flex; justify-content: space-between; }
.titre-carte { font-size: 1.3rem; font-weight: 700; margin-bottom: 1.5rem; color: white; }
.actions-carte { display: flex; gap: 10px; }
.bouton-galerie { flex: 1; text-align: center; background: #fff; color: #000; padding: 10px; border-radius: 6px; font-weight: 600; transition: 0.3s; text-decoration: none; }
.bouton-galerie:hover { background: #e5e5e5; }
.bouton-telecharger { width: 45px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--gray-700); border-radius: 6px; color: var(--gray-300); transition: 0.3s; }
.bouton-telecharger:hover { border-color: #fff; color: white; }

@media(max-width: 768px) { .barre-entete-client { height: auto; padding: 80px 1rem 1rem; flex-direction: column; } .conteneur-tableau-bord { margin-top: 140px; } }

/* Galerie Privée */
.banniere-galerie { position: relative; height: 50vh; width: 100%; overflow: hidden; display: flex; align-items: flex-end; margin-bottom: 4rem; }
.fond-banniere { position: absolute; inset: 0; z-index: 0; background-size: cover; background-position: center; filter: blur(5px) brightness(0.85); transform: scale(1.1); }
.contenu-banniere { position: relative; z-index: 2; width: 100%; max-width: 1400px; margin: 0 auto; padding: 3rem 2rem; display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 2rem; }
.titre-galerie h1 { font-size: 3.5rem; font-weight: 700; margin: 0; background: linear-gradient(to right, #fff, #aaa); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.meta-galerie { color: var(--gray-400); font-size: 1.1rem; margin-top: 0.5rem; display: flex; align-items: center; gap: 5px; }
.meta-galerie a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 5px; transition: color 0.3s; }
.meta-galerie a:hover { color: white; }
.bouton-tout-telecharger { background: white; color: black; padding: 1rem 2rem; border-radius: 50px; font-weight: 600; display: inline-flex; align-items: center; gap: 10px; transition: all 0.3s ease; text-decoration: none; }
.bouton-tout-telecharger:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(255, 255, 255, 0.2); }
.conteneur-galerie { max-width: 1400px; margin: 0 auto; padding: 0 2rem 4rem; column-count: 3; column-gap: 1.5rem; }
.carte-item-galerie { display: block; break-inside: avoid; margin-bottom: 1.5rem; position: relative; border-radius: 12px; overflow: hidden; width: 100%; }
.carte-item-galerie img { width: 100%; height: auto; display: block; transition: transform 0.5s ease; }
.lien-zoom { position: absolute; inset: 0; z-index: 10; cursor: zoom-in; }
.calque-superpose { position: absolute; inset: 0; z-index: 20; background: rgba(0, 0, 0, 0.4); backdrop-filter: blur(2px); opacity: 0; transition: opacity 0.3s ease; display: flex; flex-direction: column; justify-content: space-between; padding: 1.5rem; pointer-events: none; }
.carte-item-galerie:hover .calque-superpose { opacity: 1; }
.carte-item-galerie:hover img { transform: scale(1.05); }
.actions-item { display: flex; justify-content: flex-end; gap: 10px; }
.bouton-action { width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, 0.2); backdrop-filter: blur(10px); display: flex; align-items: center; justify-content: center; color: white; transition: 0.3s; border: 1px solid rgba(255, 255, 255, 0.3); pointer-events: auto; cursor: pointer; }
.bouton-action:hover { background: white; color: black; }
.icone-zoom { align-self: center; color: white; opacity: 0; transform: translateY(10px); transition: 0.3s 0.1s; }
.carte-item-galerie:hover .icone-zoom { opacity: 1; transform: translateY(0); }
@media(max-width: 1024px) { .conteneur-galerie { column-count: 2; } }
@media(max-width: 768px) { .conteneur-galerie { column-count: 1; } .banniere-galerie { padding-top: 100px; height: auto; } .titre-galerie h1 { font-size: 2.5rem; } }

/* Grilles Générales */
.galerie-photo { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem; grid-auto-flow: dense; width: 100%; }
.item-photo { position: relative; overflow: hidden; border-radius: 0.5rem; cursor: pointer; aspect-ratio: 1 / 1; width: 100%; }
.item-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; display: block; }
.item-photo:hover img { transform: scale(1.1); }
.item-photo.paysage { grid-column: span 2; aspect-ratio: 2 / 1; }
.item-photo.portrait-haut { grid-row: span 2; aspect-ratio: 1 / 2; }
.grille-projets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-bottom: 4rem; width: 100%; }
.boite-projet { position: relative; width: 100%; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 0.5rem; background-color: var(--gray-900); }
.boite-projet img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.boite-projet:hover img { transform: scale(1.1); }
.info-projet { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%); display: flex; flex-direction: column; justify-content: flex-end; padding: 1.5rem; opacity: 0; transform: translateY(20px); transition: all 0.3s ease; }
.boite-projet:hover .info-projet { opacity: 1; transform: translateY(0); }
.titre-projet { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.5rem; color: #fff; }
.description-projet { font-size: 0.9rem; color: var(--gray-300) !important; font-weight: 400; }
@media (max-width: 1024px) { .galerie-photo { grid-template-columns: repeat(3, 1fr); } .grille-projets { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .galerie-photo, .grille-projets { grid-template-columns: 1fr; } }


/* ==========================================================================
   11. PAGE : DÉTAIL PROJET
   ========================================================================== */
.banniere-projet { position: relative; height: 70vh; width: 100%; overflow: hidden; }
.image-banniere-projet { position: absolute; inset: 0; z-index: 0; }
.image-banniere-projet img { width: 100%; height: 100%; object-fit: cover; }
.calque-banniere-projet { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.2)); display: flex; align-items: flex-end; padding: 3rem; z-index: 1; }
.contenu-banniere-projet { max-width: 800px; }
.categorie-projet { display: inline-block; background-color: var(--primary); color: white; padding: 0.25rem 1rem; border-radius: 2rem; font-size: 0.875rem; font-weight: 500; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 0.05em; }
.titre-projet-detail { font-size: 3.5rem; font-weight: 700; margin-bottom: 1rem; color: white; }
.meta-projet { display: flex; gap: 2rem; color: var(--gray-400); font-size: 1rem; }
.conteneur-projet { max-width: 1200px; margin: 0 auto; padding: 4rem 2rem; }
.grille-detail-projet { display: grid; grid-template-columns: 1fr; gap: 3rem; margin-bottom: 4rem; }
@media (min-width: 992px) { .grille-detail-projet { grid-template-columns: 1fr 1fr; } }
.colonne-description { color: var(--foreground); }
.colonne-description h2 { font-size: 2rem; font-weight: 700; margin-bottom: 1.5rem; color: var(--foreground); }
.colonne-description p { font-size: 1.125rem; line-height: 1.7; margin-bottom: 1.5rem; color: var(--gray-300); }
.details-techniques { margin: 2.5rem 0; display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 768px) { .details-techniques { grid-template-columns: 1fr 1fr; } }
.bloc-detail h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 1rem; color: var(--foreground); }
.bloc-detail ul { list-style-type: none; padding: 0; margin: 0; }
.bloc-detail ul li { position: relative; padding-left: 1.5rem; margin-bottom: 0.75rem; color: var(--gray-300); }
.bloc-detail ul li::before { content: ""; position: absolute; left: 0; top: 0.5rem; width: 0.5rem; height: 0.5rem; background-color: var(--primary); border-radius: 50%; }
.liste-outils { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.badge-outil { background-color: var(--gray-800); color: var(--gray-300); padding: 0.5rem 1rem; border-radius: 0.25rem; font-size: 0.875rem; }
.citation-projet { margin: 2.5rem 0; padding: 2rem; background-color: var(--gray-900); border-left: 4px solid var(--primary); border-radius: 0.25rem; }
.citation-projet blockquote { font-size: 1.25rem; font-style: italic; color: var(--gray-300); margin: 0; }

.section-galerie-projet h2 { font-size: 2rem; font-weight: 700; margin-bottom: 1.5rem; color: var(--foreground); }
.grille-galerie-projet { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.item-galerie-projet { border-radius: 0.5rem; overflow: hidden; cursor: pointer; transition: transform 0.3s ease; position: relative; display: block; }
.item-galerie-projet:hover { transform: scale(1.02); }
.item-galerie-projet.actif { grid-column: span 3; aspect-ratio: auto; height: auto; border: 2px solid var(--primary); background-color: var(--gray-900); }
.item-galerie-projet.actif img { width: 100%; height: auto; object-fit: contain; max-height: 85vh; display: block; }
.item-galerie-projet:not(.actif) { aspect-ratio: 1 / 1; }
.item-galerie-projet:not(.actif) img { width: 100%; height: 100%; object-fit: cover; display: block; }
.galerie-unique .grille-galerie-projet { display: flex; justify-content: center; }
.galerie-unique .item-galerie-projet { width: 100%; max-width: 800px; aspect-ratio: auto; }
.galerie-unique .item-galerie-projet img { object-fit: contain; }

@media (max-width: 768px) { 
    .grille-galerie-projet { grid-template-columns: 1fr; } 
    .item-galerie-projet.actif { grid-column: span 1; } 
}

.section-video-projet { margin: 4rem 0; }
.section-video-projet h2 { font-size: 2rem; font-weight: 700; margin-bottom: 1.5rem; color: var(--foreground); }
.conteneur-video { width: 100%; border-radius: 0.5rem; overflow: hidden; background-color: #000;box-shadow: 0 10px 30px rgba(0,0,0,0.3);}
.conteneur-video video { width: 100%; height: auto; display: block; max-height: 80vh; }

.section-processus { margin: 4rem 0; padding: 3rem; background-color: var(--gray-900); border-radius: 1rem; }
.section-processus h2 { font-size: 2rem; font-weight: 700; margin-bottom: 2.5rem; color: var(--foreground); text-align: center; }
.grille-processus { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
@media (min-width: 768px) { .grille-processus { grid-template-columns: repeat(3, 1fr); } }
.etape-processus { display: flex; flex-direction: column; align-items: center; text-align: center; }
.numero-etape { font-size: 3rem; font-weight: 700; color: var(--primary); margin-bottom: 1rem; opacity: 0.8; }
.contenu-etape h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 1rem; color: var(--foreground); }
.contenu-etape p { font-size: 1rem; line-height: 1.6; color: var(--gray-400); }
.section-resultats { margin: 4rem 0; }
.section-resultats h2 { font-size: 2rem; font-weight: 700; margin-bottom: 1.5rem; color: var(--foreground); }
.section-resultats p { font-size: 1.125rem; line-height: 1.7; margin-bottom: 2.5rem; color: var(--gray-300); }
.grille-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; text-align: center; }
@media (max-width: 768px) { .grille-stats { grid-template-columns: 1fr; } }
.bloc-stat { padding: 2rem; background-color: var(--gray-900); border-radius: 0.5rem; }
.chiffre-stat { font-size: 2.5rem; font-weight: 700; color: var(--primary); margin-bottom: 0.5rem; }
.libelle-stat { font-size: 1rem; color: var(--gray-400); }
.section-projet-suivant { margin: 5rem 0 2rem; padding-top: 2rem; border-top: 1px solid var(--gray-800); }
.lien-projet-suivant { display: flex; flex-direction: column; align-items: flex-end; text-align: right; padding: 1.5rem; background-color: var(--gray-900); border-radius: 0.5rem; transition: all 0.3s ease; }
.lien-projet-suivant:hover { background-color: var(--gray-800); transform: translateY(-5px); }
.lien-projet-suivant span { font-size: 0.875rem; color: var(--gray-400); margin-bottom: 0.5rem; }
.lien-projet-suivant h3 { font-size: 1.5rem; font-weight: 600; color: var(--foreground); margin-bottom: 0.5rem; }


/* ==========================================================================
   12. LIGHTBOX
   ========================================================================== */
.lightbox { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.85); display: none; align-items: center; justify-content: center; z-index: 9999; backdrop-filter: blur(10px); }
.lightbox-content { position: relative; max-width: 90vw; max-height: 90vh; display: flex; align-items: center; justify-content: center; }
.lightbox-content img { max-width: 80vw; max-height: 80vh; object-fit: contain; border-radius: 10px; box-shadow: 0 0 20px rgba(0, 0, 0, 0.6); }
.lightbox-close { position: absolute; top: 20px; right: 25px; font-size: 3rem; color: white; cursor: pointer; z-index: 1001; }
.lightbox-arrow { position: absolute; top: 50%; transform: translateY(-50%); font-size: 3rem; color: white; background-color: rgba(0, 0, 0, 0.4); padding: 10px 15px; border-radius: 10px; cursor: pointer; z-index: 1010; user-select: none; transition: background-color 0.2s; }
.lightbox-arrow:hover { background-color: rgba(255, 255, 255, 0.2); }
.lightbox-arrow.left { left: 20px; }
.lightbox-arrow.right { right: 20px; }


/* ==========================================================================
   13. PAGE 404 (Centrée & Sans Footer)
   ========================================================================== */
body.page-404 { overflow: hidden; height: 100vh; width: 100vw; }
.ecran-404 { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; z-index: 10; padding: 1rem; }
.contenu-404 { text-align: center; max-width: 600px; background: rgba(10, 10, 10, 0.5); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.05); border-radius: 20px; padding: 3rem 2rem; box-shadow: 0 20px 50px rgba(0,0,0,0.5); }
.titre-404 { font-size: 8rem; font-weight: 800; line-height: 1; margin: 0; background: linear-gradient(to bottom right, #fff, var(--primary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.sous-titre-404 { font-size: 2rem; font-weight: 700; color: white; margin-top: 0.5rem; margin-bottom: 1rem; }
.texte-404 { font-size: 1.1rem; color: var(--gray-400); line-height: 1.6; margin-bottom: 2rem; }
@media (max-width: 768px) { .titre-404 { font-size: 5rem; } .sous-titre-404 { font-size: 1.5rem; } .contenu-404 { padding: 2rem 1.5rem; width: 90%; } }
.bouton-retour-404 { display: inline-flex; align-items: center; justify-content: center; gap: 10px; background-color: #ef4444; color: white; padding: 12px 30px; border-radius: 50px; font-weight: 600; text-decoration: none; margin-top: 2rem; transition: all 0.3s ease; border: 1px solid transparent; }
.bouton-retour-404:hover { background-color: #dc2626; transform: translateY(-3px); box-shadow: 0 10px 20px rgba(239, 68, 68, 0.3); }
.bouton-retour-404 svg { margin-bottom: 2px; }


/* ==========================================================================
   14. PAGE MENTIONS LÉGALES
   ========================================================================== */
.legal-container { max-width: 800px; margin: 4rem auto; background-color: rgba(20, 20, 20, 0.75); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); padding: 3rem; border-radius: 1rem; border: 1px solid rgba(255, 255, 255, 0.08); position: relative; z-index: 10; }
.legal-section { margin-bottom: 2.5rem; border-bottom: 1px solid rgba(255, 255, 255, 0.1); padding-bottom: 2rem; }
.legal-section:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.legal-section h2 { font-size: 1.5rem; font-weight: 600; color: var(--foreground); margin-bottom: 1rem; }
.legal-section p { color: var(--gray-300); line-height: 1.8; margin-bottom: 1rem; }
.legal-section strong { color: white; font-weight: 600; }
.legal-section a { color: var(--primary); text-decoration: none; border-bottom: 1px dotted var(--primary); transition: all 0.3s ease; }
.legal-section a:hover { color: var(--primary-hover); border-bottom-style: solid; }
.main-content .page-title { font-size: 2rem; font-weight: 700; margin-top: 5rem; color: var(--foreground); text-align: center; }
@media (max-width: 768px) { .legal-container { padding: 1.5rem; margin: 2rem auto; } }
.page-container { min-height: 100vh; display: flex; flex-direction: column; position: relative; z-index: 1; }