/* ============================================
   ACTIVITE.CSS — Full Premium Redesign
   ============================================ */

* { margin: 0; padding: 0; box-sizing: border-box;
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }

:root {
    --primary: #167475;
    --primary-light: #1a9090;
    --primary-pale: #edf9f6;
    --dark: #1a2332;
    --gray: #6c757d;
    --light-bg: #f7fdf9;
    --white: #ffffff;
    --tr: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --sh-sm: 0 4px 18px rgba(22,116,117,0.10);
    --sh-md: 0 10px 40px rgba(22,116,117,0.15);
    --sh-lg: 0 20px 60px rgba(22,116,117,0.2);
}

body { background: var(--white); color: var(--dark); line-height: 1.7; overflow-x: hidden; }

/* ===== LOADER ===== */
.loader { position: fixed; inset: 0; background: var(--light-bg);
    display: flex; justify-content: center; align-items: center; z-index: 9999;
    transition: opacity 0.5s, visibility 0.5s; }
.loader.fade-out { opacity: 0; visibility: hidden; }
.loader-circle { width: 50px; height: 50px; border: 5px solid #f0f0f0;
    border-top: 5px solid var(--primary); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { from{transform:rotate(0deg)} to{transform:rotate(360deg)} }

/* ===== CONTAINER ===== */
.container { width: 90%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ===== HEADER ===== */
.header {
    background-color: rgba(246, 246, 248, 0.95);
    backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
    position: fixed; width: 90%; max-width: 1200px;
    top: 25px; left: 50%; transform: translateX(-50%);
    z-index: 1000; transition: var(--tr); padding: 15px 30px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.09);
    border-radius: 50px; border: 1px solid rgba(0,0,0,0.07);
}
.header .container { width:100%; max-width:none; padding:0; margin:0;
    display:flex; justify-content:space-between; align-items:center; }
.logo-text {
    position: relative; font-family: 'Segoe UI', sans-serif; font-weight: 700;
    font-size: 1.5rem; text-transform: uppercase; letter-spacing: 1px;
    background: linear-gradient(90deg, #167475 0%, #167475 50%, #333 50%, #333 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
    padding-bottom: 8px; transition: all 0.3s ease;
}
.logo-text::after { content:''; position:absolute; bottom:0; left:0; width:100%; height:3px;
    background:linear-gradient(90deg,#167475 0%,#28a745 100%);
    transform:scaleX(0.8); transform-origin:left; transition:transform 0.3s ease; }
.nav ul { display:flex; list-style:none; gap: 8px; }
.nav-link { display:flex; align-items:center; text-decoration:none; color:var(--dark);
    font-weight:500; padding:10px 18px; border-radius:30px; transition:var(--tr); }
.nav-link:hover, .nav-link.active { background:var(--primary); color:#fff; }
.nav-icon { margin-right:8px; font-size:0.9rem; }
.nav-badge { display:inline-flex; align-items:center; justify-content:center;
    width:22px; height:22px; background:var(--primary); color:#fff;
    border-radius:50%; font-size:0.7rem; font-weight:700; margin-left:6px; }
.menu-toggle { display:none; cursor:pointer; font-size:1.5rem; color:var(--dark); }

/* ===== HERO ===== */
.act-hero {
    min-height: 80vh; background: var(--light-bg);
    display: flex; align-items: center; justify-content: center;
    padding: 180px 0 100px; position: relative; overflow: hidden;
    text-align: center;
}

/* Blobs */
.act-blob { position: absolute; border-radius: 50%; pointer-events: none; z-index: 0; }
.act-blob-1 { width: 500px; height: 500px; top: -150px; right: -150px;
    background: radial-gradient(circle, rgba(22,116,117,0.15) 0%, transparent 70%); }
.act-blob-2 { width: 400px; height: 400px; bottom: -100px; left: -150px;
    background: radial-gradient(circle, rgba(22,116,117,0.1) 0%, transparent 70%); }
.act-blob-3 { width: 250px; height: 250px; top: 20%; left: 5%; background: rgba(22,116,117,0.05); }

.act-hero-content { position: relative; z-index: 1; }
.act-tag { display: inline-block; padding: 6px 18px; border-radius: 30px;
    background: rgba(22,116,117,0.1); color: var(--primary); font-size: 0.9rem; font-weight: 600; margin-bottom: 20px; }
.act-hero-title { font-size: 4.5rem; font-weight: 800; line-height: 1.1; margin-bottom: 20px; }
.act-hero-title .highlight { background: linear-gradient(90deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent; }
.act-hero-sub { font-size: 1.25rem; color: var(--gray); max-width: 600px; margin: 0 auto 30px; }
.act-hero-divider { width: 80px; height: 5px; background: var(--primary); margin: 0 auto; border-radius: 5px; }

/* ===== SECTION ===== */
.act-section { padding: 100px 0; background: var(--white); position: relative; }

/* ===== GRID & CARDS ===== */
.act-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 35px;
}

.act-card {
    background: var(--white); border-radius: 24px; overflow: hidden;
    box-shadow: var(--sh-sm); border: 1px solid rgba(22,116,117,0.1);
    transition: var(--tr); opacity: 0; transform: translateY(40px);
}
.act-card.visible { opacity: 1; transform: translateY(0); }
.act-card:hover { transform: translateY(-12px) scale(1.02); box-shadow: var(--sh-lg); border-color: var(--primary); }

.act-card-img { position: relative; height: 220px; overflow: hidden; background: #eee; }
.act-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.act-card:hover .act-card-img img { transform: scale(1.15); }

.act-overlay { position: absolute; inset: 0; background: rgba(22, 116, 117, 0.4);
    display: flex; align-items: center; justify-content: center; opacity: 0; transition: var(--tr); }
.act-card:hover .act-overlay { opacity: 1; }
.act-overlay span { width: 50px; height: 50px; background: #fff; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; color: var(--primary); font-size: 1.2rem; }

.act-card-body { padding: 30px; }
.act-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.act-card-tag { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
    padding: 4px 12px; background: var(--primary-pale); color: var(--primary); border-radius: 30px; }
.act-card-tag.special { background: #fff4e5; color: #ff9800; border: 1px solid rgba(255,152,0,0.2); }
.act-card-index { font-size: 1.2rem; font-weight: 800; color: rgba(22,116,117,0.15); }

.act-card-title { font-size: 1.3rem; font-weight: 700; margin-bottom: 12px; color: var(--dark); }
.act-card-text { font-size: 0.95rem; color: var(--gray); line-height: 1.6; margin-bottom: 25px; min-height: 3.2em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-clamp: 2; overflow: hidden; }

.act-btn { display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
    font-weight: 600; color: var(--primary); font-size: 0.95rem; transition: var(--tr); }
.act-btn i { transition: transform 0.3s ease; }
.act-btn:hover { color: var(--primary-light); }
.act-btn:hover i { transform: translateX(5px); }

/* Featured Card (Veille) */
.featured-card { grid-column: span 1; border: 2px solid rgba(22,116,117,0.2); }

/* ===== FOOTER ===== */
.footer { background: #f4f4f6; padding: 60px 0 20px; }
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer-logo span { font-size: 1.5rem; font-weight: 700; margin-bottom: 8px; display: block; }
.footer-logo p { color: var(--gray); }
.footer-links h3, .footer-contact h3 { font-size: 1.1rem; margin-bottom: 16px; color: var(--dark); }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { text-decoration: none; color: var(--gray); transition: color 0.3s; }
.footer-links a:hover { color: var(--primary); }
.social-links { display: flex; gap: 12px; }
.social-links a { width: 40px; height: 40px; background: var(--primary); color: #fff; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; transition: var(--tr); }
.social-links a:hover { transform: translateY(-3px); background: var(--primary-light); }
.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid #e0e0e6; color: var(--gray); font-size: 0.88rem; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .act-grid { grid-template-columns: repeat(2, 1fr); }
    .act-hero-title { font-size: 3.5rem; }
}

@media (max-width: 991px) {
    .header { width: 95%; padding: 12px 20px; }
    /* Mobile nav logic needed here as in other pages if applicable */
}

@media (max-width: 768px) {
    .act-grid { grid-template-columns: 1fr; }
    .act-hero-title { font-size: 2.8rem; }
    .act-hero { min-height: 60vh; padding: 140px 0 60px; }
}

/* =============================================
   INDIVIDUAL ACTIVITY PAGES STYLES
   ============================================= */

/* Premium Banner */
.activity-banner {
    padding: 170px 0 25px;
    background: var(--primary);
    border-bottom: 1px solid rgba(22,116,117,0.15);
}
.banner-back {
    text-decoration: none; color: rgba(255, 255, 255, 0.8);
    font-weight: 600; font-size: 0.9rem;
    transition: var(--tr); display: inline-flex; align-items: center; gap: 8px;
}
.banner-back:hover { color: #fff; transform: translateX(-3px); }
.banner-sep { margin: 0 12px; color: rgba(255, 255, 255, 0.4); font-size: 1.2rem; }
.banner-title { color: #fff; font-weight: 700; font-size: 0.95rem; }

/* Page Content */
.activity-page { padding: 60px 0 100px; position: relative; overflow: hidden; background: var(--white); }

/* Background Blobs for Subpages (reusing hero blobs logic) */
.act-page-blob { position: absolute; border-radius: 50%; pointer-events: none; z-index: 0; opacity: 0.4; }
.ap-blob-1 { width: 400px; height: 400px; top: 10%; right: -150px; background: radial-gradient(circle, rgba(22,116,117,0.1) 0%, transparent 70%); }
.ap-blob-2 { width: 300px; height: 300px; bottom: 15%; left: -100px; background: radial-gradient(circle, rgba(22,116,117,0.08) 0%, transparent 70%); }

.activity-page .container { position: relative; z-index: 1; max-width: 900px; }

.section-title { font-size: 2.2rem; font-weight: 800; color: var(--dark); line-height: 1.2; margin-bottom: 10px; }
.section-subtitle { font-size: 1rem; font-weight: 600; color: var(--primary); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 40px; display: block; }

.activity-page h2 { font-size: 1.6rem; font-weight: 700; color: var(--dark); margin: 45px 0 20px; position: relative; padding-left: 15px; }
.activity-page h2::before { content: ''; position: absolute; left: 0; top: 5px; height: 1.2em; width: 4px; background: var(--primary); border-radius: 4px; }

.activity-page h3 { font-size: 1.25rem; font-weight: 700; color: var(--primary); margin: 35px 0 15px; }

.activity-page p { color: #4a5568; margin-bottom: 20px; font-size: 1.05rem; }
.activity-page strong { color: var(--dark); }

.activity-page ul { margin-bottom: 25px; padding-left: 20px; list-style: none; }
.activity-page li { position: relative; margin-bottom: 12px; color: #4a5568; padding-left: 25px; }
.activity-page li::before { content: '\f00c'; font-family: 'Font Awesome 5 Free'; font-weight: 900; position: absolute; left: 0; color: var(--primary); font-size: 0.85rem; top: 3px; }

.activity-page hr { border: none; height: 1px; background: rgba(22,116,117,0.1); margin: 40px 0; }

/* Sommaire Card */
.activity-page ul:first-of-type {
    background: var(--light-bg); border: 1px solid rgba(22,116,117,0.15);
    padding: 25px 30px 25px 50px; border-radius: 18px; margin: 30px 0 50px;
}
.activity-page ul:first-of-type li a { text-decoration: none; color: var(--primary); font-weight: 600; transition: var(--tr); }
.activity-page ul:first-of-type li a:hover { color: var(--primary-light); padding-left: 5px; }

/* Image Grid Premium */
.img-grid { margin: 35px 0; display: grid; gap: 25px; }
.img-grid img { width: 100%; border-radius: 16px; box-shadow: var(--sh-md); border: 1px solid rgba(22,116,117,0.08); transition: var(--tr); cursor: zoom-in; }
.img-grid img:hover { transform: scale(1.01); box-shadow: var(--sh-lg); border-color: var(--primary); }

/* Animation reveal (removed initial hidden state as it caused issues) */
.activity-page [id^="etape"] { opacity: 1; transform: none; transition: opacity 0.6s ease, transform 0.6s ease; }
