/* =============================================
   Variables CSS - Palette Kaki et Gris Foncé
   ============================================= */
:root {
    --kaki-primary: #6b7f5d;
    --kaki-light: #8a9f7a;
    --kaki-dark: #4a5c3f;
    --grey-dark: #2d2d2d;
    --grey-medium: #4a4a4a;
    --grey-light: #6b6b6b;
    --grey-lighter: #e5e5e5;
    --white: #ffffff;
    --black: #1a1a1a;
    
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.2);
}

/* =============================================
   Reset et Base
   ============================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--grey-dark);
    background-color: var(--white);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* =============================================
   Navigation
   ============================================= */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--white);
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) var(--spacing-md);
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--kaki-dark);
}

.logo img {
    height: 50px;
    width: auto;
    border-radius: 8px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: var(--spacing-md);
    position: relative;
}

.nav-links > li {
    position: relative;
}

.nav-links a {
    color: var(--grey-medium);
    font-weight: 500;
    padding: var(--spacing-xs) var(--spacing-sm);
    position: relative;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-links > li > a .arrow {
    font-size: 0.8rem;
    transition: var(--transition);
}

.nav-links > li:hover > a .arrow {
    transform: rotate(180deg);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 2px;
    background: var(--kaki-primary);
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--kaki-primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    transform: translateX(-50%) scaleX(1);
}

/* Dropdown Menu */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    border-radius: 8px;
    padding: var(--spacing-sm) 0;
    min-width: 250px;
    z-index: 1000;
    margin-top: 5px;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.dropdown:hover .dropdown-menu,
.dropdown-menu:hover,
.dropdown.show-dropdown .dropdown-menu {
    display: block;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu a {
    display: block;
    padding: var(--spacing-sm) var(--spacing-md);
    color: var(--grey-dark);
    transition: var(--transition);
}

.dropdown-menu a::after {
    display: none;
}

.dropdown-menu a:hover {
    background: var(--grey-lighter);
    color: var(--kaki-primary);
    padding-left: calc(var(--spacing-md) + 10px);
}

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

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--grey-dark);
    transition: var(--transition);
}

/* =============================================
   Hero Section
   ============================================= */
.hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--kaki-dark) 0%, var(--grey-dark) 100%);
    margin-top: 70px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.05)" d="M0,96L48,112C96,128,192,160,288,165.3C384,171,480,149,576,128C672,107,768,85,864,90.7C960,96,1056,128,1152,138.7C1248,149,1344,139,1392,133.3L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    background-position: bottom;
    animation: wave 15s ease-in-out infinite;
}

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

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(107, 127, 93, 0.3) 0%, transparent 50%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
}

.hero .highlight {
    color: var(--kaki-light);
    position: relative;
    display: inline-block;
}

.hero .highlight::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 100%;
    height: 15px;
    background: rgba(138, 159, 122, 0.3);
    z-index: -1;
    animation: highlightExpand 0.8s ease-out 1s forwards;
    transform: scaleX(0);
    transform-origin: left;
}

@keyframes highlightExpand {
    to { transform: scaleX(1); }
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: var(--spacing-lg);
    color: rgba(255, 255, 255, 0.9);
}

.cta-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-20px); }
    60% { transform: translateX(-50%) translateY(-10px); }
}

.mouse {
    width: 25px;
    height: 40px;
    border: 2px solid var(--white);
    border-radius: 15px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--white);
    border-radius: 2px;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(15px); }
}

/* =============================================
   Buttons
   ============================================= */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    text-align: center;
}

.btn-primary {
    background: var(--kaki-primary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(107, 127, 93, 0.3);
}

.btn-primary:hover {
    background: var(--kaki-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(107, 127, 93, 0.4);
}

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

.btn-secondary:hover {
    background: var(--white);
    color: var(--kaki-dark);
    transform: translateY(-3px);
}

/* =============================================
   Animations
   ============================================= */
.fade-in {
    opacity: 0;
    animation: fadeIn 0.8s ease-out 0.2s forwards;
}

.fade-in-delay {
    opacity: 0;
    animation: fadeIn 0.8s ease-out 0.5s forwards;
}

.fade-in-delay-2 {
    opacity: 0;
    animation: fadeIn 0.8s ease-out 0.8s forwards;
}

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

/* =============================================
   Section Styling
   ============================================= */
.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--grey-dark);
    margin-bottom: var(--spacing-sm);
}

.underline {
    width: 80px;
    height: 4px;
    background: var(--kaki-primary);
    margin: 0 auto;
    border-radius: 2px;
}

.section-header p {
    margin-top: var(--spacing-md);
    color: var(--grey-medium);
    font-size: 1.1rem;
}

/* =============================================
   About Preview Section
   ============================================= */
.about-preview {
    padding: var(--spacing-xl) 0;
    background: var(--grey-lighter);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.feature-card {
    background: var(--white);
    padding: var(--spacing-lg);
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.feature-card .icon {
    width: 70px;
    height: 70px;
    margin: 0 auto var(--spacing-md);
    color: var(--kaki-primary);
}

.feature-card h3 {
    font-size: 1.5rem;
    color: var(--grey-dark);
    margin-bottom: var(--spacing-sm);
}

.feature-card p {
    color: var(--grey-medium);
    line-height: 1.7;
}

/* =============================================
   Formations Preview
   ============================================= */
.formations-preview {
    padding: var(--spacing-xl) 0;
}

.formations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-md);
    margin: var(--spacing-lg) 0;
}

.formation-card {
    background: var(--white);
    border: 2px solid var(--grey-lighter);
    border-radius: 16px;
    padding: var(--spacing-lg);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.formation-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--kaki-primary);
    transform: scaleX(0);
    transition: var(--transition);
}

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

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

.formation-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-md) auto;
    color: var(--white);
    transition: var(--transition);
}

.formation-icon svg {
    width: 50px;
    height: 50px;
}

.formation-icon.mindset {
    background: linear-gradient(135deg, #6b7f5d, #8a9f7a);
}

.formation-icon.entrepreneuriat {
    background: linear-gradient(135deg, #4a5c3f, #6b7f5d);
}

.formation-icon.digital {
    background: linear-gradient(135deg, #6b7f5d, #8a9f7a);
}

.formation-card:hover .formation-icon {
    transform: scale(1.1) rotate(5deg);
}

.formation-card h3 {
    font-size: 1.8rem;
    color: var(--grey-dark);
    margin-bottom: var(--spacing-sm);
}

.formation-card p {
    color: var(--grey-medium);
    margin-bottom: var(--spacing-md);
    line-height: 1.7;
}

.learn-more {
    color: var(--kaki-primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
}

.learn-more:hover {
    gap: 10px;
    color: var(--kaki-dark);
}

.text-center {
    text-align: center;
    margin-top: var(--spacing-lg);
}

/* =============================================
   CTA Section
   ============================================= */
.cta-section {
    background: linear-gradient(135deg, var(--kaki-primary), var(--kaki-dark));
    padding: var(--spacing-xl) 0;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 8s ease-in-out infinite;
}

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

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-md);
    opacity: 0.9;
}

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

.cta-section .btn:hover {
    background: var(--grey-lighter);
    transform: translateY(-3px) scale(1.05);
}

/* =============================================
   Footer
   ============================================= */
.footer {
    background: var(--grey-dark);
    color: var(--white);
    padding: var(--spacing-xl) 0 var(--spacing-md);
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: var(--spacing-sm);
}

.footer-logo img {
    height: 40px;
    border-radius: 6px;
}

.footer-col h4 {
    color: var(--kaki-light);
    margin-bottom: var(--spacing-md);
    font-size: 1.1rem;
}

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

.footer-col ul li {
    margin-bottom: var(--spacing-xs);
}

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

.footer-col ul li a:hover {
    color: var(--kaki-light);
    padding-left: 5px;
}

.footer-col p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* =============================================
   Page Header
   ============================================= */
.page-header {
    background: linear-gradient(135deg, var(--kaki-dark), var(--grey-dark));
    color: var(--white);
    padding: 120px 0 80px;
    text-align: center;
    margin-top: 70px;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* =============================================
   Formation Detail Pages
   ============================================= */
.formation-detail {
    padding: var(--spacing-xl) 0;
}

.formation-detail.alt {
    background: var(--grey-lighter);
}

.formation-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.formation-content.reverse {
    direction: rtl;
}

.formation-content.reverse > * {
    direction: ltr;
}

.formation-info {
    padding: var(--spacing-md);
}

.category-badge {
    display: inline-block;
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    color: var(--white);
}

.mindset-badge {
    background: var(--kaki-primary);
}

.entrepreneuriat-badge {
    background: var(--kaki-dark);
}

.digital-badge {
    background: var(--grey-dark);
}

.formation-info h2 {
    font-size: 2.5rem;
    color: var(--grey-dark);
    margin-bottom: var(--spacing-sm);
}

.formation-subtitle {
    font-size: 1.2rem;
    color: var(--kaki-primary);
    font-weight: 600;
    margin-bottom: var(--spacing-lg);
}

.formation-description h3 {
    color: var(--grey-dark);
    margin: var(--spacing-md) 0 var(--spacing-sm);
    font-size: 1.3rem;
}

.formation-description p {
    color: var(--grey-medium);
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
}

.check-list {
    list-style: none;
    margin: var(--spacing-md) 0;
}

.check-list li {
    padding-left: 30px;
    margin-bottom: var(--spacing-sm);
    position: relative;
    color: var(--grey-medium);
}

.check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--kaki-primary);
    font-weight: bold;
    font-size: 1.2rem;
}

.formation-meta {
    display: flex;
    gap: var(--spacing-md);
    margin: var(--spacing-lg) 0;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--grey-medium);
}

.meta-item svg {
    width: 24px;
    height: 24px;
    color: var(--kaki-primary);
}

.formation-image {
    height: 500px;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.formation-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    transition: var(--transition);
}

.formation-image:hover::before {
    transform: scale(1.05);
}

.mindset-bg::before {
    background-image: linear-gradient(rgba(107, 127, 93, 0.8), rgba(74, 92, 63, 0.9)), 
                      url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 400"><rect fill="%236b7f5d" width="400" height="400"/><g fill-opacity="0.1"><circle fill="%23fff" cx="100" cy="100" r="50"/><circle fill="%23fff" cx="300" cy="200" r="70"/><circle fill="%23fff" cx="200" cy="300" r="60"/></g></svg>');
}

.entrepreneuriat-bg::before {
    background-image: linear-gradient(rgba(74, 92, 63, 0.8), rgba(45, 45, 45, 0.9)), 
                      url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 400"><rect fill="%234a5c3f" width="400" height="400"/><g fill-opacity="0.1"><path fill="%23fff" d="M0,200 L200,0 L400,200 L200,400 Z"/></g></svg>');
}

.digital-bg::before {
    background-image: linear-gradient(rgba(45, 45, 45, 0.8), rgba(74, 74, 74, 0.9)), 
                      url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 400"><rect fill="%232d2d2d" width="400" height="400"/><g fill-opacity="0.1"><rect fill="%23fff" x="50" y="50" width="100" height="100"/><rect fill="%23fff" x="250" y="50" width="100" height="100"/><rect fill="%23fff" x="150" y="250" width="100" height="100"/></g></svg>');
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.3) 100%);
}

/* =============================================
   About Page
   ============================================= */
.story-section {
    padding: var(--spacing-xl) 0;
}

.story-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.story-text h2 {
    font-size: 2.5rem;
    color: var(--grey-dark);
    margin-bottom: var(--spacing-md);
}

.story-text p {
    color: var(--grey-medium);
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
    font-size: 1.1rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
}

.stat-card {
    background: var(--white);
    padding: var(--spacing-lg);
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow);
    border: 2px solid var(--grey-lighter);
    transition: var(--transition);
}

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

.stat-card h3 {
    font-size: 3rem;
    color: var(--kaki-primary);
    margin-bottom: var(--spacing-xs);
    font-weight: 700;
}

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

.values-section {
    padding: var(--spacing-xl) 0;
    background: var(--grey-lighter);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.value-card {
    background: var(--white);
    padding: var(--spacing-lg);
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.value-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto var(--spacing-md);
    background: var(--kaki-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition);
}

.value-card:hover .value-icon {
    transform: scale(1.1) rotate(360deg);
}

.value-card h3 {
    font-size: 1.5rem;
    color: var(--grey-dark);
    margin-bottom: var(--spacing-sm);
}

.value-card p {
    color: var(--grey-medium);
    line-height: 1.7;
}

.team-section {
    padding: var(--spacing-xl) 0;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.team-member {
    text-align: center;
    padding: var(--spacing-md);
}

.member-photo {
    width: 200px;
    height: 200px;
    margin: 0 auto var(--spacing-md);
    border-radius: 50%;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.team-member:hover .member-photo {
    transform: scale(1.05);
}

.photo-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--kaki-primary), var(--kaki-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 3rem;
    font-weight: bold;
}

.team-member h3 {
    font-size: 1.5rem;
    color: var(--grey-dark);
    margin-bottom: var(--spacing-xs);
}

.member-role {
    color: var(--kaki-primary);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.member-bio {
    color: var(--grey-medium);
    line-height: 1.7;
}

/* =============================================
   Contact Page
   ============================================= */
.contact-section {
    padding: var(--spacing-xl) 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: var(--spacing-xl);
}

.contact-form-wrapper h2,
.contact-info-wrapper h2 {
    font-size: 2rem;
    color: var(--grey-dark);
    margin-bottom: var(--spacing-lg);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.form-group label {
    color: var(--grey-dark);
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: var(--spacing-sm);
    border: 2px solid var(--grey-lighter);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--kaki-primary);
    box-shadow: 0 0 0 3px rgba(107, 127, 93, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-message {
    padding: var(--spacing-md);
    border-radius: 8px;
    margin-top: var(--spacing-md);
    display: none;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

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

.contact-info-card {
    background: var(--grey-lighter);
    padding: var(--spacing-lg);
    border-radius: 16px;
    height: fit-content;
}

.info-item {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.info-icon {
    width: 50px;
    height: 50px;
    background: var(--kaki-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    flex-shrink: 0;
}

.info-icon svg {
    width: 24px;
    height: 24px;
}

.info-item h3 {
    color: var(--grey-dark);
    margin-bottom: var(--spacing-xs);
    font-size: 1.1rem;
}

.info-item p {
    color: var(--grey-medium);
    line-height: 1.6;
}

.info-item a {
    color: var(--kaki-primary);
    font-weight: 600;
}

.info-item a:hover {
    text-decoration: underline;
}

.social-links {
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-lg);
    border-top: 2px solid rgba(0, 0, 0, 0.1);
}

.social-links h3 {
    color: var(--grey-dark);
    margin-bottom: var(--spacing-md);
}

.social-icons {
    display: flex;
    gap: var(--spacing-md);
}

.social-icon {
    width: 45px;
    height: 45px;
    background: var(--kaki-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--kaki-dark);
    transform: translateY(-3px) rotate(5deg);
}

.social-icon svg {
    width: 22px;
    height: 22px;
}

.map-section {
    height: 400px;
}

.map-placeholder {
    height: 100%;
    background: linear-gradient(135deg, var(--grey-lighter), var(--grey-light));
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-overlay {
    text-align: center;
    color: var(--grey-dark);
    background: rgba(255, 255, 255, 0.95);
    padding: var(--spacing-lg);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

.map-overlay p {
    font-size: 1.2rem;
    font-weight: 600;
}

/* =============================================
   Single Formation Page
   ============================================= */
.formation-single {
    padding: var(--spacing-xl) 0;
}

.formation-hero {
    height: 400px;
    border-radius: 16px;
    margin-bottom: var(--spacing-xl);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.formation-content-single {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--spacing-xl);
    align-items: start;
}

.formation-main h2 {
    font-size: 2rem;
    color: var(--grey-dark);
    margin: var(--spacing-lg) 0 var(--spacing-md);
}

.formation-main p {
    color: var(--grey-medium);
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
    font-size: 1.1rem;
}

.program-modules {
    margin: var(--spacing-lg) 0;
}

.module {
    background: var(--white);
    border: 2px solid var(--grey-lighter);
    border-radius: 12px;
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
    transition: var(--transition);
}

.module:hover {
    border-color: var(--kaki-primary);
    box-shadow: var(--shadow);
}

.module-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.module-number {
    background: var(--kaki-primary);
    color: var(--white);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
}

.module-header h3 {
    color: var(--grey-dark);
    font-size: 1.3rem;
    margin: 0;
}

.benefits-grid {
    display: grid;
    gap: var(--spacing-md);
    margin: var(--spacing-lg) 0;
}

.benefit-item {
    display: flex;
    gap: var(--spacing-md);
    align-items: start;
    padding: var(--spacing-md);
    background: var(--grey-lighter);
    border-radius: 8px;
}

.benefit-icon {
    width: 40px;
    height: 40px;
    background: var(--kaki-primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.benefit-item h4 {
    color: var(--grey-dark);
    margin-bottom: var(--spacing-xs);
    font-size: 1.1rem;
}

.benefit-item p {
    color: var(--grey-medium);
    margin: 0;
    font-size: 0.95rem;
}

.formation-sidebar {
    position: sticky;
    top: 90px;
    align-self: flex-start;
}

.sidebar-card {
    background: var(--white);
    border: 2px solid var(--grey-lighter);
    border-radius: 16px;
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
    box-shadow: var(--shadow);
}

.sidebar-card h3 {
    color: var(--grey-dark);
    margin-bottom: var(--spacing-md);
    font-size: 1.3rem;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid var(--grey-lighter);
}

.info-row:last-of-type {
    border-bottom: none;
}

.info-label {
    color: var(--grey-medium);
    font-weight: 500;
}

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

.price-tag {
    background: var(--grey-lighter);
    padding: var(--spacing-lg);
    border-radius: 12px;
    text-align: center;
    margin: var(--spacing-md) 0;
}

.price-label {
    display: block;
    color: var(--grey-medium);
    font-size: 0.9rem;
    margin-bottom: var(--spacing-xs);
}

.price {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--kaki-primary);
    margin-bottom: var(--spacing-xs);
}

.price-info {
    display: block;
    color: var(--grey-medium);
    font-size: 0.85rem;
}

.full-width {
    width: 100%;
    margin-bottom: var(--spacing-sm);
}

.session-date {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md);
    background: var(--grey-lighter);
    border-radius: 8px;
    margin-bottom: var(--spacing-sm);
}

.session-date .date {
    font-weight: 600;
    color: var(--grey-dark);
}

.session-date .places {
    font-size: 0.85rem;
    color: var(--kaki-primary);
}

.testimonials-section {
    padding: var(--spacing-xl) 0;
    background: var(--grey-lighter);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.testimonial-card {
    background: var(--white);
    padding: var(--spacing-lg);
    border-radius: 12px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}

.testimonial-text {
    color: var(--grey-medium);
    line-height: 1.7;
    font-style: italic;
    margin-bottom: var(--spacing-md);
    flex-grow: 1;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    margin-top: auto;
}

.testimonial-author strong {
    color: var(--grey-dark);
    font-size: 1.1rem;
}

.testimonial-author span {
    color: var(--grey-medium);
    font-size: 0.9rem;
}

/* =============================================
   Responsive Design
   ============================================= */
@media screen and (max-width: 968px) {
    .nav-links {
        position: fixed;
        right: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: var(--transition);
        box-shadow: var(--shadow-lg);
        padding: var(--spacing-md) 0;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .burger {
        display: flex;
    }
    
    .burger.active .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .burger.active .line2 {
        opacity: 0;
    }
    
    .burger.active .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .nav-links > li {
        width: 100%;
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        margin: 0;
        padding: 0;
        background: var(--grey-lighter);
        border-radius: 0;
        max-height: 0;
        overflow: hidden;
        opacity: 1;
        transform: none;
        pointer-events: auto;
    }

    .dropdown.active .dropdown-menu {
        max-height: 500px;
        padding: var(--spacing-sm) 0;
        transition: max-height 0.3s ease, padding 0.3s ease;
    }

    .dropdown > a .arrow {
        transition: var(--transition);
    }

    .dropdown.active > a .arrow {
        transform: rotate(180deg);
    }

    .hero {
        min-height: 60vh;
        padding: var(--spacing-lg) 0;
    }
    
    .hero h1 {
        font-size: 2rem;
        line-height: 1.3;
    }
    
    .hero p {
        font-size: 1rem;
    }

    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }

    .cta-buttons .btn {
        width: 100%;
    }

    .scroll-indicator {
        display: none;
    }
    
    .formation-content,
    .story-content,
    .contact-grid,
    .formation-content-single {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .formation-content.reverse {
        direction: ltr;
    }
    
    .formation-image {
        height: 300px;
        order: -1;
    }

    .formation-hero {
        height: 250px;
    }

    .formation-sidebar {
        position: static;
        order: -1;
    }

    .sidebar-card {
        margin-bottom: var(--spacing-lg);
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .features-grid,
    .formations-grid,
    .values-grid,
    .team-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

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

    .contact-form-wrapper {
        order: 1;
    }

    .contact-info-wrapper {
        order: 2;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .page-header {
        padding: 100px 0 60px;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .page-header p {
        font-size: 1rem;
    }

    .formation-info h2 {
        font-size: 1.8rem;
    }

    .module {
        padding: var(--spacing-md);
    }

    .module-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-sm);
    }

    .benefit-item {
        flex-direction: column;
        text-align: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
        text-align: center;
    }

    .footer-logo {
        justify-content: center;
    }

    .social-icons {
        justify-content: center;
    }
}

@media screen and (max-width: 600px) {
    :root {
        --spacing-xl: 3rem;
        --spacing-lg: 2rem;
    }

    .container {
        padding: 0 var(--spacing-sm);
    }

    .logo {
        font-size: 1.2rem;
    }

    .logo img {
        height: 40px;
    }

    .hero {
        min-height: 50vh;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .hero p {
        font-size: 0.9rem;
        margin-bottom: var(--spacing-md);
    }

    .hero .highlight::after {
        height: 10px;
        bottom: 5px;
    }
    
    .page-header {
        padding: 80px 0 40px;
    }

    .page-header h1 {
        font-size: 1.5rem;
    }

    .page-header p {
        font-size: 0.9rem;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }

    .feature-card,
    .formation-card,
    .value-card {
        padding: var(--spacing-md);
    }

    .formation-card h3,
    .feature-card h3,
    .value-card h3 {
        font-size: 1.3rem;
    }

    .formation-icon,
    .value-icon {
        width: 60px;
        height: 60px;
    }

    .formation-icon svg,
    .value-icon svg {
        width: 30px;
        height: 30px;
    }
    
    .cta-section h2 {
        font-size: 1.8rem;
    }

    .cta-section p {
        font-size: 1rem;
    }

    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    .formation-image {
        height: 200px;
    }

    .formation-hero {
        height: 200px;
    }

    .formation-info h2 {
        font-size: 1.5rem;
    }

    .formation-subtitle {
        font-size: 1rem;
    }

    .formation-main h2 {
        font-size: 1.5rem;
    }

    .formation-main p {
        font-size: 1rem;
    }

    .module-header h3 {
        font-size: 1.1rem;
    }

    .module-number {
        font-size: 0.8rem;
        padding: 5px 12px;
    }

    .check-list li {
        font-size: 0.9rem;
        padding-left: 25px;
    }

    .check-list li::before {
        font-size: 1rem;
    }

    .benefit-item h4 {
        font-size: 1rem;
    }

    .benefit-item p {
        font-size: 0.85rem;
    }

    .price {
        font-size: 2rem;
    }

    .price-info {
        font-size: 0.8rem;
    }

    .testimonial-card {
        padding: var(--spacing-md);
    }

    .testimonial-text {
        font-size: 0.9rem;
    }

    .testimonial-author strong {
        font-size: 1rem;
    }

    .testimonial-author span {
        font-size: 0.85rem;
    }

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

    .story-text p {
        font-size: 1rem;
    }

    .stat-card h3 {
        font-size: 2.5rem;
    }

    .stat-card p {
        font-size: 0.9rem;
    }

    .member-photo {
        width: 150px;
        height: 150px;
    }

    .photo-placeholder {
        font-size: 2rem;
    }

    .team-member h3 {
        font-size: 1.3rem;
    }

    .member-role {
        font-size: 0.9rem;
    }

    .member-bio {
        font-size: 0.9rem;
    }

    .contact-form-wrapper h2,
    .contact-info-wrapper h2 {
        font-size: 1.5rem;
    }

    .form-group label {
        font-size: 0.9rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 0.9rem;
        padding: 0.7rem;
    }

    .info-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: var(--spacing-sm);
    }

    .info-icon {
        width: 45px;
        height: 45px;
    }

    .info-item h3 {
        font-size: 1rem;
    }

    .info-item p {
        font-size: 0.9rem;
    }

    .social-icon {
        width: 40px;
        height: 40px;
    }

    .social-icon svg {
        width: 20px;
        height: 20px;
    }

    .map-section {
        height: 250px;
    }

    .map-overlay p {
        font-size: 1rem;
    }

    .footer {
        padding: var(--spacing-lg) 0 var(--spacing-md);
    }

    .footer-logo {
        font-size: 1.1rem;
    }

    .footer-logo img {
        height: 35px;
    }

    .footer-col h4 {
        font-size: 1rem;
    }

    .footer-col ul li {
        font-size: 0.9rem;
    }

    .footer-bottom p {
        font-size: 0.85rem;
    }

    .category-badge {
        font-size: 0.8rem;
        padding: 5px 15px;
    }
    
    .formation-meta {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .meta-item {
        font-size: 0.9rem;
    }

    .meta-item svg {
        width: 20px;
        height: 20px;
    }

    .info-row {
        font-size: 0.9rem;
    }

    .session-date {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .session-date .date {
        font-size: 0.9rem;
    }

    .session-date .places {
        font-size: 0.8rem;
    }
}

@media screen and (max-width: 480px) {
    .navbar .container {
        padding: var(--spacing-xs) var(--spacing-sm);
    }

    .logo {
        font-size: 1rem;
    }

    .logo img {
        height: 35px;
    }

    .hero h1 {
        font-size: 1.3rem;
    }

    .hero p {
        font-size: 0.85rem;
    }

    .page-header h1 {
        font-size: 1.3rem;
    }

    .section-header h2 {
        font-size: 1.3rem;
    }

    .cta-section h2 {
        font-size: 1.5rem;
    }

    .btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
    }

    .formation-card h3,
    .feature-card h3,
    .value-card h3 {
        font-size: 1.1rem;
    }

    .formation-card p,
    .feature-card p,
    .value-card p {
        font-size: 0.85rem;
    }

    .formation-icon,
    .value-icon {
        width: 50px;
        height: 50px;
    }

    .stat-card h3 {
        font-size: 2rem;
    }

    .price {
        font-size: 1.8rem;
    }
}

/* =============================================
   Utility Classes
   ============================================= */
.hidden {
    display: none;
}

.visible {
    display: block;
}

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

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

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