/* ============================================================
   CORRECTION COMPLETE DESKTOP COLINEAR
   ============================================================ */

@media (min-width: 769px) {

  /* HEADER FIXE ET OPAQUE */
  .site-header {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100% !important;
    background: #000000 !important;
    z-index: 9999 !important;
    padding: 15px 0 !important;
    margin: 0 !important;
    text-align: center !important;
  }

  /* COMPENSATION DE LA HAUTEUR DU HEADER */
  .site-content {
    padding-top: 150px !important; /* Ajustable selon ton header */
  }

  /* BANDEAU DES PAGES (PAGE-HEADER) */
  .page-header,
  .entry-header {
    background: #000000 !important;
    margin: 0 auto !important;
    padding: 20px 0 !important;
    border: none !important;
    min-height: auto !important;
    width: 100%;
    text-align: center !important;
  }

  /* TITRE DU BANDEAU CENTRÉ */
  .page-header .entry-title {
    text-align: center !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #ff0000 !important;
  }

  /* LARGEUR NORMALE DU BODY (CORRECTION DU TROP LARGE) */
  .site,
  .site-main,
  .content-area,
  .entry-content {
    max-width: 1200px !important; /* largeur normale */
    width: 100% !important;
    margin: 0 auto !important; /* centré */
    padding: 20px !important; /* marge interne propre */
    background: transparent !important;
  }
}



/* TRANSITION DOUCE EN SURVOL */
a {
    transition: color 0.5s ease;
}










/* ============================================================
   DESIGN GLOBAL NOIR + TEXTE BLANC
   ============================================================ */

/* Fond général */
body:not(.wp-admin) {
    background-color: #000000 !important;
    color: #ffffff !important;
}








  /* Centrer le menu horizontal */
  .main-navigation {
    width: 100%;
    display: flex;
    justify-content: center !important;
    margin: 0 auto !important;
    padding: 0 !important;
  }













/* ============================================================
   ESPACE POUR HEADER + BANDEAU
   ============================================================ */

.site-content {
    padding-top: 220px !important; /* ajuste selon hauteur réelle */
}




/* ============================================================
   HEADER AU-DESSUS / CONTENU EN DESSOUS
   ============================================================ */

/* Header toujours au-dessus */
.site-header {
    z-index: 9999 !important;
}

/* Le contenu passe derrière visuellement */
.site-content {
    position: relative;
    z-index: 1;
    margin-top: -150px; /* même valeur que ton padding-top */
    padding-top: 150px; /* garde l’espace pour lecture */
}








/* ============================================================
   ESPACE HEADER + BANDEAU (VERSION PROPRE)
   ============================================================ */

.site-header {
    height: 100px;
}

.page-header {
    height: 120px;
}

.site-content {
    padding-top: 260px !important;
}





/* ============================================================
   HEADER ET BANDEAU OPAQUES (FIX TRANSPARENCE)
   ============================================================ */

/* Header */
.site-header {
    background-color: #000000 !important;
    opacity: 1 !important;
    backdrop-filter: none !important;
}

/* Bandeau des pages */
.page-header,
.entry-header {
    background-color: #000000 !important;
    opacity: 1 !important;
    backdrop-filter: none !important;
}







/* ============================================================
   SUPPRESSION TOTALE TRANSPARENCE HEADER + BANDEAU
   ============================================================ */

/* Header + tous ses conteneurs internes */
.site-header,
.site-header * {
    background-color: #000000 !important;
    opacity: 1 !important;
    backdrop-filter: none !important;
}

/* Bandeau des pages + contenus internes */
.page-header,
.entry-header,
.page-header *,
.entry-header * {
    background-color: #000000 !important;
    opacity: 1 !important;
    backdrop-filter: none !important;
}

/* Supprime les fonds transparents éventuels */
.site-header::before,
.site-header::after,
.page-header::before,
.page-header::after {
    display: none !important;
}









/* ================================
   HEADER CINEMA NOIR
================================ */
header,
.site-header {
    background: rgba(0,0,0,0.95) !important;
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* ================================
   TITRE STYLE NETFLIX ANIMÉ
================================ */
.site-title,
.site-title a {
    font-weight: 900 !important;
    letter-spacing: 3px;
    font-size: 28px;

    background: linear-gradient(90deg,#2196F3,#4CAF50,#E91E63,#2196F3);
    background-size: 300% auto;

    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    animation: cinemaFlow 25s linear infinite;
}

@keyframes cinemaFlow {
    0% { background-position: 0% center; }
    100% { background-position: 300% center; }
}

.site-title {
    text-shadow: 0 0 15px rgba(255,255,255,0.2);
}

/* ================================
   MENU NETFLIX
================================ */
.main-navigation a {
    color: #ffffff !important;
    font-weight: 500;
    padding: 10px 15px;
    transition: all 0.2s ease;
    position: relative;
}

.main-navigation a:hover {
    color: #E50914 !important;
}

.main-navigation a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 2px;
    background: #E50914;
    transition: 0.2s;
}

.main-navigation a:hover::after {
    width: 100%;
}

.main-navigation .current-menu-item > a {
    color: #E50914 !important;
}

/* Sous-menu */
.main-navigation ul ul {
    background: rgba(0,0,0,0.95) !important;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
}

.main-navigation ul ul a {
    color: #ffffff !important;
}

.main-navigation ul ul a:hover {
    background: #E50914 !important;
    color: #ffffff !important;
}








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

    .main-navigation {
        background: rgba(0,0,0,0.98) !important;
    }

    .main-navigation a {
        display: block;
        padding: 15px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .main-navigation a:hover {
        background: #E50914;
        color: #fff !important;
    }
}

	
	
/* Style du slogan */
.site-description {
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 1px;
    color: #ffffff !important;
    text-shadow: 0 0 8px rgba(255,255,255,0.3);
    
    /* Préparation de la transition */
    display: inline-block;
    opacity: 1;
    transition: opacity 1.2s ease-in-out;
}

/* La classe qui sera ajoutée par le JavaScript après 2s */
.site-description.fade-out {
    opacity: 0;
}	
	
	
	
	
	
	
	
	
	
	
	
	
	

/* --- VERSION MOBILE UNIQUEMENT --- */
@media (max-width: 768px) {

  /* Conteneur principal Gutenberg */
  .wp-block-group,
  .wp-block-columns,
  .wp-block-column {
    width: 100vw !important; /* pleine largeur viewport */
    max-width: 100vw !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box;
  }

  /* Page sommaire */
  .page-sommaire {
    background: #000000;
    padding: 0;
    margin: 0;
    width: 100vw;
    box-sizing: border-box;
  }

  /* Titre principal */
  .titre-sommaire {
    color: #CC0000;
    text-align: center;
    margin: 20px 0;
    font-size: 1.8rem;
    width: 100%;
  }

  /* Grille de cartes */
  .grille-cartes {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    width: 100vw;
    padding: 0 10px;
    box-sizing: border-box;
  }

  /* Cartes flottantes */
  .carte-flottante {
    background: #0A0A0A;
    border: 2px solid #CC0000;
    border-radius: 14px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 0 20px rgba(204,0,0,0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .carte-flottante:hover {
    transform: translateY(-6px);
    box-shadow: 0 0 30px rgba(204,0,0,0.6);
  }

  /* Icônes blanches */
  .carte-flottante img,
  .carte-flottante svg {
    filter: brightness(0) invert(1);
    width: 40px;
    margin-bottom: 10px;
  }

  /* Titres des cartes */
  .carte-flottante h3 {
    color: #CC0000;
    margin-bottom: 10px;
  }

  /* Images encadrées rouge */
  .image-carte {
    border: 2px solid #CC0000;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 10px;
    width: 100%;
    display: block;
  }

  /* Supprime les marges latérales du thème Colinear */
  .site-content,
  .entry-content {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100vw !important;
  }
}





/* ============================================================
   IMAGES CENTRÉES MOBILE
   ============================================================ */

@media (max-width: 768px) {
    .entry-content img {
        display: block;
        margin: 0 auto !important;
    }
}










/* ============================================================
   PHRASE D'ACCROCHE MOBILE
   ============================================================ */

@media (max-width: 768px) {

    .site-description {
        display: block !important;
        font-size: 14px;
        text-align: center;
        color: #ffffff;
        margin-top: 10px;
        padding: 0 15px;
    }
}












/* ============================================================
   4. PIED DE PAGE : RETOUR ET RÉGLAGE
   ============================================================ */
#footer-unique {
    position: fixed !important; bottom: 0 !important; left: 0 !important; right: 0 !important;
    height: 100px !important; background-color: #000000 !important;
    border-top: 1px solid #ffffff !important; z-index: 1000000 !important;
    display: flex !important; align-items: center !important; justify-content: center !important;
    overflow: visible !important;
}

.scroll-container { 
    display: flex !important; align-items: center !important; gap: 40px !important;
    overflow: visible !important; justify-content: center !important; width: 100% !important;
}

/* Infos en survol (Réponses) */
.mot { color: #ffffff !important; font-weight: bold !important; position: relative !important; cursor: help !important; white-space: nowrap !important; }

.mot:hover::after {
    content: attr(data-txt) !important;
    position: absolute !important; bottom: 80px !important; left: 50% !important; transform: translateX(-50%) !important;
    background: #ff0000 !important; color: #ffffff !important;
    padding: 10px 20px !important; border-radius: 8px !important;
    z-index: 1000001 !important; white-space: nowrap !important;
}

/* Cacher uniquement le pied de page par défaut du thème, pas le vôtre */
footer.site-footer, .site-info { display: none !important; }







/* ============================================================
   MOBILE : ADAPTATION DU CENTRAGE
   ============================================================ */
@media screen and (max-width: 899px) {
    .scroll-container {
        justify-content: flex-start !important; /* Permet le scroll si ça dépasse */
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
}

/* ============================================================
   MOTS ET BULLES DE RÉPONSES (SURVOL)
   ============================================================ */
.mot { 
    color: #ffffff !important; 
    font-weight: bold !important; 
    position: relative !important; 
    white-space: nowrap !important;
    cursor: help !important;
    display: inline-block !important;
}

/* LA BULLE ROUGE (RÉPONSE) */
.mot:hover::after {
    content: attr(data-txt) !important;
    position: absolute !important; 
    /* On la remonte plus haut pour qu'elle soit entièrement dans la zone du body */
    bottom: 80px !important; 
    left: 50% !important; 
    transform: translateX(-50%) !important;
    background: #ff0000 !important; 
    color: #ffffff !important;
    padding: 12px 20px !important; 
    border-radius: 8px !important;
    z-index: 9999999 !important; 
    white-space: nowrap !important;
    font-size: 15px !important;
    box-shadow: 0px 4px 15px rgba(0,0,0,0.5) !important;
    /* Empêche toute coupure */
    visibility: visible !important;
    display: block !important;
}

/* LA PETITE FLÈCHE SOUS LA BULLE */
.mot:hover::before {
    content: "" !important;
    position: absolute !important;
    bottom: 65px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    border-width: 15px 10px 0 10px !important;
    border-style: solid !important;
    border-color: #ff0000 transparent transparent transparent !important;
}

/* AJUSTEMENT DU GIF POUR LE CENTRAGE */
.gif-final { 
    height: 80px !important; 
    width: auto !important; 
    flex-shrink: 0 !important;
}

.bouton-abonner { 
    background-color: #ff0000 !important; 
    color: #000000 !important; 
    padding: 10px 15px !important; 
    border-radius: 5px !important; 
    font-weight: bold !important;
    flex-shrink: 0 !important;
}
/* Masquer les pieds de page par défaut du thème */
footer, .site-footer, #colophon { display: none !important; }





/* ============================================================
   MENU HAMBURGER MOBILE (FIX)
   ============================================================ */

@media (max-width: 768px) {
    /* On s'assure que le bouton du thème est visible */
    .menu-toggle {
        display: block !important;
        background: #E50914 !important; /* Rouge Netflix */
        color: #fff !important;
        border: none;
        padding: 10px 20px;
        margin: 10px auto;
        border-radius: 4px;
        font-weight: bold;
        text-transform: uppercase;
        cursor: pointer;
    }

    /* Icône Hamburger via CSS si le thème ne l'affiche pas */
    .menu-toggle:before {
        content: "\2630"; /* Symbole hamburger */
        margin-right: 10px;
    }

    /* Cacher le menu par défaut sur mobile */
    .main-navigation ul {
        display: none;
        flex-direction: column;
        background: rgba(0, 0, 0, 0.95) !important;
        padding: 0;
    }

    /* Afficher le menu quand on clique (si la classe 'toggled' est active) */
    .main-navigation.toggled ul {
        display: block !important;
    }

    /* Ajustement des liens pour le mode ouvert */
    .main-navigation.toggled a {
        text-align: center;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        padding: 15px;
    }
}


























.galerie-flip figure {
	position: relative;
	perspective: 1000px;
}

.galerie-flip figure img {
	width: 100%;
	display: block;
	transition: transform .8s ease;
	backface-visibility: hidden;
}

.galerie-flip figure::after {
	content: "CINÉMA";
/* remplace par le mot que tu veux */
	position: absolute;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.5rem;
	background: black;
/* couleur du dos */
	color: white;
	transform: rotateY(180deg);
	backface-visibility: hidden;
	transition: transform .8s ease;
}

.galerie-flip figure:hover img {
	transform: rotateY(180deg);
}

.galerie-flip figure:hover::after {
	transform: rotateY(0deg);
}

.page-id-10320 #primary {
	width: 100%;
}

.page-id-13019 #secondary {
	display: none;
}

.page-id-13019 #primary {
	width: 100%;
}

.page-id-12500 #secondary {
	display: none;
}

.page-id-12500 #primary {
	width: 100%;
}

.page-id-12867 #secondary {
	display: none;
}

.page-id-12878 #secondary {
	display: none;
}

.page-id-12878 #primary {
	width: 100%;
}

.page-id-13002 #secondary {
	display: none;
}

.page-id-13002 #primary {
	width: 100%;
}

.mes-4-flips {
	display: flex;
	justify-content: center;
	gap: 20px;
	flex-wrap: wrap;
}

.carte-flip {
	width: 450px;
	height: 450px;
	perspective: 1000px;
}

.interieur-flip {
	width: 100%;
	height: 100%;
	position: relative;
	transition: transform .8s;
	transform-style: preserve-3d;
}

.carte-flip:hover .interieur-flip {
	transform: rotateY(180deg);
}








