/* Variables de couleur réorganisées */
:root {
    /* Couleurs principales */
    --color-primary: #D32F2F;
    --color-primary-dark: #0D47A1;
    --color-primary-light: #FF6659;
    --color-secondary: #1976D2;
    --color-secondary-dark: #c62a28;
    --color-secondary-light: #63A4FF;
    --color-accent: #FFD700;
    --color-text: #333333;
    --color-light: #FFFFFF;
    --color-light-gray: #F5F5F5;
    --color-medium-gray: #E0E0E0;
    --color-dark-gray: #353535;
    --color-white: #FFFFFF;
    --color-black: #000000;

    /* Espacements */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;

    /* Tailles de police */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-md: 1.25rem;
    --text-lg: 1.5rem;
    --text-xl: 2rem;
    --text-xxl: 3rem;

    /* Bordures */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;

    /* Ombres */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 8px rgba(0,0,0,0.15);
    --shadow-lg: 0 8px 16px rgba(0,0,0,0.2);
}

/* Reset et styles de base améliorés */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--color-text);
    line-height: 1.6;
    background-color: var(--color-light-gray);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3, h4 {
    margin-bottom: var(--space-sm);
    /* line-height: 1.2; */
}

p {
    margin-bottom: var(--space-sm);
}

a {
    text-decoration: none;
    color: var(--color-secondary);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-primary);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
   height: auto;
    display: block;
}
.img_h{
    height: 300px;
}

/* Boutons améliorés */
.btn {
    display: inline-block;
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: var(--space-xs) var(--space-md);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    margin-top: var(--space-sm);
    box-shadow: var(--shadow-sm);
    will-change: transform, box-shadow;
}

.btn:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Header avec logo agrandi */
.header-container {
    position: relative;
    width: 100%;
    margin-bottom: var(--space-md);
}

.logo-container {
    width: 250px; /* Taille agrandie */
    margin: 0 auto;
    padding: var(--space-sm) 0;
    transition: transform 0.3s ease;
}

.logo-container:hover {
    transform: scale(1.05);
}

.banner {
    height: 300px;
    background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), 
                       url('../images/entrée.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat; /* Évite la répétition */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-white);
}

.banner-content {
    max-width: 800px;
    padding: 0 var(--space-md);
}

.banner h1 {
    font-size: var(--text-xxl);
    margin-bottom: var(--space-sm);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.banner p {
    font-size: var(--text-lg);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Navigation améliorée */
nav {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav ul {
    display: flex;
    justify-content: center;
    padding: var(--space-sm);
}

nav ul li {
    margin: 0 var(--space-md);
    position: relative;
}

nav ul li a {
    color: var(--color-white);
    font-weight: 600;
    padding: var(--space-xs) 0;
    position: relative;
    transition: all 0.3s;
}

nav ul li a:hover {
    color: var(--color-accent);
}

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

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

.menu-toggle {
    display: none;
    cursor: pointer;
    padding: var(--space-sm);
    text-align: right;
    color: var(--color-white);
    font-size: var(--text-lg);
}

/* Sections principales */
main {
    flex: 1;
    padding: var(--space-lg) 5%;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

section {
    margin-bottom: var(--space-xl);
}


/* Styles de base */
.about-section {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    font-family: 'Arial', sans-serif;
}

.about-header {
    text-align: center;
    margin-bottom: 2rem;
    animation: fadeInDown 1s ease;
}

.about-header h2 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.about-header h3 {
    font-size: 1.5rem;
    color: #3498db;
    margin-bottom: 1rem;
}

.about-header h1 {
    font-size: 2rem;
    color: #e74c3c;
    margin: 1rem 0;
}

.date-container {
    background-color: #f8f9fa;
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    display: inline-block;
    margin: 0.5rem 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    animation: pulse 2s infinite;
}

.emoji {
    margin-right: 8px;
}

.colo-section {
  margin: 60px 10px;
 
}

.colo-card-pro {
  max-width: 1200px;
  margin: auto;
  background: #fff;
  border-radius: 18px;
  padding: 40px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}
@media (max-width: 768px) {
  .colo-card-pro {
    width: 95%;           /* presque toute la largeur de l’écran */
    padding: 25px;
  }
}
/* TEXTE */
.colo-title {
  text-align: center;
  font-size: 2rem;
  background: linear-gradient(90deg, #c0392b, #3b4cca);
  -webkit-background-clip: text;
  color: transparent;
  margin-bottom: 10px;
}

.colo-subtitle {
  text-align: center;
  font-weight: 600;
  margin-bottom: 25px;
}


/* TEXTE ANIMÉ */
.colo-text,
.colo-info,
.colo-list li {
  opacity: 0;
  transform: translateY(30px) scale(0.95);
  transition: all 0.6s ease-out;
}

/* Quand la carte colo devient visible */
.colo-card-pro.visible .colo-text,
.colo-card-pro.visible .colo-info {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.colo-card-pro.visible .colo-list li {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Staggered animation pour chaque li */
.colo-list li {
  transition-delay: 0s; /* sera remplacé par JS */
}
/* Transforme chaque li en bulle */
/* Liste transformée en bulles */
.colo-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px; /* espace entre bulles */
  padding-bottom: 30px;
   padding-top: 30px;
  list-style: none;
}

/* Chaque li = bulle */
.colo-list li {
  background-color: #3e4fd2; 
  /* Pour changer couleur, tu peux mettre #3b4cca pour bleu-violet */
  color: white;
  font-weight: 600;
  font-size: 0.95rem; /* un peu plus petit */
  line-height: 1.3; /* pour permettre deux lignes */
  text-align: center;
  padding: 8px 14px; /* bulle plus petite */
  border-radius: 40px; /* très arrondi */
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  cursor: default;

  /* Animation initiale */
  opacity: 0;
  transform: translateY(20px) scale(0.85);
  transition: all 0.5s ease-out;

  white-space: normal; /* permet au texte de passer sur deux lignes */
  word-break: break-word;
}

/* Animation flottante */
@keyframes float {
  0%   { transform: translateY(0px) translateX(0px); }
  25%  { transform: translateY(-3px) translateX(2px); }
  50%  { transform: translateY(0px) translateX(-2px); }
  75%  { transform: translateY(3px) translateX(1px); }
  100% { transform: translateY(0px) translateX(0px); }
}

.colo-list li.float {
  animation: float 3s ease-in-out infinite;
}

.colo-cta-pro {
  display: block;               /* OBLIGATOIRE */
  width: fit-content;           /* bouton ajusté au texte */
  margin: 35px auto 10px;       /* centrage horizontal */
  padding: 16px 38px;
  border-radius: 40px;
  background: linear-gradient(90deg, #c0392b, #3b4cca);
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(59, 76, 204, 0.35);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.colo-cta-pro:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(192, 57, 43, 0.45);
}

.colo-video-wrapper {
  width: 100%;
  max-width: 1100px;
  margin: 50px auto;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 14px 35px rgba(0,0,0,0.25);
}

.colo-video-wrapper video {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}


/* TITRE PHOTOS */
.colo-gallery-title {
  text-align: center;
  margin: 50px 0 25px;
  font-size: 1.4rem;
}

/* GALERIE */
.colo-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.media-card {
  border-radius: 16px;
  overflow: hidden;
  transform: scale(0.95);
  opacity: 0;
  transition: all 0.6s ease;
}

.media-card img,
.media-card video {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.media-card:hover {
  transform: scale(1);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .colo-card-pro {
    padding: 25px;
    width: 100%;
  }

  .media-card img,
  .media-card video {
    height: 180px;
  }
}


/* Layout principal */
.about-content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    align-items: flex-start;
}

.special-offer-container {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
}

.about-images {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    min-width: 300px;
    max-width: 500px;
}

/* Styles pour l'offre spéciale */
.special-offer {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    animation: fadeInLeft 1s ease;
    min-height: 620px;
}

.offer-header {
    margin-bottom: 1.5rem;
    text-align: center;
}

.offer-badge {
    background-color: #e74c3c;
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.offer-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.offer-list li {
    padding: 0.8rem 0;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
}
.highlight-offer {
    justify-content: center;
    border-bottom: none;
}

.highlight-offer .offer-text {
    font-weight: bold;
    text-align: center;
    font-size: 1.1rem;
}

.discount-container {
    text-align: center;
    margin: 1rem 0;
}

.discount-badge {
    background-color: #2ecc71;
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    font-size: 1.5rem;
    font-weight: bold;
    display: inline-block;
}

.pricing-conditions {
    font-size: 0.9rem;
    color: #7f8c8d;
    text-align: center;
    margin: 1rem 0;
}
.group-warning {
    text-align: center;
    font-size: 0.95rem;
    color: #e67e22;
    background-color: #fff3e0;
    padding: 0.8rem;
    border-radius: 8px;
    margin: 1.2rem 0;
}

.cta-button {
    display: block;
    background-color: #3498db;
    color: white;
    text-align: center;
    padding: 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    margin-top: 1.5rem;
}

.cta-button:hover {
    background-color: #2980b9;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(41, 128, 185, 0.4);
}

/* Styles pour les images */
.image-container {
    flex: 1;
    min-width: 250px;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    animation: fadeInRight 1s ease;
}

.image-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.image-container img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.image-container:hover img {
    transform: scale(1.05);
}

.image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.8rem;
    text-align: center;
    font-weight: bold;
}

/* Styles pour la boîte d'avantages */
.benefits-box {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 2rem;
    margin-top: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    animation: fadeInUp 1s ease;
}

.benefits-box h3 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.benefits-list {
    list-style: none;
    padding: 0;
    max-width: 800px;
    margin: 0 auto;
}

.benefits-list li {
    padding: 0.8rem 0;
    display: flex;
    align-items: center;
}

.benefit-icon {
    color: #2ecc71;
    font-weight: bold;
    margin-right: 1rem;
    font-size: 1.2rem;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .about-content {
        flex-direction: column;
    }

    .special-offer-container, .about-images {
        max-width: 100%;
    }

    .about-header h2 {
        font-size: 2rem;
    }

    .about-header h3 {
        font-size: 1.2rem;
    }

    .about-header h1 {
        font-size: 1.5rem;
    }
    
    .image-container {
        min-width: 100%;
    }
}
/* Section Tarifs améliorée */
.pricing-section {
    background-color: var(--color-white);
    padding: var(--space-xl) var(--space-md);
    margin: var(--space-xl) 0;
    border-top: 1px solid var(--color-medium-gray);
    border-bottom: 1px solid var(--color-medium-gray);
}

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

.pricing-section h2 {
    text-align: center;
    margin-bottom: var(--space-xl);
    font-size: var(--text-xl);
    color: var(--color-primary-dark);
    position: relative;
}

.pricing-section h2::after {
    content: "";
    display: block;
    width: 80px;
    height: 4px;
    background: var(--color-primary);
    margin: var(--space-sm) auto 0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-md);
    margin-top: var(--space-md);
}

.pricing-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-medium-gray);
    transition: transform 0.3s ease;
}

.pricing-card.highlighted {
    border: 2px solid var(--color-primary);
    position: relative;
}

.highlighted::before {
    content: "★";
    color: var(--color-accent);
    position: absolute;
    top: -0.1px;
    right: 15px;
    font-size: var(--text-lg);
    text-shadow: 0 2px 3px rgba(0,0,0,0.2);
}
.price__1{
    font-size: var(--text-xl);
     font-weight: bold;
      text-align: center;
}
.price {
    font-size: var(--text-xl);
    font-weight: bold;
    color: var(--color-primary);
    margin: var(--space-sm) 0 var(--space-xs);
    text-align: center;
}

.price-subtitle {
    color: var(--color-dark-gray);
    margin-bottom: var(--space-md);
    font-size: var(--text-base);
    text-align: center;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: var(--space-md) 0;
}

.pricing-features li {
    padding: var(--space-xs) 0;
    position: relative;
    padding-left: var(--space-lg);
}

.pricing-features li::before {
    content: "✓";
    color: var(--color-primary);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.price-breakdown {
    margin: var(--space-md) 0;
    padding: var(--space-xs);
    background: var(--color-light-gray);
    border-radius: var(--radius-sm);
}

.price-breakdown p {
    margin-bottom: var(--space-xs);
}

/* Section Classes améliorée */
.classes-section {
    padding: var(--space-xl) var(--space-md);
    background-color: var(--color-light-gray);
}

.classes-section h2 {
    text-align: center;
    margin-bottom: var(--space-xl);
    font-size: var(--text-xl);
    color: var(--color-primary-dark);
    position: relative;
}

.classes-section h2::after {
    content: "";
    display: block;
    width: 80px;
    height: 4px;
    background: var(--color-primary);
    margin: var(--space-sm) auto 0;
}

.classes-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-md);
    max-width: 1200px;
    margin: 0 auto;
}

.class-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.class-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.class-header {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: var(--color-white);
    padding: var(--space-md);
    text-align: center;
    position: relative;
}

.class-header::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--color-accent);
}

.class-header h3 {
    font-size: var(--text-lg);
    margin: 0;
    font-weight: 700;
}

.class-body {
    padding: var(--space-md);
    display: flex;
    flex-direction: column;
    height: calc(100% - 80px);
}

.class-body ul {
    margin: 0 0 var(--space-md) 0;
    padding: 0;
    flex-grow: 1;
}

.class-body li {
    margin-bottom: var(--space-xs);
    padding-left: var(--space-md);
    position: relative;
    color: var(--color-text);
    line-height: 1.5;
}

.class-body li::before {
    content: "•";
    color: var(--color-primary);
    font-size: var(--text-lg);
    position: absolute;
    left: 0;
    top: -2px;
}

.class-body .btn {
    width: 100%;
    padding: var(--space-xs);
    /* font-size: var(--text-base);
    font-weight: 600; */
    margin-top: auto;
   margin-bottom: 30px;
}

/* Section Enseignant améliorée */
.teacher-profile {
    background-color: #FFF8F0;
    padding: var(--space-xl) 0;
    margin: var(--space-xl) 0;
    position: relative;
}

.teacher-profile::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,215,0,0.05) 0%, rgba(255,255,255,0) 50%);
    z-index: 0;
}

.teacher-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-xl);
    position: relative;
    z-index: 1;
}

.teacher-photo {
    flex: 1 1 200px;
    position: relative;
}

.teacher-photo::after {
    content: "";
    position: absolute;
    bottom: -10px;
    right: -10px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--color-accent);
    border-radius: 50%;
    z-index: -1;
}

.profile-image {
    width: 100%;
    max-width: 350px;
    height: auto;
    border-radius: 50%;
    border: 5px solid var(--color-primary);
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
}

.teacher-photo:hover .profile-image {
    transform: scale(1.03);
}

.teacher-bio {
    flex: 2 1 500px;
}

.teacher-bio h2 {
    color: var(--color-primary);
    font-size: var(--text-xl);
    margin-bottom: var(--space-md);
    position: relative;
    display: inline-block;
}

.teacher-bio h2::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--color-primary);
}

.teacher-desc {
    line-height: 1.8;
}

.teacher-desc p {
    margin-bottom: var(--space-sm);
    position: relative;
    padding-left: var(--space-md);
}

/* .teacher-desc ul {
    margin-left: var(--space-md);
    margin-bottom: var(--space-md);
}

.teacher-desc li {
    margin-bottom: var(--space-xs);
    list-style-type: disc;
} */

/* Section À propos des cours */
.courses-section {
    background-color: #f9f9f9;
    padding: 60px 0;
}

.courses-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 0 20px;
}

.courses-image {
    flex: 1;
    min-width: 300px;
}

.courses-img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.courses-content {
    flex: 1;
}

.courses-content h2 {
    color: #2c3e50;
    font-size: 2.2rem;
    margin-bottom: 20px;
    position: relative;
}

.courses-content h2:after {
    content: '';
    position: absolute;
    width: 60px;
    height: 4px;
    background: #3498db;
    bottom: -10px;
    left: 0;
}

.courses-description p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: #555;
}

.skills-list {
    list-style-type: none;
    padding-left: 0;
    margin: 20px 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.skills-list li {
    padding: 8px 12px;
    background: rgba(52, 152, 219, 0.1);
    border-left: 3px solid #3498db;
    border-radius: 4px;
}

/* Responsive */
@media (max-width: 768px) {
    .courses-container {
        flex-direction: column;
    }
    
    .courses-image {
        width: 100%;
    }
    
    .skills-list {
        grid-template-columns: 1fr;
    }
}
/* Animation d'entrée */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Carte photo */
/* .gallery-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px; 
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto;
}
.photo-card {
    width: 300px;
    height: 220px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    position: relative;
    transition: all 0.3s ease;
     flex: 0 0 calc(33.333% - 20px); 
      margin-bottom: 20px;
}

.photo-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

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

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

.photo-caption {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    background: rgba(52, 152, 219, 0.9);
    color: white;
    padding: 15px;
    transition: bottom 0.3s ease;
    text-align: left;
}

.photo-card:hover .photo-caption {
    bottom: 0;
}

.caption-title {
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 1.1rem;
}


@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.photo-card {
    animation: fadeIn 0.6s ease forwards;
    opacity: 0;
}

.photo-card:nth-child(1) { animation-delay: 0.1s; }
.photo-card:nth-child(2) { animation-delay: 0.2s; }
.photo-card:nth-child(3) { animation-delay: 0.3s; }
.photo-card:nth-child(4) { animation-delay: 0.4s; }
.photo-card:nth-child(5) { animation-delay: 0.5s; }
.photo-card:nth-child(6) { animation-delay: 0.6s; }
.photo-card:nth-child(7) { animation-delay: 0.7s; }



@media (max-width: 1024px) {
    .photo-card {
        width: calc(50% - 20px);
         flex: 0 0 calc(50% - 20px);
    }
}

@media (max-width: 768px) {
    .photo-card {
        width: 100%;
        max-width: 400px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-description {
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.8rem;
    }
    
    .see-more {
        padding: 10px 25px;
    }
} */
/* Section Galerie */
.gallery-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4efe9 100%);
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #2c3e50;
    position: relative;
    display: inline-block;
}

.section-title:after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background: #3498db;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.section-description {
    margin-bottom: 40px;
    color: #555;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Conteneur Galerie - Solution Grid */
.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto;
    justify-items: center; /* Centre les cartes dans leur cellule */
}

/* Carte Photo */
.photo-card {
    width: 100%;
    max-width: 300px;
    height: 220px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    position: relative;
    transition: all 0.3s ease;
    opacity: 1; /* 🔧 CORRECTION : ne pas forcer opacity à 0 */
}

.photo-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

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

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

.photo-caption {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    background: rgba(52, 152, 219, 0.9);
    color: white;
    padding: 15px;
    transition: bottom 0.3s ease;
    text-align: left;
}

.photo-card:hover .photo-caption {
    bottom: 0;
}

.caption-title {
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

/* Animation des cartes */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 🔧 CORRECTION : on supprime l’animation automatique sur TOUTES les cartes */
/*
.photo-card {
    animation: fadeIn 0.6s ease forwards;
    opacity: 0;
}
*/

.photo-card:nth-child(1) { animation-delay: 0.1s; }
.photo-card:nth-child(2) { animation-delay: 0.2s; }
.photo-card:nth-child(3) { animation-delay: 0.3s; }
.photo-card:nth-child(4) { animation-delay: 0.4s; }
.photo-card:nth-child(5) { animation-delay: 0.5s; }
.photo-card:nth-child(6) { animation-delay: 0.6s; }
.photo-card:nth-child(7) { animation-delay: 0.7s; }
.photo-card:nth-child(8) { animation-delay: 0.8s; }
.photo-card:nth-child(9) { animation-delay: 0.9s; }

/* Bouton Voir plus */
.see-more-text {
    background: none;       
    border: none;           
    color: #3498db;         
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    padding: 0;
    margin: 0;
}

.see-more-text:hover {
    color: #2980b9;
    text-decoration: none;
}

/* 🔧 CORRECTION IMPORTANTE : bouton dans le grid */
.gallery-button {
    grid-column: 1 / -1; /* prend toute la largeur du grid */
    display: flex;
    justify-content: center;
    margin-top: 5px; /* rapproché des photos */
    margin-bottom: 0;
}

/* Responsive */
@media (max-width: 1024px) {
    .gallery-container {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .gallery-container {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .photo-card {
        max-width: 400px;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.8rem;
    }
    
    .see-more {
        padding: 10px 25px;
    }
}

/* Cartes cachées par défaut */
.photo-card.is-hidden {
    display: none; /* 🔧 CORRECTION : plus fiable que height/opacity */
}

/* Cartes révélées */
.photo-card.is-visible {
    display: block;
    animation: fadeIn 0.6s ease forwards;
}

.photo-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    background: black;
}

/* Footer amélioré */
footer {
    background-color: var(--color-text);
    color: var(--color-white);
    padding: var(--space-xl) 5% var(--space-md);
    position: relative;
}

footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent), var(--color-primary-dark));
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xl);
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section {
    flex: 1 1 300px;
}

.footer-section h3 {
    color: var(--color-primary);
    margin-bottom: var(--space-md);
    font-size: var(--text-md);
    position: relative;
    display: inline-block;
}

.footer-section h3::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--color-accent);
}

.footer-section p {
    margin-bottom: var(--space-xs);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.footer-logo {
    width: 200px;
    margin-bottom: var(--space-md);
}

.social-with-text {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.social-with-text a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-white);
    text-decoration: none;
    transition: color 0.3s;
    padding: 8px;
    border-radius: var(--radius-sm);
}

.social-with-text a:hover {
    background-color: rgba(255,255,255,0.1);
}

.social-with-text i {
    color: var(--color-accent);
}
/* Responsive Design */
@media (max-width: 992px) {
    .logo-container {
        width: 200px;
    }
}

@media (max-width: 768px) {
    /* Header */
    .banner {
        height: 200px;
    }
    
    .banner h1 {
        font-size: var(--text-xl);
    }
    
    .banner p {
        font-size: var(--text-md);
    }
     #titre{
        margin-top: 30px;
    }
    /* Navigation */
    nav ul {
        display: none;
        flex-direction: column;
        padding: 0;
    }

    nav ul.show {
        display: flex;
    }

    nav ul li {
        margin: 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    nav ul li a {
        display: block;
        padding: var(--space-sm);
    }

    .menu-toggle {
        display: block;
    }

    /* About Section */
    .about-section {
        flex-direction: column;
        padding: var(--space-md);
    }

    .special-offer {
        padding: var(--space-sm);
    }
    img{
        width: 100%;
    }
    /* Correction bouton offre spéciale */
    .special-offer .cta-button {
        width: 90%;
        max-width: 300px;
        margin: 0 auto;
        padding: var(--space-sm);
        white-space: normal;
    }
      
    /* Pricing Section */
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .pricing-card {
        padding: var(--space-md);
    }

    /* Alignement étoile jaune */
    .pricing-card.featured .price {
       display: inline-flex;
        align-items: center;
        gap: var(--space-xs);
    }
    
    .pricing-card.featured .star-icon {
        position: static;
        transform: none;
        margin-left: var(--space-xs);
    }

    /* Teacher Profile */
    .teacher-container {
        flex-direction: column;
        text-align: center;
    }

    .teacher-photo::after {
        display: none;
    }

    .teacher-bio {
        text-align: left;
    }
    .teacher-photo{
            flex: 1 1 100px;
    }

    /* Footer ajustements */
    footer {
        padding: var(--space-md) 0;
    }
    
    .footer-content {
        padding: 0 var(--space-md);
    }
    
    .footer-bottom {
        margin-top: var(--space-md);
        padding-top: var(--space-md);
    }
}

@media (max-width: 480px) {
    /* About Images */
    .about-images {
        flex-direction: column;
    }

    .image-container {
        width: 100%;
    }

    /* Pricing Cards */
    .price {
        font-size: var(--text-lg);
    }

    /* Classes Section */
    .classes-container {
        grid-template-columns: 1fr;
    }
    
    /* Offer Section */
    .discount-badge {
        font-size: var(--text-md);
        padding: var(--space-xs) var(--space-sm);
    }
    
    .offer-text {
        font-size: var(--text-sm);
    }
    
    .special-offer .cta-button {
        width: 100%;
        padding: var(--space-xs) var(--space-sm);
        font-size: var(--text-md);
    }
    
    /* Teacher Profile */
    .teacher-bio h2 {
        font-size: var(--text-lg);
    }
    
    .teacher-desc p {
        padding-left: var(--space-sm);
    }
    
    .teacher-desc p::before {
        font-size: var(--text-md);
    }
    
    /* Footer mobile */
    .footer-links {
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: var(--space-sm);
    }
    #titre{
        margin-top: 30px;
    }
}
/* Style de base */
.gallery-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4efe9 100%);
    text-align: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #2c3e50;
    position: relative;
    display: inline-block;
}

.section-title:after {
    content: '';
    position: absolute;
    width: 50%;
    height: 4px;
    background: #3498db;
    bottom: -10px;
    left: 25%;
    border-radius: 2px;
}

.section-description {
    margin-bottom: 30px;
    color: #555;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Conteneur galerie */
.gallery-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto;
}
@media (max-width: 768px) {
    .see-more {
        margin-top: 15px !important;
    }
}
