/* Styles Généraux */
:root {
    --primary: #0077B6;
    --secondary: #90E0EF;
    --dark: #023E8A;
    --light: #CAF0F8;
    --accent: #FF4D6D;
    --text: #333;
    --text-light: #666;
    --white: #ffffff;
    --gray-bg: #f8f9fa;
    --border: #e9ecef;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.12);
    --radius: 16px;
    --radius-sm: 8px;
}

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

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Header & Nav */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i { color: var(--accent); }

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav ul li a {
    font-weight: 600;
    color: var(--text);
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: 0.3s;
}

nav ul li a:hover::after {
    width: 100%;
}

.btn {
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    display: inline-block;
    border: none;
    transition: 0.3s;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 119, 182, 0.3);
}

.btn-primary:hover {
    background: var(--dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 119, 182, 0.4);
}

/* Section Common */
section { padding: 100px 0; }
section h2 { font-size: 2.8rem; margin-bottom: 50px; text-align: center; color: var(--dark); line-height: 1.1; }

/* Grid de fiches (Cartes) */
.activity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.activity-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}

.activity-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.card-img {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.activity-card:hover .card-img img {
    transform: scale(1.1);
}

.age-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-content h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: var(--dark);
    line-height: 1.3;
}

.card-content p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid var(--border);
}

.card-more {
    font-weight: 700;
    color: var(--primary);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.card-more i {
    transition: transform 0.3s;
}

.activity-card:hover .card-more i {
    transform: translateX(5px);
}

/* Home Hero */
.hero-home { padding: 120px 0; background: radial-gradient(circle at top right, var(--secondary), transparent); }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.top-tag { color: var(--primary); font-weight: 700; text-transform: uppercase; letter-spacing: 2px; font-size: 0.9rem; margin-bottom: 20px; display: block; }
.hero-text h1 { font-size: 3.8rem; line-height: 1.1; margin-bottom: 30px; }
.hero-text h1 span { color: var(--primary); }
.hero-text p { font-size: 1.3rem; color: var(--text-light); margin-bottom: 40px; }
.hero-btns { display: flex; gap: 20px; }

/* Fiche Detail */
.fiche-header-hero {
    padding: 120px 0 80px;
    background-size: cover;
    background-position: center;
    color: var(--white);
    position: relative;
    border-bottom-left-radius: 60px;
    border-bottom-right-radius: 60px;
    overflow: hidden;
}

.fiche-header-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.7));
    z-index: 1;
}

.fiche-header-hero .container { position: relative; z-index: 2; }

.breadcrumb { font-size: 0.9rem; margin-bottom: 25px; opacity: 0.8; }
.breadcrumb a:hover { text-decoration: underline; }

.content-grid { display: grid; grid-template-columns: 1fr 380px; gap: 50px; }

.section-icon-header { display: flex; align-items: center; gap: 20px; margin-bottom: 30px; }
.section-icon-header i { width: 40px; height: 40px; color: var(--primary); }
.section-icon-header h2 { text-align: left; margin-bottom: 0; font-size: 2.2rem; }

.step-item {
    display: flex;
    gap: 25px;
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 25px;
    border: 1px solid var(--border);
}

.step-number {
    width: 45px;
    height: 45px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.observation-block, .control-block {
    padding: 40px;
    border-radius: var(--radius);
    height: 100%;
}

.observation-block { background: #F0F9FF; border: 1px solid #BAE6FD; }
.control-block { background: #F0FDF4; border: 1px solid #BBF7D0; }

.expert-tip {
    background: linear-gradient(135deg, var(--dark), var(--primary));
    color: white;
    padding: 40px;
    border-radius: var(--radius);
    position: relative;
    margin-top: 50px;
}

.expert-tip i { position: absolute; top: 20px; right: 20px; opacity: 0.2; width: 60px; height: 60px; }

/* Infographies Visuelles */
.infographic-box {
    margin: 60px 0;
    background: var(--gray-bg);
    padding: 40px;
    border-radius: var(--radius);
    border: 2px dashed var(--secondary);
}

.infographic-title {
    text-align: center;
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 40px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.visual-process {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    position: relative;
}

.process-step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 2;
}

.process-icon {
    width: 80px;
    height: 80px;
    background: var(--white);
    border: 4px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--primary);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.process-step h4 { margin-bottom: 10px; color: var(--dark); }
.process-step p { font-size: 0.9rem; color: var(--text-light); }

.process-line {
    position: absolute;
    top: 40px;
    left: 10%;
    right: 10%;
    height: 4px;
    background: var(--secondary);
    z-index: 1;
}

/* Sidebar */
.sidebar-card {
    background: white;
    padding: 35px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    position: sticky;
    top: 100px;
}

.material-list li, .objective-list li {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 1rem;
}

/* Filtrage */
.filter-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 25px;
    background: var(--gray-bg);
    border-radius: 50px;
    font-weight: 600;
    color: var(--text-light);
    border: 1px solid var(--border);
    transition: 0.3s;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* Footer Premium */
footer {
    background: #0F172A;
    color: #F8FAFC;
    padding: 100px 0 40px;
    margin-top: 100px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 0.8fr 0.8fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 80px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .logo { color: white; margin-bottom: 25px; }
.footer-brand p { color: #94A3B8; font-size: 1rem; line-height: 1.6; margin-bottom: 30px; }

.social-links { display: flex; gap: 15px; }
.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-5px);
}

.footer-links h4 { font-size: 1.1rem; font-weight: 700; margin-bottom: 25px; color: var(--secondary); }
.footer-links ul { list-style: none; }
.footer-links ul li { margin-bottom: 12px; }
.footer-links ul li a { color: #94A3B8; font-size: 0.95rem; }
.footer-links ul li a:hover { color: white; transform: translateX(5px); display: inline-block; }

.newsletter-box h4 { color: var(--secondary); }
.newsletter-box p { color: #94A3B8; margin-bottom: 20px; font-size: 0.9rem; }
.newsletter-form { display: flex; gap: 8px; background: rgba(255,255,255,0.05); padding: 5px; border-radius: 50px; }
.newsletter-form input {
    background: transparent;
    border: none;
    padding: 8px 15px;
    color: white;
    flex: 1;
    outline: none;
    font-size: 0.9rem;
}

.footer-bottom {
    padding-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #64748B;
    font-size: 0.9rem;
}

.footer-legal { display: flex; gap: 25px; list-style: none; }

/* Animations */
.reveal-on-scroll { opacity: 0; transform: translateY(40px); transition: 1s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal-on-scroll.revealed { opacity: 1; transform: translateY(0); }

@media (max-width: 1100px) {
    .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
}

@media (max-width: 1024px) {
    .content-grid { grid-template-columns: 1fr; }
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-btns { justify-content: center; }
    .visual-process { flex-direction: column; align-items: center; }
    .process-line { display: none; }
}

@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 20px; text-align: center; }
    .hero-text h1 { font-size: 2.8rem; }
}