/* ============================================
   VISIT BÉJAÏA - Design Immersif Premium
   Inspiré Visit Greenland + Identité locale
   ============================================ */

:root {
    /* Palette Marque (Cyan/Jaune) — alignée sur l'identité logo */
    --sea-dark: #0066B3; /* Cyan profond */
    --sea: #00AEEF; /* Primary action cyan */
    --sea-light: #E6F7FE;
    --turquoise: #FFF200; /* Accent jaune marque */
    --turquoise-soft: rgba(255, 242, 0, 0.1);
    --sand: #FFF200;
    --sand-light: #fffcce;
    --warm: #d4a574;
    --sunset: #ff8c69;
    
    /* Neutres */
    --white: #ffffff;
    --off-white: #f9fafb;
    --light: #f7f7f9; /* Marketplace light gray bg */
    --gray: #6b7280;
    --dark: #111827;
    --black: #030712;
    
    /* Typo Premium */
    --font-display: 'ABeeZee', serif;
    --font-body: 'ABeeZee', sans-serif;
    
    /* Spacements */
    --section-pad: clamp(5rem, 12vw, 10rem);
    --container: min(92%, 1300px);
    
    /* Transitions & Shadow */
    --ease: cubic-bezier(0.23, 1, 0.32, 1);
    --shadow-soft: 0 10px 40px rgba(0,0,0,0.06);
    --shadow-hover: 0 30px 60px rgba(0,0,0,0.12);
}

/* Reset scoped to immersive page content to avoid breaking global header
   (le kit "visit-listing" gère son propre reset via seo-pages.css) */
.hero-immersive *, .section:not(.visit-listing) *, .reco-section *, .landmark-main *, .services-grid *, .gallery-section *, .info-split *, .reviews-grid *, .hp-section * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Base styles should not affect the global header */
.hero-immersive, .section, .reco-section, .landmark-main {
    font-family: var(--font-body);
    color: var(--dark);
    line-height: 1.6;
}

.hero-immersive img, .section:not(.visit-listing) img {
    max-width: 100%;
    height: auto;
    display: block;
}


.hero-immersive a, .section:not(.visit-listing) a, .reco-section a, .landmark-main a, .services-grid a, .gallery-section a, .info-split a, .reviews-grid a, .hp-section a {
    color: var(--sea);
    text-decoration: none;
    transition: color 0.3s var(--ease);
}

.hero-immersive a:hover, .section:not(.visit-listing) a:hover, .reco-section a:hover, .landmark-main a:hover, .services-grid a:hover, .gallery-section a:hover, .info-split a:hover, .reviews-grid a:hover, .hp-section a:hover {
    color: var(--sea-dark);
}


/* ============================================
   HERO FULLSCREEN - Immersif
   ============================================ */

.hero-immersive {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img,
.hero-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Removed filter: brightness(0.7) to fix washed out look */
}

.hero-overlay {
    position: absolute;
    inset: 0;
    /* Cinematic dark overlay instead of cyan */
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.2) 0%,
        rgba(0, 0, 0, 0.5) 60%,
        rgba(0, 0, 0, 0.8) 100%
    );
    mix-blend-mode: multiply;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: calc(var(--section-pad) * 1.5) max(5%, 2rem) var(--section-pad);
    max-width: var(--container);
    margin: 0 auto;
    width: 100%;
    color: var(--white);
}

.hero-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 1.5rem;
    color: var(--turquoise);
}

.hero-label::before {
    content: '';
    width: 3rem;
    height: 1px;
    background: var(--turquoise);
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 8vw, 6rem);
    font-weight: 700;
    line-height: 1.05;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 30px rgba(0,0,0,0.3);
    animation: fadeUp 1s var(--ease) 0.2s both;
}

.hero-title em {
    font-style: italic;
    color: var(--turquoise);
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    max-width: 55ch;
    margin-bottom: 3rem;
    opacity: 0.9;
    font-weight: 300;
    animation: fadeUp 1.2s var(--ease) 0.4s both;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: var(--turquoise);
    color: var(--sea-dark);
    padding: 1.25rem 2.5rem;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 100px;
    transition: all 0.4s var(--ease);
    animation: fadeUp 1s var(--ease) 0.6s both;
}

.hero-cta:hover {
    background: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.hero-cta svg {
    width: 1.25rem;
    height: 1.25rem;
    transition: transform 0.3s var(--ease);
}

.hero-cta:hover svg {
    transform: translateX(5px);
}

/* Scroll indicator */
.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--white);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.7;
    animation: bounce 2s infinite;
}

.hero-scroll svg {
    width: 1.5rem;
    height: 1.5rem;
}

/* ============================================
   SECTIONS - Layout Premium
   ============================================ */

.section:not(.visit-listing) {
    padding: var(--section-pad) 0;
    position: relative;
}

.section-alt {
    background: var(--sand-light);
}

.section-sea {
    background: var(--sea-dark);
    color: var(--white);
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 5%;
}

.section-header {
    text-align: center;
    max-width: 70ch;
    margin: 0 auto calc(var(--section-pad) * 0.6);
}

.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--sea);
    margin-bottom: 1rem;
}

.section-sea .section-tag {
    color: var(--turquoise);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1.25rem;
}

.section-title em {
    font-style: italic;
    color: var(--sea);
}

.section-sea .section-title em {
    color: var(--turquoise);
}

.section-intro {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    color: var(--gray);
    line-height: 1.7;
}

.section-sea .section-intro {
    color: rgba(255,255,255,0.8);
}

/* ============================================
   DESCRIPTION - Large Typography
   ============================================ */

.description-section {
    background: var(--white);
}

/* ============================================
   LANDMARKS GRID - Sites d'Exception
   ============================================ */
.landmarks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 3rem;
}

.landmark-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    aspect-ratio: 4/5;
    background: var(--black);
    cursor: pointer;
    transition: all 0.6s var(--ease);
}

.landmark-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-hover);
}

.landmark-img-wrap {
    position: absolute;
    inset: 0;
}

.landmark-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease);
}

.landmark-card:hover img {
    transform: scale(1.1);
}

.landmark-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(13, 27, 26, 0.9) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2.5rem;
    color: var(--white);
}

.landmark-type {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--turquoise);
    margin-bottom: 0.5rem;
}

.landmark-name {
    font-family: var(--font-display);
    font-size: 2rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.landmark-cta {
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s var(--ease);
}

.landmark-card:hover .landmark-cta {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   RECOMMENDATIONS - Hotels & Restaurants
   ============================================ */
.reco-section {
    background: var(--light);
}

.reco-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.reco-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-soft);
    transition: all 0.4s var(--ease);
}

.reco-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.reco-img {
    height: 200px;
    overflow: hidden;
}

.reco-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reco-content {
    padding: 1.5rem;
    flex: 1;
}

.reco-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.reco-meta {
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 1rem;
}

.reco-btn:hover {
    color: var(--sea-dark);
    text-decoration: underline;
}

/* ============================================
   LANDMARK SINGLE - Template Styles
   ============================================ */
.landmark-single-hero {
    min-height: 60vh;
    display: flex;
    align-items: flex-end;
    padding-bottom: 5rem;
    position: relative;
    background-size: cover;
    background-position: center;
    color: var(--white);
}

.landmark-single-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 124, 168, 0.9) 0%, transparent 70%);
}

.landmark-hero-content {
    position: relative;
    z-index: 2;
}

.landmark-hero-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.landmark-badge {
    background: var(--turquoise);
    color: var(--sea-dark);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.landmark-single-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 0;
}

/* Content Layout */
.landmark-main {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    padding: 5rem 0;
}

.landmark-article {
    font-size: 1.1rem;
    line-height: 1.8;
}

.landmark-intro {
    font-size: 1.4rem;
    font-family: var(--font-display);
    color: var(--sea-dark);
    margin-bottom: 3rem;
    line-height: 1.5;
    border-left: 4px solid var(--turquoise);
    padding-left: 2rem;
}

.historical-content h3 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    margin: 3rem 0 1.5rem;
    color: var(--dark);
}

.historical-content p {
    margin-bottom: 1.5rem;
}

/* Sidebar Modern */
.landmark-sidebar-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    margin-bottom: 2rem;
    border: 1px solid rgba(0,0,0,0.05);
}

.sidebar-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.info-item-single {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.info-item-single:last-child {
    margin-bottom: 0;
}

.info-item-icon {
    color: var(--sea);
    font-size: 1.25rem;
}

.info-item-text strong {
    display: block;
    font-size: 0.9rem;
    color: var(--dark);
}

.info-item-text span {
    font-size: 0.85rem;
    color: var(--gray);
}

/* ============================================
   SERVICES - Cards Modernes
   ============================================ */

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: all 0.4s var(--ease);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--turquoise), var(--sea-light));
    transform: scaleX(0);
    transition: transform 0.4s var(--ease);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 4rem;
    height: 4rem;
    background: var(--turquoise-soft);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s var(--ease);
}

.service-card:hover .service-icon {
    background: var(--sea);
    transform: scale(1.1);
}

.service-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--dark);
}

.service-desc {
    color: var(--gray);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* ============================================
   GALERIE - Masonry Style
   ============================================ */

.gallery-section {
    background: var(--black);
    padding: 0;
}

.gallery-header {
    padding: var(--section-pad) 0 3rem;
    text-align: center;
}

.gallery-header h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--white);
    margin-bottom: 1rem;
}

.gallery-header p {
    color: rgba(255,255,255,0.7);
    font-size: 1.1rem;
}

.gallery-masonry {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
}

.gallery-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gallery-item:nth-child(4) { grid-column: span 2; }

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 50%, rgba(0,0,0,0.8));
    opacity: 0;
    transition: opacity 0.4s var(--ease);
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}

.gallery-item-title {
    color: var(--white);
    font-weight: 600;
    font-size: 1.1rem;
}

/* ============================================
   INFOS - Split Layout
   ============================================ */

.info-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.info-content h2 {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.info-list {
    list-style: none;
    margin: 2rem 0;
}

.info-list li {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

.info-list-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.info-list-content strong {
    display: block;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.info-list-content span {
    color: var(--gray);
    font-size: 0.95rem;
}

.info-visual {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
}

.info-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4/3;
}

.info-map-overlay {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    right: 2rem;
    background: var(--white);
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

/* ============================================
   AVIS - Testimonials Cards
   ============================================ */

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.review-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    position: relative;
}

.review-card::before {
    content: '"';
    font-family: var(--font-display);
    font-size: 6rem;
    color: var(--turquoise);
    opacity: 0.3;
    position: absolute;
    top: -0.5rem;
    left: 1.5rem;
    line-height: 1;
}

.review-stars {
    color: var(--sunset);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.review-text {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--gray);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.review-avatar {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: var(--sea-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 600;
}

.review-author-info strong {
    display: block;
    font-weight: 600;
}

.review-author-info span {
    font-size: 0.85rem;
    color: var(--gray);
}

/* ============================================
   PUBLICITÉ INTÉGRÉE - Native Style
   ============================================ */

.ad-native {
    background: linear-gradient(135deg, var(--sea) 0%, var(--sea-dark) 100%);
    border-radius: 24px;
    padding: 3rem;
    margin: 3rem 0;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.ad-native::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(ellipse, var(--turquoise-soft) 0%, transparent 70%);
    pointer-events: none;
}

.ad-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    opacity: 0.7;
    margin-bottom: 1rem;
}

.ad-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    align-items: center;
    position: relative;
}

.ad-title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 1rem;
}

.ad-desc {
    opacity: 0.9;
    margin-bottom: 1.5rem;
    max-width: 40ch;
}

.ad-cta {
    display: inline-flex;
    background: var(--turquoise);
    color: var(--sea-dark);
    padding: 1rem 2rem;
    border-radius: 100px;
    font-weight: 600;
    transition: all 0.3s var(--ease);
}

.ad-cta:hover {
    background: var(--white);
    transform: translateY(-2px);
}

.ad-visual {
    position: relative;
}

.ad-visual img {
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
    .gallery-masonry {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-item:nth-child(1) {
        grid-column: span 2;
        grid-row: span 2;
    }
    
    .info-split {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .ad-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .ad-desc {
        max-width: none;
    }
    
    .ad-visual {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero-content {
        padding-top: 8rem;
    }
    
    .hero-title {
        font-size: 2.25rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-masonry {
        grid-template-columns: 1fr;
    }
    
    .gallery-item:nth-child(1) {
        grid-column: span 1;
        grid-row: span 1;
        aspect-ratio: 4/3;
    }
    
    .info-visual {
        border-radius: 16px;
    }
    
    .info-map-overlay {
        position: static;
        margin-top: 1rem;
    }
    
    .ad-native {
        padding: 2rem;
        margin: 2rem 0;
        border-radius: 16px;
    }
}

@media (max-width: 480px) {
    .service-card {
        padding: 1.75rem;
    }
    
    .review-card {
        padding: 1.75rem;
    }
}

/* ============================================
   UTILITAIRES
   ============================================ */

.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.hidden { display: none; }

/* ============================================
   ACCESSIBILITY & UTILITAIRES
   ============================================ */

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .hero-scroll,
    .service-card::before,
    .gallery-item img {
        animation: none !important;
        transition: none !important;
    }
}

/* Keyboard navigation */
.keyboard-navigation *:focus {
    outline: 3px solid var(--turquoise);
    outline-offset: 3px;
}

/* Focus visible for mouse users */
:not(.keyboard-navigation) *:focus {
    outline: none;
}

/* Screen reader only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Image loading states */
img[data-src] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img.loaded {
    opacity: 1;
}

img.error {
    opacity: 0.5;
    filter: grayscale(100%);
}

/* Selection color */
::selection {
    background: var(--turquoise);
    color: var(--sea-dark);
}
