/* =========================================================
   SECTION IMPACT (HERO SECONDAIRE)
   ========================================================= */
.scene-impact {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 120px 24px 100px;
    background: var(--bg);
}

.impact-glow {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: radial-gradient(ellipse 70% 50% at 50% 50%, color-mix(in srgb, var(--brand) 8%, transparent), transparent 70%);
}

.vignette-heavy {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: radial-gradient(ellipse at center, transparent 50%, color-mix(in srgb, var(--bg) 60%, transparent) 100%);
}

.impact-mist {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 25vh;
    z-index: 5;
    pointer-events: none;
    background: linear-gradient(to bottom, transparent, var(--bg));
}

.impact-content {
    position: relative;
    z-index: 10;
    text-align: center;
    width: 100%;
    margin: 0 auto;
}

/* Titre géant */
.impact-heading {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-weight: 900;
    text-transform: uppercase;
    margin: 0;
    color: var(--text);
    text-align: center;
    line-height: 1;
}

.tw-word {
    display: block;
    text-align: center;
    white-space: nowrap;
    font-size: clamp(2rem, 5vw, 8.5rem);
    line-height: 1.05;
}

/* Curseur clignotant */
@keyframes tw-blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

.tw-word.tw-cursor::after {
    content: '|';
    display: inline;
    margin-left: 0.05em;
    font-weight: 200;
    animation: tw-blink 1s step-end infinite;
}

/* Séparateur */
.impact-rule {
    width: clamp(160px, 30vw, 300px);
    height: 1px;
    border: none;
    background: linear-gradient(90deg, transparent, var(--brand), transparent);
    opacity: 0.5;
    margin: clamp(1.5rem, 4vw, 3rem) auto;
}

/* Accroche */
.impact-sub {
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    font-size: clamp(1.1rem, 3vw, 1.9rem);
    font-style: italic;
    color: var(--muted);
    max-width: 32ch;
    margin: 0 auto;
    line-height: 1.5;
    text-align: center;
    margin-left: auto !important;
    margin-right: auto !important;
    display: block;
}

.impact-block-sub {
    width: 100%;
    display: flex;
    justify-content: center;
}

/* Parallax */
.impact-block-title,
.impact-block-sub {
    will-change: transform;
    transform: translateY(var(--parallax-offset, 0px));
    transition: transform 0.1s ease-out;
}

@media (max-width: 600px) {
    .scene-impact {
        padding: 100px 16px 80px;
        min-height: auto;
    }
    .impact-sub {
        font-size: clamp(0.95rem, 3.8vw, 1.3rem);
    }
    .impact-sub br { display: none; }
    .impact-sub {
        font-size: 1.1rem;
        padding: 0 5px;
        transform: none !important;
    }
}

/* =========================================================
   CARTES SERVICES (Dépannage / Assistance / Conseil)
   ========================================================= */
.services-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 50px 0;
}

.card-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 1200px;
}

.card:nth-child(1),
.card:nth-child(2),
.card:nth-child(3) {
    --card-accent: var(--main-blue);
}

.card {
    width: 320px;
    height: 500px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #121821;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

html[data-theme="light"] .card {
    background: rgba(14, 48, 153, 0.05);
    border: 1px solid rgba(14, 48, 153, 0.1);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.card:hover .action-btn {
    background: #2b6cff;
}

/* Vague animée en haut de la carte */
.wave-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--card-accent);
    z-index: 1;
    animation: waveVertical 6s ease-in-out infinite;
}

@keyframes waveVertical {
    0%, 100% {
        clip-path: path("M0,0 L320,0 L320,230 C240,290 80,170 0,230 Z");
    }
    50% {
        clip-path: path("M0,0 L320,0 L320,190 C240,250 80,130 0,190 Z");
    }
}

/* Cercle icône */
.icon-circle {
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255);;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 10px 15px rgba(0, 0, 0, 0.15);
}

.icon-circle svg {
    width: 90px;
    height: 90px;
    fill: var(--card-accent);
}

.card-content {
    margin-top: auto;
    padding-bottom: 40px;
    text-align: center;
    z-index: 2;
}

.card-content h2 {
    font-size: 1.25rem;
    text-transform: uppercase;
    margin-bottom: 25px;
    font-weight: 800;
    color: (--brand);
}

.action-btn {
    background: var(--card-accent);
    width: 55px;
    height: 55px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    transition: background 0.3s;
}

.action-btn svg {
    width: 24px;
    fill: #ffffff;
}

/* =========================================================
   PANNEAU PARCOURS (PROCESSUS CLIENT)
   ========================================================= */
.parcours-panel {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.5s ease, opacity 0.35s ease;
    width: 100%;
}

.parcours-panel.open {
    max-height: 900px;
    opacity: 1;
}

.parcours-panel-title {
    text-align: center;
    margin: 40px 0 48px;
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
}

.parcours-panel-title strong {
    color: var(--brand);
    font-size: 2.5rem;
    letter-spacing: 0.12em;
    display: block;
    margin-bottom: 4px;
}

.card.active-parcours .action-btn svg {
    transform: rotate(90deg);
    transition: transform 0.3s ease;
}

/* Section wave parcours */
.process-section {
    padding: 0 20px;
    max-width: 100%;
    margin: 0 auto;
}

.wave-container {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-top: 0;
    padding-bottom: 70px;
}

.connector-desktop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120px;
    fill: none;
    stroke: var(--brand);
    stroke-width: 2;
    stroke-dasharray: 8 8;
    opacity: 0.5;
    pointer-events: none;
    z-index: 1;
}

.connector-mobile {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    fill: none;
    stroke: var(--brand);
    stroke-width: 2;
    stroke-dasharray: 8 8;
    opacity: 0.5;
    pointer-events: none;
    z-index: 1;
    overflow: visible;
}

/* Étapes */
.step-item {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.step-num {
    width: 50px;
    height: 50px;
    background: var(--bg);
    border: 2px solid var(--brand);
    color: var(--brand);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

@media (min-width: 801px) {
    .step-item:nth-child(even) {
        margin-top: 70px;
    }
}

.step-label {
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 8px;
    font-size: 0.9rem;
    transition: opacity 0.2s, transform 0.25s;
}

.step-desc {
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.4;
    max-width: 180px;
    transition: opacity 0.2s, transform 0.25s;
}

.wave-container.switching .step-label,
.wave-container.switching .step-desc {
    opacity: 0;
    transform: translateY(6px);
}

@media (max-width: 800px) {
    .connector-desktop { display: none; }
    .connector-mobile  { display: block; }

    .wave-container {
        flex-direction: column;
        gap: 0;
        padding-bottom: 20px;
    }

    .step-item {
        flex-direction: row;
        text-align: left;
        gap: 20px;
        width: 100%;
        justify-content: flex-start;
        margin-top: 0 !important;
        padding: 30px 16px;
    }

    .step-num {
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .step-desc {
        max-width: 100%;
        word-break: break-word;
    }

    .step-content {
        flex: 1;
        min-width: 0;
    }
}

/* =========================================================
   SECTION TÉMOIGNAGES (AVIS CLIENTS)
   ========================================================= */
#testimonials {
    background: var(--bg);
    padding-top: 0;
}

.testimonial-box-container {
    display: flex;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-box {
    width: 350px;
    margin: 15px;
    background-color: var(--surface-2);
    border: 1px solid color-mix(in srgb, var(--muted) 15%, transparent);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.box-top {
    display: flex;
    align-items: center;
    padding: 25px 25px 15px 25px;
}

.profile {
    display: flex;
    align-items: center;
    gap: 15px;
}

.profile-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--brand);
    flex-shrink: 0;
}

.profile-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.name-user {
    display: flex;
    flex-direction: column;
}

.name-user strong {
    color: var(--text);
    font-size: 0.95rem;
}

.name-user span {
    color: var(--muted);
    font-size: 0.75rem;
}

.reviews {
    margin-left: auto;
}

.reviews .fa-star {
    color: #f5a623;
}

.client-comment {
    padding: 0 25px 20px 25px;
    flex-grow: 1;
}

.client-comment p {
    font-size: 0.9rem;
    color: var(--text);
    line-height: 1.6;
}

/* Vague footer de carte témoignage */
.card-wave-footer {
    width: 100%;
    height: 45px;
    margin-top: auto;
    overflow: hidden;
    line-height: 0;
}

.wave-svg-infinite {
    width: 100%;
    height: 100%;
}

.moving-pattern {
    animation: waveLinear 20s linear infinite;
}

@keyframes waveLinear {
    from { transform: translateX(0); }
    to   { transform: translateX(-100px); }
}

/* =========================================================
   SECTION ZONE D'INTERVENTION (CARTE SVG VENDÉE)
   ========================================================= */
.zone-section {
    position: relative;
    padding: 0 24px 80px;
    overflow: hidden;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.zone-section::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(
        ellipse 70% 50% at 50% 40%,
        color-mix(in srgb, var(--brand) 8%, transparent),
        transparent 70%
    );
}

.zone-header {
    text-align: center;
    position: relative;
    z-index: 2;
}

.zone-title {
    font-family: 'Playfair Display', Georgia, serif;
    display: block;
    text-align: center;
    white-space: nowrap;
    font-size: clamp(2rem, 5vw, 8.5rem);
    line-height: 1.05;
}

.zone-body {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    width: 100%;
    max-width: 820px;
}

.zone-map-wrap {
    width: 100%;
    max-width: 700px;
}

.zone-map-wrap svg {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 16px 48px rgba(0, 0, 0, 0.6));
}

/* Animation ping sur le point de la carte */
@keyframes ping {
    0%   { opacity: 0.8; }
    100% { r: 28; opacity: 0; }
}

.r1 { animation: ping 2.2s ease-out infinite; }
.r2 { animation: ping 2.2s ease-out infinite 0.8s; }

/* Label département */
.dept-label {
    transition: fill 0.3s ease;
}

html[data-theme="dark"] .dept-label {
    fill: #9fb0c3;
    opacity: 0.4;
}

html[data-theme="light"] .dept-label {
    fill: #000000;
    opacity: 0.22;
}

/* =========================================================
   SECTION HORAIRES (DISPO)
   ========================================================= */
.dispo-section {
    width: 100%;
    max-width: 1100px;
    margin: 60px auto;
    padding: 0 20px;
}

.dispo-card {
    background: var(--surface-2);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid color-mix(in srgb, var(--muted) 15%, transparent);
    overflow: hidden;
}

.dispo-body {
    padding: 60px 80px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.dispo-row {
    display: flex;
    align-items: center;
    gap: 25px;
    width: 100%;
}

.day {
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text);
    min-width: 160px;
    white-space: nowrap;
}

.dispo-line {
    flex: 1;
    height: 1px;
}

html[data-theme="light"] .dispo-line {
    background: var(--main-blue);
    opacity: 0.25;
}

html[data-theme="dark"] .dispo-line {
    background: #ffffff;
    opacity: 0.15;
}

.time {
    font-family: ui-monospace, monospace;
    font-size: 1.1rem;
    color: var(--muted);
    white-space: nowrap;
    text-align: right;
    min-width: 120px;
}

@media (max-width: 768px) {
    .dispo-body {
        padding: 40px 20px;
        gap: 35px;
    }
    .dispo-row {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px;
    }
    .dispo-line {
        display: block;
        flex: none;
        width: 40px;
        height: 2px;
        opacity: 0.3;
    }
    .day {
        min-width: auto;
        font-size: 1rem;
    }
    .time {
        min-width: auto;
        text-align: center;
        font-size: 1rem;
    }
}