/* ============================================
   ÉCOLE LA PERLE DE PERFECTIONNEMENT
   Styles Principaux
   ============================================ */

:root {
    --primary: #1a5f3f;
    --primary-dark: #0d3d26;
    --primary-light: #2d8a5e;
    --gold: #c9a84c;
    --gold-light: #e8d5a3;
    --gold-dark: #a0853a;
    --white: #ffffff;
    --light: #f8f9fa;
    --dark: #1a1a2e;
    --gray: #6c757d;
    --gray-light: #e9ecef;
    --shadow: 0 4px 20px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.15);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.7;
    color: #333;
    background: var(--light);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Top Bar */
.top-bar {
    background: var(--primary-dark);
    color: var(--white);
    padding: 10px 0;
    font-size: 0.85rem;
}
.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.top-info span { margin-right: 20px; }
.top-info i { color: var(--gold); margin-right: 5px; }
.top-social a {
    color: var(--white);
    margin-left: 15px;
    font-size: 1rem;
    transition: var(--transition);
}
.top-social a:hover { color: var(--gold); }

/* Navigation */
.navbar {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 12px;
}
.logo img {
    height: 55px;
    width: 55px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--gold);
}
.logo-text { display: flex; flex-direction: column; }
.logo-title {
    font-family: 'Amiri', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
}
.logo-sub {
    font-size: 0.75rem;
    color: var(--gold-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.nav-menu {
    display: flex;
    list-style: none;
    gap: 5px;
}
.nav-link {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    position: relative;
}
.nav-link:hover, .nav-link.active {
    color: var(--primary);
    background: rgba(26, 95, 63, 0.08);
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: var(--transition);
    transform: translateX(-50%);
}
.nav-link:hover::after { width: 60%; }
.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="1" fill="rgba(255,255,255,0.05)"/><circle cx="80" cy="40" r="1.5" fill="rgba(255,255,255,0.03)"/><circle cx="40" cy="80" r="1" fill="rgba(255,255,255,0.04)"/><circle cx="90" cy="90" r="1" fill="rgba(255,255,255,0.02)"/><circle cx="10" cy="60" r="0.8" fill="rgba(255,255,255,0.03)"/></svg>');
    background-size: 200px;
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    padding: 60px 0;
}
.hero-badge {
    display: inline-block;
    background: rgba(201, 168, 76, 0.2);
    border: 1px solid var(--gold);
    color: var(--gold-light);
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}
.hero h1 {
    font-family: 'Amiri', serif;
    font-size: 3.2rem;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 20px;
}
.hero h1 span { color: var(--gold); }
.hero p {
    color: rgba(255,255,255,0.85);
    font-size: 1.1rem;
    margin-bottom: 35px;
    max-width: 550px;
}
.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}
.btn-primary {
    background: var(--gold);
    color: var(--primary-dark);
}
.btn-primary:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(201, 168, 76, 0.4);
}
.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.3);
}
.btn-outline:hover {
    background: var(--white);
    color: var(--primary);
    border-color: var(--white);
}
/* ============================================
   HERO — Bannière 3D à 3 panneaux
   ============================================ */
.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 40px;
    position: relative;
    z-index: 2;
}
.hero-content > * {
    opacity: 0;
    animation: heroUp 0.8s ease forwards;
}
.hero-content .hero-badge  { animation-delay: 0.05s; }
.hero-content h1           { animation-delay: 0.18s; }
.hero-content p            { animation-delay: 0.32s; }
.hero-content .hero-buttons{ animation-delay: 0.46s; }

.hero-stage {
    position: relative;
    height: 470px;
    perspective: 1400px;
    perspective-origin: 55% 45%;
}
.hero-stage::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 320px; height: 320px;
    transform: translate(-50%, -50%);
    border: 1px dashed rgba(201, 168, 76, 0.35);
    border-radius: 50%;
    animation: spinRing 44s linear infinite;
}
.stage-3d {
    position: absolute;
    inset: 0;
    transform-style: preserve-3d;
    transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
    transition: transform 0.3s ease-out;
    will-change: transform;
}
.arch-slot {
    position: absolute;
    top: 50%; left: 50%;
    width: 188px; height: 300px;
    margin: -150px 0 0 -94px;
    transform-style: preserve-3d;
    opacity: 0;
    animation: archIn 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
    animation-delay: calc(var(--d) * 0.16s + 0.25s);
}
.arch-panel {
    position: relative;
    width: 100%; height: 100%;
    transform-style: preserve-3d;
    transform: translateX(var(--x)) translateZ(var(--z)) rotateY(var(--ry-base));
    transition: transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
    cursor: pointer;
}
.arch-inner {
    position: absolute;
    inset: 0;
    border-radius: 94px 94px 16px 16px;
    overflow: hidden;
    background: linear-gradient(160deg, var(--primary-light), var(--primary-dark));
    border: 3px solid var(--gold);
    box-shadow: 0 26px 50px rgba(0,0,0,0.42), inset 0 0 0 1px rgba(255,255,255,0.08);
    animation: archFloat 6.5s ease-in-out infinite;
    animation-delay: calc(var(--d) * -2.1s);
    will-change: transform;
}
.arch-inner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.arch-empty {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 2.6rem; color: rgba(201, 168, 76, 0.55);
}
.arch-cap {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: 26px 10px 12px;
    background: linear-gradient(transparent, rgba(13, 61, 38, 0.92));
    color: var(--gold-light);
    font-size: 0.78rem;
    text-align: center;
    letter-spacing: 0.4px;
}
/* Poses des 3 arches */
.arch-1 { --x: -148px; --z: -40px; --ry-base: 26deg; }
.arch-2 {
    --x: 0px; --z: 70px; --ry-base: 0deg;
    width: 208px; height: 332px; margin: -166px 0 0 -104px; z-index: 3;
}
.arch-2 .arch-inner { border-radius: 104px 104px 16px 16px; }
.arch-3 { --x: 148px; --z: -40px; --ry-base: -26deg; }
.arch-panel:hover { transform: translateX(var(--x)) translateZ(112px) rotateY(0deg); }

/* Halo ambiant */
.hero-ambient { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.hero-ambient::before, .hero-ambient::after {
    content: ''; position: absolute; width: 520px; height: 520px;
    border-radius: 50%; filter: blur(90px); opacity: 0.5;
}
.hero-ambient::before {
    background: radial-gradient(circle, rgba(201, 168, 76, 0.45), transparent 70%);
    top: -120px; right: -60px; animation: drift1 17s ease-in-out infinite;
}
.hero-ambient::after {
    background: radial-gradient(circle, rgba(45, 138, 94, 0.5), transparent 70%);
    bottom: -160px; left: -120px; animation: drift2 21s ease-in-out infinite;
}

@keyframes heroUp   { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes archIn   { from { opacity: 0; transform: translateY(60px) scale(0.92); } to { opacity: 1; transform: none; } }
@keyframes archFloat{ 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-15px); } }
@keyframes spinRing { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes drift1   { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-40px, 50px); } }
@keyframes drift2   { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(60px, -40px); } }
.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    line-height: 0;
}
.hero-wave svg {
    display: block;
    width: 100%;
    height: 80px;
}

/* Stats Bar */
.stats-bar {
    background: var(--white);
    padding: 40px 0;
    margin-top: -40px;
    position: relative;
    z-index: 10;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
}
.stat-item h3 {
    font-family: 'Amiri', serif;
    font-size: 2.2rem;
    color: var(--primary);
}
.stat-item p {
    color: var(--gray);
    font-size: 0.9rem;
    margin-top: 5px;
}
.stat-item i {
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 10px;
}

/* Section Styles */
.section {
    padding: 80px 0;
}
.section-header {
    text-align: center;
    margin-bottom: 60px;
}
.section-header h2 {
    font-family: 'Amiri', serif;
    font-size: 2.4rem;
    color: var(--primary);
    margin-bottom: 15px;
}
.section-header p {
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.05rem;
}
.section-line {
    width: 60px;
    height: 3px;
    background: var(--gold);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* Presentation Section */
.presentation-section { background: var(--white); }
.presentation-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}
.presentation-image {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.presentation-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}
.presentation-image::after {
    content: '';
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--gold);
    border-radius: var(--radius);
    z-index: -1;
}
.presentation-content h3 {
    font-family: 'Amiri', serif;
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 15px;
}
.presentation-content p {
    color: #555;
    margin-bottom: 15px;
    text-align: justify;
}
.presentation-meta {
    display: flex;
    gap: 30px;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid var(--gray-light);
}
.presentation-meta-item h4 {
    color: var(--gold-dark);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}
.presentation-meta-item p {
    color: var(--primary);
    font-weight: 600;
    font-size: 1.1rem;
    margin: 0;
}

/* Disciplines Cards */
.disciplines-section { background: var(--light); }
.disciplines-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 25px;
}
.discipline-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 35px 25px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}
.discipline-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-bottom-color: var(--gold);
}
.discipline-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.6rem;
    color: var(--white);
}
.discipline-card h3 {
    font-size: 1.15rem;
    color: var(--primary);
    margin-bottom: 12px;
}
.discipline-card p {
    color: var(--gray);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Niveaux Timeline */
.niveaux-section { background: var(--white); }
.niveaux-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}
.niveaux-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--primary), var(--gold));
    transform: translateX(-50%);
}
.niveau-item {
    position: relative;
    margin-bottom: 40px;
    width: 50%;
    padding: 0 40px;
}
.niveau-item:nth-child(odd) { left: 0; text-align: right; }
.niveau-item:nth-child(even) { left: 50%; }
.niveau-dot {
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--gold);
    border: 4px solid var(--white);
    border-radius: 50%;
    top: 5px;
    box-shadow: 0 0 0 3px var(--gold);
}
.niveau-item:nth-child(odd) .niveau-dot { right: -10px; }
.niveau-item:nth-child(even) .niveau-dot { left: -10px; }
.niveau-content {
    background: var(--light);
    padding: 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.niveau-content h3 {
    color: var(--primary);
    font-size: 1.2rem;
    margin-bottom: 8px;
}
.niveau-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    font-size: 0.85rem;
}
.niveau-meta span {
    background: var(--primary);
    color: var(--white);
    padding: 3px 12px;
    border-radius: 50px;
}
.niveau-content p {
    color: var(--gray);
    font-size: 0.9rem;
}

/* Festivites */
.festivites-section { background: var(--light); }
.festivites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
}
.festivite-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.festivite-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}
.festivite-image {
    height: 200px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--white);
    position: relative;
}
.festivite-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--gold);
    color: var(--primary-dark);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}
.festivite-body {
    padding: 25px;
}
.festivite-body h3 {
    color: var(--primary);
    font-size: 1.15rem;
    margin-bottom: 10px;
}
.festivite-body p {
    color: var(--gray);
    font-size: 0.9rem;
    line-height: 1.6;
}
.festivite-date {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    color: var(--gold-dark);
    font-size: 0.85rem;
    font-weight: 500;
}

/* Enseignants */
.enseignants-section { background: var(--white); }
.enseignants-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}
.enseignant-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}
.enseignant-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}
.enseignant-photo {
    height: 220px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.enseignant-photo i {
    font-size: 5rem;
    color: rgba(255,255,255,0.3);
}
.enseignant-info {
    padding: 25px;
}
.enseignant-info h3 {
    color: var(--primary);
    font-size: 1.15rem;
    margin-bottom: 5px;
}
.enseignant-info .specialite {
    color: var(--gold-dark);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 10px;
}
.enseignant-info .diplome {
    color: var(--gray);
    font-size: 0.8rem;
    font-style: italic;
    margin-bottom: 12px;
}
.enseignant-info .bio {
    color: #555;
    font-size: 0.9rem;
    line-height: 1.6;
    text-align: justify;
}

/* Internat */
.internat-section { background: var(--light); }
.internat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}
.internat-content h3 {
    font-family: 'Amiri', serif;
    font-size: 1.6rem;
    color: var(--primary);
    margin-bottom: 20px;
}
.internat-content p {
    color: #555;
    margin-bottom: 15px;
    text-align: justify;
}
.internat-features {
    margin-top: 25px;
}
.internat-feature {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: var(--white);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
}
.internat-feature i {
    font-size: 1.5rem;
    color: var(--gold);
    margin-top: 3px;
}
.internat-feature h4 {
    color: var(--primary);
    font-size: 1rem;
    margin-bottom: 5px;
}
.internat-feature p {
    color: var(--gray);
    font-size: 0.9rem;
    margin: 0;
}
.internat-video {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.video-placeholder {
    height: 300px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
    cursor: pointer;
    transition: var(--transition);
}
.video-placeholder:hover {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
}
.video-placeholder i {
    font-size: 4rem;
    margin-bottom: 15px;
    color: var(--gold);
}
.video-placeholder p {
    font-size: 1.1rem;
    margin: 0;
}
.video-info {
    padding: 25px;
}
.video-info h4 {
    color: var(--primary);
    margin-bottom: 10px;
}
.video-info p {
    color: var(--gray);
    font-size: 0.9rem;
}
.tarif-box {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--primary-dark);
    padding: 20px;
    border-radius: var(--radius-sm);
    text-align: center;
    margin-top: 20px;
}
.tarif-box h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}
.tarif-box .prix {
    font-family: 'Amiri', serif;
    font-size: 2rem;
    font-weight: 700;
}

/* Contact Page */
.contact-section { background: var(--white); }
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}
.contact-info h3 {
    font-family: 'Amiri', serif;
    font-size: 1.6rem;
    color: var(--primary);
    margin-bottom: 20px;
}
.contact-info-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}
.contact-info-item i {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.contact-info-item h4 {
    color: var(--primary);
    font-size: 1rem;
    margin-bottom: 5px;
}
.contact-info-item p {
    color: var(--gray);
    font-size: 0.9rem;
    margin: 0;
}
.contact-form {
    background: var(--light);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--primary);
    font-weight: 500;
    font-size: 0.9rem;
}
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 18px;
    border: 2px solid var(--gray-light);
    border-radius: var(--radius-sm);
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    transition: var(--transition);
    background: var(--white);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.map-container {
    margin-top: 50px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    height: 400px;
    background: var(--gray-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray);
}

/* Footer */
.footer {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.8);
    padding: 60px 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 2fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}
.footer-logo img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--gold);
}
.footer-logo h3 {
    color: var(--white);
    font-family: 'Amiri', serif;
    font-size: 1.2rem;
}
.footer-col h4 {
    color: var(--gold);
    font-size: 1.1rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.9rem;
}
.footer-links a:hover {
    color: var(--gold);
    padding-left: 5px;
}
.footer-links i {
    color: var(--gold);
    margin-right: 8px;
    font-size: 0.7rem;
}
.footer-address {
    margin-bottom: 15px;
}
.footer-address h5 {
    color: var(--white);
    font-size: 0.95rem;
    margin-bottom: 8px;
}
.footer-address p {
    font-size: 0.85rem;
    margin-bottom: 5px;
}
.footer-address i {
    color: var(--gold);
    margin-right: 8px;
    width: 16px;
}
.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}
.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}
.footer-social a:hover {
    background: var(--gold);
    color: var(--primary-dark);
}
.newsletter-form {
    display: flex;
    gap: 0;
    margin-top: 15px;
}
.newsletter-form input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 50px 0 0 50px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
}
.newsletter-form button {
    background: var(--gold);
    border: none;
    padding: 12px 20px;
    border-radius: 0 50px 50px 0;
    color: var(--primary-dark);
    cursor: pointer;
    transition: var(--transition);
}
.newsletter-form button:hover { background: var(--gold-light); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}
.footer-bottom a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: var(--transition);
}
.footer-bottom a:hover { color: var(--gold); }

/* Alert Messages */
.alert {
    padding: 15px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 0.95rem;
}
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-danger { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.alert-info { background: #d1ecf1; color: #0c5460; border: 1px solid #bee5eb; }

/* Responsive */
@media (max-width: 992px) {
    .hero h1 { font-size: 2.4rem; }
    .hero-grid { grid-template-columns: 1fr; }
    .hero-stage { height: 400px; margin-top: 8px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .presentation-grid,
    .internat-grid,
    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .niveaux-timeline::before { left: 20px; }
    .niveau-item { width: 100%; left: 0 !important; padding-left: 60px; padding-right: 0; text-align: left !important; }
    .niveau-item:nth-child(odd) .niveau-dot,
    .niveau-item:nth-child(even) .niveau-dot { left: 10px !important; right: auto !important; }
}

@media (max-width: 768px) {
    .nav-toggle { display: block; }
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--white);
        flex-direction: column;
        padding: 30px 20px;
        transition: var(--transition);
        box-shadow: var(--shadow-lg);
        z-index: 999;
    }
    .nav-menu.active { left: 0; }
    .nav-link { display: block; padding: 12px 20px; }
    .hero { min-height: 70vh; }
    .hero h1 { font-size: 2rem; }
    .section { padding: 50px 0; }
    .section-header h2 { font-size: 1.8rem; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
    .top-bar .container { flex-direction: column; gap: 5px; text-align: center; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.6rem; }
    .btn { padding: 12px 24px; font-size: 0.85rem; }
    .stats-grid { grid-template-columns: 1fr; }
    .contact-form { padding: 25px; }
}

/* Bannière 3D — adaptation mobile (arches plus petites et rapprochées) */
@media (max-width: 600px) {
    .hero-stage { height: 320px; perspective: 1000px; }
    .hero-stage::before { width: 220px; height: 220px; }
    .arch-slot { width: 128px; height: 206px; margin: -103px 0 0 -64px; }
    .arch-1 { --x: -90px; --ry-base: 20deg; }
    .arch-3 { --x: 90px; --ry-base: -20deg; }
    .arch-2 { width: 146px; height: 232px; margin: -116px 0 0 -73px; --z: 46px; }
    .arch-inner { border-radius: 64px 64px 12px 12px; }
    .arch-2 .arch-inner { border-radius: 73px 73px 12px 12px; }
}

/* Micro-interaction : soulignement doré des liens de navigation */
.nav-link { position: relative; }
.nav-link::after {
    content: '';
    position: absolute;
    left: 50%; bottom: 2px;
    width: 0; height: 2px;
    background: var(--gold);
    border-radius: 2px;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}
.nav-link:hover::after, .nav-link.active::after { width: 55%; }

/* Confort de défilement */
html { scroll-behavior: smooth; }

/* Respect de la préférence « animations réduites » */
@media (prefers-reduced-motion: reduce) {
    .hero-content > *,
    .arch-slot { opacity: 1; animation: none; }
    .arch-inner,
    .hero-stage::before,
    .hero-ambient::before,
    .hero-ambient::after { animation: none; }
    .stage-3d { transition: none; }
    html { scroll-behavior: auto; }
}

/* ============================================
   PHOTOTHÈQUE / GALERIE
   ============================================ */
.albums-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}
.album-tile {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
    display: block;
}
.album-tile:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}
.album-cover {
    height: 200px;
    position: relative;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: rgba(255,255,255,0.7);
}
.album-cover img { width: 100%; height: 100%; object-fit: cover; }
.album-count {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
}
.album-meta { padding: 18px 20px; }
.album-meta h3 { color: var(--primary); font-size: 1.05rem; margin-bottom: 5px; }
.album-meta p { color: var(--gray); font-size: 0.8rem; }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 15px;
}
.gallery-item {
    position: relative;
    display: block;
    height: 220px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow);
}
.gallery-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-caption {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 10px 12px;
    background: linear-gradient(transparent, rgba(0,0,0,0.75));
    color: #fff;
    font-size: 0.8rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.gallery-item:hover .gallery-caption { opacity: 1; }

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img {
    max-width: 90vw;
    max-height: 82vh;
    border-radius: 6px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}
.lightbox-caption {
    position: absolute;
    bottom: 25px;
    left: 0; right: 0;
    text-align: center;
    color: #fff;
    font-size: 0.95rem;
    padding: 0 20px;
}
.lightbox-close, .lightbox-nav {
    position: absolute;
    background: rgba(255,255,255,0.12);
    color: #fff;
    border: none;
    width: 48px; height: 48px;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}
.lightbox-close:hover, .lightbox-nav:hover { background: var(--gold); color: var(--primary-dark); }
.lightbox-close { top: 20px; right: 20px; }
.lightbox-nav.prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-nav.next { right: 20px; top: 50%; transform: translateY(-50%); }

@media (max-width: 600px) {
    .gallery-item { height: 160px; }
    .lightbox-nav { width: 40px; height: 40px; }
}
