/* ==============================================
   PAGE INSCRIPTION AUX SORTIES MODERNE - STYLE IDENTIQUE À STAFF
   Créé le 22/01/2026 - Version 1.0
=============================================== */

/* ==============================================
   PAGE INSCRIPTION AUX SORTIES - STYLE IDENTIQUE À STAFF
   Créé le 22/01/2026 - Version 2.0
=============================================== */

/* Masquer UNIQUEMENT le contenu visuel du header, PAS le menu sticky */
.page-template-template-inscription-sorties .header .overlay-layer {
    display: none !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

.page-template-template-inscription-sorties .intro-section {
    display: none !important;
}

/* Réduire l'espace du header au minimum */
.page-template-template-inscription-sorties .header {
    min-height: 0 !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Section principale avec fond et image - IDENTIQUE À ESPACE MEMBRES */
.inscription-section-modern {
    position: relative;
    padding: 40px 0 100px 0;
    background-image: url('http://localhost/wp-content/uploads/2019/01/fond.jpg') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed !important;
    overflow: hidden;
}

/* Overlay sombre pour garder la lisibilité - OPACITÉ RÉDUITE */
.inscription-section-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(15, 15, 15, 0.30) 0%, rgba(26, 26, 26, 0.30) 50%, rgba(15, 15, 15, 0.30) 100%);
    z-index: 0;
}

/* Effet de particules en arrière-plan */
.inscription-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.inscription-particles .particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(241, 108, 32, 0.3);
    border-radius: 50%;
    animation: particleFloat 15s infinite ease-in-out;
}

@keyframes particleFloat {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) translateX(50px);
        opacity: 0;
    }
}

.inscription-overlay-modern {
    position: relative;
    z-index: 2;
}

/* Header moderne */
.inscription-header-modern {
    text-align: center;
    margin-bottom: 60px;
    margin-top: 100px;
    position: relative;
}

.inscription-title-modern {
    font-size: 56px;
    font-weight: 800;
    color: #ffffff;
    margin-top: 0;
    margin-bottom: 30px;
    line-height: 1.2;
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Ligne décorative animée */
.inscription-line-modern {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 30px auto;
}

.inscription-line-modern span {
    height: 3px;
    background: #f16c20;
    border-radius: 3px;
    animation: lineGrow 2s ease-in-out infinite;
}

.inscription-line-modern span:nth-child(1) {
    width: 60px;
    animation-delay: 0s;
}

.inscription-line-modern span:nth-child(2) {
    width: 100px;
    animation-delay: 0.3s;
}

.inscription-line-modern span:nth-child(3) {
    width: 60px;
    animation-delay: 0.6s;
}

@keyframes lineGrow {
    0%, 100% {
        transform: scaleX(1);
        opacity: 1;
    }
    50% {
        transform: scaleX(0.7);
        opacity: 0.6;
    }
}

/* Texte d'introduction */
.inscription-intro-modern {
    max-width: 800px;
    margin: 0 auto 60px;
    font-size: 18px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
}

.inscription-intro-modern p {
    margin: 0;
}

.inscription-intro-modern strong {
    color: #f16c20;
    font-weight: 600;
}

/* Contenu du formulaire moderne */
.inscription-content-modern {
    max-width: 1200px;
    margin: 0 auto 80px;
    padding: 0 20px;
}

.inscription-card-wrapper {
    position: relative;
}

.inscription-card-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(241, 108, 32, 0.15) 0%, transparent 70%);
    border-radius: 24px;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 0;
}

.inscription-card-wrapper:hover .inscription-card-glow {
    opacity: 1;
}

.inscription-card-inner {
    position: relative;
    background: rgba(0, 0, 0, 0.50);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    padding: 40px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.inscription-card-wrapper:hover .inscription-card-inner {
    transform: translateY(-8px);
    border-color: rgba(241, 108, 32, 0.3);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5),
                0 0 0 1px rgba(241, 108, 32, 0.2);
}

/* Styles pour iframes et formulaires */
.inscription-card-inner iframe,
.inscription-card-inner form {
    width: 100% !important;
    border: none !important;
    background: transparent !important;
}

/* Grille d'information - 3 cartes */
.inscription-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 0 auto;
    max-width: 1200px;
    padding: 0 20px;
}

.inscription-info-grid-3 {
    grid-template-columns: repeat(3, minmax(280px, 1fr));
}

/* Cartes d'information */
.info-card {
    position: relative;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.info-card.aos-animate {
    opacity: 1;
    transform: translateY(0);
}

.info-card-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(241, 108, 32, 0.15) 0%, transparent 70%);
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 0;
}

.info-card:hover .info-card-glow {
    opacity: 1;
}

.info-card-inner {
    position: relative;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 35px 30px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.info-card:hover .info-card-inner {
    transform: translateY(-8px);
    border-color: rgba(241, 108, 32, 0.3);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5),
                0 0 0 1px rgba(241, 108, 32, 0.2);
}

.info-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #f16c20 0%, #e85d12 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    box-shadow: 0 8px 24px rgba(241, 108, 32, 0.4);
    transition: all 0.3s ease;
}

.info-card:hover .info-icon {
    transform: scale(1.1) rotate(360deg);
    box-shadow: 0 12px 32px rgba(241, 108, 32, 0.6);
}

.info-icon svg {
    color: #ffffff;
}

.info-card h3 {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

.info-card:hover h3 {
    color: #f16c20;
}

.info-card p {
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
    transition: color 0.3s ease;
}

.info-card:hover p {
    color: rgba(255, 255, 255, 0.9);
}

/* Ligne hover */
.info-card-hover-line {
    position: absolute;
    bottom: 0;
    left: 30px;
    right: 30px;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, #f16c20 50%, transparent 100%);
    transform: scaleX(0);
    transition: transform 0.4s ease;
    border-radius: 3px;
}

.info-card:hover .info-card-hover-line {
    transform: scaleX(1);
}

/* Responsive Design */
@media (max-width: 991px) {
    .inscription-title-modern {
        font-size: 42px;
    }
    
    .inscription-info-grid,
    .inscription-info-grid-3 {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 767px) {
    .inscription-section-modern {
        padding: 60px 0;
    }
    
    .inscription-header-modern {
        margin-bottom: 50px;
        margin-top: 80px;
    }
    
    .inscription-title-modern {
        font-size: 32px;
    }
    
    .inscription-intro-modern {
        font-size: 16px;
        padding: 0 15px;
    }
    
    .inscription-content-modern {
        margin-bottom: 60px;
    }
    
    .inscription-card-inner {
        padding: 25px 20px;
    }
    
    .inscription-info-grid,
    .inscription-info-grid-3 {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }
    
    .info-card-inner {
        padding: 25px 20px;
    }
    
    .info-icon {
        width: 70px;
        height: 70px;
    }
    
    .info-icon svg {
        width: 35px;
        height: 35px;
    }
    
    .info-card h3 {
        font-size: 20px;
    }
    
    .info-card p {
        font-size: 14px;
    }
}

/* Animation pour les navigateurs qui supportent */
@media (prefers-reduced-motion: no-preference) {
    .info-card,
    .inscription-card-wrapper {
        will-change: opacity, transform;
    }
}

/* Mode sombre optimisé */
@media (prefers-color-scheme: dark) {
    .inscription-section-modern {
        background: linear-gradient(135deg, #000000 0%, #0a0a0a 50%, #000000 100%);
    }
}

/* ===== BLOC FLYERS DES SORTIES ===== */
.flyers-sorties-bloc {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

.flyers-sorties-label {
    color: rgba(255,255,255,0.85);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.flyers-sorties-select-wrap {
    display: inline-block;
    position: relative;
}

.flyers-sorties-select {
    appearance: none;
    -webkit-appearance: none;
    background: #1a1a1a;
    color: #eee;
    border: 2px solid #f16c20;
    border-radius: 8px;
    padding: 10px 44px 10px 18px;
    font-size: .95rem;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    min-width: 260px;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23f16c20' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
}

.flyers-sorties-select:hover,
.flyers-sorties-select:focus {
    border-color: #f5c518;
    box-shadow: 0 0 0 3px rgba(245,197,24,0.2);
}

.flyers-sorties-select option {
    background: #1a1a1a;
    color: #eee;
}

@media (max-width: 600px) {
    .flyers-sorties-select {
        min-width: 90vw;
        font-size: .88rem;
    }
}

/* Ligne flyers : select + bouton F alignés horizontalement */
.flyers-sorties-row {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

/* Bouton Voir - ouvre le PDF sélectionné (compatible mobile) */
.btn-flyer-voir {
    background: #f16c20;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 8px;
    display: none;
    font-family: 'Montserrat', sans-serif;
    transition: background .2s;
}
.btn-flyer-voir:hover {
    background: #d45a10;
}

/* Bouton F - à droite du menu flyers */
.btn-flyer-f {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #f5c518;
    color: #1a1a1a;
    border: 3px solid rgba(255,255,255,0.25);
    cursor: pointer;
    font-size: 18px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(245,197,24,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .2s, box-shadow .2s;
    font-family: 'Montserrat', sans-serif;
    flex-shrink: 0;
}
.btn-flyer-f:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(245,197,24,0.9);
}

@media (max-width: 600px) {
    .flyers-sorties-row {
        display: flex;
        width: 100%;
    }
    .flyers-sorties-row .flyers-sorties-select-wrap {
        flex: 1;
    }
}
/* ===================================== */

/* Masquer l'ancien menu Flyers Elementor (doublon) - le nouveau est généré par le template PHP */
/* Ciblage CSS robuste - cible tout select contenant des options flyer dans la carte */
.inscription-card-inner .flyers-sorties-bloc,
.inscription-card-inner .flyers-sorties-select-wrap,
.elementor-widget-container .flyers-sorties-select-wrap {
    display: none !important;
}



/* Print styles */
@media print {
    .inscription-section-modern {
        background: #ffffff;
    }
    
    .inscription-card-inner,
    .info-card-inner {
        border: 1px solid #cccccc;
    }
    
    .inscription-particles,
    .inscription-card-glow,
    .info-card-glow {
        display: none;
    }
}
