:root {
    /* Brand */
    --primary-color: #2563eb;
    --secondary-color: #1d4ed8;

    /* Surfaces */
    --bg: #f7f9fc;
    --surface: #ffffff;
    --surface-2: #fbfdff;
    --border: rgba(15, 23, 42, 0.08);

    /* Text */
    --text-color: #0f172a;
    --text-muted: #475569;
    --dark-gray: #0f172a;
    --light-gray: #f1f5f9;
    --section-bg: #f7f9fc;

    /* Typography */
    --font-primary: 'Inter', 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    --font-secondary: 'Inter', 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    --font-headings: 'Inter', 'Roboto Slab', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

    /* Layout */
    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 24px;
    --shadow-sm: 0 10px 24px rgba(2, 8, 23, 0.06);
    --shadow-md: 0 18px 44px rgba(2, 8, 23, 0.10);
    --header-height: 72px;
}

/* Body - Suppression complète de l'espace */
body {
    padding-top: var(--header-height);
    margin: 0;
    font-family: var(--font-primary);
    color: var(--text-color);
    line-height: 1.6;
    overflow-y: auto;
    overflow-x: hidden;
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-headings);
    font-weight: 700;
    color: var(--dark-gray);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    color: var(--dark-gray);
}

.section-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
}

.lead {
    font-family: var(--font-secondary);
    font-size: 1.25rem;
    font-weight: 300;
}

/* Navigation - Header collé au haut sans bande blanche */
.navbar {
    background: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border) !important;
    box-shadow: 0 10px 28px rgba(2, 8, 23, 0.06);
    padding: 0.6rem 0;
    margin: 0 !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1030;
}

.navbar-brand img {
    max-height: 44px;
    width: auto;
    margin: 0;
}

/* Liens du menu principal : détail des soulignements dans components.css */
.navbar-nav .nav-link {
    font-family: var(--font-secondary);
    font-weight: 500;
    text-transform: none;
    font-size: 0.95rem;
    padding: 0.45rem 0.9rem !important;
    color: var(--text-color);
}

/* Styles pour le menu hamburger */
.navbar-toggler {
    border: 1px solid rgba(0,0,0,0.1);
    padding: 0.25rem 0.5rem;
    background-color: white;
    margin-left: auto;
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: 2px solid rgba(37, 99, 235, 0.55);
    outline-offset: 2px;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Container du header avec flexbox */
.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 1rem;
    margin: 0 !important;
}

/* Logo à gauche */
.navbar-brand {
    margin: 0;
    margin-left: 2rem; /* Espacement du logo depuis la gauche sur desktop */
}

/* Menu hamburger à droite */
.navbar-toggler {
    flex-shrink: 0;
    order: 2;
    margin-right: 0;
}

/* Hero Section - Commence directement sous le header */
.hero-section {
    position: relative;
    height: 100vh;
    margin-top: 0; /* Pas de marge pour éliminer la bande blanche */
    overflow: hidden;
}

.hero-slider {
    height: 100%;
}

.hero-slide {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    height: 100vh;
    display: flex;
    align-items: center;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.5) 50%,
        rgba(0, 0, 0, 0.7) 100%
    );
    z-index: 1;
}

.slide-content {
    position: relative;
    z-index: 2;
    padding: 4rem 2rem;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    width: 100%;
}

/* Floating CTA - Repositionné pour ne pas gêner le scroll-to-top */
.floating-cta {
    position: fixed;
    bottom: 30px;
    right: 30px; /* Changé de left à right */
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
}

.floating-cta-btn {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    font-size: 1.5rem;
    min-width: 44px;
    min-height: 44px;
}

.floating-cta-btn:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    color: white;
}

.floating-cta-label {
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.floating-cta:hover .floating-cta-label {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Floating CTA */
@media (max-width: 768px) {
    .floating-cta {
        bottom: 20px;
        right: 20px;
    }
    
    .floating-cta-btn {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
}

/* Badge moderne pour chaque slide */
.slide-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.slide-badge i {
    margin-right: 0.75rem;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.slide-badge span {
    font-weight: 700;
    color: var(--primary-color);
}

.slide-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    color: white;
}

.slide-description {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    line-height: 1.6;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Actions des slides avec design moderne */
.slide-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.slide-actions .btn {
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    min-width: 44px;
    min-height: 44px;
}

.slide-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Navigation du slider */
.swiper-button-next,
.swiper-button-prev {
    color: white;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    transition: all 0.3s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 1.2rem;
    font-weight: bold;
}

/* Pagination du slider */
.swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
    width: 12px;
    height: 12px;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    background: var(--primary-color);
    transform: scale(1.2);
}

/* About Section */
.about-section {
    padding: 8rem 0;
    background-color: var(--section-bg);
}

.about-content {
    padding-right: 3rem;
}

.about-content .lead {
    font-size: 1.4rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.about-image {
    text-align: center;
}

.about-image img {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-image img:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.key-points {
    margin-top: 2rem;
}

.point {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.point i {
    color: var(--primary-color);
    margin-right: 1rem;
    font-size: 1.2rem;
}

/* Services Section */
.services-section {
    padding: 20rem 0; /* AUGMENTER BEAUCOUP PLUS LA HAUTEUR */
    background-color: var(--section-bg);
    width: 100vw; /* Prendre toute la largeur de la page */
    margin-left: calc(-50vw + 50%); /* Centrer et étendre */
    margin-right: calc(-50vw + 50%); /* Centrer et étendre */
}

.service-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
    text-align: left;
}

.service-list li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.9rem;
    color: #666;
}

.service-list li::before {
    content: "✓";
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.service-icon {
    width: 80px;
    height: 80px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.service-icon i {
    color: white;
    font-size: 2rem;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--dark-gray);
}

.service-card p {
    color: #666;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

/* Training Section */
.training-section {
    padding: 5rem 0;
    background-color: white;
}

.training-features {
    margin-top: 2rem;
}

.feature {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: white;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.feature:hover {
    transform: translateX(10px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.feature i {
    color: var(--primary-color);
    font-size: 2rem;
    margin-right: 1.5rem;
}

.feature h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.feature p {
    margin-bottom: 0;
    color: #666;
}

.training-image img {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Contact Section */
.contact-section {
    padding: 5rem 0;
    background-color: white;
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--dark-gray);
}

.form-control {
    border: 1px solid #dee2e6;
    padding: 0.75rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(31, 131, 193, 0.25);
}

.contact-info {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    height: 100%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-info h3 {
    margin-bottom: 1.5rem;
    color: var(--dark-gray);
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.info-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-right: 1rem;
    width: 24px;
}

.info-item p {
    margin-bottom: 0;
}

.download-brochure {
    margin-top: 2rem;
}

/* Footer - Amélioré */
footer {
    background-color: #1a1a1a !important;
    color: #ffffff;
    padding: 3rem 0 1rem;
}

footer h4 {
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

footer p {
    color: #cccccc;
    line-height: 1.6;
}

footer ul {
    list-style: none;
    padding: 0;
}

footer ul li {
    margin-bottom: 0.5rem;
}

footer ul li a {
    color: #cccccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-contact li {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.footer-contact li i {
    color: var(--primary-color);
    margin-right: 0.5rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.footer-contact li:last-child {
    margin-bottom: 0;
}

/* Responsive Footer */
@media (max-width: 768px) {
    footer .col-md-3 {
        margin-bottom: 2rem;
        text-align: center;
    }
    
    footer .col-md-3:last-child {
        margin-bottom: 0;
    }
    
    .footer-contact li {
        justify-content: center;
        text-align: center;
    }
}

.social-links {
    margin-left: auto;
}

.social-links a {
    font-size: 1.3rem;
    transition: all 0.3s ease;
    opacity: 0.8;
    background: rgba(0, 0, 0, 0.8);
    color: white !important;
    padding: 0.4rem;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 0.1rem;
    text-decoration: none;
}

.social-links a:hover {
    background: var(--primary-color);
    color: white !important;
    transform: scale(1.1);
    opacity: 1;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    border: none;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

.btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* Responsive Adjustments */
/* ===== RESPONSIVE MOBILE OPTIMISÉ POUR ANDROID ET IPHONE ===== */

/* Mobile standard (768px et moins) */
@media (max-width: 768px) {
    /* Header mobile */
    .navbar {
        padding: 0.5rem 0;
        background-color: white !important;
        position: relative;
        border: none;
        margin: 0;
    }
    
    .navbar-brand img {
        max-height: 50px;
        width: auto;
    }
    
    /* Menu hamburger FORCÉ visible */
    .navbar-toggler {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        border: 1px solid rgba(0,0,0,0.1);
        padding: 0.25rem 0.5rem;
        background-color: white;
        position: absolute;
        right: 1rem;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1001;
        min-width: 44px;
        min-height: 44px;
    }
    
    .navbar-toggler:focus {
        box-shadow: none;
        outline: none;
    }
    
    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
        width: 20px;
        height: 20px;
        display: block;
    }
    
    /* Container du header */
    .navbar .container {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 0 1rem;
    }
    
    /* Logo à gauche */
    .navbar-brand {
        margin-right: 0;
        flex: 1;
        max-width: 200px;
    }
    
    /* Menu déroulant */
    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 1000;
        background: white;
        border-radius: 0 0 8px 8px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        margin-top: 0;
        padding: 1rem;
        border: 1px solid rgba(0,0,0,0.1);
        display: none;
    }
    
    .navbar-collapse.show {
        display: block !important;
    }
    
    .navbar-nav {
        text-align: center;
        margin-bottom: 1rem;
    }
    
    .nav-link {
        font-size: 0.9rem;
        padding: 0.75rem 1rem !important;
        border-bottom: 1px solid rgba(0,0,0,0.1);
        color: var(--text-color) !important;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .nav-link:last-child {
        border-bottom: none;
    }
    
    .nav-link.active {
        color: var(--primary-color) !important;
        background-color: rgba(31, 131, 193, 0.1);
        border-radius: 4px;
    }
    
    /* Icônes sociales dans le menu mobile */
    .social-links {
        margin: 0;
        justify-content: center;
        padding-top: 1rem;
        border-top: 1px solid rgba(0,0,0,0.1);
    }
    
    .social-links a {
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
        margin: 0 0.25rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Hero Section mobile */
    .hero-section {
        height: 100vh;
        margin-top: 0;
        overflow: hidden;
        -webkit-overflow-scrolling: touch;
    }
    
    .slide-content {
        height: 100vh;
        padding: 2rem 1rem;
        max-width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        box-sizing: border-box;
        -webkit-box-sizing: border-box;
        width: 100%;
        margin: 0 auto;
        position: relative;
        z-index: 2;
    }
    
    .slide-badge {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
        margin-bottom: 1rem;
        align-self: center;
        text-align: center;
    }
    
    .slide-title {
        font-size: 2.2rem;
        line-height: 1.1;
        margin-bottom: 1rem;
        text-align: center;
        word-wrap: break-word;
        overflow-wrap: break-word;
        -webkit-hyphens: auto;
        -moz-hyphens: auto;
        hyphens: auto;
        color: white;
    }
    
    .slide-description {
        font-size: 1.1rem;
        margin-bottom: 2rem;
        line-height: 1.4;
        text-align: center;
        word-wrap: break-word;
        overflow-wrap: break-word;
        -webkit-hyphens: auto;
        -moz-hyphens: auto;
        hyphens: auto;
        color: white;
    }
    
    .slide-actions {
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
        align-items: stretch;
        box-sizing: border-box;
        -webkit-box-sizing: border-box;
    }
    
    .slide-actions .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.85rem;
        width: 100%;
        text-align: center;
        margin: 0 !important;
        box-sizing: border-box;
        -webkit-box-sizing: border-box;
        white-space: normal;
        word-wrap: break-word;
        overflow-wrap: break-word;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        -webkit-tap-highlight-color: rgba(0,0,0,0.1);
    }
    
    /* Navigation slider mobile */
    .swiper-button-next,
    .swiper-button-prev {
        width: 44px;
        height: 44px;
        background-color: rgba(0, 0, 0, 0.6);
        border-radius: 50%;
        margin-top: -22px;
        -webkit-tap-highlight-color: rgba(0,0,0,0.1);
    }
    
    .swiper-button-next::after,
    .swiper-button-prev::after {
        font-size: 1.2rem;
        color: white;
    }
    
    /* Pagination mobile */
    .swiper-pagination-bullet {
        width: 10px;
        height: 10px;
        background: rgba(255, 255, 255, 0.7);
    }
    
    /* Section About mobile */
    .about-section {
        padding: 3rem 0;
    }
    
    .about-content {
        padding-right: 0;
        margin-bottom: 2rem;
        text-align: center;
    }
    
    .about-content .lead {
        font-size: 1.1rem;
        line-height: 1.6;
        text-align: center;
    }
    
    .about-content p {
        font-size: 1rem;
        line-height: 1.5;
        text-align: center;
    }

    .about-image img {
        max-width: 100%;
        margin-top: 1.5rem;
        border-radius: 10px;
    }

    /* Services mobile */
    .services-section {
        padding: 15rem 0; /* AUGMENTER BEAUCOUP PLUS LA HAUTEUR SUR MOBILE */
        width: 100vw; /* Prendre toute la largeur sur mobile */
        margin-left: calc(-50vw + 50%);
        margin-right: calc(-50vw + 50%);
    }
    
    .service-card {
        margin-bottom: 1.5rem;
        padding: 1.5rem;
        height: auto;
    }
    
    .service-card h3 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }
    
    .service-list {
        font-size: 0.9rem;
    }

    /* Formation mobile */
    .training-section {
        padding: 3rem 0;
    }
    
    .training-section .d-flex {
        flex-direction: column;
        gap: 1rem;
    }
    
    .training-section .btn {
        width: 100%;
        text-align: center;
        padding: 0.875rem 1.5rem;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .training-section img {
        max-width: 100%;
        margin-bottom: 1.5rem;
    }

    /* Témoignages mobile */
    .testimonials-section {
        padding: 3rem 0;
    }
    
    .testimonial-card {
        padding: 1.5rem;
        margin: 0 0.5rem;
    }
    
    .testimonial-content p {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    /* Footer mobile */
    footer {
        padding: 2rem 0;
    }
    
    footer .col-md-3 {
        margin-bottom: 2rem;
        text-align: center;
    }
    
    footer .col-md-3:last-child {
        margin-bottom: 0;
    }
    
    .footer-contact li {
        margin-bottom: 0.75rem;
        font-size: 0.9rem;
    }

    /* CTA flottant mobile - Supprimé pour éviter les conflits */
    
    /* Titres généraux mobile */
    .section-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    /* Espacement général mobile */
    .py-5 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* iPhone et très petits écrans (576px et moins) */
@media (max-width: 576px) {
    /* Header très petit */
    .navbar-brand img {
        max-height: 40px;
    }
    
    .navbar-toggler {
        padding: 0.2rem 0.4rem;
        font-size: 0.9rem;
        right: 0.75rem;
        min-width: 44px;
        min-height: 44px;
    }
    
    .nav-link {
        font-size: 0.8rem;
        padding: 0.5rem 0.8rem !important;
        min-height: 44px;
    }
    
    .navbar-collapse {
        padding: 0.75rem;
    }
    
    /* Hero très petit */
    .slide-content {
        padding: 1.5rem 0.75rem;
    }
    
    .slide-title {
        font-size: 1.8rem;
        line-height: 1.1;
    }
    
    .slide-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .slide-badge {
        padding: 0.3rem 0.6rem;
        font-size: 0.7rem;
    }
    
    /* Boutons très petits */
    .slide-actions .btn {
        padding: 0.625rem 1rem;
        font-size: 0.8rem;
        min-height: 44px;
    }
    
    /* Navigation très petit */
    .swiper-button-next,
    .swiper-button-prev {
        width: 44px;
        height: 44px;
    }
    
    .swiper-button-next::after,
    .swiper-button-prev::after {
        font-size: 1rem;
    }
    
    /* Titres très petits */
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 0.75rem;
    }
    
    .section-subtitle {
        font-size: 0.9rem;
    }
    
    /* Espacement très petit */
    .py-5 {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }
    
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    /* Services très petits */
    .service-card {
        padding: 1.25rem;
        margin-bottom: 1rem;
    }
    
    .service-card h3 {
        font-size: 1.2rem;
    }
    
    /* Formation très petit */
    .training-section .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.85rem;
        min-height: 44px;
    }
    
    /* Footer très petit */
    footer h4 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    footer p, footer li {
        font-size: 0.85rem;
    }
    
    /* Icônes sociales très petits */
    .social-links a {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
        margin: 0 0.2rem;
    }
}

/* iPhone SE et très petits écrans (375px et moins) */
@media (max-width: 375px) {
    .slide-title {
        font-size: 1.6rem;
    }
    
    .slide-description {
        font-size: 0.9rem;
    }
    
    .slide-actions .btn {
        font-size: 0.75rem;
        padding: 0.5rem 0.875rem;
    }
    
    .navbar-brand img {
        max-height: 35px;
    }
    
    .container {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
}

/* Tablettes en mode portrait */
@media (max-width: 768px) and (min-width: 577px) {
    .navbar-brand img {
        max-height: 50px;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .slide-title {
        font-size: 2.5rem;
    }
    
    .slide-description {
        font-size: 1.2rem;
    }
    
    .slide-actions {
        flex-direction: row;
        gap: 1rem;
    }
    
    .slide-actions .btn {
        width: auto;
    }
}

/* Page Header */
.page-header {
    background: linear-gradient(rgba(31, 131, 193, 0.9), rgba(31, 131, 193, 0.9)), url('https://placehold.co/1920x300/1F83C1/ffffff?text=Header+Background');
    background-size: cover;
    background-position: center;
    padding: 100px 0 50px;
    color: white;
    margin-bottom: 2rem;
}

.page-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: white;
}

.breadcrumb {
    background: transparent;
    margin: 0;
    padding: 0;
}

.breadcrumb-item a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
}

.breadcrumb-item.active {
    color: white;
    opacity: 0.6;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: white;
    opacity: 0.6;
}

/* Services Detail Section */
.service-block {
    padding: 2rem 0;
}

.service-block:not(:last-child) {
    border-bottom: 1px solid #eee;
}

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

.service-features li {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.service-features li i {
    color: var(--primary-color);
    margin-right: 1rem;
    font-size: 1.2rem;
}

/* CTA Section */
.cta-section {
    background-color: var(--light-gray);
    position: relative;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(31, 131, 193, 0.05), rgba(31, 131, 193, 0.1));
}

/* Formation Categories */
.category-card {
    background: #fff;
    border-radius: 10px;
    padding: 2rem;
    height: 100%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.category-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

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

.category-features li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
}

.category-features li::before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

/* Formation Features */
.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    transition: transform 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
}

.feature-item:active {
    transform: scale(0.98);
}

.features-image img {
    transition: transform 0.2s ease;
}

.features-image:active img {
    transform: scale(0.98);
}

.feature-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-right: 1.5rem;
    flex-shrink: 0;
}

.feature-content h4 {
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.feature-content p {
    margin-bottom: 0;
    color: var(--gray);
}

/* Testimonials */
.testimonial-card {
    background: #fff;
    border-radius: 10px;
    padding: 2rem;
    height: 100%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.testimonial-content {
    font-style: italic;
    margin-bottom: 1.5rem;
    color: var(--gray);
}

.testimonial-content p {
    margin-bottom: 0;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-info h5 {
    margin-bottom: 0.2rem;
    color: var(--dark);
}

.author-info p {
    margin-bottom: 0;
    color: var(--primary-color);
    font-size: 0.9rem;
}

/* Contact Info Section */
.contact-info-card {
    background: #fff;
    border-radius: 10px;
    padding: 2rem;
    height: 100%;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.contact-info-card:hover {
    transform: translateY(-5px);
}

.info-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.contact-info-card h3 {
    margin-bottom: 1rem;
    color: var(--dark);
}

.contact-info-card p {
    margin-bottom: 0;
    color: var(--gray);
}

/* Contact Form Section */
.contact-form-wrapper {
    background: #fff;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    margin-bottom: 0.5rem;
    color: var(--dark);
    font-weight: 500;
}

.form-control {
    border: 1px solid #e0e0e0;
    padding: 0.75rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(31, 131, 193, 0.25);
}

.contact-additional-info {
    background: #fff;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-additional-info h3 {
    color: var(--dark);
    margin-bottom: 1rem;
}

.contact-additional-info ul li {
    margin-bottom: 0.5rem;
    color: var(--gray);
}

/* Map Section */
.map-wrapper {
    position: relative;
    overflow: hidden;
    height: 450px;
}

.map-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Partners Section */
.partners-section {
    background-color: var(--section-bg);
    position: relative;
}

.partners-slider {
    padding: 20px 0;
}

.partner-item {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
    padding: 15px;
    transition: transform 0.3s ease;
}

.partner-item:hover {
    transform: scale(1.05);
}

.partner-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: none;
    opacity: 1;
    transition: transform 0.3s ease;
}

.partners-slider .swiper-pagination {
    position: relative;
    margin-top: 30px;
}

.partners-slider .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background-color: var(--primary-color);
    opacity: 0.3;
}

.partners-slider .swiper-pagination-bullet-active {
    opacity: 1;
}

@media (max-width: 768px) {
    .partner-item {
        height: 100px;
        padding: 10px;
    }
}

/* Footer Contact */
.footer-contact li {
    margin-bottom: 1rem;
    display: flex;
    align-items: start;
}

.footer-contact li i {
    color: var(--primary-color);
    margin-top: 0.25rem;
    width: 20px;
}

.footer-contact li:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    footer .col-md-3 {
        margin-bottom: 2rem;
    }
    
    footer .col-md-3:last-child {
        margin-bottom: 0;
    }
}

/* Plaquette Section */
.plaquette-section {
    background-color: white;
}

.plaquette-preview {
    position: relative;
    transition: transform 0.3s ease;
}

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

.plaquette-preview img {
    max-height: 600px;
    width: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.plaquette-content ul li {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.plaquette-content .download-action {
    margin-top: 2rem;
}

.plaquette-content .btn-lg {
    padding: 1rem 2rem;
    font-size: 1.25rem;
}

@media (max-width: 768px) {
    .plaquette-preview img {
        max-height: 400px;
    }
    
    .plaquette-content ul li {
        font-size: 1rem;
    }
}

/* Testimonials Section */
.testimonials-section {
    background-color: var(--section-bg);
}

.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin: 1rem;
    height: 100%;
}

.testimonial-content {
    margin-bottom: 1.5rem;
}

.testimonial-content i {
    color: var(--primary-color);
    font-size: 2rem;
    opacity: 0.5;
}

.testimonial-content p {
    font-style: italic;
    color: #666;
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 1rem 0;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    margin-right: 1rem;
    border: 3px solid var(--primary-color);
}

.testimonial-author .author-info h5 {
    margin-bottom: 0.2rem;
    color: var(--dark-gray);
}

.testimonial-author .author-info p {
    margin-bottom: 0;
    color: var(--primary-color);
    font-size: 0.9rem;
}

.testimonials-slider .swiper-pagination {
    position: relative;
    margin-top: 2rem;
}

.testimonials-slider .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background-color: var(--primary-color);
    opacity: 0.3;
}

.testimonials-slider .swiper-pagination-bullet-active {
    opacity: 1;
}

/* Floating CTA Button - Supprimé pour éviter les conflits */

/* Simple Services Hero */
.services-hero-simple {
    position: relative;
    height: 300px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.services-hero-simple .hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/equipe1.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}



.services-hero-simple .hero-title {
    position: relative;
    z-index: 2;
    color: white;
    font-size: 3.5rem;
    font-weight: 600;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
    font-family: var(--font-headings);
}

@media (max-width: 768px) {
    .services-hero-simple {
        height: 350px;
    }
    
    .services-hero-simple .hero-title {
        font-size: 2.5rem;
    }
    
    .service-block {
        margin-bottom: 2rem;
        padding: 1rem 0;
    }
    
    .service-block .row {
        min-height: auto;
        flex-direction: column !important;
    }
    
    .service-block .col-lg-6 {
        padding: 0.5rem;
        margin-bottom: 1rem;
        width: 100% !important;
        order: 1 !important;
        flex: 0 0 100% !important;
    }
    
    .service-block .col-lg-6:last-child {
        order: 2 !important;
        width: 100% !important;
        flex: 0 0 100% !important;
    }
    
    .service-block img {
        height: 300px;
        margin-bottom: 1rem;
    }
    
    .service-block .section-title {
        font-size: 2rem;
    }
    
    .feature-group {
        padding: 0.5rem;
    }
    
    /* Forcer l'ordre pour toutes les colonnes sur mobile */
    .service-block .row .col-lg-6:nth-child(1) {
        order: 2 !important;
    }
    
    .service-block .row .col-lg-6:nth-child(2) {
        order: 1 !important;
    }
}

@media (max-width: 576px) {
    .services-hero-simple {
        height: 300px;
    }
    
    .services-hero-simple .hero-title {
        font-size: 2rem;
    }
    
    .service-block img {
        height: 250px;
    }
    
    .service-block .section-title {
        font-size: 1.8rem;
    }
    
    .service-block .lead {
        font-size: 1.1rem;
    }
    
    .service-block .row {
        flex-direction: column !important;
    }
    
    .service-block .col-lg-6 {
        order: 1 !important;
        width: 100% !important;
        flex: 0 0 100% !important;
    }
    
    .service-block .col-lg-6:last-child {
        order: 2 !important;
        width: 100% !important;
        flex: 0 0 100% !important;
    }
    
    /* Forcer l'ordre pour toutes les colonnes sur mobile */
    .service-block .row .col-lg-6:nth-child(1) {
        order: 2 !important;
    }
    
    .service-block .row .col-lg-6:nth-child(2) {
        order: 1 !important;
    }
}

@media (max-width: 375px) {
    .services-hero-simple {
        height: 250px;
    }
    
    .services-hero-simple .hero-title {
        font-size: 1.8rem;
    }
    
    .service-block img {
        height: 200px;
    }
    
    .service-block .row {
        flex-direction: column !important;
    }
    
    .service-block .col-lg-6 {
        order: 1 !important;
        width: 100% !important;
        flex: 0 0 100% !important;
    }
    
    .service-block .col-lg-6:last-child {
        order: 2 !important;
        width: 100% !important;
        flex: 0 0 100% !important;
    }
    
    /* Forcer l'ordre pour toutes les colonnes sur mobile */
    .service-block .row .col-lg-6:nth-child(1) {
        order: 2 !important;
    }
    
    .service-block .row .col-lg-6:nth-child(2) {
        order: 1 !important;
    }
}

/* Service Features - Modernized */
.service-block {
    margin-bottom: 2rem;
    padding: 1.5rem 0;
    margin-top: 0;
}

.services-detail-section {
    margin-top: 0;
    padding-top: 0;
    padding-bottom: 1rem;
}

.service-block .row {
    align-items: center;
    min-height: 400px;
}

.service-block .col-lg-6 {
    padding: 1rem;
}

.service-block img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.service-block img:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.service-block .section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--dark-gray);
    position: relative;
}

.service-block .section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.service-block .lead {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #666;
    margin-bottom: 1rem;
}

.feature-group {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 1rem;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(31, 131, 193, 0.1);
    margin-bottom: 1rem;
}

.feature-group:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(31, 131, 193, 0.15);
    border-color: var(--primary-color);
}

.feature-group h4 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.feature-group h4 i {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-right: 0.8rem;
    font-size: 1.1rem;
}

.feature-group ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-group ul li {
    margin-bottom: 0.8rem;
    padding-left: 1.8rem;
    position: relative;
    color: #555;
    font-size: 1rem;
    line-height: 1.6;
}

.feature-group ul li::before {
    content: "✓";
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
    font-size: 1.1rem;
}

.service-block .btn {
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(31, 131, 193, 0.3);
}

.service-block .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(31, 131, 193, 0.4);
}

/* Team Section */
.team-section {
    background-color: var(--section-bg);
    padding-top: 0.5rem !important;
    padding-bottom: 1rem !important;
}

.team-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    margin: 1rem;
}

.team-card:hover {
    transform: translateY(-10px);
}

.team-card img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.team-info {
    padding: 1.5rem;
    text-align: center;
}

.team-info h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--dark-gray);
}

.team-info p {
    color: var(--primary-color);
    margin-bottom: 0;
    font-size: 0.9rem;
}

.team-slider {
    padding: 10px 0;
}

.team-slider .swiper-pagination {
    position: relative;
    margin-top: 1rem;
}

.team-slider .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background-color: var(--primary-color);
    opacity: 0.3;
}

.team-slider .swiper-pagination-bullet-active {
    opacity: 1;
}

@media (max-width: 768px) {
    .feature-group {
        padding: 1rem;
    }
    
    .team-card {
        margin: 0.5rem;
    }
} 

/* Améliorations responsives pour mobile */
@media (max-width: 576px) {
    /* Logo plus petit sur très petits écrans */
    .navbar-brand img {
        max-height: 45px;
        margin: -3px 0;
    }
    
    /* Boutons de formation empilés sur mobile */
    .training-actions .d-flex {
        flex-direction: column;
        gap: 1rem !important;
    }
    
    /* Navigation slider plus grande sur mobile */
    .swiper-button-next,
    .swiper-button-prev {
        width: 45px;
        height: 45px;
    }
    
    /* Titres plus petits sur mobile */
    .section-title {
        font-size: 2rem;
    }
    
    /* Espacement réduit sur mobile */
    .py-5 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
}

/* Améliorations pour tablette */
@media (max-width: 768px) and (min-width: 577px) {
    .navbar-brand img {
        max-height: 55px;
        margin: -5px 0;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
}

/* Améliorations d'accessibilité */
.nav-link:focus,
.btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Amélioration du contraste pour les textes */
.slide-description {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

/* Optimisation des images partenaires (couleurs d’origine) */
.partner-item img {
    max-height: 80px;
    object-fit: contain;
    filter: none;
}

/* Styles pour les icônes sociales dans le header */
.social-links {
    margin-left: auto;
}

.social-links a {
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.8);
    color: white !important;
    padding: 0.4rem;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0.1rem;
    text-decoration: none;
    font-size: 1.3rem;
}

.social-links a:hover {
    background: var(--primary-color);
    color: white !important;
    transform: scale(1.1);
}

/* Responsive pour les icônes sociales */
@media (max-width: 768px) {
    .social-links {
        margin-left: 0;
        margin-top: 1rem;
        justify-content: center;
    }
    
    .social-links a {
        width: 40px;
        height: 40px;
        font-size: 1.4rem;
        margin: 0 0.25rem;
    }
}

@media (max-width: 576px) {
    .social-links a {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
        margin: 0 0.2rem;
    }
} 

/* Header mobile amélioré */
@media (max-width: 768px) {
    .navbar {
        padding: 0.25rem 0;
    }
    
    .navbar-brand img {
        max-height: 45px;
        margin: -3px 0;
    }
    
    .navbar-nav {
        text-align: center;
        margin-top: 1rem;
    }
    
    .nav-link {
        font-size: 0.85rem;
        padding: 0.5rem 1rem !important;
        border-bottom: 1px solid rgba(0,0,0,0.1);
    }
    
    .nav-link:last-child {
        border-bottom: none;
    }
    
    .navbar-collapse {
        background: white;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        margin-top: 0.5rem;
        padding: 1rem;
    }
}

@media (max-width: 576px) {
    .navbar-brand img {
        max-height: 40px;
        margin: -2px 0;
    }
    
    .nav-link {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem !important;
    }
    
    .navbar-collapse {
        padding: 0.75rem;
    }
} 

/* Styles pour le menu hamburger */
.navbar-toggler {
    border: 1px solid rgba(0,0,0,0.1);
    padding: 0.25rem 0.5rem;
    background-color: white;
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Header mobile - Correction de la position du hamburger */
@media (max-width: 991.98px) {
    /* Header mobile */
    .navbar {
        padding: 0.5rem 0;
        background-color: white !important;
    }
    
    .navbar-brand img {
        max-height: 50px;
        width: auto;
    }
    
    /* Menu hamburger correctement positionné */
    .navbar-toggler {
        display: block !important;
        border: 1px solid rgba(0,0,0,0.1);
        padding: 0.25rem 0.5rem;
        background-color: white;
        position: absolute;
        right: 1rem;
        top: 50%;
        transform: translateY(-50%);
    }
    
    .navbar-toggler:focus {
        box-shadow: none;
        outline: none;
    }
    
    /* Container du header */
    .navbar .container {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        width: 100%;
    }
    
    /* Logo à gauche */
    .navbar-brand {
        margin-right: 0;
        flex: 1;
    }
    
    /* Menu déroulant */
    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 1000;
        background: white;
        border-radius: 0 0 8px 8px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        margin-top: 0;
        padding: 1rem;
        border: 1px solid rgba(0,0,0,0.1);
    }
    
    .navbar-nav {
        text-align: center;
        margin-bottom: 1rem;
    }
    
    .nav-link {
        font-size: 0.9rem;
        padding: 0.75rem 1rem !important;
        border-bottom: 1px solid rgba(0,0,0,0.1);
        color: var(--text-color) !important;
    }
    
    .nav-link:last-child {
        border-bottom: none;
    }
    
    .nav-link.active {
        color: var(--primary-color) !important;
        background-color: rgba(31, 131, 193, 0.1);
        border-radius: 4px;
    }
    
    /* Icônes sociales dans le menu mobile */
    .social-links {
        margin: 0;
        justify-content: center;
        padding-top: 1rem;
        border-top: 1px solid rgba(0,0,0,0.1);
    }
    
    .social-links a {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        margin: 0 0.25rem;
    }

    /* Hero Section mobile - Correction des boutons */
    .hero-section {
        height: 100vh;
        margin-top: -66px;
        overflow: hidden;
    }
    
    .slide-content {
        height: 100vh;
        padding: 2rem 1rem;
        max-width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        text-align: left;
        box-sizing: border-box;
    }
    
    .slide-badge {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
        margin-bottom: 1rem;
        align-self: center;
        text-align: center;
    }
    
    .slide-title {
        font-size: 2.2rem;
        line-height: 1.1;
        margin-bottom: 1rem;
        text-align: left;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .slide-description {
        font-size: 1.1rem;
        margin-bottom: 2rem;
        line-height: 1.4;
        text-align: left;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .slide-actions {
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
        align-items: stretch;
        box-sizing: border-box;
    }
    
    .slide-actions .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.85rem;
        width: 100%;
        text-align: center;
        margin: 0 !important;
        box-sizing: border-box;
        white-space: normal;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    /* Navigation slider mobile */
    .swiper-button-next,
    .swiper-button-prev {
        width: 45px;
        height: 45px;
        background-color: rgba(0, 0, 0, 0.6);
        border-radius: 50%;
        margin-top: -22.5px;
    }
    
    .swiper-button-next::after,
    .swiper-button-prev::after {
        font-size: 1.2rem;
        color: white;
    }
    
    /* Pagination mobile */
    .swiper-pagination-bullet {
        width: 10px;
        height: 10px;
        background: rgba(255, 255, 255, 0.7);
    }
    
}

/* Très petits écrans */
@media (max-width: 576px) {
    .navbar-brand img {
        max-height: 40px;
    }
    
    .navbar-toggler {
        padding: 0.2rem 0.4rem;
        font-size: 0.9rem;
        right: 0.75rem;
    }
    
    .nav-link {
        font-size: 0.8rem;
        padding: 0.5rem 0.8rem !important;
    }
    
    .navbar-collapse {
        padding: 0.75rem;
    }
} 

/* Sections responsives - Corrections complètes */

/* Section About responsive */
.about-section {
    padding: 8rem 0;
}

.about-content {
    padding-right: 3rem;
}

.about-content .lead {
    font-size: 1.4rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.about-image {
    text-align: center;
}

.about-image img {
    max-width: 800px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-image img:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* Section Services responsive */
.services-section {
    padding: 5rem 0;
}

.service-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: transform 0.3s ease;
}

.service-icon i {
    font-size: 2rem;
    color: white;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark-gray);
}

.service-card p {
    color: #666;
    line-height: 1.6;
    flex-grow: 1;
}

/* Section Formation responsive */
.training-section {
    padding: 5rem 0;
}

.training-section .d-flex {
    gap: 1rem;
}

.training-section .btn {
    padding: 0.875rem 1.5rem;
    font-size: 0.9rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.training-section img {
    max-width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Section Témoignages responsive */
.testimonials-section {
    padding: 5rem 0;
    background: var(--light-gray);
}

.testimonial-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    margin: 0 1rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.testimonial-content {
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

.testimonial-content i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.testimonial-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #666;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    margin-top: auto;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 1rem;
    object-fit: cover;
}

.testimonial-author .author-info h5 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    color: var(--dark-gray);
}

.testimonial-author .author-info p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

/* Footer responsive */
footer {
    background: var(--dark-gray);
    color: white;
    padding: 3rem 0 1rem;
}

footer h4 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: white;
}

footer p {
    color: #ccc;
    line-height: 1.6;
}

footer ul {
    list-style: none;
    padding: 0;
}

footer ul li {
    margin-bottom: 0.5rem;
}

footer ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-contact li {
    margin-bottom: 1rem;
    color: #ccc;
    line-height: 1.6;
}

.footer-contact li i {
    color: var(--primary-color);
    margin-right: 0.5rem;
    width: 20px;
}

.footer-contact li:last-child {
    margin-bottom: 0;
} 

/* Styles spécifiques pour iPhone et Safari */
@supports (-webkit-touch-callout: none) {
    /* Styles spécifiques pour iOS */
    .navbar-toggler {
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        background: white;
        border: 1px solid rgba(0,0,0,0.1);
        border-radius: 4px;
    }
    
    .slide-actions .btn {
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        border-radius: 8px;
    }
    
    .swiper-button-next,
    .swiper-button-prev {
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
    }
    
    /* Amélioration du scroll sur iOS */
    .hero-section {
        -webkit-overflow-scrolling: touch;
        overflow-scrolling: touch;
    }
    
    /* Correction des polices sur iOS */
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        font-smooth: antialiased;
    }
    
    /* Correction des boutons sur iOS */
    button, input, select, textarea {
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        border-radius: 0;
    }
    
    /* Correction des images sur iOS */
    img {
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
    }
}

/* Correction spécifique pour Safari */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
    .navbar-toggler {
        background: white !important;
        border: 1px solid rgba(0,0,0,0.1) !important;
    }
    
    .slide-actions .btn {
        background: var(--primary-color) !important;
        border: none !important;
    }
    
    .slide-actions .btn.btn-outline-light {
        background: transparent !important;
        border: 1px solid white !important;
    }
}

/* Correction pour les écrans haute densité */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .navbar-toggler-icon {
        background-size: 20px 20px;
    }
    
    .slide-actions .btn {
        border-width: 1px;
    }
} 

/* About Section - Restauré */
.about-section {
    padding: 4rem 0;
    background-color: #f8f9fa;
}

.about-content {
    padding-right: 2rem;
}

.about-content .lead {
    font-size: 1.3rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: var(--dark-gray);
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: #666;
}

.about-image {
    text-align: center;
}

.about-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.about-image img:hover {
    transform: translateY(-5px);
}

.key-points {
    margin-top: 2rem;
}

.point {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.point:hover {
    transform: translateX(5px);
}

.point i {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

.point span {
    font-weight: 500;
    color: var(--dark-gray);
} 

/* Scroll to Top Button - Supprimé */

/* Suppression complète de la bande blanche sur mobile */
@media (max-width: 768px) {
    body {
        padding-top: 0 !important;
        margin: 0 !important;
    }
    
    .navbar {
        top: 0 !important;
        margin: 0 !important;
        padding: 0.5rem 0 !important;
        border: none !important;
        position: fixed !important;
    }
    
    .navbar .container {
        padding: 0 1rem !important;
        margin: 0 !important;
    }
    
    .hero-section {
        margin-top: 66px !important; /* Hauteur du header mobile */
        padding-top: 0 !important;
    }
}

/* Suppression complète de la bande blanche sur très petits écrans */
@media (max-width: 576px) {
    body {
        padding-top: 0 !important;
        margin: 0 !important;
    }
    
    .navbar {
        top: 0 !important;
        margin: 0 !important;
        padding: 0.5rem 0 !important;
        border: none !important;
        position: fixed !important;
    }
    
    .navbar .container {
        padding: 0 0.75rem !important;
        margin: 0 !important;
    }
    
    .hero-section {
        margin-top: 60px !important; /* Hauteur du header très petit */
        padding-top: 0 !important;
    }
}

/* Suppression FORCÉE de toute bande blanche - Règle ultime */
@media (max-width: 768px) {
    html, body {
        padding: 0 !important;
        margin: 0 !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
    }
    
    .navbar {
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        margin: 0 !important;
        padding: 0.5rem 0 !important;
        border: none !important;
        position: fixed !important;
        z-index: 1030 !important;
    }
    
    .navbar .container {
        padding: 0 1rem !important;
        margin: 0 !important;
    }
    
    .hero-section {
        margin-top: 66px !important;
        padding-top: 0 !important;
    }
}

@media (max-width: 768px) {
  /* 2e bloc */
  .service-block:nth-of-type(2) .row {
    flex-direction: column !important;
  }
  .service-block:nth-of-type(2) .col-lg-6:first-child { order: 2 !important; }
  .service-block:nth-of-type(2) .col-lg-6:last-child { order: 1 !important; }

  /* 4e bloc */
  .service-block:nth-of-type(4) .row {
    flex-direction: column !important;
  }
  .service-block:nth-of-type(4) .col-lg-6:first-child { order: 2 !important; }
  .service-block:nth-of-type(4) .col-lg-6:last-child { order: 1 !important; }
}

/* Header spécifique pour la page formations */
.formations-header {
    position: relative !important;
    min-height: 300px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: linear-gradient(135deg, rgba(31, 131, 193, 0.9), rgba(22, 100, 148, 0.9)) !important;
    overflow: hidden !important;
    /* Fallback si l'image ne charge pas */
    background-color: var(--primary-color) !important;
    padding: 100px 0 50px !important;
}

.formations-header .header-bg {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background-image: url('/assets/images/formation2.jpg') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    opacity: 0.3 !important;
    z-index: 0 !important;
}

.formations-header .container {
    position: relative;
    z-index: 1;
}

.formations-header .page-title {
    color: white !important;
    font-size: 3rem !important;
    font-weight: 700 !important;
    margin-bottom: 1rem !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
}

.formations-header .page-subtitle {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 1.2rem !important;
    font-weight: 300 !important;
    margin-bottom: 0 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
}

/* Responsive pour le header formations */
@media (max-width: 768px) {
    .formations-header {
        min-height: 250px;
    }
    
    .formations-header .page-title {
        font-size: 2.5rem;
    }
    
    .formations-header .page-subtitle {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .formations-header {
        min-height: 200px;
    }
    
    .formations-header .page-title {
        font-size: 2rem;
    }
    
    .formations-header .page-subtitle {
        font-size: 1rem;
    }
}

/* Styles pour réduire la hauteur de la navbar sur desktop uniquement */
@media (min-width: 992px) {
    .navbar {
        padding: 0.3rem 0 !important;
    }
    
    .navbar-brand img {
        max-height: 45px !important;
    }
    
    .hero-section {
        margin-top: 0 !important;
    }
}





