/* =========================================
   0. CHARGEMENT DE LA POLICE LOCALE (AMIRI)
   ========================================= */
@font-face {
    font-family: 'Amiri';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/Amiri-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'Amiri';
    font-style: normal;
    font-weight: 700;
    src: url('../fonts/Amiri-Bold.ttf') format('truetype');
}

/* Réinitialisation de base */
body, html {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', sans-serif;
    background-color: #fcfbf9;
    height: 100%;
    /* Ajoutez cette ligne ici pour supprimer le décalage horizontal */
    overflow-x: hidden; 
}/* =========================================
   1. HEADER ET NAVIGATION
   ========================================= */

/* On fixe la hauteur du header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 69px;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 2000; /* Augmenté à 2000 */
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%; /* S'assure que le container prend toute la largeur */
}

/* Empêche le scroll horizontal */
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    overflow-x: hidden;
}
body {
    scroll-behavior: smooth;
}

#contact-inscription {
    scroll-margin-top: 100px; /* Ajustez selon la hauteur de votre barre de menu */
}

.container {
    width: 90%;
    max-width: 1300px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img { 
    height: 68px; /* Agrandissez cette valeur selon vos besoins */
    display: block; /* Évite les petits espaces sous l'image */
}

/* --- HERO IMAGE --- */
.hero {
    height: 100vh;
    width: 100vw;

    padding-top: 69px;
    box-sizing: border-box;
    margin-left: calc(50% - 50vw);
}

.hero-index {
    background-image: url("../images/femme-montagne-4.png");
    background-size: cover;
    background-position: center top 100%;
    background-repeat: no-repeat;
}



/* --- NAV DESKTOP --- */
.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
    z-index: 1500; /* menu mobile en dessous */
}

.nav-links li a {
    text-decoration: none;
    color: #4a3f35;
    font-weight: 500;
    font-size: 18px;
    position: relative;
    padding-bottom: 5px;
}

/* Couleur dorée au survol */
.nav-links li a:hover {
    color: #fca000;
}

/* Trait noir animé */
.nav-links li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 2px;
    background-color: #000;
    transition: width 0.3s ease;
}

.nav-links li a:hover::after {
    width: 100%;
}

/* --- MENU MOBILE BUTTON --- */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.menu-toggle span {
    width: 28px;
    height: 3px;
    background-color: #4a3f35;
    border-radius: 3px;
}

/* --- DROPDOWN FORMATIONS --- */
.has-dropdown {
    position: relative;
}

.nos-programmes-link {
    display: flex;
    align-items: center;
    gap: 5px;
}

.arrow {
    font-size: 18px;      /* Taille de la flèche */
    margin-left: 6px;     /* Petit espace entre le texte et la flèche */
    display: inline-block;
    transform: translateY(1px); /* Alignement vertical parfait */
}


.dropdown {
    position: absolute;
    top: 120%;
    left: 0;
    background-color: #f7f3e9;
    border: 1px solid #e0d6c3;
    list-style: none;
    padding: 10px 0;
    min-width: 260px; /* Augmenté à 260px (ou 280px) pour élargir le menu */
    display: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    z-index: 999;
}

.dropdown li a {
    display: block;
    padding: 8px 15px;
    color: #4a3f35;
    text-decoration: none;
    white-space: nowrap; /* Empêche formellement le texte de passer à la ligne */
}

.dropdown li a:hover {
    background-color: #87ff3c58;
    color: #bfa76a;
}

.dropdown.open {
    display: block;
}
/* --- HERO TEXT + ANIMATION --- */

.hero {
    position: relative;
}

/* DESKTOP PAR DÉFAUT */
.hero-content {
    position: absolute;
    top: 66%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    opacity: 1;
}

/* ANIMATION PRO */
.hero-title {
    opacity: 0;
    animation: moveInFromLeft 1.3s ease-out forwards;
}

.hero-subtitle {
    opacity: 0;
    animation: moveInFromRight 1.3s ease-out forwards;
    animation-delay: 0.3s;
}

/* STYLE TEXTE DESKTOP */
.hero-title {
    font-size: 42px;
    font-weight: 500;
    color: #ff7b00;
    margin-bottom: -25px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.hero-subtitle {
    font-size: 31px;
    font-weight: 100px;
    margin-bottom: 25px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

/* BOUTON */
.hero-btn {
    background: #D4AF37;
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    display: inline-block;
    transition: background-color 0.3s ease, transform 0.2s ease;
    outline: 2px solid black;
    outline-offset: -3.5px;
}

.hero-btn:hover {
    background: #40b830;
    transform: translateY(-2px);
    cursor: pointer;
}

/* ANIMATIONS PRO */
@keyframes moveInFromLeft {
    0% { opacity: 0; transform: translateX(-200px); }
    100% { opacity: 1; transform: translateX(0); }
}

@keyframes moveInFromRight {
    0% { opacity: 0; transform: translateX(200px); }
    100% { opacity: 1; transform: translateX(0); }
}

/* =========================================
   TABLETTE (768px à 1024px) - Menu normal horizontal + Hero ajusté
   ========================================= */
@media (min-width: 768px) and (max-width: 1024px) {

    /* Force l'affichage du menu normal horizontal sur tablettes */
    .menu-toggle {
        display: none !important;
    }

    .nav-links {
        display: flex !important;
        flex-direction: row;
        position: static;
        width: auto;
        height: auto;
        background: transparent;
        box-shadow: none;
        transform: none;
        gap: 12px; /* Réduit l'espace entre les liens pour que tout tienne sur iPad Mini/Air */
    }

    .nav-links li a {
        font-size: 14px; /* Taille légèrement ajustée pour les tablettes */
    }

    /* Style du Hero pour tablettes */
    .hero-content {
        top: 60%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 90%; 
        padding: 0; 
    }

    .hero-title {
        font-size: 42px;
        white-space: nowrap; 
    }

    .hero-subtitle {
        font-size: 33px;
        white-space: nowrap; 
    }

    .hero-btn {
        font-size: 20px;
        padding: 16px 32px;
    }
}


/* =========================================
   MOBILE (<768px) - Menu Burger Actif
   ========================================= */
@media (max-width: 767px) {

    .hero-content {
        top: 66%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 100%;
        padding: 0 20px;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .menu-toggle {
        display: flex;
    }

    /* Menu mobile caché (hors écran) */
    .nav-links {
        position: fixed;
        top: 54px;
        left: 0;
        width: 80%;
        height: calc(100vh - 54px);
        background: #f7f3e9;
        padding-top: 20px;
        gap: 25px;
        box-shadow: 2px 0 5px rgba(0,0,0,0.1);
        z-index: 1000;

        display: flex;
        flex-direction: column;

        /* Animation slide */
        transform: translateX(-100%);
        transition: transform 0.35s ease;
    }

    /* Menu mobile ouvert (glisse vers la droite) */
    .nav-links.open {
        transform: translateX(0);
    }

    .hero-title {
        font-size: 30px;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 20px;
        line-height: 1.4;
        margin-bottom: 25px;
    }

    .hero-btn {
        font-size: 18px;
        padding: 14px 28px;
    }
}


/* =========================================
   3. SECTION PRÉSENTATION
   ========================================= */

/* --- Style pour la Bismillah en arabe --- */
.bismillah-text {
    font-family: 'Amiri', serif;
    font-size: 2.3rem;     /* Taille augmentée bien visible */
    font-weight: 700;       /* En gras */
    color: #020201;         /* Couleur dorée */
    margin: 0;
    letter-spacing: 1px;
    text-align: center;
}

/* --- Animation et espacement pour la Bismillah --- */
.fade-in-bismillah {
    opacity: 0;
    transform: translateY(40px); 
    transition: opacity 1s ease-out, transform 1s ease-out;
    margin-bottom: 20px; /* Espace propre entre la Bismillah et le titre h2 */
}

.fade-in-bismillah.visible {
    opacity: 1;
    transform: translateY(0);
}

.presentation-section {
    padding: 30px 20px 20px 20px; /* Modifié de 80px à 30px pour remonter le tout en haut */
    background-color: #fcfbf9;
    background-image: 
        linear-gradient(rgba(252, 251, 249, 0.741), rgba(252, 251, 249, 0.741)), 
        url('../images/pattern-islamique.png');
    background-repeat: repeat;
    background-size: 600px;
    text-align: center;
    color: #333;
}

.presentation-container {
    max-width: 800px;
    margin: 0 auto 0 auto; /* Modifié de -70px à 0 pour libérer l'espace du haut */
}

/* --- Typographie --- */
.presentation-container h2 {
    color: #D4AF37;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.intro-text {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 30px;
}

.main-text {
    line-height: 1.8;
    font-size: 1.1rem;
    margin-bottom: 40px;
}

/* --- Utilitaires de texte --- */
.bold { font-weight: bold; }
.color-blue { color: #007bff; }
.color-red { color: #d9534f; }
.color-gold { color: #D4AF37; }

/* =========================================
   BLOC HIGHLIGHT (Statique et sans animation JS)
   ========================================= */
.highlight-box {
    border-left: 5px solid #D4AF37;
    background: #fdfaf5;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(88, 35, 35, 0.58);
    font-style: italic;
    color: #752323;
    border-radius: 10px;
    margin: 0 auto 10px auto; /* Réduit la marge en bas du bloc highlight */
    max-width: 700px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.highlight-box:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(88, 35, 35, 0.6);
    cursor: pointer;
}

/* =========================================
   4. ANIMATIONS AU SCROLL (Fade-in)
   ========================================= */
.fade-in-element {
    opacity: 0;
    transform: translateY(80px); 
    transition: opacity 1.2s ease-out, transform 1.2s ease-out;
}

.fade-in-element.visible {
    opacity: 1;
    transform: translateY(0);
}
/* ==========================================================================
   PROGRAMMES PROPOSÉS
   ========================================================================== */
.programs-section {
    padding: 30px 20px 60px 20px; /* Réduit le padding du haut de 70px à 30px */
    background-color: #fffaf0;
    background-image: 
        linear-gradient(rgba(252, 251, 249, 0.741), rgba(252, 251, 249, 0.741)), 
        url('../images/pattern-islamique.png');
    background-repeat: repeat;
    background-size: 600px;
    text-align: center;
    color: #333;
}

.title-programs {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ce7828;
    font-size: 1.8rem;
    margin-top: 0px;
    margin-bottom: 30px;
    gap: 20px;
    white-space: nowrap;
}

/* Création des traits noirs de chaque côté */
.title-programs::before,
.title-programs::after {
    content: "";
    height: 3px;
    background: #000000;
    flex: 1;
    max-width: 150px;
}

@media (max-width: 768px) {
    .title-programs {
        font-size: 1.8rem;
        margin-top: 5px; /* Réduit drastiquement pour supprimer l'espace vide sur mobile */
    }
}

/* --- GRILLE DES PROGRAMMES (Desktop : 3 colonnes) --- */
.programs-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.program-card {
    background: rgba(245, 193, 109, 0.847);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(206, 120, 40, 0.2);
    border-top: 4px solid #3a37d4;
    
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    
    transition: opacity 1s ease-out, transform 1s ease-out !important;
}

.program-card h3 {
    color: #871919;
    margin-bottom: 5px;
}

/* Style du bouton "En savoir plus" */
.btn-en-savoir-plus {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #39FF6C;
    color: #FF5733;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    text-align: center;
    width: fit-content;
    align-self: center;
    transition: transform 0.2s, background-color 0.3s;
}
/* Style du prix dans les cartes de programmes */
.program-price {
    font-size: 1.2rem;
    font-weight: bold;
    color: #ce7828; /* Couleur assortie au thème (orange/marron) */
    margin-bottom: 0px;
    background: rgba(255, 255, 255, 0.4);
    display: inline-block;
    padding: 4px 12px;
    border-radius: 15px;
}
.btn-en-savoir-plus:hover {
    transform: scale(1.05);
    background-color: #ffffff;
}
/* --- COURBE DE PROGRESSION DANS LE SUIVI DES ÉLÈVES --- */
/* --- COURBE DE PROGRESSION ÉTIRÉE --- */
.progress-curve-container {
    width: 100%;
    margin-top: 15px;
    padding: 0;
}

.progress-svg {
    width: 100%;
    height: 70px;
    display: block;
}

/* --- ANIMATIONS : ÉTAT INITIAL --- */
.program-card.slide-left { opacity: 0; transform: translateX(-100px); }
.program-card.fade-in-center { opacity: 0; transform: scale(0.9); }
.program-card.slide-right { opacity: 0; transform: translateX(100px); }

/* --- ANIMATIONS : ÉTAT ACTIF (Apparition) --- */
.program-card.active {
    opacity: 1 !important;
    transform: translateX(0) scale(1) !important;
}

/* --- EFFET DE SURVOL --- */
.program-card:hover {
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out !important;
    transform: translateY(-10px) scale(1.02) !important;
    box-shadow: 0 8px 20px rgba(51, 206, 40, 0.29) !important;
    cursor: pointer;
}

/* --- DÉLAIS POUR L'EFFET SÉQUENTIEL --- */
.program-card.slide-left { transition-delay: 0.2s; }
.program-card.fade-in-center { transition-delay: 0.4s; }
.program-card.slide-right { transition-delay: 0.6s; }

/* --- RÉACTIVITÉ TABLETTES (Entre 769px et 1024px : 2 colonnes) --- */
@media (max-width: 1024px) {
    .programs-container {
        grid-template-columns: repeat(2, 1fr);
        max-width: 800px;
    }
}

/* --- RÉACTIVITÉ TABLETTES (Entre 768px et 1024px : 2 colonnes) --- */
@media (max-width: 1024px) {
    .programs-container {
        grid-template-columns: repeat(2, 1fr);
        max-width: 800px;
    }
}

/* --- RÉACTIVITÉ MOBILES (Moins de 768px, soit 767px et moins : 1 colonne) --- */
@media (max-width: 767px) {
    .programs-container {
        grid-template-columns: 1fr;
        padding: 10px;
        gap: 15px;
    }

    .program-card {
        width: 100%;
        margin: 0 auto;
        box-sizing: border-box;
        padding: 20px;
    }
}

/* --- CONTENEUR DES BOUTONS DU BAS --- */
.cta-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.btn-custom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 30px;
    width: 250px;
    background-color: #ff4500;
    color: white;
    border: 2px solid #ff4500;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    transition: all 0.4s ease;
}

.btn-arrow {
    background: white;
    color: #ff4500;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    transition: all 0.4s ease;
}

.btn-custom:hover {
    background-color: white;
    color: #ff4500;
}

.btn-custom:hover .btn-arrow {
    background-color: #ff4500;
    color: white;
}

/* ==========================================================================
   BANDEAU INFORMATIF DES INSCRIPTIONS (Plein écran aligné sur les programmes)
   ========================================================================== */
.inscriptions-banner-container {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    padding: 40px 20px;
    box-sizing: border-box;
    
    background-color: #fffaf0;
    background-image: 
        linear-gradient(rgba(252, 251, 249, 0.741), rgba(252, 251, 249, 0.741)), 
        url('../images/pattern-islamique.png');
    background-repeat: repeat;
    background-size: 600px;
}

/* Le conteneur interne limite la largeur du bloc blanc au centre (comme tes programmes) */
.inscriptions-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 0 20px; /* Ajoute une marge de sécurité sur les côtés pour les petits écrans */
    box-sizing: border-box;
}

/* Le bloc blanc s'arrêtera à 1200px max et aura une belle taille proportionnée */
.inscriptions-banner {
    background: #fff; 
    border-left: 5px solid #ce7828;  
    border-right: 5px solid #289cce; 
    border-top: 1px solid #f3d2b5;
    border-bottom: 1px solid #f3d2b5;
    padding: 25px 30px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 6px 20px rgba(206, 120, 40, 0.15);
    width: 100%;
    box-sizing: border-box;
}

.inscriptions-icon {
    min-width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Style de ton image de 1024x1024 redimensionnée proprement */
.inscriptions-icon img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    box-shadow: 0 3px 8px rgba(206, 120, 40, 0.3);
}

.inscriptions-text h3 {
    color: #8b2b1b;
    font-size: 1.15rem;
    margin: 0 0 5px 0;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.inscriptions-text p {
    color: #444;
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.5;
}

.inscriptions-text strong {
    color: #ce7828;
    font-weight: 700;
}

/* --- Adaptation Responsive Mobile --- */
@media (max-width: 768px) {
    .inscriptions-banner {
        flex-direction: column;
        text-align: center;
        padding: 20px 15px;
    }
    
    .inscriptions-icon {
        margin-bottom: 5px;
    }
}
/* ==========================================================================
   SECTION APPRENTISSAGE (Learning Section) bloc avec image cour sur pc
   ========================================================================== */
.learning-section {
    position: relative;
    z-index: 10;
    margin-bottom: 0; /* Supprime l'espace en bas */
    background-color: #fcfbf9; /* Uniformisé avec la section suivante */
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.676), rgba(255, 255, 255, 0.676)), 
        url('../images/pattern-islamique-3-2.png');
    background-repeat: repeat; /* Permet au motif de se répéter en continu */
    background-size: 1050px;
    background-position: top center;
    background-attachment: scroll; /* Supprime le fixed pour éviter les cassures */
}

.learning-content {
    display: flex;
    align-items: center; 
    justify-content: flex-start;
    gap: 50px; 
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.learning-image { flex: 0 0 49%; }

.learning-image img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    cursor: pointer;
}

.learning-image img:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.381);
}

.learning-text {
    flex: 1;
    text-align: left;
    background-color: #fdfaf5;
    border-radius: 15px;
    padding: 20px 30px; 
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.493);
}

.learning-text h2 {
    color: #871919;
    font-size: 2.2rem;
    text-align: center;
    margin: 0 0 15px 0;
    line-height: 1.2;
}

.learning-text p {
    color: #3a8fb7;
    font-size: 1.15rem;
    font-weight: 500;
    line-height: 1.7;
    margin-bottom: 9px;
    text-align: left;
}

.learning-text ul { list-style: none; padding: 0; margin: 0; text-align: left; }

.learning-text ul li {
    margin-bottom: 10px;
    padding-left: 30px;
    position: relative;
    line-height: 1.6;
}

.learning-text ul li::before {
    /* On change le contenu pour la coche et la couleur pour votre vert */
    content: "✓"; 
    color: #39FF6C; 
    
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1.4rem; /* Un tout petit peu plus grand pour bien voir la coche */
    font-weight: bold; /* Pour rendre la coche plus épaisse */
    line-height: 1.6;
}

.learning-text ul li strong { display: inline; color: #333; }

/* Animations Learning */
.learning-image.reveal { opacity: 0; transform: scale(0.8); transition: all 1s ease-out; }
.learning-image.reveal.active { opacity: 1; transform: scale(1); }
.learning-text.reveal { opacity: 0; transform: translateX(100px); transition: all 1s ease-out; }
.learning-text.reveal.active { opacity: 1; transform: translateX(0); }
/* Adaptation pour mobile et tablette */
/* Adaptation pour mobile et tablette */
@media (max-width: 768px) {
    .learning-content {
        flex-direction: column;
        gap: 30px;
        padding: 0 15px;
    }

    .learning-image {
        flex: 0 0 100%;
        width: 100%;
    }

    .learning-text {
        padding: 20px;
        /* On garde le centrage pour le titre et le paragraphe d'intro si tu veux */
        text-align: center; 
    }
    
    .learning-text h2 {
        font-size: 1.6rem;
    }

    /* --- CORRECTION POUR LA LISTE --- */
    .learning-text ul {
        text-align: left; /* Aligne tout le bloc de la liste à gauche */
        display: inline-block; /* Permet de centrer le bloc UL dans le parent tout en gardant le texte à gauche */
    }

    .learning-text ul li {
        text-align: left; /* Le texte des puces reste à gauche */
        padding-left: 30px; /* Espace pour la coche */
        margin-top: 15px;
        position: relative;
    }
    
    .learning-text ul li::before {
        position: absolute; /* On remet la coche en absolute pour qu'elle reste à gauche */
        display: inline-block;
        left: 0;
        top: 0;
        margin-bottom: 0;
    }
}
/* ==========================================================================
            science-section
   ========================================================================== */

.science-section {
    padding: 60px 20px;
    text-align: center;
    background-color: #fcfbf9; /* Même couleur de fond exacte */
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.703), rgba(255, 255, 255, 0.813)), 
        url('../images/pattern-islamique-3-2.png');
    background-repeat: repeat; /* Le motif continue naturellement */
    background-size: 1050px;
    background-position: center;
    background-attachment: scroll; /* Supprime le fixed */
}

.science-container {
    max-width: 800px;
    margin: 0 auto;
}

/* Barre colorée arc-en-ciel */
.process-line-color {
    width: 100px;
    height: 6px;
    margin: 0 auto 20px auto;
    border-radius: 10px;
    background: linear-gradient(to right, #007bff, #28a745, #ffc107, #dc3545);
}

.title-science {
    color: #0f2c59; /* Bleu foncé */
    font-size: 1.5rem;
    margin-bottom: 40px;
    font-weight: 800;
}

/* Bloc citation */
.citation-box {
    border: 2px solid #0f2c59;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 40px;
    background: #fff;
    text-align: center;
}

.hadith-text {
    margin-top: 30px;
    color: #333;
}

.hadith-content {
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
    margin: 15px 0 !important;
}

.explanation-text {
    color: #555;
    line-height: 1.6;
}
/* Bloc gris avec bordure dorée */
.quran-box {
    background: #e6e6e6;
    border-left: 6px solid #d4af37;
    padding: 20px;
    
    /* 1. Limiter la largeur du bloc */
    max-width: 800px; 
    
    /* 2. Centrer le bloc sur la page */
    margin: 30px auto; 
    
    font-style: italic;
    color: #0f2c59;
    border-radius: 4px;
    
    /* 3. Optionnel : centrer le texte à l'intérieur */
    text-align: center; 
}

/* Titre avec double ligne orange */
.big-conclusion-title {
    color: #8b2b1b;
    font-size: 1.5rem;
    text-align: center;
    
    /* 1. Limiter la largeur maximale pour ne pas qu'il s'étale trop */
    max-width: 800px; 
    
    /* 2. Centrer l'élément horizontalement */
    margin: 40px auto; 
    
    padding: 20px 20px; /* Ajout d'un petit padding latéral pour ne pas toucher les bords */
    border-top: 2px solid #ea5a0c;
    border-bottom: 2px solid #ea5a0c;
    text-transform: uppercase;
}

/* Style des hadiths principaux */
.hadith-main {
    font-weight: 600;
    margin: 20px 0;
}
/* Style général pour les paragraphes de fin */
.text-block {
    margin-bottom: 25px;
    line-height: 1.8;
    color: #333;
    text-align: center;
}

/* Style spécifique pour la dernière ligne (doua) */
.duaa-text {
    font-style: italic;
    color: #333;
    margin-top: 40px;
    margin-bottom: 20px; /* On enlève le négatif pour laisser respirer */
    font-size: 1.1rem;
    text-align: center;
}

/* Style pour la version arabe de l'invocation */
/* Style pour la version arabe de l'invocation */
.duaa-arabic {
    font-family: 'Amiri', serif;
    direction: rtl;
    text-align: center;
    color: #333;
    font-weight: bold;
    margin-top: 10px;
    margin-bottom: 30px;
    font-size: 1.8rem; /* Bureau */
    white-space: nowrap; 
}

/* Smartphones : on réduit la taille de façon drastique pour que TOUTE la phrase rentre sur une seule ligne */
@media (max-width: 768px) {
    .duaa-arabic {
        font-size: 1.0rem; /* Taille ultra-réduite pour forcer la ligne unique sur mobile */
        white-space: nowrap; /* Interdit catégoriquement le saut de ligne */
    }
}

/* Assurez-vous que les éléments <em> soient bien en italique */
.text-block em {
    font-style: italic;
}
/* --- RESPONSIVITÉ --- */

/* Tablettes (max 992px) */
@media (max-width: 992px) {
    .title-science { font-size: 2rem; }
    .big-conclusion-title { font-size: 1.2rem; }
}

/* Smartphones (max 768px) */
@media (max-width: 768px) {
    .science-section { padding: 40px 15px; }
    
    .title-science { 
        font-size: 1.6rem; /* Réduction drastique pour mobile */
        margin-bottom: 25px; 
    }
    
    .citation-box { 
        padding: 20px; 
        margin-bottom: 25px; 
        text-align: left; /* Force le texte à rester aligné à gauche */
    }

    .citation-box p {
        text-align: left; /* Assure que chaque paragraphe suit l'alignement gauche */
    }
    .quran-box { 
        padding: 20px; 
        text-align: left; /* Aligne le contenu de la boîte à gauche */
    }

    .quran-box p {
        text-align: left; /* Force chaque verset à s'aligner à gauche en cas de retour à la ligne */
    }
    
    .big-conclusion-title { 
        font-size: 1rem; 
        padding: 15px 5px; 
    }
    
    .hadith-content { font-size: 1.05rem; }
}
/* ==========================================================================
   Section Formules
   ========================================================================== */

.formula-section {
    padding: 30px 20px; /* Réduit le padding global de la section (au lieu de 60px) */
    background-color: #39383810;
}

.formula-section .container {
    display: block !important;
    text-align: center !important;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px; /* Réduit le padding du conteneur */
}

.formula-section h2 {
    position: relative;
    padding-top: 15px; /* Réduit l'espace en haut pour rapprocher le trait orange */
    text-align: center;
    color: #0f2c59;
    margin-bottom: 40px; /* Réduit fortement l'espace en bas (au lieu de 90px) pour rapprocher les cartes */
}

/* Le trait orange */
.formula-section h2::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;       /* Longueur du trait */
    height: 4px;       /* Épaisseur du trait */
    background-color: #ff9800; /* Couleur orange */
    border-radius: 2px;
}

.formula-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.formula-card {
    background: #fff;
    padding: 0 20px 20px 20px; /* MODIFIÉ : 0 en haut pour coller l'image au bord supérieur */
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.486);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow: hidden; 
}

.formula-card img {
    width: calc(100% + 40px); /* Élargit l'image pour compenser les côtés de la carte */
    margin-left: -20px;       /* Annule le padding gauche de la carte */
    margin-right: -20px;      /* Annule le padding droit de la carte */
    height: 260px;
    object-fit: cover;
    border-radius: 15px 15px 0 0; /* Arrondit uniquement les coins du haut */
    margin-bottom: 20px;
    transition: transform 0.5s ease; 
}

/* On accentue légèrement le zoom pour un effet plus immersif sans espace */
.formula-card:hover img {
    transform: scale(1.08); 
}

.formula-card h3 {
    color: #8b2b1b;
    margin-bottom: 5px;
}

.formula-card p {
    color: #555;
    margin-bottom: 5px;
    line-height: 1.5;
}

.btn-choose {
    display: inline-block;
    padding: 10px 40px;
    border: 2px solid #0056b3;
    color: #0056b3;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: 0.3s;
    margin-top: auto;
}

.btn-choose:hover {
    background-color: #0056b3;
    color: #fff;
}

/* --- CORRECTION POUR L'IPAD MINI (768px exact) : Côte à côte en plein écran --- */
@media screen and (min-width: 768px) and (max-width: 768px) {
    .formula-section .container {
        max-width: 100% !important;
        width: 100% !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
        box-sizing: border-box !important;
    }

    .formula-grid {
        display: flex !important;
        justify-content: space-between !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .formula-card {
        flex: 0 0 48.5% !important;
        max-width: 48.5% !important;
        box-sizing: border-box !important;
    }
}

/* --- CORRECTION MOBILE UNIQUEMENT (En dessous de 768px, soit les smartphones) --- */
@media (max-width: 767px) {
    /* 1. On annule tout espace interne pour que le bloc touche presque les bords */
    .formula-section .container {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .formula-grid {
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* 2. On étire les cartes au maximum */
    .formula-card {
        width: 100% !important;
        margin: 0 0 15px 0 !important;
        padding: 15px !important;
        border-radius: 2px !important;
        box-sizing: border-box !important;
    }
    
    .formula-section h2::before {
        width: 60% !important;
        height: 3px !important;
    }
    
    .formula-section h2 {
        padding-top: 15px !important;
    }
}

    /* ==========================================================================
   SECTION PROCESSUS
   ========================================================================== */
.process-section {
    background-color: #e0f2f7;
    padding: 60px 20px;
    text-align: center;
}

.process-section .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: block !important; 
}

.process-number {
    background-color: #ffcc80; 
    color: #1e88e5;           
    width: 50px;              
    height: 50px;             
    line-height: 50px;        
    border-radius: 50px;      
    font-weight: bold;        
    font-size: 1.2rem;        
    margin: -10px auto 15px auto; 
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Slider Swiper Processus (Même structure que les témoignages) */
.process-swiper {
    position: relative;
    width: 100%;
    max-width: 1050px; /* On élargit pour accueillir proprement 3 cartes côte à côte */
    margin: 40px auto 0 auto;
    padding: 20px 50px; /* Espace réservé pour les flèches */
    box-sizing: border-box;
    overflow: hidden; 
}

.process-swiper .swiper-wrapper {
    display: flex;
    align-items: stretch;
}

.process-swiper .swiper-slide {
    height: auto !important;
    display: flex !important;
}

.process-card {
    background: #fff;
    border: 2px solid #8ecae6;
    /* On réduit le padding haut/bas à 20px (au lieu de 30px) pour enlever l'espace vertical */
    padding: 20px 20px;
    border-radius: 20px;
    width: 100%;
    box-sizing: border-box;
    
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    
    /* On diminue la hauteur minimale pour un bloc plus ramassé */
    min-height: 200px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* Le cercle du numéro plus compact */
.process-number {
    background-color: #ffcc80; 
    color: #1e88e5;           
    width: 42px;              /* Légèrement plus petit pour gagner de la place */
    height: 42px;             
    border-radius: 50%;      
    font-weight: bold;        
    font-size: 1.1rem;        
    
    /* Marge du bas réduite pour rapprocher le titre */
    margin: 0 auto 10px auto; 
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Titre resserré */
.process-card h3 {
    color: #0f2c59;
    font-size: 1.15rem;
    margin: 0 0 8px 0; /* Petit espace contrôlé sous le titre */
    min-height: auto;  /* Supprime la hauteur forcée inutile */
}

/* Paragraphe compact */
.process-card p {
    color: #555;
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
}

/* Positionnement des flèches sur Desktop */
.process-swiper .swiper-button-prev,
.process-swiper .swiper-button-next {
    color: #0f2c59;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
}

.process-swiper .swiper-button-prev { left: 0px; }
.process-swiper .swiper-button-next { right: 0px; }

/* --- RESPONSIVE MOBILE (Même logique que les témoignages) --- */
@media (max-width: 768px) {
    .process-swiper {
        padding: 20px 35px; /* Réduit l'espace latéral pour laisser plus de place à la carte */
    }

    .process-swiper .swiper-button-prev,
    .process-swiper .swiper-button-next {
        width: 30px;
        height: 30px;
    }

    .process-swiper .swiper-button-prev { left: -5px; }
    .process-swiper .swiper-button-next { right: -5px; }

    .process-card {
        padding: 20px 15px; 
    }
}

/* ==========================================================================
   SECTION MODALITÉS (Tarifs et Assiduité)
   ========================================================================== */
.info-section {
    padding: 30px 20px; /* Réduit le padding du haut et du bas de 60px à 30px */
    background-color: #ff00001b;
}

/* On force le conteneur intérieur à empiler le titre en haut et la grille en bas */
.info-section .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

/* Le titre prend toute la largeur et est centré */
.title-info {
    font-size: 2rem; 
    color: #ff2525;    
    text-align: center;
    width: 100%;
    margin-top: 0;       /* Supprime toute marge parasite au-dessus du titre */
    margin-bottom: 30px; /* Rapproche légèrement les cartes du titre */
}

/* La grille gère les cartes côte à côte sur PC */
.info-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    width: 100%;
}

.info-card {
    background: #00000030;
    padding: 30px;
    border-radius: 15px;
    border: 1px solid #eee;
    box-shadow: 0 5px 15px rgba(126, 223, 107, 0.687);
    flex: 1; 
    min-width: 300px; 
    box-sizing: border-box;
}

.info-card h3 {
    color: #871919;
    margin: 0 auto 20px auto; 
    border-bottom: 2px solid #ce7828;
    display: block; 
    width: fit-content; 
}
.tarif-promo-text {
    font-size: 0.95rem;
    font-weight: 700;
    color: #000000; /* Texte en gras noir */
    margin: 15px 0;
    line-height: 1.4;
}

.tarif-promo-text .highlight-red {
    color: #dc2626; /* Pourcentages en rouge vif */
    font-weight: 900;
}

.info-card ul {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.info-card ul li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.info-card ul li::before {
    content: "•";
    color: #ce7828;
    position: absolute;
    left: 0;
    font-weight: bold;
}

.payment-note, .refund-note {
    font-size: 0.9rem;
    color: #434343;
    margin-top: 15px;
    font-style: italic;
}

/* ==========================================================================
   STYLE DE LA CARTE PROMOTIONNELLE EN DESSOUS (IDENTIQUE AUX AUTRES CARTES)
   ========================================================================== */
.info-promo-card {
    width: 100%;
    max-width: 650px; /* Largeur idéale centrée en dessous */
    margin: 40px auto 0 auto; /* Espace net avec les cartes du dessus et centrage */
   
    padding: 35px;
    border-radius: 15px;
    border: 3px solid #ffffff;
   
    text-align: center;
    box-sizing: border-box;
    animation: breathing 6s ease-in-out infinite; /* Effet de respiration */
    animation-delay: 4s;
}

.info-promo-title {
    font-size: 1.7rem;
    font-weight: 800;
    color: #0263ff !important; /* Bleu vif demandé */
    margin-top: 0;
    margin-bottom: 12px;
    line-height: 1.3;
}

.info-promo-subtitle {
    font-size: 1.5rem;
    color: #0263ff !important; /* Bleu vif demandé */
    font-weight: 800;
}

.info-promo-discount {
    font-size: 1.25rem;
    font-weight: 700;
    color: #000000;
    margin: 15px 0 10px 0;
}

.highlight-red {
    color: #dc2626 !important; /* Rouge vif pour -44%, -50% et 20€ au lieu de 40€ */
    font-weight: 900;
}

.info-promo-desc {
    font-size: 1rem;
    font-weight: 600;
    color: #ea5a0c !important; /* Orange/Ambré pour le texte intermédiaire */
    margin-bottom: 15px;
}

.info-promo-offer {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #333333;
    margin-bottom: 15px;
}

.info-promo-footer {
    font-size: 1.1rem;
    font-weight: 800;
    color: #dc2626 !important; /* Phrase finale en rouge et italique */
    font-style: italic;
    margin-bottom: 0;
}

/* Animation de respiration (zoom lent et infini) */
@keyframes breathing {
    0% { transform: scale(1); }
    50% { transform: scale(1.04); } 
    100% { transform: scale(1); }
}

.info-card {
    animation: breathing 6s ease-in-out infinite; 
}

.info-card:nth-child(2) {
    animation-delay: 2s; 
}
/* ==========================================================================
   BULLES DÉCORATIVES ARRIÈRE-PLAN
   ========================================================================== */
.info-section.has-bubbles {
    position: relative;
    overflow: hidden; /* Empêche les bulles de dépasser de la section */
}

.decorative-bubbles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Pour que les bulles ne bloquent pas les clics de la souris */
    z-index: 1; /* Derrière le contenu (qui aura z-index: 2) */
}

/* On s'assure que le contenu et les cartes passent bien au-dessus des bulles */
.info-section .container {
    position: relative;
    z-index: 2;
}

/* Style de base des bulles rondes */
.bubble {
    position: absolute;
    border-radius: 50%;
    background: rgba(84, 135, 25, 0.11); /* Rouge bordeaux très doux et transparent */
    filter: blur(10px5px); /* Léger effet flou design */
}

/* Bulle 1 (en haut à gauche) */
.bubble-1 {
    width: 250px;
    height: 250px;
    top: -50px;
    left: -50px;
}

/* Bulle 2 (au milieu à droite) */
.bubble-2 {
    width: 350px;
    height: 350px;
    bottom: -100px;
    right: -100px;
    background: rgba(206, 120, 40, 0.105); /* Petite touche dorée/orangée pour varier */
}

/* Bulle 3 (petite bulle centrale) */
.bubble-3 {
    width: 150px;
    height: 150px;
    top: 40%;
    left: 15%;
}

/* --- RESPONSIVITÉ MOBILE / TABLETTE --- */
/* ==========================================================================
   RESPONSIVITÉ MOBILE / TABLETTE (Max 992px)
   ========================================================================== */
@media (max-width: 992px) {
    .info-section {
        padding: 30px 16px !important; 
    }

    .info-section .container {
        max-width: 100% !important;
        padding: 0 !important;
        width: 100% !important;
    }

    .info-grid {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 35px !important; /* On augmente l'espace entre les deux premiers blocs (ex: de 20px à 35px) */
        width: 100% !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }

    .info-card {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 100% !important;
        margin: 0 !important;
        padding: 25px 20px !important; 
        box-sizing: border-box !important;
    }

    .info-promo-card {
        width: 100% !important;
        max-width: 100% !important;
        margin: 35px 0 0 0 !important; /* On espace aussi nettement la carte promo du bloc du dessus */
        padding: 25px 20px !important;
        box-sizing: border-box !important;
    }
}

/* --- SECTION CONTACT & INSCRIPTION --- */
.contact-inscription-section {
    padding: 50px 20px;
    background-color: #fafafa;
    width: 100%;
    box-sizing: border-box;
}

.contact-inscription-section .container {
    display: flex !important;
    flex-direction: row !important;
    justify-content: flex-start !important; /* Aligne les blocs proprement */
    gap: 3% !important; /* Crée un espace régulier et contrôlé de 3% entre les deux */
    align-items: flex-start;
    width: 100% !important;
    max-width: 1300px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    box-sizing: border-box;
}

/* --- COLONNE GAUCHE : FORMULAIRE (65%) --- */
/* --- STYLE DU GROUPE RADIO (Correction) --- */
.radio-group {
    display: flex;
    gap: 20px;
    margin: 10px 0 20px 0;
}

.radio-group label {
    display: flex;
    align-items: center; /* Aligne le bouton et le texte horizontalement */
    gap: 8px;            /* Espace entre le bouton et le texte */
    cursor: pointer;
    font-weight: normal !important;
    margin-bottom: 0;    /* Supprime la marge inférieure des labels ici */
}

.radio-group input[type="radio"] {
    width: auto;         /* Empêche le bouton radio d'être étiré */
    margin: 0;           /* Supprime les marges par défaut */
}
.form-wrapper { 
    flex: 0 0 61% !important; 
    max-width: 61% !important;
    box-sizing: border-box;
}
/* --- STYLE DE LA LISTE DES PROGRAMMES --- */

#programme-checkboxes {

    display: grid;

    grid-template-columns: 1fr; /* Une seule colonne sur mobile */

    gap: 10px;

    margin-top: 10px;

    background: #f9f9f9;

    padding: 15px;

    border-radius: 5px;

    border: 1px solid #e0e0e0;

}



/* --- STYLE AMÉLIORÉ DE LA LISTE DES PROGRAMMES --- */
#programme-checkboxes label {
    display: flex;
    justify-content: space-between; /* Sépare le texte et le prix */
    align-items: center;
    padding: 10px;
    background: #ffffff;
    border-radius: 5px;
    border: 1px solid #e0e0e0;
    margin-bottom: 5px;
    cursor: pointer;
    font-weight: normal !important;
    font-size: 0.95rem;
    transition: background 0.2s;
}

#programme-checkboxes label:hover {
    background: #f0f0f0; /* Petit effet au survol */
}

/* Classe pour le prix */
.price-tag {
    font-weight: bold;
    color: #D4AF37; /* Votre couleur dorée */
    font-size: 0.85rem;
    background: #fff8e1;
    padding: 2px 8px;
    border-radius: 4px;
    white-space: nowrap;
    margin-left: 10px;
}
/* Programmes souhaités contoure propre */
#programme-checkboxes input[type="checkbox"] {

    width: 18px;

    height: 18px;

    cursor: pointer;

} 

#dynamicForm {
    background: #c1c1c141;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.field { margin-bottom: 15px; }

.field label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 0.9rem;
    color: #333;
}

.star { color: red; margin-left: 3px; }

input, select, textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    box-sizing: border-box;
}

.row { display: flex; gap: 20px; }
.row .field { flex: 1; }

#submitBtn {
    background-color: #ff9a51;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 5px;
    width: 100%;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    margin-top: 20px;
    
    /* Ajout de la transition pour la fluidité */
    transition: all 0.3s ease;
}

/* Effet au survol */
#submitBtn:hover {
    filter: brightness(1.1); /* Éclaircit légèrement la couleur, quelle qu'elle soit */
    transform: scale(1.02);  /* Petit agrandissement */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Effet au clic */
#submitBtn:active {
    transform: scale(0.98); /* Petit effet d'enfoncement */
}
/* popup erreur */
.popup-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}
.popup-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    max-width: 300px;
}
.popup-content button {
    margin-top: 15px;
    padding: 8px 20px;
    cursor: pointer;
    background: #0056b3;
    color: white;
    border: none;
    border-radius: 4px;
}

/* --- COLONNE DROITE : INFO (35%) --- */
.info-wrapper { 
    flex: 0 0 36% !important; /* Passé à 36% pour occuper tout l'espace restant */
    max-width: 36% !important;
    box-sizing: border-box;
}

.info-card-content {
    background: #d2ff564e;
    padding: 20px;
    border: 1px solid #2d2d2d;
    border-radius: 10px;
    text-align: center;
}

.logo-orange {
    background-color: #ce7828;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.logo-orange img {
    max-width: 100%;
    height: auto;
}

.price-box {
    display: inline-block;
    border: 2px solid #0056b3;
    color: red;
    font-weight: bold;
    padding: 5px 15px;
    border-radius: 20px;
    margin: 5px;
}
.separator {
    font-weight: bold;
    color: #666;            /* Une couleur discrète pour le "ou" */
}

.btn-green {
    display: block;
    background-color: #fc9700;
    color: black;
    text-decoration: none;
    padding: 15px;
    border-radius: 25px;
    margin-top: 20px;
    font-weight: bold;
    border: 1px solid #555;
}
.btn-green:hover {   /* effet au survolle du boutton */
    background-color: #e08700; /* Une nuance un peu plus foncée pour le survol */
    transform: scale(1.03);    /* Léger effet de zoom */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Ajoute un relief élégant */
    cursor: pointer;
}

/* On ajoute la transition au bloc original pour que l'effet soit fluide */
.btn-green {
    /* ... vos styles existants ... */
    transition: all 0.3s ease; /* Ajoute cette ligne dans votre bloc .btn-green */
}

.info-card-content h3 { color: #ce7828; margin-top: 20px; }

/* --- CORRECTION MOBILE UNIQUEMENT (En dessous de 768px, soit les smartphones) --- */
@media (max-width: 767px) {
    /* 1. On annule les marges et paddings qui créent des espaces vides */
    .contact-inscription-section {
        padding: 20px 0 !important;
        width: 100% !important;
    }

    .contact-inscription-section .container {
        display: flex !important;
        flex-direction: column !important; /* Passe en colonne SEULEMENT sur mobile */
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
    }

    /* 2. On force les blocs à prendre 100% de la largeur sur mobile */
    .form-wrapper, .info-wrapper {
        flex: 0 0 100% !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }

    /* 3. On réduit le padding interne pour gagner de l'espace */
    #dynamicForm {
        padding: 10px !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        margin: 0 !important;
    }

    .info-card-content {
        padding: 10px !important;
        border-radius: 0 !important;
        margin: 0 !important;
    }

    /* 4. Correction des boutons radio pour qu'ils restent côte à côte sur mobile */
    .radio-group {
        flex-direction: row !important;
        align-items: center !important;
        gap: 20px !important;
    }

    .radio-group label {
        flex-wrap: nowrap !important;
    }

    .radio-group span {
        display: inline !important;
        width: auto !important;
        margin-left: 5px !important;
        margin-top: 0 !important;
    }
}
/* temoignage */
/* ==========================================================================
   Section Témoignages (Complète et corrigée)
   ========================================================================== */
   /* --- Classe pour appliquer la police Amiri sur les textes en arabe --- */
.arabic-font {
    font-family: 'Amiri', serif;
    font-size: 1.2rem;   /* Ajuste la taille si tu veux que ce soit plus grand ou plus petit */
    font-weight: 700;     /* Pour qu'ils ressortent bien en gras */
}

.testimonials-section {
    padding: 60px 20px;
    background-color: #8b662b2d;
    text-align: center;
}

.testimonials-section .container {
    display: block !important;
    text-align: center !important;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonials-section h2 {
    text-align: center;
    color: #0f2c59;
    margin-bottom: 50px;
    position: relative;
}

/* Le trait orange pour la cohérence visuelle */
.testimonials-section h2::before {
    content: "";
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 4px;
    background-color: #ff9800;
    border-radius: 2px;
}

/* Paramètres du slider */
.testimonials-swiper {
    position: relative; 
    width: 100%;
    /* On augmente la largeur max pour permettre aux 3 blocs de respirer */
    max-width: 1250px; 
    margin: 0 auto;
    /* On ajoute un peu de padding sur les côtés pour les flèches */
    padding: 20px 60px;
    box-sizing: border-box;
}
/* Positionnement précis des flèches */
.swiper-button-prev,
.swiper-button-next {
    color: #0f2c59; /* Couleur de vos flèches */
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
}

/* Design des cartes */
.testimonial-card {
    background: rgba(255, 128, 16, 0.267);
    padding: 30px; 
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border: 2px solid #f0ece2;
    display: flex;
    flex-direction: column;
    align-items: center; 
    text-align: center;
    /* On passe en auto pour que la hauteur s'adapte au contenu, 
       et on ajoute un min-height pour l'uniformité */
    height: auto !important; 
    min-height: 380px; 
    box-sizing: border-box;
}

/* On s'assure que le texte ne déborde pas */
.testimonial-card p {
    font-style: italic;
    color: #4a3f35;
    margin-bottom: 20px;
    line-height: 1.8;
    font-size: 1.1rem;
    max-width: 90%; /* Évite que le texte ne touche les bords de la carte */
}

.testimonial-card .author {
    font-weight: bold;
    color: #4437d4;
}
.author-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid #fdfaf5;
}
/* Etoile jaunes */
/* Etoiles jaunes bien visibles avec une ombre portée */
.stars {
    color: #FFD700;
    font-size: 1.3rem; /* Légèrement plus grand pour plus d'impact */
    margin-bottom: -10px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3), 0 0 1px rgba(0, 0, 0, 0.5); /* Crée un contraste net avec le fond */
}
/* Ajustement pour ne pas qu'elles sortent du cadre sur mobile */
.swiper-button-prev { left: -50px; }
.swiper-button-next { right: -50px; }

@media (max-width: 768px) {
    /* 1. On réduit le padding du slider pour élargir la carte au maximum */
    .testimonials-swiper {
        padding: 20px 10px; /* On passe de 60px à 10px */
    }

    /* 2. On réduit la taille des flèches pour qu'elles ne soient pas trop grandes sur mobile */
    .swiper-button-prev,
    .swiper-button-next {
        width: 30px;
        height: 30px;
    }

    /* 3. On ajuste la position des flèches pour qu'elles restent accessibles */
    .swiper-button-prev { left: 0px; }
    .swiper-button-next { right: 0px; }

    /* 4. Optionnel : On réduit le padding de la carte elle-même sur mobile pour gagner de la place */
    .testimonial-card {
        padding: 20px 15px; 
    }
}

/* Styles de la section FAQ */
/* ==========================================================================
   SECTION FAQ AVEC MOTIF ISLAMIQUE EN ARRIÈRE-PLAN
   ========================================================================== */
.faq-section {
    padding: 70px 20px;
    background-color: #fdfaf5;
    /* Application du motif islamique en arrière-plan avec un dégradé semi-transparent */
    background-image: 
        linear-gradient(rgba(253, 250, 245, 0.833), rgba(253, 250, 245, 0.829)), 
        url('../images/pattern-islamique.png');
    background-repeat: repeat;
    background-size: 600px;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

/* On force le conteneur à s'empiler proprement en colonne unique */
.faq-section .container {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    max-width: 900px !important;
    margin: 0 auto !important;
    width: 100% !important;
}

/* Ligne décorative centrée */
.faq-section .process-line-color {
    margin: 0 auto 20px auto;
}

.faq-title {
    color: #0f2c59;
    font-size: 2.2rem;
    margin-bottom: 15px;
    text-align: center;
    width: 100%;
}

.faq-subtitle {
    color: #4a3f35;
    font-size: 1.1rem;
    margin-bottom: 40px;
    text-align: center;
    max-width: 700px;
}

/* Le conteneur des questions prend toute la largeur disponible */
.faq-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    text-align: left;
}

/* Style de chaque élément FAQ */
.faq-item {
    background: #ffffff;
    border: 1px solid #f0ece2;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.faq-item:hover {
    border-color: #ff9800;
}

/* Le bouton question */
.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 20px 25px;
    font-size: 1.1rem;
    font-weight: bold;
    color: #0f2c59;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-align: left;
}

.faq-icon {
    font-size: 1.5rem;
    color: #ff9800;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
}

/* La réponse cachée par défaut */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #4a3f35;
    line-height: 1.7;
}

.faq-answer p {
    margin: 0 0 20px 0;
}

/* Classes dynamiques activées par le JS */
.faq-item.active .faq-answer {
    max-height: 300px; 
    padding: 0 25px 20px 25px;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg); 
    color: #0f2c59;
}

/* le footer commence ici */
.footer {
    background-color: #000000;
    color: #ffffff;
    padding: 60px 20px 20px;
    margin-top: 50px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-col h3 {
    color: #FF9800; /* Rappel du orange de votre site */
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li a {
    color: #ccc;
    text-decoration: underline; /* Le soulignement est ici */
    line-height: 2;
}

.footer-col ul li a:hover {
    color: #ffffff;
    text-decoration: underline; /* Optionnel : garde le trait au survol */
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #333;
    margin-top: 40px;
    padding-top: 20px;
    font-size: 0.9rem;
    color: #888;
}
        /* Voiniou Studio dans le footer */
.studio-signature {
    margin-top: 20px;
}

.studio-signature a {
    display: flex;
    align-items: center;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.9rem;
    transition: opacity 0.3s;
}

.studio-signature a:hover {
    opacity: 0.8;
}

.studio-logo {
    width: 40px; /* Taille adaptée pour rester dans l'alignement */
    height: 40px;
    margin-right: 10px;
    border-radius: 50%;
}

.studio-signature span {
    text-decoration: underline;
    color: #cccccc; /* Un gris clair pour une meilleure intégration dans le footer */
}.studio-signature {
    margin-top: 20px;
}

.studio-signature a {
    display: flex;
    align-items: center;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.9rem;
    transition: opacity 0.3s;
}

.studio-signature a:hover {
    opacity: 0.8;
}

.studio-logo {
    width: 40px; /* Taille adaptée pour rester dans l'alignement */
    height: 40px;
    margin-right: 10px;
    border-radius: 50%;
}

.studio-signature span {
    text-decoration: underline;
    color: #cccccc; /* Un gris clair pour une meilleure intégration dans le footer */
}
/* réseaux sociaux footer */
.social-links a {
    margin: 0 10px; /* Ajoute un espace de 10px entre chaque icône */
    display: inline-block;
    transition: transform 0.3s;
}

.social-links a:hover {
    transform: scale(1.1); /* Petit effet de zoom au survol de la souris */
}