@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

/* Variables CSS - Charte graphique CETIM */
:root {
    --marine: #0F204C;
    --red: #E63946;
    --light-gray: #F4F5F7;
    --dark-gray: #333333;
    --white: #FFFFFF;
    --header-height: 80px;
    --transition: 0.3s ease-in-out;
}

/* Reset de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--dark-gray);
    background-color: var(--light-gray);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* =======================
   EN-TÊTE (HEADER)
   ======================= */
.header {
    position: sticky;
    top: 0;
    width: 100%;
    height: var(--header-height);
    background-color: var(--white);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo-text {
    font-size: 2rem;
    font-weight: 700;
    color: var(--marine);
    letter-spacing: 1px;
}

.logo-img {
    height: 48px;
    width: auto;
    display: block;
}

.header-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-weight: 500;
    color: var(--marine);
    padding: 10px 0;
    position: relative;
    transition: color var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--red);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background-color: var(--red);
    transition: width var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Sélecteur de Langue */
.language-selector {
    position: relative;
    margin-left: 20px;
}

.lang-btn {
    background: transparent;
    border: 2px solid var(--marine);
    color: var(--marine);
    padding: 8px 15px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all var(--transition);
}

.lang-btn:hover {
    background: var(--marine);
    color: var(--white);
}

.lang-icon {
    font-size: 0.8rem;
    transition: transform var(--transition);
}

.lang-btn[aria-expanded="true"] .lang-icon {
    transform: rotate(180deg);
}

.lang-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background-color: var(--white);
    border: 1px solid #ddd;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border-radius: 4px;
    min-width: 120px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition);
}

.lang-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: block;
    padding: 10px 15px;
    color: var(--marine);
    font-weight: 500;
    transition: background var(--transition);
}

.lang-option:hover {
    background-color: var(--light-gray);
    color: var(--red);
}

/* =======================
   HERO SECTION
   ======================= */
.hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    color: var(--white);
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slider .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: slideAnim 25s infinite;
    transform: scale(1.0);
}

/* 5 slides * 5s each = 25s total */
.hero-slider .slide:nth-child(1) { animation-delay: 0s; }
.hero-slider .slide:nth-child(2) { animation-delay: 5s; }
.hero-slider .slide:nth-child(3) { animation-delay: 10s; }
.hero-slider .slide:nth-child(4) { animation-delay: 15s; }
.hero-slider .slide:nth-child(5) { animation-delay: 20s; }

@keyframes slideAnim {
    0% {
        opacity: 0;
        transform: scale(1.0);
    }
    4% {
        opacity: 1;
    }
    20% {
        opacity: 1;
    }
    24% {
        opacity: 0;
        transform: scale(1.08); /* Effet zoom doux (Ken Burns) */
    }
    100% {
        opacity: 0;
        transform: scale(1.0);
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 32, 76, 0.85) 0%, rgba(51, 51, 51, 0.7) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    max-width: 800px;
    z-index: 3;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.2rem;
    font-weight: 300;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Boutons */
.btn {
    display: inline-block;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-primary {
    background-color: var(--red);
    color: var(--white);
    border: 2px solid var(--red);
}

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

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

.btn-outline:hover {
    background-color: var(--white);
    color: var(--marine);
}

.btn-secondary {
    background-color: var(--marine);
    color: var(--white);
    border: 2px solid var(--marine);
}

.btn-secondary:hover {
    background-color: var(--red);
    border-color: var(--red);
}

.btn-small {
    font-size: 0.95rem;
    padding: 10px 20px;
    display: inline-block;
    margin-top: 15px;
}

/* =======================
   ANIMATIONS JS AU SCROLL
   ======================= */
.animate-on-scroll {
    opacity: 0;
}

.animate-on-scroll.in-view {
    animation: fadeUpAnim 0.8s ease-out forwards;
}

@keyframes fadeUpAnim {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =======================
   SECTION À PROPOS & CHIFFRES CLÉS
   ======================= */
.about-preview {
    background-color: var(--light-gray);
    padding: 80px 20px;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
}

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

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

.section-header h2 {
    font-size: 2.2rem;
    color: var(--marine);
    margin-bottom: 20px;
}

.section-header p {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
    color: var(--dark-gray);
}

.stats-grid {
    display: grid;
    /* La grille devient responsive automatiquement sur petits écrans */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.stat-card {
    background-color: var(--white);
    padding: 40px 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform var(--transition), box-shadow var(--transition);
    height: 100%;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.stat-card h3 {
    font-size: 2.5rem;
    color: var(--marine);
    margin-bottom: 10px;
    font-weight: 700;
}

.stat-card p {
    font-size: 1rem;
    color: var(--dark-gray);
}

/* =======================
   SECTION NOS DOMAINES D'INTERVENTION
   ======================= */
.services-preview {
    background-color: var(--white);
    padding: 80px 20px;
}

.services-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.service-card {
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform var(--transition), box-shadow var(--transition);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

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

.service-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

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

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

.service-content {
    padding: 40px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-title {
    font-size: 1.8rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.service-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
}

.col-expertise .service-title::after {
    background-color: var(--red);
}

.col-assistance .service-title::after {
    background-color: var(--marine);
}

.service-title {
    font-size: 1.8rem;
    margin-bottom: 25px;
}

.col-expertise .service-title {
    color: var(--red);
}

.col-assistance .service-title {
    color: var(--marine);
}

.service-list {
    margin-bottom: 30px;
    flex-grow: 1;
}

.service-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.service-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1.5rem;
    line-height: 1.1;
}

.col-expertise .service-list li::before {
    color: var(--red);
}

.col-assistance .service-list li::before {
    color: var(--marine);
}

.service-link {
    font-weight: 700;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform var(--transition);
    align-self: flex-start;
}

.arrow {
    transition: transform var(--transition);
}

.service-link:hover .arrow {
    transform: translateX(5px);
}

.link-red {
    color: var(--red);
}

.link-blue {
    color: var(--marine);
}

/* =======================
   PAGE ASSISTANCE TECHNIQUE
   ======================= */
.page-header {
    background-color: var(--marine);
    padding: 80px 20px;
}

.page-header h1 {
    font-size: 2.8rem;
    color: var(--white);
    margin-bottom: 20px;
}

.page-header p {
    font-size: 1.2rem;
    color: var(--white);
    opacity: 0.9;
    max-width: 800px;
    margin: 0 auto;
}

/* Process Section */
.process-section {
    background-color: var(--white);
    padding: 80px 20px;
}

.process-steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
}

.process-step {
    flex: 1;
    min-width: 200px;
    max-width: 250px;
    text-align: center;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background-color: var(--red);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 auto 20px auto;
    box-shadow: 0 4px 10px rgba(230, 57, 70, 0.3);
}

.step-desc {
    font-size: 1.1rem;
    font-weight: 500;
}

.process-note {
    text-align: center;
    margin-top: 40px;
    font-style: italic;
    color: var(--dark-gray);
}

/* Galerie des Profils */
.profiles-gallery {
    background-color: var(--light-gray);
    padding: 80px 20px;
}

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

.profile-card {
    background-color: var(--white);
    padding: 40px 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-top: 4px solid var(--marine);
    transition: transform var(--transition);
}

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

.profile-card h3 {
    font-size: 1.5rem;
    color: var(--marine);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.profile-list {
    list-style: none;
    padding: 0;
}

.profile-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
}

.profile-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--red);
    font-weight: bold;
}

/* CTA Urgence */
.cta-urgence {
    background-color: var(--red);
    padding: 60px 20px;
    color: var(--white);
}

.cta-urgence h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    line-height: 1.4;
}

.btn-urgence {
    background-color: var(--white);
    color: var(--red);
    border: 2px solid var(--white);
    font-weight: 700;
}

.btn-urgence:hover {
    background-color: transparent;
    color: var(--white);
}

/* =======================
   PAGE EXPERTISE & AUDIT
   ======================= */
.header-expertise {
    background: linear-gradient(135deg, var(--red) 0%, var(--marine) 100%);
}

.expertise-services {
    background-color: var(--light-gray);
    padding: 80px 20px;
}

.expertise-block {
    margin-bottom: 60px;
}

.expertise-block:last-child {
    margin-bottom: 0;
}

.expertise-block-title {
    font-size: 2rem;
    color: var(--marine);
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #ddd;
}

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

.expertise-card {
    background-color: var(--white);
    padding: 40px 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform var(--transition), box-shadow var(--transition);
    position: relative;
    border-bottom: 4px solid transparent;
}

.expertise-card.border-marine:hover {
    border-bottom-color: var(--marine);
}

.expertise-card.border-red:hover {
    border-bottom-color: var(--red);
}

.expertise-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.expertise-card h3 {
    font-size: 1.4rem;
    color: var(--marine);
    margin-bottom: 15px;
}

.expertise-card p {
    color: var(--dark-gray);
    font-size: 1.05rem;
    margin-bottom: 15px;
}

.expertise-card .card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 20px;
    display: block;
}

.expertise-card .btn-secondary {
    display: inline-block;
}

/* FAQ Highlight (Contre-Expertise) */
.faq-highlight {
    background-color: var(--marine);
    color: var(--white);
    padding: 80px 20px;
}

.faq-container {
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

.faq-illu {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
}

.illu-placeholder {
    font-size: 6rem;
    background-color: rgba(255, 255, 255, 0.05);
    width: 200px;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    border: 2px dashed rgba(255,255,255,0.2);
}

.faq-logo {
    width: 220px;
    height: 220px;
    object-fit: contain;
    background-color: var(--white);
    border-radius: 50%;
    padding: 25px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    border: 4px solid rgba(255, 255, 255, 0.1);
    transition: transform var(--transition);
}

.faq-logo:hover {
    transform: scale(1.05);
}

.faq-content {
    flex: 2;
    min-width: 300px;
}

.faq-content h2 {
    font-size: 2.2rem;
    margin-bottom: 25px;
}

.faq-content p {
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 15px;
    opacity: 0.9;
}

.btn-faq {
    margin-top: 20px;
}

/* =======================
   PAGE CONTACT
   ======================= */
.header-contact {
    background-color: var(--marine);
}

.contact-section {
    background-color: var(--light-gray);
    padding: 80px 20px;
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-title {
    font-size: 2rem;
    color: var(--marine);
    margin-bottom: 30px;
}

.contact-details {
    margin-bottom: 40px;
}

.contact-details li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    font-size: 1.1rem;
    padding-left: 0;
}

.contact-details li::before {
    display: none; /* Override de certains styles globaux si nécessaire */
}

.contact-icon {
    font-size: 1.8rem;
    margin-right: 15px;
    margin-top: 5px;
}

.map-container {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
}

.contact-form-wrapper {
    flex: 1;
    min-width: 300px;
    background-color: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.contact-form .form-group {
    margin-bottom: 20px;
}

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

.required {
    color: var(--red);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    transition: border-color var(--transition);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--marine);
}

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

.btn-submit {
    width: 100%;
    background-color: var(--red);
    color: var(--white);
    border: none;
    font-size: 1.2rem;
    margin-top: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-submit:hover:not(:disabled) {
    background-color: var(--marine);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Bouton WhatsApp */
.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 18px 25px;
    margin-top: 25px;
    background: linear-gradient(135deg, #25D366 0%, #20ba5c 100%);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    text-decoration: none;
}

.btn-whatsapp:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
    background: linear-gradient(135deg, #20ba5c 0%, #1a9d50 100%);
}

.btn-whatsapp:active {
    transform: translateY(-1px);
}

.whatsapp-icon {
    font-size: 1.4rem;
}

/* Message de succès */
.form-success {
    text-align: center;
    padding: 40px 20px;
}

.form-success.hidden {
    display: none;
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.form-success h3 {
    font-size: 1.8rem;
    color: var(--marine);
    margin-bottom: 10px;
}

.form-success p {
    font-size: 1.1rem;
    color: var(--dark-gray);
}

/* Menu Hamburger par défaut caché sur desktop */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle .bar {
    width: 100%;
    height: 3px;
    background-color: var(--marine);
    border-radius: 3px;
    transition: all var(--transition);
}

/* =======================
   RESPONSIVITÉ & MENU MOBILE
   ======================= */
@media (max-width: 768px) {
    /* Typographie & Espacements */
    .section-header h2 { font-size: 1.8rem; }
    .hero-content h1 { font-size: 2.2rem; }
    .stat-card h3 { font-size: 2rem; }
    .service-col { padding: 30px 20px; }

    /* Menu Mobile Setup */
    .menu-toggle {
        display: flex; /* Afficher le bouton Hamburger */
    }

    .header-nav {
        display: none; /* Masqué par défaut */
    }

    /* Quand la classe .active est ajoutée par JS */
    .header-nav.active {
        display: flex;
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background-color: var(--white);
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        padding: 20px;
        flex-direction: column;
        align-items: center;
        z-index: 999;
    }

    .nav-list {
        flex-direction: column;
        width: 100%;
        text-align: center;
        gap: 15px;
    }

    .nav-link {
        display: block;
        padding: 10px 0;
        font-size: 1.2rem;
    }

    /* Animation de l'icône Hamburger (Transformation en 'X') */
    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
}

/* =======================
   PIED DE PAGE (FAT FOOTER)
   ======================= */
.footer {
    background-color: var(--marine);
    color: #cbd5e1; /* Gris bleuté clair */
    padding: 60px 0 0 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding: 0 20px 40px 20px;
}

.footer-col h4 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--red);
}

.footer-logo {
    font-size: 2.2rem;
    color: var(--white);
    margin-bottom: 15px;
    font-weight: 700;
}

.footer-year {
    margin-top: 15px;
    font-size: 0.9rem;
    opacity: 0.7;
}

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

.footer-col ul li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.footer-col ul li a {
    transition: color var(--transition);
}

.footer-col ul li a:hover {
    color: var(--red);
}

.footer-contact .icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.footer-bottom {
    background-color: #0b1736; /* Plus sombre que le footer */
    text-align: center;
    padding: 20px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* =======================
   PAGE A PROPOS (REPRODUCTION 2024)
   ======================= */

.about-presentation {
    padding: 100px 20px;
    background-color: var(--white);
}

.presentation-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 60px;
}

.dg-image-container {
    flex: 1;
    position: relative;
    max-width: 450px;
}

.dg-image-container img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 20px 20px 0px var(--light-gray);
    display: block;
}

.dg-image-container::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    width: 60px;
    height: 60px;
    border-top: 5px solid var(--red);
    border-left: 5px solid var(--red);
    z-index: 2;
}

.presentation-content {
    flex: 1.5;
}

.presentation-content h2 {
    font-size: 2.5rem;
    color: var(--marine);
    margin-bottom: 25px;
    line-height: 1.2;
}

.presentation-content p {
    font-size: 1.15rem;
    margin-bottom: 20px;
    color: var(--dark-gray);
}

.highlight-role {
    background-color: var(--light-gray);
    padding: 30px;
    border-left: 5px solid var(--red);
    font-weight: 500;
    font-style: italic;
    font-size: 1.2rem;
    color: var(--marine);
    margin-top: 30px;
}

/* Domaines d'intervention */
.about-domains {
    background-color: var(--light-gray);
    padding: 100px 20px;
}

.domains-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 50px;
}

.domain-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform var(--transition);
}

.domain-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.domain-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    display: block;
}

.domain-card h4 {
    font-size: 1.2rem;
    color: var(--marine);
    margin-bottom: 15px;
}

/* Missions */
.about-missions {
    padding: 100px 20px;
    background-color: var(--white);
}

.missions-container {
    max-width: 1000px;
    margin: 0 auto;
}

.mission-list {
    margin-top: 50px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
}

.mission-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    border-radius: 8px;
    background-color: var(--light-gray);
    transition: background-color var(--transition);
}

.mission-item:hover {
    background-color: #e2e8f0;
}

.mission-check {
    color: var(--red);
    font-weight: bold;
    font-size: 1.3rem;
}

/* Responsivité About */
@media (max-width: 992px) {
    .presentation-container {
        flex-direction: column;
        text-align: center;
    }

    .dg-image-container {
        margin: 0 auto 40px auto;
    }

    .highlight-role {
        text-align: left;
    }
}

@media (max-width: 600px) {
    .mission-list {
        grid-template-columns: 1fr;
    }
}

/* =======================
   PAGES DÉTAIL SERVICE
   ======================= */
.service-detail {
    padding: 80px 20px;
    background-color: var(--white);
}

.service-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.service-intro .service-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    object-fit: cover;
}

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

.service-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--dark-gray);
}

/* Service Approach Section */
.service-approach {
    padding: 80px 20px;
    background-color: var(--light-gray);
    background: linear-gradient(135deg, #f4f5f7 0%, #fafbfc 100%);
}

.service-approach h2 {
    font-size: 2.2rem;
    color: var(--marine);
    margin-bottom: 30px;
    text-align: center;
}

.service-approach > .container {
    max-width: 1000px;
}

.service-approach > .container > p {
    font-size: 1.1rem;
    text-align: center;
    color: var(--dark-gray);
    margin-bottom: 40px;
}

.service-approach h3 {
    font-size: 1.6rem;
    color: var(--red);
    margin: 40px 0 25px 0;
}

.service-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.service-list li {
    padding-left: 40px;
    position: relative;
    font-size: 1.05rem;
    color: var(--dark-gray);
    line-height: 1.7;
}

.service-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--red);
    font-weight: bold;
    font-size: 1.3rem;
}

/* Service Benefits Section */
.service-benefits {
    padding: 80px 20px;
    background-color: var(--white);
}

.service-benefits h2 {
    font-size: 2.2rem;
    color: var(--marine);
    margin-bottom: 60px;
    text-align: center;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.benefit-item {
    background: linear-gradient(135deg, #fafbfc 0%, #f4f5f7 100%);
    padding: 35px;
    border-radius: 12px;
    border-left: 5px solid var(--red);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform var(--transition), box-shadow var(--transition);
}

.benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(230, 57, 70, 0.15);
    border-left-color: var(--marine);
}

.benefit-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: var(--red);
    color: var(--white);
    border-radius: 50%;
    font-weight: bold;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.benefit-item p {
    font-size: 1.05rem;
    color: var(--dark-gray);
    line-height: 1.7;
}

/* Service CTA Section */
.service-cta {
    padding: 80px 20px;
    background: linear-gradient(135deg, var(--marine) 0%, #163a6f 100%);
    text-align: center;
}

.service-cta h2 {
    font-size: 2.2rem;
    color: var(--white);
    margin-bottom: 30px;
}

/* Responsivité Service Pages */
@media (max-width: 768px) {
    .service-intro {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .service-text h2 {
        font-size: 1.6rem;
    }

    .service-approach h2,
    .service-benefits h2,
    .service-cta h2 {
        font-size: 1.8rem;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .service-detail,
    .service-approach,
    .service-benefits,
    .service-cta {
        padding: 50px 20px;
    }
}

/* =======================
   PAGES FORMATIONS
   ======================= */
.formations-hero {
    position: relative;
    height: 400px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.formations-hero .hero-image {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.formations-hero .hero-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(15, 32, 76, 0.7);
    z-index: 1;
}

.formations-hero .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    animation: heroFadeUp 0.8s ease-out;
}

.formations-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 15px;
    font-weight: 700;
    letter-spacing: 2px;
}

.formations-hero p {
    font-size: 1.5rem;
    opacity: 0.95;
}

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

/* Intro section */
.formations-intro {
    padding: 60px 20px;
    background-color: var(--white);
}

.intro-text {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.intro-text h2 {
    font-size: 2.5rem;
    color: var(--marine);
    margin-bottom: 25px;
}

.intro-text p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--dark-gray);
}

/* Formations Grid */
.formations-grid {
    padding: 80px 20px;
    background: linear-gradient(135deg, #fafbfc 0%, #f4f5f7 100%);
}

.section-title {
    font-size: 2.8rem;
    color: var(--marine);
    text-align: center;
    margin-bottom: 70px;
    position: relative;
    padding-bottom: 30px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--red);
    border-radius: 2px;
}

.formations-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.formation-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: cardEnter 0.6s ease-out forwards;
}

@keyframes cardEnter {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.formation-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 50px rgba(230, 57, 70, 0.2);
}

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

.formation-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease-out;
}

.formation-card:hover .formation-image img {
    transform: scale(1.15) rotate(2deg);
}

.formation-image .image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(230, 57, 70, 0.2);
    transition: opacity 0.4s ease;
}

.formation-card:hover .image-overlay {
    opacity: 0;
}

.formation-content {
    padding: 35px 25px;
}

.formation-content h3 {
    font-size: 1.6rem;
    color: var(--marine);
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

.formation-card:hover .formation-content h3 {
    color: var(--red);
}

.formation-subtitle {
    font-size: 1.05rem;
    color: var(--dark-gray);
    font-weight: 500;
    margin-bottom: 20px;
    line-height: 1.6;
}

.formation-skills {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.formation-card:hover .formation-skills {
    max-height: 300px;
}

.formation-skills p {
    font-weight: 600;
    color: var(--red);
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.formation-skills ul {
    list-style: none;
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--dark-gray);
}

.formation-skills li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 6px;
}

.formation-skills li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--red);
    font-weight: bold;
}

/* Formations Why Section */
.formations-why {
    padding: 80px 20px;
    background-color: var(--white);
}

.formations-why h2 {
    font-size: 2.5rem;
    color: var(--marine);
    text-align: center;
    margin-bottom: 60px;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.why-item {
    text-align: center;
    padding: 40px 30px;
    background: linear-gradient(135deg, #fafbfc 0%, #f4f5f7 100%);
    border-radius: 12px;
    transition: all 0.4s ease;
    animation: whyItemEnter 0.6s ease-out forwards;
}

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

.why-item:nth-child(1) {
    animation-delay: 0.1s;
}

.why-item:nth-child(2) {
    animation-delay: 0.2s;
}

.why-item:nth-child(3) {
    animation-delay: 0.3s;
}

.why-item:nth-child(4) {
    animation-delay: 0.4s;
}

.why-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(230, 57, 70, 0.15);
    border-top: 4px solid var(--red);
}

.why-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    animation: iconBounce 2s infinite;
}

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

.why-item h3 {
    font-size: 1.4rem;
    color: var(--marine);
    margin-bottom: 15px;
}

.why-item p {
    font-size: 1rem;
    color: var(--dark-gray);
    line-height: 1.7;
}

/* Formations CTA */
.formations-cta {
    padding: 80px 20px;
    background: linear-gradient(135deg, var(--marine) 0%, #163a6f 100%);
    text-align: center;
}

.formations-cta h2 {
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 20px;
    animation: ctaText 0.8s ease-out;
}

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

.formations-cta p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 35px;
}

/* Responsivité Formations */
@media (max-width: 768px) {
    .formations-hero h1 {
        font-size: 2.2rem;
    }

    .formations-hero p {
        font-size: 1.1rem;
    }

    .intro-text h2 {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }

    .formations-cards {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .why-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .formations-why h2,
    .formations-cta h2 {
        font-size: 1.8rem;
    }

    .formation-skills {
        max-height: none;
    }

    .formation-content {
        padding: 25px 20px;
    }
}

/* CPET Membership Section */
.cpet-membership {
    display: flex;
    align-items: center;
    gap: 30px;
    margin: 40px 0;
    padding: 30px;
    background-color: var(--light-gray);
    border-radius: 12px;
    border: 1px solid #ddd;
    transition: transform var(--transition);
}

.cpet-membership:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.cpet-logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
    background-color: var(--white);
    border-radius: 50%;
    padding: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.cpet-text {
    flex: 1;
}

.cpet-text strong {
    display: block;
    font-size: 1.2rem;
    color: var(--marine);
    margin-bottom: 10px;
}

.cpet-text p {
    margin-bottom: 0 !important;
    font-size: 1.05rem;
}

@media (max-width: 600px) {
    .cpet-membership {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
}

/* Partners Slider Section */
.partners-section {
    padding: 80px 0;
    background-color: var(--white);
    overflow: hidden;
    border-top: 1px solid #eee;
}

.partners-title {
    text-align: center;
    font-size: 2rem;
    color: var(--marine);
    margin-bottom: 50px;
    font-weight: 700;
}

.partners-container {
    display: flex;
    overflow: hidden;
    user-select: none;
    mask-image: linear-gradient(
        to right,
        hsl(0 0% 0% / 0),
        hsl(0 0% 0% / 1) 10%,
        hsl(0 0% 0% / 1) 90%,
        hsl(0 0% 0% / 0)
    );
}

.partners-slider {
    display: flex;
    align-items: center;
    gap: 60px;
    padding: 20px 0;
    flex-shrink: 0;
    animation: slideInfinite 40s linear infinite;
}

.partners-slider:hover {
    animation-play-state: paused;
}

.partner-logo {
    height: 60px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all var(--transition);
}

.partner-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

@keyframes slideInfinite {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(calc(-100% - 60px));
    }
}

/* Responsivité Slider */
@media (max-width: 768px) {
    .partners-section {
        padding: 50px 0;
    }
    .partner-logo {
        height: 45px;
    }
    .partners-title {
        font-size: 1.6rem;
        margin-bottom: 30px;
    }
}

