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

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

/* SUPPRESSION DES BLOCS BLANCS */
.site,
.site-main,
.content-area,
.entry-content {
    background-color: transparent !important;
    color: #ffffff !important;
   max-width: 1200px !important; /* largeur augmentée */
    width: 100% !important;
    margin: 0 auto !important;
    padding: 20px !important;
}

/* TITRES */
h1, h2, h3, h4, h5, h6 {
    color: #ff4d4d  !important;
}

/* TEXTE */
p, li {
    color: #ffffff !important;
}
}

/* LIENS */
a {
    color: 	#4da6ff  !important;
}

/* SURVOL LIENS */
a:hover {
    color: #ffffff   !important;
}


/* ENCADRER SECTION */
.cadre {
    background-color: #1a1a1a;
    padding: 25px;
    margin-bottom: 25px;
    border-radius: 12px;
    border: 1px solid #2a2a2a;
}



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









/* ============================================================
   MENU PRINCIPAL (BANDEAU PAGES)
   ============================================================ */

/* MENU GLOBAL */
.main-navigation,
.nav-menu,
.primary-menu {
    background-color: #000000 !important; /* fond noir */
}

/* LIENS DU MENU (PAGE NORMALE) */
.main-navigation a,
.nav-menu a,
.primary-menu a {
    background-color: #000000 !important;
    color: #ff0000 !important; /* texte rouge */
    padding: 12px 18px;
    display: block;
}

/* SURVOL MENU */
.main-navigation a:hover,
.nav-menu a:hover,
.primary-menu a:hover {
    background-color: #ffffff !important; /* fond blanc */
    color: #ff0000 !important; /* texte rouge */
}

/* PAGE ACTIVE (page ouverte) */
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a,
.nav-menu .current-menu-item > a,
.primary-menu .current-menu-item > a {
    background-color: #ff0000 !important; /* fond rouge */
    color: #ffffff !important; /* texte blanc */
}

/* SOUS-MENU */
.sub-menu,
.main-navigation ul ul {
    background-color: #ffffff !important; /* fond blanc */
}

/* LIENS SOUS-MENU */
.sub-menu a,
.main-navigation ul ul a {
    background-color: #ffffff !important;
    color: #000000 !important; /* texte noir */
}

/* SURVOL SOUS-MENU */
.sub-menu a:hover,
.main-navigation ul ul a:hover {
    background-color: #ffffff !important;
    color: #ff0000 !important; /* rouge */
}


















/* FAIT DISPARAITRE LE TITRE SUR LA PAGE */
h1.entry-title {
    display: none;
}





/* ============================================================
   MOBILE : IMAGE + TEXTE ADAPTATIF
   ============================================================ */
@media screen and (max-width: 899px) {

    .wp-block-columns {
        display: flex !important;
        flex-wrap: wrap !important; /* autorise retour ligne */
        gap: 15px !important;
        align-items: center !important;
    }

    .wp-block-column {
        flex: 1 1 100% !important; /* par défaut pleine largeur */
    }

    /* Image */
    .wp-block-column:first-child {
        flex: 1 1 40% !important;
    }

    /* Texte */
    .wp-block-column:last-child {
        flex: 1 1 60% !important;
    }

    /* Image propre */
    .wp-block-image img {
        width: 100% !important;
        height: auto !important;
    }
}








/* ============================================================
   MOBILE ULTRA LISIBLE (VERSION PRO)
   ============================================================ */
@media screen and (max-width: 899px) {

    /* Colonnes = retour en vertical */
    .wp-block-columns {
        display: block !important;
    }

    .wp-block-column {
        width: 100% !important;
        margin-bottom: 20px !important;
    }

    /* Image pleine largeur */
    .wp-block-image img {
        width: 100% !important;
        height: auto !important;
        border-radius: 8px !important;
    }

    /* TITRES */
    h1 {
        font-size: 28px !important;
        text-align: center !important;
    }

    h2 {
        font-size: 22px !important;
        margin-top: 20px !important;
    }

    /* TEXTE */
    p {
        font-size: 18px !important;
        line-height: 1.6 !important;
    }

    /* ESPACE GLOBAL */
    .entry-content {
        padding: 15px !important;
    }
}












/* ============================================================
   MOBILE : FORCER LES COLONNES CÔTE À CÔTE
   ============================================================ */
@media screen and (max-width: 899px) {

    .wp-block-columns {
        display: flex !important;
        flex-wrap: nowrap !important; /* empêche le retour à la ligne */
        gap: 15px !important;
    }

    .wp-block-column {
        flex: 1 !important;
    }

    /* Image plus petite */
    .wp-block-column:first-child {
        flex: 0 0 40% !important;
    }

    /* Texte prend le reste */
    .wp-block-column:last-child {
        flex: 0 0 60% !important;
    }

    /* Ajustement image */
    .wp-block-image img {
        width: 100% !important;
        height: auto !important;
    }
}











/* ============================================================
   2. MOBILE : RÉPARATION RADICALE DU MENU
   ============================================================ */
@media screen and (max-width: 899px) {
    /* On libère de l'espace pour l'entête sur mobile */
    body:not(.wp-admin) { padding-top: 150px !important; }

    header#masthead {
        position: relative !important; /* L'image ne bouge plus sur mobile */
        height: auto !important;
        padding: 60px 0 20px 0 !important; /* Espace pour le bouton au-dessus */
        display: block !important;
    }

    /* LE BOUTON : Placé tout en haut, fixe et visible */
    .menu-toggle {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        position: fixed !important;
        top: 10px !important; /* Remonte le bouton pour ne rien cacher */
        left: 10px !important;
        background-color: #ff0000 !important;
        border: 2px solid #ffffff !important;
        z-index: 10000000 !important;
        width: 120px !important;
        height: 45px !important;
        border-radius: 5px !important;
    }
    .menu-toggle::before { content: "≡" !important; color: #ffffff !important; font-size: 26px !important; margin-right: 8px !important; }
    .menu-toggle::after { content: "MENU" !important; color: #ffffff !important; font-weight: bold !important; font-size: 14px !important; }
    .menu-toggle span { display: none !important; }

    /* LE PANNEAU : On casse la "petite bande" pour un vrai volet */
    .main-navigation.toggled {
        position: fixed !important;
        top: 0 !important; 
        left: 0 !important;
        width: 100% !important;
        height: 100vh !important; /* Prend tout l'écran */
        background-color: #000000 !important;
        z-index: 9999999 !important;
        padding-top: 70px !important; /* Commence sous le bouton */
        overflow-y: scroll !important; /* ACTIVE LE SCROLL */
        -webkit-overflow-scrolling: touch !important;
        display: block !important;
    }

    /* Suppression du gris : Tout en NOIR et BLANC */
    .main-navigation.toggled ul {
        background-color: #000000 !important;
        margin: 0 !important;
        padding: 0 !important;
        display: block !important;
    }

    .main-navigation.toggled ul li a {
        color: #ffffff !important; /* Texte Blanc */
        background-color: #000000 !important; /* Fond Noir */
        padding: 20px 25px !important;
        border-bottom: 1px solid #222 !important;
        font-size: 18px !important;
        display: block !important;
    }

    /* Sous-menus en ROUGE pour la distinction */
    .main-navigation.toggled ul ul {
        background-color: #111111 !important;
        display: block !important;
    }
    .main-navigation.toggled ul ul li a {
        color: #ff0000 !important;
        padding-left: 45px !important;
    }
}
























/* ============================================================
   3. SOMMAIRE MOBILE LISIBILITÉ MAX
   ============================================================ */
@media screen and (max-width: 899px) {

    /* ESPACE ENTRE LES BLOCS */
    .main-navigation.toggled ul li {
        margin: 12px 15px !important;
    }

    /* TRANSFORMATION EN BOUTONS */
    .main-navigation.toggled ul li a {
        color: #ffffff !important;
        background-color: #111111 !important;
        padding: 18px !important;
        border-radius: 12px !important;
        border: 2px solid #ff0000 !important;
        font-size: 20px !important;
        font-weight: bold !important;
        text-align: center !important;
        letter-spacing: 1px !important;

        /* effet visuel */
        box-shadow: 0 0 10px rgba(255,0,0,0.3) !important;
    }

    /* EFFET AU TOUCHER */
    .main-navigation.toggled ul li a:active {
        background-color: #ff0000 !important;
        color: #ffffff !important;
    }

    /* SOUS-MENU PLUS LISIBLE */
    .main-navigation.toggled ul ul li {
        margin: 5px 20px !important;
    }

    .main-navigation.toggled ul ul li a {
        font-size: 16px !important;
        background-color: #000000 !important;
        color: #ff0000 !important;
        border: none !important;
        padding: 12px !important;
        text-align: left !important;
    }
}




















/* ============================================================
   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; }
































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