/* styles.css */

/* ==========================================
   VARIABLES ET RESET - STYLE "DARK WOOD"
   ========================================== */

:root {
    /* Palette sombre et bois */
    --color-bg: #0e0e0e;
    /* Fond général très sombre */
    --color-bg-card: #1a1a1a;
    /* Fond des cartes */
    --color-bg-light: #ffffff;
    /* Fond blanc pour cartes claires */
    --color-bg-warm: #202020;
    /* Fond chaud clair */
    --color-bg-info: #202020;
    /* Fond bleu clair pour infos */
    --color-bg-warning: #202020;
    /* Fond orange clair pour avertissements */
    --color-bg-success: #202020;
    /* Fond vert clair pour succès */
    --color-bg-gray-light: #f5f5f5;
    /* Fond gris très clair */
    --color-bg-dark-subtle: #101010;
    /* Fond sombre subtil */

    --color-text: #f0f0f0;
    /* Texte principal blanc cassé */
    --color-text-muted: #cccccc;
    /* Texte secondaire */
    --color-text-dark: #333333;
    /* Texte sombre pour fonds clairs */
    --color-text-light: #d8d8d8;
    /* Texte clair pour fonds sombres */

    --color-wood: #8B4513;
    /* Marron bois (SaddleBrown) */
    --color-wood-dark: #5e2f0d;
    /* Bois foncé pour hover/active */
    --color-wood-light: #eda583;
    /* Bois clair (Sienna) */

    --color-accent: #FFD700;
    /* Jaune/Or pour les touches */
    --color-highlight: #ffebb5;
    /* Jaune très clair pour les reflets */

    --color-primary: #8B4513;
    /* Alias pour color-wood */
    --color-primary-dark: #5e2f0d;
    /* Alias pour color-wood-dark */
    --color-secondary: #3d5a4f;
    /* Vert foncé secondaire */
    --color-gray: #999999;
    /* Gris moyen */
    --color-warm: #363636;
    /* Alias pour bg-warm */

    --font-primary: 'Playfair Display', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --transition: all 0.3s ease;

    /* Ombres */
    --shadow-soft: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-strong: 0 10px 20px rgba(0, 0, 0, 0.5);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
}

/* ==========================================
   UTILITAIRES
   ========================================== */

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

.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    color: var(--color-wood-light);
    position: relative;
    padding-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--color-accent);
}

/* ==========================================
   BOUTONS
   ========================================== */

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    /* Coins légèrement arrondis */
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
}

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

.btn-primary:hover {
    background-color: var(--color-wood-light);
    border-color: var(--color-wood-light);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-accent);
    border-color: var(--color-accent);
}

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

.btn-block {
    display: block;
    width: 100%;
}

/* ==========================================
   NAVIGATION
   ========================================== */

.navbar {
    background-color: #000000;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--color-wood);
    box-shadow: var(--shadow-strong);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--color-text);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
}

.logo-img {
    height: 70px; /* ajuste selon ton header */
    width: auto;
    display: block;
}


.logo span {
    color: var(--color-accent);
}

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

.nav-link {
    color: var(--color-text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

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

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

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

.burger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.burger span {
    width: 25px;
    height: 3px;
    background-color: var(--color-accent);
    transition: var(--transition);
}

/* ==========================================
   HERO SECTION
   ========================================== */

.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('images/hero-bg.jpg');
    /* Assurez-vous d'avoir une image ou supprimez l'url si pas d'image */
    background-size: cover;
    background-position: center;
    background-color: #1a1a1a;
    /* Fallback */
    color: var(--color-text);
    padding: 150px 0;
    text-align: center;
    border-bottom: 4px solid var(--color-wood);
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--color-text);
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 2px 2px 4px #000;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 40px;
    color: var(--color-text-muted);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-logo {
    max-width: 555px;
    width: 100%;
    height: auto;
    margin-bottom: 24px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-logo {
        max-width: 280px;
    }
}

/* ==========================================
   SECTION PRÉSENTATION
   ========================================== */

.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    align-items: center;
}

.profile-img {
    width: 100%;
    max-width: 350px;
    border-radius: 4px;
    border: 3px solid var(--color-wood);
    box-shadow: var(--shadow-strong);
}

.about-text p {
    margin-bottom: 20px;
    color: var(--color-text-muted);
    font-size: 1.05rem;
}

/* ==========================================
   SECTION FORMATIONS (GRID)
   ========================================== */

/* Styles pour .formation-icon-img déplacés vers la section "ICÔNES IMAGES DANS LES CARDS FORMATION" (ligne ~1358) */

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

.formation-card {
    position: relative;
    height: 250px;
    border: 3px solid #a7a408a6;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-soft);
}


.formation-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-strong);
}

/* Image de fond de la carte */
.formation-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.formation-card:hover .formation-bg {
    transform: scale(1.1);
}

/* Overlay sombre sur l'image */
.formation-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.3) 0%,
            rgba(0, 0, 0, 0.7) 100%);
    transition: background 0.3s ease;
}

.formation-card:hover .formation-bg::after {
    background: linear-gradient(to bottom,
            rgba(139, 69, 19, 0.4) 0%,
            rgba(0, 0, 0, 0.85) 100%);
}

/* Contenu de la carte */
.formation-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    color: white;
}

.formation-card h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.formation-card p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
    font-size: 1rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

/* Description détaillée (cachée par défaut) */
.formation-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    margin-bottom: 15px;
}

.formation-card:hover .formation-details {
    max-height: 200px;
}

.formation-details p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
}

/* Bouton "En savoir plus" */
.formation-card .btn {
    align-self: flex-start;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.formation-card:hover .btn {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================
   ANCIENS STYLES (pour compatibilité)
   ========================================== */

/* Suppression de l'ancien style d'icône emoji */
.formation-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    /* On retire les emojis si demandé, ou on les garde si c'était juste le style "dessin" */
    /* Pour l'instant on garde les emoji unicode, c'est pas vraiment du "dessin" */
}

.formation-card h3 {
    color: var(--color-text);
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.formation-card p {
    color: var(--color-text-muted);
    margin-bottom: 25px;
}

/* SUPPRIMÉ - Définition dupliquée déplacée plus bas */


/* ==========================================
   PAGE DÉTAIL FORMATION
   ========================================== */

.breadcrumb {
    padding: 20px 0;
    background-color: #111;
    border-bottom: 1px solid #222;
    margin-bottom: 40px;
}

.breadcrumb a {
    color: var(--color-wood-light);
    text-decoration: none;
}

.breadcrumb span {
    color: var(--color-text-muted);
}

.separator {
    margin: 0 10px;
    color: var(--color-text-muted);
}

.formation-header {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 50px;
    border-bottom: 2px solid var(--color-wood);
    padding-bottom: 30px;
}

.formation-icon-large {
    font-size: 4rem;
    background-color: var(--color-bg-card);
    padding: 20px;
    border-radius: 50%;
    border: 2px solid var(--color-wood);
}

.formation-title-block h1 {
    font-size: 2.5rem;
    color: var(--color-text);
    margin-bottom: 10px;
}

.formation-ref {
    color: var(--color-accent);
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 5px;
}

.formation-subtitle {
    color: var(--color-text-muted);
    font-size: 1.2rem;
}

.formation-content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.content-block {
    margin-bottom: 40px;
    background-color: var(--color-bg-card);
    padding: 30px;
    border-radius: 6px;
    border-left: 3px solid var(--color-wood);
}

.content-block h2 {
    color: var(--color-wood-light);
    margin-bottom: 20px;
    font-size: 1.5rem;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

.intro-text {
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--color-text);
}

.objectives-list,
.program-list {
    list-style: none;
}

.objectives-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    color: var(--color-text-muted);
}

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

/* Accordéon Programme */
.accordion-item {
    margin-bottom: 10px;
    border: 1px solid #333;
    border-radius: 4px;
    overflow: hidden;
}

.accordion-header {
    background-color: #222;
    padding: 15px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.accordion-header:hover {
    background-color: #2a2a2a;
}

.accordion-header h3,
.accordion-header h4 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--color-text);
}

.accordion-icon {
    color: var(--color-accent);
    font-weight: bold;
    font-size: 1.2rem;
}

.accordion-content {
    /* Cache par défaut via JS ou CSS si pas de JS, ici on laisse visible ou on gère */
    /* Pour simplifier en CSS pur on pourrait utiliser details/summary mais ici c'est div */
    /* On assume que le JS gère le display ou max-height */
    display: none;
    padding: 20px;
    background-color: #1a1a1a;
    border-top: 1px solid #333;
    color: var(--color-text-muted);
}

.accordion-content.active {
    display: block;
}

/* Options cartes */
.option-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.option-card {
    background-color: #222;
    padding: 20px;
    border-radius: 4px;
    text-align: center;
    border: 1px solid #333;
}

.option-card h3,
.option-card h4 {
    color: var(--color-wood-light);
    margin: 10px 0;
}

/* Sidebar */
.info-card,
.cta-card,
.related-card {
    background-color: var(--color-bg-card);
    padding: 25px;
    border-radius: 6px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-soft);
}

.info-card h3,
.cta-card h3,
.related-card h3,
.cta-card h4 {
    color: var(--color-wood-light);
    margin-bottom: 20px;
    font-size: 1.2rem;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #333;
}

.info-label {
    color: var(--color-text-muted);
}

.info-value {
    color: var(--color-text);
    font-weight: bold;
    text-align: right;
}

.related-list {
    list-style: none;
}

.related-list li {
    margin-bottom: 10px;
}

.related-list a {
    color: var(--color-accent);
    text-decoration: none;
    transition: var(--transition);
}

.related-list a:hover {
    color: var(--color-wood-light);
    padding-left: 5px;
}

/* ==========================================
   ACTUALITÉS & CONTACT
   ========================================== */

.actualite-card {
    background-color: var(--color-bg-card);
    padding: 25px;
    border-left: 4px solid var(--color-wood);
    border-radius: 4px;
}

.actualite-date {
    color: var(--color-accent);
    font-size: 0.9rem;
    margin-bottom: 10px;
    font-weight: bold;
}

.contact-form {
    background-color: var(--color-bg-card);
    padding: 40px;
    border-radius: 6px;
    border-top: 4px solid var(--color-wood);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--color-text);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background-color: #2a2a2a;
    border: 1px solid #444;
    color: var(--color-text);
    border-radius: 4px;
}

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

/* ==========================================
   FOOTER
   ========================================== */

.footer {
    background-color: #050505;
    padding: 60px 0 20px;
    border-top: 4px solid var(--color-wood);
    color: var(--color-text-muted);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3,
.footer-section h4 {
    color: var(--color-wood-light);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-links {
    list-style: none;
}

.footer-links li a,
.footer-section p a {
    color: var(--color-text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links li a:hover,
.footer-section p a:hover {
    color: var(--color-accent);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #222;
    padding-top: 20px;
    font-size: 0.9rem;
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        right: -100%;
        top: 70px;
        /* hauteur navbar */
        flex-direction: column;
        background-color: #000;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.5);
        padding: 20px 0;
    }

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

    .logo {
        z-index: 1001;
        /* Pour rester au dessus si besoin */
    }

    .burger {
        display: flex;
    }

    .formation-content-grid {
        grid-template-columns: 1fr;
    }

    .formation-header {
        flex-direction: column;
        text-align: center;
    }

    .about-content {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   UTILITY CLASSES FOR BACKGROUNDS & TEXT
   ========================================== */

/* Background utilities */
.bg-light {
    background: var(--color-bg-light) !important;
}

.bg-warm {
    background: var(--color-bg-warm) !important;
}

.bg-info {
    background: var(--color-bg-info) !important;
}

.bg-warning {
    background: var(--color-bg-warning) !important;
}

.bg-success {
    background: var(--color-bg-success) !important;
}

.bg-gray-light {
    background: var(--color-bg-gray-light) !important;
}

.bg-dark-subtle {
    background: var(--color-bg-dark-subtle) !important;
}

/* Text color utilities */
.text-dark {
    color: var(--color-text-dark) !important;
}

.text-light {
    color: var(--color-text-light) !important;
}

.text-white {
    color: #ffffff !important;
}

.text-muted {
    color: var(--color-text-muted) !important;
}

.text-primary {
    color: var(--color-primary) !important;
}

.text-accent {
    color: var(--color-accent) !important;
}

/* Combined card styles for light backgrounds */
.card-light {
    background: var(--color-bg-light);
    color: var(--color-text-dark);
    padding: 24px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.card-light h3,
.card-light h4 {
    color: var(--color-primary);
}

.card-light p,
.card-light ul,
.card-light li {
    color: var(--color-text-dark);
}

/* Info boxes */
.info-box {
    padding: 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    margin-top: 12px;
}

.info-box-dark {
    background: var(--color-bg-dark-subtle);
    color: var(--color-text);
}

.info-box-warning {
    background: var(--color-bg-warning);
    color: var(--color-text-dark);
}

.info-box-success {
    background: var(--color-bg-success);
    color: var(--color-text-dark);
}

/* ==========================================
   TEAM BUILDING PAGE SPECIFIC STYLES
   ========================================== */

/* Timeline step badges */
.timeline-step-badge {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: var(--shadow-md);
}

.timeline-step-badge-1 {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
}

.timeline-step-badge-2 {
    background: linear-gradient(135deg, var(--color-accent) 0%, #bf8040 100%);
}

.timeline-step-badge-3 {
    background: linear-gradient(135deg, var(--color-secondary) 0%, #2d4a3f 100%);
}

.timeline-step-badge-4 {
    background: linear-gradient(135deg, #FF6B6B 0%, #C92A2A 100%);
}

.timeline-step-badge-5 {
    background: linear-gradient(135deg, #845EC2 0%, #5B3A9D 100%);
}

/* Timeline content */
.timeline-content {
    flex: 1;
    padding-top: 8px;
}

.timeline-title {
    margin: 0 0 8px 0;
    color: var(--color-primary);
}

.timeline-list {
    margin: 8px 0;
    color: var(--color-text);
    line-height: 1.8;
}

/* Benefit cards */
.benefit-card {
    display: flex;
    gap: 20px;
    padding: 24px;
    background: var(--color-bg-light);
    color: var(--color-text-dark);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.benefit-card-primary {
    border-left: 4px solid var(--color-primary);
}

.benefit-card-accent {
    border-left: 4px solid var(--color-accent);
}

.benefit-card-secondary {
    border-left: 4px solid var(--color-secondary);
}

.benefit-card-special {
    border-left: 4px solid #FF6B6B;
}

.benefit-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.benefit-title {
    color: var(--color-primary);
    margin: 0 0 8px 0;
}

.benefit-text {
    margin: 0;
    color: var(--color-text-dark);
}

/* Option cards */
.option-card-light {
    padding: 20px;
    background: var(--color-bg-light);
    color: var(--color-text-dark);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.option-card-primary {
    border-left: 3px solid var(--color-primary);
}

.option-card-accent {
    border-left: 3px solid var(--color-accent);
}

.option-card-secondary {
    border-left: 3px solid var(--color-secondary);
}

.option-card-purple {
    border-left: 3px solid #845EC2;
}

.option-title {
    margin: 0 0 12px 0;
    color: var(--color-primary);
}

.option-list {
    margin: 0;
    line-height: 1.8;
    color: var(--color-text-dark);
}

/* Testimonial cards */
.testimonial-card {
    padding: 28px;
    background: var(--color-bg-light);
    color: var(--color-text-dark);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.testimonial-card-primary {
    border-left: 4px solid var(--color-primary);
}

.testimonial-card-secondary {
    border-left: 4px solid var(--color-secondary);
}

.testimonial-card-accent {
    border-left: 4px solid var(--color-accent);
}

.testimonial-stars {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    color: #FFB800;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 16px;
    color: var(--color-text-dark);
    line-height: 1.8;
    font-size: 1.05rem;
}

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

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
}

.testimonial-avatar-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
}

.testimonial-avatar-secondary {
    background: linear-gradient(135deg, var(--color-secondary) 0%, #2d4a3f 100%);
}

.testimonial-avatar-accent {
    background: linear-gradient(135deg, var(--color-accent) 0%, #bf8040 100%);
}

.testimonial-name {
    margin: 0;
    font-weight: 600;
    color: var(--color-primary);
}

.testimonial-role {
    margin: 0;
    font-size: 0.9rem;
    color: var(--color-gray);
}

/* FAQ items */
.faq-item {
    margin-bottom: 24px;
    padding: 20px;
    background: var(--color-bg-light);
    color: var(--color-text-dark);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.faq-item:last-child {
    margin-bottom: 0;
}

.faq-question {
    color: var(--color-primary);
    margin: 0 0 12px 0;
}

.faq-answer {
    margin: 0;
    color: var(--color-text-dark);
    line-height: 1.7;
}

/* Special colored headings */
.heading-blue {
    color: #1976D2;
}

.heading-green {
    color: #2e7d32;
}

.text-blue-dark {
    color: #0d47a1;
}

/* Material list items */
.material-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.material-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.material-icon {
    font-size: 1.3rem;
}

/* CTA cards in sidebar */
.cta-card-warm {
    background: var(--color-warm);
    color: var(--color-text-dark);
    margin-top: 24px;
    border: 2px solid var(--color-primary);
}

.cta-card-success {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    color: var(--color-text-dark);
    margin-top: 24px;
    border: 2px dashed var(--color-secondary);
}

.cta-card-accent {
    background: linear-gradient(135deg, var(--color-accent) 0%, #bf8040 100%);
    color: white;
    margin-top: 24px;
}

.cta-card-accent h4 {
    color: white;
}

.cta-card-accent p {
    color: white;
}

.cta-title-dark {
    color: var(--color-text-dark);
}

.cta-text-dark {
    color: var(--color-text-dark);
}

.cta-text-secondary {
    color: var(--color-secondary);
}


/* ============================================
   CARROUSEL HERO
   ============================================ */
.hero-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

/* Filtre sombre sur chaque slide */
.carousel-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    /* Filtre noir à 50% */
    z-index: 1;
}

.carousel-slide.active {
    opacity: 1;
}

/* S'assurer que le hero-overlay est au-dessus */
.hero-overlay {
    position: relative;
    z-index: 2;
}


/* ============================================
   BOUTON EFFET BOIS
   ============================================ */
.btn-wood {
    background: linear-gradient(135deg, #8B4513 0%, #A0522D 50%, #8B4513 100%);
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    box-shadow:
        0 4px 8px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -2px 0 rgba(0, 0, 0, 0.2);
    border: 2px solid #654321;
    position: relative;
    overflow: hidden;
}

.btn-wood::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-wood:hover::before {
    left: 100%;
}

.btn-wood:hover {
    background: linear-gradient(135deg, #A0522D 0%, #8B4513 50%, #A0522D 100%);
    transform: translateY(-2px);
    box-shadow:
        0 6px 12px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -2px 0 rgba(0, 0, 0, 0.3);
}

/* ============================================
   SÉPARATIONS OBLIQUES
   ============================================ */
.section {
    position: relative;
    padding: 80px 0;
}

.section-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    overflow: hidden;
}

.section-divider::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit;
}

.section-divider-right::before {
    transform: skewY(-5deg);
    transform-origin: bottom right;
}

.section-divider-left::before {
    transform: skewY(4deg);
    transform-origin: bottom left;
}

/* Alternance des couleurs */
.section-wood {
    position: relative;
    background-image: url('images/wood.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Effet parallaxe */
}

/* Overlay sombre pour lisibilité du texte */
.section-wood::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    /* Filtre noir à 65% */
    z-index: 0;
}

/* S'assurer que le contenu est au-dessus de l'overlay */
.section-wood .container {
    position: relative;
    z-index: 1;
}

/* Texte blanc pour contraste */
.section-wood,
.section-wood h2,
.section-wood h3,
.section-wood p,
.section-wood .section-title {
    color: white;
}

.section-wood .section-title::after {
    background: var(--color-accent);
    /* Garde la ligne dorée */
}

/* Ajustement pour le bouton dans les sections bois */
.section-wood .btn-primary {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.section-light {
    background: #f8f9fa;
}

.section-dark {
    background: var(--color-dark);
    color: white;
}

.section-dark .section-title {
    color: #d6d6d6;
}

/* Divider prend la couleur de la section suivante */
.section-wood .section-divider::before {
    background: #0e0e0e;
}

.section-light .section-divider::before {
    background: #0e0e0e;
}

/* ============================================
   ICÔNES IMAGES DANS LES CARDS FORMATION
   ============================================ */
.formation-icon-img {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    overflow: hidden;
    border-radius: 50%;
    border: 3px solid var(--color-wood);
    background-color: #222;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.formation-icon-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Effet hover sur les cartes */
.formation-card:hover .formation-icon-img {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(139, 69, 19, 0.3);
    border-color: var(--color-accent);
}

/* Variantes */
.formation-icon-img.square {
    border-radius: 10px;
}

.formation-icon-img.large {
    width: 150px;
    height: 150px;
}

/* ============================================
   ANIMATIONS SCROLL
   ============================================ */
.fade-in-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Délais progressifs pour effet cascade */
.fade-in-card:nth-child(1) {
    transition-delay: 0.1s;
}

.fade-in-card:nth-child(2) {
    transition-delay: 0.2s;
}

.fade-in-card:nth-child(3) {
    transition-delay: 0.3s;
}

.fade-in-card:nth-child(4) {
    transition-delay: 0.4s;
}

.fade-in-card:nth-child(5) {
    transition-delay: 0.5s;
}

.fade-in-card:nth-child(6) {
    transition-delay: 0.6s;
}


.form-message {
    display: none;
    text-align: center;
    font-weight: 500;
}


/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .section-divider {
        height: 40px;
    }

    .section-divider-right::before {
        transform: skewY(-1deg);
    }

    .section-divider-left::before {
        transform: skewY(1deg);
    }
}