/* ===== les coleurs de site  ===== */
:root {
    --primary-purple: #5a3d7a;
    --primary-green: #4CAF50;
    --accent-purple: #7b5ba1;
    --dark-purple: #3d2657;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --text-dark: #1a202c;
    --text-light: #718096;
    --border-light: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(90,61,122,0.06), 0 1px 2px rgba(90,61,122,0.04);
    --shadow-md: 0 4px 6px rgba(90,61,122,0.07), 0 2px 4px rgba(90,61,122,0.06);
    --shadow-lg: 0 10px 15px rgba(90,61,122,0.1), 0 4px 6px rgba(90,61,122,0.05);
    --shadow-xl: 0 20px 25px rgba(90,61,122,0.15), 0 10px 10px rgba(90,61,122,0.04);
    --gradient-purple: linear-gradient(135deg, #5a3d7a 0%, #7b5ba1 100%);
    --gradient-green: linear-gradient(135deg, #4CAF50 0%, #66BB6A 100%);
    --gradient-mesh: radial-gradient(at 0% 0%, rgba(90,61,122,0.15) 0, transparent 50%),
                     radial-gradient(at 100% 0%, rgba(76,175,80,0.1) 0, transparent 50%),
                     radial-gradient(at 100% 100%, rgba(123,91,161,0.12) 0, transparent 50%);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ===== Reset & Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: 
        linear-gradient(rgba(255,255,255,0.95), rgba(248,249,250,0.95)),
        url('../images/heroAcueil.jpg') center/cover fixed;


}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===== Top Bar ===== */
.top-bar {
    background: var(--gradient-purple);
    color: var(--white);
    padding: 10px 0;
    font-size: 14px;
}

.top-bar .slogan-container {
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.top-bar .slogan {
    display: inline-block;
    white-space: nowrap;
    color: #25D366;
    font-size: 40px;
    font-family: 'Brush Script MT', cursive;
    animation: rightToLeft 10s linear infinite;
}

/* Animation de droite vers la gauche */
@keyframes rightToLeft {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}




/* ===== Navbar  ===== */
.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(90,61,122,0.06);
    height: 100px;
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
    background-color: rgba(255, 255, 255, 0.98);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.logo img {
    height: 80px;
    width: 200px;
    transition: var(--transition);
}

.logo:hover img {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 30px;
}

.nav-link {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 15px;
    padding: 8px 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--gradient-green);
    transition: var(--transition);
    transform: translateX(-50%);
    border-radius: 3px 3px 0 0;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--primary-purple);
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    box-shadow: var(--shadow-lg);
    min-width: 220px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    list-style: none;
    border-radius: 12px;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    display: block;
    padding: 12px 20px;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 14px;
    transition: var(--transition);
}

.dropdown-menu li a:hover {
    background: var(--light-bg);
    color: var(--primary-green);
    padding-left: 25px;
}

.btn-inscription {
    background: var(--gradient-green);
    color: var(--white);
    padding: 10px 24px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(76,175,80,0.25);
    position: relative;
    overflow: hidden;
}

.btn-inscription::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.btn-inscription:hover::before {
    left: 100%;
}

.btn-inscription:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76,175,80,0.35);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-toggle span {
    width: 25px;
    height: 2px;
    background: var(--primary-purple);
    margin: 3px 0;
    transition: var(--transition);
    border-radius: 2px;
}

/* ===== Hero Section - Avec Image de Fond ===== */
.hero {
    position: relative;
    height: 600px;
    background: 
        linear-gradient(135deg, rgba(90,61,122,0.82) 0%, rgba(123,91,161,0.78) 100%),
        url('../images/heroAcueil.jpg') center/cover; /* Remplacez l'URL ici */
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-mesh);
    animation: meshMove 15s ease infinite;
}

@keyframes meshMove {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to top, var(--white), transparent);
}

.hero-overlay {
    position: relative;
    z-index: 1;
    width: 100%;
}

.hero-content {
    text-align: center;
    color: var(--white);
    max-width: 800px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 15px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.hero h2 {
    font-size: 34px;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: -0.3px;
}

.hero-subtitle {
    font-size: 50px;
    font-family: 'Brush Script MT', cursive;
    margin-bottom: 35px;
    opacity: 0.95;
    line-height: 1.6;
    color:var(--white);

}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn {
    padding: 14px 35px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 15px;
    display: inline-block;
    transition: var(--transition);
}

.btn-primary {
    background: var(--gradient-green);
    color: var(--white);
    box-shadow: 0 6px 20px rgba(76,175,80,0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(76,175,80,0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-purple);
}

/* ===== Sections - Respirant ===== */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 36px;
    color: var(--primary-purple);
    margin-bottom: 15px;
    font-weight: 700;
}

.section-subtitle {
    font-size: 18px;
    color: var(--primary-purple);
    margin-top: 10px;
    line-height: 1.6;
}

.divider {
    width: 80px;
    height: 4px;
    background: var(--gradient-green);
    margin: 0 auto;
    border-radius: 2px;
}
/* ===== Mot de la Directrice ===== */

.directrice-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
    margin-top: 40px;
}

/* Image de la directrice à gauche - STICKY */
.directrice-image {
    position: sticky;
    top: 100px; 
    align-self: start;
}


.image-wrapper img {
    width: 100%;
    height: 600px;
    display: block;
    border-radius: 10px;
    border: 2px solid var(--primary-green);
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    pointer-events: none;
}

/* Texte à droite - SCROLLABLE */
.directrice-content {
    font-size: 17px;
    line-height: 1.8;
    
}

.directrice-quote {
  
    padding: 40px;
    border-radius: 20px;
    border-left: 5px solid var(--primary-green);
    position: relative;
}

.quote-icon {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 40px;
    color: var(--primary-green);
    opacity: 0.2;
}

.directrice-quote p {
    margin-bottom: 20px;
    text-align: justify;
    position: relative;
    z-index: 1;
}

.directrice-quote p:first-of-type {
    font-weight: 600;
    color: var(--primary-purple);
    font-size: 18px;
    margin-top: 30px;
}

.directrice-highlight {
    color: var(--dark-purple) !important;
  
    text-align: center !important;
    
}

.directrice-highlight strong {
    font-size: 20px;
    display: block;
}

.directrice-signature {
    margin-top: 35px;
    padding-top: 18px;
    border-top: 2px solid var(--primary-green);
    text-align: right;
}

.signature-title {
    font-size: 14px;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2px !important;
    text-align: right !important;
}

.signature-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-purple);
    margin-bottom: 0 !important;
    text-align: right !important;
}

/* RESPONSIVE - Tablettes */
@media (max-width: 1024px) {
    .section-directrice {
        padding: 60px 0;
    }
    
    .directrice-grid {
        gap: 30px;
    }
    
    .directrice-image {
        top: 80px;
    }
    
    .image-wrapper img {
        height: 450px;
    }
    
    .directrice-content {
        font-size: 16px;
    }
    
    .directrice-quote {
        padding: 35px;
    }
    
    .quote-icon {
        font-size: 35px;
    }
}

/* RESPONSIVE - Tablettes petites */
@media (max-width: 768px) {
    .section-directrice {
        padding: 50px 0;
    }
    
    .directrice-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-top: 30px;
    }
    
    /* Désactiver sticky sur mobile */
    .directrice-image {
        position: relative;
        top: 0;
    }
    
    .image-wrapper img {
        height: 400px;
    }
    
    .directrice-content {
        font-size: 15px;
        line-height: 1.7;
    }
    
    .directrice-quote {
        padding: 30px;
        border-radius: 16px;
    }
    
    .quote-icon {
        font-size: 30px;
        top: 15px;
        left: 15px;
    }
    
    .directrice-quote p:first-of-type {
        font-size: 17px;
        margin-top: 25px;
    }
    
    .directrice-highlight strong {
        font-size: 18px;
    }
    
    .signature-name {
        font-size: 16px;
    }
}

/* RESPONSIVE - Mobiles */
@media (max-width: 480px) {
    .section-directrice {
        padding: 40px 0;
    }
    
    .directrice-grid {
        gap: 30px;
        margin-top: 20px;
    }
    
    .image-wrapper {
        border-radius: 16px;
        border: 2px solid var(--primary-green);
    }
    
    .image-wrapper img {
        border-radius: 14px;
        height: 300px;
    }
    
    .image-wrapper:hover {
        transform: translateY(-3px);
    }
    
    .image-overlay {
        height: 80px;
    }
    
    .directrice-content {
        font-size: 14px;
        line-height: 1.6;
    }
    
    .directrice-quote {
        padding: 20px;
        border-radius: 12px;
        border-left: 3px solid var(--primary-green);
    }
    
    .quote-icon {
        font-size: 25px;
        top: 10px;
        left: 10px;
    }
    
    .directrice-quote p {
        margin-bottom: 15px;
    }
    
    .directrice-quote p:first-of-type {
        font-size: 16px;
        margin-top: 20px;
    }
    
    .directrice-highlight {
        padding: 15px 20px;
        margin: 25px 0 !important;
        border-radius: 10px;
    }
    
    .directrice-highlight strong {
        font-size: 16px;
    }
    
    .directrice-signature {
        margin-top: 25px;
        padding-top: 20px;
    }
    
    .signature-title {
        font-size: 12px;
    }
    
    .signature-name {
        font-size: 15px;
    }
}
/* ===== À Propos ===== */
.apropos-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
    margin-top: 40px;
}

/* Colonne vidéo à gauche - STICKY */
.apropos-video {
    position: sticky;
    top: 100px; /* Distance depuis le haut quand elle se fixe */
    align-self: start;
}

.video-container {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: var(--white);
    border: 3px solid var(--primary-green);
    transition: var(--transition);
}

.video-container:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.video-container video {
    width: 100%;
    height: 450px;
    object-fit: contain;
    display: block;
    border-radius: 20px;
    background: var(--accent-purple); 
}

.video-caption {
    text-align: center;
    margin-top: 15px;
    color: var(--primary-purple);
    font-weight: 600;
    font-size: 16px;
}

.video-caption i {
    color: var(--primary-green);
    margin-right: 8px;
    font-size: 18px;
}

/* Colonne texte à droite - SCROLLABLE */
.apropos-text {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-dark);
}

.apropos-text p {
    margin-bottom: 20px;
    text-align: justify;
}

.apropos-highlights {
    margin-top: 40px;
}

.highlight-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    padding: 25px;
    background-color: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border-left: 4px solid var(--primary-green);
}

.highlight-item:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-md);
}

.highlight-item i {
    color: var(--primary-green);
    font-size: 24px;
    margin-right: 15px;
    flex-shrink: 0;
}

/* RESPONSIVE - Tablettes */
@media (max-width: 1024px) {
    .apropos-grid {
        gap: 30px;
    }
    
    .apropos-video {
        top: 80px;
    }
    
    .video-container video {
        height: 400px;
    }
    
    .apropos-text {
        font-size: 16px;
    }
    
    .highlight-item {
        padding: 20px;
    }
}

/* RESPONSIVE - Tablettes petites */
@media (max-width: 768px) {
    .apropos-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-top: 30px;
    }
    
    /* Désactiver sticky sur mobile */
    .apropos-video {
        position: relative;
        top: 0;
    }
    
    .video-container video {
        height: 300px;
    }
    
    .apropos-text {
        font-size: 15px;
        line-height: 1.7;
    }
    
    .video-caption {
        font-size: 15px;
    }
    
    .highlight-item {
        padding: 18px;
        margin-bottom: 15px;
    }
    
    .highlight-item i {
        font-size: 22px;
        margin-right: 12px;
    }
    
    .apropos-highlights {
        margin-top: 30px;
    }
}

/* RESPONSIVE - Mobiles */
@media (max-width: 480px) {
    .apropos-grid {
        gap: 30px;
        margin-top: 20px;
    }
    
    .video-container {
        border-radius: 16px;
        border: 2px solid var(--primary-green);
    }
    
    .video-container video {
        border-radius: 14px;
        height: 200px;
    }
    
    .video-container:hover {
        transform: translateY(-3px);
    }
    
    .video-caption {
        font-size: 14px;
        margin-top: 12px;
    }
    
    .video-caption i {
        font-size: 16px;
        margin-right: 6px;
    }
    
    .apropos-text {
        font-size: 14px;
        line-height: 1.6;
    }
    
    .apropos-text p {
        margin-bottom: 15px;
        text-align: justify;
    }
    
    .highlight-item {
        padding: 15px;
        margin-bottom: 12px;
        border-radius: 12px;
        border-left: 3px solid var(--primary-green);
    }
    
    .highlight-item:hover {
        transform: translateX(5px);
    }
    
    .highlight-item i {
        font-size: 20px;
        margin-right: 10px;
    }
    
    .apropos-highlights {
        margin-top: 25px;
    }

}
/* ===== Cards Grid - Moderne ===== */
.cards-grid {
    display: flex;
    flex-wrap: wrap;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-left: 60px;
     -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
}
.cards-grid .card {
    flex: 0 0 240px;
    max-width: 240px;
    scroll-snap-align: start;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.card {
    background: var(--white);
    border-radius: 24px;
    padding: 35px 30px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-bounce);
    text-align: center;
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-green);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover::before {
    transform: scaleX(1);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.card-fas {
    width: 80px;
    height: 80px;
    background: var(--gradient-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 8px 16px rgba(76,175,80,0.25);
    transition: var(--transition-bounce);
    position: relative;
}

.card-fas::after {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    background: var(--gradient-green);
    opacity: 0;
    filter: blur(10px);
    transition: opacity 0.3s;
}

.card:hover .card-fas {
    transform: scale(1.15) rotate(5deg);
}

.card:hover .card-fas::after {
    opacity: 0.4;
}

.card-fas i {
    font-size: 36px;
    color: var(--white);
}

.card h3 {
    font-size: 22px;
    color: var(--primary-purple);
    margin-bottom: 15px;
    font-weight: 700;
}

.card p {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 15px;
    text-align: justify;
}

/* ===== Formations - Avec Images ===== */

.formations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin: 0 auto 15px auto;
    justify-content: center;
}

.formation-card {
    background: var(--white);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-bounce);
    border: 1px solid var(--border-light);
    position: relative;
}

.formation-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 2px;
    background: var(--gradient-green);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s;
}

.formation-card:hover::before {
    opacity: 1;
}

.formation-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.formation-header {
    
    color: var(--white);
    padding: 30px;
    text-align: center;
}


/* Couleurs différentes pour chaque formation-header */
.formation-card:nth-child(1) .formation-header {
    background: var(--gradient-purple);
    
}

.formation-card:nth-child(2) .formation-header {
    background: var(--gradient-green);
}

.formation-card:nth-child(3) .formation-header {
   background: var(--gradient-purple);
}


.formation-header h3 {
    font-size: 24px;
    margin-bottom: 10px;
    font-weight: 700;
}

.formation-badge {
    display: inline-block;
    background-color: rgba(255,255,255,0.2);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 17px;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.formation-body {
    padding: 30px;
}

.formation-body p {
    margin-bottom: 15px;
    color: var(--text-light);
    line-height: 1.7;
    font-size: 15px;
    text-align: justify;
}

.formation-info {
    margin-top: 20px;
    padding: 20px;
    background: var(--light-bg);
    border-radius: 12px;
    border-left: 3px solid var(--primary-green);
}

.formation-footer {
    padding: 0 30px 30px;
}

.btn-formation {
    display: block;
    text-align: center;
    background: var(--gradient-purple);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(90,61,122,0.3);
    transition: var(--transition);
    position: relative;
    z-index: 10;
}

.btn-formation:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(90,61,122,0.4);
}

/* ===== Hero Formation - Avec Image ===== */
.hero-formation {
    position: relative;
    height: 400px;
    background: linear-gradient(135deg, rgba(90,61,122,0.8) 0%, rgba(123,91,161,0.75) 100%);  
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-formation::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to top, var(--white), transparent);
}

.hero-formation .hero-content h1 {
    font-size: 42px;
    margin-bottom: 15px;
    font-weight: 700;
}

.formation-duration {
    font-size: 18px;
    opacity: 0.95;
    margin-top: 10px;
    font-weight: 500;
}

/* Formation Detail */
.section-formation-detail {
    padding: 80px 0;
    
}

.formation-intro {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 60px;
}

.formation-intro h2 {
    font-size: 36px;
    color: var(--primary-purple);
    margin-bottom: 20px;
    font-weight: 700;
}

.lead {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-light);
    margin-top: 20px;
    text-align: justify;
}

.formation-video {
    width: 100%;
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

.formation-video .video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* Ratio 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 15px 50px rgba(90, 61, 122, 0.2);
    background: #000;
}

.formation-video .video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 15px;
}


/* Effet hover */
.formation-video .video-container:hover {
    box-shadow: 0 20px 60px rgba(90, 61, 122, 0.3);
    transform: translateY(-5px);
    transition: all 0.3s ease;
}

/* Responsive */
@media (max-width: 768px) {
    .formation-video {
        margin: 30px auto;
        padding: 0 15px;
    }
    
    .formation-video .video-container {
        border-radius: 10px;
    }
    
    .formation-video .video-container video {
        border-radius: 10px;
    }
}

@media (max-width: 480px) {
    .formation-video {
        margin: 20px auto;
        padding: 0 10px;
    }
}

.formation-content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.formation-main {
    display: flex;
    flex-direction: column;
    gap: 35px;
}

.content-block {
    background: var(--white);
    padding: 35px;
    border-radius: 24px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-light);
    position: relative;
   
}

.content-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 0;
    background: var(--gradient-green);
    transition: height 0.3s ease;
    border-radius: 0 0 0 24px;
}

.content-block:hover::before {
    height: 100%;
}

.content-block:hover {
    box-shadow: var(--shadow-lg);
    transform: translateX(5px);
}

.content-block h3 {
    font-size: 26px;
    color: var(--primary-purple);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--primary-green);
    font-weight: 700;
}

.content-block p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 15px;
    text-align: justify;
}

.competences-list,
.debouches-list {
    list-style: none;
    padding: 0;
}

.competences-list li,
.debouches-list li {
    padding: 14px 0 14px 40px;
    position: relative;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition);
}

.competences-list li:hover,
.debouches-list li:hover {
    padding-left: 45px;
    background: linear-gradient(to right, rgba(76,175,80,0.05), transparent);
}

.competences-list li:last-child,
.debouches-list li:last-child {
    border-bottom: none;
}

.competences-list li::before,
.debouches-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 26px;
    height: 26px;
    background: var(--gradient-green);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
}

/* Formation Sidebar */
.formation-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-card,
.cta-card {
    background: var(--white);
    border-radius: 20px;
    padding: 50px 30px 50px 30px ;
    width: 450px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-light);
}

.info-card:hover,
.cta-card:hover {
    box-shadow: var(--shadow-md);
}

.info-card h3,
.cta-card h3 {
    font-size: 22px;
    color: var(--primary-purple);
    margin-bottom: 20px;
    text-align: center;
    font-weight: 700;
}

.info-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-light);
     line-height: 1.6;
}

.info-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.info-item strong {
    display: block;
    color: var(--primary-purple);
    font-size: 14px;
    margin-bottom: 8px;
    font-weight: 700;
}

.info-item p {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.6;
}

.cta-card {
    background: var(--gradient-purple);
    color: var(--white);
    text-align: center;
    border: none;
}

.cta-card h3 {
    color: var(--white);
}

.cta-card p {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 25px;
    opacity: 0.95;
}

.btn-block {
    display: block;
    width: 100%;
    margin-bottom: 15px;
    text-align: center;
    margin: 0 auto 15px auto;
    
}

.btn-block:last-child {
    margin-bottom: 0;
}
/* ===== Galerie Slider ===== */
.section-galerie {

    padding: 100px 0;
    overflow: hidden;
}

.slider-wrapper {
    position: relative;
    max-width: 1400px;
    margin: 60px auto 0;
    padding: 0 80px;
}

.slider-container {
    position: relative;
    height: 500px;
    perspective: 2000px;
}

.slider-track {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide {
    position: absolute;
    width: 600px;
    height: 350px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.3;
    transform: translateX(0) scale(0.75) rotateY(0deg);
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
}

.slide img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    display: block;
}

/* Image centrale (active) */
.slide.active {
    opacity: 1;
    transform: translateX(0) scale(1) rotateY(0deg);
    z-index: 10;
    box-shadow: 0 30px 80px rgba(90, 61, 122, 0.6);
}

/* Image à gauche */
.slide.prev {
    opacity: 0.6;
    transform: translateX(-450px) scale(0.85) rotateY(15deg);
    z-index: 5;
}

/* Image à droite */
.slide.next {
    opacity: 0.6;
    transform: translateX(450px) scale(0.85) rotateY(-15deg);
    z-index: 5;
}

/* Images très à gauche */
.slide.far-left {
    opacity: 0.3;
    transform: translateX(-800px) scale(0.7) rotateY(25deg);
    z-index: 1;
}

/* Images très à droite */
.slide.far-right {
    opacity: 0.3;
    transform: translateX(800px) scale(0.7) rotateY(-25deg);
    z-index: 1;
}

/* Boutons de contrôle */
.slider-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 20;
}

.slider-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-green);
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    pointer-events: auto;
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(76, 175, 80, 0.6);
    background: linear-gradient(135deg, #66BB6A 0%, #4CAF50 100%);
}

.slider-btn:active {
    transform: scale(0.95);
}

/* RESPONSIVE */
@media (max-width: 1400px) {
    .slider-wrapper {
        padding: 0 60px;
    }
    
    .slide {
        width: 600px;
        height: 400px;
    }
    
    .slide.prev {
        transform: translateX(-400px) scale(0.85) rotateY(15deg);
    }
    
    .slide.next {
        transform: translateX(400px) scale(0.85) rotateY(-15deg);
    }
    
    .slide.far-left {
        transform: translateX(-700px) scale(0.7) rotateY(25deg);
    }
    
    .slide.far-right {
        transform: translateX(700px) scale(0.7) rotateY(-25deg);
    }
}

@media (max-width: 1024px) {
    .slider-container {
        height: 400px;
    }
    
    .slide {
        width: 500px;
        height: 350px;
    }
    
    .slide.prev {
        transform: translateX(-350px) scale(0.8) rotateY(12deg);
    }
    
    .slide.next {
        transform: translateX(350px) scale(0.8) rotateY(-12deg);
    }
    
    .slide.far-left,
    .slide.far-right {
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .section-galerie {
        padding: 60px 0;
    }
    
    .slider-wrapper {
        padding: 0 40px;
    }
    
    .slider-container {
        height: 350px;
    }
    
    .slide {
        width: 400px;
        height: 300px;
    }
    
    .slide.prev {
        transform: translateX(-280px) scale(0.75) rotateY(10deg);
    }
    
    .slide.next {
        transform: translateX(280px) scale(0.75) rotateY(-10deg);
    }
    
    .slider-btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .slider-wrapper {
        padding: 0 20px;
    }
    
    .slider-container {
        height: 280px;
    }
    
    .slide {
        width: 300px;
        height: 240px;
    }
    
    .slide.active {
        transform: translateX(0) scale(1) rotateY(0deg);
    }
    
    .slide.prev {
        transform: translateX(-200px) scale(0.7) rotateY(8deg);
        opacity: 0.4;
    }
    
    .slide.next {
        transform: translateX(200px) scale(0.7) rotateY(-8deg);
        opacity: 0.4;
    }
    
    .slider-btn {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}
/* ===== Footer - Moderne ===== */
.footer {
    background:  #844e9c;
    color: var(--white);
    padding: 60px 0 20px;
    
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
    
    
}

.footer-logo img {
    height: 80px;
    width: 160px;
    filter: brightness(1);
}


.footer-column h3 {
    color: var(--primary-green);
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 700;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column a {
    opacity: 0.85;
    transition: var(--transition);
    
}

.footer-column a:hover {
    opacity: 1;
    color: var(--primary-green);
    padding-left: 5px;
}

.footer-social a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: var(--gradient-green);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    margin-right: 10px;
    margin-top: 10px;
    transition: var(--transition);
}

.footer-social a:hover {
    transform: translateY(-3px);
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
   
}

.contact-list i {
    color: var(--primary-green);
    margin-right: 10px;
    font-size: 16px;
    flex-shrink: 0;
}

.arabic {
    display: block;
    margin-top: 5px;
    opacity: 0.75;
    font-size: 26px;
    color: #ffffff;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    margin: 5px 0;
    font-size: 13px;
    opacity: 0.75;
}

/* ===== WhatsApp Float Button ===== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366 0%, #1ebe57 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 30px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: var(--transition-bounce);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.whatsapp-float:hover {
    transform: scale(1.15);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
    animation: none;
}

/* ===== Scroll to Top Button ===== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: var(--dark-purple);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-bounce);
    z-index: 999;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--gradient-green);
    transform: translateY(-8px) rotate(360deg);
    box-shadow: var(--shadow-xl);
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Scroll reveal animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
}

.animate-on-scroll.animated {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* ===== Page Hero ===== */
.page-hero {  
    color: var(--white);
    padding: 60px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    
}
.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(90,61,122,0.7) 0%, rgba(123,91,161,0.65) 100%);
    z-index: 1;
}

.page-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to top, var(--white), transparent);
    z-index: 1;
}
/* contenu au-dessus du gradient */
.page-hero .hero-content {
    position: relative;
    z-index: 4; /* texte au-dessus tout */
}
.page-hero h1 {
    font-size: 42px;
    margin-bottom: 10px;
    font-weight: 700;
}

/* ===== Section Conditions ===== */
.conditions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.condition-card {
    background-color: var(--white);
    border-radius: 20px;
    padding: 35px 25px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-light);
}

.condition-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-green);
}

.condition-card.featured {
    border: 2px solid var(--primary-green);
    box-shadow: var(--shadow-md);
}

.condition-fas {
    width: 70px;
    height: 70px;
    background: var(--gradient-purple);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 4px 15px rgba(90,61,122,0.25);
    transition: var(--transition);
}

.condition-card:hover .condition-fas {
    transform: scale(1.1);
}

.condition-fas i {
    font-size: 32px;
    color: var(--white);
}

.condition-card h3 {
    text-align: center;
    color: var(--primary-purple);
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 700;
}

.condition-list {
    list-style: none;
    padding: 0;
}

.condition-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-dark);
    line-height: 1.6;
    font-size: 15px;
}

.condition-list li:last-child {
    border-bottom: none;
}

/* ===== Info Box ===== */
.info-box {
    background-color: var(--white);
    border-left: 4px solid var(--primary-green);
    padding: 25px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    border-left-width: 4px;
}

.info-box h3 {
    color: var(--primary-purple);
    margin-bottom: 12px;
    font-weight: 700;
    font-size: 20px;
}

.info-box ul {
    margin-top: 12px;
    padding-left: 20px;
}

.info-box li {
    margin-bottom: 8px;
    color: var(--text-light);
    line-height: 1.6;
    font-size: 15px;
}

/* ===== Inscription Content ===== */
.inscription-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.inscription-info h3 {
    color: var(--primary-purple);
    margin-bottom: 15px;
    font-weight: 700;
    font-size: 24px;
}

.documents-list {
    margin-top: 15px;
    padding-left: 20px;
}

.documents-list li {
    margin-bottom: 12px;
    color: var(--text-light);
    line-height: 1.6;
    font-size: 15px;
}

/* ===== Form Card ===== */
.form-card {
    background-color: var(--white);
    border-radius: 20px;
    padding: 35px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
}

.form-card h3 {
    color: var(--primary-purple);
    margin-bottom: 25px;
    text-align: center;
    font-weight: 700;
    font-size: 24px;
}

.form-description {
    color: var(--text-light);
    margin-bottom: 25px;
    line-height: 1.6;
    text-align: center;
    font-size: 15px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-light);
    border-radius: 10px;
    font-size: 14px;
    transition: var(--transition);
    font-family: inherit;
    background-color: var(--white);
    color: var(--text-dark);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 3px rgba(90,61,122,0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* ===== Button Submit ===== */
.btn-submit {
    width: 100%;
    background: var(--gradient-green);
    color: var(--white);
    padding: 14px 20px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-bounce);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(76,175,80,0.3);
    position: relative;
    overflow: hidden;
}

.btn-submit::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-submit:hover::before {
    width: 300px;
    height: 300px;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(76,175,80,0.4);
}

.btn-submit:active {
    transform: translateY(-1px);
}

/* ===== Contact Admission ===== */
.contact-admission {
    background: var(--gradient-purple);
    color: var(--white);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact-admission h3 {
    font-size: 26px;
    margin-bottom: 12px;
    font-weight: 700;
}

.contact-methods {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(255,255,255,0.2);
    padding: 12px 20px;
    border-radius: 25px;
    color: var(--white);
    transition: var(--transition);
    backdrop-filter: blur(10px);
    font-weight: 600;
    font-size: 14px;
}

.contact-method:hover {
    background-color: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

.contact-method.whatsapp {
    background-color: #25D366;
}

.contact-method.whatsapp:hover {
    background-color: #20ba5a;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

/* ===== Section Contact ===== */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
}

.contact-info-section h2,
.contact-form-section h2 {
    font-size: 30px;
    color: var(--primary-purple);
    margin-bottom: 12px;
    font-weight: 700;
}

.divider-left {
    width: 70px;
    height: 4px;
    background: var(--gradient-green);
    margin-bottom: 25px;
    border-radius: 2px;
}

.info-item {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    padding: 20px;
    background-color: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-light);
}

.info-item:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-green);
}

.info-fas {
    width: 55px;
    height: 55px;
    background: var(--gradient-purple);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(90,61,122,0.2);
}

.info-fas i {
    font-size: 24px;
    color: var(--white);
}

.info-content h3 {
    color: var(--primary-purple);
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: 700;
}

.info-content p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 5px;
    font-size: 14px;
}

.info-content a {
    color: var(--primary-purple);
    font-weight: 600;
    transition: var(--transition);
}

.info-content a:hover {
    color: var(--primary-green);
}

.arabic {
    font-size: 13px;
    margin-top: 8px;
    opacity: 0.8;
}

/* ===== Social Section ===== */
.social-section {
    margin-top: 35px;
    padding: 25px;
    background: var(--light-bg);
    border-radius: 16px;
    border: 1px solid var(--border-light);
}

.social-section h3 {
    color: var(--primary-purple);
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 700;
}

.social-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 10px;
    color: var(--white);
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    font-size: 14px;
}

.social-btn i {
    font-size: 20px;
}

.social-btn.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-btn.tiktok {
    background-color: #000000;
}
.social-btn.linkedin {
     background-color: #065580;
}
.social-btn.whatsapp {
    background-color: #25D366;
}

.social-btn:hover {
    transform: translateX(8px) translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

/*====  section map ====*/
.map-info-bottom {
    text-align: center;
    margin-top: 30px;
}

.btn-directions {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--gradient-green);
    color: var(--white);
    padding: 14px 30px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition-bounce);
    box-shadow: 0 6px 20px rgba(76,175,80,0.3);
}

.btn-directions:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(76,175,80,0.4);
}

.btn-directions i {
    font-size: 18px;
}

@media (max-width: 768px) {
    .map-container iframe {
        height: 350px;
    }
    
    .btn-directions {
        padding: 12px 25px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .map-container iframe {
        height: 300px;
    }
    
    .btn-directions {
        padding: 12px 20px;
        font-size: 13px;
        width: 100%;
        justify-content: center;
    }
    
    .map-info-bottom {
        padding: 0 15px;
    }
}
/* ===== Responsive Design ===== */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .formation-content-grid {
        grid-template-columns: 1fr;
    }
    
    .formation-sidebar {
        order: -1;
    }
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 90px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 90px);
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 25px 20px;
        transition: left 0.3s ease;
        overflow-y: auto;
        box-shadow: var(--shadow-lg);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding-left: 15px;
        margin-top: 8px;
        border-radius: 0;
        border-left: 2px solid var(--primary-green);
    }
    
    .hero {
        height: 450px;
    }
    
    .hero h1 {
        font-size: 36px;
    }
    
    .hero h2 {
        font-size: 26px;
    }
    
    .hero-subtitle {
        font-size: 30px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        
    }
    
    .btn {
        width: 200px;
        padding: 14px 0px;
        font-size: 16px;
        text-align: center;
        
    }
    
    .section-header h2 {
        font-size: 30px;
    }
    
    section {
        padding: 60px 0;
    }
    
    .page-hero h1 {
        font-size: 32px;
    }
    
    .conditions-grid {
        grid-template-columns: 1fr;
    }
    
    .inscription-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .contact-methods {
        flex-direction: column;
        gap: 12px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .contact-info-section h2,
    .contact-form-section h2 {
        font-size: 24px;
    }
    
    .form-card {
        padding: 25px 20px;
    }
    
    .contact-admission {
        padding: 30px 20px;
    }
    
    
    .hero-formation {
        height: 320px;
    }
    
    .hero-formation .hero-content h1 {
        font-size: 30px;
    }
    
    .formation-intro h2 {
        font-size: 28px;
    }
    
    .content-block {
        padding: 25px 20px;
    }
    
    .content-block h3 {
        font-size: 22px;
    }
    
    .whatsapp-float,
    .scroll-top {
        width: 50px;
        height: 50px;
        bottom: 20px;
    }
    
    .whatsapp-float {
        right: 20px;
        font-size: 26px;
    }
    
    .scroll-top {
        left: 20px;
    }
    
    .formations-grid,
    .cards-grid,
    .programme-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 28px;
    }
    
    .hero h2 {
        font-size: 22px;
    }
    
    .hero-subtitle {
        font-size: 15px;
    }
    
    .section-header h2 {
        font-size: 26px;
    }
    
    .card {
        padding: 25px 20px;
    }
    
    .formation-header {
        padding: 25px 20px;
    }
    
    .formation-body {
        padding: 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .page-hero {
        padding: 50px 0;
    }
    
    .page-hero h1 {
        font-size: 26px;
    }
    
    .condition-card {
        padding: 25px 20px;
    }
    
    .info-item {
        flex-direction: column;
        text-align: center;
    }
    
    .info-fas {
        margin: 0 auto;
    }
}

/* ===== Print Styles ===== */
@media print {
    .navbar,
    .whatsapp-float,
    .scroll-top,
    .hero-buttons,
    .btn-inscription,
    .top-bar {
        display: none;
    }
    
    .hero {
        height: auto;
        padding: 30px 0;
    }
    
    * {
        box-shadow: none !important;
    }
}
/* Contact non cliquable */
.nav-menu > .nav-item:nth-child(4) {
    position: relative;
    z-index: 999 !important;
}

.nav-menu > .nav-item:nth-child(4) > .nav-link {
    pointer-events: auto !important;
    cursor: pointer !important;
    position: relative;
    z-index: 1000 !important;
}

/* Empêcher les dropdowns précédents de déborder */
.nav-menu > .nav-item:nth-child(3) .dropdown-menu {
    pointer-events: auto;
    z-index: 50;
    max-width: 220px;
    overflow: hidden;
}

/* Réduire la zone hover du dropdown Admission */
.nav-menu > .nav-item:nth-child(3):hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-menu > .nav-item:nth-child(3) {
    z-index: 10;
}


