/* ========================================
   VARIABLES
======================================== */
:root {
    --font-body: "neue-haas-grotesk-text", sans-serif;
    --font-heading: "neue-haas-grotesk-display", sans-serif;
    --font-regular: 400;
    --font-bold: 700;
    --font-size-base: 16px;
    --bs-primary-rgb : #671565;
    --color-primary: #671565;
    --color-secondary: #c0cf1f;
    --color-success: green;
    --color-warning: orange;
    --color-danger: red;
    --color-bg-light: #f0f0f0;

    /* Variable pour la bordure du site */
    --site-border-width: 45px;
}

/* ========================================
   BASE
======================================== */
body {
    font-size: var(--font-size-base);
    font-family: var(--font-body);
    font-weight: var(--font-regular);
    border: var(--site-border-width) solid var(--color-bg-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

/* ========================================
   TYPOGRAPHY
======================================== */
h1, h2, h3, h4, .prompt {
    font-family: var(--font-heading);
    font-weight: var(--font-bold);
    letter-spacing: -0.01em;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1rem; }

p, li, span, a { font-family: var(--font-body); }

/* ========================================
   LINKS & BUTTONS
======================================== */
a { color: var(--color-primary); transition: .2s ease; text-decoration: none; }
a:hover { color: var(--color-secondary); }

.btn, button { font-family: var(--font-heading); font-weight: 700; }
.btn-foulee { background: var(--color-secondary)!important; color: white !important; border: none; padding: 0.8rem 2rem; border-radius: 50px; }
.bg-violet { background:var(--color-primary); }
.border-primary { border-color: var(--color-primary) !important; }
.text-primary {color: var(--color-primary) !important;}
.text-secondary {color: var(--color-secondary) !important;}
/* ========================================
   NAVIGATION & HEADER
======================================== */
#header {
    position: absolute;
    top: calc(var(--site-border-width) + 15px);
    left: calc(var(--site-border-width) + 15px);
    right: calc(var(--site-border-width) + 15px);
    z-index: 9999;
    background: transparent;
}

.admin-bar #header { top: calc(var(--site-border-width) + 15px + 32px); }

.nav-link { color: white; font-size: 18px; font-family: var(--font-heading); }
.nav-link:hover { color: var(--color-secondary); }

#header .container-fluid { display: flex; align-items: center; justify-content: space-between; }
#header-menu-container { margin-left: auto; }

/* Inversion logo sur home ou pages à hero sombre */
.home #header .navbar-brand img, 
.page-template-page-standard #header .navbar-brand img {
    filter: brightness(0) invert(1);
}

/* ========================================
   HERO (HOME & PAGES)
======================================== */
.home-hero, .page-hero {
    position: relative;
    min-height: 70vh; /* Pages intérieures plus courtes que la home */
    display: flex;
    align-items: center;
    overflow: hidden;
    isolation: isolate;
}

.home-hero { min-height: calc(100vh - 90px); }

.home-hero__bg, .page-hero__bg {
    position: absolute;
    inset: 0;
    z-index: -3;
    background: black;
}

/* Style spécifique pour l'iframe background */
.home-hero__bg iframe, .page-hero__bg iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw; /* 16:9 ratio */
    min-height: 100vh;
    min-width: 177.77vh;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.home-hero__overlay, .page-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: -2;
    background: linear-gradient(180deg, rgba(0,0,0,.3) 0%, rgba(0,0,0,.5) 100%);
}

.home-hero__content, .page-hero__content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding-top: 5rem;
}

/* ========================================
   CONTENT BLOCKS
======================================== */
.home-main, .page-main {
    position: relative;
    margin-top: -5rem;
    z-index: 5;
}

.home-content, .page-content-card {
    background: white;
    border-radius: 2rem;
    box-shadow: 0 20px 50px rgba(0,0,0,.08);
}

/* ========================================
   RESPONSIVE
======================================== */
@media(max-width:991px) {
    :root { --site-border-width: 20px; }
    h1 { font-size: 2.5rem; }
    .home-main, .page-main { margin-top: -3rem; }
}

@media(max-width:767px) {
    :root { --site-border-width: 12px; }
    .home-hero { min-height: 80vh; }
    .admin-bar #header { top: calc(var(--site-border-width) + 15px + 46px); }
}

/* ========================================
	Styles spécifiques pour les partenaires
======================================== */

    .partner-img {
        max-height: 120px;
        width: auto;
        filter: grayscale(20%);
        transition: all 0.3s ease;
    }
    .partenaire-logo:hover .partner-img {
        filter: grayscale(0%);
        transform: scale(1.05);
    }
    .hover-lift {
        transition: transform 0.2s ease;
        display: block;
    }
    .hover-lift:hover {
        transform: translateY(-5px);
    }
    .partenaire-section h2 {
        color: #2c3e50;
    }

    .partner-img {
        max-height: 80px; /* Un peu plus petit pour le rappel en bas de page */
        width: auto;
        transition: all 0.3s ease-in-out;
    }
    
    .hover-lift:hover .partner-img {
        opacity: 1;
        transform: scale(1.08);
    }

    .hover-lift {
        transition: transform 0.2s ease;
        display: inline-block;
    }

    .partenaire-group h3::after {
        content: "";
        display: block;
        width: 50px;
        height: 2px;
        background: var(--color-primary); /* Ta couleur primaire */
        margin: 8px auto 0;
    }    


    /* Styles spécifiques pour les Albums */
    .album-card {
        transition: transform 0.3s ease;
    }

    .album-card__image img {
        height: 100%;
        width: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
    }

    .album-card__overlay {
        position: absolute;
        inset: 0;
        background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 100%);
        opacity: 0.85;
        transition: all 0.3s ease;
    }

    .album-card:hover .album-card__image img {
        transform: scale(1.1);
    }

    .album-card:hover .album-card__overlay {
        opacity: 1;
        /* Remplacement par la teinte #671565 avec opacité 0.75 */
        background: rgba(103, 21, 101, 0.75); 
    }

    .album-card h2 {
        font-size: 1.1rem;
        letter-spacing: 0.5px;
        text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    }


        /* Ajustements pour le formulaire ACF imbriqué */
    .acf-form-custom .acf-field { border: none !important; padding: 0 !important; margin-bottom: 1rem; }
    .acf-form-custom .acf-label { display: none; } /* On cache le label si évident */
    .acf-form-custom .acf-input-wrap input[type="file"] { font-size: 0.9rem; }
    
    .status-box { border: 1px solid rgba(0,0,0,0.05); }
    
    /* Animation de la card au survol */
    #certificats-front .card {
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    #certificats-front .card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
    }


    /* GRILLE DE PHOTOS */
    .photo-item {
        aspect-ratio: 1 / 1; /* Carré parfait */
        background: #f8f9fa;
    }

    .photo-grid-img {
        height: 100%;
        width: 100%;
        object-fit: cover;
        transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    }

    .photo-overlay {
        position: absolute;
        inset: 0;
        background: rgba(103, 21, 101, 0); /* Ta teinte #671565 transparente */
        opacity: 0;
        transition: all 0.4s ease-in-out;
    }

    .photo-item:hover .photo-grid-img {
        transform: scale(1.1);
    }

    .photo-item:hover .photo-overlay {
        background: rgba(103, 21, 101, 0.75); /* Teinte #671565 avec opacité au survol */
        opacity: 1;
    }

    .photo-overlay i {
        transform: translateY(10px);
        transition: transform 0.3s ease;
    }

    .photo-item:hover .photo-overlay i {
        transform: translateY(0);
    }

    /* Fil d'ariane */
    .breadcrumb-item + .breadcrumb-item::before {
        color: rgba(255,255,255,0.5);
    }

    /* Ciblage des cartes d'info (on utilise la hiérarchie pour éviter les conflits) */
    .row.justify-content-center .col-md-4 > div.rounded-4 {
        transition: all 0.3s ease-in-out;
    }

    /* Effet au survol de la carte */
    .row.justify-content-center .col-md-4 > div.rounded-4:hover {
        transform: translateY(-8px);
        background-color: #ffffff !important; /* On éclaircit le bg-light */
        border-start-color: var(--bs-primary) !important; /* On renforce la bordure gauche */
    }

    /* Animation de l'icône à l'intérieur lors du hover sur la carte */
    .row.justify-content-center .col-md-4 > div.rounded-4:hover .icon-box {
        transform: scale(1.1) rotate(5deg);
        transition: transform 0.3s ease;
    }

    /* Optionnel : fluidité sur l'icône même sans hover */
    .icon-box {
        transition: transform 0.3s ease;
    }


    /* Animation de base de la carte */
.hover-elevate {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    top: 0; /* Nécessaire pour l'animation de position */
}

/* Effet au survol de la carte */
.hover-elevate:hover {
    transform: translateY(-10px); /* Soulève la carte */
    box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.15) !important; /* Ombre plus profonde */
}

/* Animation du header (la barre d'heure) */
.hover-elevate:hover .card-header {
    filter: brightness(1.1); /* Éclaircit légèrement la couleur primaire */
    transition: filter 0.3s ease;
}

/* Focus sur le bouton d'inscription au survol de la carte */
.hover-elevate:hover .btn-foulee {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    filter: saturate(1.2); /* Rend la couleur du bouton plus vive */
}

/* Petit effet sur l'icône horloge */
.hover-elevate:hover .fa-clock {
    display: inline-block;
    animation: pulse-clock 1s infinite;
}

@keyframes pulse-clock {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}


.ppom-wrapper_outer-labelrgpd {
	margin-top: 15px;
}

/* Ciblage groupé des boutons principaux (alt) de WooCommerce */
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) #respond input#submit.alt, 
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) a.button.alt, 
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) button.button.alt, 
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) input.button.alt,
.woocommerce #respond input#submit.alt,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt {
    background-color: var(--color-primary) !important;
    color: #ffffff !important;
    border-radius: 50px !important; /* Style pilule comme tes boutons de retour */
    padding: 12px 30px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px;
    transition: all 0.3s ease-in-out !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* État Hover (Survol) - En continuité avec l'effet "elevate" */
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) #respond input#submit.alt:hover, 
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) a.button.alt:hover, 
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) button.button.alt:hover, 
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) input.button.alt:hover {
    background-color: var(--color-primary) !important;
    filter: brightness(1.1) saturate(1.2) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15) !important;
    color: #ffffff !important;
}

/* État Active (Clic) */
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) #respond input#submit.alt:active, 
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) a.button.alt:active, 
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) button.button.alt:active, 
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) input.button.alt:active {
    transform: translateY(-1px) !important;
}