/* --- VARIABLES & RESET --- */
:root {
    --primary: #1a1a1a;      /* Noir Charbon */
    --secondary: #f9f9f9;    /* Blanc Cassé */
    --accent: #c5a059;       /* Or Antique */
    --text-grey: #555555;    /* Gris Texte */
    --white: #ffffff;
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
    
    --spacing: 100px;
    --transition: all 0.4s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--primary);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    font-weight: 400;
    color: var(--primary);
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* --- UTILITIES --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.narrow-container { max-width: 800px; margin: 0 auto; padding: 0 20px; }
.section-padding { padding: var(--spacing) 0; }
.bg-light { background-color: var(--secondary); }
.bg-dark { background-color: var(--primary); color: var(--white); }
.bg-dark h2, .bg-dark p, .bg-dark h4, .bg-dark .subtitle { color: var(--white); }

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

.subtitle {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent);
    margin-bottom: 10px;
    font-weight: 500;
}

h2 { font-size: 2.5rem; margin-bottom: 20px; }
p { color: var(--text-grey); font-weight: 300; margin-bottom: 20px; }
.bg-dark p { color: rgba(255,255,255,0.8); }

/* --- BUTTONS --- */
.btn-gold {
    display: inline-block;
    padding: 15px 40px;
    background-color: var(--accent);
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
    border: 1px solid var(--accent);
    cursor: pointer;
}

.btn-gold:hover {
    background-color: transparent;
    color: var(--accent);
}

.link-arrow {
    font-family: var(--font-heading);
    font-style: italic;
    color: var(--primary);
    font-size: 1.1rem;
    border-bottom: 1px solid transparent;
}

.link-arrow:hover { border-bottom: 1px solid var(--primary); }
.link-arrow i { margin-left: 10px; font-size: 0.9rem; transition: var(--transition); }
.link-arrow:hover i { transform: translateX(5px); }

/* --- NAVBAR --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: var(--white);
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
    padding: 15px 0;
}

.nav-container { display: flex; justify-content: space-between; align-items: center; }

.logo {
    font-size: 1.5rem;
    font-family: var(--font-body);
    font-weight: 500;
    letter-spacing: 2px;
    color: var(--white); 
    text-shadow: 0 2px 10px rgba(0,0,0,0.3); /* Ombre pour lisibilité sur fond clair si besoin */
}
.logo span { color: var(--accent); }

.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links li a {
    font-size: 0.9rem;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.75rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.btn-nav {
    border: 1px solid var(--white);
    padding: 10px 20px;
}

/* Navbar Scrolled State (Texte devient noir) */
.navbar.scrolled .logo, .navbar.scrolled .nav-links li a { 
    color: var(--primary); 
    text-shadow: none;
}
.navbar.scrolled .btn-nav { border-color: var(--primary); }

/* Burger */
.burger { display: none; cursor: pointer; }
.burger div { width: 25px; height: 2px; background-color: var(--white); margin: 5px; transition: var(--transition); }
.navbar.scrolled .burger div { background-color: var(--primary); }

/* --- HERO (HOME) --- */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: url('../img/cuisine.jpeg')  no-repeat center center/cover;}
.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.4); 
    z-index: 1;
}

.hero-content { position: relative; z-index: 2; color: var(--white); max-width: 800px; padding: 0 20px;}

.hero h1 {
    font-size: 4rem;
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero p { color: rgba(255,255,255,0.9); font-size: 1.2rem; margin-bottom: 40px; }

/* --- PAGE HEADERS (NOUVEAU : Pour les sous-pages) --- */
.page-header {
    height: 60vh; /* Moins haut que l'accueil */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    margin-bottom: 0;
}

/* Pour centrer le texte dans le header des pages */
.page-header > div:not(.hero-overlay) {
    position: relative;
    z-index: 2;
}

.page-header h1 { 
    color: var(--white); 
    font-size: 3.5rem; 
    z-index: 2; 
    margin: 0;
}

.breadcrumb { 
    color: var(--accent); 
    font-size: 0.9rem; 
    text-transform: uppercase; 
    letter-spacing: 2px; 
    margin-bottom: 15px; 
    z-index: 2; 
    display: block; 
    font-weight: 600;
}

/* --- SECTIONS GRID (IMAGE/TEXTE) --- */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.image-block { height: 500px; overflow: hidden; position: relative; }
/* Fix pour l'image qui ne charge pas ou prend mal la taille */
.image-block img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transition: transform 1.5s ease; 
    background-color: #eee; /* Couleur de fond si image cassée */
} 
.image-block:hover img { transform: scale(1.05); }

/* --- COLLECTIONS (SPLIT) --- */
.split-section { display: flex; width: 100%; min-height: 600px; overflow: hidden;}
.split-content { flex: 1; padding: 80px; display: flex; flex-direction: column; justify-content: center; }
.split-image { flex: 1; position: relative; overflow: hidden; min-height: 400px; } /* Min-height ajouté */
.split-image img { position: absolute; height: 100%; width: 100%; object-fit: cover; transition: transform 1s ease; }
.split-section:hover .split-image img { transform: scale(1.03); }
.split-section.reverse { flex-direction: row-reverse; }

/* --- MATERIAUX GRID --- */
.materials-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 20px; 
    margin-top: 50px; 
}

.material-card { 
    height: 300px; 
    position: relative; 
    overflow: hidden; 
    background-color: #333; /* Fallback */
}
.material-info { 
    position: absolute; 
    bottom: 0; 
    left: 0; 
    width: 100%; 
    padding: 20px; 
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent); 
    color: white; 
    transform: translateY(100%); 
    transition: 0.4s; 
}
.material-card:hover .material-info { transform: translateY(0); }
.material-info h3 { color: var(--white); font-size: 1.2rem; }
.material-info p { color: var(--accent); margin: 0; font-size: 0.9rem; }

/* --- PROCESSUS --- */
.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 60px;
}
.process-card { padding: 20px; border-top: 1px solid rgba(255,255,255,0.1); transition: var(--transition); }
.process-card:hover { border-color: var(--accent); transform: translateY(-10px); }
.process-card .number {
    font-size: 3rem;
    font-family: var(--font-heading);
    color: rgb(0, 0, 0);
    margin-bottom: 20px;
}

/* --- GALERIE --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 60px;
}
.gallery-item { position: relative; height: 300px; overflow: hidden; cursor: pointer; background-color: #ddd;}
.gallery-item .overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(26,26,26,0.7);
    display: flex; justify-content: center; align-items: center;
    opacity: 0; transition: var(--transition);
}
.gallery-item:hover .overlay { opacity: 1; }
.gallery-item h5 { color: var(--white); font-family: var(--font-heading); font-size: 1.5rem; }

/* Item spécifiques grille accueil */
.item-1 { grid-column: 1 / 2; grid-row: 1 / 3; height: 100%; min-height: 620px;}
.item-2 { grid-column: 2 / 4; grid-row: 1 / 2; }

/* --- CONTACT --- */
.contact-info h2 { margin-bottom: 30px; }
.info-list li { margin-bottom: 20px; display: flex; align-items: center; gap: 15px; color: var(--text-grey); }
.info-list li i { color: var(--accent); }
.contact-form input, .contact-form textarea, .contact-form select {
    width: 100%; padding: 15px 0; border: none; border-bottom: 1px solid #ddd;
    background: transparent; font-family: var(--font-body); margin-bottom: 20px;
    outline: none; transition: var(--transition);
}
.contact-form input:focus { border-color: var(--primary); }

/* --- FOOTER --- */
footer { background-color: var(--primary); color: var(--white); padding: 80px 0 30px; }
.footer-content { display: flex; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 40px; }
.footer-brand h3 { color: var(--white); font-size: 1.8rem; }
.footer-brand span { color: var(--accent); }
.footer-links ul li { margin-bottom: 10px; }
.footer-links ul li a { color: rgba(255,255,255,0.6); font-size: 0.9rem; }
.footer-links ul li a:hover { color: var(--white); }
.footer-social a { color: var(--white); margin-left: 20px; font-size: 1.2rem; }
.copyright { text-align: center; margin-top: 30px; font-size: 0.8rem; color: rgba(255,255,255,0.4); }

/* --- ANIMATIONS --- */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s ease; }
.reveal.active { opacity: 1; transform: translateY(0); }

.fade-up { opacity: 0; transform: translateY(20px); animation: fadeUp 1s forwards; }
.delay-1 { animation-delay: 0.2s; transition-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; transition-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; transition-delay: 0.6s; }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
    .page-header { height: 40vh; }
    .page-header h1 { font-size: 2.2rem; }
    
    .nav-links {
        position: fixed; right: 0; height: 100vh; top: 0;
        background-color: var(--primary); flex-direction: column;
        justify-content: center; width: 70%;
        transform: translateX(100%); transition: transform 0.5s ease-in;
    }
    .nav-links.nav-active { transform: translateX(0); }
    .burger { display: block; z-index: 1001; }
    
    .grid-2, .split-section, .split-section.reverse { 
        grid-template-columns: 1fr; display: block; 
    }
    .split-image { height: 300px; }
    .split-content { padding: 40px 20px; }
    
    .materials-grid, .process-grid, .gallery-grid { grid-template-columns: 1fr; }
    .item-1, .item-2 { grid-column: auto; grid-row: auto; height: 300px; min-height: auto; }
    
    .footer-content { flex-direction: column; gap: 40px; text-align: center; }
}

/* --- LAYOUT ZIG-ZAG (TEXTE / IMAGE) --- */

/* Le conteneur principal de chaque bloc */
.layout-block {
    display: flex;
    align-items: center; /* Centre verticalement le texte par rapport à l'image */
    justify-content: space-between;
    gap: 100px; /* Grand espace entre le texte et l'image pour le style luxe */
    margin-bottom: 120px; /* Espace entre chaque bloc verticalement */
}

/* Par défaut : Texte à Gauche, Image à Droite */
.layout-block .block-text {
    flex: 1; /* Prend 50% de l'espace */
    padding-right: 20px;
}

.layout-block .block-image {
    flex: 1.2; /* L'image est légèrement plus grande que le texte (55/45 ratio) */
    height: 550px; /* Hauteur imposante */
    position: relative;
    overflow: hidden;
}

/* La classe 'reverse' inverse l'ordre : Image à Gauche, Texte à Droite */
.layout-block.reverse {
    flex-direction: row-reverse;
}

/* Ajustement des marges pour le mode 'reverse' */
.layout-block.reverse .block-text {
    padding-right: 0;
    padding-left: 40px; /* On décale le padding pour que le texte respire */
}

/* Style des images */
.block-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.5s ease;
}

/* Petit effet de zoom au survol pour le dynamisme sobre */
.layout-block:hover .block-image img {
    transform: scale(1.03);
}

/* Typography spécifique aux blocs */
.block-text h2 {
    margin-bottom: 30px;
    line-height: 1.2;
}

.block-text h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    font-family: var(--font-heading);
}

/* --- RESPONSIVE (MOBILE) --- */
@media (max-width: 900px) {
    .layout-block, 
    .layout-block.reverse {
        flex-direction: column; /* Tout passe en colonne sur mobile */
        gap: 40px;
        margin-bottom: 80px;
    }

    .block-image {
        height: 350px; /* Image moins haute sur mobile */
        width: 100%;
    }

    .layout-block.reverse .block-text {
        padding-left: 0;
    }
    
    /* On change l'ordre pour avoir toujours l'image en premier sur mobile, puis le texte */
    .block-image { order: 1; }
    .block-text { order: 2; }
}

/* --- SECTION AVANT / APRÈS --- */
.transformations-section {
    padding: 80px 0;
    background-color: #f9f9f9; /* Un fond très léger pour séparer du reste */
}

.transformations-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.transform-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 colonnes sur ordi */
    gap: 30px;
}

/* La carte projet */
.transform-item {
    background: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    overflow: hidden;
}

/* Le conteneur des images superposées */
.image-compare {
    position: relative;
    width: 100%;
    height: 300px; /* Hauteur fixe pour que tout soit aligné */
    overflow: hidden;
    cursor: crosshair; /* Petit curseur pour inciter à l'action */
}

.image-compare img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease-in-out;
}

/* L'image AVANT est en dessous (z-index 1) */
.img-before {
    z-index: 1;
}

/* L'image APRES est au dessus (z-index 2) */
.img-after {
    z-index: 2;
    opacity: 1;
}

/* AU SURVOL : On rend l'image d'après transparente pour voir l'avant */
.image-compare:hover .img-after {
    opacity: 0;
}

/* Le petit badge indicateur */
.label-status {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: white;
    padding: 5px 12px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 3;
    pointer-events: none;
}

/* On change le texte du badge au survol avec une astuce CSS */
.image-compare:hover .label-status::after {
    content: "État d'origine";
    display: block;
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #222; /* Fond noir */
    color: white;
    text-align: center;
    line-height: 24px; /* Ajuster selon le padding */
}

/* Détails sous l'image */
.project-details {
    padding: 25px;
    text-align: center;
}

.project-details h3 {
    font-size: 18px;
    margin-bottom: 8px;
    font-family: 'Playfair Display', serif; /* Ta police de titre */
    color: #1a1a1a;
}

.project-details p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* --- MOBILE --- */
@media (max-width: 768px) {
    .transform-grid {
        grid-template-columns: 1fr; /* 1 seule colonne sur mobile */
    }
    
    .image-compare {
        height: 250px;
    }
}

/* --- SECTION MATÉRIAUTHÈQUE (Dark Theme) --- */
.materials-section {
    padding: 100px 0;
    background-color: #1a1a1a; /* Fond sombre chic */
    color: #fff;
    text-align: center;
}

.materials-section .subtitle {
    color: #d4af37; /* Couleur Or */
    display: block;
    margin-bottom: 10px;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
}

.materials-section h2.text-white {
    color: #fff;
    margin-bottom: 15px;
}

.materials-section p.text-grey {
    color: #a0a0a0;
    max-width: 600px;
    margin: 0 auto 60px auto;
    font-weight: 300;
}

/* La Grille */
.materials-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

/* L'élément matière */
.material-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Le cercle image */
.material-circle {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 25px;
    border: 2px solid transparent;
    transition: all 0.4s ease;
    position: relative;
}

.material-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

/* Effet au survol */
.material-item:hover .material-circle {
    border-color: #d4af37; /* Bordure dorée au survol */
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
}

.material-item:hover .material-circle img {
    transform: scale(1.1); /* Zoom doux */
}

/* Textes sous le cercle */
.material-item h3 {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    margin-bottom: 5px;
    color: #fff;
}

.material-item .origin {
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Lien discret en bas */
.btn-link {
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid #d4af37;
    padding-bottom: 3px;
    font-size: 14px;
    transition: color 0.3s;
}

.btn-link:hover {
    color: #d4af37;
}

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 900px) {
    .materials-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 par ligne sur tablette */
    }
}

@media (max-width: 600px) {
    .materials-grid {
        grid-template-columns: 1fr; /* 1 par ligne sur mobile */
    }
    .material-circle {
        width: 150px; /* Plus petit sur mobile */
        height: 150px;
    }
}

/* --- HERO COLLECTION (CORRIGÉ) --- */
.collection-hero {
    height: 60vh;
    background: url('img/hero3.jpeg') no-repeat center center/cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Le texte du Hero doit être Blanc */
.collection-hero h1 {
    color: #ffffff !important; /* Force le blanc */
    font-size: 3.5rem;
    font-family: 'Playfair Display', serif;
    margin-top: 10px;
}

.collection-hero .subtitle {
    color: #d4af37 !important; /* Force le doré */
    font-size: 14px;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 600;
}

/* --- BLOCS COLLECTIONS --- */
.collection-block {
    padding: 100px 0;
}

/* --- DARK MODE (Minuit & Brut) --- */
.collection-block.dark-mode {
    background-color: #111111; /* Fond Noir profond */
}

/* ICI C'EST IMPORTANT : On force le texte en blanc dans le dark mode */
.collection-block.dark-mode h2 {
    color: #ffffff !important;
}

.collection-block.dark-mode p {
    color: #cccccc !important; /* Gris clair pour le texte, plus doux que le blanc pur */
}

.collection-block.dark-mode .specs li {
    color: #bbbbbb !important;
}

/* --- LIGHT MODE (Alba) --- */
.collection-block.light-mode {
    background-color: #ffffff;
    color: #111111;
}

.collection-block.light-mode h2 {
    color: #111111 !important;
}

.collection-block.light-mode p {
    color: #555555 !important;
}

/* --- MISE EN PAGE ZIG ZAG --- */
.grid-zig-zag {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Inversion pour Alba */
.grid-zig-zag.reverse .col-img { order: 2; }
.grid-zig-zag.reverse .col-txt { order: 1; }

/* Images */
.col-img img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3); /* Ombre plus marquée */
}

/* Typographie Générale des blocs */
.collection-tag {
    display: block;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    color: #d4af37 !important; /* Doré forcé partout */
    font-weight: 600;
}

.collection-block h2 {
    font-size: 3rem;
    font-family: 'Playfair Display', serif;
    margin-bottom: 25px;
}

.collection-block p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 30px;
}

/* Liste des spécificités (Minuit) */
.specs {
    list-style: none;
    padding: 0;
}
.specs li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}
.specs li::before {
    content: '•';
    color: #d4af37;
    position: absolute;
    left: 0;
}

/* BOUTONS */
.btn-classic {
    display: inline-block;
    padding: 12px 30px;
    border: 1px solid #111;
    color: #111;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
    transition: all 0.3s;
}
.btn-classic:hover {
    background: #111;
    color: #fff;
}

.btn-gold {
    display: inline-block;
    padding: 12px 30px;
    background: #d4af37;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
    border: 1px solid #d4af37;
    transition: all 0.3s;
}
.btn-gold:hover {
    background: transparent;
    color: #d4af37;
}

/* MOBILE */
@media (max-width: 768px) {
    .grid-zig-zag { grid-template-columns: 1fr; gap: 40px; }
    .grid-zig-zag.reverse .col-img { order: 1; }
    .grid-zig-zag.reverse .col-txt { order: 2; }
    .col-img img { height: 300px; }
    .collection-hero h1 { font-size: 2.5rem; }
}
/* --- HERO SAVOIR-FAIRE --- */
.savoir-hero {
    height: 50vh;
    background: url('img/milimetre.jpeg') no-repeat center center/cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}
.savoir-hero .overlay {
    background: rgba(0,0,0,0.5); /* Assombrir l'image */
    position: absolute; inset: 0;
}
.savoir-hero .content {
    position: relative; z-index: 2; max-width: 800px; padding: 0 20px;
}
.savoir-hero h1 {
    font-size: 3.5rem;
    font-family: 'Playfair Display', serif;
    color: #fff !important;
    margin: 10px 0;
}
.savoir-hero p {
    font-size: 1.2rem; color: #ddd !important;
}
.savoir-hero .subtitle {
    color: #d4af37 !important;
    text-transform: uppercase; letter-spacing: 2px; font-weight: 600;
}

/* --- PROCESS SECTION --- */
.process-section {
    padding: 100px 0;
    background-color: #fff;
    color: #111;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 colonnes */
    gap: 30px;
    margin-top: 60px;
}

.process-card {
    position: relative;
    padding: 20px;
    text-align: center;
}

/* Le gros numéro gris derrière */
.step-number {
    font-family: 'Playfair Display', serif;
    font-size: 80px;
    color: #f0f0f0; /* Gris très pâle */
    font-weight: bold;
    line-height: 1;
    margin-bottom: -30px; /* Chevauchement */
    position: relative;
    z-index: 1;
}

/* L'image ronde (Icône) */
.icon-box {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px auto;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    z-index: 2;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.icon-box img {
    width: 100%; height: 100%; object-fit: cover;
}

.process-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #111;
}
.process-card p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
}

/* --- ATELIER SPLIT SECTION --- */
.atelier-split {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 50% / 50% */
    background-color: #1a1a1a; /* Fond Sombre */
}

.atelier-content {
    padding: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.atelier-content h2 {
    color: #fff !important;
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 20px;
}
.atelier-content p {
    color: #bbb !important;
    line-height: 1.8;
    margin-bottom: 20px;
}
.atelier-content .subtitle {
    color: #d4af37 !important;
    text-transform: uppercase; letter-spacing: 2px; margin-bottom: 10px;
}

.atelier-image {
    height: 100%;
    min-height: 500px;
}
.atelier-image img {
    width: 100%; height: 100%; object-fit: cover;
}

/* --- MOBILE --- */
@media (max-width: 900px) {
    .process-grid { grid-template-columns: 1fr 1fr; } /* 2 par ligne */
    .atelier-split { grid-template-columns: 1fr; } /* Colonne unique */
    .atelier-content { padding: 40px; }
    .atelier-image { height: 300px; min-height: auto; }
}

@media (max-width: 600px) {
    .process-grid { grid-template-columns: 1fr; } /* 1 par ligne */
}

/* --- SECTION VIDEO GALLERY (CINEMATIC) --- */
.video-section {
    background-color: #0a0a0a; /* Fond noir chic */
    padding: 100px 0;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 colonnes par défaut */
    gap: 30px; /* Espace entre les vidéos */
    max-width: 1400px; /* On autorise une largeur plus grande que le reste du site */
    margin: 0 auto;
    padding: 0 20px;
}

/* --- LA CARTE VIDÉO --- */
.video-card {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    background: #000;
    /* Par défaut (pour les verticales) : format Story téléphone */
    aspect-ratio: 9 / 16; 
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* Les cartes "Large" s'étendent sur 2 colonnes */
.video-card.large {
    grid-column: span 2;
    /* Format Panoramique Cinéma */
    aspect-ratio: 21 / 9; 
}

/* --- LA VIDÉO --- */
.video-card video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Remplir tout le cadre sans déformer */
    opacity: 0.7; /* Un peu sombre par défaut pour lire le texte */
    transition: all 0.6s ease; /* Transition douce */
    transform: scale(1.05); /* Zoom initial léger */
}

/* --- L'OVERLAY (TEXTE) --- */
.video-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Dégradé noir vers le bas pour lisibilité */
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 50%);
    display: flex;
    align-items: flex-end; /* Texte collé en bas */
    padding: 40px;
    z-index: 2;
}

.video-info {
    transform: translateY(10px); /* Le texte est un peu bas par défaut */
    transition: all 0.4s ease;
}

/* Le petit tag doré (Quartier) */
.video-info .tag {
    color: #d4af37; /* Or */
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
}

/* Le Titre du projet */
.video-info h3 {
    color: #fff;
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin: 0;
    line-height: 1.1;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

/* --- EFFETS AU SURVOL (HOVER) --- */
.video-card:hover video {
    opacity: 1; /* La vidéo s'éclaire */
    transform: scale(1); /* Elle dézoome légèrement pour l'effet de mouvement */
}

.video-card:hover .video-info {
    transform: translateY(0); /* Le texte remonte à sa place */
}

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 900px) {
    .video-info h3 { font-size: 1.5rem; } /* Titres plus petits */
}

@media (max-width: 768px) {
    .video-grid {
        grid-template-columns: 1fr; /* 1 seule colonne sur mobile */
        gap: 20px;
    }

    /* Sur mobile, la carte Large redevient normale (1 colonne) */
    .video-card.large {
        grid-column: span 1;
        aspect-ratio: 16 / 9; /* Format YouTube classique sur mobile */
    }
    
    .video-card {
        aspect-ratio: 4 / 5; /* Un peu moins haut sur mobile pour pas prendre tout l'écran */
    }

    .video-overlay {
        padding: 20px; /* Moins de marge */
    }
}