/* ============================================================
   Century.fr — style.css
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --cricket-green: #1a4d2e;
    --cricket-green-light: #2d6a4f;
    --cricket-green-dark: #0d2818;
    --cricket-cream: #f8f6f0;
    --cricket-wood: #8b6f47;
    --cricket-gold: #d4af37;
    --cricket-white: #ffffff;
    --text-dark: #1a1a1a;
    --text-gray: #5f5f5f;
    --border-subtle: #e0ddd5;
    --header-h: 135px;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
    background: var(--cricket-cream);
    overflow-x: hidden;
}

/* Les ancres ne passent plus sous le header fixe */
section[id] { scroll-margin-top: var(--header-h); }

/* ---------------- HEADER ---------------- */
header {
    position: fixed; top: 0; left: 0; right: 0;
    background: rgba(26, 77, 46, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0,0,0,0.15);
    z-index: 1000;
    padding: 55px 50px 60px 50px;
    display: flex; justify-content: space-between; align-items: center;
    border-bottom: 2px solid var(--cricket-gold);
}
.logo-section { display: flex; align-items: center; gap: 15px; position: absolute; left: 50px; }
.logo-link { display: flex; align-items: center; gap: 20px; text-decoration: none; transition: opacity .3s ease; }
.logo-link:hover { opacity: .9; }
.logo-img { width: 120px; height: 120px; object-fit: contain; }
.logo-text { display: flex; flex-direction: column; }
.logo-title {
    font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 800;
    color: var(--cricket-white); letter-spacing: 1px; text-transform: uppercase;
}
.logo-subtitle { font-size: 11px; font-style: italic; color: var(--cricket-gold); letter-spacing: 2px; margin-top: -5px; }

/* Sélecteur de langue */
.language-selector {
    position: absolute; right: 50px; top: 50%;
    transform: translateY(-50%) scale(0.7); transform-origin: right center;
}
.lang-current {
    display: flex; align-items: center; gap: 8px; padding: 8px 14px;
    background: rgba(26, 77, 46, 0.8); border: 2px solid var(--cricket-gold); border-radius: 8px;
    cursor: pointer; transition: all .3s ease; font-family: inherit; font-weight: 600;
    color: var(--cricket-white); box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.lang-current:hover { background: rgba(212, 175, 55, 0.2); transform: translateY(-2px); }
.lang-current img { width: 28px; height: 21px; object-fit: cover; border-radius: 3px; box-shadow: 0 2px 8px rgba(0,0,0,0.2); }
.lang-current span { color: var(--cricket-white); font-weight: 600; font-size: 14px; letter-spacing: .5px; }
.lang-current svg { width: 14px; height: 14px; fill: var(--cricket-gold); transition: transform .3s; }
.language-selector.active .lang-current svg { transform: rotate(180deg); }
.lang-options {
    position: absolute; top: 100%; right: 0; margin-top: 12px;
    background: var(--cricket-white); border-radius: 8px; box-shadow: 0 8px 32px rgba(0,0,0,0.25);
    min-width: 200px; display: none; z-index: 100; border: 2px solid var(--cricket-gold); overflow: hidden;
}
.language-selector.active .lang-options { display: block; animation: slideDown .3s ease; }
.lang-option {
    display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 18px;
    background: none; border: none; border-bottom: 1px solid var(--border-subtle);
    font-family: inherit; text-align: left; cursor: pointer; transition: all .3s;
}
.lang-option:last-child { border-bottom: none; }
.lang-option:hover { background: linear-gradient(90deg, var(--cricket-green) 0%, var(--cricket-green-light) 100%); transform: translateX(5px); }
.lang-option:hover span { color: var(--cricket-white); }
.lang-option img { width: 28px; height: 21px; object-fit: cover; border-radius: 3px; box-shadow: 0 2px 8px rgba(0,0,0,0.15); }
.lang-option span { color: var(--text-dark); font-weight: 500; font-size: 15px; transition: color .3s; }

/* ---------------- HERO ---------------- */
.hero {
    height: 550px; display: flex; align-items: center;
    padding: 180px 5% 0 5%; position: relative; overflow: hidden;
}
.hero-image {
    position: absolute; inset: 0;
    background: url('https://images.unsplash.com/photo-1531415074968-036ba1b575da?w=1920') center / cover no-repeat;
    z-index: 1;
}
.hero-overlay {
    position: absolute; inset: 0; z-index: 2;
    background: linear-gradient(135deg, rgba(26, 77, 46, 0.85) 0%, rgba(13, 40, 24, 0.92) 100%);
}
.hero::before {
    content: ''; position: absolute; inset: 0; z-index: 3;
    background: radial-gradient(circle at 30% 50%, rgba(212, 175, 55, 0.1) 0%, transparent 60%);
    animation: pulseGlow 8s ease-in-out infinite;
}
.hero-content { max-width: 1200px; margin: 0 auto; text-align: center; position: relative; z-index: 10; }
.hero-badge {
    display: inline-block; padding: 10px 25px; background: rgba(212, 175, 55, 0.2);
    border: 2px solid var(--cricket-gold); border-radius: 50px; color: var(--cricket-gold);
    font-size: 13px; font-weight: 600; letter-spacing: 2px; margin-bottom: 30px; animation: fadeInDown .8s ease;
}
.hero h1 {
    font-family: 'Playfair Display', serif; font-size: 5rem; font-weight: 900; color: var(--cricket-white);
    margin-bottom: 25px; line-height: 1.1; text-shadow: 0 4px 20px rgba(0,0,0,0.4); animation: fadeInUp 1s ease .2s both;
}
.hero-subtitle {
    font-size: 1.4rem; color: rgba(255,255,255,0.9); margin-bottom: 40px;
    font-weight: 300; letter-spacing: 1px; animation: fadeInUp 1s ease .4s both;
}
.hero-cta { display: inline-flex; gap: 20px; margin-bottom: 55px; animation: fadeInUp 1s ease .6s both; }

.btn-primary, .btn-secondary {
    display: inline-block; padding: 16px 40px; font-size: 15px; font-weight: 600; border-radius: 6px;
    border: none; cursor: pointer; transition: all .3s ease; text-decoration: none;
    letter-spacing: 1px; text-transform: uppercase;
}
.btn-primary { background: linear-gradient(135deg, var(--cricket-gold) 0%, #b8941f 100%); color: var(--text-dark); box-shadow: 0 4px 20px rgba(212,175,55,0.4); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(212,175,55,0.6); }
.btn-secondary { background: transparent; border: 2px solid var(--cricket-white); color: var(--cricket-white); }
.btn-secondary:hover { background: var(--cricket-white); color: var(--cricket-green); transform: translateY(-3px); }

/* ---------------- SECTIONS ---------------- */
section { padding: 80px 5%; position: relative; }
section.alt { background: var(--cricket-white); }
.section-header { text-align: center; margin-bottom: 60px; }
.section-badge {
    display: inline-block; padding: 8px 20px; background: rgba(26,77,46,0.1);
    border: 2px solid var(--cricket-green); border-radius: 50px; color: var(--cricket-green);
    font-size: 12px; font-weight: 700; letter-spacing: 2px; margin-bottom: 20px;
}
.section-title { font-family: 'Playfair Display', serif; font-size: 3.5rem; color: var(--cricket-green); margin-bottom: 20px; font-weight: 800; }
.section-subtitle { font-size: 1.2rem; color: var(--text-gray); max-width: 800px; margin: 0 auto; line-height: 1.8; }

/* ---------------- BANDEAUX PUBLICITAIRES ---------------- */
.ad-banner { max-width: 1200px; margin: 0 auto 60px; text-align: center; }
.ad-banner--wide { max-width: 1400px; }
.ad-banner a {
    display: block; border-radius: 12px; overflow: hidden; line-height: 0;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12); transition: transform .3s ease, box-shadow .3s ease;
}
.ad-banner a:hover { transform: translateY(-4px); box-shadow: 0 15px 40px rgba(0,0,0,0.18); }
.ad-banner img { display: block; width: 100%; height: auto; } /* largeur du contenu, proportions conservées */
.ad-label { display: block; margin-top: 8px; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--text-gray); }

/* ---------------- SECTION "LE CENTURY" ---------------- */
.milestones {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px; max-width: 1200px; margin: 0 auto 50px;
}
.milestone {
    background: var(--cricket-cream); border-radius: 12px; padding: 30px 25px; text-align: center;
    box-shadow: 0 8px 30px rgba(0,0,0,0.06); border-top: 4px solid var(--cricket-gold); transition: transform .3s ease;
}
.milestone:hover { transform: translateY(-6px); }
.milestone-value { font-family: 'Playfair Display', serif; font-size: 3.2rem; font-weight: 900; color: var(--cricket-gold); line-height: 1; }
.milestone-name { font-family: 'Playfair Display', serif; font-size: 1.35rem; color: var(--cricket-green); font-weight: 700; margin: 12px 0 8px; }
.milestone p { color: var(--text-gray); font-size: .92rem; line-height: 1.6; }
.century-intro { max-width: 900px; margin: 0 auto; color: var(--text-gray); font-size: 1.05rem; line-height: 1.9; }
.century-intro p + p { margin-top: 18px; }
.century-intro strong { color: var(--cricket-green); }

/* ---------------- TIMELINE ---------------- */
.timeline { max-width: 1200px; margin: 0 auto; position: relative; }
.timeline::before {
    content: ''; position: absolute; left: 50%; transform: translateX(-50%); width: 3px; height: 100%;
    background: linear-gradient(to bottom, var(--cricket-gold) 0%, var(--cricket-green) 100%);
}
.timeline-item { margin-bottom: 60px; position: relative; }
.timeline-item:nth-child(odd) .timeline-content { margin-left: auto; margin-right: 80px; }
.timeline-item:nth-child(even) .timeline-content { margin-right: auto; margin-left: 80px; }
.timeline-content {
    width: calc(50% - 40px); background: var(--cricket-white); padding: 35px; border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1); position: relative; transition: all .4s ease;
    border-left: 4px solid var(--cricket-gold);
}
.timeline-content:hover { transform: translateY(-5px); box-shadow: 0 15px 40px rgba(0,0,0,0.15); }
.timeline-year {
    position: absolute; top: 0; font-family: 'Playfair Display', serif; font-size: 2rem;
    font-weight: 700; color: var(--cricket-gold); width: 250px; white-space: nowrap;
}
.timeline-item:nth-child(odd) .timeline-year { right: calc(48% + 20px); text-align: left; }
.timeline-item:nth-child(even) .timeline-year { left: calc(48% + 20px); text-align: right; }
.timeline-item:nth-child(3) .timeline-year { right: calc(44% - 30px); }
.timeline-content h3 { font-family: 'Playfair Display', serif; font-size: 1.8rem; color: var(--cricket-green); margin-bottom: 15px; font-weight: 700; }
.timeline-content p { color: var(--text-gray); line-height: 1.8; font-size: 1rem; }
.timeline-marker {
    position: absolute; left: 50%; transform: translateX(-50%); width: 25px; height: 25px;
    background: var(--cricket-gold); border: 4px solid var(--cricket-white); border-radius: 50%;
    box-shadow: 0 0 0 4px var(--cricket-green); z-index: 10;
}

/* ---------------- LÉGENDES ---------------- */
.legends-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 40px; max-width: 1400px; margin: 0 auto; }
.legend-card {
    background: var(--cricket-white); border-radius: 15px; overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.12); transition: all .4s ease;
    border-top: 5px solid var(--cricket-gold); display: flex; flex-direction: column;
}
.legend-card:hover { transform: translateY(-10px); box-shadow: 0 20px 60px rgba(0,0,0,0.18); }
.legend-photo {
    width: 100%; height: 300px; object-fit: cover; object-position: center top;
    cursor: pointer; transition: opacity .3s ease;
}
.legend-photo:hover { opacity: .85; }
.legend-info { padding: 35px; flex: 1; }
.legend-name { font-family: 'Playfair Display', serif; font-size: 2rem; color: var(--cricket-green); margin-bottom: 10px; font-weight: 800; }
.star-nationality { color: var(--cricket-gold); font-weight: 600; font-size: 14px; letter-spacing: 1px; margin-bottom: 15px; }
.legend-stats {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin: 20px 0; padding: 20px 0;
    border-top: 2px solid var(--border-subtle); border-bottom: 2px solid var(--border-subtle);
}
.stat { text-align: center; }
.stat-value { font-family: 'Playfair Display', serif; font-size: 1.8rem; color: var(--cricket-gold); font-weight: 800; }
.stat-label { font-size: .85rem; color: var(--text-gray); margin-top: 5px; text-transform: uppercase; letter-spacing: 1px; }
.legend-description { color: var(--text-gray); line-height: 1.8; font-size: .98rem; }

/* ---------------- CENTURIES ---------------- */
.centuries-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 35px; max-width: 1400px; margin: 0 auto; }
.century-card {
    background: linear-gradient(135deg, var(--cricket-green) 0%, var(--cricket-green-dark) 100%);
    border-radius: 15px; padding: 40px; color: var(--cricket-white); position: relative; overflow: hidden;
    transition: all .4s ease; box-shadow: 0 10px 40px rgba(0,0,0,0.15); border: 2px solid var(--cricket-gold);
}
.century-card::before { content: '🏏'; position: absolute; top: -30px; right: -30px; font-size: 150px; opacity: .1; }
.century-card:hover { transform: translateY(-8px) scale(1.02); box-shadow: 0 20px 60px rgba(212,175,55,0.4); }
.century-score { font-family: 'Playfair Display', serif; font-size: 4.5rem; font-weight: 900; color: var(--cricket-gold); margin-bottom: 15px; text-shadow: 0 4px 10px rgba(0,0,0,0.3); }
.century-player { font-family: 'Playfair Display', serif; font-size: 1.8rem; margin-bottom: 10px; font-weight: 700; }
.century-match { font-size: .95rem; margin-bottom: 20px; opacity: .9; font-style: italic; }
.century-description { line-height: 1.8; opacity: .95; font-size: .95rem; }

/* ---------------- ÉQUIPEMENT ---------------- */
.equipment-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 35px; max-width: 1400px; margin: 0 auto; }
.equipment-card {
    background: var(--cricket-white); border-radius: 12px; padding: 35px; transition: all .4s ease;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08); border: 2px solid var(--border-subtle);
}
.equipment-card:hover { transform: translateY(-8px); box-shadow: 0 15px 50px rgba(0,0,0,0.15); border-color: var(--cricket-gold); }
.equipment-image { font-size: 4rem; text-align: center; margin-bottom: 25px; }
.equipment-content { text-align: center; }
.equipment-title { font-family: 'Playfair Display', serif; font-size: 1.4rem; color: var(--cricket-green); margin-bottom: 15px; font-weight: 700; }
.equipment-description { color: var(--text-gray); line-height: 1.8; margin-bottom: 25px; font-size: .95rem; }
.amazon-link {
    display: inline-flex; align-items: center; gap: 10px; padding: 12px 28px;
    background: linear-gradient(135deg, var(--cricket-gold) 0%, #b8941f 100%); color: var(--text-dark);
    text-decoration: none; border-radius: 6px; font-weight: 600; transition: all .3s ease;
    font-size: .95rem; letter-spacing: .5px;
}
.amazon-link:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(212,175,55,0.4); }
.affiliate-note { text-align: center; font-size: .85rem; color: var(--text-gray); margin-top: 40px; font-style: italic; }

/* ---------------- GUIDES ---------------- */
.guides-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(450px, 1fr)); gap: 40px; max-width: 1400px; margin: 0 auto; }
.guide-card {
    background: var(--cricket-white); border-radius: 15px; padding: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1); transition: all .4s ease; border-left: 5px solid var(--cricket-gold);
}
.guide-card:hover { transform: translateY(-8px); box-shadow: 0 20px 60px rgba(0,0,0,0.15); }
.guide-icon { font-size: 3.5rem; margin-bottom: 20px; }
.guide-title { font-family: 'Playfair Display', serif; font-size: 1.8rem; color: var(--cricket-green); margin-bottom: 15px; font-weight: 700; }
.guide-description { color: var(--text-gray); margin-bottom: 20px; line-height: 1.8; font-size: 1rem; }
.guide-list { list-style: none; }
.guide-list li { padding: 12px 0 12px 35px; position: relative; color: var(--text-gray); line-height: 1.7; border-bottom: 1px solid var(--border-subtle); }
.guide-list li:last-child { border-bottom: none; }
.guide-list li::before { content: '✓'; position: absolute; left: 0; color: var(--cricket-gold); font-weight: bold; font-size: 1.2rem; }

/* ---------------- FAQ ---------------- */
.faq-list { max-width: 900px; margin: 0 auto; }
.faq-item { background: var(--cricket-cream); border-radius: 10px; margin-bottom: 15px; border-left: 4px solid var(--cricket-gold); overflow: hidden; }
.faq-item summary {
    cursor: pointer; padding: 20px 60px 20px 25px; font-weight: 600; color: var(--cricket-green);
    font-size: 1.05rem; list-style: none; position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+'; position: absolute; right: 25px; top: 50%; transform: translateY(-50%);
    font-size: 1.6rem; color: var(--cricket-gold); transition: transform .3s;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-answer { padding: 0 25px 22px; color: var(--text-gray); line-height: 1.8; }

/* ---------------- CONTACT ---------------- */
.contact-container { max-width: 1400px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: start; }
.contact-info h2 { font-family: 'Playfair Display', serif; font-size: 3rem; color: var(--cricket-green); margin-bottom: 20px; font-weight: 800; }
.contact-info p { color: var(--text-gray); line-height: 1.8; margin-bottom: 35px; font-size: 1.05rem; }
.contact-details { display: flex; flex-direction: column; gap: 25px; }
.contact-item { display: flex; align-items: flex-start; gap: 20px; padding: 20px; background: rgba(26,77,46,0.05); border-radius: 10px; border-left: 4px solid var(--cricket-gold); }
.contact-item-icon { font-size: 2rem; flex-shrink: 0; }
.contact-item-text { color: var(--text-dark); font-weight: 500; line-height: 1.6; }
.contact-form-link { color: inherit; text-decoration: none; cursor: pointer; }
.contact-form-wrapper { background: var(--cricket-white); padding: 45px; border-radius: 15px; box-shadow: 0 15px 50px rgba(0,0,0,0.12); border-top: 5px solid var(--cricket-gold); }
.form-group { margin-bottom: 20px; }
.form-group input, .form-group textarea {
    width: 100%; padding: 14px 18px; border: 2px solid var(--border-subtle); border-radius: 8px;
    font-family: 'Montserrat', sans-serif; font-size: .95rem; transition: all .3s ease; background: var(--cricket-cream);
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--cricket-gold); background: var(--cricket-white); }
.form-group textarea { min-height: 140px; resize: vertical; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.captcha-group { display: flex; align-items: center; gap: 15px; margin-bottom: 25px; padding: 18px; background: rgba(26,77,46,0.05); border-radius: 10px; border: 2px solid var(--border-subtle); }
.captcha-question { font-weight: 600; color: var(--cricket-green); font-size: 1.1rem; }
.captcha-input { width: 80px; padding: 10px; border: 2px solid var(--border-subtle); border-radius: 6px; text-align: center; font-weight: 600; font-size: 1.1rem; }
.refresh-captcha { background: var(--cricket-gold); border: none; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; transition: all .3s ease; display: flex; align-items: center; justify-content: center; }
.refresh-captcha:hover { transform: rotate(180deg); background: var(--cricket-green); }
.refresh-captcha svg { width: 20px; height: 20px; fill: var(--cricket-white); }
.submit-btn {
    width: 100%; padding: 16px; background: linear-gradient(135deg, var(--cricket-green) 0%, var(--cricket-green-light) 100%);
    color: var(--cricket-white); border: none; border-radius: 8px; font-size: 1.05rem; font-weight: 700;
    cursor: pointer; transition: all .3s ease; text-transform: uppercase; letter-spacing: 1px; font-family: inherit;
}
.submit-btn:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(26,77,46,0.3); }
.submit-btn:disabled { opacity: .6; cursor: not-allowed; }
.required-note { text-align: center; color: var(--text-gray); font-size: .85rem; margin-top: 15px; }
.consent-note { text-align: center; color: var(--text-gray); font-size: .78rem; margin-top: 8px; }
.consent-note a { color: var(--cricket-green); text-decoration: underline; cursor: pointer; }
.success-message { display: none; text-align: center; padding: 50px; }
.success-message.active { display: block; }
.success-message h3 { font-family: 'Playfair Display', serif; font-size: 2.5rem; color: var(--cricket-green); margin-bottom: 15px; }
.success-message p { color: var(--text-gray); font-size: 1.1rem; line-height: 1.8; }

/* ---------------- MODALES TEXTE ---------------- */
.modal-overlay {
    display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.75); z-index: 10000;
    backdrop-filter: blur(5px); overflow-y: auto; padding: 20px;
}
.modal-overlay.active { display: flex; align-items: center; justify-content: center; }
.modal-content {
    background: var(--cricket-cream); border-radius: 15px; max-width: 900px; width: 100%;
    max-height: 90vh; overflow-y: auto; box-shadow: 0 20px 60px rgba(0,0,0,0.3); position: relative;
}
.modal-header {
    background: linear-gradient(135deg, var(--cricket-green) 0%, var(--cricket-green-light) 100%);
    padding: 30px 40px; border-radius: 15px 15px 0 0; display: flex; justify-content: space-between; align-items: center;
}
.modal-header h2 { font-family: 'Playfair Display', serif; font-size: 2rem; color: var(--cricket-white); margin: 0; }
.modal-close {
    background: none; border: none; font-size: 2rem; color: var(--cricket-white); cursor: pointer; line-height: 1;
    width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 50%; transition: all .3s ease;
}
.modal-close:hover { background: rgba(255,255,255,0.2); transform: rotate(90deg); }
.modal-body { padding: 40px; }
.modal-body h3 { font-family: 'Playfair Display', serif; font-size: 1.5rem; color: var(--cricket-green); margin: 30px 0 15px; }
.modal-body h3:first-child { margin-top: 0; }
.modal-body p { color: var(--text-gray); line-height: 1.8; margin-bottom: 15px; }
.modal-body ul { margin: 0 0 15px 20px; }
.modal-body li { color: var(--text-gray); line-height: 1.8; margin-bottom: 8px; }
.modal-footer-link { text-align: center; margin-top: 30px; padding-top: 20px; border-top: 2px solid var(--border-subtle); }
.modal-footer-link a { color: var(--cricket-green); text-decoration: none; font-weight: 600; cursor: pointer; transition: color .3s ease; }
.modal-footer-link a:hover { color: var(--cricket-gold); }

/* ---------------- MODALE IMAGE ---------------- */
.image-modal {
    display: none; position: fixed; z-index: 9999; inset: 0;
    background-color: rgba(0,0,0,0.95); backdrop-filter: blur(10px); animation: fadeIn .3s ease;
}
.image-modal.show { display: flex; align-items: center; justify-content: center; }
.image-modal-content { max-width: 90%; max-height: 90vh; object-fit: contain; border-radius: 10px; box-shadow: 0 0 50px rgba(212,175,55,0.3); animation: zoomIn .3s ease; }
.image-modal-close {
    position: absolute; top: 30px; right: 50px; color: #d4af37; font-size: 50px; font-weight: bold;
    cursor: pointer; transition: all .3s ease; z-index: 10000; width: 50px; height: 50px;
    display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.5);
    border: none; border-radius: 50%; line-height: 1;
}
.image-modal-close:hover { color: #fff; transform: rotate(90deg) scale(1.1); background: rgba(212,175,55,0.8); }

/* ---------------- FOOTER ---------------- */
footer { background: var(--cricket-green-dark); color: rgba(255,255,255,0.8); padding: 60px 5% 30px; }
.footer-content { max-width: 1400px; margin: 0 auto 40px; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 50px; }
.footer-brand h3 { font-family: 'Playfair Display', serif; font-size: 2rem; color: var(--cricket-gold); margin-bottom: 15px; }
.footer-brand h3 a { color: var(--cricket-gold); text-decoration: none; transition: opacity .3s ease; }
.footer-brand h3 a:hover { opacity: .8; }
.footer-brand p { line-height: 1.8; font-size: .95rem; }
.footer-section h4 { font-family: 'Playfair Display', serif; font-size: 1.3rem; color: var(--cricket-white); margin-bottom: 20px; font-weight: 700; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: rgba(255,255,255,0.7); text-decoration: none; transition: all .3s ease; font-size: .95rem; cursor: pointer; }
.footer-links a:hover { color: var(--cricket-gold); padding-left: 5px; }
.footer-bottom { text-align: center; padding-top: 30px; border-top: 1px solid rgba(255,255,255,0.1); }
.footer-bottom p { font-size: 14px; color: rgba(255,255,255,0.6); }
.footer-bottom a { color: inherit; text-decoration: none; }
.footer-bottom a:hover { color: var(--cricket-gold); }

/* ---------------- PAGES D'ERREUR ---------------- */
.error-page {
    min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center;
    padding: 40px 20px; color: #fff;
    background: linear-gradient(135deg, var(--cricket-green) 0%, var(--cricket-green-dark) 100%);
}
.error-wrap { max-width: 640px; }
.error-code { font-family: 'Playfair Display', serif; font-size: 8rem; font-weight: 900; color: var(--cricket-gold); line-height: 1; margin: 20px 0; }
.error-wrap h1 { font-family: 'Playfair Display', serif; font-size: 2.2rem; margin-bottom: 15px; }
.error-wrap p { opacity: .9; margin-bottom: 30px; }
.error-links { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 10px 20px; justify-content: center; }
.error-links a { color: var(--cricket-gold); text-decoration: none; }
.error-links a:hover { text-decoration: underline; }

/* ---------------- ANIMATIONS ---------------- */
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulseGlow { 0%, 100% { opacity: 1; } 50% { opacity: .7; } }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes zoomIn { from { transform: scale(.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 1024px) {
    .hero h1 { font-size: 3.5rem; }
    .section-title { font-size: 2.8rem; }
    .contact-container { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr 1fr; }
    .guides-grid { grid-template-columns: 1fr; }
    .timeline::before { left: 30px; }
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content { margin-left: 80px; margin-right: 0; width: calc(100% - 80px); }
    .timeline-marker { left: 30px; }
}

@media (max-width: 768px) {
    :root { --header-h: 115px; }
    header { padding: 50px 4%; }
    .logo-title { font-size: 1.5rem; }
    .hero { height: 650px; padding: 170px 4% 0 4%; }
    .hero h1 { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1.1rem; }
    .hero-cta { flex-direction: column; width: 100%; }
    .btn-primary, .btn-secondary { width: 100%; }
    section { padding: 60px 4%; }
    .section-title { font-size: 2.2rem; }
    .ad-banner { margin-bottom: 40px; }
    .footer-content { grid-template-columns: 1fr; }
    .legends-grid, .centuries-grid, .equipment-grid, .guides-grid { grid-template-columns: 1fr; }
    .guide-card { padding: 30px; }
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content { margin-left: 60px; width: calc(100% - 60px); }
    .timeline-year { position: absolute; right: auto; left: -50px; top: 5px; text-align: right; width: 40px; font-size: .75rem; }
    .image-modal-content { max-width: 95%; max-height: 80vh; }
    .image-modal-close { top: 15px; right: 15px; font-size: 35px; width: 40px; height: 40px; }
    .error-code { font-size: 5.5rem; }
}

@media (max-width: 550px) {
    .logo-section { left: 10px; }
    .logo-text { margin-left: -9px; }
}

@media (max-width: 480px) {
    .logo-img { width: 80px; height: 80px; }
    .logo-title { font-size: 1.2rem; }
    .hero h1 { font-size: 2rem; }
    .section-title { font-size: 1.8rem; }
    .contact-form-wrapper { padding: 30px 20px; }
    .modal-content { margin: 10px; }
    .modal-body { padding: 25px; }
    .legends-grid { grid-template-columns: 1fr; }
    .legend-info { padding: 25px; }
}