/* =============================================================================
   Nada Atlas Marrakech Travel – Styles
   Palette: bleu marine #1E3A5F · or #F5A623 · fonds #F9F9F9 / #F5F5F5
   ============================================================================= */

:root {
    --navy: #1E3A5F;
    --navy-dark: #162d4a;
    --navy-light: #2a4d7a;
    --gold: #F5A623;
    --gold-light: #FFBD3D;
    --wa: #25D366;
    --wa-dark: #128C7E;
    --ink: #111111;
    --muted: #555555;
    --bg-soft: #F5F5F5;
    --bg-card: #F9F9F9;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: #F9F9F9;
    color: var(--ink);
}

.font-serif, .serif { font-family: 'Playfair Display', Georgia, serif; }

/* BOUTONS */
.btn-cta {
    background: var(--gold);
    color: var(--navy);
    font-weight: 600;
    border-radius: 50rem;
    padding: .6rem 1.5rem;
    transition: all .3s ease;
}
.btn-cta:hover { background: var(--gold-light); color: var(--navy); box-shadow: 0 .5rem 1rem rgba(0,0,0,.15); transform: translateY(-1px); }

.btn-ghost {
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
    font-weight: 600;
    border-radius: 50rem;
    padding: .8rem 2rem;
    transition: all .3s ease;
}
.btn-ghost:hover { background: #fff; color: var(--navy); transform: scale(1.03); }
.btn-outline-navy { border: 2px solid var(--navy); color: var(--navy); background: transparent; }
.btn-outline-navy:hover { background: var(--navy); color: #fff; }

.btn-wa { background: var(--wa); color: #fff; font-weight: 600; border-radius: 50rem; padding: .75rem 1.75rem; transition: all .3s ease; }
.btn-wa:hover { background: var(--wa-dark); color: #fff; }

/* BADGE DE SECTION */
.pill { display: inline-block; background: var(--navy); color: #fff; padding: .35rem 1rem; border-radius: 50rem; font-size: .85rem; font-weight: 500; }
.pill-gold { background: var(--gold); color: var(--navy); font-weight: 600; }

.section-title { font-family: 'Playfair Display', serif; font-weight: 700; color: var(--ink); }
.section-subtitle { color: var(--muted); max-width: 42rem; margin-inline: auto; }

/* ============================== HEADER ==================================== */
.site-header {
    background: var(--navy);
    transition: box-shadow .4s ease;
    min-height: 80px;
}
.site-header.scrolled { box-shadow: 0 .5rem 1rem rgba(0,0,0,.2); }
.header-logo { height: 56px; width: auto; }

.navbar-nav .nav-link {
    color: #fff;
    letter-spacing: .01em;
    transition: color .3s;
    white-space: nowrap;
}
.navbar-nav .nav-link:hover { color: var(--gold); }

.lang-switch { background: rgba(255,255,255,.1); border-radius: 50rem; padding: 4px; }
.lang-btn {
    color: rgba(255,255,255,.7);
    font-size: .875rem;
    padding: .25rem .75rem;
    border-radius: 50rem;
    line-height: 1.4;
    text-decoration: none;
    transition: all .3s;
}
.lang-btn:hover { color: #fff; }
.lang-btn.active { background: var(--gold); color: var(--navy); font-weight: 600; }

.navbar-toggler:focus { box-shadow: none; }

.offcanvas { background: var(--navy); color: #fff; max-width: 300px; }
.offcanvas .nav-link { color: #fff; }
.offcanvas .nav-link:hover { color: var(--gold); }
.offcanvas-header .btn-close { filter: invert(1); }

/* =============================== HERO ===================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 7rem 0 9rem;
}
.hero-bg {
    position: absolute; inset: 0;
    background: url('https://images.unsplash.com/photo-1489749798305-4fea3ae63d43?w=1920&q=80') center/cover no-repeat;
}
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to bottom, rgba(30,58,95,.85), rgba(30,58,95,.6) 50%, rgba(30,58,95,.9));
}
.hero-content { position: relative; z-index: 2; text-align: center; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.anim-fade { animation: fadeIn 1s ease-out forwards; opacity: 0; }
.anim-up { animation: fadeInUp 1s ease-out forwards; opacity: 0; }

.hero-stats {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: rgba(255,255,255,.1);
    backdrop-filter: blur(4px);
    border-top: 1px solid rgba(255,255,255,.2);
    z-index: 2;
}
.stat-icon { color: var(--gold); }

/* =============================== DESIGN SECTIONS ========================== */
.section-white { background: #fff; }
.section-soft { background: var(--bg-soft); }
.section-navy { background: var(--navy); }

.trust-card {
    background: rgba(255,255,255,.1);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: background .3s;
}
.trust-card:hover { background: rgba(255,255,255,.2); }
.trust-icon { width: 48px; height: 48px; border-radius: 50%; background: var(--gold); display: flex; align-items: center; justify-content: center; }
.trust-icon svg { width: 24px; height: 24px; color: var(--navy); }

.excursion-img { border-radius: 1rem; box-shadow: 0 1rem 2rem rgba(0,0,0,.12); overflow: hidden; }
.excursion-img img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .7s; display: block; }
.excursion-card:hover .excursion-img img { transform: scale(1.1); }

.stars { display: inline-flex; gap: 2px; }

/* Pricing */
.price-card { background: #fff; border-radius: 1rem; box-shadow: 0 .5rem 1rem rgba(0,0,0,.08); overflow: hidden; }
.price-head { background: var(--navy); color: #fff; text-align: center; padding: 1rem; }
.price-icon { width: 48px; height: 48px; border-radius: 50%; background: var(--gold); display: flex; align-items: center; justify-content: center; margin: 0 auto .5rem; color: var(--navy); }
.price-row { display: flex; justify-content: space-between; gap: .5rem; padding: .7rem 0; border-bottom: 1px solid #ececec; font-size: .9rem; }
.price-row:last-child { border-bottom: 0; }
.price-row .dest { font-weight: 500; }
.price-row .amount { color: var(--navy); font-weight: 600; white-space: nowrap; }

/* Testimonials */
.testi-card { background: var(--bg-card); border-radius: 1rem; padding: 1.5rem; transition: box-shadow .3s; display: flex; flex-direction: column; }
.testi-card:hover { box-shadow: 0 1rem 2rem rgba(0,0,0,.12); }
.testi-quote { margin: 0; font-size: .95rem; line-height: 1.6; }
.testi-verified { display: inline-flex; align-items: center; gap: 4px; font-size: .78rem; color: #2E7D32; font-weight: 500; white-space: nowrap; }
.testi-avatar-initials { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: .95rem; flex-shrink: 0; }
.testi-reply { background: #f8fafc; border-left: 3px solid var(--gold); padding: .6rem .8rem; border-radius: 0 .5rem .5rem 0; }

/* Service links */
.svc-card { background: #fff; border-radius: 1rem; padding: 1.5rem; box-shadow: 0 2px 6px rgba(0,0,0,.05); transition: all .3s; text-decoration: none; display: block; height: 100%; }
.svc-card:hover { box-shadow: 0 1rem 2rem rgba(0,0,0,.12); border-color: var(--gold); transform: translateY(-2px); }
.svc-icon { width: 48px; height: 48px; border-radius: .75rem; background: var(--navy); display: flex; align-items: center; justify-content: center; color: #fff; transition: background .3s; }
.svc-card:hover .svc-icon { background: var(--gold); }

/* Countries strip */
.flag { font-size: 2rem; }
.country-label { color: rgba(255,255,255,.8); font-size: .875rem; }

/* ============================ BOUTIQUE / BOOKING ========================== */
.booking-section { background: var(--navy); color: #fff; }
.booking-section .form-control, .booking-section .form-select { border: 1px solid #E2E8F0; padding: .75rem; border-radius: .5rem; }
.booking-section label { color: #111827; font-weight: 500; font-size: .875rem; }

/* ================================= CONTACT ================================ */
.contact-card {
    background: #fff; border-radius: 1rem; padding: 1.5rem; text-align: center;
    box-shadow: 0 2px 6px rgba(0,0,0,.05); transition: all .3s; text-decoration: none; color: inherit;
}
.contact-card:hover { transform: translateY(-4px); box-shadow: 0 1rem 2rem rgba(0,0,0,.12); }
.contact-icon { width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; transition: transform .3s; }
.contact-card:hover .contact-icon { transform: scale(1.1); }
.icon-wa { background: var(--wa); color: #fff; }
.icon-navy { background: var(--navy); color: #fff; }
.icon-gold { background: var(--gold); color: var(--navy); }
.icon-fb { background: #1877F2; color: #fff; }
.icon-ig { background: linear-gradient(135deg,#833AB4,#FD1D1D,#F77737); color: #fff; }

/* ============================== FOOTER =================================== */
.site-footer { background: var(--navy); color: #fff; }
.footer-title { color: var(--gold); font-weight: 600; font-size: 1rem; margin-bottom: 1rem; }
.footer-link { color: rgba(255,255,255,.7); text-decoration: none; transition: color .3s; }
.footer-link:hover { color: #fff; }
.social-btn {
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(255,255,255,.1); color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    transition: all .3s;
}
.social-btn:hover { background: var(--gold); color: #fff; }
.social-wa:hover { background: var(--wa); }

/* ============================= WHATSAPP FLOAT ============================= */
.wa-float { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 1000; opacity: 0; transform: translateY(1.5rem); transition: all .5s; }
.wa-float.visible { opacity: 1; transform: none; }
.wa-btn {
    position: relative;
    width: 64px; height: 64px; border-radius: 50%;
    background: var(--wa); color: #fff;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 1rem 2rem rgba(37,211,102,.4);
    transition: all .3s;
}
.wa-btn:hover { transform: scale(1.08); background: var(--wa-dark); color: #fff; }
.wa-btn::after {
    content: ''; position: absolute; inset: 0; border-radius: 50%;
    background: var(--wa); opacity: .3; animation: wa-ping 2s ease-out infinite;
}
@keyframes wa-ping { 0% { transform: scale(1); opacity: .4; } 75%,100% { transform: scale(1.5); opacity: 0; } }
.wa-callout {
    display: flex; align-items: center; gap: .75rem;
    background: #25D366; color: #fff;
    padding: .5rem .75rem .5rem 1.1rem;
    border-radius: 50rem;
    box-shadow: 0 1rem 2rem rgba(37,211,102,.45);
    text-decoration: none;
    transition: transform .3s;
}
.wa-callout:hover { transform: scale(1.03); color: #fff; }
.wa-callout-text { font-weight: 700; font-size: .95rem; white-space: nowrap; }
.wa-callout .wa-btn { width: 48px; height: 48px; }

/* ============================ PAGE INTÉRIEURE ============================= */
.page-hero {
    position: relative; color: #fff; padding: 9rem 0 4rem;
    background: linear-gradient(to bottom, rgba(30,58,95,.9), rgba(30,58,95,.75));
    background-color: var(--navy);
}
.page-hero.has-bg { background-size: cover; background-position: center; }
.page-hero .breadcrumb-nav { position: relative; z-index: 2; }

.breadcrumb-nav { font-size: .875rem; }
.breadcrumb-nav ol { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; }
.breadcrumb-nav li { display: flex; align-items: center; gap: .5rem; color: rgba(255,255,255,.8); }
.breadcrumb-nav li + li::before { content: '›'; color: rgba(255,255,255,.5); }
.breadcrumb-nav a { color: rgba(255,255,255,.8); text-decoration: none; }
.breadcrumb-nav a:hover { color: var(--gold); }
.breadcrumb-nav .current { color: var(--gold); font-weight: 500; }

/* Article / contenu */
.article-body h2 { font-family: 'Playfair Display', serif; color: var(--navy); margin: 2rem 0 1rem; }
.article-body h3 { color: var(--navy); margin: 1.5rem 0 .75rem; }
.article-body p { line-height: 1.8; color: var(--muted); margin-bottom: 1rem; }
.article-body ul, .article-body ol { color: var(--muted); margin-bottom: 1rem; }
.article-body li { margin-bottom: .4rem; }
.article-body strong { color: var(--ink); }

.faq-answer { display: none; }

/* Bouton retour lien interne (SEO) */
.related-chip { color: var(--navy); text-decoration: underline; text-underline-offset: 4px; }
.related-chip:hover { color: var(--gold); }

/* ============================ PARTIALS DE PAGES =========================== */
.text-navy { color: var(--navy); }
.bg-soft { background: var(--bg-soft); }

.overlay-soft { position: absolute; inset: 0; background: rgba(30,58,95,.4); }

.chip-info {
    background: #fff; color: var(--navy); border: 1px solid #e6e9ef;
    border-radius: 50rem; padding: .45rem 1.1rem; font-size: .9rem; font-weight: 500;
    box-shadow: 0 .25rem .75rem rgba(0,0,0,.08);
}
.chip-info svg { color: var(--gold); }

.checklist-block ul li { line-height: 1.6; }

.timeline { position: relative; padding-left: 1.25rem; border-left: 2px solid var(--gold); }
.timeline-item { padding-bottom: 1rem; position: relative; }
.timeline-item::before {
    content: ''; position: absolute; left: -1.55rem; top: .4rem;
    width: .75rem; height: .75rem; border-radius: 50%;
    background: var(--navy); border: 2px solid #fff; box-shadow: 0 0 0 2px var(--gold);
}
.timeline-time { min-width: 3.5rem; }

.faq-item { overflow: hidden; }
.faq-question { line-height: 1.4; }
.faq-question.active .faq-chevron { transform: rotate(180deg); }
.faq-chevron { transition: transform .3s; display: inline-block; font-weight: 700; }

/* ============================== BLOG ====================================== */
.blog-card {
    background: #fff; border-radius: 1rem; overflow: hidden;
    box-shadow: 0 .25rem .75rem rgba(30,58,95,.06); transition: box-shadow .3s, transform .3s;
    display: flex; flex-direction: column;
}
.blog-card:hover { box-shadow: 0 1rem 2rem rgba(30,58,95,.15); transform: translateY(-3px); }
.blog-thumb { overflow: hidden; }
.blog-thumb img { aspect-ratio: 16/9; object-fit: cover; transition: transform .6s; display: block; }
.blog-card:hover .blog-thumb img { transform: scale(1.06); }
.blog-card .p-4 { flex: 1; }

/* ============================= RESPONSIVE ================================= */
@media (max-width: 991.98px) {
    .hero { min-height: 92vh; padding: 6rem 0 8rem; }
    .page-hero { padding: 7.5rem 0 3rem; }
}

/* ===== Correctifs 2026-10 ===== */
.site-footer { overflow-x: hidden; }

/* ===== Avis clients ===== */
.review-card { background: #fff; border: 1px solid #eee; border-radius: 1rem; padding: 1.5rem; box-shadow: 0 .25rem 1rem rgba(30,58,95,.06); }
.review-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; flex-shrink: 0; }
.review-stars { color: var(--gold); font-size: 1.05rem; letter-spacing: 2px; }
.review-stars .off { color: #d9d9d9; }
.review-text { color: var(--muted); line-height: 1.7; font-size: .95rem; }
.min-w-0 { min-width: 0; }
.text-navy { color: var(--navy); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.star-input { display: inline-flex; flex-direction: row-reverse; gap: .25rem; }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input label { font-size: 2rem; line-height: 1; color: #d9d9d9; cursor: pointer; transition: color .15s; }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { color: var(--gold); }
.star-input input:focus-visible + label { outline: 2px solid var(--navy); border-radius: 4px; }


/* ===== Hero mobile fix 2026-10-15 : stats sous les boutons (plus de chevauchement) ===== */
@media (max-width: 991.98px) {
  .hero { flex-direction: column; justify-content: flex-start; min-height: auto; padding: 6.5rem 0 0; }
  .hero-content { width: 100%; }
  .hero-stats { position: relative; top: auto; left: auto; right: auto; bottom: auto; width: 100%; margin-top: 2.5rem; z-index: 2; }
  .hero-stats .fs-4 { font-size: 1.15rem !important; }
}
