/* ==================== VARIABLES GLOBALES ==================== */
:root {
    /* Couleurs principales */
    --primary-color: #FCC30A;
    --primary-dark: #e6b000;
    --primary-light: #fddc6e;
    --secondary-color: #0273dd;
    --secondary-dark: #003340;
    --dark-color: #202b31;
    --light-color: #f5f6fa;
    --text-color: #333;
    --text-light: #666;
    --white: #fff;
    --black: #000;
    
    /* Ombres */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 5px 20px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);
    
    /* Transitions */
    --transition-fast: all 0.2s ease;
    --transition: all 0.3s ease;
    
    /* Rayons */
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
    --container-wide: 100%;
    --page-gutter: clamp(16px, 3vw, 64px);
}

/* ==================== RESET & BASE ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

@media (max-width: 768px) {
    html { font-size: 14px; }
}

body {
    font-family: 'Poppins', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--light-color);
    min-height: 100vh;
    color: var(--text-color);
    overflow-x: hidden;
}

.container {
    max-width: var(--container-wide);
    margin: 0 auto;
    padding: 0 var(--page-gutter);
    width: 100%;
    animation: fadeIn 0.6s ease-out;
}

.global-container {
    max-width: var(--container-wide);
    width: 100%;
    margin: 0 auto;
}

/* Alignement global strict des sections sur le même container */
section .container,
.hero-carousel-section .container,
.projets-carousel-section .container,
.about .container,
.services .container,
.contact-footer-section .container,
.hnc-news-hero .container,
.hpc-hero-contact .container,
.hfm-contact-hero .container {
    max-width: var(--container-wide);
    margin: 0 auto;
    width: 100%;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.section-padding {
    padding: 100px 0;
}

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

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

@media (max-width: 768px) {
    .section-header { margin-bottom: 40px; }
}

.section-tag {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 16px;
    font-size: 0.85rem;
}

.section-header h2 {
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-color);
}

@media (min-width: 1200px) {
    .section-padding {
        padding: 120px 0;
    }

    .section-header {
        margin-bottom: 72px;
    }

    .section-header h2 {
        font-size: clamp(2.2rem, 3.4vw, 3.4rem);
    }
}

.section-header h2 .highlight {
    color: var(--primary-color);
}

.section-header p {
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

/* ==================== TRAINING SECTION (Background + Overlay) ==================== */
.training-section {
    padding: 80px 0;
    background-image: url("../images/h6-s5-bg-1.jpg");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
    color: var(--white);
}

.training-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.45) 100%);
    z-index: 0;
}

.training-text-panel {
    max-width: 980px;
    margin: 0 auto;
    font-size: 1rem;
    line-height: 1.8;
    color: var(--white);
    position: relative;
    z-index: 1;
    padding: 26px 22px;
    background: transparent;
    border-radius: 10px;
}

.training-list {
    margin-top: 12px;
    margin-left: 1.2rem;
    color: var(--text-light);
    column-count: 2;
    column-gap: 2rem;
}

.training-list li {
    margin-bottom: 0.65rem;
}

@media (max-width: 900px) {
    .training-section { padding: 60px 0; }
    .training-text-panel { padding: 0 12px; font-size: 0.98rem; }
    .training-list { column-count: 1; }
}

@media (max-width: 480px) {
    .training-section { padding: 40px 0; }
    .section-header { text-align: left; }
    .section-header h2 { text-align: left; }
    .training-text-panel { padding: 0 14px; font-size: 0.95rem; }
    .section-header p { margin: 0 0 12px 0; }
}

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

/* ==================== PRELOADER ==================== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at center, #0b5c8f 0%, #031421 55%, #000000 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    overflow: hidden;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    position: relative;
    width: 420px;
    height: 420px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

#stars {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#preloader .flash {
    position: absolute;
    width: 100vw;
    height: 100vh;
    background: var(--white);
    opacity: 0;
    pointer-events: none;
    animation: flashAnim 5s infinite;
}

.wave,
.orbit,
.orbit2,
.glow,
.laser {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.wave {
    border: 2px solid rgba(0, 225, 255, 0.5);
    animation: ripple 4s infinite;
}

.wave:nth-child(1) {
    width: 250px;
    height: 250px;
}

.wave:nth-child(2) {
    width: 320px;
    height: 320px;
    animation-delay: 1s;
}

.wave:nth-child(3) {
    width: 390px;
    height: 390px;
    animation-delay: 2s;
}

.orbit {
    width: 360px;
    height: 360px;
    border: 3px solid transparent;
    border-top: 3px solid #00e1ff;
    border-bottom: 3px solid #ffe600;
    animation: rotate 6s linear infinite;
    box-shadow: 0 0 20px rgba(0, 225, 255, 0.8);
}

.orbit2 {
    width: 280px;
    height: 280px;
    border-left: 2px solid rgba(255, 255, 255, 0.8);
    border-right: 2px solid rgba(255, 255, 255, 0.2);
    animation: rotateReverse 8s linear infinite;
}

.glow {
    width: 320px;
    height: 320px;
    background:
        radial-gradient(circle, rgba(0, 225, 255, 0.5), rgba(0, 225, 255, 0.1), transparent 70%);
    filter: blur(25px);
    animation: pulse 3s ease-in-out infinite;
}

.laser {
    width: 0;
    height: 4px;
    background:
        linear-gradient(90deg, transparent, #00e1ff, #ffffff, #00e1ff, transparent);
    top: 50%;
    border-radius: 0;
    animation: laserScan 3s ease-in-out infinite;
}

.preloader-logo {
    width: 260px;
    position: relative;
    z-index: 50;
    opacity: 0;
    filter:
        drop-shadow(0 0 10px #00d9ff)
        drop-shadow(0 0 40px rgba(0, 225, 255, 0.8));
    animation:
        logoIntro 2.2s cubic-bezier(.18, .89, .32, 1.28) forwards,
        levitation 5s ease-in-out infinite 2s;
}

#preloader .text {
    position: absolute;
    bottom: -70px;
    color: #d9f8ff;
    letter-spacing: 4px;
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
    opacity: 0;
    animation: textFade 2s ease forwards 1.8s;
}

.loader-spinner {
    width: 70px;
    height: 70px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top: 4px solid var(--primary-color);
    border-right: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
    margin: 0 auto 20px;
}

.loader-text {
    color: var(--white);
    font-size: 1.3rem;
    letter-spacing: 4px;
    font-weight: 300;
    animation: pulse 1.5s ease infinite;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; }
}

@keyframes logoIntro {
    0% {
        opacity: 0;
        transform: scale(0) rotate(-360deg);
        filter: blur(25px);
    }

    60% {
        opacity: 1;
        transform: scale(1.15) rotate(15deg);
    }

    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

@keyframes levitation {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes rotateReverse {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}

@keyframes ripple {
    0% { transform: scale(0.5); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

@keyframes flashAnim {
    0%, 94%, 100% { opacity: 0; }
    95% { opacity: 0.9; }
    96% { opacity: 0.2; }
    97% { opacity: 0.7; }
    98% { opacity: 0; }
}

@keyframes textFade {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes laserScan {
    0% { width: 0; opacity: 0; }
    30% { width: 420px; opacity: 1; }
    70% { width: 420px; opacity: 1; }
    100% { width: 0; opacity: 0; }
}

@media (max-width: 480px) {
    .loader {
        width: 300px;
        height: 300px;
    }

    .preloader-logo {
        width: 180px;
    }

    .orbit {
        width: 250px;
        height: 250px;
    }

    .orbit2 {
        width: 200px;
        height: 200px;
    }

    .wave:nth-child(1) {
        width: 180px;
        height: 180px;
    }

    .wave:nth-child(2) {
        width: 240px;
        height: 240px;
    }

    .wave:nth-child(3) {
        width: 300px;
        height: 300px;
    }

    .laser {
        max-width: 300px;
    }
}

@media (prefers-reduced-motion: reduce) {
    #preloader *,
    #preloader *::before,
    #preloader *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
    }
}

/* ==================== HEADER & NAVIGATION ==================== */
/* Couleurs: blanc, secondaire, gris foncé */
/* Pas de couleur jaune au survol - utilisation du bleu secondaire */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #003b5c;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    z-index: 1000;
    height: 80px;
    display: flex;
    align-items: center;
}

.header-container {
    max-width: var(--container-wide);
    margin: 0 auto;
    padding: 0 var(--page-gutter);
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
}

.logo-brand-group {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    min-width: 0;
}

.logo img {
    height: 70px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.02);
}

.brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    min-width: 0;
}

.brand-title {
    font-family: Arial, Helvetica, sans-serif;
    font-size: clamp(1.85rem, 2.45vw, 2.75rem);
    font-weight: 900;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    line-height: 1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1), 0 0 1px rgba(0, 0, 0, 0.15);
    white-space: nowrap;
}

.brand-subtitle {
    font-size: clamp(0.66rem, 0.85vw, 0.82rem);
    color: rgba(255, 255, 255, 0.78);
    font-weight: 500;
    letter-spacing: 0.25px;
    font-style: italic;
    white-space: nowrap;
}


/* Menu PC (Desktop) */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 5px;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    text-decoration: none;
    color: var(--white);
    font-weight: 600;
    font-size: 1.4rem;
    padding: 10px 16px;
    transition: var(--transition);
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Changement: couleur secondaire au lieu de primaire */
.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
    background: rgba(255, 255, 255, 0.1);
}

/* Dropdown PC */
.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #003b5c;
    min-width: 240px;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius);
    padding: 10px 0;
    z-index: 1000;
}

.dropdown-content a {
    color: var(--white);
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    font-size: 0.89rem;
    transition: var(--transition);
}

/* Changement: couleur secondaire au lieu de primaire */
.dropdown-content a:hover {
    background-color: rgba(255, 255, 255, 0.12);
    color: var(--primary-color);
    padding-left: 25px;
}

.nav-item:hover .dropdown-content {
    display: block;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    background: none;
    border: none;
    padding: 10px;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
    transition: var(--transition);
}

/* Adaptation du header sur tous les ecrans PC */
@media (min-width: 1025px) {
    .header-container {
        flex-wrap: nowrap;
    }

    .logo-brand-group,
    .brand-text {
        min-width: 0;
        flex: 0 1 auto;
    }

    .nav-link {
        white-space: nowrap;
    }

    .brand-title {
        font-family: inherit;
        font-size: clamp(1.55rem, 2.05vw, 2.25rem);
    }

    .nav-menu {
        align-items: center;
        justify-content: flex-end;
        min-width: 0;
        flex: 1 1 auto;
        padding-right: clamp(12px, 3vw, 56px);
    }
}

@media (max-width: 1366px) and (min-width: 1025px) {
    .header-container {
        padding: 0 18px;
        gap: 10px;
    }

    .logo-brand-group {
        gap: 8px;
    }

    .logo img {
        height: 56px;
    }

    .brand-title {
        font-size: 1.65rem;
        letter-spacing: 0.7px;
    }

    .brand-subtitle {
        font-size: 0.78rem;
        letter-spacing: 0.25px;
    }

    .nav-menu {
        gap: 2px;
    }

    .nav-link {
        font-size: 1.16rem;
        padding: 9px 9px;
    }
}

@media (max-width: 1180px) and (min-width: 1025px) {
    .header-container {
        padding: 0 12px;
        gap: 6px;
    }

    .logo-brand-group {
        gap: 6px;
    }

    .logo img {
        height: 46px;
    }

    .brand-title {
        font-size: 1.34rem;
        letter-spacing: 0.3px;
    }

    .brand-subtitle {
        font-size: 0.68rem;
        letter-spacing: 0.1px;
    }

    .nav-menu {
        gap: 1px;
    }

    .nav-link {
        font-size: 0.98rem;
        padding: 8px 5px;
    }
}

@media (max-width: 1060px) and (min-width: 1025px) {
    .header-container {
        padding: 0 8px;
        gap: 4px;
    }

    .logo img {
        height: 40px;
    }

    .brand-title {
        font-size: 1.18rem;
        letter-spacing: 0;
    }

    .brand-subtitle {
        font-size: 0.62rem;
        letter-spacing: 0;
    }

    .nav-link {
        font-size: 0.88rem;
        padding: 7px 3px;
    }
}

/* --- RESPONSIVE TABLETTE & MOBILE (< 1024px) --- */
@media (max-width: 1024px) {
    .header-container {
        padding: 0 22px;
        gap: 12px;
    }

    .logo-brand-group {
        min-width: 0;
        gap: 10px;
    }

    .logo img {
        height: 58px;
    }

    .brand-text {
        min-width: 0;
    }

    .brand-title {
        font-size: clamp(1.34rem, 3.8vw, 1.78rem);
        letter-spacing: 0.3px;
    }

    .brand-subtitle {
        font-size: clamp(0.58rem, 1.6vw, 0.72rem);
    }

    .hamburger {
        display: flex;
        flex: 0 0 auto;
    }

    .nav-menu {
        position: fixed;
        right: -100%;
        top: 80px;
        flex-direction: column;
        background: var(--white);
        width: 300px;
        height: calc(100vh - 80px);
        gap: 0;
        transition: 0.4s ease-in-out;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        overflow-y: auto;
        padding-bottom: 50px;
        z-index: 999;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-item {
        width: 100%;
        border-bottom: 1px solid #eee;
    }

    .nav-item:last-child {
        border-bottom: none;
    }

    .nav-link {
        display: flex;
        justify-content: space-between;
        padding: 18px 25px;
        font-size: 1rem;
        border-radius: 0;
        color: var(--dark-color);
    }

    /* Changement: couleur secondaire au lieu de primaire */
    .nav-link:hover,
    .nav-link.active {
        background: rgba(0, 66, 82, 0.08);
        color: var(--secondary-color);
        border-radius: 0;
    }

    .dropdown-content {
        position: static;
        display: none;
        width: 100%;
        box-shadow: none;
        background: #003b5c;
        padding: 0;
        border-radius: 0;
    }

    .dropdown-content a {
        padding: 14px 25px 14px 40px;
        font-size: 0.9rem;
        color: var(--white);
    }

    .dropdown-content a:hover {
        background-color: rgba(255, 255, 255, 0.12);
        color: var(--primary-color);
        padding-left: 45px;
    }

    .nav-item.open .dropdown-content {
        display: block;
    }

    .nav-link::after {
        content: '▼';
        font-size: 10px;
        transition: transform 0.3s ease;
    }

    .nav-item.open .nav-link::after {
        transform: rotate(180deg);
    }

    .nav-item:not(.has-dropdown) .nav-link::after {
        content: '';
    }
}

@media (max-width: 768px) {
    #header {
        height: 72px;
    }

    .header-container {
        padding: 0 18px;
        gap: 10px;
    }

    .logo-brand-group {
        gap: 8px;
    }

    .logo img {
        height: 48px;
    }

    .brand-title {
        font-size: clamp(1.12rem, 4.4vw, 1.5rem);
        letter-spacing: 0.15px;
    }

    .brand-subtitle {
        font-size: clamp(0.52rem, 2vw, 0.64rem);
        letter-spacing: 0.1px;
    }

    .hamburger {
        padding: 8px;
        gap: 4px;
    }

    .hamburger span {
        width: 26px;
        height: 3px;
    }

    .nav-menu {
        top: 72px;
        width: min(320px, 88%);
        height: calc(100vh - 72px);
    }
}

@media (max-width: 480px) {
    .nav-menu {
        width: 85%;
    }
    
    .logo span {
        font-size: 2.1rem;
    }
    
    .logo img {
        height: 42px;
    }
    
    .header-container {
        padding: 0 16px;
        gap: 8px;
    }
    
    #header {
        height: 70px;
    }

    .logo-brand-group {
        gap: 7px;
    }

    .brand-title {
        font-size: clamp(0.98rem, 5vw, 1.22rem);
        letter-spacing: 0;
    }

    .brand-subtitle {
        font-size: clamp(0.48rem, 2.4vw, 0.58rem);
        letter-spacing: 0;
    }
    
    .nav-menu {
        top: 70px;
        height: calc(100vh - 70px);
    }
}

@media (max-width: 360px) {
    .header-container {
        padding: 0 12px;
        gap: 6px;
    }

    .logo img {
        height: 38px;
    }

    .brand-title {
        font-size: 1rem;
    }

    .brand-subtitle {
        font-size: 0.5rem;
    }

    .hamburger {
        padding: 6px;
    }

    .hamburger span {
        width: 24px;
    }
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* Ajustement du margin-top pour le carrousel */
.hero-carousel-section {
    margin-top: 80px;
    background: #003b5c;
    padding: 28px 0;
}

@media (max-width: 768px) {
    .hero-carousel-section {
        margin-top: 70px;
    }
}

/* ==================== CARROUSEL HERO ==================== */
/* Couleurs: blanc, noir, primaire, dégradés */
.carousel-wrapper {
    position: relative;
    border-radius: 30px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    background: #003b5c;
    padding: 20px;
    transition: all 0.4s ease;
    max-width: 100%;
    margin: 0 auto;
    border: 2px solid rgba(0, 66, 82, 0.08);
}

.carousel-wrapper:hover {
    box-shadow: 0 35px 70px rgba(0, 0, 0, 0.5);
    border-color: var(--primary-color);
}

.carousel-container {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #000;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.7s cubic-bezier(0.34, 1.2, 0.64, 1);
    will-change: transform;
}

.carousel-slide {
    position: relative;
    min-width: 100%;
    overflow: hidden;
}

.carousel-slide img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.carousel-slide:hover img {
    transform: scale(1.06);
}

@media (max-width: 992px) {
    .carousel-slide img { height: 450px; }
}

@media (min-width: 1200px) {
    .carousel-slide img {
        height: 620px;
    }

    .slide-content {
        bottom: 100px;
        left: 80px;
        right: 80px;
    }

    .slide-content h2 {
        font-size: 3.6rem;
    }

    .slide-content p {
        font-size: 1.35rem;
        max-width: 980px;
    }
}

@media (max-width: 768px) {
    .carousel-slide img { height: 400px; }
}

@media (max-width: 576px) {
    .carousel-slide img { height: 350px; }
}

@media (max-width: 480px) {
    .carousel-slide img { height: 300px; }
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.6) 100%);
    z-index: 1;
}

.slide-content {
    position: absolute;
    bottom: 80px;
    left: 60px;
    right: 60px;
    z-index: 2;
    text-align: left;
    color: white;
}

@media (max-width: 768px) {
    .slide-content {
        bottom: 45px;
        left: 35px;
        right: 35px;
    }
}

@media (max-width: 480px) {
    .slide-content {
        bottom: 30px;
        left: 25px;
        right: 25px;
    }
}

.slide-content h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(35px);
}

@media (max-width: 768px) {
    .slide-content h2 { font-size: 2rem; }
}

@media (max-width: 480px) {
    .slide-content h2 { font-size: 1.5rem; }
}

.slide-content p {
    font-size: 1.2rem;
    margin-bottom: 25px;
    opacity: 0.9;
    opacity: 0;
    transform: translateY(35px);
}

@media (max-width: 768px) {
    .slide-content p { font-size: 1rem; margin-bottom: 15px; }
}

@media (max-width: 480px) {
    .slide-content p { font-size: 0.85rem; }
}

.slide-content .btn {
    opacity: 0;
    transform: translateY(35px);
}

.carousel-slide.active .slide-content h2 {
    animation: slideUpFade 0.7s cubic-bezier(0.2, 0.9, 0.4, 1.1) forwards 0.2s;
}

.carousel-slide.active .slide-content p {
    animation: slideUpFade 0.7s cubic-bezier(0.2, 0.9, 0.4, 1.1) forwards 0.4s;
}

.carousel-slide.active .slide-content .btn {
    animation: slideUpFade 0.7s cubic-bezier(0.2, 0.9, 0.4, 1.1) forwards 0.6s;
}

@keyframes slideUpFade {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Boutons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #FCC30A, #e6b000);
    color: var(--dark-color);
    border: none;
    padding: 12px 32px;
    border-radius: 60px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn:hover {
    transform: translateX(6px) scale(1.05);
    box-shadow: 0 15px 30px rgba(252, 195, 10, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: none;
}

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

/* Navigation Buttons */
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 20;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.nav-btn svg {
    width: 30px;
    height: 30px;
    transition: transform 0.3s ease;
}

.nav-btn .btn-label {
    display: none;
}

.prev-btn {
    left: -25px;
}

.prev-btn .btn-label {
    left: 70px;
}

.next-btn {
    right: -25px;
}

.next-btn .btn-label {
    right: 70px;
}

.nav-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
    width: 60px;
    border-radius: 50%;
}

.prev-btn:hover .btn-label {
    opacity: 1;
    transform: translateX(0);
}

.next-btn:hover .btn-label {
    opacity: 1;
    transform: translateX(0);
}

.nav-btn:hover svg {
    transform: scale(1.15);
}

@media (max-width: 992px) {
    .nav-btn { width: 50px; height: 50px; }
    .nav-btn:hover { width: 50px; }
    .prev-btn { left: -15px; }
    .next-btn { right: -15px; }
}

@media (max-width: 768px) {
    .nav-btn { width: 45px; height: 45px; }
    .nav-btn svg { width: 24px; height: 24px; }
    .nav-btn:hover { width: 45px; }
}

@media (max-width: 576px) {
    .nav-btn { width: 38px; height: 38px; }
    .nav-btn svg { width: 20px; height: 20px; }
    .nav-btn:hover { width: 38px; }
    .prev-btn { left: -10px; }
    .next-btn { right: -10px; }
}

/* Progress Bar */
.nav-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(0, 0, 0, 0.2);
    z-index: 15;
    border-radius: 0 0 24px 24px;
    overflow: hidden;
}

.carousel-container .progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #FCC30A, #004252, #FCC30A);
    width: 0%;
    transition: width 0.05s linear;
    box-shadow: 0 0 8px #FCC30A;
}

/* Indicateurs */
.slide-indicators {
    position: absolute;
    bottom: 24px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 12px;
    z-index: 15;
}

.indicators-container {
    display: flex;
    gap: 12px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    padding: 8px 24px;
    border-radius: 80px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.indicator {
    width: 44px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    overflow: hidden;
}

.indicator::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #FCC30A, #004252);
    border-radius: 8px;
    transition: width 0.3s ease;
}

.indicator.active {
    width: 70px;
    background: rgba(255, 255, 255, 0.2);
}

.indicator.active::before {
    width: 100%;
    animation: fillProgress 5s linear forwards;
}

@keyframes fillProgress {
    from { width: 0%; }
    to { width: 100%; }
}

.indicator:hover {
    transform: scaleY(1.6);
    background: rgba(255, 255, 255, 0.8);
}

@media (max-width: 768px) {
    .indicators-container { gap: 8px; padding: 6px 16px; }
    .indicator { width: 36px; height: 4px; }
    .indicator.active { width: 58px; }
}

@media (max-width: 480px) {
    .indicators-container { padding: 4px 12px; gap: 6px; }
    .indicator { width: 28px; }
    .indicator.active { width: 45px; }
}

/* Statistiques du carrousel */
.carousel-stats {
    position: absolute;
    bottom: 24px;
    right: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: white;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    padding: 8px 20px;
    border-radius: 50px;
    z-index: 15;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-label {
    font-size: 0.7rem;
    opacity: 0.8;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 500;
}

.stat-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.2;
}

.stat-divider {
    width: 1px;
    height: 25px;
    background: rgba(255, 255, 255, 0.3);
}

@media (max-width: 768px) {
    .carousel-stats {
        bottom: 15px;
        right: 15px;
        padding: 5px 12px;
        gap: 10px;
    }
    .text-center { text-align: center; }

    /* ==================== TRAINING SECTION (Responsive) ==================== */
    .training-section {
        padding: 80px 0;
        background: transparent;
    }

    .training-text-panel {
        max-width: 980px;
        margin: 0 auto;
        font-size: 1rem;
        line-height: 1.8;
        color: var(--text-light);
    }

    .training-list {
        margin-top: 12px;
        margin-left: 1.2rem;
        color: var(--text-light);
        column-count: 2;
        column-gap: 2rem;
    }

    .training-list li {
        margin-bottom: 0.65rem;
    }

    @media (max-width: 900px) {
        .training-section { padding: 60px 0; }
        .training-text-panel { padding: 0 12px; font-size: 0.98rem; }
        .training-list { column-count: 1; }
    }

    @media (max-width: 480px) {
        .training-section { padding: 40px 0; }
        .section-header { text-align: left; }
        .section-header h2 { text-align: left; }
        .training-text-panel { padding: 0 14px; font-size: 0.95rem; }
        .section-header p { margin: 0 0 12px 0; }
    }
}

.projet-carousel-slide:hover img {
    transform: scale(1.06);
}

@media (min-width: 1200px) {
    .projets-carousel-section {
        padding: 100px 0;
    }

    .projet-carousel-slide img {
        height: 560px;
    }

    .projet-slide-content {
        bottom: 78px;
        left: 70px;
        right: 70px;
    }

    .projet-slide-content h3 {
        font-size: 2.35rem;
    }

    .projet-slide-content p {
        font-size: 1.12rem;
        max-width: 850px;
    }
}

@media (max-width: 992px) {
    .projet-carousel-slide img { height: 400px; }
}

@media (max-width: 768px) {
    .projet-carousel-slide img { height: 350px; }
}

@media (max-width: 576px) {
    .projet-carousel-slide img { height: 300px; }
}

.projet-slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.6) 100%);
    z-index: 1;
}

.projet-slide-content {
    position: absolute;
    bottom: 60px;
    left: 50px;
    right: 50px;
    z-index: 2;
    text-align: left;
    color: white;
}

@media (max-width: 768px) {
    .projet-slide-content {
        bottom: 35px;
        left: 30px;
        right: 30px;
    }
}

@media (max-width: 480px) {
    .projet-slide-content {
        bottom: 25px;
        left: 20px;
        right: 20px;
    }
}

.projet-slide-content h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(35px);
}

@media (max-width: 768px) {
    .projet-slide-content h3 { font-size: 1.4rem; }
}

@media (max-width: 480px) {
    .projet-slide-content h3 { font-size: 1.1rem; }
}

.projet-slide-content p {
    font-size: 1rem;
    margin-bottom: 15px;
    opacity: 0.9;
    opacity: 0;
    transform: translateY(35px);
}

@media (max-width: 768px) {
    .projet-slide-content p { font-size: 0.85rem; }
}

.projet-slide-content .projet-category {
    display: inline-block;
    background: var(--primary-color);
    color: var(--dark-color);
    padding: 5px 15px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 15px;
    opacity: 0;
    transform: translateY(35px);
}

.projet-carousel-slide.active .projet-slide-content .projet-category {
    animation: slideUpFade 0.6s ease forwards 0.2s;
}

.projet-carousel-slide.active .projet-slide-content h3 {
    animation: slideUpFade 0.7s cubic-bezier(0.2, 0.9, 0.4, 1.1) forwards 0.4s;
}

.projet-carousel-slide.active .projet-slide-content p {
    animation: slideUpFade 0.7s cubic-bezier(0.2, 0.9, 0.4, 1.1) forwards 0.6s;
}

/* Navigation projets */
.projets-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    width: 50px;
    height: 50px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 20;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.projets-nav-btn svg {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.projets-nav-btn .btn-label {
    position: absolute;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.35s ease;
    font-size: 0.85rem;
    font-weight: 600;
}

.projets-prev-btn {
    left: -20px;
}

.projets-prev-btn .btn-label {
    left: 60px;
}

.projets-next-btn {
    right: -20px;
}

.projets-next-btn .btn-label {
    right: 60px;
}

.projets-nav-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
    width: 120px;
}

.projets-prev-btn:hover .btn-label {
    opacity: 1;
    transform: translateX(0);
}

.projets-next-btn:hover .btn-label {
    opacity: 1;
    transform: translateX(0);
}

.projets-nav-btn:hover svg {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .projets-nav-btn { width: 40px; height: 40px; }
    .projets-nav-btn:hover { width: 100px; }
    .projets-prev-btn { left: -15px; }
    .projets-next-btn { right: -15px; }
}

@media (max-width: 576px) {
    .projets-nav-btn { width: 35px; height: 35px; }
    .projets-nav-btn:hover { width: 85px; }
}

.projets-nav-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(0, 0, 0, 0.2);
    z-index: 15;
    border-radius: 0 0 24px 24px;
    overflow: hidden;
}

.projets-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #FCC30A, #004252, #FCC30A);
    width: 0%;
    transition: width 0.05s linear;
}

.projets-slide-indicators {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 15;
}

.projets-indicators-container {
    display: flex;
    gap: 10px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    padding: 6px 20px;
    border-radius: 80px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.projets-indicator {
    width: 35px;
    height: 4px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    overflow: hidden;
}

.projets-indicator::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #FCC30A, #004252);
    border-radius: 8px;
    transition: width 0.3s ease;
}

.projets-indicator.active {
    width: 55px;
    background: rgba(255, 255, 255, 0.2);
}

.projets-indicator.active::before {
    width: 100%;
    animation: fillProgressProjets 5s linear forwards;
}

@keyframes fillProgressProjets {
    from { width: 0%; }
    to { width: 100%; }
}

.projets-indicator:hover {
    transform: scaleY(1.5);
    background: rgba(255, 255, 255, 0.8);
}

@media (max-width: 768px) {
    .projets-indicator { width: 25px; }
    .projets-indicator.active { width: 40px; }
    .projets-indicators-container { padding: 5px 12px; gap: 8px; }
}

@media (max-width: 480px) {
    .projets-indicator { width: 20px; }
    .projets-indicator.active { width: 30px; }
}

.projets-carousel-stats {
    position: absolute;
    bottom: 20px;
    right: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    padding: 6px 16px;
    border-radius: 50px;
    z-index: 15;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.projets-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.projets-stat-label {
    font-size: 0.65rem;
    opacity: 0.8;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.projets-stat-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.2;
}

.projets-stat-divider {
    width: 1px;
    height: 20px;
    background: rgba(255, 255, 255, 0.3);
}

@media (max-width: 768px) {
    .projets-carousel-stats {
        bottom: 12px;
        right: 12px;
        padding: 4px 10px;
        gap: 8px;
    }
    .projets-stat-value { font-size: 0.9rem; }
}

/* ==================== CARROUSEL ACTUALITE ==================== */
.actualite-carousel-section {
    background: #f5f5f7;
}

.actualite-carousel-wrapper {
    width: calc(100% - (var(--page-gutter) * 2));
    margin: 0 auto;
}

.actualite-carousel-slide .projet-slide-content {
    max-width: 680px;
}

.actualite-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    padding: 12px 22px;
    background: var(--primary-color);
    color: #111827;
    text-decoration: none;
    font-weight: 700;
    border-radius: 999px;
    transition: var(--transition);
}

.actualite-read-more:hover {
    gap: 14px;
    background: var(--primary-light);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .actualite-carousel-wrapper {
        width: calc(100% - 32px);
    }
}

/* ==================== SECTION ABOUT ==================== */
/* Couleurs: blanc, primaire, secondaire, gris */
.about {
    background: #003b5c;
    position: relative;
    z-index: 5;
    max-width: var(--container-wide);
    margin: 0 auto;
    padding-left: var(--page-gutter);
    padding-right: var(--page-gutter);
}

.about.section-padding {
    padding-top: 40px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 20px;
    align-items: start;
}

@media (min-width: 1200px) {
    .about-grid {
        gap: 24px;
    }

    .about-content h2 {
        font-size: 2.45rem;
    }

    .about-content p {
        font-size: 1.08rem;
        line-height: 1.8;
    }
}

@media (max-width: 992px) {
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
}

.about-image {
    position: relative;
    align-self: start;
    display: flex;
    flex-direction: column;
}

.about-content {
    align-self: start;
    padding: 30px;
    background: var(--white);
    border: 2px solid var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.about-image img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.about-image-info {
    margin-top: 28px;
    padding: 28px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 2px solid var(--white);
    border-left: 5px solid var(--primary-color);
}

.about-image-info h3 {
    color: var(--text-color);
    font-size: 1.35rem;
    margin-bottom: 14px;
}

.about-image-info p {
    color: var(--text-light);
    line-height: 1.75;
    margin-bottom: 18px;
}

.about-image-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.about-image-info li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--text-color);
    margin-bottom: 10px;
    line-height: 1.55;
}

.about-image-info li:last-child {
    margin-bottom: 0;
}

.about-image-info i {
    color: var(--primary-color);
    margin-top: 4px;
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--primary-color);
    padding: 20px;
    border-radius: var(--radius);
    text-align: center;
    min-width: 120px;
    box-shadow: var(--shadow-lg);
}

.about-image > .experience-badge {
    position: static;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 160px;
    min-height: 112px;
    margin-top: 22px;
    padding: 18px 24px;
    align-self: flex-end;
}

@media (max-width: 768px) {
    .experience-badge {
        bottom: -10px;
        right: -10px;
        padding: 10px;
        min-width: 90px;
    }
    .experience-badge .years { font-size: 1.5rem; }

    .about-image > .experience-badge {
        min-width: 132px;
        min-height: 92px;
        margin-top: 18px;
    }
}

.experience-badge .years {
    font-size: 2rem;
    font-weight: 700;
    display: block;
    color: var(--dark-color);
}

.experience-badge .text {
    font-size: 0.8rem;
    color: var(--dark-color);
}

.about-content h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--text-color);
}

.about-content p {
    color: var(--text-color);
    margin-bottom: 15px;
}

.about-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    margin-top: 10px;
}

.about-content,
.about-content h2,
.about-content p,
.about-content .stat .label,
.about-image-info,
.about-image-info h3,
.about-image-info p,
.about-image-info li {
    color: var(--text-color);
}

.about-stats {
    display: flex;
    gap: 40px;
    margin-top: 30px;
}

@media (max-width: 768px) {
    .about-stats { gap: 20px; flex-wrap: wrap; justify-content: center; }
}

.about.section-padding {
    padding-bottom: 45px;
}

.services.section-padding {
    padding-top: 45px;
    padding-bottom: 45px;
}

.projets-carousel-section {
    padding-top: 45px;
    padding-bottom: 60px;
}

.services .section-header,
.projets-carousel-section .section-header {
    margin-bottom: 36px;
}

.realisations-grid-section,
.expertise-section {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    padding: 45px 0 60px;
}

.realisations-grid,
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.realisation-card,
.expertise-card {
    background: var(--white);
    padding: 35px 25px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
}

.realisation-card:hover,
.expertise-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.realisation-card i,
.expertise-card i {
    font-size: 2.8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.realisation-card h4,
.expertise-card h4 {
    font-size: 1.35rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.realisation-card p,
.expertise-card p {
    color: var(--text-color);
    line-height: 1.7;
    margin: 0;
}

.actualite-showcase-section {
    background: var(--white);
    padding: 32px 0 70px;
}

.actualite-category {
    display: inline-flex;
    width: fit-content;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(252, 195, 10, 0.14);
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 0.88rem;
    margin-bottom: 18px;
}

.realisations-showcase {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.realisation-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    align-items: stretch;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition);
}

.realisation-block:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.realisation-content {
    padding: 42px 32px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.realisation-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(252, 195, 10, 0.12);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 2rem;
    margin-bottom: 22px;
}

.realisation-content h3 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 18px;
    color: var(--secondary-color);
}

.realisation-content p {
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 22px;
}

.realisation-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
}

.realisation-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-color);
    margin-bottom: 12px;
}

.realisation-features li i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.realisation-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: fit-content;
    padding: 14px 28px;
    border: 2px solid var(--primary-color);
    border-radius: 999px;
    color: var(--secondary-color);
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
}

.realisation-btn:hover {
    background: var(--primary-color);
    color: var(--white);
}

.realisation-image {
    min-height: 420px;
    overflow: hidden;
}

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

.realisation-block:hover .realisation-image img {
    transform: scale(1.03);
}

@media (max-width: 992px) {
    .realisation-block {
        grid-template-columns: 1fr;
    }

    .realisation-block.reverse .realisation-image {
        order: 2;
    }

    .realisation-block.reverse .realisation-content {
        order: 1;
    }

    .realisation-image {
        min-height: 320px;
    }
}

@media (max-width: 768px) {
    .realisation-content {
        padding: 30px 20px;
    }

    .realisation-content h3 {
        font-size: 1.5rem;
    }
}

.stat {
    text-align: center;
}

.stat .number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
}

.stat .label {
    color: var(--text-light);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .stat .number { font-size: 1.5rem; }
}

/* ==================== SECTION SERVICES ==================== */
/* Couleurs: gris clair, blanc, primaire, ombres */
.services {
    background: var(--light-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

@media (min-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 38px;
    }

    .service-card {
        padding: 30px 30px 46px;
    }

    .service-card h3 {
        font-size: 1.28rem;
    }

    .service-card p {
        font-size: 1.02rem;
        line-height: 1.75;
    }
}

@media (max-width: 768px) {
    .services-grid { grid-template-columns: 1fr; gap: 20px; }
}

.service-card {
    background: var(--white);
    padding: 24px 24px 40px;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.service-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 26px;
    background: var(--light-color);
}

.service-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.45s ease, filter 0.45s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.08);
    filter: saturate(1.08) contrast(1.04);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: rgba(252, 195, 10, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--primary-color);
    transform: rotateY(180deg);
}

.service-icon i {
    font-size: 2.5rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.service-card:hover .service-icon i { color: var(--white); }

.service-card h3 { color: var(--text-color); margin-bottom: 15px; }
.service-card p {
    color: var(--text-light);
    margin-bottom: 18px;
    text-align: left;
}

.service-details {
    list-style: none;
    margin: 0 0 22px;
    padding: 0;
    text-align: left;
}

.service-details li {
    position: relative;
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.6;
    padding-left: 18px;
    margin-bottom: 8px;
}

.service-details li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.72em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--primary-color);
}

.service-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
}

.service-link:hover { gap: 12px; }

/* ==================== SECTION PARTENAIRES ==================== */
/* Couleurs: blanc, gris */
.partenaires {
    background: #050505;
    position: relative;
    padding-top: 45px;
    padding-bottom: 45px;
}

.partenaires .section-header {
    margin-bottom: 28px;
}

.partenaires .section-header h2,
.partenaires .section-header p {
    color: var(--white);
}

.partenaires-grid {
    --partners-bar-height: 118px;
    display: flex;
    gap: 42px;
    align-items: center;
    width: max-content;
    min-width: 200%;
    height: var(--partners-bar-height);
    animation: partnersMarquee 28s linear infinite;
    will-change: transform;
}

.partenaires-logos-bar {
    position: relative;
    height: 118px;
    margin-top: 20px;
    overflow: hidden;
}

.partenaires-logos-bar-reverse {
    margin-top: 18px;
}

.partenaires-grid:hover {
    animation-play-state: paused;
}

.partenaires {
    overflow: hidden;
}

.partenaires-logos-bar::after,
.partenaires-logos-bar::before {
    content: "";
    position: absolute;
    top: 0;
    z-index: 2;
    width: 120px;
    height: 100%;
    pointer-events: none;
}

.partenaires-logos-bar::before {
    left: 0;
    background: linear-gradient(90deg, #050505 0%, rgba(5,5,5,0) 100%);
}

.partenaires-logos-bar::after {
    right: 0;
    background: linear-gradient(270deg, #050505 0%, rgba(5,5,5,0) 100%);
}

@keyframes partnersMarquee {
    from { transform: translateX(0); }
    to { transform: translateX(calc(-50% - 21px)); }
}

.partenaires-grid-reverse {
    animation-name: partnersMarqueeReverse;
}

@keyframes partnersMarqueeReverse {
    from { transform: translateX(calc(-50% - 21px)); }
    to { transform: translateX(0); }
}

.partenaire-logo img {
    max-width: 170px;
    max-height: calc(var(--partners-bar-height) - 34px);
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%);
    transition: var(--transition);
}

.partenaire-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 190px;
    height: var(--partners-bar-height);
    padding: 18px 24px;
    background: var(--white);
    border: 1px solid rgba(0, 66, 82, 0.08);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    will-change: transform, opacity;
}

@media (max-width: 700px) {
    .partenaires-grid {
        --partners-bar-height: 92px;
        gap: 24px;
        animation-duration: 22s;
    }

    .partenaires-logos-bar {
        height: 92px;
    }

    .partenaire-logo {
        flex-basis: 150px;
        padding: 14px 18px;
    }

    .partenaire-logo img {
        max-width: 130px;
        max-height: calc(var(--partners-bar-height) - 28px);
    }
}

.partenaire-logo img:hover { filter: grayscale(0); }

.partenaires-trust-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-top: 56px;
}

.partenaires-trust-card {
    position: relative;
    padding: 28px;
    background: #101010;
    border: 2px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius);
    box-shadow: 0 14px 34px rgba(0, 66, 82, 0.12);
    overflow: hidden;
}

.partenaires-trust-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-color);
}

.partenaires-trust-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid rgba(255,255,255,0.75);
    pointer-events: none;
}

.partenaires-trust-card p {
    position: relative;
    color: rgba(255,255,255,0.88);
    line-height: 1.75;
    margin: 0;
}

@media (max-width: 768px) {
    .partenaires-trust-grid {
        grid-template-columns: 1fr;
        gap: 18px;
        margin-top: 40px;
    }

    .partenaires-trust-card {
        padding: 22px;
    }
}

/* ==================== SECTION CONTACT ==================== */
/* Couleurs: gris clair, blanc, primaire, secondaire */
.contact-footer-section {
    background: var(--light-color);
    padding: 40px 0;
}

@media (max-width: 700px) {
    .contact-footer-section { padding: 50px 0; }
}

.contact-footer-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

@media (max-width: 992px) {
    .contact-footer-wrapper { grid-template-columns: 1fr; gap: 40px; }
}

.contact-badge {
    display: inline-block;
    background: rgba(252, 195, 10, 0.15);
    color: var(--primary-color);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.contact-footer-header h2 {
    font-size: 1.8rem;
    line-height: 1.3;
    color: var(--text-color);
}

@media (max-width: 700px) {
    .contact-footer-header h2 { font-size: 1.4rem; }
}

.contact-footer-header h2 span { color: var(--primary-color); }

.contact-footer-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
}

@media (max-width: 700px) {
    .contact-footer-details { grid-template-columns: 1fr; gap: 20px; margin-top: 30px; }
}

.contact-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 7px;
    background: var(--white);
    border-radius: var(--radius-lg);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

@media (max-width: 480px) {
    .contact-detail-item { flex-direction: column; align-items: center; text-align: center; }
}

.contact-detail-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.detail-icon {
    width: 50px;
    height: 50px;
    background: rgba(252, 195, 10, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.detail-icon i {
    font-size: 1.3rem;
    color: var(--primary-color);
}

.detail-content h4 {
    color: var(--text-color);
    font-size: 1rem;
    margin-bottom: 5px;
}

.detail-content p,
.detail-content a {
    color: var(--text-light);
    font-size: 0.9rem;
    text-decoration: none;
}

.detail-content a:hover { color: var(--primary-color); }

.contact-footer-form {
    background: var(--white);
    border-radius: 28px;
    padding: 40px;
    box-shadow: var(--shadow-xl);
}

@media (max-width: 700px) {
    .contact-footer-form { padding: 25px 20px; }
}

.form-header {
    text-align: center;
    margin-bottom: 30px;
}

.form-header h3 {
    font-size: 1.6rem;
    color: var(--dark-color);
    margin-bottom: 8px;
}

.form-header p {
    color: var(--text-light);
}

@media (max-width: 700px) {
    .form-header h3 { font-size: 1.3rem; }
}

.footer-contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 700px) {
    .footer-contact-form .form-row { grid-template-columns: 1fr; gap: 0; }
}

.footer-contact-form .form-group { margin-bottom: 25px; }
.footer-contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark-color);
}

.required { color: #dc3545; }

.footer-contact-form input,
.footer-contact-form textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e8e8e8;
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition-fast);
    background: var(--white);
    color: var(--text-color);
}

.footer-contact-form input::placeholder,
.footer-contact-form textarea::placeholder {
    color: var(--text-light);
}

@media (max-width: 700px) {
    .footer-contact-form input,
    .footer-contact-form textarea { padding: 12px 14px; }
}

.footer-contact-form input:focus,
.footer-contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(252, 195, 10, 0.1);
}

.submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border: none;
    border-radius: 50px;
    color: var(--dark-color);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: var(--transition);
}

@media (max-width: 700px) {
    .submit-btn { padding: 12px; font-size: 0.9rem; }
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    gap: 15px;
}

/* ==================== ACTUALITE INTEGREE ==================== */
.hnc-news-section {
    width: 100%;
    padding: 80px 7%;
    background: #f5f5f7;
    color: #111827;
    overflow: hidden;
}

.hnc-section-title {
    text-align: center;
    margin-bottom: 60px;
}

.hnc-section-title h1 {
    font-size: clamp(2.4rem, 6vw, 4rem);
    font-weight: 900;
    color: #0f172a;
    margin-bottom: 15px;
}

.hnc-section-title p {
    font-size: 1.1rem;
    color: #6b7280;
}

.hnc-news-hero {
    width: 100%;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.hnc-news-card {
    flex: 1;
    height: 760px;
    border-radius: 35px;
    overflow: hidden;
    position: relative;
    background: var(--white);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

.hnc-slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.hnc-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.08);
}

.hnc-slide.active {
    opacity: 1;
    transform: scale(1);
}

.hnc-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hnc-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.15));
    display: flex;
    align-items: flex-end;
    padding: 45px;
}

.hnc-overlay-content h2 {
    color: var(--white);
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    margin-bottom: 15px;
    font-weight: 800;
}

.hnc-overlay-content p {
    color: #e5e7eb;
    line-height: 1.7;
    font-size: 1.05rem;
    max-width: 500px;
    margin-bottom: 25px;
}

.hnc-read-more {
    display: inline-block;
    padding: 14px 28px;
    background: #f4c000;
    color: #111827;
    text-decoration: none;
    font-weight: 700;
    border-radius: 50px;
    transition: var(--transition);
}

.hnc-read-more:hover {
    transform: translateY(-4px);
    background: #ffd84d;
}

@media (max-width: 992px) {
    .hnc-news-hero {
        flex-direction: column;
    }

    .hnc-news-card {
        width: 100%;
        height: 500px;
        flex: none;
    }
}

@media (max-width: 560px) {
    .hnc-news-section {
        padding: 60px 20px;
    }

    .hnc-section-title {
        margin-bottom: 36px;
    }

    .hnc-news-hero {
        gap: 24px;
        min-height: auto;
    }

    .hnc-news-card {
        height: 430px;
        border-radius: 24px;
    }

    .hnc-overlay {
        padding: 28px;
    }
}

/* ==================== CONTACT PREMIUM INTEGRE ==================== */
.hpc-hero-contact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
    background: #000;
    overflow: hidden;
}

.hpc-hero-left,
.hpc-hero-right {
    position: relative;
    overflow: hidden;
}

.hpc-hero-contact .swiper {
    width: 100%;
    height: 100vh;
}

.hpc-swiper-slide {
    position: relative;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding: 60px;
    overflow: hidden;
}

.hpc-swiper-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
}

.hpc-bg-office {
    background-image: url("../images/construction-site-3432379_960_720.png");
}

.hpc-bg-innovation {
    background-image: url("../images/john-thomas--TaCS9srkMQ-unsplash.jpg");
}

.hpc-bg-energy {
    background-image: url("../images/panel-2562239.jpg");
}

.hpc-bg-support {
    background-image: url("../images/h6-s5-bg-1.jpg");
}

.hpc-hero-content {
    position: relative;
    z-index: 2;
    max-width: 560px;
    color: var(--white);
    opacity: 0;
    visibility: hidden;
    transform: translateY(40px);
}

.hpc-hero-contact .swiper-slide-active .hpc-hero-content {
    opacity: 1;
    visibility: visible;
}

.hpc-subtitle {
    color: #f5b400;
    letter-spacing: 2px;
    margin-bottom: 14px;
    font-size: 12px;
    font-weight: 700;
}

.hpc-hero-content h1 {
    font-size: clamp(1.7rem, 3.2vw, 38px);
    line-height: 1.15;
    font-weight: 300;
    margin-bottom: 18px;
}

.hpc-hero-content h1 span {
    font-weight: 800;
}

.hpc-phone {
    font-size: clamp(1.45rem, 2.6vw, 32px);
    font-weight: 800;
    margin: 14px 0;
}

.hpc-desc {
    line-height: 1.65;
    opacity: 0.9;
    margin-bottom: 22px;
    font-size: 15px;
}

.hpc-tabs {
    display: flex;
    gap: 12px;
    margin: 28px 0 16px;
    flex-wrap: wrap;
}

.hpc-tab {
    padding: 10px 16px;
    cursor: pointer;
    position: relative;
    transition: var(--transition);
    font-weight: 800;
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    border: 0;
    backdrop-filter: blur(8px);
}

.hpc-tab:hover,
.hpc-tab.active {
    background: #f5b400;
    color: #000;
}

.hpc-tab::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 0;
    height: 2px;
    background: #f5b400;
    transition: width 0.4s;
}

.hpc-tab.active::after {
    width: 100%;
}

.hpc-address {
    font-size: 15px;
    line-height: 1.55;
}

@media (min-width: 1001px) {
    .hpc-hero-contact {
        min-height: 92vh;
    }

    .hpc-hero-contact .swiper {
        height: 92vh;
    }

    .hpc-swiper-slide {
        padding: 72px;
    }

    .hpc-hero-content {
        max-width: 600px;
    }

    .hpc-hero-content h1 {
        font-size: clamp(2rem, 3.4vw, 42px);
    }

    .hpc-phone {
        font-size: clamp(1.7rem, 2.8vw, 34px);
    }

    .hpc-desc,
    .hpc-address {
        font-size: 16px;
    }

    .hpc-tab {
        padding: 11px 18px;
    }

}

@media (max-width: 1000px) {
    .hpc-hero-contact {
        grid-template-columns: 1fr;
    }

    .hpc-hero-contact .swiper {
        height: 100vh;
    }

    .hpc-swiper-slide {
        padding: 50px 30px;
    }

}

@media (max-width: 560px) {
    .hpc-hero-contact .swiper {
        height: auto;
        min-height: 720px;
    }

    .hpc-swiper-slide {
        min-height: 720px;
        padding: 42px 22px;
    }

    .hpc-tabs {
        gap: 12px;
    }

    .hpc-tab {
        padding: 12px 14px;
        font-size: 0.8rem;
    }
}

/* ==================== FORMULAIRE CONTACT ==================== */
.hfm-contact-hero {
    width: 100%;
    min-height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: clamp(34px, 4vw, 58px);
    padding: 60px 3% 45px;
    background: #1b2a2f;
}

.hfm-form-panel {
    width: 100%;
    background: var(--white);
    border-radius: 35px;
    padding: clamp(18px, 2vw, 28px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

.hfm-contact-box {
    background: var(--white);
    padding: clamp(32px, 4vw, 54px);
    border-radius: 24px;
    box-shadow: none;
    display: grid;
    grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
    gap: 46px;
    align-items: start;
}

.hfm-contact-title {
    text-align: left;
    margin-bottom: 30px;
}

.hfm-contact-title h2 {
    font-size: clamp(2.2rem, 5vw, 3rem);
    color: #0d1b2a;
    margin-bottom: 15px;
    font-weight: 800;
}

.hfm-contact-title p {
    color: #6b7280;
    font-size: 1.1rem;
    line-height: 1.7;
}

.hfm-contact-info {
    height: 100%;
    padding: 28px;
    border-radius: 24px;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border: 1px solid rgba(0, 66, 82, 0.08);
    box-shadow: var(--shadow-sm);
}

.hfm-info-card {
    display: flex;
    gap: 16px;
    padding: 18px 0;
    border-top: 1px solid rgba(0, 66, 82, 0.1);
}

.hfm-info-card i {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(252, 195, 10, 0.14);
    color: var(--primary-color);
    font-size: 1.25rem;
}

.hfm-info-card h3 {
    color: #0d1b2a;
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.hfm-info-card p {
    color: #4b5563;
    line-height: 1.65;
    margin: 0;
}

.hfm-info-list {
    list-style: none;
    padding: 0;
    margin: 18px 0 0;
}

.hfm-info-list li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    color: #1f2937;
    line-height: 1.6;
    margin-bottom: 10px;
}

.hfm-info-list i {
    color: var(--primary-color);
    margin-top: 4px;
}

.hfm-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.hfm-full {
    grid-column: 1 / -1;
}

.hfm-input-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hfm-input-group label {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0d1b2a;
}

.hfm-contact-box input,
.hfm-contact-box textarea,
.hfm-contact-box select {
    width: 100%;
    padding: 18px 20px;
    border-radius: 16px;
    border: 2px solid #e5e7eb;
    background: var(--white);
    font-size: 16px;
    outline: none;
    transition: var(--transition);
}

.hfm-contact-box textarea {
    min-height: 180px;
    resize: none;
}

.hfm-contact-box input:focus,
.hfm-contact-box textarea:focus,
.hfm-contact-box select:focus {
    border-color: #f4c000;
    box-shadow: 0 0 0 4px rgba(244, 192, 0, 0.12);
}

.hfm-form-actions {
    margin-top: 30px;
}

.hfm-submit-btn {
    width: 100%;
    border: none;
    padding: 20px;
    border-radius: 60px;
    background: #dbba33;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    color: #000000;
    display: block;
    visibility: visible;
    opacity: 1;
    z-index: 10;
    box-shadow: 0 8px 25px rgb(107, 128, 165);
}

.hfm-submit-btn span,
.hfm-submit-btn i {
    position: relative;
    z-index: 1;
}

.hfm-submit-btn:hover {
    transform: translateY(-5px);
    background: #2d76a0;
}

.hfm-submit-btn i {
    margin-left: 10px;
}

@media (max-width: 992px) {
    .hfm-form-panel {
        width: 100%;
    }

    .hfm-contact-box {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hfm-form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .hfm-contact-hero {
        padding: 60px 20px;
        gap: 32px;
    }

    .hfm-form-panel {
        padding: 10px;
        border-radius: 24px;
    }

    .hfm-contact-box {
        padding: 30px 22px;
        border-radius: 24px;
    }
}

/* ==================== PAGE CONTACT ==================== */
.contact-page-hero {
    margin-top: 80px;
    min-height: 420px;
    display: flex;
    align-items: center;
    background:
        linear-gradient(135deg, rgba(0, 66, 82, 0.88), rgba(32, 43, 49, 0.82)),
        url("../images/Consulting.png") center/cover;
    color: var(--white);
}

.contact-page-hero-content {
    max-width: 820px;
}

.contact-page-hero h1 {
    font-size: clamp(2.4rem, 5vw, 4.6rem);
    line-height: 1.08;
    margin: 18px 0;
    font-weight: 900;
}

.contact-page-hero p {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.86);
}

.contact-info-section {
    background: #f5f5f7;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
    margin-bottom: 48px;
}

.contact-page-index-form {
    width: 100%;
}

.contact-page-index-form .hfm-form-panel {
    width: 100%;
}

.contact-info-section .hpc-hero-contact {
    min-height: 620px;
    border-radius: 28px;
    overflow: hidden;
    margin: 0 0 48px;
}

.contact-info-section .hpc-hero-contact .swiper {
    height: 620px;
}

.contact-info-section .hpc-swiper-slide {
    padding: clamp(42px, 5vw, 72px);
}

.contact-info-card {
    background: var(--white);
    border-radius: 18px;
    padding: 28px 24px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0, 66, 82, 0.08);
}

.contact-info-card i {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(252, 195, 10, 0.18);
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 18px;
}

.contact-info-card h3 {
    color: var(--dark-color);
    margin-bottom: 10px;
    font-size: 1.12rem;
}

.contact-info-card p,
.contact-info-card a {
    color: var(--text-light);
    line-height: 1.7;
    text-decoration: none;
}

.contact-page-wrapper {
    display: grid;
    grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
    gap: 42px;
    align-items: start;
}

.contact-page-details,
.contact-page-form {
    background: var(--white);
    border-radius: 24px;
    padding: clamp(28px, 4vw, 46px);
    box-shadow: var(--shadow-md);
}

.contact-page-details h2 {
    color: var(--dark-color);
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    line-height: 1.2;
    margin: 14px 0 18px;
}

.contact-page-details p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 24px;
}

.contact-page-details ul {
    list-style: none;
}

.contact-page-details li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 12px;
    color: var(--text-color);
    line-height: 1.6;
}

.contact-page-details li i {
    color: var(--primary-color);
    margin-top: 4px;
}

.contact-page-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.contact-page-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-bottom: 18px;
}

.contact-page-form label {
    color: var(--dark-color);
    font-weight: 700;
}

.contact-page-form input,
.contact-page-form textarea {
    width: 100%;
    border: 1px solid #d9dde3;
    border-radius: 14px;
    padding: 15px 16px;
    font-family: inherit;
    font-size: 0.98rem;
    outline: none;
    transition: var(--transition-fast);
    background: var(--white);
}

.contact-page-form textarea {
    min-height: 160px;
    resize: vertical;
}

.contact-page-form input:focus,
.contact-page-form textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(252, 195, 10, 0.16);
}

.contact-page-submit {
    width: 100%;
    border: none;
    border-radius: 999px;
    padding: 16px 22px;
    background: var(--primary-color);
    color: var(--dark-color);
    font-weight: 800;
    cursor: pointer;
    transition: var(--transition);
}

.contact-page-submit:hover {
    transform: translateY(-3px);
    background: var(--primary-dark);
}

@media (max-width: 1024px) {
    .contact-info-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .contact-page-wrapper {
        grid-template-columns: 1fr;
    }

    .contact-info-section .hpc-hero-contact {
        min-height: auto;
    }

    .contact-info-section .hpc-hero-contact .swiper {
        height: 520px;
    }
}

@media (max-width: 768px) {
    .contact-page-hero {
        margin-top: 70px;
        min-height: 360px;
    }
}

@media (max-width: 560px) {
    .contact-info-grid,
    .contact-page-form .form-row {
        grid-template-columns: 1fr;
    }

    .contact-info-card,
    .contact-page-details,
    .contact-page-form {
        border-radius: 18px;
    }

    .contact-info-section .hpc-hero-contact {
        border-radius: 20px;
        margin-bottom: 36px;
    }

    .contact-info-section .hpc-hero-contact .swiper {
        height: auto;
        min-height: 620px;
    }
}

/* ==================== NEWSLETTER ==================== */
/* Couleurs: secondaire, gris foncé, blanc, primaire */
.newsletter {
    background: linear-gradient(135deg, var(--secondary-color), var(--dark-color));
    text-align: center;
}

.newsletter.section-padding {
    padding-top: 40px;
}

.newsletter-content h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--white);
}

.newsletter-content p {
    color: rgba(255, 255, 255, 0.8);
}

.newsletter-form {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.newsletter-form input {
    padding: 15px 25px;
    width: 350px;
    border: none;
    border-radius: 50px;
    font-family: inherit;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 768px) {
    .newsletter-form input { width: 100%; padding: 12px 20px; }
    .newsletter-form button { width: 100%; padding: 12px; }
}

.newsletter-form input:focus {
    outline: none;
    box-shadow: 0 0 0 3px var(--primary-color);
}

.newsletter-form button {
    padding: 15px 35px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    color: var(--dark-color);
}

.newsletter-form button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ==================== FOOTER ==================== */
/* Couleurs: gris foncé, blanc, primaire */
.footer {
    background: #003b5c;
    color: var(--white);
    padding: clamp(70px, 8vw, 130px) 0 clamp(40px, 5vw, 70px);
    margin-top: 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(320px, 0.98fr) repeat(3, max-content) minmax(0, 0.02fr);
    column-gap: clamp(30px, 4vw, 64px);
    row-gap: clamp(34px, 4vw, 56px);
    align-items: start;
    max-width: 100%;
    margin: 0 auto;
}

.footer-col {
    min-width: 0;
}

@media (min-width: 1101px) {
    .footer-col:not(.footer-brand) {
        justify-self: end;
        text-align: left;
    }
}

.footer-logo span {
    font-size: clamp(1.8rem, 2.8vw, 2.6rem);
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1;
}

.footer-logo .footer-logo-highlight {
    color: var(--primary-color);
}

.footer-col p {
    color: var(--white);
    margin-top: clamp(28px, 3vw, 42px);
    font-size: clamp(1rem, 1.15vw, 1.18rem);
    line-height: 1.9;
}

.footer-col h4 {
    margin-bottom: clamp(28px, 3vw, 46px);
    position: relative;
    padding-bottom: 12px;
    font-size: clamp(1rem, 1.15vw, 1.25rem);
    font-weight: 800;
    color: var(--white);
    text-transform: uppercase;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 48px;
    height: 3px;
    background: var(--primary-color);
    display: block;
}

.footer-col ul { list-style: none; }
.footer-col ul li {
    margin-bottom: clamp(18px, 2vw, 28px);
    font-size: clamp(1rem, 1.15vw, 1.18rem);
    line-height: 1.55;
}

.footer-col ul li a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-col ul li a:hover {
    color: var(--primary-color);
    transform: translateX(4px);
}

.footer-col ul li i {
    margin-right: 10px;
    color: var(--primary-color);
}

.footer-copy {
    color: var(--white) !important;
    max-width: 100%;
    margin: clamp(40px, 5vw, 70px) auto 0 !important;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: clamp(0.9rem, 1vw, 1rem) !important;
    line-height: 1.4 !important;
    text-align: center;
}

.footer-social {
    display: flex;
    gap: 14px;
    margin-top: 24px;
}

.footer-social a {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--dark-color);
    transform: translateY(-3px);
}

@media (max-width: 1280px) {
    .footer-grid {
        grid-template-columns: minmax(280px, 0.98fr) repeat(3, max-content) minmax(0, 0.02fr);
        column-gap: 24px;
    }
}

@media (max-width: 1100px) {
    .footer-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 32px 18px;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 56px 0 34px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 34px 22px;
        text-align: left;
    }

    .footer-col p {
        margin-top: 22px;
    }

    .footer-brand,
    .footer-other-links {
        grid-column: auto;
    }

    .footer-logo span {
        font-size: clamp(1.9rem, 8vw, 2.6rem);
    }

    .footer-social {
        margin-top: 20px;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 48px 0 28px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 30px 18px;
    }

    .footer-col h4 {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }

    .footer-col ul li {
        font-size: 0.92rem;
        margin-bottom: 16px;
    }

    .footer-col p {
        font-size: 0.95rem;
    }
}

/* ==================== SCROLL TO TOP ==================== */
/* Couleurs: primaire, primaire-foncé */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 998;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
}

@media (max-width: 768px) {
    .scroll-to-top { width: 40px; height: 40px; bottom: 20px; right: 20px; }
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    background: var(--primary-dark);
}

.scroll-to-top i {
    color: var(--dark-color);
    font-size: 1.2rem;
}

/* ==================== FORM MESSAGES ==================== */
.form-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 8px;
    display: none;
}

.form-message.success {
    display: block;
    background: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.form-message.error {
    display: block;
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 992px) {
    .container {
        padding: 0 20px;
    }
}

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

/* ==================== PRINT STYLES ==================== */
@media print {
    #header,
    .nav-btn,
    .scroll-to-top,
    .newsletter,
    .footer-social {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
}

/* ==================== ANIMATIONS GLOBALES ==================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== PARTENAIRES - LOGOS EN COULEUR ==================== */
.partenaires-grid .partenaire-logo img,
.partenaire-logo img {
    filter: none !important;
    -webkit-filter: none !important;
    /* fallback to explicit zero grayscale */
    filter: grayscale(0%) !important;
    opacity: 1 !important;
    transition: filter 0.3s ease, opacity 0.3s ease;
    display: block;
    max-width: 100%;
    height: auto;
}
