/* ============================================================
   1. RECENTRAGE ET FOND NOIR TOTAL
   ============================================================ */
html, body, #page, .site {
    background-color: #000000 !important;
    margin: 0 auto !important;
}

#primary, .content-area {
    width: 100% !important;
    max-width: 1200px !important;
    float: none !important;
    margin: 0 auto !important;
}

#secondary, .widget-area { display: none !important; }
body { padding-top: 100px !important; padding-bottom: 100px !important; }

/* ============================================================
   2. MENU DU HAUT : GESTION DES COULEURS ET DES ÉTAGES
   ============================================================ */
#site-navigation, .main-navigation {
    position: fixed !important;
    top: 0 !important;
    left: 0;
    width: 100% !important;
    background-color: #000000 !important;
    z-index: 9999999 !important;
    border-bottom: 1px solid #333 !important;
}

.main-navigation ul {
    display: flex !important;
    justify-content: center !important;
    background-color: #000000 !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

/* ÉTAT PAR DÉFAUT : Texte Blanc sur Fond Noir */
.main-navigation a {
    color: #ffffff !important; 
    background-color: #000000 !important; 
    padding: 15px 20px !important;
    display: block !important;
    text-decoration: none !important;
}

/* SURVOL SIMPLE : Texte Rouge */
.main-navigation a:hover {
    color: #ff0000 !important;
}

/* --- LA PAGE RÉELLEMENT OUVERTE (L'ONGLET FINAL) --- */
/* On force le Blanc sur Fond Rouge uniquement sur l'élément précis */
.main-navigation .current-menu-item > a, 
.main-navigation .current_page_item > a {
    background-color: #e60000 !important;
    color: #ffffff !important;
}

/* --- LES PARENTS ET GRANDS-PARENTS (EVITE LE ROUGE SUR ROUGE) --- */
/* Si c'est un ancêtre, on garde le fond noir et on met juste le texte en rouge */
.main-navigation .current-menu-ancestor > a,
.main-navigation .current-page-ancestor > a,
.main-navigation .current_page_parent > a {
    background-color: #000000 !important;
    color: #ff0000 !important; 
}

/* ============================================================
   3. SOUS-MENUS VERTICAUX ET DÉCALÉS
   ============================================================ */
.main-navigation ul ul {
    display: none !important;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    flex-direction: column !important;
    background-color: #000000 !important;
    border: 1px solid #444 !important;
    min-width: 220px !important;
}

.main-navigation li:hover > ul { display: flex !important; }

/* Le sous-sous-menu se décale à droite pour ne pas couvrir le parent */
.main-navigation ul ul ul { 
    top: 0 !important; 
    left: 100% !important; 
    margin-left: 2px !important;
}

/* ============================================================
   4. BANDEAU DE BAS ET BULLES
   ============================================================ */
.bandeau-flottant-global {
    position: fixed !important;
    bottom: 0 !important;
    left: 0;
    width: 100%;
    background-color: #000000 !important;
    border-top: 2px solid #e60000;
    z-index: 1000000;
    padding: 10px 0 !important;
}

.flex-conteneur-bandeau {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 12px !important;
}

.btn-info-bulle {
    background: #333 !important;
    color: white !important;
    padding: 6px 12px !important;
    font-size: 12px !important;
    border: 1px solid #555;
    cursor: pointer;
}

.btn-abonner-rouge {
    background: #e60000 !important;
    color: #ffffff !important;
    padding: 6px 15px !important;
    font-weight: bold;
    font-size: 12px;
}

.gif-anime-centre { max-height: 40px !important; }

.bulle { position: relative; display: inline-block; }
.info-bulle-texte {
    visibility: hidden; opacity: 0;
    position: absolute; bottom: 50px; left: 50%; transform: translateX(-50%);
    background: #e60000; color: #ffffff !important; padding: 10px;
    border-radius: 6px; width: 200px; font-size: 13px; text-align: center;
    z-index: 10001; transition: 0.4s ease;
}
.bulle:hover .info-bulle-texte { visibility: visible !important; opacity: 1 !important; }































.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);
}