/* ========================================
   RESET & BASE
======================================== */
* {
    margin: 0;
    padding: 0;   
    box-sizing: border-box;
}

body {
    font-family: var(--font-open-sans);
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--light-bg);
    min-height: 100vh;
}

b {
    font-family: var(--font-open-sans);
    font-weight: 600;
    font-size: 16px;
    line-height: 100%;
}

strong {
    font-family: var(--font-open-sans);
    font-weight: 600;
    font-size: inherit;
    line-height: inherit;
    letter-spacing: 0.02em;
}

/* ========================================
   CONTAINER
======================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   TYPOGRAPHIE & HIGHLIGHTS
======================================== */
.highlight, 
.info-highlight, 
.crayon-text {
    color: var(--secondary-color);
    font-style: italic;
    font-family: var(--font-caveat);
    font-weight: 400;
    font-size: calc(1em + 4px);
}

/* ========================================
   HERO SECTION - AGRANDIE
======================================== */
.main-hero {
    width: 100%;
    background: var(--dark-bg);
    color: white;
    padding: 150px 0 30px 0;
    text-align: left;
    position: relative;
    overflow: hidden;
    min-height: 350px;
}

.main-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.main-hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding:0 20px;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding-left: calc(clamp(240px, 25vw, 360px) + 20px) !important;
}

.hero-text {
    flex: 1;
    max-width: 800px;
}

.main-title {
    font-family: var(--font-nunito);
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 15px;
    letter-spacing: 2px;
    margin-top: 100px;
    color: rgb(255, 255, 255);
    line-height: 1.1;
}

.main-subtitle {
    font-family: var(--font-caveat);
    font-size: 72px;
    font-weight: 400;
    margin: 0;
    opacity: 0.95;
    line-height: 1.1;
}

.main-subtitle .highlight {
    color: var(--secondary-color);
    font-style: italic;
    font-weight: 400;
}

/* ========================================
   HERO IMAGE
======================================== */
.hero-image-container {
    position: relative;
    height: 0;
    z-index: 10;
}

.hero-image {
    position: absolute;
    left: 0;
    width: clamp(240px, 25vw, 360px);
    height: clamp(480px, 48vw, 540px);
    border-radius: 0 25px 25px 0;
    overflow: hidden;
    z-index: 10;
    top: -120px;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ========================================
   BLOG HEADER & HERO
======================================== */
.blog-header {
    margin: 0 0 60px 0;
    min-height: 200px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: calc(clamp(240px, 25vw, 360px) + 20px) !important;
}

.blog-hero {
    background: var(--light-bg);
    color: var(--text-dark);
    padding: 50px 0;
    border-radius: 20px;
    margin-bottom: 40px;
    position: relative;
    overflow: visible;
    z-index: 1;
    display: flex;
    justify-content: flex-start;
}

.hero-overlay {
    max-width: 600px;
    text-align: left;
}

.hero-overlay p {
    font-family: var(--font-open-sans);
    font-size: 16px;
    margin-bottom: 20px;
    line-height: 26px;
    font-weight: 400;
    position: relative;
    z-index: 2;
    color: var(--text-dark);
}

.info-highlight {
    color: var(--secondary-color);
    font-weight: 600;
    font-style: italic;
}

/* ========================================
   TIMELINE SECTION
======================================== */
.timeline-section {
    padding: 100px 0;
    background: var(--light-bg);
    position: relative;
    overflow: hidden;
}

.timeline-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 1000px;
    height: 1000px;
    background: radial-gradient(circle, rgba(244, 162, 97, 0.03) 0%, transparent 70%);
    transform: translateX(-50%);
    pointer-events: none;
}

/* Timeline Header */
.timeline-header {
    text-align: left;
    margin-bottom: 80px;
    position: relative;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 140px;
}

.timeline-main-title {
    font-family: var(--font-nunito);
    font-size: clamp(1.8rem, 3.5vw, 2.4rem);
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 16px;
    line-height: 1.2;
}

.timeline-subtitle {
    font-family: var(--font-open-sans);
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: var(--text-light);
    font-weight: 400;
    max-width: 600px;
    margin: 0;
}

/* Timeline Structure */
.timeline-wrapper {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline-container {
    position: absolute;
    left: 60px;
    top: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(to bottom, #e8e8e8 0%, #e8e8e8 100%);
    border-radius: 2px;
    z-index: 1;
}

.timeline-progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 0%;
    background: linear-gradient(to bottom, var(--secondary-color), #e8944a);
    border-radius: 2px;
    transition: height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
}

.timeline-content {
    position: relative;
    z-index: 3;
}

/* Timeline Steps */
.timeline-step {
    position: relative;
    margin-bottom: 80px;
    padding-left: 140px;
    opacity: 0.4;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-step:last-child {
    margin-bottom: 0;
}

.timeline-step.active {
    opacity: 1;
    transform: translateY(0);
}

.timeline-step.passed {
    opacity: 0.7;
    transform: translateY(0);
}

/* Timeline Dot */
.timeline-dot {
    position: absolute;
    left: 50px;
    top: 15px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #e8e8e8;
    border: 4px solid #fefbf7;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 4;
    box-shadow: 0 0 0 0 rgba(244, 162, 97, 0);
}

.timeline-step.active .timeline-dot {
    background: linear-gradient(135deg, var(--secondary-color), #e8944a);
    transform: scale(1.3);
    box-shadow: 0 0 0 8px rgba(244, 162, 97, 0.1);
}

.timeline-step.passed .timeline-dot {
    background: var(--secondary-color);
    box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.1);
    transform: scale(1.1);
}

/* Timeline Card */
.timeline-step-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 0, 0, 0.06);
    position: relative;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-step.active .timeline-step-card {
    box-shadow: 0 12px 48px rgba(244, 162, 97, 0.12);
    border-color: rgba(244, 162, 97, 0.2);
}

.timeline-step-number {
    display: none;
}

.timeline-step-title {
    font-family: var(--font-nunito);
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
    line-height: 1.3;
}

.timeline-step-description {
    font-family: var(--font-open-sans);
    font-size: 15px;
    color: #4b5563;
    line-height: 1.6;
    font-weight: 400;
}

/* ========================================
   SERVICES SECTION - CARD STACK
======================================== */
:root {
    --cards: 5;
    --cardTopPadding: 3rem;
    --cardMargin: 2rem;
}

.services-section {
    position: relative;
    background: var(--light-bg);
    padding: 100px 0 120px;
    overflow: visible;
}

.section-header {
    text-align: left;
    margin-bottom: 100px;
    position: relative;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-family: var(--font-nunito);
    font-size: clamp(calc(2rem - 2px), 4vw, calc(2.8rem - 2px));
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 16px;
    line-height: 1.2;
}

.cards-wrapper {
    list-style: none;
    padding-left: 0;
    display: flex;
    flex-direction: column;
    gap: var(--cardMargin);
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    padding-bottom: 100vh;
}

.card-item {
    position: sticky;
    margin-bottom: 2rem;
    width: 100%;
}

.card-item:nth-child(1) { top: calc(10vh); }
.card-item:nth-child(2) { top: calc(10vh + 6vh); }
.card-item:nth-child(3) { top: calc(10vh + 12vh); }
.card-item:nth-child(4) { top: calc(10vh + 18vh); }
.card-item:nth-child(5) { top: calc(10vh + 24vh); }

.service-card {
    width: 100%;
    max-width: 800px;
    background: #FFE9D2;
    border: 2px solid var(--secondary-color);
    border-radius: 28px 28px 0 0;
    padding: 0;
    box-shadow: 0 15px 60px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: all 0.3s ease;
    overflow: visible;
    display: flex;
    flex-direction: column;
    margin: 0 auto;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background-size: 200% 100%;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.service-card-inner {
    display: flex;
    flex-direction: column;
    padding: 28px;
    min-height: 100%;
}

.service-card-header {
    flex-shrink: 0;
    margin-bottom: 24px;
}

.card-icon-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.card-icon {
    width: 35px;
    height: 35px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    flex-shrink: 0;
    overflow: visible;
}

.card-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.card-category {
    background: rgba(244, 162, 97, 0.1);
    color: #d67e2e;
    padding: 4px 12px;
    border-radius: 20px;
    font-family: var(--font-nunito);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-title {
    font-family: var(--font-nunito);
    font-size: 26px;
    font-weight: 500;
    color: var(--text-dark);
    line-height: 1.1;
    letter-spacing: 0;
    margin-bottom: 14px;
    text-align: left;
}

.card-description {
    font-family: var(--font-open-sans);
    font-size: 15px;
    color: #2d2d2d;
    line-height: 1.6;
    letter-spacing: 0.01em;
    margin-bottom: 24px;
    font-weight: 400;
    text-align: left;
}

.card-description strong {
    font-weight: 400;
    font-size: 15px;
}

.card-details {
    flex: 1;
    background: linear-gradient(135deg, var(--text-dark) 0%, #2d2d2d 100%);
    border-radius: 20px;
    padding: 32px;
    color: white;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card-details::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(244, 162, 97, 0.1) 0%, transparent 100%);
    pointer-events: none;
}

.card-details-header {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.card-details h4 {
    font-family: var(--font-nunito);
    font-size: 15px;
    font-weight: 600;
    color: white;
    margin: 0;
}

.card-features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.card-features li {
    font-family: var(--font-open-sans);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    padding-left: 28px;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    word-wrap: break-word;
    hyphens: auto;
    font-weight: 400;
}

.card-features li:before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    width: 18px;
    height: 18px;
    border-radius: 5px;
    flex-shrink: 0;
}

.card-features li:after {
    content: '✓';
    position: absolute;
    left: 5px;
    top: 4px;
    color: white;
    font-size: 11px;
    font-weight: 700;
}

/* ========================================
   CTA SECTION
======================================== */
.cta-section {
    background: var(--light-bg);
    padding: 0px 0 130px;
    text-align: center;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--dark-bg);
    color: #fff;
    padding: 10px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-family: var(--font-nunito);
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary:hover {
    background: #1e2340;
    transform: translateY(-2px);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary-color), #e8944a);
    color: #fff;
    padding: 10px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-family: var(--font-nunito);
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #e8944a, #d67e2e);
    transform: translateY(-2px);
}

/* ========================================
   ANIMATIONS
======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.timeline-step.loaded,
.service-card.loaded {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.timeline-step-card:hover {
    transform: translateY(-5px);
    transition: transform 0.3s ease;
}

/* ========================================
   RESPONSIVE
======================================== */
@media (min-width: 1600px) {
    .main-hero-content,
    .blog-header {
        padding-left: calc(clamp(100px, 15vw, 150px) + 10px) !important; /* moitié de 20px */
    }

    .hero-image {
        width: clamp(220px, 22vw, 400px);
        height: clamp(520px, 50vw, 600px); /* <-- agrandit la hauteur pour +1600 */
    }
}


@media (max-width: 1400px) {
    .main-hero-content,
    .blog-header {
        padding-left: calc(clamp(200px, 20vw, 320px) + 20px) !important;
    }

    .hero-image {
        width: clamp(200px, 20vw, 320px);
    }
}

@media (max-width: 1200px) and (min-width: 769px) {
    .main-hero-content {
        padding-left: calc(clamp(180px, 18vw, 300px) + 20px) !important;
    }
    .hero-image {
        width: clamp(180px, 18vw, 300px);
    }
}

@media (max-width: 768px) {
    .main-hero-content,
    .blog-header {
        padding-left: 20px !important;
    }
    .hero-image-container {
        display: none;
    }
}
/* ========================================
   RESPONSIVE - SERVICES SECTION MOBILE
======================================== */

@media (max-width: 768px) {
    .services-section {
        padding: 60px 0 80px;
        margin-top: -150px;
        padding-top: 210px;
    }

    .section-header {
        margin-bottom: 40px;
        padding: 0 20px;
        margin-top: -100px;
    }

    .section-title {
        font-size: clamp(1.5rem, 5vw, 2rem);
        margin-bottom: 20px;
    }
    .hero-text {
        margin-top: -150px;
    }
    /* Hero image visible entre titre et cartes - chevauche les sections */
    .hero-image-container {
        display: block;
        position: relative;
        height: auto;
        margin: 0 auto 40px;
        padding: 0 20px;
        z-index: 10;
        margin-top: -80px;
    }

    .hero-image {
        position: relative;
        width: 100%;
        max-width: 400px;
        height: 300px;
        border-radius: 20px;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        margin: 0 auto;
    }

    .hero-image img {
        border-radius: 20px;
    }

    

@media (max-width: 576px) {
    .services-section {
        margin-top: -120px;
        padding-top: 180px;
    }

    .section-header {
        margin-top: -80px;
    }

    .hero-image-container {
        margin-top: -60px;
    }

    .hero-image {
        height: 250px;
        margin-bottom: 30px;
    }

    .card-title {
        font-size: 20px;
    }

    .card-description {
        font-size: 13px;
    }

    .card-details {
        padding: 20px;
    }

    .card-features {
        gap: 10px;
    }
}}
/* ========================================
   RESPONSIVE - TIMELINE SECTION MOBILE
======================================== */

@media (max-width: 768px) {
    .timeline-section {
        padding: 60px 0;
    }

    .timeline-header {
        padding-left: 20px;
        padding-right: 20px;
        margin-bottom: 50px;
    }

    .timeline-main-title {
        font-size: clamp(1.5rem, 5vw, 2rem);
        margin-bottom: 12px;
    }

    .timeline-subtitle {
        font-size: clamp(0.95rem, 3vw, 1.1rem);
    }

    .timeline-wrapper {
        padding: 0 20px;
    }

    .timeline-container {
        left: 20px;
    }

    .timeline-progress {
        left: 0;
    }

    .timeline-step {
        padding-left: 60px;
        margin-bottom: 50px;
    }

    .timeline-dot {
        left: -7px;
        width: 20px;
        height: 20px;
        top: 12px;
    }

    .timeline-step-card {
        padding: 20px;
    }

    .timeline-step-title {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .timeline-step-description {
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .timeline-section {
        padding: 40px 0;
    }

    .timeline-header {
        margin-bottom: 40px;
    }

    .timeline-main-title {
        font-size: 1.5rem;
    }

    .timeline-subtitle {
        font-size: 0.95rem;
    }

    .timeline-step {
        padding-left: 50px;
        margin-bottom: 40px;
    }

    .timeline-dot {
        width: 18px;
        height: 18px;
        top: 10px;
        left: -7px;
    }

    .timeline-step-card {
        padding: 16px;
    }

    .timeline-step-title {
        font-size: 16px;
    }

    .timeline-step-description {
        font-size: 13px;
    }
}