/* VARIABLES & RESET */
:root {
    --primary-color: #00d4ff;
    --primary-dark: #00d4ff;
    --secondary-color: #00d4ff;
    --dark-bg: #0a0e27;
    --dark-bg-light: #151931;
    --text-light: #94a3b8;
    --nav-light: #ffffff;
    --text-white: #ffffff;
    --border-color: #ffffff;
    --card-bg: rgba(15, 20, 40, 0.8);
    --gradient-primary: linear-gradient(135deg, #0066ff 0%, #00d4ff 100%);
    --gradient-dark: linear-gradient(180deg, #0a0e27 0%, #151931 100%);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.3);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text-light);
    background: var(--dark-bg);
    overflow-x: hidden;
}
/* REFERENCES SECTION */

/* ===== ACTUALITÉS SECTION ===== */
.actualites {
    padding: 80px 0;
    background: var(--dark-bg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.actualites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.actualite-card {
    background: rgba(0, 102, 255, 0.03);
    border: 1px solid rgba(0, 102, 255, 0.15);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.actualite-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(0, 102, 255, 0.2);
    background: rgba(0, 102, 255, 0.08);
}

.actualite-image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

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

.actualite-card:hover .actualite-image img {
    transform: scale(1.08);
}

.actualite-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(10, 14, 39, 0.6) 100%);
}

.actualite-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.actualite-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.actualite-category {
    background: linear-gradient(135deg, #0066ff 0%, #00d4ff 100%);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.actualite-date {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-light);
    font-size: 0.85rem;
    font-weight: 500;
}

.actualite-date svg {
    color: var(--primary-color);
    flex-shrink: 0;
}

.actualite-title {
    font-size: 1.25rem;
    color: var(--text-white);
    margin-bottom: 0.8rem;
    line-height: 1.4;
    font-weight: 600;
}

.actualite-description {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex: 1;
}

.actualite-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.actualite-location svg {
    color: var(--primary-color);
    flex-shrink: 0;
}

/* Carte cachée par défaut */
.actualite-hidden {
    display: none;
}

/* Conteneur du bouton Voir Plus */
.actualites-btn-container {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}
/* Lien pour carte d'actualité cliquable */
.actualite-link {
    text-decoration: none;
    color: inherit;
    display: block;
    position: relative;
}

.actualite-link .actualite-card {
    cursor: pointer;
    transition: var(--transition);
}

/* Message de survol LinkedIn */
.actualite-hover-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgb(0, 118, 181);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 600;
    font-size: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 10;
    pointer-events: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.actualite-hover-message svg {
    flex-shrink: 0;
}

/* Afficher le message au survol de la carte */
.actualite-link:hover .actualite-hover-message {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1.05);
}

/* Animation au survol */
.actualite-link:hover .actualite-card {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(0, 102, 255, 0.3);
    background: rgba(0, 102, 255, 0.08);
}

.actualite-link:hover .actualite-image img {
    transform: scale(1.08);
    filter: brightness(0.7);
}

.actualite-link:hover .actualite-overlay {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4) 0%, rgba(10, 14, 39, 0.8) 100%);
}

/* Responsive pour le message */
@media (max-width: 768px) {
    .actualite-hover-message {
        font-size: 0.9rem;
        padding: 0.8rem 1.2rem;
        gap: 0.6rem;
    }
    
    .actualite-hover-message svg {
        width: 20px;
        height: 20px;
    }
}
#btnVoirPlus {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 2rem;
    font-size: 1rem;
    transition: var(--transition);
}

#btnVoirPlus svg {
    transition: transform 0.3s ease;
}

#btnVoirPlus.actif svg {
    transform: rotate(180deg);
}

#btnVoirPlus:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 102, 255, 0.3);
}

/* Responsive pour actualités */
@media (max-width: 1200px) {
    .actualites-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .actualites {
        padding: 60px 0;
    }

    .actualites-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2rem;
    }

    .actualite-image {
        height: 200px;
    }

    .actualite-title {
        font-size: 1.1rem;
    }

    .actualite-description {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .actualite-content {
        padding: 1.2rem;
    }

    .actualite-image {
        height: 180px;
    }

    .actualite-meta {
        flex-direction: column;
        align-items: flex-start;
    }
}

.references {
    padding: 80px 0;
    background: var(--dark-bg);
    border-bottom: 1px solid var(--border-color);
}
.references-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}
.reference-logo {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    width: 100%;
    max-width: 200px;
    text-decoration: none;
    border: 1px solid transparent;
}
.reference-logo:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 102, 255, 0.2);
}
.reference-logo img {
    max-width: 180px;
    max-height: 80px;
    object-fit: contain;
    filter: brightness(0.8) contrast(1.2);
    transition: var(--transition);
}
.reference-logo:hover img {
    filter: brightness(1) contrast(1);
}
/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-white);
    font-weight: 700;
    line-height: 1.2;
}
p {
    margin-bottom: 1rem;
    text-align: justify;
}
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* NAVIGATION */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: var(--transition);
}
.navbar.scrolled {
    background: rgba(10, 14, 39, 0.98);
    box-shadow: var(--shadow-md);
}
.navbar.hidden {
    transform: translateY(-100%);
}
.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0;
}
.logo {
    font-size: 1.5rem;
    font-weight: 800;
    transform: translateY(6px);
}

.logo-text {
    color: var(--text-white);
    letter-spacing: -0.5px;
    text-decoration: none;

}
.logo .accent {
    color: var(--primary-color);
    margin-left: 0.25rem;
}
.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.75rem;
    align-items: center;
}
.nav-link {
    color: var(--nav-light);
    text-decoration: none;
    font-weight: 100;
    position: relative;
    transition: var(--transition);
    font-size: 0.85rem;
}
.nav-link:hover {
    color: var(--text-white);
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}
.nav-link:hover::after {
    width: 100%;
}
.btn-contact {
    background: var(--gradient-primary);
    color: var(--text-white);
    padding: 0.3rem 1.2rem;
    border-radius: 10px;
    font-weight: 600;
}
.btn-contact:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 102, 255, 0.3);
}
.btn-contact::after {
    display: none;
}
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    cursor: pointer;
    position: relative;
    z-index: 1002;
}
.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--text-white);
    transition: var(--transition);
}
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Séparateur avec texte */
.project-separator {
    text-align: center;
    margin: 3rem auto;
    position: relative;
}

.separator-line {
    width: 120px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    margin: 0 auto 1rem auto;
    opacity: 0.4;
    border-radius: 1px;
}

.separator-text {
    color: var(--nav-light);
    font-size: 1.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 768px) {
    .project-separator {
        margin: 2rem auto;
    }
    
    .separator-line {
        width: 80px;
    }
    
    .separator-text {
        font-size: 0.8rem;
    }
}

/* NEWS SECTION - Cards avec carousel (largeur fixe) */
/* NEWS SECTION - Carousel avec flèche fixe */
.news-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 1.0);
    color: rgb(0, 0, 0);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    transition: var(--transition);
    z-index: 10;
}

.news-nav-arrow:hover {
    background: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
}

/* Position spécifique pour chaque flèche */
.news-nav-prev {
    left: 20px;
}

.news-nav-next {
    right: 20px;
}

/* États désactivés */
.news-nav-arrow:disabled,
.news-nav-arrow[style*="opacity: 0.5"] {
    cursor: default;
    background: rgba(0, 102, 255, 0.3);
    pointer-events: none;
}

.news-nav-arrow[style*="display: none"] {
    display: none !important;
}
.section-subtitle-act {
    color: var(--nav-light);
    font-size: 1.0rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    display: block;
}
/* Masquer les flèches par défaut */
.news-arrow {
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Les afficher uniquement au survol d'une carte */
.news-card:hover .news-arrow {
  opacity: 1;
}
/* Bande de certifications en bas du hero */
.hero-certifications {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(10, 14, 39, 0.9);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0, 212, 255, 0.2);
    padding: 1.5rem 0;
    z-index: 1;
}

.certifications-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
}

.certifications-label {
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.certifications-logos {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.certification-logo {
    display: flex;
    align-items: center;
    transition: var(--transition);
    opacity: 0.8;
}

.certification-logo:hover {
    opacity: 1;
    transform: translateY(-3px);
}

.certification-logo img {
    height: auto;
    filter: brightness(1.1);
}

/* Responsive */
@media (max-width: 768px) {
    .certifications-content {
        flex-direction: column;
        gap: 1rem;
        padding: 0 20px;
        text-align: center;
    }
    
    .certifications-logos {
        gap: 1.5rem;
    }
    
    .certification-logo img {
        max-width: 60px;
    }
}
/* Responsive pour les actualités */
@media (max-width: 768px) {
    .news-card {
        width: 320px; /* Largeur fixe sur mobile aussi */
        height: 130px;
        padding: 1rem;
        gap: 1rem;
    }
    
    .news-content {
        width: 220px; /* Largeur ajustée pour mobile */
    }
    
    .news-image {
        width: 60px;
        height: 60px;
    }
    
    .news-card h4 {
        font-size: 1rem;
    }
    
    .news-card p {
        font-size: 0.85rem;
    }
}

/* HERO SECTION */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    padding: 120px 0 80px;
    overflow: hidden;
}
.hero .container {
    margin: 0;
}
.hero-background {
    position: absolute;
    inset: 0;
    z-index: -2;
}
.hero-background picture,
.hero-background img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;          /* équivalent de background-size: cover */
  object-position: center;    /* équivalent de background-position: center */
}
/* Le calque reste au-dessus */
.hero-background .grid-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(0, 102, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 102, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: grid-move 20s linear infinite;
}
@keyframes grid-move {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}
.hero-content {
    text-align: left;
    max-width: 1400px;
    margin: 80px;
}
.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease;
}
.title-line {
    display: block;
    margin: 0.5rem 0;
}
.btn {
    padding: 1rem 2.5rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: var(--transition);
    border: 0px solid transparent;
}
.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-white);
    
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(0, 102, 255, 0.3);
}
.btn-large {
    padding: 0.75rem 2.5rem;
    font-size: 1.1rem;
    display: block;
    margin: 2rem auto 0 auto;
}
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
}
.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--nav-light);
    border-radius: 20px;
    position: relative;
}
.wheel {
    width: 4px;
    height: 8px;
    background: var(--nav-light);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}
/* SECTION LOGICIELS - CARTES (ALIGNEMENT PARFAIT) */
.software-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.software-card {
    background: rgba(0, 102, 255, 0.05);
    border: 1px solid rgba(0, 102, 255, 0.2);
    border-radius: 12px;
    padding: 1rem;
    transition: var(--transition);
    
    /* Structure fixe */
    display: flex;
    flex-direction: column;
    min-height: 140px;
    text-align: center;
}

.software-card:hover {
    background: rgba(0, 102, 255, 0.1);
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 102, 255, 0.15);
}

.software-logo {
    width: 60px;
    height: 60px;
    background: var(--text-white);
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem auto;
    padding: 6px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.software-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.software-info {
    /* Prend tout l'espace restant */
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.software-info h4 {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-white);
    letter-spacing: 0.3px;
    margin: 0;
    /* Zone titre fixe */
    min-height: 2.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.software-info p {
    font-size: 0.7rem;
    color: var(--text-light);
    line-height: 1.2;
    margin: 0;
    /* Zone description alignée en bas avec baseline */
    display: flex;
    align-items: flex-start; /* Aligne sur la première ligne */
    justify-content: center;
    text-align: center;
    /* Hauteur minimale pour une ligne, extension automatique */
    min-height: 1rem;
}

/* Responsive pour les cartes logiciels */
@media (max-width: 768px) {
    .software-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.8rem;
    }
    
    .software-card {
        padding: 0.8rem;
        min-height: 120px;
    }
    
    .software-logo {
        width: 40px;
        height: 40px;
    }
    
    .software-info h4 {
        min-height: 2rem;
        font-size: 0.75rem;
    }
    
    .software-info p {
        font-size: 0.65rem;
    }
}

@media (max-width: 480px) {
    .software-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@keyframes scroll {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(20px); }
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* SECTIONS */
.carousel-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.carousel-images {
    display: flex;
    transition: transform 0.8s ease-in-out;
    height: 400px;
}
.carousel-image {
    flex: 0 0 100%;
    position: relative;
}
.carousel-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.carousel-indicators {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}
.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}
.indicator.active {
    background: var(--primary-color);
    transform: scale(1.2);
}
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: var(--transition);
    opacity: 0.7;
}
.carousel-nav:hover {
    opacity: 1;
    background: rgba(0, 102, 255, 0.8);
}
.carousel-nav.prev { left: 20px; }
.carousel-nav.next { right: 20px; }
.carousel-container:hover .carousel-images {
    animation-play-state: paused;
}
/* CAROUSEL CAPTION */
.carousel-caption {
    position: absolute;
    bottom: 15px;
    left: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.5); /* Fond noir uniforme au lieu du dégradé */
    backdrop-filter: blur(5px);
    color: var(--text-white);
    padding: 1.2rem 1.5rem;
    text-align: left;
    border-radius: 10px;
    /* Suppression de transform et transition pour affichage permanent */
}

.carousel-caption h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.carousel-caption p {
    font-size: 0.9rem;
    margin: 0;
    color: white;
    line-height: 1.4;
}

/* Version mobile */
@media (max-width: 768px) {
    .carousel-caption {
        background: rgba(0, 0, 0, 0.7);
        padding: 1rem;
    }
    
    .carousel-caption h4 {
        font-size: 1rem;
    }
    
    .carousel-caption p {
        font-size: 0.85rem;
    }
}
/* A PROPOS */
/* Conteneur des onglets */
.tabs {
  display: flex;
  justify-content: center;     /* Centre horizontalement */
  gap: 1rem;
  margin-bottom: 2rem;
  position: relative;
  min-height: 50px;            /* Hauteur fixe → les boutons ne bougent plus */
}
/* Boutons d'onglet */
.tab-link {
  padding: 0.6rem 1.2rem;
  border: 1px solid var(--primary-color);
  border-radius: 10px;
  background: transparent;
  color: var(--primary-color);
  font-weight: 300;
  font-size: 1.0rem;
  cursor: pointer;
  transition: var(--transition);
  min-width: 130px;
  text-align: center;
  position: relative;          /* reste centré dans le conteneur */
}
.tab-link.active {
  background: var(--primary-color);
  color: var(--text-white);
}
.tab-link:hover {
  background: var(--primary-dark);
  color: var(--text-white);
}
/* Contenu des onglets */
.tab-content {
  display: none;
  animation: fadeIn 0.5s ease;
}
.tab-content.active {
  display: block;
}
/* Alignement des listes */
.tab-content ul {
  list-style: disc inside;
  margin: 0;
  padding-left: 0;
}
.tab-content ul li {
  margin-bottom: 0.5rem;
  text-align: justify;
  list-style-type: none;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
/* SECTIONS */
section {
    padding: 100px 0;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}
section.visible {
    opacity: 1;
    transform: translateY(0);
}
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}
.section-subtitle {
    color: var(--primary-color);
    font-size: 1.875rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    display: block;
}
.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
}
/* ABOUT SECTION */
.about {
    background: var(--dark-bg-light);
}
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: flex-start;
    margin-bottom: 4rem;
}
.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.2), rgba(0, 212, 255, 0.2));
    pointer-events: none;
}
/* SERVICES SECTION */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}
.service-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 1.5rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);

    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 320px;
}
.service-card.visible {
    opacity: 1;
    transform: translateY(0);
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}
.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(0, 102, 255, 0.2);
}
.service-card:hover::before {
    transform: scaleX(1);
}
.service-icon {
    width: 60px;
    height: 60px;
    background: rgba(0, 102, 255, 0.1);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}
.service-icon svg {
    width: 30px;
    height: 30px;
    color: var(--primary-color);
}
.service-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}
.service-description {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}
.service-features {
    list-style: none;
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
    margin-top: auto;
}
.service-features li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-light);
}
.service-features li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}
/* FORMATION EN LIGNE - Style cohérent avec les service-cards */
.online-training-section {
    margin-top: 2rem;
    width: 100%;
}

.online-training-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.online-training-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.online-training-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(0, 102, 255, 0.2);
}

.online-training-card:hover::before {
    transform: scaleX(1);
}

.online-training-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: center;
}

.online-training-title {
    font-size: 1.5rem;
    color: var(--text-white);
    margin-bottom: 1rem;
}

.online-training-description {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.online-training-features {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 1.5rem;
  
}

.online-training-features span {
    color: var(--primary-color);
    font-size: 0.9rem;
    position: relative;
    padding-left: 0rem;
}

.online-training-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-end;   /* ← aligne les boutons à droite */
}

.btn-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(0, 102, 255, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-white);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

/* Boutons avec largeur fixe identique */
.btn-download,
.online-training-actions .btn {
  width: 180px;            /* ← choisis la largeur (160px, 180px, 200px…) */
  padding: 0.6rem 1.2rem;
  text-align: center;      /* texte centré dans le bouton */
}
/* 2) Boutons compacts, largeur auto */
.btn-download,
.online-training-actions .btn {
  width: auto;               /* ← évite de remplir toute la ligne */
  min-width: 160px;          /* ← réduis si tu veux encore plus petit */
  padding: 0.6rem 1.2rem;    /* ← padding plus discret */
}

/* 3) Sur mobile : ne PAS forcer 100% */
@media (max-width: 768px) {
  .btn-download,
  .online-training-actions .btn {
    width: auto;             /* ← was: width: 100% */
    max-width: 100%;         /* sécurité si le texte est long */
  }
}

.btn-download svg {
    width: 20px;
    height: 20px;
}

.btn-download:hover {
    background: rgba(0, 102, 255, 0.2);
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 102, 255, 0.3);
}

/* Responsive pour Formation en ligne */
@media (max-width: 768px) {
    .online-training-card {
        padding: 2rem 1.5rem;
    }
    
    .online-training-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .online-training-title {
        font-size: 1.3rem;
    }
    
    .online-training-features {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .online-training-actions {
        width: 100%;
    }
    
    .btn-download,
    .online-training-actions .btn {
        width: 100%;
    }
}
/* PROJECTS SECTION */
.projects {
    background: var(--dark-bg-light);
}
.project-showcase {
    display: grid;
    gap: 2rem;
}
.project-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
    opacity: 0;
    transform: translateY(30px);
}
.project-card.visible {
    opacity: 1;
    transform: translateY(0);
}
.project-card.featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
}
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.project-image {
    position: relative;
    overflow: hidden;
    height: 300px;
}
.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.project-card:hover .project-image img {
    transform: scale(1.1);
}
.project-content {
    padding: 2rem;
}
.project-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}
.project-description {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    text-align: justify;
}
/* Grille spécifique pour 3 projets */
.projects-grid-three {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
/* Responsive pour la grille de 3 projets */
@media (max-width: 1100px) {
    .projects-grid-three {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .projects-grid-three {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 1400px) and (max-height: 3000px) and (orientation: portrait) {
    .hero-content {
        margin: 40px 20px !important;
        text-align: left;
    }
    
    .hero .container {
        padding: 0 15px !important;
        margin: 0;
    }
    
    .hero-title {
        font-size: 2.8rem;
        margin-bottom: 1rem;
        line-height: 1.1;
    }
}

/* iPhone en mode portrait - ciblage spécifique */
@media screen and (max-device-width: 1400px) and (orientation: portrait) {
    .hero-content {
        margin: 30px 15px !important;
    }
    
    .hero .container {
        padding: 0 10px !important;
    }
}
/* TESTIMONIALS SECTION */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}
.testimonial-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    transition: var(--transition);
    opacity: 0;
    transform: translateY(30px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 280px;
}
.testimonial-card.visible {
    opacity: 1;
    transform: translateY(0);
}
.testimonial-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}
.testimonial-content {
    margin-bottom: 1.5rem;
}

.stars {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}
.testimonial-text {
    color: var(--text-light);
    font-style: italic;
    line-height: 1.8;
}
.testimonial-author {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
}
.testimonial-author strong {
    color: var(--text-white);
    margin-bottom: 0.25rem;
}
.testimonial-author span {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 0.875rem;
}
/* TESTIMONIALS SECTION - Version asymétrique */
.testimonials-grid {
    display: grid;
    gap: 2rem;
    grid-auto-rows: auto;
}

/* Desktop : Layout asymétrique pour les 2 premières cartes, puis 3 colonnes */
@media (min-width: 1201px) {
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* Première ligne asymétrique */
    .testimonial-card:nth-child(1) {
        grid-column: 1;
        grid-row: 1;
    }
    
    .testimonial-card:nth-child(2) {
        grid-column: 2 / 4; /* Occupe 2 colonnes sur 3 */
        grid-row: 1;
    }
    
    /* Les cartes suivantes (3, 4, 5) forment la ligne 2 */
    .testimonial-card:nth-child(3) {
        grid-column: 1;
        grid-row: 2;
    }
    
    .testimonial-card:nth-child(4) {
        grid-column: 2;
        grid-row: 2;
    }
    
    .testimonial-card:nth-child(5) {
        grid-column: 3;
        grid-row: 2;
    }
    
    /* Les cartes suivantes (6, 7, 8) forment la ligne 3 */
    .testimonial-card:nth-child(6) {
        grid-column: 1;
        grid-row: 3;
    }
    
    .testimonial-card:nth-child(7) {
        grid-column: 2;
        grid-row: 3;
    }
    
    .testimonial-card:nth-child(8) {
        grid-column: 3;
        grid-row: 3;
    }
}

/* Tablette : 2 colonnes égales */
@media (min-width: 769px) and (max-width: 1200px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonial-card:nth-child(n) {
        grid-column: auto;
    }
}

/* Mobile : 1 seule colonne */
@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonial-card:nth-child(n) {
        grid-column: 1;
    }
}

/* Alternative : Si vous préférez garder la grille normale pour les autres cartes */
.testimonials-grid-normal {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.testimonial-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    transition: var(--transition);
    opacity: 0;
    transform: translateY(30px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 280px;
}

.testimonial-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

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

.stars {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.testimonial-text {
    color: var(--text-light);
    font-style: italic;
    line-height: 1.8;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
}

.testimonial-author strong {
    color: var(--text-white);
    margin-bottom: 0.25rem;
}

.testimonial-author span {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 0.875rem;
}

/* Responsive pour les témoignages */
@media (max-width: 1200px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .testimonial-card:nth-child(1),
    .testimonial-card:nth-child(2),
    .testimonial-card:nth-child(n+3) {
        grid-column: 1;
    }
}

@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonial-card {
        min-height: 250px;
        padding: 1.5rem;
    }
}
/*CONTACT SECTION */
.contact {
    background: var(--dark-bg-light);
}
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}
.contact-info h3 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}
.contact-methods {
    margin-top: 3rem;
}
.contact-method {
    display: flex;
    align-items: start;
    gap: 1rem;
    margin-bottom: 2rem;
}
.contact-method svg {
    width: 24px;
    height: 24px;
    color: var(--primary-color);
    margin-top: 0.25rem;
}
.contact-method strong {
    display: block;
    color: var(--text-white);
    margin-bottom: 0.25rem;
}
.contact-method p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}
.form-group {
    margin-bottom: 1.5rem;
}
.form-group label {
    display: block;
    color: var(--text-white);
    margin-bottom: 0.5rem;
    font-weight: 500;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(10, 14, 39, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-white);
    font-family: inherit;
    transition: var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(10, 14, 39, 0.8);
}
.form-group textarea {
    resize: vertical;
}
/* Style pour les liens email spécifiquement */
a[href^="mailto:"],
a[href^="tel:"] {
    color: inherit; /* Hérite de la couleur du parent */
    text-decoration: none; /* Supprime le soulignement */
    transition: var(--transition);
}
a[href^="mailto:"]:hover,
a[href^="tel:"]:hover {
    color: var(--primary-color); /* Change la couleur au survol */
}
/* FOOTER */
.footer {
    background: var(--dark-bg);
    border-top: 1px solid var(--border-color);
    padding: 4rem 0 2rem;
}
.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}
.footer-brand {
    max-width: 300px;
}
.footer-brand .logo {
    margin-bottom: 1rem;
}

.footer-brand p {
    color: var(--text-light);
}
.footer-links h4 {
    color: var(--text-white);
    margin-bottom: 1.5rem;
    font-size: 1rem;
}
.footer-links ul {
    list-style: none;
}
.footer-links li {
    margin-bottom: 0.75rem;
}
.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}
.footer-links a:hover {
    color: var(--primary-color);
}
.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-light);
}
.footer-bottom p {
    margin: 0;
    text-align: center;
}
.footer-legal {
    text-align: center;
    margin-bottom: 1rem;
}
.legal-link {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}
.legal-link:hover {
    color: var(--primary-color);
}
.separator {
    color: var(--text-light);
    margin: 0 1rem;
}
.modal-body h4 {
  color: var(--text-white);
  font-size: 1rem;
  font-weight: 600;
  margin: 1.5rem 0 0.75rem 0;
}

.modal-body h4:first-child {
  margin-top: 0;
}
/* ACCESSIBILITÉ & UI — Améliorations (#2) */
/* Focus visible générique sur les éléments interactifs */
:where(a, button, [role="button"], input, select, textarea):focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 3px;
}
/* Anneau de focus plus visible sur fond sombre pour les boutons & liens navbar */
.nav-link:focus-visible,
.btn:focus-visible,
.hamburger:focus-visible,
.reference-logo:focus-visible {
    box-shadow: 0 0 0 3px rgba(255,255,255,0.15), 0 0 0 6px var(--primary-color);
    border-radius: 10px;
}
/* --- Skip link: robust fix --- */
.skip-link {
  position: absolute;
  left: 10px;
  top: 0;
  transform: translateY(-200%); 
  background: var(--primary-color, #00e5ff);
  color: #000;
  padding: .6rem 1rem;
  border-radius: 8px;
  z-index: 1100;
  text-decoration: none;
  pointer-events: none;
  transition: none;
  outline: none;
}
.skip-link:focus-visible {
  transform: translateY(10px);
  pointer-events: auto;
  outline: 3px solid #000;
  outline-offset: 3px;
}
.skip-link:focus { outline: none; }
section { scroll-margin-top: 0px; }
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}
/* --- Formulaire: RGPD + anti-spam + a11y --- */
a[target="_blank"][rel="noopener noreferrer"] label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  line-height: 1.4;
}
.form-group.checkbox {
  margin-bottom: 2rem;
}
.form-group.checkbox label {
  display: inline-block;
  align-items: center;
  gap: 0.75rem;
  line-height: 1.4;
  font-size: 0.6rem;
  color: var(--text-light);
  cursor: pointer;
}
.form-group.checkbox input[type="checkbox"] {
  margin: 0;
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  margin-top: 1px;
  margin-right: 4px;
  flex-shrink: 0;
}
.inline-link { color: var(--nav-light); text-decoration: underline; }
.inline-link:hover { opacity: 0.85; }
.form-actions { margin-top: 1rem; }
.form-status {
  margin-top: 0.75rem;
  min-height: 1.25rem;
  font-weight: 600;
}
.form-status.ok { color: #4ade80; }       /* vert */
.form-status.err { color: #f87171; }      /* rouge */
/* Valid/invalid UI (progressive enhancement) */
input:invalid, textarea:invalid, select:invalid {
  border-color: rgba(255, 99, 71, 0.6);
}
input:focus:invalid, textarea:focus:invalid, select:focus:invalid {
  border-color: #ff6347;
  box-shadow: 0 0 0 3px rgba(255, 99, 71, 0.25);
}
/* Honeypot accessibility — already offscreen inline */
/* Noscript styling */
.noscript-note { color: var(--text-light); font-size: 0.9rem; margin-top: 1rem; }

.btn-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--dark-bg);
  border: 1px solid var(--nav-light);
  color: #fff;
  font-weight: 600;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  text-decoration: none;
  transition: var(--transition);
}
.btn-linkedin:hover { background-color: #005582; transform: translateY(-2px); }
.btn-linkedin:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
  box-shadow: 0 0 0 6px rgba(0,119,181,0.4);
}
/* ===== Modales légales (popup) ===== */
.modal-overlay[hidden] { display: none !important; }
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(6px);
  display: grid; place-items: center;
  z-index: 2000;
  animation: modalFadeIn .2s ease;
}
@keyframes modalFadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  width: min(900px, 92vw);
  max-height: 86vh;
  background: var(--dark-bg-light);
  color: var(--text-light);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.25rem;
  background: var(--card-bg);
  border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
  color: var(--text-white);
  font-size: 1.25rem; font-weight: 700; margin: 0;
}
.modal-close {
  background: transparent; border: none; color: var(--text-white);
  font-size: 1.5rem; line-height: 1; cursor: pointer;
  width: 36px; height: 36px; border-radius: 8px;
}
.modal-close:hover, .modal-close:focus-visible {
  background: rgba(255,255,255,0.08);
  outline: 3px solid rgba(255,255,255,0.15);
  outline-offset: 2px;
}
.modal-body {
  padding: 1.25rem;
  overflow: auto;
}
.modal-body p { margin-bottom: 1rem; }
.modal-body ul { margin-left: 1rem; padding-left: 0; list-style: disc; }
.modal-body li { margin: 0.5rem 0; }
.modal-footer {
  display: flex; justify-content: flex-end; gap: .5rem;
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border-color);
  background: var(--card-bg);
}
/* Boutons cohérents avec le thème */
.modal .btn.btn-primary {
  background: var(--gradient-primary);
  color: var(--text-white);
  padding: 0.6rem 1.2rem;
  border-radius: 10px;
  border: 0;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.modal .btn.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(0,102,255,0.3); }
/* Bloquer le scroll arrière-plan quand modale ouverte */
body.no-scroll { overflow: hidden; }
/* Responsive */
@media (max-width: 600px) {
  .modal { width: 94vw; max-height: 90vh; }
  .modal-header h3 { font-size: 1.1rem; }
}
/* Bulle flottante */
.whatsapp-bubble {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #25d366;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 1000;
    transition: transform 0.3s;
}
.whatsapp-bubble:hover {
    transform: scale(1.1);
}
.whatsapp-bubble img {
    width: 60px;
    height: 60px;
}
/* Fenêtre du widget */
.whatsapp-widget {
    display: none;
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 300px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    z-index: 1001;
    overflow: hidden;
    font-family: sans-serif;
}
.whatsapp-header {
    background: #25d366;
    color: #fff;
    padding: 10px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.whatsapp-header button {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
}

.whatsapp-body {
    padding: 15px;
    color: #333;
    font-size: 14px;
}
.whatsapp-btn {
    display: block;
    background: #25d366;
    color: #fff;
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    text-decoration: none;
    margin-top: 10px;
    font-weight: bold;
}
.whatsapp-btn:hover {
    background: #1ebe57;
}
/* ===== Cookie Banner (fixe et visible) ===== */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2000; /* au-dessus du footer et widgets */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 12px 16px;
  background: black;
  border-top: 1px solid #2b3a6a;
}
.cookie-banner__content p { margin: 0; }
.cookie-banner__actions { display: flex; gap: 8px; }
/* cache proprement quand ton JS met l’attribut hidden */
.cookie-banner[hidden] { display: none !important; }
/* RESPONSIVE DESIGN*/
/* CORRECTION DU MENU MOBILE - À ajouter/remplacer dans votre CSS */

/* Navigation mobile - correction */
/* SUPPRIMEZ LE CSS DE TEST ROUGE ET REMPLACEZ PAR CECI */

/* Navigation mobile - Correction définitive */
/* SECTION RESPONSIVE À REMPLACER COMPLÈTEMENT */
/* REMPLACEZ TOUTE LA SECTION RESPONSIVE DE VOTRE CSS PAR CECI */

/* RESPONSIVE DESIGN - 768px */
@media (max-width: 768px) {
    /* Configuration hamburger */
    .hamburger {
        display: flex;
        z-index: 1002;
    }
    
    /* Configuration menu mobile - CRITIQUE */
    .nav-menu {
        position: fixed;
        left: -100%; /* Caché par défaut */
        top: 70px;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--dark-bg);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: 2rem 0;
        z-index: 1001;
        transition: left 0.3s ease-in-out;
        box-shadow: var(--shadow-lg);
        overflow-y: auto;
    }
    
    /* État actif du menu - CRITIQUE */
    .nav-menu.active {
        left: 0; /* Affiche le menu */
    }
    
    /* Styles des liens du menu mobile */
    .nav-menu li {
        margin: 1rem 0;
        width: 100%;
        text-align: center;
    }
    
    .nav-menu .nav-link {
        display: block;
        font-size: 1.1rem;
        padding: 1rem 2rem;
        color: var(--nav-light);
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .nav-menu .nav-link:hover {
        background: rgba(0, 102, 255, 0.2);
        color: var(--text-white);
    }
    
    .nav-menu .btn-contact {
        background: var(--gradient-primary);
        border-radius: 8px;
        margin: 1rem auto;
        padding: 0.75rem 2rem;
        border: none;
        width: auto;
    }
    
    .nav-menu .btn-contact:hover {
        transform: none;
    }
    
    /* Reste du responsive 768px */
    .hero-title {
        font-size: 2.5rem;
    }
    .about-content {
        grid-template-columns: 1fr;
    }
    .services-grid {
        grid-template-columns: 1fr;
    }
    .project-card.featured {
        grid-template-columns: 1fr;
    }
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    .contact-content {
        grid-template-columns: 1fr;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* RESPONSIVE DESIGN - 480px (SÉPARÉ) */
@media (max-width: 480px) {
    /* Ajustement menu mobile pour petits écrans */
    .nav-menu {
        top: 60px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    .section-title {
        font-size: 2rem;
    }
    .btn {
        padding: 0.875rem 2rem;
    }
}
/* Références : 3 logos par ligne UNIQUEMENT sur mobile */
@media (max-width: 480px){
  .references-grid{
    display: grid;                     /* remplace le flex uniquement sur mobile */
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    justify-items: center;
  }
  .reference-logo{
    width: 100%;
    max-width: none;                   /* annule le max-width:200px sur mobile */
    min-height: 80px;
    padding: 0.75rem;
  }
  .reference-logo img{
    max-width: 100%;
    max-height: 48px;                  /* ajuste la hauteur visuelle */
    object-fit: contain;
  }
}
/* --- Fix mobile: section À PROPOS ne doit plus déborder --- */
@media (max-width: 576px){
  /* 1) Forcer le wrap des onglets et recentrer proprement */
  .about .tabs{
    flex-wrap: wrap;           /* autorise le retour à la ligne */
    gap: .5rem;                /* espace réduit pour tenir sur l’écran */
    justify-content: center;   /* reste centré */
    width: 100%;               /* s’aligne au conteneur */
  }

  /* 2) Annuler le min-width imposé et répartir sur la ligne */
  .about .tab-link{
    min-width: 0;                           /* annule les 130px */
    flex: 1 1 calc(33.333% - .5rem);        /* 3 onglets par ligne si possible */
    padding: .5rem .6rem;
    font-size: .9rem;
  }

  /* 3) Écrans très étroits : passer à 2 par ligne */
  @media (max-width: 360px){
    .about .tab-link{ flex: 1 1 calc(50% - .5rem); }
  }

  /* 4) Sécurité anti-débordement visuel */
  .about, .about .container{
    overflow-x: clip;         /* évite tout scroll horizontal parasite */
    padding-left: 16px;       /* petite marge look & feel identique aux autres sections */
    padding-right: 16px;
  }
}
/* 0) Choisis la largeur ici (modifiable à volonté) */
:root {
  --btn-uniform-width: 260px; /* ⇦ mets la valeur que TU veux */
}

/* 1) Aligner la colonne de boutons à droite */
.online-training-actions {
  align-items: flex-end;  /* remplace l'ancien 'stretch' */
}

/* 2) Deux boutons = même largeur, texte centré */
.online-training-actions .btn-download,
.online-training-actions .btn {
  width: var(--btn-uniform-width);
  min-width: var(--btn-uniform-width);  /* écrase l'ancien min-width:250px */
  max-width: var(--btn-uniform-width);
  text-align: center;
}

/* 3) Sur mobile, empêcher le 'width:100%' de reprendre la main */
@media (max-width: 768px) {
  .online-training-actions .btn-download,
  .online-training-actions .btn {
    width: var(--btn-uniform-width) !important;
  }
}
