/* ==========================================================================
   Nabyla Tours — feuille de styles principale
   Palette dérivée du logo (rouge échantillonné #C8090B)
   Display : Fraunces · Corps : Nunito Sans · Accent manuscrit : Caveat
   ========================================================================== */

:root {
  --rouge: #c8090b;
  --rouge-fonce: #9c0709;
  --rouge-clair: #e8536a;
  --encre: #2b1a1a;
  --encre-doux: #6b5957;
  --creme: #fbf7f2;
  --sable: #f3ebe2;
  --blanc: #ffffff;
  --ligne: #ead9cc;

  --ff-display: "Fraunces", Georgia, "Times New Roman", serif;
  --ff-corps: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ff-script: "Caveat", "Segoe Script", cursive;

  --rayon: 18px;
  --rayon-s: 10px;
  --ombre: 0 18px 40px -22px rgba(120, 12, 14, .35);
  --ombre-douce: 0 8px 24px -16px rgba(43, 26, 26, .35);
  --max: 1180px;
  --gap: clamp(1.5rem, 4vw, 3.25rem);
  --transition: .35s cubic-bezier(.2, .7, .2, 1);
}

/* --- Reset léger --- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--ff-corps);
  color: var(--encre);
  background: var(--creme);
  line-height: 1.65;
  font-size: 1.0625rem;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--rouge-fonce); text-underline-offset: .2em; }
ul { padding: 0; list-style: none; }

/* --- Accessibilité --- */
:focus-visible { outline: 3px solid var(--rouge); outline-offset: 3px; border-radius: 4px; }
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 1000;
  background: var(--rouge); color: #fff; padding: .7rem 1.1rem; border-radius: var(--rayon-s);
  transition: top .25s;
}
.skip-link:focus { top: 1rem; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --- Typographie --- */
h1, h2, h3, h4 { font-family: var(--ff-display); font-weight: 600; line-height: 1.12; color: var(--encre); }
h1 { font-size: clamp(2.1rem, 5.5vw, 3.6rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.7rem, 3.8vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); }
p { color: var(--encre-doux); }
strong { color: var(--encre); }

.eyebrow {
  font-family: var(--ff-script);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  color: var(--rouge);
  line-height: 1; display: inline-block; margin-bottom: .35rem;
}

/* --- Layout --- */
.wrap { width: min(100% - 2.4rem, var(--max)); margin-inline: auto; }
.section { padding-block: clamp(3.25rem, 8vw, 6rem); }
.section--sable { background: var(--sable); }
.section__head { max-width: 56ch; margin-bottom: clamp(1.75rem, 4vw, 2.75rem); }
.section__head.center { margin-inline: auto; text-align: center; }
.lead { font-size: 1.15rem; color: var(--encre-doux); }

/* Signature : ligne itinéraire pointillée */
.route-line { height: 38px; display: flex; align-items: center; justify-content: center; }
.route-line svg { width: min(100%, 760px); overflow: visible; }

/* --- Boutons --- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--ff-corps); font-weight: 800; font-size: 1rem;
  padding: .85rem 1.5rem; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; text-decoration: none; transition: var(--transition);
  line-height: 1;
}
.btn--primary { background: var(--rouge); color: #fff; box-shadow: var(--ombre); }
.btn--primary:hover { background: var(--rouge-fonce); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--encre); border-color: var(--ligne); }
.btn--ghost:hover { border-color: var(--rouge); color: var(--rouge); }
.btn--light { background: #fff; color: var(--rouge); }
.btn--light:hover { transform: translateY(-2px); }
.btn--block { width: 100%; justify-content: center; }

/* ==========================================================================
   Header / navigation
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251, 247, 242, .92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--ligne);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .7rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand img { height: 46px; width: auto; }
.brand__txt { font-family: var(--ff-display); font-weight: 600; color: var(--rouge); font-size: 1.15rem; line-height: 1; }

.nav__menu { display: flex; align-items: center; gap: 1.4rem; }
.nav__menu a {
  text-decoration: none; color: var(--encre); font-weight: 700; font-size: .98rem;
  padding: .35rem 0; position: relative;
}
.nav__menu a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--rouge); transition: width .25s;
}
.nav__menu a:hover::after, .nav__menu a[aria-current="page"]::after { width: 100%; }
.nav__menu a[aria-current="page"] { color: var(--rouge); }

.nav__right { display: flex; align-items: center; gap: 1rem; }
.lang { display: flex; align-items: center; gap: .35rem; }
.lang a {
  font-size: 1.35rem; line-height: 1; text-decoration: none; border-radius: 6px;
  padding: .15rem; filter: grayscale(.6) opacity(.7); transition: var(--transition);
}
.lang a:hover { filter: none; transform: translateY(-1px); }
.lang a[aria-current="true"] { filter: none; }

.nav__cta { display: inline-flex; }
.nav__menu-cta { display: none; }
.nav__menu a.nav__menu-cta { color: #fff; justify-content: center; text-align: center; }
.burger {
  display: none; background: none; border: 0; cursor: pointer; padding: .4rem;
  width: 44px; height: 44px; color: var(--encre);
}
.burger svg { width: 26px; height: 26px; }

@media (max-width: 920px) {
  .nav__cta { display: none; }
  .burger { display: inline-flex; align-items: center; justify-content: center; }
  .nav__menu {
    position: fixed; inset: 64px 0 auto 0; flex-direction: column; align-items: stretch;
    gap: 0; background: var(--creme); border-bottom: 1px solid var(--ligne);
    padding: .5rem 1.2rem 1.4rem; box-shadow: var(--ombre-douce);
    transform: translateY(-130%); transition: transform var(--transition);
  }
  .nav__menu.open { transform: translateY(0); }
  .nav__menu a { padding: .85rem 0; border-bottom: 1px solid var(--ligne); }
  .nav__menu a::after { display: none; }
  .nav__menu-cta { display: inline-flex; margin-top: .9rem; }
  .nav__menu .btn { margin-top: .9rem; }
}

/* ==========================================================================
   Héro carrousel
   ========================================================================== */
.hero { position: relative; }
.hero__carousel { position: relative; height: clamp(440px, 78vh, 720px); }
.hero__slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity 1.1s ease;
  background-size: cover; background-position: center;
}
.hero__slide.active { opacity: 1; }
.hero__slide::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(43,26,26,.15) 0%, rgba(43,26,26,.55) 70%, rgba(43,26,26,.7) 100%);
}
.hero__inner {
  position: absolute; inset: 0; z-index: 2; display: flex; align-items: flex-end;
}
.hero__content { color: #fff; padding-bottom: clamp(3rem, 8vw, 5rem); max-width: 40ch; }
.hero__content .eyebrow { color: #fff; }
.hero__content h1 { color: #fff; text-shadow: 0 2px 18px rgba(0,0,0,.3); }
.hero__content p { color: rgba(255,255,255,.92); font-size: 1.15rem; margin-top: .6rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 1.5rem; }
.hero__dots { position: absolute; z-index: 3; bottom: 1.3rem; left: 50%; transform: translateX(-50%); display: flex; gap: .6rem; }
.hero__dots button {
  width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; background: transparent;
  cursor: pointer; padding: 0; transition: var(--transition);
}
.hero__dots button[aria-selected="true"] { background: #fff; transform: scale(1.15); }
.hero__arrow {
  position: absolute; z-index: 3; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.5); color: #fff;
  width: 46px; height: 46px; border-radius: 50%; cursor: pointer; display: grid; place-items: center;
  transition: var(--transition);
}
.hero__arrow:hover { background: rgba(255,255,255,.35); }
.hero__arrow.prev { left: 1rem; }
.hero__arrow.next { right: 1rem; }
@media (max-width: 640px) { .hero__arrow { display: none; } }

/* ==========================================================================
   Grilles & cartes
   ========================================================================== */
.grid { display: grid; gap: clamp(1.1rem, 2.5vw, 1.8rem); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 920px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid--4, .grid--3, .grid--2 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border-radius: var(--rayon); overflow: hidden;
  box-shadow: var(--ombre-douce); transition: var(--transition);
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
}
a.card:hover { transform: translateY(-6px); box-shadow: var(--ombre); }
.card__media { aspect-ratio: 3 / 2; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
a.card:hover .card__media img { transform: scale(1.05); }
.card__body { padding: 1.15rem 1.25rem 1.35rem; display: flex; flex-direction: column; gap: .45rem; flex: 1; }
.card__body h3 { color: var(--encre); }
.card__body p { font-size: .98rem; }
.card__link { margin-top: auto; color: var(--rouge); font-weight: 800; display: inline-flex; align-items: center; gap: .35rem; }

/* Cartes thématiques (homepage) */
.theme-card { position: relative; border-radius: var(--rayon); overflow: hidden; min-height: 240px; display: flex; align-items: flex-end; text-decoration: none; box-shadow: var(--ombre-douce); }
.theme-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.theme-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(43,26,26,.75)); }
.theme-card span { position: relative; z-index: 2; color: #fff; font-family: var(--ff-display); font-size: 1.35rem; font-weight: 600; padding: 1.1rem 1.25rem; }
.theme-card:hover img { transform: scale(1.06); }

/* ==========================================================================
   Témoignages
   ========================================================================== */
.quote {
  background: #fff; border-radius: var(--rayon); padding: 1.6rem 1.6rem 1.4rem;
  box-shadow: var(--ombre-douce); position: relative; border-top: 4px solid var(--rouge);
}
.quote__mark { font-family: var(--ff-display); font-size: 3.2rem; color: var(--rouge-clair); line-height: .5; height: 1.2rem; display: block; }
.quote p { color: var(--encre); font-size: 1.05rem; }
.quote__author { margin-top: 1rem; font-weight: 800; color: var(--encre); }
.quote__trip { color: var(--encre-doux); font-size: .9rem; }

/* ==========================================================================
   Bloc "qui sommes-nous" / split
   ========================================================================== */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: var(--gap); align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media img { border-radius: var(--rayon); box-shadow: var(--ombre); width: 100%; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } .split--reverse .split__media { order: 0; } }

/* ==========================================================================
   Formulaire
   ========================================================================== */
.form { display: grid; gap: 1.1rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field label { font-weight: 700; font-size: .92rem; color: var(--encre); }
.field input, .field select, .field textarea {
  font-family: var(--ff-corps); font-size: 1rem; color: var(--encre);
  background: #fff; border: 1.5px solid var(--ligne); border-radius: var(--rayon-s);
  padding: .8rem .9rem; transition: border-color .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--rouge); outline: none; box-shadow: 0 0 0 3px rgba(200,9,11,.12); }
.field textarea { resize: vertical; min-height: 130px; }
.field--check { flex-direction: row; align-items: flex-start; gap: .6rem; }
.field--check input { width: 1.15rem; height: 1.15rem; margin-top: .25rem; accent-color: var(--rouge); }
.field--check label { font-weight: 400; color: var(--encre-doux); font-size: .92rem; }
.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; }
.form__status { font-weight: 700; padding: .8rem 1rem; border-radius: var(--rayon-s); display: none; }
.form__status.ok { display: block; background: #e7f6ec; color: #1d6b3a; }
.form__status.err { display: block; background: #fdecec; color: var(--rouge-fonce); }
.form-success { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .9rem; background: #e7f6ec; border: 1px solid #b6e0c2; border-radius: var(--rayon); padding: 2.2rem 1.6rem; outline: none; }
.form-success svg { color: #1c9d54; }
.form-success p { margin: 0; font-weight: 600; color: #14532d; max-width: 42ch; line-height: 1.5; }

/* Bloc coordonnées */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: var(--gap); align-items: start; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
.coord { display: grid; gap: 1rem; }
.coord li { display: flex; gap: .8rem; align-items: flex-start; }
.coord .ic { color: var(--rouge); flex: 0 0 auto; margin-top: .15rem; }
.coord a { color: var(--encre); text-decoration: none; font-weight: 700; }
.coord a:hover { color: var(--rouge); }
.coord .meta { color: var(--encre-doux); font-size: .92rem; font-weight: 400; }

/* ==========================================================================
   Galerie + lightbox
   ========================================================================== */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
@media (max-width: 820px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .gallery { grid-template-columns: 1fr; } }
.gallery__item { background: #fff; border-radius: var(--rayon); overflow: hidden; box-shadow: var(--ombre-douce); display: flex; flex-direction: column; }
.gallery__btn { border: 0; padding: 0; cursor: zoom-in; background: none; display: block; }
.gallery__btn img { aspect-ratio: 4/3; width: 100%; object-fit: cover; transition: transform .5s; }
.gallery__btn:hover img { transform: scale(1.05); }
.gallery__cap { padding: .85rem 1rem; font-size: .95rem; color: var(--encre-doux); }
.gallery__cta { margin: 0 1rem 1.1rem; }

.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(20,10,10,.92); display: none; align-items: center; justify-content: center; flex-direction: column; padding: 2rem 1rem; }
.lightbox.open { display: flex; }
.lightbox img { max-width: min(92vw, 1100px); max-height: 72vh; border-radius: var(--rayon-s); box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.lightbox__cap { color: #fff; margin-top: 1rem; font-size: 1.05rem; text-align: center; max-width: 60ch; }
.lightbox__close { position: absolute; top: 1.1rem; right: 1.2rem; background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.4); color: #fff; width: 46px; height: 46px; border-radius: 50%; cursor: pointer; font-size: 1.4rem; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.4); color: #fff; width: 50px; height: 50px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; }
.lightbox__nav.prev { left: 1rem; } .lightbox__nav.next { right: 1rem; }

/* ==========================================================================
   Boutons flottants
   ========================================================================== */
.floaters { position: fixed; right: 1rem; bottom: 1rem; z-index: 200; display: flex; flex-direction: column; gap: .65rem; }
.floaters a {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; box-shadow: var(--ombre); transition: var(--transition);
}
.floaters a:hover { transform: translateY(-3px) scale(1.05); }
.fl-wa { background: #25d366; } .fl-tel { background: var(--rouge); }
.fl-ig { background: #d6249f; } .fl-fb { background: #1877f2; }
.floaters svg { width: 26px; height: 26px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--encre); color: #f3e8e3; padding-block: clamp(2.5rem, 6vw, 4rem) 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: var(--gap); }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: 1.05rem; margin-bottom: .9rem; }
.site-footer a { color: #f3e8e3; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer ul { display: grid; gap: .5rem; font-size: .96rem; }
.footer-brand img { height: 64px; background: #fff; padding: .5rem .7rem; border-radius: var(--rayon-s); }
.footer-brand p { color: #d8c4be; margin-top: .9rem; font-size: .95rem; max-width: 32ch; }
.footer-social { display: flex; gap: .7rem; margin-top: 1rem; }
.footer-social a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.1); display: grid; place-items: center; }
.footer-social a:hover { background: var(--rouge); }
.footer-social svg { width: 20px; height: 20px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); margin-top: 2.2rem; padding-top: 1.3rem; display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; justify-content: space-between; font-size: .88rem; color: #cdb6b0; }
.footer-bottom a { color: #cdb6b0; }

/* ==========================================================================
   Bandeau cookies
   ========================================================================== */
.cookie {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 250;
  max-width: 560px; margin-inline: auto; background: #fff; color: var(--encre);
  border: 1px solid var(--ligne); border-radius: var(--rayon); box-shadow: var(--ombre);
  padding: 1.1rem 1.25rem; display: none; gap: .9rem; align-items: center; flex-wrap: wrap;
}
.cookie.show { display: flex; }
.cookie p { font-size: .92rem; color: var(--encre-doux); flex: 1 1 240px; margin: 0; }
.cookie .btn { padding: .6rem 1.1rem; font-size: .92rem; }

/* ==========================================================================
   Fil d'Ariane + page header
   ========================================================================== */
.page-hero { background: var(--sable); padding-block: clamp(2.5rem, 6vw, 4.5rem); border-bottom: 1px solid var(--ligne); }
.crumbs { font-size: .88rem; color: var(--encre-doux); margin-bottom: .6rem; }
.crumbs a { color: var(--rouge-fonce); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.prose { max-width: 70ch; }
.prose h2 { margin-top: 2.2rem; }
.prose h3 { margin-top: 1.6rem; }
.prose p, .prose li { margin-top: .8rem; }
.prose ul { list-style: disc; padding-left: 1.3rem; }
.todo { background: #fff7e6; border: 1px dashed #e0a93a; color: #8a5a00; padding: .15rem .5rem; border-radius: 6px; font-size: .85em; font-weight: 700; }

/* --- Révélation au scroll (progressive : visible par défaut, animée si JS) --- */
.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .hero__slide { transition: opacity .001ms; }
  .reveal { opacity: 1; transform: none; }
}
