/* loovidra_agency/demos_apps/little_loovidra/static/little_loovidra/css/style.css */

/* =========================================
   1. VARIABLES & STYLES GLOBAUX
   ========================================= */
/* === Variables de Design (Palette & Polices) === */
:root {
    --font-heading: 'Nunito', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    
    --color-primary: #4A90E2;  /* Bleu doux et confiant */
    --color-secondary: #F5A623; /* Jaune/Orange chaud pour les C-T-A */
    --color-dark: #333333;      /* Texte principal */
    --color-light: #F9F9F9;     /* Fond de section clair */
    --color-white: #FFFFFF;
    --color-border: #EAEAEA;
    
    --shadow-light: 0 4px 12px rgba(0,0,0,0.05);
    --shadow-medium: 0 8px 20px rgba(0,0,0,0.1);
    --border-radius: 8px;
}

/* === Réinitialisation et Base === */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    color: var(--color-dark);
    line-height: 1.7;
    background-color: var(--color-white);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
}

h2 {
    font-size: 2.2rem;
    color: var(--color-primary);
    text-align: center;
    margin-bottom: 2.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-secondary);
}

/* === En-tête / Navigation === */
.main-header {
    background: var(--color-white);
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-light);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--color-dark);
}

.logo span {
    color: var(--color-primary);
}

.main-nav ul {
    list-style: none;
    display: flex;
}

.main-nav li {
    margin-left: 2rem;
}

.main-nav a {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    color: var(--color-dark);
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--color-primary);
    border-bottom: 2px solid var(--color-primary);
}

/* === BURGER MENU STYLES === */

/* Par défaut (Desktop), le burger est caché */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--color-dark);
    transition: all 0.3s ease;
}

/* === RESPONSIVE (Mobile) === */
@media (max-width: 768px) {
    /* 1. Afficher le bouton Burger */
    .hamburger {
        display: flex; 
    }

    /* 2. Transformer le menu en panneau vertical caché par défaut */
    .main-nav {
        display: block; /* On annule le display: none précédent */
        position: absolute;
        top: 100%; /* Juste en dessous du header */
        left: 0;
        width: 100%;
        background-color: var(--color-white);
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        
        /* Animation de fermeture (hauteur 0, caché) */
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-out; 
    }

    /* 3. Style de la liste dans le menu mobile */
    .main-nav ul {
        flex-direction: column; /* Vertical */
        padding: 1rem 0;
        text-align: center;
    }

    .main-nav li {
        margin: 0;
        padding: 10px 0;
    }

    /* 4. Classe active (quand le menu est ouvert via JS) */
    .main-nav.open {
        max-height: 400px; /* Assez haut pour tout le contenu */
        border-bottom: 3px solid var(--color-primary);
    }

    /* Animation du burger en croix (Optionnel mais sympa) */
    .hamburger.toggle span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }
    .hamburger.toggle span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.toggle span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }
}

/* === Boutons === */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    font-family: var(--font-heading);
    font-weight: 700;
    border-radius: 50px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--color-primary);
    color: var(--color-white);
}

.btn-primary:hover {
    background: #3a7bc8;
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-secondary {
    background: var(--color-secondary);
    color: var(--color-white);
}

.btn-secondary:hover {
    background: #e0930f;
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* === Section Héros (Accueil) === */
.hero {
    height: 85vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-white);
}

.hero-content {
    max-width: 800px;
    
    /* Voici ton cadre gris foncé semi-transparent */
    background: rgba(0, 0, 0, 0.35); /* 35% d'opacité */
    padding: 2.5rem; /* Espace à l'intérieur du cadre */
    border-radius: 20px; /* Coins arrondis, comme le reste du site */
    box-shadow: var(--shadow-light); /* Petite ombre légère */
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    font-family: var(--font-body);
    margin-bottom: 2rem;
    font-weight: 300;
}

/* === Mini Bannière (pour les pages intérieures) === */
.mini-banner {
    height: 300px; /* Hauteur de la mini-bannière */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-white);

    /* Utilise la même image que la page d'accueil */
    background-image: url('https://images.pexels.com/photos/3661240/pexels-photo-3661240.jpeg');
    background-size: cover;
    background-position: center; /* On peut changer ça si besoin */
}


.mini-banner h1 {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--color-white);
    
    /* On enlève les z-index, devenus inutiles */

    /* On ajoute une ombre portée pour la lisibilité */
    text-shadow: 0px 2px 8px rgba(0, 0, 0, 0.7);
}

/* === Sections Générales === */
.section {
    padding: 5rem 0;
}

.section-light {
    background: var(--color-light);
}

/* === Section "Nos Atouts" (Cartes) === */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--color-white);
    border-radius: var(--border-radius);
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.feature-card .icon {
    font-size: 3rem;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.4rem;
    color: var(--color-dark);
    margin-bottom: 1rem;
}

.feature-card p {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* === Section "Nos Programmes" === */
.programmes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.programme-card {
    background: var(--color-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.programme-card:hover {
    box-shadow: var(--shadow-medium);
}

.programme-card-image {
    height: 200px;
    background-size: cover;
    background-position: center;
}

/* Images des programmes */
.programme-card-image.baby { background-image: url('../images/home/program-baby.jpg'); }
.programme-card-image.middle { background-image: url('../images/home/program-middle.jpg'); }
.programme-card-image.top { background-image: url('../images/home/program-top.jpg'); }
.programme-card-content {
    padding: 2rem;
}

.programme-card-content h3 {
    font-size: 1.5rem;
    color: var(--color-primary);
}

.programme-card-content .age-tag {
    display: inline-block;
    background: var(--color-secondary);
    color: var(--color-white);
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    margin-bottom: 1rem;
}

/* === Section C-T-A === */
.cta-section {
    background: var(--color-primary);
    color: var(--color-white);
    text-align: center;
}

.cta-section h2 {
    color: var(--color-white);
    margin-bottom: 1.5rem;
}

.cta-section p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* === Page Header (pour About, Contact, etc.) === */
.page-header {
    background: var(--color-light);
    padding: 3rem 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.8rem;
    color: var(--color-primary);
}

/* === Page Contact === */
.contact-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    font-family: var(--font-heading);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    font-family: var(--font-body);
    font-size: 1rem;
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-info {
    background: var(--color-light);
    padding: 2rem;
    border-radius: var(--border-radius);
}

.contact-info h3 {
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

.contact-info p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.contact-info .icon {
    margin-right: 10px;
    color: var(--color-primary);
}

.map-container {
    margin-top: 3rem;
    border-radius: var(--border-radius);
    overflow: hidden;
    height: 400px;
    background: var(--color-light); /* Placeholder */
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* === Footer === */
.main-footer {
    background: var(--color-dark);
    color: #AAA;
    padding: 3rem 0;
    text-align: center;
}

.main-footer p {
    margin: 0;
    font-size: 0.9rem;
}

/* === Responsive Design === */
@media (max-width: 768px) {
    .logo { font-size: 1.5rem; }
    .main-nav { display: none; } /* On ajoutera un menu burger JS plus tard si besoin */
    
    .hero { height: 60vh; }
    .hero-content h1 { font-size: 2.5rem; }
    .hero-content p { font-size: 1rem; }

    .features-grid { grid-template-columns: 1fr; }
    .programmes-grid { grid-template-columns: 1fr; }
    
    .contact-layout { grid-template-columns: 1fr; }
    
    h2 { font-size: 1.8rem; }
}


/* Ajoute ceci à ton fichier CSS (par exemple static/css/style.css) */
.feature-icon {
  width: 100px; /* Commence avec une taille de 100px. Tu peux ajuster */
  height: 100px; /* Garde la même valeur que la largeur pour une image carrée */
  object-fit: contain; /* Assure que l'image s'adapte sans être déformée */
  display: block; /* S'assure que l'image se comporte comme un bloc */
  margin: 0 auto; /* Pour centrer l'icône horizontalement si son parent est un bloc */
}

/* Si tu veux que l'icône elle-même (le div.icon) ait aussi un style particulier */
.feature-card .icon {
  /* Supprime toutes les propriétés qui définissent la taille ou la position du div.icon */
  /* qui étaient là pour l'emoji, par exemple : */
  /* font-size: 3rem; */
  /* line-height: 1; */
  /* display: flex; */
  /* align-items: center; */
  /* justify-content: center; */
  /* ou tout ce qui pourrait interférer avec la taille de l'image */

  /* Assure-toi que ce conteneur n'impose pas de dimensions fixes */
  /* et qu'il permette à l'image de se centrer */
  text-align: center; /* Pour centrer l'image si le div.icon est en ligne */
  margin-bottom: 1rem; /* Un peu d'espace sous l'icône */
}

/* Optionnel : Ajuste la taille des h3 pour qu'ils ne soient pas trop serrés */
.feature-card h3 {
  font-size: 1.5rem; /* Ajuste selon ton design */
  margin-top: 0.5rem; /* Un peu d'espace au-dessus du titre */
}

/* =========================================
   STYLES DES ONGLETS (TABS)
   Pour Curriculum & Admission
   ========================================= */
.tabs-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.tabs-nav {
    display: flex;
    border-bottom: 2px solid var(--color-border);
    margin-bottom: 2rem;
    flex-wrap: wrap; /* Permet aux onglets de passer à la ligne sur petit écran */
}

.tab-button {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    padding: 1rem 1.5rem;
    cursor: pointer;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px; /* Pour aligner avec la bordure */
    color: var(--color-dark);
    transition: all 0.3s ease;
}

.tab-button:hover {
    color: var(--color-primary);
}

.tab-button.active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}

.tab-content {
    display: none; /* Caché par défaut */
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block; /* Montré si actif */
}

/* Animation d'apparition */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Liste stylisée pour les onglets (utilisée dans Curriculum) */
.steps-list {
    list-style: none;
    padding-left: 0;
}
.steps-list li {
    font-size: 1rem;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: flex-start;
}
.steps-list li strong {
    color: var(--color-primary);
    margin-right: 5px;
}

/* === CORRECTIF MENU MOBILE === */
@media (max-width: 768px) {
    /* On force l'affichage du bouton hamburger */
    .hamburger { display: flex; }

    /* Le menu est caché par défaut mais prêt à apparaître */
    .main-nav {
        display: none; 
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: white;
        border-bottom: 2px solid var(--color-primary);
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        z-index: 9999; /* Le secret est ici : ça le fait passer au-dessus de tout */
    }

    /* Quand le JS ajoute la classe 'open', on force l'affichage en bloc */
    .main-nav.open {
        display: block !important;
    }
    
    /* On remet les liens en colonne */
    .main-nav ul { flex-direction: column; text-align: center; }
    .main-nav li { margin: 0; padding: 1rem 0; border-top: 1px solid #eee; }
}