/* FORCE LE CONTENEUR À EXISTER */
.hero {
  position: relative !important;
  width: 100vw !important;
  height: 100vh !important;
  background-color: #111 !important; /* Gris très foncé pour voir si le bloc est là */
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  overflow: hidden !important;
  margin: 0 !important;
}

/* PLACE LE BLOC D'IMAGES */
.hero-bg {
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
}

/* FORCE L'AFFICHAGE DES IMAGES */
.hero-bg img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  opacity: 0;
  display: block !important;
  animation: fadeImages 18s infinite !important;
}

/* LES DÉLAIS */
.hero-bg img:nth-child(1) { animation-delay: 0s !important; }
.hero-bg img:nth-child(2) { animation-delay: 6s !important; }
.hero-bg img:nth-child(3) { animation-delay: 12s !important; }

@keyframes fadeImages {
  0%   { opacity: 0; }
  10%  { opacity: 1; }
  33%  { opacity: 1; }
  45%  { opacity: 0; }
  100% { opacity: 0; }
}

/* TON TITRE (PROTECTION DU STYLE) */
.titre-hero {
  position: relative !important;
  z-index: 10 !important; /* Passe devant tout */
}

/* ================= TITRE ================= */
.titre-hero {
  position: relative;
  z-index: 1;
  font-family: 'Crozet', sans-serif !important; /* MODIFIÉ ICI */
  font-size: clamp(32px, 8vw, 90px);
  letter-spacing: 0.15em;
  text-align: center;
  color: #fff; 
}
@font-face {
    font-family: 'Crozet';
    /* On remplace 'fonts/' par 'woff2/' pour correspondre à votre dossier */
    src: url('woff2/Crozet-Regular.woff2') format('woff2'),
         url('woff2/Crozet-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

/* Correction spécifique pour la page Nuages si le HTML n'est pas changé */
.header-minimal .logo-crozet {
    font-family: 'Crozet', sans-serif !important;
    background: linear-gradient(50deg, #ff1db4, #feeb12);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: clamp(24px, 6vw, 40px);
}
/* 2. Aligne le titre parfaitement à gauche */
.hero {
    background: none !important;
    padding-left: 0 !important; /* Supprime l'espace à gauche */
    margin-left: 0 !important;   /* Force l'alignement au bord */
}

/* 3. Assurez-vous que le logo n'a pas de marge interne */
.logo-crozet {
    margin-left: 0 !important;
    padding-left: 0 !important;
}

.texte-degrade {
    /* On crée le dégradé de couleurs */
    background: linear-gradient(to right, #ff1db4, #feeb12);
    
    /* On applique le dégradé au texte */
    -webkit-background-clip: text; /* Pour Chrome et Safari */
    background-clip: text;
    
    /* On rend le texte transparent pour voir le fond */
    color: transparent;
    
    /* Optionnel : on met en gras pour que ça se voie mieux */
    font-weight: bold;
    display: inline-block;
}
/* --- LE BOUTON À PROPOS AVEC DÉGRADÉ --- */
.bouton-menu, 
.banner-projets a.bouton-menu {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif !important;
    font-weight: bold !important;
    text-decoration: none !important; /* Supprime le trait sous le texte */
    font-size: 18px !important;
    
    /* Le dégradé rose vers orange */
    background: linear-gradient(to right,#ff1db4, #feeb12) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    color: transparent !important; /* Sécurité pour certains navigateurs */
    
    display: inline-block !important;
}

/* On s'assure qu'il ne change pas de couleur même si on a déjà cliqué dessus */
.bouton-menu:visited, 
.bouton-menu:active {
    text-decoration: none !important;
    -webkit-text-fill-color: transparent !important;
}
.bouton-menu, .About-toggle {
    /* 1. TYPOGRAPHIE ET TAILLE (On ne change rien) */
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif !important;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: lowercase;
    padding: 8px 25px;
    display: inline-block;
    text-decoration: none;
    
    /* 2. LE DÉGRADÉ SUR LA BORDURE (L'astuce magique) */
    border: 2px solid transparent;
    border-radius: 25px;
    background: linear-gradient(white, white) padding-box, 
                linear-gradient(50deg, #ff1db4, #feeb12) border-box;
    
    /* 3. LE DÉGRADÉ SUR LE TEXTE */
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    /* On répète le dégradé pour le texte ici */
    background-image: linear-gradient(white, white) padding-box, 
                      linear-gradient(50deg, #ff1db4, #feeb12) border-box,
                      linear-gradient(50deg, #ff1db4, #feeb12);

    /* 4. L'ANIMATION DE SURVOL */
    transition: transform 0.3s ease-out !important;
}

/* 5. L'EFFET DE MOUVEMENT AU SURVOL (À rajouter juste après si tu ne l'as plus) */
.bouton-menu:hover, .About-toggle:hover {
    transform: translateY(-5px) !important;
}

/* Pour le texte à l'intérieur s'il y a un dégradé */
.About-toggle {
    background: linear-gradient(50deg, #ff1db4, #feeb12);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.texte-degrade {
    background: linear-gradient(to right, #ff1db4, #feeb12);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: bold;
}

/* Ce code ne s'activera que sur la page qui a l'ID "page-galerie" */
#page-galerie header {
    background: transparent !important;
    position: absolute;
    width: 100%;
    border: none;
    box-shadow: none;
    z-index: 10;
}

.logo-crozet {
    font-family: 'Crozet', sans-serif;
    font-size: 2.8rem;
    text-decoration: none;
    font-weight: normal;
    
    /* Couleur de secours si le dégradé échoue */
    color: #ff3399; 
    
    /* Effet dégradé "Crozet" */
    font-family: 'Crozet', sans-serif;
    background: linear-gradient(45deg, #ff3399, #feeb12);
    -webkit-background-clip: text;
    background-clip: text; /* Version standard */
    -webkit-text-fill-color: transparent;
    
    letter-spacing: 1px;
    text-transform: uppercase;
    
    /* Améliore le rendu des lettres sur certains écrans */
    -webkit-font-smoothing: antialiased;
}
/* optional: gradient soft sur le texte */
.titre-hero {
  background: linear-gradient(50deg, #ff1db4, #feeb12);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.titre-hero-link {
  text-decoration: none;
  color: inherit;
}
.About-menu {
  position: fixed;
  top: 24px;
  right: 0;              /* collé au bord */ 
  padding-right: 24px;   /* marge intérieure contrôlée */
  z-index: 1000;
  font-family: inherit;
  text-align: right;
}

.About-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  padding: 0;

  background: transparent;  /* ← clé ici */
  color: inherit;
  min-width: 220px;
  opacity: 0;

}
.About-toggle {
  cursor: pointer;
  font-size: 14px;
  text-transform: lowercase;
  color: white; /* transparent */
}

.About-menu:hover .About-dropdown {
  opacity: 1;
  pointer-events: auto;
}
.galerie {
    display: flex;
    gap: 40px;
    justify-content: center;
}

.galerie img {
    width: 30%;
    height: auto;
    object-fit: cover;
}

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

/* ================= POLICE ================= */
@font-face {
  font-family: 'Crozet';
  src: url('fonts/Crozet-Regular.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
}

/* ================= PAGE PROJET ================= */
.page-projet {
  padding-top: 120px; /* espace sous la bannière fixe */
}

.detail-projet {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-bottom: 150px;
}

/* ================= BANNIÈRE FIXE (HEADER MINIMAL) ================= */
.banner-projets {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    padding: 15px 40px !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    z-index: 1000 !important;

    /* EFFET DE FLOU GIVRÉ */
    background-color: white !important; /* Blanc très léger */
    backdrop-filter: blur(12px) !important;              /* Le flou pour le fond */
    -webkit-backdrop-filter: blur(12px) !important;      /* Pour la compatibilité Safari */
}
  .banner-projets {
    background-color: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
    border-bottom: none !important;
  }

/* ================= TES STYLES DE BANNIÈRE (STRICTEMENT GARDÉS) ================= */
.logo-projets {
  font-family: 'Crozet', sans-serif !important; /* MODIFIÉ ICI */
  font-size: clamp(24px, 6vw, 40px);
  letter-spacing: 2px;
  text-decoration: none;
  background: linear-gradient(50deg, #ff1db4, #feeb12);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
/* FORCE LA BANNIÈRE À RESTER FIXE */
header, .banner-projets {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 80px !important; /* Hauteur fixe pour contrôler l'espace */
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 0 40px !important;
    z-index: 9999 !important; /* Passe au-dessus de tout */
    background-color: transparent(255, 255, 255, 0.6) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
}

/* LE TITRE (Logo) */
.logo-projets, .logo-crozet {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

.galerie-portfolio {
    display: grid;
    /* Crée 2 colonnes égales. Remplace '1fr 1fr' par '1fr 1fr 1fr' pour 3 colonnes */
    grid-template-columns: 1fr 1fr; 
    gap: 30px;            /* Espace entre les photos */
    padding: 40px;        /* Espace sur les côtés de la page */
/* AJOUTE CETTE LIGNE ICI */
    margin-top: 90px; /* Ajuste ce chiffre selon la hauteur de ta bannière */
}

.galerie-portfolio img {
    width: 100%;          /* L'image prend toute la largeur de sa colonne */
    height: 400px;        /* Fixe une hauteur pour garder le format rectangulaire */
    object-fit: cover;    /* Remplit le rectangle sans déformer l'image */
    border-radius: 60px;  /* Tes bords arrondis comme sur tes captures */
    transition: transform 0.3s ease; /* Petit effet au survol */
}

/* Optionnel : zoom au survol */
.galerie-portfolio img:hover {
    transform: scale(1.02);
}

/* Pour que ça s'adapte aux téléphones */
@media (max-width: 768px) {
    .galerie-portfolio {
        grid-template-columns: 1fr; /* Une seule colonne sur mobile */
    }
}
/* 2. L'enveloppe - MODIFIÉ */
.image-wrapper {
    position: relative;
    width: 100%;
    /* On change le ratio pour un format plus rectangulaire (comme sur votre capture) */
    aspect-ratio: 16 / 9; 
    border-radius: 100px; 
    overflow: hidden;
    /* Optionnel : ajoute une légère ombre pour décoller l'image du fond */
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* 3. L'image - INCHANGÉ (parfait pour le remplissage) */
.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    display: block;
}

/* 4. L'overlay (optionnel) - INCHANGÉ */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-wrapper:hover .overlay {
    opacity: 1;
}

/* Overlay (votre texte au survol) */
.overlay {
    position: center;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Fond semi-transparent noir */
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-wrapper:hover .overlay {
    opacity: 1;
}

/* ================= TITRE À L'INTÉRIEUR (AU SURVOL) ================= */
.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4); /* Voile sombre pour lire le texte */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0; /* Invisible par défaut */
  transition: opacity 0.3s ease;
  color: white;
  text-align: center;
  padding: 20px;
}
/* 1. RÉGLAGES GÉNÉRAUX */
body.page-projet {
    background-color: white !important;
    margin: 0;
    padding: 0;
}

/* 2. POSITION DU TITRE ET DU TEXTE */
.page-projet .detail-projet {
    padding-top: 100px; /* Réduit pour que le titre soit proche du haut */
}

.bloc-intro {
    margin-bottom: 10px; /* Réduit l'espace sous le texte d'intro */
    padding-bottom: 0;
}

.page-projet .image-wrapper {
    width: 30%;            /* Ajustez selon la taille voulue */
    max-width: 800px;      
    margin: 20px auto;     /* Réduit l'espace avec le texte du dessus */
    display: block;
    mask-image: none !important; /* Au cas où un masque CSS a été appliqué */
    -webkit-mask-image: none !important;
}

.page-projet .img-full {
    width: 50%;           
    height: auto;          /* Garde les proportions réelles du livre */
    object-fit: contain;   /* Empêche le rognage interne */
}
/* On change 'fixed' en 'absolute' pour que le titre remonte avec le reste */
.page-projet .image-wrapper {
    width: 100%;            /* Ajustez selon la taille voulue */
    max-width: 100px;      
    margin: 20px auto;     /* Réduit l'espace avec le texte du dessus */
    display: block;
    mask-image: none !important; /* Au cas où un masque CSS a été appliqué */
    -webkit-mask-image: none !important;
}

.page-projet .img-full {
    width: 100%;           
    height: auto;          /* Garde les proportions réelles du livre */
    object-fit: contain;   /* Empêche le rognage interne */
}

/* On ajuste la marge du texte pour qu'il soit bien placé sous le titre */
.page-nuage .description-projet {
    margin-top: 120px !important;
    padding: 0 40px !important;
}

/* On prépare le lien pour qu'il soit le cadre du texte */
.lien-projet {
    position: relative; /* Indispensable pour placer le titre par-dessus */
    display: block;
    overflow: hidden;
    border-radius: 40px; /* Ajuste selon l'arrondi de tes photos */
    text-decoration: none; /* Enlève le soulignement bleu des liens */
}

/* L'image prend toute la place */
.lien-projet img {
    width: 100%;
    display: block;
    transition: transform 0.4s ease; /* Animation de zoom optionnelle */
}

.titre-projet {
    /* --- Typographie --- */
    font-family: 'Helvetica', Arial, sans-serif; /* Helvetica avec des polices de secours */
    font-size: 18px;              /* Taille du texte */
    font-weight: 700;             /* Épaisseur (Gras) */
    letter-spacing: 1px;          /* Espacement léger entre les lettres */
    text-transform: none;         /* Respecte les minuscules/majuscules du HTML */
    text-align: center;
    color: white !important;      /* Force le texte en blanc */

    /* --- Positionnement (Superposition sur l'image) --- */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    /* --- Centrage du texte --- */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;                /* Évite que le texte touche les bords */
    box-sizing: border-box;

    /* --- Fond et Animation --- */
    background: rgba(0, 0, 0, 0.4); /* Voile sombre léger pour la lisibilité */
    opacity: 0;                   /* Invisible par défaut */
    transition: opacity 0.3s ease; /* Apparition fluide */
}

/* Affichage au survol */
.lien-projet:hover .titre-projet {
    opacity: 1;
}

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

/* 5. NETTOYAGE GALERIE */
.galerie {
    display: block !important;
    width: 100% !important;
    margin-top: 0 !important; /* Force la remontée */
    padding-top: 0 !important;
}

/* 6. RESPONSIVE */
@media (max-width: 768px) {
    .page-projet .detail-projet {
        padding-top: 90px;
    }
    .page-projet .image-wrapper {
        width: 80%;
        margin-top: 0;
    }

    
.book-video-wrapper {
  width: 100%;
  max-width: 1100px; /* adapte */
  aspect-ratio: 16 / 9; /* 👈 très important */
  background: black;
  border-radius: 60px;
  overflow: hidden;
  margin: 0 auto;
}

.book-video {
  width: 50%;
  height: 100%;
  object-fit: contain; /* vidéo entière */
}
.book-container {
  background-color: black;
  min-height: 100vh;      /* Prend toute la hauteur de l'écran */
  display: flex;
  justify-content: center; /* Centre horizontalement */
  align-items: center;     /* Centre verticalement */
  padding: 20px;
}

.book-view {
  display: flex;
  box-shadow: 0 0 50px rgba(0,0,0,0.5); /* Optionnel : ombre pour donner du relief */
}

.book-view img {
  max-width: 45vw;         /* Empêche les images d'être trop grandes */
  height: auto;
  display: block;
}
/* Change la ligne 418 pour correspondre à ton HTML */
}
.gif-format {
    width: 100%;           /* Laisse l'image respirer */
    max-width: 600px;      /* METS 600px ICI au lieu de 50px */
    height: auto;          /* Garde les proportions */
    display: block;        /* Permet le centrage */
    margin: 50px auto;     /* Centre horizontalement */
}
/* --- COMPORTEMENT PAR DÉFAUT (Pour toutes les pages) --- */
/* Le titre est en haut et remonte avec le scroll (disparaît) */
.banner-projets {
    position: absolute !important; 
    top: 0;
    left: 0;
    width: 100%;
    padding: 25px 40px !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: transparent !important;
}

/* --- EXCEPTION POUR projets.html (Le titre suit le scroll) --- */
/* Ce code ne s'active que si 'page-fixe' est présent dans le body */
.page-fixe .banner-projets {
    position: fixed !important; /* Bloque le titre à l'écran */
    background-color: transparent(255, 255, 255) !important; 
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(10px);
}

/* On garde tes images centrées et tes marges identiques */
.description-projet, .galerie {
    margin-top: 140px !important;
    padding: 0 40px;
}

/* --- LES IMAGES ET VIDÉOS (CENTRÉES) --- */
.galerie {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 1200px;
    margin: 40px auto !important; /* Centre horizontalement */
    padding: 0 40px;
}

.galerie img, #video-section {
    width: 100%;
    height: auto;
    border-radius: 30px; /* Bords arrondis comme sur tes captures */
}

.video-container {
    max-width: 1200px;
    margin: 40px auto !important;
    padding: 0 40px;
}
/* Style pour le texte en dessous */
.content-apropos {
    padding: 40px; /* Aligné sur le titre */
    margin-top: 100px;
}
.bloc-texte {
    max-width: 800px;
}

.bloc-texte p {
  max-width: 800px;
    font-family: sans-serif;
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 100px;
}
/* --- COMPORTEMENT POUR LA PAGE STATIQUE --- */

/* On dit au titre de rester accroché en haut de la page, pas de l'écran */
.page-statique .banner-projets {
    position: absolute !important; 
    top: 0 !important;
    left: 0 !important;
    background: transparent !important; /* Pas de fond pour ne pas gêner */
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}
/* Cache le bouton à propos uniquement sur la page Nuage */
.page-nuage .bouton-menu {
    display: none !important;
}

/* On cible uniquement la grille de ce projet */
.image-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    gap: 5px;           /* Réduit l'espace entre les colonnes et lignes */
    width: 100vw;       /* Utilise toute la largeur de l'écran */
    margin-left: calc(-50vw + 50%); /* Centre la grille si elle dépasse du wrapper */
}

.image-grid img {
    width: 100%;
    height: auto;
    display: block;
    
    box-sizing: border-box; /* Pour que la bordure ne déforme pas l'image */
}

/* Optionnel : Ajustement pour le footer pour qu'il reste centré et large */
.footer-image img, .book-container img {
    width: 100%;
    height: auto;
    margin-top: 20px;
}

/* Dans votre fichier style.css */

/* Adaptation pour les tablettes (2 colonnes) */
@media (max-width: 900px) {
  .image-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Adaptation pour les mobiles (1 colonne) */
@media (max-width: 500px) {
  .image-grid {
    grid-template-columns: 1fr;
  }
}
/* 1. Reset général */
body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
    background-color: #fff; /* Fond de page blanc */
}

/* 2. Section Intro (Texte + Image principale) */
.bloc-intro {
    text-align: center;
    /* Espace important en haut pour éviter la bannière */
    padding: 150px 20px 60px 20px; 
    background-color: #fff;
}

.img-hero {
    /* Passe à 80% ou même 90% pour qu'elle occupe presque tout l'écran */
    width: 85%; 
    
    /* Augmente le max-width pour que l'image puisse s'étendre sur les grands écrans */
    max-width: 1400px; 
    
    height: auto;
    display: block;
    margin: 0 auto 30px auto; /* Toujours centrée */
}
.description {
    /* 1. Choix de la typographie */
    /* On utilise Helvetica ou Arial pour rester cohérent avec le "à propos" */
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    
    /* 2. Taille et épaisseur */
    font-size: 1.1rem;      /* Taille du texte */
    font-weight: 400;       /* Épaisseur normale (utilisez 300 pour plus fin) */
    
    /* 3. Mise en forme et centrage */
    max-width: 700px;       /* Largeur max pour la lisibilité */
    margin: 0 auto;         /* Centre le bloc horizontalement */
    text-align: center;     /* Centre les lignes de texte */
    
    /* 4. Espacement */
    line-height: 1.7;       /* Espace entre les lignes (interlignage) */
    letter-spacing: 0.01em; /* Très léger espacement entre les lettres */
    
    /* 5. L'espace sous le texte (votre réglage précédent) */
    margin-bottom: 110px; 
    
    color: #000;            /* Noir pur */
}

/* 3. Vidéo Hero */
.hero-video {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 40px 0;
    background-color: #fff; 
}

.main-wrapper {
    width: 100%;
    background-color: #fff; 
    box-sizing: border-box;
    /* MODIFICATION : On met 0 en haut pour ne pas fausser l'espace du texte */
    padding: 0 0 40px 0; 
    margin-top: 0;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 colonnes */
    gap: 15px; /* Bordure entre les images */
    
    /* --- CENTRAGE ICI --- */
    width: 90%;            /* La grille prend 90% de la largeur */
    max-width: 1200px;     /* Mais elle ne dépassera jamais 1200px */
    margin: 0 auto;        /* Centre le bloc horizontalement */
}

.image-grid img, 
.video-grid {
    width: 100%;
    height: 70vh;          /* Ajuste la hauteur selon tes goûts */
    object-fit: cover;
    display: block;
}

/* Ajustement pour mobile */
@media (max-width: 768px) {
    .image-grid {
        grid-template-columns: 1fr; /* 1 colonne sur petit écran */
        width: 95%;
        gap: 20px;
    }
}