/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #faf9f8;
    color: #1e2b2f;
    line-height: 1.5;
    overflow-x: hidden;
    cursor: none;
}

@media (max-width: 768px) {
    body {
        cursor: auto;
    }
}

/* ===== VARIABLES ===== */
:root {
    --primary: #4a9b8c;
    --primary-light: #9bcdc0;
    --primary-dark: #2c5e54;
    --accent: #f7b731;
    --accent-light: #ffe5b4;
    --gray-50: #f8f9fa;
    --gray-100: #f1f3f5;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-600: #6c757d;
    --gray-800: #343a40;
    --white: #ffffff;
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 40px -15px rgba(0, 0, 0, 0.15);
    --border-radius: 1.5rem;
    --border-radius-sm: 1rem;
    --border-radius-xs: 0.8rem;
}

/* ===== CURSEUR PERSONNALISÉ ===== */
.cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
}

.cursor.hover {
    transform: translate(-50%, -50%) scale(1.5);
    background-color: var(--primary);
    border-color: #ffffff;
    mix-blend-mode: normal;
}

/* ===== FORMES D'ARRIÈRE-PLAN ===== */
.blob {
    position: fixed;
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, rgba(74, 155, 140, 0.1) 0%, rgba(247, 183, 49, 0.05) 100%);
    border-radius: 50%;
    filter: blur(60px);
    z-index: -1;
    animation: floatBlob 20s infinite alternate ease-in-out;
}

.blob-1 {
    top: 10%;
    left: -5%;
}

.blob-2 {
    bottom: 10%;
    right: -5%;
    width: 500px;
    height: 500px;
    animation-delay: -5s;
}

@keyframes floatBlob {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(5%, 5%) scale(1.1); }
}

/* ===== CONTAINER ===== */
.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 6rem 0;
    position: relative;
}

/* ===== TYPOGRAPHIE ===== */
h1, h2, h3 {
    font-weight: 600;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    letter-spacing: -0.01em;
}

h3 {
    font-size: clamp(1.3rem, 2.5vw, 1.6rem);
}

.section-tag {
    display: inline-block;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary-dark);
    background: rgba(44, 94, 84, 0.1);
    padding: 0.4rem 1rem;
    border-radius: 100px;
    margin-bottom: 1rem;
    border: 1px solid rgba(44, 94, 84, 0.2);
    font-weight: 600;
}

/* ===== HEADER ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 1.5rem 2rem;
    transition: background 0.3s ease, backdrop-filter 0.3s ease, padding 0.3s ease;
}

header.scrolled {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    box-shadow: var(--shadow-sm);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-dark);
}

.logo-wrapper {
    background: white;
    padding: 5px 10px;
    border-radius: 50px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.logo-img {
    height: 45px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--gray-800);
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a.active {
    color: var(--primary-dark);
    font-weight: 600;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.menu-toggle span {
    width: 30px;
    height: 3px;
    background: var(--gray-800);
    border-radius: 3px;
    transition: 0.3s;
}

/* ===== BOUTONS ===== */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    text-align: center;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 10px 20px -8px rgba(74, 155, 140, 0.4);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 15px 25px -8px rgba(44, 94, 84, 0.5);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary-dark);
}

.btn-outline:hover {
    background: rgba(74, 155, 140, 0.05);
    transform: translateY(-2px);
}

/* ===== HERO ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    margin-bottom: 1.5rem;
}

.hero-title span {
    color: var(--primary);
    position: relative;
    display: inline-block;
}

.hero-title span::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background: rgba(247, 183, 49, 0.3);
    z-index: -1;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--gray-600);
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ===== PHILOSOPHIE ===== */
.philosophie-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* ===== SERVICES GRID ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid rgba(0, 0, 0, 0.02);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(74, 155, 140, 0.05) 0%, rgba(247, 183, 49, 0.02) 100%);
    z-index: 0;
    transition: 0.3s;
}

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
    animation: subtleWiggle 4s infinite;
}

@keyframes subtleWiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(5deg); }
    75% { transform: rotate(-5deg); }
}

.service-card h3,
.service-card p {
    position: relative;
    z-index: 1;
}

.service-card p {
    color: var(--gray-600);
    margin: 1rem 0;
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    position: relative;
    z-index: 1;
}

.service-tag {
    background: var(--gray-100);
    padding: 0.3rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--gray-600);
    transition: 0.3s;
}

.service-card:hover .service-tag {
    background: var(--primary-light);
    color: var(--primary-dark);
}

/* ===== SERVICES DETAIL PAGE ===== */
.services-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.service-detail-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
    transition: 0.3s;
}

.service-detail-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-list {
    list-style: none;
    margin: 1.5rem 0;
}

.service-list li {
    padding: 0.5rem 0;
    border-bottom: 1px dashed var(--gray-200);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.service-list li::before {
    content: '✓';
    color: var(--primary);
    font-weight: bold;
}

/* ===== TIMELINE ===== */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 3rem auto 0;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-light), var(--primary));
}

.timeline-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.6s ease;
}

.timeline-item.revealed {
    opacity: 1;
    transform: translateX(0);
}

.timeline-dot {
    width: 60px;
    height: 60px;
    background: var(--white);
    border: 2px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    position: relative;
    z-index: 2;
    background: white;
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.timeline-content {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-sm);
    flex-grow: 1;
}

.timeline-content h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--primary-dark);
}

/* ===== TÉMOIGNAGES ===== */
.testimonials {
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
    border-radius: var(--border-radius);
    padding: 4rem;
    position: relative;
    overflow: hidden;
}

.testimonial-slider {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
}

.testimonial-slide {
    text-align: center;
    opacity: 0;
    transition: opacity 0.5s ease;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    pointer-events: none;
}

.testimonial-slide.active {
    opacity: 1;
    position: relative;
    pointer-events: auto;
}

.testimonial-content {
    font-size: 1.3rem;
    font-style: italic;
    color: var(--gray-800);
    margin-bottom: 2rem;
    line-height: 1.6;
    position: relative;
}

.testimonial-content::before,
.testimonial-content::after {
    content: '"';
    font-size: 3rem;
    color: var(--primary-light);
    opacity: 0.5;
    position: absolute;
}

.testimonial-content::before {
    top: -20px;
    left: -20px;
}

.testimonial-content::after {
    bottom: -40px;
    right: -20px;
    transform: rotate(180deg);
}

.testimonial-author {
    font-weight: 600;
    color: var(--primary-dark);
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 2rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gray-300);
    cursor: pointer;
    transition: 0.3s;
}

.dot.active {
    background: var(--primary);
    transform: scale(1.3);
}

/* ===== FORMULAIRES ===== */
.cta-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: white;
    border-radius: var(--border-radius);
    padding: 4rem;
    margin: 4rem 0;
}

.cta-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid transparent;
    border-radius: 50px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(247, 183, 49, 0.2);
}

.form-group textarea {
    border-radius: 30px;
    resize: vertical;
}

.character-counter {
    position: absolute;
    bottom: 5px;
    right: 15px;
    font-size: 0.8rem;
    color: var(--gray-600);
    background: rgba(255,255,255,0.9);
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin: 1rem 0;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--accent);
}

.btn-submit {
    background: var(--accent);
    color: var(--gray-800);
    font-weight: 700;
    padding: 1rem 3rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: 0.3s;
    font-size: 1.1rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    background: #ffc107;
}

/* ===== PAGE CONTACT ===== */
.contact-page {
    padding-top: 150px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.contact-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.contact-detail {
    display: flex;
    gap: 1rem;
    margin: 1.5rem 0;
    align-items: center;
}

.contact-detail .icon {
    font-size: 1.5rem;
    width: 40px;
}

.contact-form-container {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.service-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
    margin: 1rem 0;
}

.service-option {
    background: var(--gray-100);
    padding: 0.8rem;
    border-radius: 50px;
    text-align: center;
    cursor: pointer;
    transition: 0.3s;
    border: 2px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.service-option.selected {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary-dark);
}

/* ===== PAGE MÉTHODE ===== */
.method-pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.pillar-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: 0.3s;
}

.pillar-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.pillar-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.formation-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.formation-item {
    background: var(--gray-50);
    padding: 1.5rem;
    border-radius: var(--border-radius-sm);
    border-left: 4px solid var(--primary);
}

.vision-axis {
    text-align: center;
}

/* ===== FOOTER ===== */
footer {
    background: var(--gray-800);
    color: white;
    padding: 3rem 0;
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-links a {
    color: var(--gray-300);
    text-decoration: none;
    display: block;
    margin: 0.5rem 0;
    transition: 0.3s;
}

.footer-links a:hover {
    color: var(--primary-light);
}

/* ===== ANIMATIONS GÉNÉRALES ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.text-center {
    text-align: center;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 968px) {
    .hero-content,
    .philosophie-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-subtitle {
        max-width: 100%;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .method-pillars {
        grid-template-columns: 1fr;
    }
    
    .service-selector {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .container {
        padding: 0 1.5rem;
    }
    
    section {
        padding: 4rem 0;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: center;
        padding: 2rem;
        gap: 1.5rem;
        transform: translateY(-150%);
        opacity: 0;
        transition: 0.3s;
        box-shadow: var(--shadow-md);
        z-index: 99;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
    }

    .menu-toggle {
        display: flex;
    }
    
    .formation-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials {
        padding: 2rem;
    }
    
    .hero-content {
        text-align: center;
        padding-top: 60px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .logo span {
        display: none;
    }
    
    .service-selector {
        grid-template-columns: 1fr;
    }
}