/* ========================================
   Custom styles - Zyriab
   ======================================== */

/* Header typing-wrap offset per locale */
.tp-header-typing-wrap.locale-fr { left: 108px; }
.tp-header-typing-wrap.locale-en { left: 100px; }
.tp-header-typing-wrap.locale-es { left:  79px; }
.tp-header-typing-wrap.locale-ca { left:  76px; }

/* Mobile (offcanvas) overrides */
.tp-offcanvas .tp-header-typing-wrap.locale-fr { left: 122px; }
.tp-offcanvas .tp-header-typing-wrap.locale-en { left: 113px; }
.tp-offcanvas .tp-header-typing-wrap.locale-es { left:  92px; }
.tp-offcanvas .tp-header-typing-wrap.locale-ca { left:  91px; }

/* Hide mobile typing-wrap on input focus (offcanvas) */
.tp-header-search:has(.tp-input:focus) .tp-header-typing-wrap { opacity: 0; visibility: hidden; }

/* Language switcher in offcanvas (.tp-offcanvas-lang avoids theme JS targeting .tp-offcanvas-menu) */
.tp-offcanvas-lang ul { padding: 0; margin: 0; }
.tp-offcanvas-lang ul li { list-style: none; position: relative; }
.tp-offcanvas-lang ul li a {
  font-size: 15px;
  font-weight: 500;
  display: block;
  padding: 8px 0;
  color: var(--tp-common-black);
  border-bottom: 1px solid #ddd;
}
.tp-offcanvas-lang ul li:last-child > a { border: 0; }
.tp-offcanvas-lang ul li.active > a { color: var(--tp-theme-1); }
.tp-offcanvas-lang .tp-lang-toggle {
  position: absolute;
  right: 0;
  top: 5px;
  border: 1px solid #ddd;
  font-size: 12px;
  width: 30px;
  height: 30px;
}
.tp-offcanvas-lang .tp-lang-toggle i { transition: 0.3s; }
.tp-offcanvas-lang ul li.active > .tp-lang-toggle i { transform: rotate(90deg); }
.tp-offcanvas-lang ul li .sub-menu { margin-left: 20px; display: none; }

/* Nice Select inside tp-review-input (forms) */
.tp-review-input .tp-select {
  width: 100%;
  line-height: 56px;
}
.tp-review-input .tp-select::after {
  right: 20px;
}
.tp-review-input .tp-select .current {
  font-size: 14px;
  line-height: 56px;
  color: var(--tp-grey-1);
}
.tp-review-input .tp-select .list {
  width: 100%;
}
.tp-review-select {
  height: 56px;
}

/* Pagination disabled state */
.tp-pagination nav ul li span.disabled {
  opacity: 0.3;
  pointer-events: none;
}

/* Equal height trip cards */
.tp-tour-item {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.tp-tour-item .tp-tour-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.tp-tour-item .tp-tour-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tp-tour-item .tp-tour-info {
  margin-top: auto;
}

/* Fix: remove 500px cap on expanded read-more itinerary */
.load-more-content.active {
  max-height: none;
}

.tp-header-top-info ul li a.tp-header-whatsapp svg path { fill: #25D366 !important; }
.tp-header-top-info ul li a.tp-header-whatsapp .tp-header-whatsapp-label { transition: color .2s ease; }
.tp-header-top-info ul li a.tp-header-whatsapp:hover,
.tp-header-top-info ul li a.tp-header-whatsapp:hover .tp-header-whatsapp-label { color: #25D366 !important; }

.tp-destination-6-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.tp-legal-content {
    color: #4a5568;
    font-size: 16px;
    line-height: 1.7;
    max-width: 760px;
}
.tp-legal-content p {
    margin: 0 0 14px;
    font-size: 16px;
    line-height: 1.7;
}
.tp-legal-content > p:first-child em {
    display: inline-block;
    padding: 4px 10px;
    background: #f1f5f9;
    color: #64748b;
    font-style: normal;
    font-size: 13px;
    border-radius: 6px;
    letter-spacing: .2px;
}
.tp-legal-content h2 {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #0f172a;
    margin: 36px 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e2e8f0;
    line-height: 1.3 !important;
    letter-spacing: -.2px;
    display: block !important;
}
.tp-legal-content h3 {
    font-size: 17px !important;
    font-weight: 600;
    color: #1e293b;
    margin: 24px 0 8px;
}
.tp-legal-content a {
    color: #1d4ed8;
    text-decoration: none;
    border-bottom: 1px solid rgba(29, 78, 216, .25);
    transition: color .15s ease, border-color .15s ease;
}
.tp-legal-content a:hover {
    color: #1e40af;
    border-bottom-color: #1e40af;
}
.tp-legal-content strong { color: #0f172a; font-weight: 600; }
.tp-legal-content code {
    background: #f1f5f9;
    color: #1e293b;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: .92em;
}
/* Listes : on supprime tout flex/grid hérité du thème, retour en flux normal. */
.tp-legal-content ul,
.tp-legal-content ol {
    display: block !important;
    margin: 0 0 14px;
    padding-left: 22px;
    list-style-position: outside;
}
.tp-legal-content ul { list-style: disc; }
.tp-legal-content ol { list-style: decimal; }
.tp-legal-content li {
    display: list-item !important;
    width: auto !important;
    margin: 0 0 6px;
    padding: 0 !important;
    line-height: 1.65;
    color: #334155;
}
.tp-legal-content li::before { content: none !important; } /* neutralise un éventuel ::before du thème */
/* Tableaux des bases légales / finalités */
.tp-legal-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 14px 0 22px;
    font-size: 15px;
}
.tp-legal-content table th,
.tp-legal-content table td {
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    text-align: left;
    vertical-align: top;
}
.tp-legal-content table th {
    background: #f8fafc;
    font-weight: 600;
    color: #0f172a;
}
.tp-legal-content table tr:nth-child(even) td { background: #fafafa; }

/* ════════════════════════════════════════════════════════════
   PAGES ÉDITORIALES (About / How we work / FAQ)
   Habillage tourisme : couleurs sobres, hiérarchie claire,
   cartes valeurs + étapes timeline + bandeau CTA.
   ════════════════════════════════════════════════════════════ */
.zv-page-area { background: #fafafa; }
.zv-page {
    color: #334155;
    font-size: 16px;
    line-height: 1.7;
    max-width: 920px;
    margin: 0 auto;
}
.zv-page p { margin: 0 0 14px; }
.zv-page a {
    color: #1d4ed8;
    text-decoration: none;
    border-bottom: 1px solid rgba(29, 78, 216, .25);
    transition: color .15s ease, border-color .15s ease;
}
.zv-page a:hover { color: #1e40af; border-bottom-color: #1e40af; }

/* Intro lead */
.zv-page .zv-lead {
    font-size: 19px;
    line-height: 1.6;
    color: #0f172a;
    font-weight: 500;
    margin: 0 0 28px;
}

/* H2/H3 sobres */
.zv-page h2 {
    font-size: 22px !important;
    font-weight: 700 !important;
    color: #0f172a;
    margin: 40px 0 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid #5BBB7B;
    display: inline-block;
    line-height: 1.3 !important;
    letter-spacing: -.2px;
}
.zv-page h3 {
    font-size: 17px !important;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 8px;
}

/* ── Bandeau de chiffres clés ── */
.zv-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin: 8px 0 26px;
}
.zv-stat {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 22px 18px;
    text-align: center;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
    transition: transform .2s ease, box-shadow .2s ease;
}
.zv-stat:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(15, 23, 42, .06); }
.zv-stat-num {
    display: block;
    font-size: 28px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -.5px;
    line-height: 1;
    margin-bottom: 6px;
}
.zv-stat-lbl {
    display: block;
    font-size: 13px;
    color: #64748b;
    letter-spacing: .2px;
}
@media (max-width: 767px) {
    .zv-stats { grid-template-columns: repeat(2, 1fr); }
}

/* ── Cartes valeurs ── */
.zv-values {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin: 4px 0 28px;
}
.zv-value {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 22px 22px 20px;
    transition: transform .2s ease, box-shadow .2s ease;
}
.zv-value:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(15, 23, 42, .07); }
.zv-value-icon {
    width: 44px; height: 44px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 12px;
    background: #ECFDF5;
    color: #16A34A;
    font-size: 20px;
    margin-bottom: 12px;
}
.zv-value h3 { margin: 0 0 6px; font-size: 17px; }
.zv-value p { font-size: 15px; color: #475569; margin: 0; line-height: 1.6; }
@media (max-width: 767px) {
    .zv-values { grid-template-columns: 1fr; }
}

/* ── CTA bandeau (intra-contenu) ── */
.zv-cta-band {
    margin: 36px 0 8px;
    padding: 28px 28px;
    border-radius: 16px;
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    color: #fff;
    text-align: center;
}
.zv-cta-band h3 { color: #fff; font-size: 20px; margin: 0 0 6px; }
.zv-cta-band p { color: rgba(255,255,255,.85); margin: 0; }

/* ── CTA row (bouton centré sous la page) ── */
.zv-cta-row { margin: 42px 0 0; text-align: center; }

/* ── Étapes (timeline verticale) ── */
.zv-steps {
    position: relative;
    margin: 8px 0 32px;
    padding-left: 18px;
}
.zv-steps::before {
    content: "";
    position: absolute;
    left: 35px; top: 8px; bottom: 8px;
    width: 2px;
    background: linear-gradient(to bottom, #5BBB7B, #5BBB7B 50%, rgba(91,187,123,.15));
}
.zv-step {
    position: relative;
    display: flex;
    gap: 22px;
    align-items: flex-start;
    padding: 14px 0;
}
.zv-step-num {
    flex-shrink: 0;
    position: relative; z-index: 1;
    width: 54px; height: 54px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #5BBB7B;
    color: #0f172a;
    font-weight: 800;
    font-size: 16px;
    display: inline-flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 10px rgba(91, 187, 123, .15);
}
.zv-step-body { flex: 1; }
.zv-step-body h3 { font-size: 18px; margin: 4px 0 6px; }
.zv-step-body p { color: #475569; margin: 0; line-height: 1.65; }

/* ── Garanties (grille 2×2) ── */
.zv-guarantees {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 8px 0 24px;
}
.zv-guarantee {
    display: flex;
    gap: 14px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px 18px;
}
.zv-guarantee i {
    color: #5BBB7B;
    font-size: 22px;
    flex-shrink: 0;
    margin-top: 2px;
}
.zv-guarantee strong { display: block; color: #0f172a; font-weight: 600; margin-bottom: 2px; }
.zv-guarantee span { color: #64748b; font-size: 14.5px; line-height: 1.5; }
@media (max-width: 767px) {
    .zv-guarantees { grid-template-columns: 1fr; }
}

/* ── FAQ accordion ── */
.zv-faq-cat { margin: 14px 0 26px; }
.zv-page--faq .accordion { border: none; }
.zv-page--faq .accordion-item {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px !important;
    margin-bottom: 10px;
    overflow: hidden;
}
.zv-page--faq .accordion-button {
    font-size: 16px;
    font-weight: 600;
    color: #0f172a;
    padding: 16px 20px;
    background: #fff;
    box-shadow: none !important;
}
.zv-page--faq .accordion-button:not(.collapsed) {
    background: #ECFDF5;
    color: #14532d;
}
.zv-page--faq .accordion-body {
    padding: 0 20px 18px;
    color: #475569;
    line-height: 1.7;
}
.zv-page--faq .accordion-body p { margin: 0; }
.zv-page--faq .accordion-button::after {
    background-image: none;
    content: "+";
    font-size: 24px;
    width: 24px; height: 24px;
    display: inline-flex; align-items: center; justify-content: center;
    color: #5BBB7B;
    font-weight: 300;
    transition: transform .2s ease;
}
.zv-page--faq .accordion-button:not(.collapsed)::after {
    content: "−";
    transform: rotate(0);
    color: #14532d;
}

/* ── Bloc « Une question sans réponse ? » au pied de la FAQ ── */
.zv-faq-contact {
    margin: 36px 0 0;
    padding: 28px 30px;
    background: linear-gradient(135deg, #ECFDF5 0%, #F0FDF4 100%);
    border: 1px solid #BBF7D0;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
}
.zv-faq-contact-icon {
    flex-shrink: 0;
    width: 56px; height: 56px;
    border-radius: 50%;
    background: #fff;
    color: #16A34A;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 22px;
    box-shadow: 0 4px 10px rgba(22, 163, 74, .12);
}
.zv-faq-contact-body { flex: 1; min-width: 220px; }
.zv-faq-contact-body h3 {
    margin: 0 0 4px;
    color: #14532d;
    font-size: 18px !important;
    font-weight: 700;
}
.zv-faq-contact-body p {
    margin: 0;
    color: #166534;
    font-size: 15px;
    line-height: 1.55;
}
/* Bouton primaire (vert charte, plus pro que tp-btn) */
.zv-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    background: #16A34A;
    color: #fff !important;
    font-weight: 600;
    font-size: 15px;
    border: 0;
    border-radius: 10px;
    text-decoration: none !important;
    border-bottom: 0 !important;
    box-shadow: 0 6px 14px rgba(22, 163, 74, .25);
    transition: background .15s ease, transform .12s ease, box-shadow .15s ease;
    white-space: nowrap;
}
.zv-btn-primary:hover {
    background: #15803D;
    color: #fff !important;
    box-shadow: 0 8px 18px rgba(22, 163, 74, .32);
    transform: translateY(-1px);
}
.zv-btn-primary:active { transform: translateY(0); }
@media (max-width: 575.98px) {
    .zv-faq-contact { padding: 22px; text-align: center; }
    .zv-faq-contact-body { text-align: center; }
    .zv-btn-primary { width: 100%; }
}

/* ── Page "Qui sommes-nous" : intégration de la bande chiffres + bannières ── */
/* La section compteurs devient une bande "preuve sociale" distincte, posée sur
   un fond clair avec un léger séparateur, juste avant les bannières de conversion. */
.tp-counter-area {
    background: #f8fafc;
    padding-top: 80px;
    border-top: 1px solid #eef2f7;
}
.tp-offer-banner-area { padding-top: 10px; }
/* Eyebrow de la bannière gauche : lisible sur l'image. */
.tp-offer-banner-area .tp-offer-banner-subtitle {
    letter-spacing: .3px;
    opacity: .95;
}

/* ════════════════════════════════════════════════════════════
   Page "Qui sommes-nous" : galerie défilante (gauche) + éditorial (droite)
   ════════════════════════════════════════════════════════════ */
/* La galerie reste épinglée pendant qu'on parcourt le contenu plus long à droite. */
.zv-about-gallery-sticky {
    position: sticky;
    top: 100px;
}
.zv-about-gallery {
    height: 720px;
}
/* Vignettes uniformes (même hauteur) → boucle parfaitement fluide + rendu pro. */
.zv-about-gallery .tp-gallery-item img {
    border-radius: 22px;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    height: auto;
}
.zv-about-gallery .tp-gallery-item::before { display: none; }   /* pas d'overlay sombre */

/* Colonne éditoriale : occupe toute la largeur de la colonne, alignée en haut. */
.zv-page--about { max-width: none; margin: 0; }
.zv-page--about .zv-lead { margin-top: 0; }
/* Sur cette mise en page (colonne ~7/12), les valeurs restent en 2 colonnes
   confortables, puis 1 colonne sous lg. */
@media (min-width: 992px) and (max-width: 1199px) {
    .zv-page--about .zv-values { grid-template-columns: 1fr; }
}

/* En-tête de la page "Qui sommes-nous" (format index-4) */
.zv-about-head .tp-section-title { letter-spacing: -.5px; }
.zv-about-head p {
    font-size: 17px;
    line-height: 1.7;
    color: #64748b;
    max-width: 680px;
    margin: 0 auto;
}

/* Mégamenu Destinations : largeur dynamique (override du width:900px !important
   du thème). La largeur est fournie en variable inline --mega-width par le
   header. Desktop uniquement (≥1200px) pour ne pas casser le menu mobile. */
@media (min-width: 1200px) {
   .tp-megamenu-wrapper[style*="--mega-width"] {
      width: var(--mega-width) !important;
      max-width: var(--mega-width) !important;
   }
}

/* Page "Comment nous travaillons" : badge numéroté des étapes (design index-4) */
.zv-step-badge {
   width: 56px;
   height: 56px;
   border-radius: 50%;
   display: inline-flex;
   align-items: center;
   justify-content: center;
   background: rgba(3, 100, 231, .1);
   color: #0364e7;
   font-size: 20px;
   font-weight: 800;
   letter-spacing: -.5px;
}

/* Carte "100% sur mesure" (how-we-work) : assombrir l'image de fond pour la
   lisibilité du texte blanc. Filtre appliqué directement sur l'image : aucune
   modification de la mise en page, et le border-radius de l'image est conservé. */
.tp-about-5-offer-bg { filter: brightness(0.6); }
