/* RETBA TOURS — motion, atmosphere & responsive */

:root {
    --brand-orange: #E8631A;
    --brand-soft: #FDF0E8;
    --brand-blue: #1B6CA8;
    --brand-green: #0D7A5F;
    --brand-sand: #F5E6C8;
    --brand-ink: #1A1A2E;
    --header-h: 64px;
    --site-max: 90rem; /* ~1440px — large sans coller aux bords */
}

/* Conteneur unique header / pages / footer */
.site-container {
    width: 100%;
    max-width: var(--site-max);
    margin-inline: auto;
    padding-inline: 1.25rem;
}

@media (min-width: 640px) {
    .site-container {
        padding-inline: 1.75rem;
    }
}

@media (min-width: 1024px) {
    .site-container {
        padding-inline: 2.5rem;
    }
}

@media (min-width: 1280px) {
    .site-container {
        padding-inline: 3rem;
    }
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Figtree", system-ui, sans-serif;
    color: var(--brand-ink);
    background:
        radial-gradient(1200px 600px at 10% -10%, rgba(232, 99, 26, 0.08), transparent 55%),
        radial-gradient(900px 500px at 100% 0%, rgba(27, 108, 168, 0.08), transparent 50%),
        #fff;
}

h1, h2, h3, .font-display {
    font-family: "Syne", sans-serif;
    overflow-wrap: anywhere;
}

.font-accent {
    font-family: "Outfit", sans-serif;
}

img:not(.brand-logo__img), video {
    max-width: 100%;
    height: auto;
}

/* Logo marque — composant unique (nav / footer / auth) */
.brand-logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    line-height: 0;
}

.brand-logo__img,
.brand-logo img {
    display: block;
    width: auto !important;
    max-width: 180px !important;
    height: 40px !important;
    max-height: 40px !important;
    object-fit: contain;
    object-position: left center;
}

.brand-logo--nav img,
.brand-logo--footer img {
    height: 40px !important;
    max-height: 40px !important;
}

.brand-logo--auth img {
    height: 56px !important;
    max-height: 56px !important;
    max-width: 220px !important;
}

.brand-logo-plate {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    padding: 0.375rem;
    border-radius: 0.75rem;
    background: #fff;
}

input, select, textarea, button {
    max-width: 100%;
    font-size: 16px; /* évite le zoom iOS */
}

.skeleton {
    background: linear-gradient(90deg, #FDF0E8 25%, #F5E6C8 37%, #FDF0E8 63%);
    background-size: 400% 100%;
    animation: shimmer 1.2s ease-in-out infinite;
}

@keyframes shimmer {
    0% { background-position: 100% 0; }
    100% { background-position: 0 0; }
}

@keyframes kenburns {
    0% { transform: scale(1) translate3d(0, 0, 0); }
    100% { transform: scale(1.08) translate3d(-1.5%, -1%, 0); }
}

@keyframes rise-in {
    from {
        opacity: 0;
        transform: translate3d(0, 28px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes soft-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.hero-media {
    animation: kenburns 22s ease-out forwards;
    will-change: transform;
}

.hero-home,
.hero-home-inner {
    min-height: 78svh;
}

@media (min-width: 640px) {
    .hero-home,
    .hero-home-inner {
        min-height: 85svh;
    }
}

.reveal {
    opacity: 0;
    transform: translate3d(0, 24px, 0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.rise-in {
    animation: rise-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.rise-in-delay-1 { animation-delay: 0.12s; }
.rise-in-delay-2 { animation-delay: 0.24s; }
.rise-in-delay-3 { animation-delay: 0.36s; }

.site-header {
    transition: background-color 0.25s ease, box-shadow 0.25s ease, backdrop-filter 0.25s ease;
}

.site-header.is-scrolled {
    background-color: rgba(255, 255, 255, 0.94);
    box-shadow: 0 8px 30px rgba(26, 26, 46, 0.06);
    backdrop-filter: blur(12px);
}

.site-header.nav-open {
    background-color: #fff;
}

.mobile-nav {
    display: none;
}

.mobile-nav.is-open,
.mobile-nav:not(.hidden):not([hidden]) {
    display: block;
}

@media (min-width: 768px) {
    .mobile-nav {
        display: none !important;
    }
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 2px;
    background: var(--brand-orange);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.nav-link:hover::after {
    transform: scaleX(1);
}

.activity-card-media img {
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.activity-card:hover .activity-card-media img {
    transform: scale(1.06);
}

.btn-primary {
    transition: transform 0.2s ease, filter 0.2s ease, background-color 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
}

.btn-primary:active {
    transform: translateY(0);
}

.soft-float {
    animation: soft-float 5s ease-in-out infinite;
}

.mobile-sticky-cta {
    position: sticky;
    bottom: 0;
    z-index: 20;
    padding-bottom: env(safe-area-inset-bottom, 0);
}

.restaurant-tab.is-active {
    background: var(--brand-orange);
    color: #fff;
}

@media (max-width: 1023px) {
    .restaurant-aside {
        display: flex;
        flex-direction: column-reverse;
        gap: 1.25rem;
    }
}

@media (max-width: 767px) {
    .hero-home,
    .hero-home-inner {
        min-height: 78svh;
    }

    .hero-home-inner {
        padding-top: calc(5rem + env(safe-area-inset-top, 0px));
    }

    .search-panel {
        margin-left: 0;
        margin-right: 0;
        border-radius: 1.25rem;
    }

    .activity-card:hover {
        transform: none;
    }

    .activity-card:hover .activity-card-media img {
        transform: none;
    }

    /* Récap booking : sticky bas d’écran */
    .booking-mobile-bar {
        position: sticky;
        bottom: 0;
        z-index: 25;
        margin-left: -1rem;
        margin-right: -1rem;
        padding: 0.85rem 1rem calc(0.85rem + env(safe-area-inset-bottom, 0px));
        background: rgba(255, 255, 255, 0.96);
        border-top: 1px solid rgba(245, 230, 200, 0.9);
        backdrop-filter: blur(10px);
        box-shadow: 0 -10px 30px rgba(26, 26, 46, 0.08);
    }
}

@media (min-width: 768px) {
    .booking-mobile-bar {
        display: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .hero-media,
    .rise-in,
    .soft-float,
    .reveal {
        animation: none !important;
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}
