/* Destinations — Visit Béjaïa (maquette polish) */

:root {
    --navy: #1a3a6b;
    --ink: #1c2b3a;
    --gold: #d9a84a;
    --gold-deep: #c4922f;
    --gold-soft: #f3e2bc;
    --accent: #b4232a;
    --sheet: #f8f6f2;
    --card: #ffffff;
    --card-soft: #f3f1ed;
    --muted: #667788;
    --line: rgba(28, 43, 58, 0.08);
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --shadow-soft: 0 12px 30px rgba(28, 40, 60, 0.08);
    --shadow-lift: 0 18px 40px rgba(28, 40, 60, 0.12);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body.guide-page {
    font-family: 'Montserrat', system-ui, sans-serif;
    background: #101820;
    color: var(--ink);
    line-height: 1.55;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: min(1080px, calc(100% - 1.6rem));
    margin-inline: auto;
}

h1, h2, h3, h4 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 700;
    line-height: 1.06;
    letter-spacing: -0.01em;
}

.guide-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    width: 0;
    z-index: 3000;
    background: linear-gradient(90deg, var(--gold), #f0c56a);
    pointer-events: none;
}

/* ===== HERO ===== */
.page-hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: 5.5rem 0 8.5rem;
    color: #fff;
    overflow: hidden;
    isolation: isolate;
}

.hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 42%;
    transform: scale(1.08);
    animation: ken 28s var(--ease) forwards;
    will-change: transform;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(180deg, rgba(12, 20, 34, 0.28) 0%, rgba(12, 20, 34, 0.12) 28%, rgba(12, 20, 34, 0.55) 68%, rgba(12, 20, 34, 0.78) 100%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(520px, calc(100% - 2rem));
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: rgba(255, 255, 255, 0.96);
    color: var(--navy);
    padding: 0.52rem 1rem;
    border-radius: 999px;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1.15rem;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
    animation: rise 0.8s var(--ease) both;
}

.hero-badge i {
    color: var(--accent);
    font-size: 0.78rem;
}

.page-hero h1 {
    font-size: clamp(3rem, 12vw, 4.4rem);
    color: #fff;
    margin-bottom: 0.75rem;
    text-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
    animation: rise 0.85s var(--ease) 0.08s both;
}

.page-hero h1 em {
    font-style: italic;
    font-weight: 600;
    color: #efc56d;
}

.hero-lead {
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(0.9rem, 2.7vw, 1.02rem);
    font-weight: 400;
    max-width: 19.5rem;
    margin: 0 auto 1.4rem;
    line-height: 1.55;
    animation: rise 0.85s var(--ease) 0.16s both;
}

.hero-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.35rem;
    margin: 0 auto 1.55rem;
    max-width: 21rem;
    animation: rise 0.85s var(--ease) 0.24s both;
}

.hero-features article {
    text-align: center;
    padding: 0 0.15rem;
}

.hero-features .feat-ico {
    width: 2.35rem;
    height: 2.35rem;
    margin: 0 auto 0.4rem;
    border: 1.5px solid rgba(239, 197, 109, 0.75);
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #efc56d;
    font-size: 0.92rem;
}

.hero-features strong {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    color: #fff;
}

.hero-features span {
    display: block;
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.75);
    margin-top: 0.12rem;
    line-height: 1.25;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    width: min(100%, 300px);
    padding: 1.05rem 1.5rem;
    background: linear-gradient(180deg, #e6ba5f 0%, #c99430 100%);
    color: #1a2332;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 999px;
    box-shadow: 0 16px 36px rgba(170, 120, 30, 0.42);
    transition: transform 0.25s var(--ease), box-shadow 0.25s ease, filter 0.25s ease;
    animation: rise 0.85s var(--ease) 0.3s both;
}

.hero-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
    box-shadow: 0 20px 44px rgba(170, 120, 30, 0.5);
}

.hero-btn i {
    font-size: 0.82rem;
    transition: transform 0.25s ease;
}

.hero-btn:hover i { transform: translateX(3px); }

/* ===== SHEET ===== */
.guide-sheet {
    position: relative;
    z-index: 5;
    margin-top: -4rem;
    background: var(--sheet);
    border-radius: 2.6rem 2.6rem 0 0;
    padding: 1.15rem 0 3.25rem;
    min-height: 55vh;
    box-shadow: 0 -20px 50px rgba(0, 0, 0, 0.18);
}

.guide-sheet::before {
    content: '';
    display: block;
    width: 2.75rem;
    height: 4px;
    margin: 0.15rem auto 1.35rem;
    border-radius: 999px;
    background: rgba(28, 43, 58, 0.14);
}

.guide-sheet .container {
    width: min(860px, calc(100% - 1.5rem));
}

/* Discover */
.discover-block {
    margin-bottom: 2.1rem;
}

.discover-block h2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: clamp(1.5rem, 5.4vw, 1.95rem);
    color: var(--navy);
    margin-bottom: 1.1rem;
}

.discover-star {
    color: var(--gold-deep);
    font-size: 0.78em;
    line-height: 1;
    transform: translateY(-1px);
}

.discover-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
}

.discover-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
    background: var(--card);
    border-radius: 1.35rem;
    padding: 1.2rem 1.05rem 1.15rem;
    text-decoration: none;
    color: var(--navy);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(255, 255, 255, 0.9);
    transition: transform 0.28s var(--ease), box-shadow 0.28s ease, background 0.28s ease;
    min-height: 7.4rem;
}

.discover-card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: var(--shadow-lift);
    background: #fff;
}

.discover-card .ico {
    width: 2.55rem;
    height: 2.55rem;
    border-radius: 0.9rem;
    background: var(--card-soft);
    display: grid;
    place-items: center;
    color: var(--navy);
    font-size: 1.1rem;
    transition: background 0.25s ease, color 0.25s ease;
}

.discover-card:hover .ico {
    background: rgba(212, 162, 74, 0.16);
    color: var(--gold-deep);
}

.discover-card span {
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.28;
    max-width: 9.2rem;
}

/* Highlights */
.highlights-block { margin-bottom: 2.35rem; }

.highlights-block h2 {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: clamp(1.4rem, 4.8vw, 1.75rem);
    color: var(--navy);
    margin-bottom: 1rem;
}

.highlights-block h2::before {
    content: '';
    width: 3px;
    height: 1.15em;
    background: linear-gradient(180deg, var(--gold), var(--gold-deep));
    border-radius: 2px;
}

.highlights-track {
    display: flex;
    gap: 0.9rem;
    overflow-x: auto;
    padding: 0.2rem 0.1rem 1rem;
    margin: 0 -0.15rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.highlights-track::-webkit-scrollbar { display: none; }

.highlight-card {
    position: relative;
    flex: 0 0 min(62vw, 210px);
    height: 275px;
    border-radius: 1.45rem;
    overflow: hidden;
    scroll-snap-align: start;
    text-decoration: none;
    color: #fff;
    box-shadow: 0 16px 34px rgba(15, 25, 45, 0.2);
    isolation: isolate;
}

.highlight-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s var(--ease);
}

.highlight-card:hover img,
.highlight-card:focus-visible img {
    transform: scale(1.07);
}

.highlight-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8, 16, 30, 0.08) 0%, rgba(8, 16, 30, 0.1) 40%, rgba(8, 16, 30, 0.78) 100%);
    z-index: 1;
}

.highlight-icon {
    position: absolute;
    top: 0.9rem;
    left: 0.9rem;
    z-index: 2;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.96);
    color: var(--navy);
    display: grid;
    place-items: center;
    font-size: 0.82rem;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
}

.highlight-card strong {
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 2;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

/* ===== CHAPTERS ===== */
.destinations-section { padding: 0.25rem 0 0.5rem; }

.section-label {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: clamp(1.45rem, 4.8vw, 1.85rem);
    color: var(--navy);
    margin: 0.35rem 0 1.2rem;
}

.section-label::before {
    content: '';
    width: 3px;
    height: 1.1em;
    background: var(--accent);
    border-radius: 2px;
}

.desti-bloc {
    display: grid;
    margin-bottom: 1.35rem;
    background: var(--card);
    border-radius: 1.55rem;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(255, 255, 255, 0.7);
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease), box-shadow 0.3s ease;
}

.desti-bloc.is-in {
    opacity: 1;
    transform: none;
}

.desti-bloc:hover {
    box-shadow: var(--shadow-lift);
}

.desti-media,
.desti-bloc > .desti-image {
    position: relative;
    min-height: 200px;
    aspect-ratio: 16 / 11;
    overflow: hidden;
    background: #d7dee6;
}

.desti-bloc > .desti-image,
.desti-media .desti-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.07);
    transition: transform 1.25s var(--ease);
}

.desti-bloc.is-in .desti-image { transform: scale(1); }

.desti-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(10, 18, 32, 0.4));
    pointer-events: none;
}

.chapter-index {
    position: absolute;
    left: 0.9rem;
    bottom: 0.85rem;
    z-index: 2;
    min-width: 2.1rem;
    height: 2.1rem;
    padding: 0 0.55rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--navy);
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    display: grid;
    place-items: center;
}

.desti-text { padding: 1.2rem 1.15rem 1.35rem; }

.desti-text::before,
.desti-kicker,
.chapter-badge,
.desti-text h2 i,
.desti-text .title i {
    display: none !important;
}

.desti-text h2,
.desti-text .title {
    font-size: 1.55rem;
    color: var(--navy);
    margin-bottom: 0.55rem;
}

.desti-text p {
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.desti-text p strong { color: var(--ink); font-weight: 600; }

.desti-more { display: none; }
.desti-more.is-open { display: block; animation: rise 0.35s var(--ease); }

.desti-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem 0.9rem;
    margin-top: 0.85rem;
}

.desti-more-btn,
.map-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    color: var(--navy);
    font: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
}

.desti-more-btn:hover,
.map-toggle:hover { color: var(--accent); }

.map-toggle i { color: var(--gold-deep); }

.map-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0;
    padding: 0.55rem 0.95rem;
    background: rgba(180, 35, 42, 0.08);
    color: var(--accent);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 999px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.map-link:hover {
    background: rgba(180, 35, 42, 0.14);
    transform: translateY(-1px);
    text-decoration: none;
}

.map-container {
    display: none;
    width: 100%;
    margin-top: 0.85rem;
    aspect-ratio: 16 / 10;
    min-height: 160px;
    overflow: hidden;
    border-radius: 1rem;
    background: #dce4ec;
}

.map-container.is-open { display: block; animation: rise 0.4s var(--ease); }

.map-container iframe {
    width: 100%;
    height: 100%;
    min-height: 160px;
    border: 0;
}

/* Ferme Djerba — activités après le texte */
.ferme-offers {
    margin-top: 1.1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(28, 43, 58, 0.1);
}

.ferme-offers-title {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--navy) !important;
    margin-bottom: 0.75rem !important;
}

.ferme-offers-grid {
    display: grid;
    gap: 0.65rem;
}

.ferme-offer {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.75rem;
    padding: 0.55rem 0.7rem 0.55rem 0.55rem;
    background: var(--card-soft);
    border: 1px solid rgba(28, 43, 58, 0.08);
    border-radius: 1rem;
    text-decoration: none;
    color: inherit;
    transition: transform 0.25s var(--ease), box-shadow 0.25s ease, background 0.25s ease;
}

.ferme-offer:hover {
    transform: translateY(-2px);
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.ferme-offer-img {
    width: 4.1rem;
    height: 4.1rem;
    border-radius: 0.8rem;
    object-fit: cover;
    display: block;
    flex-shrink: 0;
    background: #d7dee6;
}

.desti-text .map-container {
    margin: 0.85rem 0 0.25rem;
}

.desti-text .map-link {
    margin-top: 0.85rem;
}

.ferme-offer-ico {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 0.75rem;
    background: #fff;
    color: var(--gold-deep);
    display: grid;
    place-items: center;
    font-size: 1rem;
}

.ferme-offer-body {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.ferme-offer-body strong {
    font-size: 0.9rem;
    color: var(--navy);
    font-weight: 700;
}

.ferme-offer-body em {
    font-style: normal;
    font-size: 0.75rem;
    color: var(--muted);
}

.ferme-offer-cta {
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    background: var(--accent);
    padding: 0.45rem 0.7rem;
    border-radius: 999px;
    white-space: nowrap;
}

/* Don't collapse ferme offers into "lire la suite" */
.desti-more .ferme-offers { display: block; }

/* Mission */
.partnership {
    margin: 0;
    padding: 3.75rem 1.25rem;
    background:
        radial-gradient(600px 280px at 20% 0%, rgba(217, 168, 74, 0.18), transparent 60%),
        linear-gradient(160deg, #121c2b, #1a3a6b);
    color: #fff;
    text-align: center;
}

.partnership .container { max-width: 540px; }

.partnership h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.68rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.7rem;
    font-weight: 600;
}

.partnership h4 {
    font-size: clamp(1.75rem, 5vw, 2.35rem);
    margin-bottom: 0.9rem;
}

.partnership p {
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.95rem;
}

/* Navbar overrides */
body.guide-page .hamburger {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    gap: 5px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14);
    border: 0;
    cursor: pointer;
}

@media (max-width: 992px) {
    body.guide-page .hamburger {
        display: flex;
        flex-direction: column;
    }
}

body.guide-page .hamburger span {
    width: 16px;
    height: 2px;
    background: var(--navy);
}

body.guide-page .navbar.scrolled .hamburger {
    background: #fff;
}

/* Desktop */
@media (min-width: 900px) {
    .page-hero {
        align-items: flex-start;
        justify-content: center;
        padding: 0 0 9rem;
    }

    .hero-content {
        margin-left: max(2.5rem, calc((100% - 1080px) / 2));
        text-align: left;
        width: min(540px, 44vw);
    }

    .hero-lead {
        margin-left: 0;
        max-width: 22rem;
    }

    .hero-features {
        margin-left: 0;
        max-width: 24rem;
        gap: 0.5rem;
    }

    .hero-btn { width: auto; min-width: 260px; }

    .guide-sheet {
        margin-top: -5rem;
        border-radius: 3rem 3rem 0 0;
        padding-top: 1.4rem;
    }

    .guide-sheet::before { display: none; }

    .discover-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
    }

    .discover-card {
        min-height: 8.2rem;
        padding: 1.35rem 1.2rem;
    }

    .highlight-card {
        flex-basis: 230px;
        height: 310px;
    }

    .desti-bloc {
        grid-template-columns: 1.05fr 1fr;
        align-items: stretch;
        margin-bottom: 1.75rem;
    }

    .desti-bloc.reverse {
        grid-template-columns: 1fr 1.05fr;
    }

    .desti-bloc.reverse .desti-media { order: 2; }

    .desti-media,
    .desti-bloc > .desti-image {
        aspect-ratio: auto;
        min-height: 280px;
        height: 100%;
    }

    .desti-text {
        padding: 1.8rem 1.85rem;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .desti-text h2,
    .desti-text .title { font-size: 2.05rem; }
}

@keyframes ken {
    from { transform: scale(1.08); }
    to { transform: scale(1); }
}

@keyframes rise {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-bg-image,
    .hero-badge,
    .page-hero h1,
    .hero-lead,
    .hero-features,
    .hero-btn,
    .desti-bloc,
    .desti-image,
    .discover-card,
    .highlight-card {
        animation: none !important;
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

.guide-rail,
.guide-chips,
.guide-intro,
.scroll-indicator,
.hero-wave,
.hero-brand { display: none !important; }
