/* ==========================================================================
   assets/css/agence.css — Page À propos / L'Agence (Sahara Bouarif Voyages)
   Reproduction 1:1 de https://www.terdav.com/esprit-terdav
   Palette exacte : #006789 (bleu pétrole), #34bf67 (vert accent),
   #efefef (gris architectural), #ffffff (fond), #000000 (typo), Montserrat 200/400/700.
   ========================================================================== */

body.page-template-tpl-agence {
    --esp-blue: #006789;
    --esp-blue-dark: #00506b;
    --esp-green: #34bf67;
    --esp-green-dark: #28a355;
    --esp-gray-bg: #efefef;
    --esp-text: #111111;
    --esp-muted: #4a4a4a;
    --esp-max: 1140px;
    --esp-font: 'Montserrat', 'Open Sans', sans-serif;

    background-color: #FFFFFF;
    color: var(--esp-text);
    padding-top: 0 !important;
    overflow-x: clip;
}

/* Navbar transparente sur le Hero sombre (comme la page d'accueil & Terdav) */
body.page-template-tpl-agence .site-header:not(.scrolled) {
    background: linear-gradient(180deg, rgba(12, 14, 18, 0.58) 0%, rgba(12, 14, 18, 0) 100%);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom-color: transparent;
    box-shadow: none;
}

body.page-template-tpl-agence .site-header:not(.scrolled) .site-nav__link,
body.page-template-tpl-agence .site-header:not(.scrolled) .lang-switcher__link,
body.page-template-tpl-agence .site-header:not(.scrolled) .lang-switcher__sep,
body.page-template-tpl-agence .site-header:not(.scrolled) .lang-dropdown__trigger {
    color: #FFFFFF;
    border-color: rgba(255, 255, 255, 0.35);
}

body.page-template-tpl-agence .site-header:not(.scrolled) .site-header__logo-text svg text:first-child {
    fill: #FFFFFF;
}

body.page-template-tpl-agence .site-header:not(.scrolled) .site-header__logo-text svg text:last-child {
    fill: #F6EFE2;
}

body.page-template-tpl-agence .site-header:not(.scrolled) .burger-btn__bar {
    background-color: #FFFFFF;
}

/* Conteneur principal esprit-terdav */
.esp-page {
    font-family: var(--esp-font);
    background-color: #FFFFFF;
    color: var(--esp-text);
}

.esp-container {
    position: relative;
    width: 100%;
    max-width: var(--esp-max);
    margin: 0 auto;
    padding: 0 20px;
}

.esp-container--intro {
    max-width: 900px;
    text-align: center;
}

/* Titres & boutons communs esprit-terdav */
.esp-title {
    font-family: var(--esp-font);
    font-size: clamp(1.85rem, 3.2vw, 2.5rem);
    line-height: 1.15;
    font-weight: 700;
    color: var(--esp-blue);
    text-align: center;
    margin: 0 0 42px;
}

.esp-subtitle {
    font-family: var(--esp-font);
    font-size: 24px;
    line-height: 30px;
    font-weight: 700;
    color: #000000;
    text-align: left;
    margin: 0 0 20px;
}

.esp-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 22px 12px;
    margin-top: 28px;
    border-radius: 6px;
    background-color: var(--esp-blue);
    color: #FFFFFF;
    text-decoration: none;
    border: 0;
    cursor: pointer;
    transition: background-color 0.22s ease, transform 0.2s ease, box-shadow 0.22s ease;
}

.esp-button:hover {
    background-color: var(--esp-blue-dark);
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 103, 137, 0.24);
}

.esp-button--green {
    background-color: var(--esp-green);
}

.esp-button--green:hover {
    background-color: var(--esp-green-dark);
    box-shadow: 0 8px 20px rgba(52, 191, 103, 0.3);
}

.esp-button__content {
    font-family: var(--esp-font);
    font-size: 14px;
    line-height: 17px;
    font-weight: 700;
    color: #FFFFFF;
}

/* ==========================================================================
   1. HERO HEADER SOMBRE PLEIN CADRE (500px — H1 Montserrat 200 70px)
   ========================================================================== */
.esp-hero-header {
    position: relative;
    height: 500px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    align-items: stretch;
}

.esp-hero-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.42) 0%,
        rgba(0, 0, 0, 0.26) 45%,
        rgba(0, 0, 0, 0.52) 100%
    );
    z-index: 0;
}

.esp-hero-header__inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 84px;
    padding-bottom: 24px;
}

.esp-hero-header__title {
    font-family: var(--esp-font);
    font-size: clamp(2.35rem, 5.2vw, 4.375rem); /* 70px desktop */
    line-height: 1.1;
    font-weight: 200;
    color: #FFFFFF;
    text-align: center;
    width: 100%;
    margin: auto 0;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.32);
}

.esp-hero-header__bottom {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: auto;
}

.esp-hero-header__menu-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 1.05rem;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.85);
    background: rgba(0, 0, 0, 0.24);
    color: #FFFFFF;
    font-family: var(--esp-font);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.esp-hero-header__menu-btn:hover {
    background: #FFFFFF;
    color: var(--esp-blue);
}

.esp-hero-header__menu-btn svg {
    transition: transform 0.28s ease;
}

.esp-hero-header__menu-btn[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

/* Fil d'Ariane blanc discret en bas du Hero */
.esp-ariane__list {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.92);
}

.esp-ariane__list li {
    display: inline-flex;
    align-items: center;
}

.esp-ariane__list li:not(:last-child)::after {
    content: "-";
    margin-left: 0.6rem;
    opacity: 0.75;
}

.esp-ariane__list a {
    color: #FFFFFF;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.esp-ariane__list a:hover {
    opacity: 0.8;
}

/* ==========================================================================
   2. NAVIGATION INTERNE DÉPLIABLE (#efefef + pastilles encadrées #006789)
   ========================================================================== */
.esp-nav-internal {
    overflow: hidden;
    max-height: 0;
    background-color: var(--esp-gray-bg);
    box-shadow: inset 0 -22px 24px -38px rgba(0, 0, 0, 0.65);
    transition: max-height 0.4s ease;
}

.esp-nav-internal.is-open {
    max-height: 180px;
}

.esp-nav-internal__list {
    display: flex;
    align-items: stretch;
    gap: 16px;
    list-style: none;
    margin: 0;
    padding: 24px 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.esp-nav-internal__list::-webkit-scrollbar {
    display: none;
}

.esp-nav-internal__item {
    flex: 1 0 140px;
    min-height: 76px;
    border-radius: 6px;
    border: 1px solid var(--esp-blue);
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.esp-nav-internal__item:hover {
    background-color: rgba(0, 103, 137, 0.08);
    transform: translateY(-1px);
}

.esp-nav-internal__item.is-active {
    background-color: var(--esp-blue);
}

.esp-nav-internal__link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 12px 10px;
    font-family: var(--esp-font);
    font-size: 14px;
    line-height: 18px;
    font-weight: 700;
    color: var(--esp-blue);
    text-decoration: none;
}

.esp-nav-internal__item.is-active .esp-nav-internal__link {
    color: #FFFFFF;
}

/* ==========================================================================
   3. PARAGRAPHE D'INTRODUCTION MANIFESTE
   ========================================================================== */
.esp-paragraph {
    margin-bottom: 56px;
}

.esp-paragraph--intro {
    padding-top: 64px;
    margin-bottom: 40px;
}

.esp-paragraph__lead {
    font-family: var(--esp-font);
    font-size: clamp(1rem, 1.45vw, 1.18rem);
    line-height: 1.75;
    font-weight: 400;
    color: #000000;
    margin: 0;
}

/* ==========================================================================
   4. CITATION ARCHITECTURALE SUPERPOSÉE (SIGNATURE ESPRIT TERDAV)
   ========================================================================== */
.esp-blockquote {
    position: relative;
    max-width: var(--esp-max);
    margin: 155px auto 105px;
    padding: 0 20px;
}

.esp-blockquote__media {
    position: absolute;
    top: -110px;
    left: 20px;
    width: 430px;
    max-width: 42%;
    height: 510px;
    z-index: 10;
}

.esp-blockquote__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    border-radius: 4px;
    display: block;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.14);
}

.esp-blockquote__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    width: 100%;
    max-width: 865px;
    min-height: 500px;
    margin-left: auto;
    background-color: var(--esp-gray-bg);
    border-radius: 4px;
    position: relative;
}

.esp-blockquote__column {
    position: relative;
    width: 520px;
    max-width: 100%;
    padding: 40px 48px 40px 28px;
    z-index: 2;
}

.esp-blockquote__quote {
    position: relative;
    font-family: var(--esp-font);
    font-size: 24px;
    line-height: 33px;
    font-weight: 700;
    color: #000000;
    margin: 0 0 28px;
}

/* Guillemet géant translucide (exact esprit-terdav) */
.esp-blockquote__quote::before {
    content: "”";
    font-family: var(--esp-font);
    font-size: 320px;
    line-height: 0.75;
    font-weight: 900;
    color: rgba(0, 0, 0, 0.08);
    position: absolute;
    top: 22px;
    left: -18px;
    pointer-events: none;
    user-select: none;
}

.esp-blockquote__footer {
    font-family: var(--esp-font);
    font-size: 16px;
    line-height: 1.5;
    color: #000000;
}

.esp-blockquote__footer strong {
    display: block;
    font-weight: 700;
}

.esp-blockquote__position {
    display: block;
    font-style: normal;
    font-weight: 400;
    color: var(--esp-muted);
    font-size: 14px;
    margin-top: 2px;
}

@media (max-width: 920px) {
    .esp-blockquote {
        margin: 56px auto 72px;
    }
    .esp-blockquote__media {
        position: static;
        width: 100%;
        max-width: 100%;
        height: 340px;
    }
    .esp-blockquote__content {
        min-height: auto;
        align-items: stretch;
        max-width: 100%;
        margin-left: 0;
    }
    .esp-blockquote__column {
        width: 100%;
        padding: 36px 24px;
    }
    .esp-blockquote__quote {
        font-size: 19px;
        line-height: 27px;
    }
    .esp-blockquote__quote::before {
        font-size: 210px;
        top: 10px;
        left: -6px;
    }
}

/* ==========================================================================
   5. TROIS SECTIONS 2 COLONNES ALTERNÉES (.esp-paragraph--column)
   ========================================================================== */
.esp-paragraph--column {
    margin-bottom: 84px;
    scroll-margin-top: 105px;
}

.esp-paragraph__flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 65px;
}

.esp-paragraph--inverse .esp-paragraph__flex {
    flex-direction: row-reverse;
}

.esp-paragraph__media {
    flex: 0 0 46%;
    max-width: 490px;
}

.esp-paragraph__image {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}

.esp-paragraph__col {
    flex: 1;
}

.esp-paragraph__content {
    font-family: var(--esp-font);
    font-size: 16px;
    line-height: 1.72;
    font-weight: 400;
    color: #000000;
}

.esp-paragraph__content p {
    margin: 0 0 18px;
}

.esp-paragraph__content p:last-child {
    margin-bottom: 0;
}

@media (max-width: 850px) {
    .esp-paragraph--column {
        margin-bottom: 56px;
    }
    .esp-paragraph__flex,
    .esp-paragraph--inverse .esp-paragraph__flex {
        flex-direction: column;
        gap: 28px;
    }
    .esp-paragraph__media {
        flex: none;
        width: 100%;
        max-width: none;
    }
}

/* ==========================================================================
   6. CARROUSEL "NOS VALEURS" — 6 CARTES + LIEN VERT #34bf67 (.esp-values)
   ========================================================================== */
.esp-values {
    margin: 85px 0 85px;
    scroll-margin-top: 105px;
}

.esp-carousel-wrap {
    position: relative;
}

.esp-values__track {
    display: flex;
    gap: 32px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 4px 4px 18px;
    scrollbar-width: thin;
    scrollbar-color: var(--esp-blue) transparent;
}

.esp-values__item {
    position: relative;
    flex: 0 0 calc((100% - 64px) / 3);
    min-width: 290px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.esp-values__img-wrap {
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 20px;
    aspect-ratio: 4 / 3;
    background-color: var(--esp-gray-bg);
}

.esp-values__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.esp-values__item:hover .esp-values__image {
    transform: scale(1.05);
}

.esp-values__title {
    font-family: var(--esp-font);
    font-size: 22px;
    line-height: 27px;
    font-weight: 700;
    color: #000000;
    margin: 0 0 14px;
    padding-right: 16px;
}

.esp-values__content {
    font-family: var(--esp-font);
    font-size: 15px;
    line-height: 1.6;
    font-weight: 400;
    color: #222222;
    margin: 0 0 18px;
    padding-right: 16px;
    flex: 1;
}

.esp-values__link {
    align-self: flex-start;
    background: none;
    border: 0;
    padding: 0;
    font-family: var(--esp-font);
    font-size: 15px;
    line-height: 20px;
    font-weight: 700;
    color: var(--esp-green);
    cursor: pointer;
    transition: color 0.2s ease;
}

/* Rend toute la carte cliquable comme sur esprit-terdav */
.esp-values__link::before {
    content: "";
    position: absolute;
    inset: 0;
}

.esp-values__item:hover .esp-values__link {
    color: var(--esp-blue);
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* Flèches carrousel */
.esp-carousel-btn {
    position: absolute;
    top: 105px;
    z-index: 6;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(0, 103, 137, 0.22);
    background-color: rgba(255, 255, 255, 0.94);
    color: var(--esp-blue);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.14);
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.esp-carousel-btn:hover {
    background-color: var(--esp-blue);
    color: #FFFFFF;
    transform: scale(1.06);
}

.esp-carousel-btn--prev { left: -18px; }
.esp-carousel-btn--next { right: -18px; }

@media (max-width: 1200px) {
    .esp-carousel-btn--prev { left: 6px; }
    .esp-carousel-btn--next { right: 6px; }
}

@media (max-width: 768px) {
    .esp-values__item {
        flex: 0 0 275px;
        min-width: 275px;
    }
    .esp-carousel-btn {
        display: none;
    }
}

/* ==========================================================================
   7. BANDEAU CONTACT HIGHLIGHT BLEU PÉTROLE (#006789 + BOUTON #34bf67)
   ========================================================================== */
.esp-contact-highlight {
    background-color: var(--esp-blue);
    padding: 58px 20px;
    margin-bottom: 85px;
    text-align: center;
    color: #FFFFFF;
}

.esp-contact__title {
    font-family: var(--esp-font);
    font-size: clamp(1.65rem, 2.8vw, 2.2rem);
    line-height: 1.2;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0 0 12px;
}

.esp-contact__content {
    font-family: var(--esp-font);
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.94);
    margin: 0;
}

.esp-contact__actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.esp-contact__wa {
    font-family: var(--esp-font);
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.esp-contact__wa:hover {
    color: #FFFFFF;
}

/* ==========================================================================
   8. SECTION VIDÉO ("DÉCOUVREZ SAHARA BOUARIF VOYAGES EN VIDÉO")
   ========================================================================== */
.esp-video {
    margin-bottom: 95px;
}

.esp-video__frame {
    position: relative;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    max-height: 500px;
    border-radius: 6px;
    overflow: hidden;
    background-color: #151412;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.14);
}

.esp-video__poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease, filter 0.35s ease;
}

.esp-video__frame:hover .esp-video__poster {
    transform: scale(1.03);
    filter: brightness(0.88);
}

.esp-video__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 74px;
    height: 74px;
    border-radius: 50%;
    border: 2px solid #FFFFFF;
    background-color: rgba(0, 103, 137, 0.82);
    color: #FFFFFF;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-left: 4px;
    cursor: pointer;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
    transition: transform 0.25s ease, background-color 0.25s ease;
}

.esp-video__play:hover {
    background-color: var(--esp-green);
    transform: translate(-50%, -50%) scale(1.09);
    color: #FFFFFF;
}

.esp-video__iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ==========================================================================
   9. SECTION "ENVIE D'ALLER PLUS LOIN ?" (3 CARTES VISUELLES)
   ========================================================================== */
.esp-more-content {
    background-color: #FFFFFF;
    box-shadow: 0 0 60px -25px rgba(0, 0, 0, 0.25);
    padding: 65px 0 80px;
}

.esp-more-content__title {
    font-family: var(--esp-font);
    font-size: 24px;
    line-height: 34px;
    font-weight: 400;
    color: #000000;
    text-align: left;
    margin: 0 0 24px;
}

.esp-more-content__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

@media (max-width: 820px) {
    .esp-more-content__grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
}

.esp-more-content__item {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    border-radius: 4px;
    overflow: hidden;
    text-decoration: none;
    background-color: #1e1d1b;
}

.esp-more-content__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.55s ease;
}

.esp-more-content__item:hover .esp-more-content__image {
    transform: scale(1.06);
}

.esp-more-content__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.08) 30%, rgba(0, 0, 0, 0.72) 100%);
    pointer-events: none;
}

.esp-more-content__label {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    z-index: 2;
    font-family: var(--esp-font);
    font-size: 22px;
    line-height: 27px;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

/* ==========================================================================
   MODALE NATIVE <dialog> POUR "LIRE LA SUITE" DES 6 VALEURS
   ========================================================================== */
.esp-modal {
    margin: auto;
    padding: 0;
    border: 0;
    border-radius: 12px;
    width: min(680px, calc(100vw - 2rem));
    max-height: 90dvh;
    background: transparent;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
}

.esp-modal::backdrop {
    background: rgba(12, 16, 20, 0.68);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.esp-modal__box {
    position: relative;
    background-color: #FFFFFF;
    max-height: 90dvh;
    overflow-y: auto;
}

.esp-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 4;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 0;
    background-color: rgba(255, 255, 255, 0.92);
    color: var(--esp-blue);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: background-color 0.2s ease, color 0.2s ease;
}

.esp-modal__close:hover {
    background-color: var(--esp-blue);
    color: #FFFFFF;
}

.esp-modal__media {
    width: 100%;
    height: 260px;
    overflow: hidden;
    background-color: var(--esp-gray-bg);
}

.esp-modal__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.esp-modal__body {
    padding: 32px 36px 36px;
}

.esp-modal__eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--esp-green);
    margin-bottom: 8px;
}

.esp-modal__title {
    font-family: var(--esp-font);
    font-size: 26px;
    line-height: 32px;
    font-weight: 700;
    color: var(--esp-blue);
    margin: 0 0 18px;
}

.esp-modal__text {
    font-family: var(--esp-font);
    font-size: 16px;
    line-height: 1.75;
    color: #222222;
    margin: 0;
}

@media (max-width: 600px) {
    .esp-hero-header {
        height: 430px;
    }
    .esp-modal__body {
        padding: 24px 20px 28px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .esp-values__track {
        scroll-behavior: auto;
    }
    .esp-values__image,
    .esp-video__poster,
    .esp-more-content__image,
    .esp-nav-internal {
        transition: none !important;
    }
}
