/* ======================================================
   UN ÉLAN DE PLUS POUR CORNEILLA 2026
   Direction artistique : bordeaux profond, élégant, institutionnel
   Version programme complet — UX premium
   ====================================================== */

/* --- SKIP TO CONTENT --- */
.skip-to-content {
    position: absolute;
    top: -100%;
    left: 16px;
    z-index: 10000;
    padding: 12px 24px;
    background: var(--bordeaux);
    color: var(--white);
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 0 0 8px 8px;
    text-decoration: none;
    transition: top 0.2s ease;
}
.skip-to-content:focus {
    top: 0;
}

/* --- RESET & BASE --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bordeaux: #5C1A2A;
    --bordeaux-deep: #3E0F1B;
    --bordeaux-light: #7A2D3F;
    --bordeaux-soft: #F5E6EA;
    --white: #FFFFFF;
    --gray-50: #FAFAFA;
    --gray-100: #F5F5F5;
    --gray-200: #E8E8E8;
    --gray-300: #D1D1D1;
    --gray-400: #9E9E9E;
    --gray-500: #6E6E6E;
    --gray-600: #4A4A4A;
    --gray-700: #333333;
    --gray-800: #1A1A1A;
    --accent-blue: #4A9FD9;
    --accent-green: #6B8E5A;
    --accent-yellow: #D4A843;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --section-padding: 100px 0;
    --container-max: 1200px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

html, body { scroll-behavior: smooth; overflow-x: hidden; max-width: 100%; }
html { font-size: 16px; }
body { font-family: var(--font); color: var(--gray-700); background: var(--white); line-height: 1.7; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; position: relative; width: 100%; word-wrap: break-word; overflow-wrap: break-word; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 24px; width: 100%; box-sizing: border-box; }

/* --- NAVBAR --- */
.navbar { position: fixed; top: 0; left: 0; right: 0; width: 100%; z-index: 1000; background: transparent; transition: var(--transition); padding: 16px 0; }
.navbar.scrolled { background: rgba(255, 255, 255, 0.97); backdrop-filter: blur(12px); box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08); padding: 10px 0; }
.nav-container { max-width: var(--container-max); margin: 0 auto; padding: 0 24px; display: flex; justify-content: space-between; align-items: center; }
.nav-logo { display: flex; align-items: center; gap: 12px; }
.nav-logo-img { height: 36px; width: auto; border-radius: 4px; }
.nav-logo-text { font-size: 0.95rem; color: var(--white); font-weight: 400; letter-spacing: 0.02em; transition: var(--transition); }
.nav-logo-text strong { font-weight: 700; }
.navbar.scrolled .nav-logo-text { color: var(--bordeaux); }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links li a { font-size: 0.88rem; font-weight: 500; color: rgba(255, 255, 255, 0.85); letter-spacing: 0.02em; position: relative; padding: 4px 0; }
.nav-links li a::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 2px; background: var(--white); transition: var(--transition); }
.nav-links li a:hover::after { width: 100%; }
.navbar.scrolled .nav-links li a { color: var(--gray-600); }
.navbar.scrolled .nav-links li a::after { background: var(--bordeaux); }
.navbar.scrolled .nav-links li a:hover { color: var(--bordeaux); }
.nav-cta { background: rgba(255, 255, 255, 0.15); border: 1px solid rgba(255, 255, 255, 0.3); padding: 8px 20px !important; border-radius: 6px; font-weight: 600 !important; }
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: rgba(255, 255, 255, 0.25) !important; }
.navbar.scrolled .nav-cta { background: var(--bordeaux) !important; border-color: var(--bordeaux) !important; color: var(--white) !important; }
.navbar.scrolled .nav-cta:hover { background: var(--bordeaux-deep) !important; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 10px; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
.nav-toggle span { width: 24px; height: 2px; background: var(--white); transition: var(--transition); border-radius: 2px; }
.navbar.scrolled .nav-toggle span { background: var(--bordeaux); }

/* --- HERO PREMIUM --- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hero-bg-image { position: absolute; top: -5%; left: -5%; right: -5%; bottom: -5%; background: url('images/mairie-hero.jpg') center center / cover no-repeat; animation: heroZoom 20s ease-in-out infinite alternate; }
@keyframes heroZoom { 0% { transform: scale(1); } 100% { transform: scale(1.04); } }
.hero-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(165deg, rgba(62, 15, 27, 0.93) 0%, rgba(92, 26, 42, 0.85) 35%, rgba(122, 45, 63, 0.72) 70%, rgba(122, 45, 63, 0.60) 100%); z-index: 1; }
.hero-grain { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E"); z-index: 2; pointer-events: none; }
.hero-vignette { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: radial-gradient(ellipse at center, transparent 40%, rgba(30, 5, 12, 0.5) 100%); z-index: 2; pointer-events: none; }
.hero-particles { position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.particle { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, 0.08); animation: particleFloat linear infinite; }
.particle-1 { width: 6px; height: 6px; top: 20%; left: 10%; animation-duration: 12s; }
.particle-2 { width: 4px; height: 4px; top: 60%; left: 80%; animation-duration: 16s; animation-delay: -3s; }
.particle-3 { width: 8px; height: 8px; top: 40%; left: 30%; animation-duration: 14s; animation-delay: -6s; }
.particle-4 { width: 3px; height: 3px; top: 75%; left: 60%; animation-duration: 18s; animation-delay: -2s; }
.particle-5 { width: 5px; height: 5px; top: 15%; left: 70%; animation-duration: 15s; animation-delay: -8s; }
@keyframes particleFloat { 0% { transform: translateY(0) translateX(0) scale(1); opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { transform: translateY(-120px) translateX(40px) scale(0.5); opacity: 0; } }
.hero-deco-line { position: absolute; z-index: 3; pointer-events: none; }
.hero-deco-line-left { top: 15%; left: 5%; width: 1px; height: 120px; background: linear-gradient(to bottom, transparent, var(--accent-yellow), transparent); opacity: 0.3; }
.hero-deco-line-right { bottom: 15%; right: 5%; width: 1px; height: 120px; background: linear-gradient(to bottom, transparent, var(--accent-yellow), transparent); opacity: 0.3; }
.hero-logo-mark { margin-bottom: 24px; }
.hero-logo-img { width: 72px; height: 72px; border-radius: 16px; margin: 0 auto; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3); border: 2px solid rgba(255, 255, 255, 0.15); }

/* Portrait René — BIEN VISIBLE, protagoniste */
.hero-portrait {
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: 3;
    pointer-events: none;
    width: 46%;
    max-width: 580px;
    height: 98%;
    overflow: hidden;
    opacity: 0.95;
    -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,1) 0%, rgba(0,0,0,0.9) 25%, rgba(0,0,0,0.5) 60%, transparent 90%);
    mask-image: linear-gradient(to left, rgba(0,0,0,1) 0%, rgba(0,0,0,0.9) 25%, rgba(0,0,0,0.5) 60%, transparent 90%);
}
.hero-portrait-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 30% 10%;
    filter: grayscale(20%) contrast(1.1) brightness(1.1);
}

.hero-content { position: relative; z-index: 5; text-align: center; max-width: 840px; padding: 0 24px; width: 100%; box-sizing: border-box; }
.hero-badge { display: inline-block; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.15); color: rgba(255, 255, 255, 0.9); font-size: 0.78rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; padding: 8px 28px; border-radius: 50px; margin-bottom: 28px; backdrop-filter: blur(8px); }
.hero-title { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 800; color: var(--white); line-height: 1.12; margin-bottom: 20px; letter-spacing: -0.02em; text-shadow: 0 2px 30px rgba(0, 0, 0, 0.4), 0 1px 3px rgba(0, 0, 0, 0.3); }
.hero-title-accent { color: rgba(255, 255, 255, 0.75); font-weight: 600; }
.hero-subtitle { font-size: clamp(1rem, 2vw, 1.15rem); color: rgba(255, 255, 255, 0.75); font-weight: 400; margin-bottom: 36px; line-height: 1.6; }
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 48px; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 14px 32px; font-family: var(--font); font-size: 0.95rem; font-weight: 600; border-radius: 8px; cursor: pointer; transition: var(--transition); border: 2px solid transparent; letter-spacing: 0.01em; }
.btn-primary { background: var(--bordeaux); color: var(--white); border-color: var(--bordeaux); }
.btn-primary:hover { background: var(--bordeaux-deep); border-color: var(--bordeaux-deep); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(92, 26, 42, 0.3); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.4); }
.btn-outline:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.7); transform: translateY(-2px); }
.btn-full { width: 100%; }
.btn-hero-primary { background: var(--white); color: var(--bordeaux-deep); border-color: var(--white); font-weight: 700; }
.btn-hero-primary:hover { background: rgba(255, 255, 255, 0.9); border-color: rgba(255, 255, 255, 0.9); transform: translateY(-2px); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25); }
.btn-hero-outline { border-color: rgba(255, 255, 255, 0.3); backdrop-filter: blur(4px); }
.btn-hero-outline:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.5); }

.hero-stats { display: flex; align-items: center; justify-content: center; gap: 32px; padding: 24px 40px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 16px; backdrop-filter: blur(12px); }
.hero-stat { text-align: center; }
.hero-stat-value { display: block; font-size: 1.6rem; font-weight: 800; color: var(--white); line-height: 1; margin-bottom: 4px; }
.hero-stat-label { font-size: 0.72rem; font-weight: 500; color: rgba(255, 255, 255, 0.7); letter-spacing: 0.05em; text-transform: uppercase; }
.hero-stat-divider { width: 1px; height: 36px; background: rgba(255, 255, 255, 0.15); }
.hero-scroll-indicator { position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; color: rgba(255, 255, 255, 0.35); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; z-index: 5; }
.scroll-arrow { width: 1px; height: 40px; background: linear-gradient(to bottom, rgba(255,255,255,0.35), transparent); animation: scrollPulse 2.5s ease-in-out infinite; }
@keyframes scrollPulse { 0%, 100% { opacity: 0.3; transform: scaleY(1); } 50% { opacity: 0.8; transform: scaleY(1.3); } }

/* --- SECTIONS --- */
.section { padding: var(--section-padding); }
.section-white { background: var(--white); }
.section-gray { background: var(--gray-100); }
.section-dark { background: var(--gray-800); }
.section-bordeaux { background: linear-gradient(165deg, var(--bordeaux-deep) 0%, var(--bordeaux) 60%, var(--bordeaux-light) 100%); }
.section-header { text-align: center; max-width: 700px; margin: 0 auto 64px; }
.section-tag { display: inline-block; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: var(--bordeaux); margin-bottom: 16px; position: relative; padding-bottom: 16px; }
.section-tag::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 40px; height: 2px; background: var(--bordeaux); }
.section-tag-light { color: rgba(255, 255, 255, 0.7); }
.section-tag-light::after { background: rgba(255, 255, 255, 0.4); }
.section-title { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; color: var(--gray-800); line-height: 1.2; margin-bottom: 20px; letter-spacing: -0.02em; }
.section-title-light { color: var(--white); }
.section-intro { font-size: 1.05rem; color: var(--gray-500); line-height: 1.7; }
.section-intro-light { color: rgba(255, 255, 255, 0.65); }

/* --- BILAN CARDS --- */
.bilan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.bilan-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: 14px; padding: 32px 28px; transition: var(--transition); border-left: 4px solid var(--bordeaux); }
.bilan-card:hover { border-color: var(--bordeaux-soft); box-shadow: 0 6px 24px rgba(92, 26, 42, 0.08); transform: translateY(-3px); }
.bilan-card-icon { width: 44px; height: 44px; background: var(--bordeaux-soft); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--bordeaux); margin-bottom: 16px; }
.bilan-card-icon svg { width: 22px; height: 22px; }
.bilan-card-title { font-size: 1.1rem; font-weight: 700; color: var(--bordeaux); margin-bottom: 14px; }
.bilan-card-list { display: grid; gap: 8px; }
.bilan-card-list li { position: relative; padding-left: 20px; font-size: 0.88rem; color: var(--gray-600); line-height: 1.5; }
.bilan-card-list li::before { content: ''; position: absolute; left: 0; top: 7px; width: 6px; height: 6px; background: var(--bordeaux); border-radius: 50%; opacity: 0.5; }

/* --- CHIFFRES CLES --- */
.chiffres-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.chiffre-card { background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 16px; padding: 32px; text-align: center; transition: var(--transition); }
.chiffre-card:hover { background: rgba(255, 255, 255, 0.1); transform: translateY(-4px); }
.chiffre-label { font-size: 0.85rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: rgba(255, 255, 255, 0.6); margin-bottom: 24px; }
.chiffre-compare { display: flex; align-items: center; justify-content: center; gap: 20px; margin-bottom: 16px; }
.chiffre-year-label { display: block; font-size: 0.75rem; color: rgba(255, 255, 255, 0.4); font-weight: 500; margin-bottom: 4px; }
.chiffre-value { display: block; font-weight: 700; }
.chiffre-old { font-size: 1rem; color: rgba(255, 255, 255, 0.5); }
.chiffre-new { font-size: 1.3rem; color: var(--white); }
.chiffre-arrow { color: rgba(255, 255, 255, 0.3); }
.chiffre-arrow svg { width: 24px; height: 24px; }
.chiffre-badge { display: inline-block; background: rgba(107, 142, 90, 0.25); color: #8FBF7A; font-size: 0.85rem; font-weight: 700; padding: 4px 16px; border-radius: 50px; }
.chiffre-badge-down { background: rgba(74, 159, 217, 0.2); color: #7FC4F0; }

/* --- METROPOLE --- */
.metropole-why { margin-bottom: 48px; }
.metropole-why h3 { font-size: 1.3rem; font-weight: 700; color: var(--gray-800); margin-bottom: 24px; text-align: center; }
.metropole-why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.metropole-reason { display: flex; align-items: flex-start; gap: 14px; padding: 20px; background: var(--gray-50); border-radius: 10px; }
.metropole-reason-icon { flex-shrink: 0; color: var(--accent-green); }
.metropole-reason-icon svg { width: 24px; height: 24px; }
.metropole-reason p { font-size: 0.95rem; color: var(--gray-600); line-height: 1.5; }
.comparatif-table h3 { font-size: 1.3rem; font-weight: 700; color: var(--gray-800); margin-bottom: 24px; text-align: center; }
.table-wrapper { overflow-x: auto; border-radius: 12px; border: 1px solid var(--gray-200); }
table { width: 100%; border-collapse: collapse; }
thead { background: var(--bordeaux); }
th { padding: 16px 20px; font-size: 0.85rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--white); text-align: left; }
td { padding: 14px 20px; font-size: 0.92rem; color: var(--gray-600); border-bottom: 1px solid var(--gray-200); }
tr:last-child td { border-bottom: none; }
tr:nth-child(even) { background: var(--gray-50); }
.col-old { text-align: center; }
.col-new { text-align: center; }
.highlight-green { color: var(--accent-green); font-weight: 700; }

/* --- EQUIPE --- */
.team-group-photo { margin-bottom: 48px; border-radius: 16px; overflow: hidden; box-shadow: 0 4px 24px rgba(0,0,0,0.08); }
.team-group-photo img { width: 100%; height: auto; display: block; }
.team-leader { display: flex; align-items: center; gap: 40px; background: var(--white); border-radius: 16px; padding: 48px; margin-bottom: 48px; border: 1px solid var(--gray-200); box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04); }
.team-leader-photo { flex-shrink: 0; }
.team-photo-placeholder { width: 140px; height: 140px; border-radius: 50%; background: linear-gradient(135deg, var(--bordeaux), var(--bordeaux-light)); display: flex; align-items: center; justify-content: center; color: var(--white); font-size: 1.6rem; font-weight: 700; letter-spacing: 0.05em; }
.team-photo { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; object-position: center top; border: 3px solid var(--bordeaux-soft); }
.team-leader-photo .team-photo { width: 140px; height: 140px; }
.team-card .team-photo { width: 80px; height: 80px; margin: 0 auto 16px; border-width: 2px; }
.team-leader-role { display: inline-block; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: var(--bordeaux); margin-bottom: 8px; }
.team-leader-name { font-size: 2rem; font-weight: 800; color: var(--gray-800); margin-bottom: 4px; }
.team-leader-details { font-size: 0.95rem; color: var(--gray-500); margin-bottom: 16px; }
.team-leader-bio { font-size: 1rem; color: var(--gray-600); line-height: 1.7; }
.team-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.team-card { background: var(--white); border-radius: 12px; padding: 24px 16px; text-align: center; border: 1px solid var(--gray-200); transition: var(--transition); }
.team-card:hover { transform: translateY(-4px); box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06); border-color: var(--bordeaux-soft); }
.team-card .team-photo-placeholder { width: 80px; height: 80px; margin: 0 auto 16px; font-size: 1rem; }
.team-card h4 { font-size: 0.9rem; font-weight: 700; color: var(--gray-800); margin-bottom: 4px; }
.team-job { font-size: 0.78rem; color: var(--gray-500); line-height: 1.4; margin-bottom: 4px; }
.team-age { font-size: 0.75rem; color: var(--gray-400); font-weight: 500; }

/* --- CONTACT --- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: flex-start; }
.reunions-block h3, .contact-form-block h3 { font-size: 1.3rem; font-weight: 700; color: var(--gray-800); margin-bottom: 8px; }
.reunions-lieu { font-size: 0.9rem; color: var(--gray-500); margin-bottom: 24px; }
.reunion-card { display: flex; align-items: center; gap: 20px; padding: 20px; background: var(--gray-50); border-radius: 12px; margin-bottom: 12px; border-left: 4px solid var(--bordeaux); }
.reunion-date { flex-shrink: 0; text-align: center; background: var(--bordeaux); color: var(--white); border-radius: 10px; padding: 12px 16px; min-width: 64px; }
.reunion-day { display: block; font-size: 1.5rem; font-weight: 800; line-height: 1; }
.reunion-month { display: block; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.1em; margin-top: 2px; }
.reunion-info strong { font-size: 0.95rem; color: var(--gray-800); }
.reunion-info p { font-size: 0.88rem; color: var(--gray-500); margin-top: 2px; }
/* Reunion status badges */
.reunion-status {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 20px;
    margin-top: 6px;
}
.reunion-status-past {
    background: var(--gray-100);
    color: var(--gray-400);
}
.reunion-status-tonight {
    background: rgba(92, 26, 42, 0.1);
    color: var(--bordeaux);
    animation: tonightPulse 2s ease-in-out infinite;
}
@keyframes tonightPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}
/* Past reunion card */
.reunion-past {
    opacity: 0.55;
    border-left-color: var(--gray-300);
}
.reunion-past .reunion-date {
    background: var(--gray-400);
}
/* Tonight reunion card — highlighted */
.reunion-tonight {
    border-left-color: var(--accent-yellow);
    background: linear-gradient(135deg, rgba(212, 168, 67, 0.06), var(--gray-50));
    box-shadow: 0 2px 12px rgba(212, 168, 67, 0.12);
}
/* Upcoming reunion card */
.reunion-upcoming {
    border-left-style: dashed;
    border-left-color: var(--gray-300);
}
.reunion-upcoming .reunion-date {
    background: var(--gray-500);
}
.reunions-cta { font-size: 0.9rem; color: var(--gray-500); font-style: italic; margin-top: 20px; line-height: 1.6; }
.contact-form { margin-bottom: 36px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--gray-700); margin-bottom: 6px; }
.form-group input, .form-group textarea { width: 100%; padding: 12px 16px; border: 1px solid var(--gray-200); border-radius: 8px; font-family: var(--font); font-size: 0.95rem; color: var(--gray-700); transition: var(--transition); background: var(--white); }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--bordeaux); box-shadow: 0 0 0 3px var(--bordeaux-soft); }
.form-group textarea { resize: vertical; min-height: 100px; }
/* --- TOAST NOTIFICATION --- */
.toast {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%) translateY(24px);
    background: var(--gray-800);
    color: var(--white);
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 0.92rem;
    font-weight: 600;
    font-family: var(--font);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.4s;
    z-index: 9999;
    pointer-events: none;
    max-width: 90vw;
}
.toast.toast-success { background: #1a7a3a; }
.toast.toast-info { background: var(--bordeaux); }
.toast.visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}
.toast-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.toast-icon svg { width: 20px; height: 20px; flex-shrink: 0; }

/* --- CITATION BANDEAU --- */
.quote-banner {
    background: linear-gradient(135deg, var(--bordeaux-deep) 0%, var(--bordeaux) 100%);
    padding: 72px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-top: 3px solid rgba(212, 168, 67, 0.3);
    border-bottom: 3px solid rgba(212, 168, 67, 0.3);
}

.quote-banner::before {
    content: '\201C';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 14rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.04);
    line-height: 1;
    pointer-events: none;
    font-family: Georgia, serif;
}

.quote-text {
    font-size: clamp(1.1rem, 2.5vw, 1.45rem);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.8;
    max-width: 780px;
    margin: 0 auto 20px;
    font-style: italic;
    letter-spacing: 0.01em;
}

.quote-author {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--accent-yellow);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-style: normal;
    opacity: 0.85;
}

/* --- CTA BANNER --- */
.cta-banner {
    background: linear-gradient(135deg, var(--accent-yellow) 0%, #c4922e 100%);
    padding: 64px 0;
    text-align: center;
    position: relative;
}

.cta-banner-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-banner-title {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--bordeaux-deep);
    line-height: 1.3;
    margin-bottom: 16px;
}

.cta-banner-text {
    font-size: 1.05rem;
    color: rgba(62, 15, 27, 0.8);
    margin-bottom: 28px;
    line-height: 1.6;
}

.btn-cta-banner {
    background: var(--bordeaux-deep);
    color: var(--white);
    border-color: var(--bordeaux-deep);
    font-size: 1.05rem;
    padding: 16px 40px;
    box-shadow: 0 4px 20px rgba(62, 15, 27, 0.3);
}

.btn-cta-banner:hover {
    background: var(--bordeaux);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(62, 15, 27, 0.4);
}

/* --- SECTION DIVIDERS (between bilan and chiffres etc.) --- */
.section-white + .section-dark::before,
.section-dark + .section-white::before,
.section-gray + .section-bordeaux::before {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--bordeaux);
    margin: 0 auto;
    opacity: 0.3;
}

/* --- FOOTER --- */
.footer { background: var(--gray-800); padding: 64px 0 32px; color: rgba(255, 255, 255, 0.6); }
.footer-content { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-logo-text { font-size: 1.1rem; color: var(--white); margin-bottom: 12px; }
.footer-slogan { font-size: 0.9rem; line-height: 1.6; color: rgba(255, 255, 255, 0.6); }
.footer-links h4, .footer-social h4 { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255, 255, 255, 0.5); margin-bottom: 16px; }
.footer-links a { display: block; font-size: 0.9rem; color: rgba(255, 255, 255, 0.6); padding: 4px 0; }
.footer-links a:hover { color: var(--white); }
.social-links { display: flex; gap: 12px; }
.social-link { width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, 0.1); display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.social-link:hover { background: var(--bordeaux); }
.social-link svg { width: 20px; height: 20px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 24px; text-align: center; }
.footer-bottom p { font-size: 0.8rem; color: rgba(255, 255, 255, 0.5); margin-bottom: 4px; }
.footer-credit { margin-top: 8px; text-align: center; }
.footer-credit-center { text-align: center; padding: 32px 0 8px; }
.madra-link { color: rgba(255, 255, 255, 0.25); text-decoration: none; font-size: 0.68rem; letter-spacing: 0.02em; transition: all 0.3s ease; display: inline-flex; align-items: center; gap: 5px; justify-content: center; }
.madra-link:hover { color: rgba(255, 255, 255, 0.5); }
.madra-link:hover .madra-logo { opacity: 0.65; }
.madra-link span { opacity: 0.8; }
.madra-logo { height: 15px; width: auto; opacity: 0.4; transition: opacity 0.3s ease; }

/* --- ANIMATIONS --- */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1); }
.fade-in.visible { opacity: 1; transform: translateY(0); }

.stagger-in { opacity: 0; transform: translateY(32px) scale(0.98); transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1); }
.stagger-in.visible { opacity: 1; transform: translateY(0) scale(1); }

/* ======================================================
   SCROLL PROGRESS BAR
   ====================================================== */
.scroll-progress { position: fixed; top: 0; left: 0; width: 100%; height: 3px; z-index: 9999; background: rgba(0,0,0,0.06); }
.scroll-progress-bar { height: 100%; width: 0%; background: linear-gradient(90deg, var(--bordeaux), var(--accent-yellow)); transition: width 0.1s linear; }

/* ======================================================
   PROGRAMME PAGE — HERO
   ====================================================== */
.prog-hero {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bordeaux-deep);
    overflow: hidden;
    padding: 130px 24px 80px;
}
.prog-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('images/programme/DentCreuse-Aerien.jpg') center 30%/cover no-repeat;
    opacity: 0.22;
    transition: transform 0.3s ease;
}
.prog-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(62,15,27,0.4) 0%, rgba(62,15,27,0.88) 65%, rgba(62,15,27,1) 100%);
}
.prog-hero-grain {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
}
.prog-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 720px;
}
.prog-hero-badge {
    display: inline-block;
    padding: 6px 20px;
    border-radius: 40px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.7);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 24px;
}
.prog-hero-subtitle {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.7;
    max-width: 560px;
    margin: 0 auto 16px;
}
.prog-hero-title {
    font-size: clamp(2.2rem, 4.5vw, 3.2rem);
    font-weight: 900;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}
.prog-hero-title-accent {
    color: var(--accent-yellow);
}
.prog-hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}
.prog-stat {
    text-align: center;
}
.prog-stat-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--accent-yellow);
    line-height: 1;
    margin-bottom: 4px;
}
.prog-stat-label {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.6);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ======================================================
   PROGRAMME PAGE — LAYOUT (SIDEBAR + MAIN)
   ====================================================== */
.prog-content {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 48px;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 48px 24px 80px;
    width: 100%;
    box-sizing: border-box;
}

/* --- SIDEBAR --- */
.prog-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
    background: var(--gray-50);
    border-radius: 16px;
    padding: 24px 16px;
    border: 1px solid var(--gray-200);
}
.prog-sidebar-title {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--gray-400);
    padding: 0 16px 12px;
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: 12px;
}
.prog-nav {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.prog-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 12px;
    text-decoration: none;
    color: var(--gray-500);
    font-size: 0.88rem;
    font-weight: 500;
    transition: var(--transition);
    border-left: 3px solid transparent;
}
.prog-nav-link:hover {
    color: var(--bordeaux);
    background: var(--bordeaux-soft);
}
.prog-nav-link.active {
    color: var(--bordeaux);
    background: var(--bordeaux-soft);
    border-left-color: var(--bordeaux);
    font-weight: 700;
}
.prog-nav-num {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--gray-300);
    min-width: 22px;
}
.prog-nav-link.active .prog-nav-num {
    color: var(--bordeaux);
}

/* --- MAIN CONTENT --- */
.prog-main {
    min-width: 0;
}

/* ======================================================
   PROGRAMME PAGE — AXE SECTIONS
   ====================================================== */
.prog-axe {
    margin-bottom: 64px;
    scroll-margin-top: 90px;
}
.prog-axe-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 12px;
    padding-bottom: 24px;
    border-bottom: 2px solid var(--bordeaux-soft);
    position: relative;
}
.prog-axe-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 80px;
    height: 2px;
    background: var(--bordeaux);
}
.prog-axe-number {
    font-size: 4.5rem;
    font-weight: 900;
    line-height: 0.85;
    background: linear-gradient(135deg, var(--bordeaux), var(--accent-yellow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.18;
    flex-shrink: 0;
}
.prog-axe-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: var(--bordeaux-soft);
    color: var(--bordeaux);
}
.prog-axe-icon svg { width: 26px; height: 26px; }
.prog-axe-meta { flex: 1; }
.prog-axe-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--gray-800);
    line-height: 1.25;
    margin-bottom: 4px;
}
.prog-axe-referent {
    font-size: 0.85rem;
    color: var(--gray-400);
    font-weight: 500;
}
.prog-axe-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 14px;
    border-radius: 20px;
    background: var(--bordeaux-soft);
    color: var(--bordeaux);
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 16px;
}
.prog-axe-intro {
    font-size: 1rem;
    color: var(--gray-600);
    line-height: 1.75;
    margin-bottom: 32px;
    max-width: 700px;
}
.prog-axe-intro .axe-highlight {
    color: var(--bordeaux);
    font-weight: 600;
    margin-top: 12px;
}

/* --- SUB-SECTION CARDS --- */
.prog-subsections {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.prog-sub-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-left: 4px solid var(--bordeaux);
    border-radius: 14px;
    padding: 28px;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
}
.prog-sub-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(92,26,42,0.02) 0%, transparent 60%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.prog-sub-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(92, 26, 42, 0.1);
    border-left-color: var(--accent-yellow);
}
.prog-sub-card:hover::after {
    opacity: 1;
}
.prog-sub-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}
.prog-sub-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gray-800);
}
.prog-sub-badge {
    padding: 3px 10px;
    border-radius: 16px;
    background: var(--gray-100);
    color: var(--gray-500);
    font-size: 0.72rem;
    font-weight: 600;
    white-space: nowrap;
}
.prog-measures {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.prog-measures li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.92rem;
    color: var(--gray-600);
    line-height: 1.6;
}
.measure-bullet {
    flex-shrink: 0;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bordeaux), var(--accent-yellow));
    margin-top: 8px;
    box-shadow: 0 0 0 2px rgba(92, 26, 42, 0.08);
}

/* --- SIDEBAR PROGRESS --- */
.prog-sidebar-progress {
    margin-top: 16px;
    padding: 12px 16px 0;
    border-top: 1px solid var(--gray-200);
}
.prog-sidebar-progress-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
}
.prog-sidebar-progress-bar {
    height: 4px;
    background: var(--gray-200);
    border-radius: 4px;
    overflow: hidden;
}
.prog-sidebar-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--bordeaux), var(--accent-yellow));
    border-radius: 4px;
    transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.prog-measures .ref-person {
    color: var(--gray-500);
    font-size: 0.82rem;
}

/* --- PROGRAMME SUB-CARD IMAGE --- */
.prog-sub-image {
    width: 100%;
    height: 200px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 16px;
}
.prog-sub-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    filter: brightness(0.95) saturate(1.05);
}
.prog-sub-card:hover .prog-sub-image img {
    transform: scale(1.05);
    filter: brightness(1) saturate(1.1);
}

/* Sub-cards: clean vertical stack — image on top, content below */

/* --- PROGRAMME AXE DIVIDER --- */
.prog-axe-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 56px 0 12px;
}
.prog-axe-divider::before,
.prog-axe-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gray-200), transparent);
}
.prog-axe-divider-icon {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bordeaux-soft), var(--bordeaux));
    opacity: 0.4;
    box-shadow: 0 0 8px rgba(92, 26, 42, 0.15);
}

/* --- BACK TO TOP BUTTON --- */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bordeaux);
    color: var(--white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(92, 26, 42, 0.25);
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease;
    z-index: 100;
    pointer-events: none;
}
.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.back-to-top:hover {
    background: var(--bordeaux-light);
    transform: translateY(-2px);
}
.back-to-top svg { width: 20px; height: 20px; flex-shrink: 0; display: block; }

/* --- PROGRAMME MEASURE COUNT TAG --- */
.prog-measure-count {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    background: var(--bordeaux-soft);
    color: var(--bordeaux);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}
.prog-measure-count svg { width: 14px; height: 14px; }

/* --- PROGRAMME CTA FINAL --- */
.prog-cta {
    text-align: center;
    padding: 80px 24px;
    background: linear-gradient(165deg, var(--bordeaux-deep) 0%, var(--bordeaux) 60%, var(--bordeaux-light) 100%);
    position: relative;
    overflow: hidden;
}
.prog-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
}
.prog-cta-title {
    position: relative;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 12px;
}
.prog-cta-text {
    position: relative;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 32px;
    font-size: 1.05rem;
}
.prog-cta-buttons {
    position: relative;
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}
.prog-cta .btn-primary {
    background: var(--white);
    color: var(--bordeaux-deep);
    border-color: var(--white);
    font-weight: 700;
}
.prog-cta .btn-primary:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}
.prog-cta .btn-outline {
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--white);
}
.prog-cta .btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
}

/* ======================================================
   INDEX — PROGRAMME TEASER (4 CARDS)
   ====================================================== */
.programme-teaser-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}
.teaser-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 32px 28px;
    text-decoration: none;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), background 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}
.teaser-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
}
.teaser-card-num {
    font-size: 2.5rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.1);
    line-height: 1;
    margin-bottom: 12px;
}
.teaser-card-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 16px;
}
.teaser-card-icon svg { width: 22px; height: 22px; }
.teaser-card:hover .teaser-card-icon { background: rgba(255, 255, 255, 0.15); color: rgba(255, 255, 255, 0.8); }
.teaser-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
    line-height: 1.3;
}
.teaser-card-desc {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.6;
    flex: 1;
    margin-bottom: 16px;
}
.teaser-card-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-yellow);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.teaser-card:hover .teaser-card-link { gap: 10px; }
.programme-teaser-cta {
    text-align: center;
}
.programme-teaser-cta .btn {
    font-size: 1rem;
}

/* --- PROGRAMME PAGE IMAGE --- */
.prog-axe-image {
    width: 100%;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 24px;
}
.prog-axe-image img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
    border-radius: 14px;
    transition: transform 6s cubic-bezier(0.22, 1, 0.36, 1);
}
.prog-axe-image:hover img {
    transform: scale(1.03);
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .team-grid { grid-template-columns: repeat(4, 1fr); }
    .bilan-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-content { grid-template-columns: 1fr 1fr; }
    .prog-content { grid-template-columns: 1fr; gap: 0; overflow-x: hidden; }
    .prog-sidebar {
        position: sticky;
        top: 64px;
        z-index: 50;
        background: var(--white);
        padding: 12px 24px;
        border-bottom: 1px solid var(--gray-200);
        margin: 0 -24px;
        width: calc(100% + 48px);
    }
    .prog-nav {
        flex-direction: row;
        overflow-x: auto;
        gap: 8px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .prog-nav::-webkit-scrollbar { display: none; }
    .prog-nav-link {
        white-space: nowrap;
        padding: 10px 16px;
        border-left: none;
        border-bottom: 2px solid transparent;
        border-radius: 8px;
        font-size: 0.82rem;
    }
    .prog-nav-link.active { border-left: none; border-bottom-color: var(--bordeaux); }
    .prog-main { padding-top: 24px; }
}

@media (max-width: 768px) {
    :root { --section-padding: 64px 0; }
    .nav-logo { display: none; }
    .nav-toggle { display: flex; }
    .nav-links { position: fixed; top: 0; right: 0; width: 280px; height: 100vh; background: var(--white); flex-direction: column; padding: 80px 32px 32px; gap: 0; box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15); transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1); transform: translateX(100%); }
    .nav-links.open { transform: translateX(0); }
    .nav-links li a { color: var(--gray-700) !important; font-size: 1rem; padding: 12px 0; display: block; border-bottom: 1px solid var(--gray-100); }
    .nav-links li a::after { display: none; }
    .nav-cta { background: var(--bordeaux) !important; color: var(--white) !important; border-color: var(--bordeaux) !important; text-align: center; margin-top: 16px; border-radius: 8px; }
    .hero { min-height: 100svh; }
    .hero-content { padding: 0 16px; }
    .hero-title { font-size: 1.8rem; }
    .hero-subtitle { font-size: 0.92rem; margin-bottom: 28px; }
    .hero-badge { font-size: 0.7rem; padding: 6px 20px; margin-bottom: 20px; }
    .hero-stats { flex-direction: column; gap: 12px; padding: 16px 20px; }
    .hero-stat-value { font-size: 1.4rem; }
    .hero-stat-divider { width: 50px; height: 1px; }
    .hero-logo-img { width: 48px; height: 48px; }
    .hero-logo-mark { margin-bottom: 16px; }
    .hero-deco-line { display: none; }
    .hero-portrait { display: none; }
    .hero-buttons { margin-bottom: 32px; }
    .hero-scroll-indicator { bottom: 16px; }
    .chiffres-grid { grid-template-columns: 1fr; }
    .chiffre-compare { gap: 8px; flex-wrap: wrap; justify-content: center; }
    .chiffre-value { font-size: 0.9rem; }
    .chiffre-new { font-size: 1.1rem; }
    .chiffre-card { padding: 24px 16px; }
    .metropole-why-grid { grid-template-columns: 1fr; }
    .team-leader { flex-direction: column; text-align: center; padding: 32px 24px; }
    .team-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .bilan-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-content { grid-template-columns: 1fr; gap: 32px; }
    .table-wrapper { font-size: 0.8rem; -webkit-overflow-scrolling: touch; }
    td, th { padding: 8px 10px; }
    th { font-size: 0.72rem; }
    .comparatif-table { margin: 0 -24px; padding: 0 24px; overflow: hidden; }
    .table-wrapper { border-radius: 8px; }
    .programme-teaser-grid { grid-template-columns: 1fr; }
    .prog-hero { min-height: 320px; padding: 80px 20px 48px; }
    .prog-hero-stats { gap: 24px; }
    .prog-stat-value { font-size: 2rem; }
    .prog-axe-header { flex-wrap: wrap; }
    .prog-axe-number { font-size: 3rem; }
    .prog-sub-card { padding: 20px; }
    .prog-sub-card-header { flex-direction: column; align-items: flex-start; gap: 8px; }
    .prog-sub-image { height: 160px; }
    .prog-sidebar-progress { display: none; }
    .back-to-top { bottom: 20px; right: 20px; width: 40px; height: 40px; }
    .prog-sidebar { border-radius: 0; border-left: none; border-right: none; padding: 10px 16px; }
    .prog-sidebar-title { display: none; }
    .prog-nav-link { padding: 8px 14px; font-size: 0.78rem; }
    .prog-content { padding: 32px 16px 60px; }
    .prog-axe-header { gap: 12px; padding-bottom: 16px; }
    .prog-axe-icon { width: 40px; height: 40px; border-radius: 10px; }
    .prog-axe-icon svg { width: 20px; height: 20px; }
    .prog-axe-badge { margin-bottom: 12px; }
    .prog-axe-intro { margin-bottom: 20px; }
    .prog-subsections { gap: 14px; }
    .prog-axe-divider { margin: 36px 0 8px; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .hero-buttons { flex-direction: column; align-items: stretch; }
    .btn { text-align: center; padding: 12px 24px; font-size: 0.9rem; }
    .team-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .team-card { padding: 16px 12px; }
    .team-card .team-photo, .team-card .team-photo-placeholder { width: 64px; height: 64px; }
    .section-title { font-size: 1.5rem; }
    .section-header { margin-bottom: 40px; }
    .section-intro { font-size: 0.95rem; }
    .bilan-card { padding: 24px 20px; }
    .reunion-card { gap: 14px; padding: 16px; }
    .reunion-date { padding: 10px 12px; min-width: 56px; }
    .reunion-day { font-size: 1.3rem; }
    .quote-banner { padding: 48px 0; }
    .quote-text { font-size: 1rem; line-height: 1.7; }
    .cta-banner { padding: 48px 0; }
    .cta-banner-title { font-size: 1.3rem; }
    .cta-banner-text { font-size: 0.92rem; }
    .btn-cta-banner { padding: 14px 32px; font-size: 0.95rem; }
    .footer { padding: 48px 0 24px; }
    .footer-content { gap: 24px; margin-bottom: 32px; }
    .prog-hero { min-height: 280px; padding: 72px 16px 40px; }
    .prog-hero-title { font-size: 1.8rem; }
    .prog-hero-subtitle { font-size: 0.9rem; }
    .prog-hero-stats { gap: 20px; }
    .prog-stat-value { font-size: 1.8rem; }
    .prog-axe { margin-bottom: 40px; }
    .prog-axe-title { font-size: 1.2rem; }
    .prog-axe-number { font-size: 2.5rem; }
    .prog-axe-intro { font-size: 0.9rem; }
    .prog-sub-card { padding: 16px; }
    .prog-sub-title { font-size: 1rem; }
    .prog-measures li { font-size: 0.85rem; }
    .prog-axe-image img { height: 180px; }
    .prog-sub-image { height: 140px; }
    .prog-cta { padding: 56px 16px; }
    .prog-cta-title { font-size: 1.3rem; }
    .prog-cta-buttons { flex-direction: column; align-items: stretch; }
}

@media (prefers-reduced-motion: reduce) {
    .fade-in, .stagger-in { opacity: 1; transform: none; transition: none; }
    .scroll-arrow { animation: none; }
    html { scroll-behavior: auto; }
}

/* --- UX ENHANCEMENTS --- */
/* Smooth active nav indicator */
.nav-links li a.active { color: var(--bordeaux) !important; }
.nav-links li a.active::after { width: 100%; }

/* Hover card lift — consistent across all cards */
.bilan-card, .chiffre-card, .team-card, .reunion-card, .teaser-card, .metropole-reason {
    will-change: transform;
}

/* Subtle gradient border on focus for form inputs */
.form-group input:focus, .form-group textarea:focus {
    border-image: linear-gradient(135deg, var(--bordeaux), var(--accent-yellow)) 1;
    border-image-slice: 1;
    border-width: 1px;
    border-style: solid;
}

/* Enhanced btn hover feedback */
.btn { position: relative; overflow: hidden; }
.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
}
.btn:hover::before {
    width: 300px;
    height: 300px;
}

/* Selection highlight */
::selection {
    background: var(--bordeaux-soft);
    color: var(--bordeaux-deep);
}

*:focus-visible { outline: 2px solid var(--bordeaux); outline-offset: 2px; }

@media print {
    .navbar, .hero-scroll-indicator, .contact-form-block, .footer-social { display: none; }
    .section { padding: 24px 0; break-inside: avoid; }
    .hero { min-height: auto; padding: 48px 0; }
    .hero-bg-image, .hero-grain, .hero-vignette, .hero-particles, .hero-deco-line, .hero-portrait, .hero-stats { display: none; }
}
