/* --- Couleurs inspirées de l'image (pour la reproduction) --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes zoomIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.body {
  background-color: #fff;
  color: #222;
 
}

/* === Container === */


.bg-dark-blue-repro {
    background-color: #c78c38; /* Couleur de l'en-tête de la colonne */
}

.bg-light-blue-repro {
    background-color: wheat; /* Couleur du pied de la colonne */
    color: white;
}

.text-dark-blue-repro {
    color: rgb(7, 7, 6);
}

/* --- Grille de Niveaux (Reproduction du Modèle) --- */
/* --- NOUVEAU CSS POUR L'EFFET : SEUL L'EN-TÊTE SE DÉPLACE --- */

/* 1. GRILLE CONTENEUR : Retirer tout alignement forcé, utiliser le flux normal */
/* --- CSS CORRIGÉ FINAL : EFFET ESCALIER SANS CHEVAUCHEMENT --- */

/* 1. GRILLE CONTENEUR : La CLÉ est ici */
.level-header {
  background-color: black;
  color: white;
 
}
.levels-grid{
    background-color: #0770a5;
    width: 100%;
    margin-top: -49px;
    max-width: 2000px;
}


.levels-grid-6-col {
    display: grid;
    grid-template-columns: repeat(6, 1fr); 
    gap: 10px; 
    
    /* TRÈS IMPORTANT : Aligne la base de TOUTES les colonnes */
    align-items: flex-end; 
    
    /* Compense le déplacement vertical des cartes */
    padding-top: 80px; /* Doit être au moins égal au décalage maximal (70px) */
    max-width: 1200px;
    width: 90%;
    margin: -50px auto 60px;
    
    
    
}

/* 2. Colonne : Définition de base */
.level-column-repro {
    display: flex;
    flex-direction: column;
    min-width: 150px; 
    border: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    border-radius: 10px;
    overflow: hidden;
    height: auto; 
    font-size: 19px;
    transition: margin-top 0.3s ease;
    background-color: white;
}
.level-column-repro:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

/* 3. CLÉ DE L'EFFET ESCALIER : margin-top négatif progressif */
/* Le margin-top négatif fait remonter la colonne entière, 
   mais l'align-items: flex-end les force à garder la base commune. */
.levels-grid-6-col > .level-column-repro:nth-child(1) { margin-top: -60px; }
.levels-grid-6-col > .level-column-repro:nth-child(2) { margin-top: -50px; }
.levels-grid-6-col > .level-column-repro:nth-child(3) { margin-top: -40px; }
.levels-grid-6-col > .level-column-repro:nth-child(4) { margin-top: -30px; }
.levels-grid-6-col > .level-column-repro:nth-child(5) { margin-top: -20px; }
.levels-grid-6-col > .level-column-repro:nth-child(6) { margin-top: 0px; } /* Reste à la base */


/* 4. CONTENU ET FOOTER : Assurer la cohérence verticale */

/* Min-Height Uniforme : Assure que le texte ne déforme pas l'alignement de la base */
.level-column-repro .level-content {
    flex-grow: 1; 
    padding: 1rem 0.5rem;
    font-size: 0.9rem;
    /* Appliquer une min-height suffisamment grande et uniforme pour toutes les colonnes */
    min-height: 500px; 
    margin-top: 0; /* Important : retirer la marge compensatoire précédente */
}

/* Footer aligné en bas */
.level-footer {
    margin-top: auto; 
    padding: 0.75rem 0.5rem;
    border-top: 1px solid #eee;
}

/* 5. Réinitialisation Responsive */
@media (max-width: 1200px) {
    .levels-grid-6-col {
        grid-template-columns: repeat(3, 1fr);
        align-items: stretch;
        padding-top: 0; 
    }
    .level-column-repro {
        margin-top: 0 !important; /* Retirer le margin-top négatif sur mobile */
    }
    .level-column-repro .level-content {
        min-height: auto; 
    }
}

.para{
    max-width: 1200px;
    text-align: center;
    margin-left: 200px;
    justify-content: center;
}
.hero {
  background: linear-gradient(rgba(0, 91, 170, 0.65), rgba(0, 91, 170, 0.65)),
    url('../images/french-bg.jpg') center/cover no-repeat;
  color: var(--text-light);
  text-align: center;
  padding: 120px 20px;
  animation: fadeIn 1.5s ease-out;
  margin: -48px -200px 3rem;
}

.hero .content {
  max-width: 800px;
  margin: 0 auto;
  animation: fadeInUp 1.5s ease-out;
}

.hero h2 {
  font-size: 60px;
  margin-bottom: 15px;
  font-weight: 700;
}

.hero p {
  font-size: 1.2rem;
  opacity: 0.9;
}


/* HERO */
/* .hero {
    background: linear-gradient(90deg, rgba(255,166,26,0.1), rgba(255,166,26,0.05));
    text-align: center;
    padding: 4rem 0;
    animation: fadeInUp 1s ease;
    border-radius: 0px;
  
    
}

.hero h1 {
    font-size: 2.5rem;
    color: #111;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    color: #444;
    margin-bottom: 1.5rem;
} */

.hero .cta {
    background-color: #ffa31a;
    color: #111;
    padding: 1rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.hero .cta:hover {
    background-color: #000;
    color: #fff;
}


.english-hero {
  position: relative;
  background-size: cover;
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/télécharger (9).jpeg') center/cover;
  color: #fff;
  text-align: center;
  padding: 100px 20px;
 
  height: 80vh;
  animation: fadeIn 1.2s ease;
  
  
}
.english-hero content{
  animation: fadeInUp 1s ease;
}
/* --- Nouvelle Section: Background and Experience --- */
.background-section {
    background-color: #fff; /* Fond blanc */
    padding: 60px 0 80px;
    color: black;
    text-align: center;
    margin-top: -60px;
}
.background-section-2 {
    background-color: #fff; /* Fond blanc */
    padding: 60px 0 80px;
    color: black;
    text-align: center;
    margin-top: -100px;
}

.background-title {
    font-size: 60px;
    font-weight: 700;
    margin-bottom: 80px;
    margin-top: -30px;
}

/* Mise en page en colonnes (Utilise la même structure de grille mais on échange l'ordre si nécessaire) */
.background-layout-grid {
    display: grid;
    /* Crée deux colonnes de taille égale */
    grid-template-columns: 1fr 1fr; 
    gap: 2px;
    max-width: 1500px; /* Largeur maximale pour le contenu */
    margin: 0 auto;
    padding: 0 40px; 
    text-align: left;
    align-items: center; /* Centre verticalement le texte avec l'image */
}

/* Bloc d'Image */
.background-image-block {
    /* L'image est un élément <img> donc pas de background-image nécessaire */
    overflow: hidden; 
}

.background-photo {
    width: 95%;
    height: 500px;
    display: block;
    margin-left: 30px;
}

/* Bloc de Texte */
.background-text-block {
    padding-left: 20px; /* Espacement interne pour le bloc de texte */
    top: 30px;
    margin-top: 10px;
    margin-bottom: 130px;
}

.background-text-block h3 {
    font-size: 38px;
    font-weight: bold;
    line-height: 1.3;
    margin-bottom: 30px;
    
}

.background-text-block p {
    font-size: 19px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.background-text-block strong {
    font-weight: bold; /* Pour les mots en gras */
}


/* Adapter pour les petits écrans (mobile) */
@media (max-width: 900px) {
    .background-layout-grid {
        /* Les colonnes s'empilent en une seule colonne */
        grid-template-columns: 1fr; 
        
        /* Sur mobile, on veut généralement l'image AVANT le texte si on inverse l'ordre dans le HTML */
        /* Si l'ordre HTML est Image puis Texte, pas besoin de changer l'ordre de la grille */
    }
    
    .background-text-block {
        padding-left: 0;
        margin-top: 30px;
    }
}

/* --- Pourquoi apprendre le français --- */
.why-section {
  background-color: var(--blue-light);
  padding: 60px 20px;
  border-radius: 16px;
  margin: 60px auto;
  max-width: 1100px;
  box-shadow: var(--shadow-soft);
  animation: fadeInUp 1.2s ease;
  background-image: url('../images/france-map.png');
  background-repeat: no-repeat;
  background-position: right bottom;
  background-size: 200px;
}

.why-section h2 {
  text-align: center;
  color: var(--blue-main);
  margin-bottom: 20px;
}

.why-section ul {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.why-section li {
  margin-top: 20px;
  background: rgb(195, 245, 248);
  padding: 15px 25px;
  border-radius: 50px;
  box-shadow: var(--shadow-soft);
  font-weight: 500;
  transition: var(--transition);
}

.why-section li:hover {
  transform: translateY(-5px);
  background: black;
  color: rgb(255, 255, 255);
}
.section-title {
  text-align: center;
  color: #ff6600;
  font-size: 2rem;
  margin: 50px 0 30px;
  position: relative;
}
/* --- Programmes --- */
.programs-section {
  padding: 60px 20px;
  background-color: var(--gray-light);
  background-image: url('../images/aesthetic library.jpeg');
  background-size: cover;
  background-attachment: fixed;
  margin: -48px -200px 3rem;
}

.programs-section h2 {
  text-align: center;
  color: wheat;
  margin-bottom: 40px;
  animation: fadeInUp 1s ease;
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.program {
  background: rgba(12, 12, 12, 0.9);
  border-radius: 16px;
  padding: 25px;
  box-shadow: var(--shadow-soft);
  text-align: center;
  transition: var(--transition);
  animation: zoomIn 1.2s ease;
}

.program:hover {
  transform: translateY(-8px) scale(1.03);
}

.program h3 {
  color: wheat;
}
.program p {
  color: wheat;
}
/* --- Méthodologie --- */
.method-section {
  padding: 60px 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.method-section h2 {
  text-align: center;
  color: var(--blue-main);
  margin-bottom: 30px;
}

.method-section ol {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 10px;
}

.method-section li {
  background: var(--blue-light);
  padding: 10px 15px;
  border-radius: 10px;
}

/* --- Certifications --- */
.certif-section {
  background: var(--gray-light);
  padding: 60px 20px;
  text-align: center;
}

.certif-section h2 {
  color: var(--blue-main);
  margin-bottom: 20px;
}
.section-title::after {
  content: "";
  display: block;
  width: 70px;
  height: 4px;
  background: #ff6600;
  margin: 10px auto;
  border-radius: 2px;
}

/* .level-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  padding: 0 40px;
}

.level-card {
  background: #fff;
  border: 2px solid #000;
  border-top: 6px solid #ff6600;
  padding: 20px;
  transition: 0.3s;
  border-radius: 10px;
}

.level-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
} */

.tips-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  padding: 0 40px;
}

.tip iframe {
  width: 100%;
  height: 220px;
  border-radius: 8px;
}

.tip {
  flex: 1;
  min-width: 320px;
  background: #fff;
  padding: 15px;
  border-radius: 10px;
  border-left: 6px solid #ff6600;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: 0.3s;
}

.tip:hover {
  transform: scale(1.02);
}
.resource-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
  padding: 20px 40px 60px;
}

.resource-card {
  background: #fff;
  border-radius: 10px;
  border: 1px solid #ddd;
  width: 280px;
  text-align: center;
  transition: 0.3s;
  overflow: hidden;
}

.resource-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.resource-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

/* Tips Section */

.tips-section {
  background-color: #111;
  color: #fff;
  padding: 3rem 0;
  
  text-align: center;
  margin: -40px -200px 30px;
  height: 500px;
}
.tipss-section {
  background-color: #faf6ec;
  color: black;
  padding: 3rem 0;
  font-size: 19px;
  text-align: center;
  margin: -50px -200px 30px;
  height: 100%;
}

.tips-section h2 {
  color: #ffa31a;
  margin-bottom: 2rem;
}

.tips-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.tip {
  background-color: #222;
  border-radius: 12px;
  padding: 1.5rem;
  max-width: 300px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.tip h4 {
  margin-bottom: 0.8rem;
  color: #ffa31a;
}

.manuals-section{
  position: relative;
}
.manuals-section h2{
  text-align: center;
}

/* Manuals */
.manuals-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 2rem;
}

.manual {
  background-color: #faf6ec;
  border-radius: 12px;
  text-align: center;
  padding: 1rem;
  max-width: 250px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.3s;
}

.manual:hover {
  transform: translateY(-5px);
}

.manual img {
  max-width: 100%;
  border-radius: 10px;
  margin-bottom: 1rem;
}

.manual h4 {
  color: #111;
  margin-bottom: 0.5rem;
}

.btn-orange {
  display: inline-block;
  background-color: #ffa31a;
  color: #111;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  text-decoration: none;
  font-weight: 600;
}

.btn-orange:hover {
  background-color: #000;
  color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
  .tips-grid, .manuals-grid {
    flex-direction: column;
    align-items: center;
  }
}



/* Style pour le conteneur du bouton "En savoir plus" */
.text-center {
    text-align: center;
    margin-top: 50px;
}

/* Style du bouton "En savoir plus" */
.learn-more-btn {
    /* Utilise le style de base du bouton orange (défini dans les styles généraux) */
    font-size: 0.95rem; 
    padding: 0.9rem 1.7rem;
    border-radius: 25px;
    text-decoration: none;
    display: inline-block;
}
/* --- Vie culturelle --- */
.culture-section {
  padding: 60px 20px;
  background: var(--blue-light);
  text-align: center;
  background-image: url('../images/Eiffel Tower Heart Lock.jpeg');
  background-size: cover;
  background-position: center;
  color: #f6f7f8;
  margin: 48px -200px -100px;
  animation: fadeIn 2s ease;
}

.culture-section h2 {
  color: var(--blue-main);
  margin-bottom: 20px;
}
