/*
 Theme Name:     Thème V9 Cigalia mire
 Theme URI:      https://cigalia.fr
 Description:    Thème enfant avec accueil plein écran et carte interactive
 Author:         Erwan
 Template:       vw-parallax
 Version:        8.0.0
*/

/* ==========================================================================
   1. RESET & BASE GLOBAL
   ========================================================================== */
html, body {
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
    min-height: 100%;
    font-family: 'Comic Sans MS', 'Chalkboard SE', 'Fredoka', sans-serif;
    background-color: #141b0d;
    box-sizing: border-box;
    overflow-x: hidden;
}

*, *:before, *:after {
    box-sizing: inherit;
}

/* ==========================================================================
   2. RIDEAU DE TRANSITION DE PAGE
   ========================================================================== */

.page-transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #141b0d;
    z-index: 999999;
    pointer-events: none;
    opacity: 0;
    transform: scale(1, 1);
}

.page-transition-overlay.animate_content {
    pointer-events: auto;
    animation: animateTransition 0.8s ease forwards;
}

@keyframes animateTransition {
    0% {
        opacity: 0;
        transform: scale(1, 1);
    }
    30% {
        opacity: 1;
        transform: scale(1, 0.005);
    }
    50% {
        opacity: 1;
        transform: scale(0.3, 0.005);
    }
    100% {
        opacity: 1;
        transform: scale(1, 1);
    }
}

/* ==========================================================================
   3. NAVIGATION ET MENU GLOBAL
   ========================================================================== */

header, header.menu, #header {
    margin-top: 32px !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 15px 30px !important;
    background-color: #1a1a1a !important;
    position: relative !important;
    z-index: 1000 !important;
}

#intro, section#intro, .intro {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    min-height: 80vh !important;
    padding-top: 50px !important;
    position: relative !important;
    z-index: 2 !important;
}

.menu-list ul, .nav-menu ul, .main-navigation ul {
    display: flex !important;
    flex-direction: row !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 25px !important;
}

.menu-list a, .nav-menu a, .main-navigation a {
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
}

.menu-list a:hover, .nav-menu a:hover, .main-navigation a:hover {
    color: #f0a500 !important;
}

.menu-toggle {
    display: none;
}

.btn_nav {
    background: #002A32;
    border-radius: 30px;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    margin: 5px;
    padding: 12px 24px;
    transition: background 0.2s;
}

.btn_nav:hover {
    background: #004d5c;
}

/* ==========================================================================
   4. GALERIE & CADRES (MENU TABLEAUX SOUS LE TITRE CIGALIA)
   ========================================================================== */

.gallery-wrapper {
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center; /* Centre horizontalement sous CIGALIA */
    align-items: flex-start; /* Aligne vers le haut */
    padding-top: 260px; /* Décale le menu juste sous le titre CIGALIA */
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
    background-image: url('images/cigalia-décor-people.jpg') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

/* Grille en 2 colonnes sous forme de tableau */
.gallery-wall {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 colonnes de tableaux */
    gap: 30px 20px; /* Espace vertical pour les cordes, horizontal entre cadres */
    width: 100%;
    max-width: 520px; /* Largeur contenue pour rester bien au centre */
    margin: 0 auto;
}

/* Le cadre du tableau */
.picture-frame {
    position: relative;
    display: block;
    text-decoration: none !important;
    background: linear-gradient(145deg, #2c1e12, #1a110a);
    border: 3px solid #c8963e; /* Moulure dorée */
    border-radius: 6px;
    padding: 10px 14px;
    text-align: center;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.8), inset 0 0 10px rgba(0, 0, 0, 0.6);
    transform-origin: top center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* Le clou de fixation */
.picture-frame::before {
    content: '';
    position: absolute;
    top: -22px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    background: #8c7355;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.8), inset 0 1px 2px rgba(255, 255, 255, 0.5);
    z-index: 5;
}

/* La corde suspendue en V */
.picture-frame::after {
    content: '';
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    height: 18px;
    border-top: 2px dashed #f0a500;
    border-left: 2px solid transparent;
    border-right: 2px solid transparent;
    z-index: 4;
}

/* Animation au survol */
.picture-frame:hover {
    transform: rotate(2deg) translateY(2px);
    border-color: #ffffff;
    box-shadow: 0 12px 22px rgba(0, 0, 0, 0.9), 0 0 15px rgba(240, 165, 0, 0.4);
}

.picture-frame:nth-child(even):hover {
    transform: rotate(-2deg) translateY(2px);
}

.frame-inner {
    display: flex;
    justify-content: center;
    align-items: center;
}

.frame-title {
    color: #fceabb !important;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: 1px 2px 4px rgba(0, 0, 0, 0.9);
    transition: color 0.3s ease;
}

.picture-frame:hover .frame-title {
    color: #ffffff !important;
}

/* Ajustement mobile */
@media (max-width: 600px) {
    .gallery-wrapper {
        padding-top: 100px;
    }
    .gallery-wall {
        grid-template-columns: 1fr; /* 1 seule colonne sur petit écran */
        max-width: 260px;
    }
}
/* ==========================================================================
   5. TEMPLATE PAGE GRAND FOND (PRESENTATION, ETC.)
   ========================================================================== */

body.admin-bar .scenedbackground {
    margin-top: 32px !important;
}

.scenedbackground {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow-x: hidden;
    z-index: 1;
}

.back-home-btn {
    position: absolute;
    top: 25px;
    left: 25px;
    color: #ffffff !important;
    background: rgba(0, 0, 0, 0.6);
    padding: 10px 18px;
    border-radius: 20px;
    text-decoration: none !important;
    font-weight: bold;
    z-index: 100;
    transition: background 0.3s ease;
}

.back-home-btn:hover {
    background: #f0a500;
    color: #000 !important;
}

.presentation-stage {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 85vh;
    padding: 60px 20px;
    position: relative;
    z-index: 10;
}

.presentation-card {
    background: rgba(20, 27, 13, 0.85);
    border: 2px solid #f0a500;
    border-radius: 16px;
    padding: 40px;
    max-width: 600px;
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.7);
}

.scened-title {
    color: #f0a500 !important;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 25px;
}

.anim-item, .text-line {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}

/* ==========================================================================
   6. ANIMATION DE TRANSITION OVERLAY
   ========================================================================== */

.page__style_overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999999;
    pointer-events: none;
    opacity: 0;
}

.page__style_overlay::before,
.page__style_overlay::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 50vh;
    background-color: #141b0d;
    transition: transform 0.8s cubic-bezier(0.75, 0, 0.25, 1);
}

.page__style_overlay::before {
    top: 0;
    transform: translateY(-100%);
}

.page__style_overlay::after {
    bottom: 0;
    transform: translateY(100%);
}

.page__style_line {
    position: fixed;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: #ffffff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.9);
    z-index: 1000000;
    pointer-events: none;
    opacity: 0;
    transform: translateY(-50%) scaleX(0);
    transition: transform 0.4s ease, opacity 0.3s ease;
}

.page__style_overlay.animate_out {
    opacity: 1;
    pointer-events: auto;
}
.page__style_overlay.animate_out::before,
.page__style_overlay.animate_out::after {
    transform: translateY(0);
}
.page__style_overlay.animate_out .page__style_line {
    opacity: 1;
    transform: translateY(-50%) scaleX(1);
    transition-delay: 0.6s;
}

.page__style_overlay.animate_in {
    opacity: 1;
    pointer-events: auto;
}
.page__style_overlay.animate_in::before,
.page__style_overlay.animate_in::after {
    transform: translateY(0);
}
.page__style_overlay.animate_in .page__style_line {
    opacity: 1;
    transform: translateY(-50%) scaleX(1);
}

.page__style_overlay.is-opening .page__style_line {
    opacity: 0;
    transform: translateY(-50%) scaleX(0);
    transition: transform 0.3s ease, opacity 0.2s ease;
}
.page__style_overlay.is-opening::before {
    transform: translateY(-100%);
}
.page__style_overlay.is-opening::after {
    transform: translateY(100%);
}