/* ========================================
   SECTION INTERVENTION / LOCALISATION
   ======================================== */

.intervention {
}

.intervention .h1 {
    color: var(--color4);
    font-family: var(--font_family_1);
    font-size: calc(var(--taille_font) * 4);
    text-align: center;
    margin: 0 0 0.5em;
    font-weight: normal;
    line-height: 1.3;
}

.intervention .h1 .titre-secondaire {
    display: block;
    color: var(--color2);
    font-family: var(--font_family_2);
    font-size: calc(var(--taille_font) * 2);
    margin-top: 0.3em;
    font-weight: normal;
    opacity: 0.9;
}

.intervention_grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 0;
    max-width: 1400px;
    margin: 2em auto 0;
    padding: 0 2em;
    align-items: center;
}

/* ========================================
   CARTE / PLAN
   ======================================== */

.intervention .plan {
    position: relative;
    min-height: 550px;
    height: 100%;
    border-radius: var(--border-radius);
    overflow: hidden;
    z-index: 1;
}

.intervention .plan iframe {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    min-height: 550px;
    border: 0;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 20px rgba(var(--color4_rgb), 0.1);
    z-index: 2;
    transition: box-shadow 0.3s ease;
}

.intervention .plan:hover iframe {
    box-shadow: 0 8px 30px rgba(var(--color4_rgb), 0.15);
}

/* ========================================
   CONTENU DESCRIPTIF - CHEVAUCHEMENT
   ======================================== */

.intervention .contenu {
    position: relative;
    left: -8%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 10;
    padding: 2em 0;
}

.intervention .contenu .description {
    position: relative;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    flex-direction: column;
    padding: 2.5em 3em 2.5em 2.5em;
    background: var(--color0);
    border-radius: var(--border-radius);
    border: 1px solid rgba(var(--color4_rgb), 0.08);
    box-shadow: 0 8px 32px rgba(var(--color4_rgb), 0.12);
    transition: all 0.3s ease;
    overflow: visible;
    z-index: 5;
}

.intervention .contenu::before {
    content: '';
    position: absolute;
    top: 4em;
    left: 4em;
    width: calc(100% - 2em);
    height: calc(100% - 4em);
    border-radius: var(--border-radius);
    border: 2px solid rgba(var(--color1_rgb), 0.15);
    z-index: 1;
    transition: all 0.3s ease;
}

.intervention .contenu:hover::before {
    border-color: rgba(var(--color1_rgb), 0.3);
    top: calc(2em + 20px);
    right: 20px;
}

.intervention .contenu .description::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 60px;
    height: 60px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M 0 0 L 0 100 L 20 80 L 20 20 L 80 20 L 100 0 Z' fill='%23A63A3A' opacity='0.8'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 1;
    z-index: 10;
}

.intervention .contenu .description .description-inner {
    position: relative;
    width: 100%;
}

.intervention .contenu .description .description-inner::before {
    content: '';
    position: absolute;
    left: -2.5em;
    top: 0;
    width: 3px;
    height: 0;
    background: linear-gradient(to bottom, var(--color1), var(--color2));
    transition: height 0.4s ease;
    z-index: 1;
}

.intervention .contenu .description:hover .description-inner::before {
    height: 100%;
}

.intervention .contenu .description:hover {
    border-color: rgba(var(--color1_rgb), 0.15);
    box-shadow: 0 12px 48px rgba(var(--color4_rgb), 0.15);
    transform: translateY(-3px);
}

.intervention .contenu .description p {
    position: relative;
    color: var(--color4);
    font-family: var(--font_family_3);
    font-size: calc(var(--taille_font) * 1.05);
    line-height: 1.8;
    text-align: left;
    margin: 0 0 0.8em 0;
    padding-left: 0.5em;
    opacity: 0.85;
    z-index: 2;
    transition: opacity 0.3s ease;
}

.intervention .contenu .description:hover p {
    opacity: 1;
}

.intervention .contenu .description p:last-child {
    margin-bottom: 0;
}

/* ========================================
   RESPONSIVE - TABLETTES
   ======================================== */

@media (max-width: 1100px) {
    .intervention_grid {
        grid-template-columns: 1fr;
        gap: 2em;
    }

    .intervention .plan {
        min-height: 400px;
        order: 2;
    }

    .intervention .plan iframe {
        min-height: 400px;
    }

    .intervention .contenu {
        order: 1;
        left: 0;
    }

    .intervention .contenu::before {
        display: none;
    }
}

/* ========================================
   RESPONSIVE - MOBILE
   ======================================== */

@media (max-width: 768px) {
    .intervention {
        padding: 2em 0;
    }

    .intervention .h1 {
        font-size: calc(var(--taille_font) * 2);
        padding: 0 1em;
    }

    .intervention .h1 .titre-secondaire {
        font-size: calc(var(--taille_font) * 1.2);
    }

    .intervention_grid {
        padding: 0 1em;
        gap: 1.5em;
    }

    .intervention .plan {
        min-height: 300px;
    }

    .intervention .plan iframe {
        min-height: 300px;
    }

    .intervention .contenu .description {
        padding: 1.5em 1.2em;
    }

    .intervention .contenu .description::before {
        left: 0;
    }

    .intervention .contenu .description p {
        font-size: var(--taille_font);
    }
}

@media (max-width: 480px) {
    .intervention .h1 {
        font-size: calc(var(--taille_font) * 1.7);
    }

    .intervention .contenu .description {
        padding: 1.2em 1em;
    }

    .intervention .contenu .description::after {
        width: 40px;
        height: 40px;
    }
}