/* Base Styles */
:root {
    /*
     * Palette du site public.
     *
     * Ces sept variables sont réglables par le webmaster depuis son profil
     * (Gestion du site > Apparence) : includes/header.php écrit, APRÈS ce
     * fichier, un bloc <style> qui les redéfinit. Un établissement dont le
     * logo est vert obtient donc un site vert sans qu'on touche ici.
     *
     * Corollaire : toute couleur de marque doit être écrite var(--…) et non
     * en dur, sinon elle ignorera le réglage du webmaster.
     */
    /* --primary-color:#3498db; */
    --primary-color:#a3000d;
    --primary-hover: #e74c3c;   /* survol des boutons principaux */
    --primary-dark: #82000a;    /* nuance foncée, dérivée de la principale */
    --primary-light: #f1d9db;   /* nuance très claire, pour les fonds teintés */
    --secondary-color: #f39c12;
    --secondary-hover: #f8ae37;
    --accent-color: #3498db;    /* dates d'actualités, liens « Lire plus » */
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
    --danger-color: #e74c3c;
    --warning-color: #f39c12;
    --success-color: #27ae60;
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Roboto', sans-serif;
    --transition: all 0.3s ease;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--dark-color);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary-color);
}

.section-subtitle {
    text-align: center;
    margin-bottom: 50px;
    color: #666;
    font-size: 1.1rem;
}

p {
    margin-bottom: 15px;
    font-size: 1rem;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: var(--border-radius);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: var(--box-shadow);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: var(--secondary-hover);
    transform: translateY(-3px);
    box-shadow: var(--box-shadow);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--box-shadow);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.header.scrolled {
    padding: 10px 0;
    background-color: rgba(255, 255, 255, 0.95);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-color);
}

.logo img {
    height: 40px;
    margin-right: 10px;
}

.nav-menu {
    display: flex;
}

.nav-link {
    padding: 10px 15px;
    color: var(--dark-color);
    font-weight: 500;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 15px;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: calc(100% - 30px);
}

.nav-link.active {
    color: var(--primary-color);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--dark-color);
    border-radius: 3px;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../assets/images/hero-bg.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    text-align: center;
    color: white;
    position: relative;
    margin-top: 80px;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: white;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* About Section */
.about-section {
    background-color: #f9f9f9;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
    align-items: center;
}
.about-section a{
    text-align: center;
}
.about-image {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.about-image img {
    display: block;
    transition: var(--transition);
}

.about-image:hover img {
    transform: scale(1.05);
}

.about-features {
    margin: 30px 0;
}

.about-features li {
    margin-bottom: 15px;
    position: relative;
    padding-left: 30px;
}

.about-features li i {
    color: var(--primary-color);
    position: absolute;
    left: 0;
    top: 5px;
}

/* Programs Section */
.programs-section {
    background-color: white;
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.program-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.program-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.program-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background-color: rgba(52, 152, 219, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: var(--primary-color);
}

/* Stats Section */
.stats-section {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../assets/images/stats-bg.jpg') no-repeat center center/cover;
    color: white;
    text-align: center;
    padding: 100px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.stat-item {
    padding: 30px;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.stat-label {
    font-size: 1.2rem;
    font-weight: 500;
}

/* Gallery Section */
.gallery-section {
    background-color: #f9f9f9;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 50px;
}

.gallery-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    height: 250px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-overlay {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    bottom: 0;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Contact Section */
.contact-section {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../assets/images/contact-bg.jpg') no-repeat center center/cover;
    color: white;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
}

.contact-info h2 {
    color: white;
}

.contact-info h2::after {
    background: white;
}

.contact-details {
    margin: 30px 0;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.contact-item i {
    font-size: 20px;
    margin-right: 15px;
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border-radius: var(--border-radius);
    border: none;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    font-family: var(--font-primary);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    background-color: rgba(255, 255, 255, 0.2);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}
.form-group input.con{
    width: 100%;
    padding: 15px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(0, 0, 0, 0.1);
    background-color: rgba(255, 255, 255, 0.1);
    color: rgba(0, 0, 0, 0.6);
    font-family: var(--font-primary);
    transition: var(--transition);
}
.form-group input.con:focus {
    outline: none;
    background-color: rgba(255, 255, 255, 0.2);
}
.form-group input.con::placeholder {
    color: rgba(0, 0, 0, 0.6);
}
::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

#formMessage {
    margin-top: 20px;
    padding: 10px;
    border-radius: var(--border-radius);
    display: none;
}

#formMessage.success {
    background-color: rgba(46, 204, 113, 0.2);
    color: var(--success-color);
    display: block;
}

#formMessage.error {
    background-color: rgba(231, 76, 60, 0.2);
    color: var(--danger-color);
    display: block;
}

/* Footer */
.footer {
    background-color: var(--dark-color);
    color: white;
    padding: 80px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col h3 {
    color: white;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-col ul li {
    margin-bottom: 15px;
}

.footer-col ul li i {
    margin-right: 10px;
    color: var(--primary-color);
}

.footer-col a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-col a:hover {
    color: white;
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    transition: var(--transition);
}

.footer-social a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: var(--box-shadow);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--dark-color);
    transform: translateY(-5px);
}
/* Login Section */
.login-section {
    background-color: #f9f9f9;
}

.login-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
    align-items: center;
}

.login-form {
    background-color: white;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.login-form h2 {
    text-align: left;
    margin-bottom: 30px;
}

.login-form h2::after {
    left: 0;
    transform: none;
}

.login-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark-color);
}

.features-list {
    margin: 30px 0;
}

.features-list li {
    margin-bottom: 15px;
    position: relative;
    padding-left: 35px;
}

.features-list li i {
    color: var(--primary-color);
    position: absolute;
    left: 0;
    top: 5px;
    font-size: 1.2rem;
}

.login-help {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.login-help a {
    color: var(--primary-color);
    font-weight: 500;
}

#loginMessage {
    margin-top: 20px;
    padding: 10px;
    border-radius: var(--border-radius);
    display: none;
}

#loginMessage.success {
    background-color: rgba(46, 204, 113, 0.2);
    color: var(--success-color);
    display: block;
}

#loginMessage.error {
    background-color: rgba(231, 76, 60, 0.2);
    color: var(--danger-color);
    display: block;
}
/* Register Section */
.register-section {
    background-color: white;
}

.register-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
    align-items: start;
}

.register-form {
    background-color: #f9f9f9;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.register-form h2 {
    text-align: left;
    margin-bottom: 30px;
}

.register-form h2::after {
    left: 0;
    transform: none;
}

.register-info {
    padding: 20px;
}

.register-info h2 {
    text-align: left;
    margin-bottom: 30px;
}

.register-info h2::after {
    left: 0;
    transform: none;
}

.conditions-list {
    margin: 30px 0;
}

.conditions-list li {
    margin-bottom: 15px;
    position: relative;
    padding-left: 35px;
}

.conditions-list li i {
    color: var(--primary-color);
    position: absolute;
    left: 0;
    top: 5px;
    font-size: 1.2rem;
}

.download-link {
    margin-top: 40px;
    text-align: center;
}

.radio-group {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.radio-group input[type="radio"] {
    margin: 0;
}

#registerMessage {
    margin-top: 20px;
    padding: 10px;
    border-radius: var(--border-radius);
    display: none;
}

#registerMessage.success {
    background-color: rgba(46, 204, 113, 0.2);
    color: var(--success-color);
    display: block;
}

#registerMessage.error {
    background-color: rgba(231, 76, 60, 0.2);
    color: var(--danger-color);
    display: block;
}
/* News Section */
/* Section Actualités */
.activities-section,
.news-section {
    padding: 80px 0;
    background-color: #f9f9f9;
    overflow: hidden; /* Empêche le débordement */
}

.activities-section .news-carousel,
.news-section .news-carousel {
    position: relative;
    margin: 0 auto;
    max-width: 1200px;
    padding: 0 20px; /* Ajout de padding pour les petits écrans */
}

.news-track {
    display: flex;
    gap: 30px;
    transition: transform 0.5s ease;
    will-change: transform;
    padding-bottom: 10px; /* Espace pour l'ombre */
}

/* Style de base des cartes - Mobile first */
.news-card {
    flex: 0 0 calc(100% - 20px); /* 1 carte visible sur mobile */
    min-width: 0; /* Empêche le débordement */
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin: 0 10px; /* Espacement sur les côtés */
}

/* Contenu des cartes */
.news-image {
    height: 180px; /* Hauteur réduite pour mobile */
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-content {
    padding: 15px;
}

.news-date {
    color: var(--accent-color);
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.news-title {
    font-size: 1.1rem;
    margin-bottom: 8px;
    line-height: 1.3;
}

.news-excerpt {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 12px;
    line-height: 1.4;
}

.read-more {
    color: var(--accent-color);
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* Contrôles du carrousel */
.carousel-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 25px;
}

.carousel-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.carousel-dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ddd;
    transition: all 0.3s ease;
}

/* États actifs/hover */
.dot.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

.news-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.read-more:hover {
    text-decoration: underline;
}
/* =========================================================================
   Section Tarifs
   -------------------------------------------------------------------------
   Refonte visuelle. Ce qu'on corrigeait :
     · des cartes plates, toutes de hauteur différente, dont le bas ne
       s'alignait pas dès qu'un titre passait sur deux lignes ;
     · la carte mise en avant signalée par un simple trait rouge de 2 px ;
     · les colonnes « avec / sans cantine » posées l'une sous l'autre sans
       rien qui les distingue, et les montants noyés dans le texte ;
     · un encadré « NB » jaune pleine largeur, hérité d'un autre style.

   Toutes les couleurs de marque passent par les variables du thème : la
   section suit donc le réglage du webmaster (Gestion du site > Apparence).
   Les fonds teintés utilisent color-mix() avec, à chaque fois, une couleur
   fixe déclarée juste avant en repli pour les navigateurs anciens.
   ========================================================================= */

.pricing-section {
    padding: 70px 0;
    background-color: #f7f8fa;
}

.pricing-section .section-subtitle {
    text-align: center;
    margin-bottom: 34px;
    color: #6b7280;
    font-size: 1.05rem;
}

/* ---- Encadré « NB » ---------------------------------------------------- */
/* Centré et de largeur limitée : une bande pleine largeur donnait plus de
   poids à la remarque qu'aux tarifs eux-mêmes. */
.pricing-notice {
    max-width: 760px;
    margin: 0 auto 34px;
    padding: 14px 22px;
    text-align: center;
    font-size: 0.92rem;
    color: #5c4708;
    border: 1px solid #f3e3b3;
    border-radius: 12px;
    background-color: #fffaef;
    background-color: color-mix(in srgb, var(--secondary-color) 9%, #fff);
    border-color: color-mix(in srgb, var(--secondary-color) 32%, #fff);
}

.pricing-notice p {
    margin: 0;
}

.pricing-notice strong {
    color: var(--dark-color);
}

/* ---- Grille ------------------------------------------------------------ */

.pricing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
    margin: 0 15px 34px;
    align-items: stretch;   /* toutes les cartes prennent la hauteur de la plus haute */
}

/* ---- Carte ------------------------------------------------------------- */

.pricing-card {
    position: relative;
    display: flex;
    flex-direction: column;   /* permet de pousser le pied de carte en bas */
    background: #fff;
    border: 1px solid #e8eaee;
    border-radius: 16px;
    padding: 28px 24px 24px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04),
                0 8px 24px rgba(16, 24, 40, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.pricing-card:hover {
    transform: translateY(-6px);
    border-color: #dcdfe4;
    box-shadow: 0 2px 4px rgba(16, 24, 40, 0.05),
                0 18px 40px rgba(16, 24, 40, 0.12);
}

/* Filet de couleur en haut de chaque carte : discret sur les cartes
   ordinaires, il devient la signature de la carte mise en avant. */
.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #e8eaee;
    transition: var(--transition);
}

.pricing-card:hover::before {
    background: var(--primary-color);
    opacity: 0.45;
}

/* ---- Carte mise en avant ----------------------------------------------- */
/* Elle se distingue par l'épaisseur du filet, une ombre teintée et un léger
   surplomb — plus lisible qu'un cadre rouge fermé autour de la carte. */
.pricing-card.highlight {
    border-color: #f1d9db;
    border-color: color-mix(in srgb, var(--primary-color) 22%, #fff);
    box-shadow: 0 2px 4px rgba(16, 24, 40, 0.05),
                0 16px 36px rgba(163, 0, 13, 0.13);
    box-shadow: 0 2px 4px rgba(16, 24, 40, 0.05),
                0 16px 36px color-mix(in srgb, var(--primary-color) 18%, transparent);
}

.pricing-card.highlight::before,
.pricing-card.highlight:hover::before {
    height: 6px;
    background: var(--primary-color);
    opacity: 1;
}

/* ---- Titre ------------------------------------------------------------- */
/* min-height : « De la Maternelle à la 6ème année » tient sur deux lignes et
   « Second cycle » sur une seule. Sans cette réserve, le contenu des cartes
   voisines démarrait à des hauteurs différentes. */
.pricing-card h3 {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 2.6em;
    margin: 0 0 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eef0f3;
    color: var(--dark-color);
    text-align: center;
    font-size: 1.25rem;
    line-height: 1.3;
}

.pricing-card h3 sup {
    font-size: 0.62em;
    vertical-align: super;
    line-height: 0;
}

/* ---- Forme « montant unique » ------------------------------------------ */

.pricing-amount {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
}

.pricing-amount .amount {
    font-family: var(--font-secondary);
    font-size: 2.9rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--primary-color);
}

.pricing-amount .currency {
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #8b9099;
}

.pricing-description {
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.55;
    text-align: center;
}

.pricing-description p {
    margin: 0 0 14px;
}

/* La liste des points repasse à gauche : centrée, une énumération se lit
   mal dès que les éléments n'ont pas la même longueur. */
.pricing-description ol {
    list-style: none;
    counter-reset: point;
    margin: 0;
    padding: 0;
    text-align: left;
}

.pricing-description ol li {
    counter-increment: point;
    position: relative;
    padding: 7px 0 7px 30px;
    border-top: 1px solid #f1f2f4;
    font-size: 0.88rem;
}

.pricing-description ol li::before {
    content: counter(point);
    position: absolute;
    left: 0;
    top: 6px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--primary-color);
    background: #f1d9db;
    background: color-mix(in srgb, var(--primary-color) 13%, #fff);
}

/* ---- Forme « colonnes comparatives » ----------------------------------- */

.pricing-options {
    display: grid;
    gap: 14px;
    margin-bottom: 18px;
}

.pricing-options .option {
    margin: 0;
    padding: 14px 16px;
    border: 1px solid #eef0f3;
    border-radius: 12px;
    background: #fbfcfd;
}

/* L'intitulé de la formule devient une étiquette : on repère « avec » et
   « sans cantine » d'un coup d'œil, sans lire la ligne entière. */
.pricing-options h4 {
    display: inline-block;
    margin: 0 0 10px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--primary-color);
    background: #f1d9db;
    background: color-mix(in srgb, var(--primary-color) 12%, #fff);
}

.pricing-options ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

/* Libellé à gauche, montant à droite : la colonne de montants ainsi alignée
   se compare d'une carte à l'autre sans avoir à relire les libellés. */
.pricing-options li {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin: 0;
    padding: 8px 0;
    border-top: 1px dashed #e5e8ec;
    color: #6b7280;
    font-size: 0.9rem;
}

.pricing-options li:first-child {
    border-top: none;
    padding-top: 2px;
}

.pricing-options li strong {
    flex: none;
    color: var(--dark-color);
    font-weight: 700;
    white-space: nowrap;
}

/* ---- Pied de carte ----------------------------------------------------- */
/* margin-top:auto colle cette ligne au bas de la carte : les mentions
   « Frais de tenues » des différentes cartes se retrouvent sur la même
   ligne, quelle que soit la hauteur du contenu au-dessus. */
.additional-fee {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin: auto 0 0;
    padding-top: 16px;
    border-top: 1px solid #eef0f3;
    color: #6b7280;
    font-size: 0.88rem;
    font-style: normal;
    text-align: left;
}

.additional-fee strong {
    color: var(--primary-color);
    font-weight: 700;
    white-space: nowrap;
}

/* ---- Notes de bas de section ------------------------------------------- */

.pricing-notes {
    display: grid;
    gap: 14px;
    margin: 0 15px;
    padding: 0;
    background: none;
    font-size: 0.88rem;
    color: #6b7280;
    line-height: 1.6;
}

.pricing-notes p {
    margin: 0;
    padding: 16px 18px 16px 20px;
    background: #fff;
    border: 1px solid #e8eaee;
    border-left: 3px solid var(--primary-color);
    border-radius: 10px;
}

.pricing-notes strong {
    display: block;
    margin-bottom: 3px;
    color: var(--dark-color);
    font-size: 0.92rem;
}

/* ---- Tablettes (768 px et plus) ---------------------------------------- */
@media (min-width: 768px) {
    .pricing-section {
        padding: 80px 0;
    }

    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
        margin: 0 25px 38px;
    }

    .pricing-card.highlight {
        grid-column: span 2;
    }

    /* Entre 768 et 991 px, la carte mise en avant occupe les deux colonnes.
       Si elle porte un montant, on place le chiffre et sa liste côte à côte :
       empilés, ils laissaient une large bande vide sur toute la droite.
       :has() n'est pas connu des navigateurs anciens — ils gardent alors
       l'empilement, qui reste correct. */
    .pricing-card.highlight:has(.pricing-amount) {
        display: grid;
        grid-template-columns: minmax(200px, 0.8fr) 1.2fr;
        column-gap: 34px;
        align-items: center;
    }

    .pricing-card.highlight:has(.pricing-amount) h3 {
        grid-column: 1 / -1;
    }

    .pricing-card.highlight:has(.pricing-amount) .pricing-amount {
        margin-bottom: 0;
        flex-direction: column;
        align-items: center;
        gap: 2px;
    }

    .pricing-notice {
        margin: 0 25px 34px;
    }

    .pricing-notes {
        grid-template-columns: repeat(2, 1fr);
        margin: 0 25px;
    }
}

/* ---- Petits ordinateurs (992 px et plus) ------------------------------- */
@media (min-width: 992px) {
    .pricing-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .pricing-card.highlight {
        grid-column: span 1;
    }

    /* À partir de trois colonnes, la carte mise en avant reprend la largeur
       des autres : on annule la mise côte à côte du palier tablette. */
    .pricing-card.highlight:has(.pricing-amount) {
        display: flex;
        grid-template-columns: none;
    }

    .pricing-card.highlight:has(.pricing-amount) .pricing-amount {
        flex-direction: row;
        align-items: baseline;
        gap: 8px;
        margin-bottom: 20px;
    }

    .pricing-card {
        padding: 30px 26px 26px;
    }

    .pricing-card h3 {
        font-size: 1.3rem;
    }

    .pricing-amount .amount {
        font-size: 3.1rem;
    }
}

/* ---- Grands écrans (1200 px et plus) ----------------------------------- */
@media (min-width: 1200px) {
    .pricing-grid {
        max-width: 1140px;
        margin: 0 auto 40px;
    }

    .pricing-notice {
        max-width: 800px;
    }

    .pricing-notes {
        max-width: 1140px;
        margin: 0 auto;
    }
}

/* ---- Très petits écrans (moins de 400 px) ------------------------------ */
@media (max-width: 400px) {
    .pricing-section {
        padding: 40px 0;
    }

    .pricing-card {
        padding: 22px 18px 18px;
    }

    .pricing-card h3 {
        font-size: 1.15rem;
        min-height: 0;
    }

    .pricing-amount .amount {
        font-size: 2.3rem;
    }

    .pricing-options li {
        font-size: 0.85rem;
    }
}

/* Responsive - Tablette */
@media (min-width: 768px) {
    .news-card {
        flex: 0 0 calc(50% - 15px); /* 2 cartes visibles */
    }
    
    .news-image {
        height: 200px;
    }
    
    .news-content {
        padding: 20px;
    }
}

/* Responsive - Desktop */
@media (min-width: 992px) {
    .news-card {
        flex: 0 calc(33.333% - 20px); /* 3 cartes visibles */
    }
    
    .carousel-controls {
        gap: 20px;
        margin-top: 30px;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
    }
}

/* Correction pour très petits écrans */
@media (max-width: 400px) {
    .news-card {
        flex: 0 90%; /* Réduit encore la largeur */
        margin: 0 auto; /* Centrage */
    }
    
    .news-image {
        height: 150px;
    }
    .radio-group {
    display: flex;
    gap: 10px;
    margin-top: 6px;
    }

    .radio-group label {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
        cursor: pointer;
    }

    .radio-group input[type="radio"] {
        margin: 0;
    }
}

/* Responsive Styles */
@media (max-width: 992px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    .news-card {
        flex: 0 90%; /* Réduit encore la largeur */
        margin: 0 auto; /* Centrage */
    }
    
    .news-image {
        height: 150px;
    }
    .radio-group {
    display: flex;
    gap: 10px;
    margin-top: 6px;
    }

    .radio-group label {
        display: flex;
        align-items: center;
        gap: 8px;
        cursor: pointer;
        

    }

    .radio-group input[type="radio"] {
        margin: 0;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background-color: white;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: var(--transition);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-link {
        padding: 15px;
        font-size: 1.2rem;
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn {
        width: 100%;
    }
    .news-card {
        flex: 0 90%; /* Réduit encore la largeur */
        margin: 0 auto; /* Centrage */
    }
    
    .news-image {
        height: 150px;
    }
    .radio-group {
    display: flex;
    gap: 10px;
    margin-top: 6px;
    }

    .radio-group label {
        display: flex;
        align-items: center;
        gap: 8px;
        cursor: pointer;
    }

    .radio-group input[type="radio"] {
        margin: 0;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    section {
        padding: 50px 0;
    }
    
    .hero {
        min-height: 500px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .programs-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(1, 1fr);
    }
    .login-grid {
    display: grid;
    grid-template-columns: 1fr;
    }
    .register-grid {
    grid-template-columns: 1fr;
}
}
