/* --- assets/css/style.css --- */

/* --- 1. VARIABLES & RESET --- */
:root {
    --red-primary: #D32F2F;
    --black-text: #1a1a1a;
    --grey-light: #f4f4f4;
    --grey-text: #666;
    --white: #ffffff;
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Lato', sans-serif;
    --transition-speed: 0.6s;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }

body {
    font-family: var(--font-sans);
    background-color: var(--white);
    color: var(--black-text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* --- 2. ANIMATION D'INTRODUCTION (Avec Sécurité) --- */
#intro-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: var(--white);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: auto;
    
    /* SÉCURITÉ : Force la disparition après 4.5s même sans JS */
    animation: forceHide 0s linear 4.5s forwards;
}

/* Animation de sécurité */
@keyframes forceHide {
    to { opacity: 0; visibility: hidden; pointer-events: none; }
}

.intro-container { text-align: center; position: relative; z-index: 10000; }

.intro-circle {
    width: 85px; height: 85px; 
    border: 12px solid var(--red-primary); 
    border-radius: 50%; margin: 0 auto; background: transparent;
    animation: waitAndGrow 4s cubic-bezier(0.85, 0, 0.15, 1) forwards;
}

.intro-text {
    font-family: var(--font-serif); font-size: 1.6rem; color: var(--black-text);
    margin-top: 25px; font-weight: bold; letter-spacing: -0.5px; opacity: 0;
    animation: textSimpleAppear 4s ease-in-out forwards;
}

@keyframes waitAndGrow {
    0% { transform: scale(1); }
    75% { transform: scale(1); } 
    100% { transform: scale(100); } 
}

@keyframes textSimpleAppear {
    0% { opacity: 0; }
    20% { opacity: 1; }
    70% { opacity: 1; }
    90% { opacity: 0; }
    100% { opacity: 0; }
}

body.loaded #intro-overlay {
    opacity: 0; transition: opacity 0.5s ease-out; pointer-events: none;
}

/* --- 3. ANIMATIONS AU SCROLL (REVEAL) --- */
.reveal-element { opacity: 0; transform: translateY(30px); transition: all 0.8s cubic-bezier(0.2, 1, 0.3, 1); }
.reveal-element.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* --- 4. TYPOGRAPHIE --- */
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 700; margin-bottom: 1rem; color: #111; }

h1 { 
    font-size: 2.5rem; 
    line-height: 1.2; 
    letter-spacing: -0.5px; 
}

h2 { 
    font-size: 1.8rem; 
    border-bottom: 2px solid var(--red-primary); 
    padding-bottom: 10px; 
    display: inline-block; 
    margin-top: 40px; 
}

h3 { font-size: 1.4rem; } 

p { margin-bottom: 1.5rem; font-size: 1rem; color: #444; }

/* --- 5. HEADER & NAV --- */
header { padding: 25px 50px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(0,0,0,0.05); position: sticky; top: 0; background: rgba(255,255,255,0.98); z-index: 1000; backdrop-filter: blur(10px); }

.logo { display: flex; align-items: center; font-family: var(--font-serif); font-size: 1.5rem; font-weight: bold; cursor: pointer; letter-spacing: -0.5px; text-decoration: none; color: var(--black-text);}
.circle-icon { width: 24px; height: 24px; border: 4px solid var(--red-primary); border-radius: 50%; margin-right: 15px; }

nav ul { display: flex; list-style: none; gap: 35px; }
nav a { text-decoration: none; color: var(--black-text); font-weight: 500; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1.5px; transition: color 0.3s; cursor: pointer; position: relative; }
nav a::after { content: ''; position: absolute; bottom: -5px; left: 0; width: 0%; height: 2px; background: var(--red-primary); transition: width 0.3s; }
nav a:hover::after, nav a.active::after { width: 100%; }

.cta-header { background-color: var(--black-text); color: white !important; padding: 12px 25px; border-radius: 2px; transition: background 0.3s; }
.cta-header:hover { background-color: var(--red-primary); }
.cta-header::after { display: none; }

/* --- 6. LAYOUT (GRILLES) --- */
.container-grid { display: grid; grid-template-areas: "content"; max-width: 1100px; margin: 0 auto; padding: 60px 20px; min-height: 80vh; }

/* Golden Grid : Colonne gauche large (1.618), droite étroite (1) */
.golden-grid { display: grid; grid-template-columns: 1.618fr 1fr; gap: 40px; margin-top: 50px; }

/* Standard Grid : Colonnes égales */
.standard-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; margin-top: 40px; }

/* --- 7. COMPOSANTS --- */
.hero { text-align: center; padding: 50px 0 40px 0; position: relative;}
.decorative-dot { width: 20px; height: 20px; background: var(--red-primary); border-radius:50%; margin: 0 auto 20px auto; box-shadow: 0 0 20px rgba(211, 47, 47, 0.4); }
.hero-sub { font-size: 1.2rem; color: var(--grey-text); max-width: 700px; margin: 20px auto; font-style: italic; font-family: var(--font-serif); }

.card { 
    border: 1px solid #eee; 
    padding: 40px; 
    transition: transform 0.4s cubic-bezier(0.2, 1, 0.3, 1), box-shadow 0.4s; 
    background: white; 
    display: flex; flex-direction: column; justify-content: space-between; 
}
.card:hover { transform: translateY(-8px); box-shadow: 0 15px 30px rgba(0,0,0,0.08); border-color: transparent; }

.tag { background: #f8f8f8; padding: 6px 12px; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1.5px; font-weight: 700; color: #888; margin-bottom: 15px; display: inline-block;}
.event-date { font-family: var(--font-serif); font-size: 1.4rem; color: var(--red-primary); margin-bottom: 10px; display: block; }
.past-events { opacity: 0.6; margin-top: 60px; }

/* --- 8. FORMULAIRES --- */
.form-group { margin-bottom: 20px; }
label { display: block; margin-bottom: 8px; font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.5px; }
input, select, textarea { width: 100%; padding: 12px; border: 1px solid #ddd; font-family: var(--font-sans); transition: border-color 0.3s; font-size: 1rem;}
input:focus { border-color: var(--black-text); outline: none; }

.checkbox-group { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; background: #f9f9f9; padding: 15px; border-radius: 4px; border: 1px solid transparent; transition: border-color 0.3s;}
.checkbox-group input { width: auto; }

.price-tag { font-size: 2rem; color: var(--red-primary); font-family: var(--font-serif); text-align: right; margin-top: 30px; margin-bottom: 10px; font-weight: 700;}

button.submit-btn { 
    background-color: var(--black-text); color: white; border: none; padding: 15px 30px; font-size: 0.9rem; cursor: pointer; 
    text-transform: uppercase; letter-spacing: 2px; font-weight: 700; width: 100%; transition: all 0.3s;
}
button.submit-btn:hover { background-color: var(--red-primary); transform: translateY(-2px); box-shadow: 0 5px 15px rgba(211, 47, 47, 0.3); }

/* --- 9. FOOTER & UTILITAIRES --- */
footer { background: var(--black-text); color: white; padding: 60px 50px; text-align: center; font-size: 0.9rem; position: relative; z-index: 100; margin-top: 80px;}
footer p { color: #888; margin-bottom: 0.5rem; }
footer strong { color: white; }

.btn-outline { 
    border: 1px solid var(--black-text); padding: 12px 25px; text-decoration: none; color: var(--black-text); display: inline-block; margin-top: 20px; 
    font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; transition: all 0.3s; font-weight: 700;
}
.btn-outline:hover { background: var(--black-text); color: white; }

.locked-content { position: relative; overflow: hidden; height: 120px; opacity: 0.5; filter: grayscale(1); margin-bottom: 15px;}

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 10px; margin-top: 60px; font-family: var(--font-serif); }
.page-link { padding: 10px 15px; border: 1px solid #ddd; text-decoration: none; color: var(--black-text); transition: all 0.3s; font-weight: bold; }
.page-link:hover, .page-link.current { background-color: var(--red-primary); color: white; border-color: var(--red-primary); }

/* RESPONSIVE MOBILE */
@media (max-width: 900px) {
    header { flex-direction: column; padding: 20px; }
    nav ul { flex-wrap: wrap; justify-content: center; gap: 15px; margin-top: 20px; }
    h1 { font-size: 2rem; }
    .golden-grid { grid-template-columns: 1fr; } /* Passe en 1 colonne */
    .standard-grid { grid-template-columns: 1fr; }
    .intro-circle { width: 60px; height: 60px; border-width: 8px;}
}