/* =========================================================
   Mobile Pack — Oh La La Tours Bogotá
   Scope: mobile-first; ce fichier est chargé via media="(max-width: 767px)"
   ========================================================= */

/* --------------------------------------------------
   Mobile-first base
   -------------------------------------------------- */
:root {
  --container: 1160px;
  --gap: 1rem;
  --radius: 1rem;
  --shadow: 0 10px 24px rgba(0,0,0,.08);
  --brand: #0e7490;      /* cyan-700 */
  --brand-600: #0891b2;
  --text: #0f172a;       /* slate-900 */
  --muted: #475569;      /* slate-600 */
  --bg: #ffffff;
}

html { box-sizing: border-box; font-size: 16px; }
*, *::before, *::after { box-sizing: inherit; }
body {
  margin: 0; color: var(--text); background: var(--bg);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Noto Sans", "Helvetica Neue", Arial, "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.5; -webkit-text-size-adjust: 100%;
}
img, svg, video { max-width: 100%; height: auto; }
img { display: block; }

.container { width: min(100% - 2rem, var(--container)); margin-inline: auto; }
.stack > * + * { margin-top: var(--gap); }
.grid { display: grid; gap: var(--gap); }

/* Titres fluides */
h1 { font-size: clamp(1.6rem, 2vw + 1rem, 2.4rem); line-height: 1.15; }
h2 { font-size: clamp(1.3rem, 1.5vw + 0.9rem, 1.8rem); }
h3 { font-size: clamp(1.1rem, 1vw + 0.8rem, 1.35rem); }

/* Liens & boutons */
a { color: inherit; text-decoration: none; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem; padding: .875rem 1rem; border-radius: 999px;
  border: 1px solid transparent; background: var(--brand); color: #fff;
  font-weight: 600; cursor: pointer; text-align: center; min-height: 44px;
}
.btn:hover { background: var(--brand-600); }
.btn-outline { background: transparent; color: var(--brand); border-color: var(--brand); }

/* Listes de cartes responsive */
.cards { display: grid; grid-template-columns: 1fr; gap: var(--gap); }
.card {
  background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
.card > .card-body { padding: 1rem; }

/* Clamp pour avis / textes longs (compatible avec votre logique existante) */
.clamp { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
.clamp--3 { -webkit-line-clamp: 3; }
.clamp--6 { -webkit-line-clamp: 6; }

/* --------------------------------------------------
   Héros / bannières avec image de fond inline
   -------------------------------------------------- */
.hero { position: relative; color: #fff; min-height: 46vh; display: grid; place-items: end; }
.hero.background-half { background-size: cover; background-position: center; }
.hero .hero-content { width: 100%; padding: 2rem; background: linear-gradient(to top, rgba(0,0,0,.45), rgba(0,0,0,0)); }
.hero .hero-topbar { display: flex; align-items: center; justify-content: space-between; padding: .75rem 1rem; }

/* Optionnel : image héros optimisée pour mobile
.hero { background-image: url('/static/images/accueil_mobile.webp') !important; }
*/

/* Lang switcher : en ligne sur desktop, dans le menu burger sur mobile */
#lang-switcher a { padding: .25rem .35rem; display: inline-block; }

/* --------------------------------------------------
   Header + Nav (mobile)
   -------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 40; background: #fff; border-bottom: 1px solid #e5e7eb; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; padding: .75rem 1rem; }
.brand a { font-weight: 800; letter-spacing: .2px; }

/* Burger */
.burger { appearance: none; background: transparent; border: 0; padding: .5rem; cursor: pointer; display: grid; gap: 4px; -webkit-tap-highlight-color: transparent; }
.burger span { width: 26px; height: 2px; background: #0f172a; display: block; transition: transform .2s ease, opacity .2s ease; border-radius: 1px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Nav overlay (mobile) */
.nav-hero {
  position: fixed; inset: 56px 0 auto 0; /* sous le header */
  background: #fff; border-top: 1px solid #e5e7eb; box-shadow: 0 10px 24px rgba(0,0,0,.08);
  transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease;
  padding: .5rem .75rem; display: grid; gap: .25rem;
  font-size: 0; /* masque les séparateurs ' | ' inclus en HTML */
}
.nav-hero.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
.nav-hero a { font-size: 1rem; padding: .75rem .5rem; border-radius: .75rem; display: inline-block; }
.nav-hero a:hover { background: #f1f5f9; }

.no-scroll { overflow: hidden; height: 100vh; }

/* --------------------------------------------------
   Formulaires (mobile)
   -------------------------------------------------- */
.form-grid { display: grid; gap: 1rem; }
.input, input, select, textarea {
  width: 100%; padding: .85rem .95rem; border: 1px solid #e5e7eb; border-radius: .9rem;
  background: #fff; color: var(--text); font-size: 1rem;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(14,116,144,.15); }
label { font-weight: 600; font-size: .95rem; }

/* --------------------------------------------------
   Tables responsive
   -------------------------------------------------- */
.table-responsive { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); }
.table-responsive table { width: 700px; max-width: 100%; border-collapse: collapse; }
.table-responsive th, .table-responsive td { padding: .75rem; border-bottom: 1px solid #e5e7eb; text-align: left; }

/* --------------------------------------------------
   Sections espacées
   -------------------------------------------------- */
.section { padding: 2rem 0; }
.section-sm { padding: 1rem 0; }

/* --------------------------------------------------
   Footer
   -------------------------------------------------- */
.site-footer { padding: 2rem 0; background: #0f172a; color: #cbd5e1; }

/* --------------------------------------------------
   Sticky CTA (mobile) — toujours visible en bas
   -------------------------------------------------- */
.sticky-cta{
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  background: rgba(255,255,255,.96);
  border-top: 1px solid #e5e7eb;
  padding: .5rem .75rem calc(.5rem + env(safe-area-inset-bottom));
  backdrop-filter: saturate(180%) blur(8px);
  box-shadow: 0 -10px 24px rgba(0,0,0,.08);
}
.sticky-cta .row { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }

/* --------------------------------------------------
   Accessibilité & mouvement
   -------------------------------------------------- */
:focus-visible { outline: 2px dashed var(--brand); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce){
  *{ animation: none !important; transition: none !important; }
}

/* Viewport mobile dynamique (évite les sauts de hauteur) */
@supports (height: 100dvh){
  .hero{ min-height: 46dvh; }
}

/* --------------------------------------------------
   Breakpoints (tablette & desktop)
   -------------------------------------------------- */
@media (min-width: 640px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  .hero { min-height: 52vh; }
  .nav-hero {
    position: static; inset: auto; transform: none; opacity: 1; pointer-events: auto;
    box-shadow: none; display: flex; gap: .25rem; padding: 0;
    font-size: inherit; /* réactive l'affichage normal des séparateurs ' | ' */
  }
  .nav-hero a { font-size: inherit; }
  .burger { display: none; }
  .site-header .wrap { padding: .75rem 1.25rem; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
  .container { width: min(100% - 4rem, var(--container)); }
}
/* c'est bon */
