/* ============================================================
   BLUE HORIZONS — global.css
   Variables · Reset · Typography · Nav · Footer · Utilitaires
   ============================================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400;1,600&family=Jost:wght@300;400&display=swap');

/* ══════════════════════════════════════════════════════════════
   CUSTOM PROPERTIES — TOKENS GLOBAUX
   ══════════════════════════════════════════════════════════════ */
:root {
  /* Typographie */
  --font-display: 'Cormorant Garamond', serif;
  --font-body: 'Jost', sans-serif;

  /* Couleurs neutres */
  --color-white:  #FAFAF8;
  --color-dark:   #1a1a1a;
  --color-footer: #111111;

  /* Accent par défaut (accueil) */
  --accent:       #1B3A6B;
  --accent-light: #4A7FBF;
  --bg-tint:      #0D1B2A;

  /* Transitions */
  --transition-smooth: 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-fast:   0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);

  /* Espacements */
  --section-pad: 120px;
  --container:   1280px;
  --gutter:      clamp(24px, 4vw, 80px);
  --nav-height:  80px;

  /* Z-index scale */
  --z-nav:     100;
  --z-overlay: 10;
  --z-content: 20;
}

/* ── Accents par page (surcharge via classe sur <body>) ── */
body.page-himalaya    { --accent: #1B3A6B; --accent-light: #4A7FBF; --bg-tint: #0D1B2A; }
body.page-randonnee   { --accent: #5C6B7A; --accent-light: #A8B8C4; --bg-tint: #2A2F33; }
body.page-ayurveda    { --accent: #9B7EB8; --accent-light: #D4C0E8; --bg-tint: #F5F0FA; }
body.page-inde        { --accent: #C4622D; --accent-light: #E8A96A; --bg-tint: #1A0E07; }
body.page-hebergement { --accent: #2D5A3D; --accent-light: #7BAF8E; --bg-tint: #0F1F16; }
body.page-engagement  { --accent: #2B4A6F; --accent-light: #7AA3C4; --bg-tint: #F4F2EE; }
body.page-contact     { --accent: #1B3A6B; --accent-light: #4A7FBF; --bg-tint: #0D1B2A; }

/* ══════════════════════════════════════════════════════════════
   RESET & BASE
   ══════════════════════════════════════════════════════════════ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.8;
  color: var(--color-dark);
  background-color: var(--color-white);
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol { list-style: none; }

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ── Scrollbar personnalisée ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; opacity: 0.5; }

/* ── Focus states accessibles ── */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ══════════════════════════════════════════════════════════════
   TYPOGRAPHIE — UTILITAIRES
   ══════════════════════════════════════════════════════════════ */
.t-hero {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(56px, 8vw, 110px);
  line-height: 1.0;
  letter-spacing: -0.02em;
}

.t-section {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.t-section-italic {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(32px, 3.5vw, 48px);
  line-height: 1.2;
}

.t-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(22px, 2.5vw, 34px);
  line-height: 1.5;
  color: var(--accent-light);
  text-align: center;
}

.t-label {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.t-body {
  font-family: var(--font-body);
  font-size: clamp(15px, 1.1vw, 17px);
  font-weight: 300;
  line-height: 1.85;
}

/* ══════════════════════════════════════════════════════════════
   LAYOUT — CONTENEUR
   ══════════════════════════════════════════════════════════════ */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section-pad);
}

/* Séparateur fin */
.divider {
  width: 60px;
  height: 1px;
  background-color: var(--accent);
  opacity: 0.4;
  margin-block: 32px;
}

.divider--center { margin-inline: auto; }

/* ══════════════════════════════════════════════════════════════
   BOUTONS
   ══════════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 42px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: 1px solid currentColor;
  border-radius: 1px;
  transition: background-color var(--transition-fast), color var(--transition-fast);
  cursor: pointer;
}

.btn--light {
  color: var(--color-white);
  border-color: rgba(250,250,248,0.7);
}
.btn--light:hover {
  background-color: var(--color-white);
  color: var(--color-dark);
  border-color: var(--color-white);
}

.btn--dark {
  color: var(--color-dark);
  border-color: var(--color-dark);
}
.btn--dark:hover {
  background-color: var(--color-dark);
  color: var(--color-white);
}

.btn--accent {
  color: var(--accent);
  border-color: var(--accent);
}
.btn--accent:hover {
  background-color: var(--accent);
  color: var(--color-white);
}

/* ══════════════════════════════════════════════════════════════
   NAVIGATION GLOBALE
   ══════════════════════════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  z-index: var(--z-nav);
  display: flex;
  align-items: center;
  /* Gradient permanent : toujours lisible même sur photos claires */
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.52) 0%,
    rgba(0, 0, 0, 0.0) 100%
  );
  transition:
    background var(--transition-fast),
    box-shadow var(--transition-fast);
}

/* Au scroll : fond solide glassmorphism */
.nav.scrolled {
  background: rgba(8, 8, 8, 0.93);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06),
              0 4px 24px rgba(0,0,0,0.35);
}

.nav__inner {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

/* ── Logo ── */
.nav__logo {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: var(--color-white);
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
  /* Légère ombre portée pour lisibilité sur images claires */
  text-shadow: 0 1px 8px rgba(0,0,0,0.5);
  transition: opacity var(--transition-fast);
}

.nav__logo:hover { opacity: 0.85; }

.nav__logo span {
  color: var(--accent-light);
  transition: color var(--transition-fast);
}

/* ── Liens desktop ── */
.nav__menu {
  display: flex;
  align-items: center;
  gap: clamp(16px, 1.9vw, 26px);
}

.nav__link {
  position: relative;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: rgba(250, 250, 248, 0.78);
  padding-bottom: 4px;
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
  transition: color var(--transition-fast);
  white-space: nowrap;
}

/* Trait animé depuis le centre */
.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  right: 50%;
  height: 1px;
  background-color: var(--link-accent, var(--accent-light));
  transition:
    left  0.28s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    right 0.28s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Hover → couleur de la destination survolée */
.nav__link:hover {
  color: var(--link-accent, var(--accent-light));
}

.nav__link:hover::after {
  left: 0;
  right: 0;
}

/* Lien actif */
.nav__link.active {
  color: var(--link-accent, var(--accent-light));
}

.nav__link.active::after {
  left: 0;
  right: 0;
  opacity: 0.7;
}

/* ── Hamburger ── */
.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  padding: 10px;
  margin-right: -10px;
  flex-shrink: 0;
  /* Zone de tap min 44×44px */
  min-width: 44px;
  min-height: 44px;
  align-items: center;
}

.nav__hamburger span {
  display: block;
  width: 26px;
  height: 1.5px;
  background-color: var(--color-white);
  border-radius: 1px;
  transition:
    transform var(--transition-fast),
    opacity   var(--transition-fast),
    width     var(--transition-fast);
  transform-origin: center;
}

/* Animation croix */
.nav__hamburger.open span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}
.nav__hamburger.open span:nth-child(2) {
  opacity: 0;
  width: 0;
}
.nav__hamburger.open span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* ── Menu mobile — Éditorial
   Toujours display:flex — animé via opacity + transform
   (display:none bloque les transitions CSS)
   ─────────────────────────────────────────────────────── */
.nav__mobile {
  display: flex;
  position: fixed;
  top: 80px;
  left: 0;
  right: 0;
  height: calc(100vh - 80px);   /* fallback navigateurs anciens */
  height: calc(100dvh - 80px);  /* mobile : exclut la barre d'adresse dynamique */
  background: rgba(5, 5, 5, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 24px var(--gutter) 48px;  /* marge basse : dernier item toujours dégagé */
  flex-direction: column;
  /* safe center : centré quand ça tient, mais aligné en haut si ça déborde
     → le 1er item reste toujours accessible/scrollable */
  justify-content: safe center;
  gap: 0;
  z-index: calc(var(--z-nav) - 1);
  counter-reset: nav-item;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  /* État fermé */
  visibility: hidden;
  opacity: 0;
  transform: translateY(-14px);
  pointer-events: none;
  transition:
    visibility 0s linear 0.3s,
    opacity    0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform  0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav__mobile.open {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  transition:
    visibility 0s linear 0s,
    opacity    0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform  0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Liens dans le menu mobile — style éditorial */
.nav__mobile .nav__link {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 18px;
  font-family: var(--font-display);
  font-size: clamp(26px, 6vw, 42px);
  font-style: italic;
  font-weight: 300;
  letter-spacing: 0.01em;
  color: rgba(250, 250, 248, 0.82);
  padding: 14px 0 14px 22px;
  border-left: 1.5px solid rgba(255,255,255,0.18);
  text-shadow: none;
  counter-increment: nav-item;
  transition:
    color            0.28s ease,
    border-left-color 0.28s ease,
    padding-left     0.28s ease;
}

/* Numéro en préfixe */
.nav__mobile .nav__link::before {
  content: counter(nav-item, decimal-leading-zero);
  font-family: var(--font-body);
  font-style: normal;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.18em;
  color: rgba(250,250,248,0.40);
  flex-shrink: 0;
  transition: color 0.28s ease;
}

/* Supprimer le trait underline du desktop dans mobile */
.nav__mobile .nav__link::after {
  display: none;
}

/* Séparateur ultra-discret */
.nav__mobile .nav__link + .nav__link {
  border-top: 1px solid rgba(255,255,255,0.04);
}

/* Hover & active */
.nav__mobile .nav__link:hover,
.nav__mobile .nav__link.active {
  color: var(--link-accent, var(--accent-light));
  border-left-color: var(--link-accent, var(--accent-light));
  padding-left: 30px;
}

.nav__mobile .nav__link:hover::before,
.nav__mobile .nav__link.active::before {
  color: var(--link-accent, var(--accent-light));
  opacity: 0.6;
}

/* ══════════════════════════════════════════════════════════════
   FOOTER GLOBAL
   ══════════════════════════════════════════════════════════════ */
.footer {
  background-color: var(--color-footer);
  color: rgba(250,250,248,0.65);
  padding-block: 70px 40px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer__logo {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 300;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-white);
  margin-bottom: 16px;
}

.footer__logo span { color: var(--accent-light); }

.footer__tagline {
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.05em;
  line-height: 1.7;
  color: rgba(250,250,248,0.5);
}

.footer__title {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 20px;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__links a {
  font-size: 14px;
  font-weight: 300;
  color: rgba(250,250,248,0.55);
  transition: color var(--transition-fast);
}

.footer__links a:hover { color: var(--color-white); }

.footer__contact-item {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.6;
  margin-bottom: 8px;
}

.footer__contact-item a {
  color: rgba(250,250,248,0.55);
  transition: color var(--transition-fast);
}
.footer__contact-item a:hover { color: var(--color-white); }

/* ── Newsletter + réseaux sociaux ── */
.footer__connect {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px 60px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(250,250,248,0.08);
  padding-top: 44px;
  margin-bottom: 44px;
}

.footer__newsletter {
  width: 100%;
  max-width: 400px;
}

.footer__newsletter .footer__title { margin-bottom: 14px; }

.footer__newsletter-row {
  display: flex;
  gap: 8px;
}

.footer__newsletter-input {
  flex: 1 1 auto;
  min-width: 0;
  background: rgba(250,250,248,0.06);
  border: 1px solid rgba(250,250,248,0.15);
  border-radius: 4px;
  padding: 11px 14px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 300;
  color: var(--color-white);
  transition: border-color var(--transition-fast);
}

.footer__newsletter-input::placeholder { color: rgba(250,250,248,0.4); }
.footer__newsletter-input:focus { outline: none; border-color: var(--accent-light); }

.footer__newsletter-btn {
  flex: 0 0 auto;
  background: var(--accent-light);
  color: var(--color-footer);
  border: none;
  border-radius: 4px;
  padding: 11px 20px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: opacity var(--transition-fast);
}

.footer__newsletter-btn:hover { opacity: 0.85; }

.footer__social { display: flex; gap: 14px; align-items: center; }

.footer__social-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(250,250,248,0.15);
  border-radius: 50%;
  color: rgba(250,250,248,0.6);
  transition: color var(--transition-fast), border-color var(--transition-fast);
  cursor: default;
}

.footer__social-item:hover { color: var(--color-white); border-color: var(--accent-light); }

/* ── Lien de gestion des cookies dans le footer ── */
.cc-foot { }
.cc-foot__link {
  color: rgba(250,250,248,0.3);
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: 12px;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: color var(--transition-fast);
}
.cc-foot__link:hover { color: rgba(250,250,248,0.7); }
.cc-foot__btn { text-decoration: underline; text-underline-offset: 2px; }

.footer__bottom {
  border-top: 1px solid rgba(250,250,248,0.08);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(250,250,248,0.3);
  letter-spacing: 0.05em;
}

/* ══════════════════════════════════════════════════════════════
   ANIMATIONS — SCROLL REVEAL
   ══════════════════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--transition-smooth),
              transform 0.8s var(--transition-smooth);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal--delay-1 { transition-delay: 0.1s; }
.reveal--delay-2 { transition-delay: 0.2s; }
.reveal--delay-3 { transition-delay: 0.3s; }
.reveal--delay-4 { transition-delay: 0.4s; }

/* ── Section galerie (partagée entre toutes les pages) ── */
.gallery-section {
  background-color: var(--bg-tint);
  padding-block: 80px;
}

.gallery-section__header {
  text-align: center;
  margin-bottom: 48px;
}

.gallery-section__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 300;
  color: var(--color-white);
}

.gallery-section__sub {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(250,250,248,0.35);
  margin-top: 10px;
}

/* ── Galerie masonry (partagée entre toutes les pages) ── */
.masonry {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 4px;
  gap: 4px;
}

.masonry__item {
  overflow: hidden;
}

.masonry__item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              filter 0.5s ease;
  filter: saturate(0.9);
}

.masonry__item:hover img {
  transform: scale(1.04);
  filter: saturate(1.15);
}

@media (max-width: 900px) { .masonry { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .masonry { grid-template-columns: 1fr; } }

/* ── Transition de page ── */
body {
  animation: fadeInPage 0.5s ease forwards;
}

@keyframes fadeInPage {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.page-exit {
  animation: fadeOutPage 0.4s ease forwards;
}

@keyframes fadeOutPage {
  from { opacity: 1; }
  to   { opacity: 0; }
}

/* ══════════════════════════════════════════════════════════════
   HERO GÉNÉRIQUE
   ══════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--bg-tint);
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  will-change: transform;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 10, 30, 0.25) 0%,
    rgba(0, 10, 30, 0.70) 100%
  );
  z-index: var(--z-overlay);
}

.hero__content {
  position: relative;
  z-index: var(--z-content);
  text-align: center;
  color: var(--color-white);
  padding-inline: var(--gutter);
  max-width: 900px;
}

.hero__tag {
  display: block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(250,250,248,0.7);
  margin-bottom: 28px;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(56px, 8vw, 108px);
  line-height: 1.0;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.hero__subtitle {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(18px, 2vw, 26px);
  color: rgba(250,250,248,0.8);
  margin-bottom: 48px;
  letter-spacing: 0.02em;
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: var(--z-content);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(250,250,248,0.5);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero__scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, rgba(250,250,248,0.5), transparent);
  animation: scrollPulse 2s ease infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.5; transform: scaleY(1); }
  50%       { opacity: 1;   transform: scaleY(1.1); }
}

/* ══════════════════════════════════════════════════════════════
   BLOC CONTACT (commun à toutes les pages univers)
   ══════════════════════════════════════════════════════════════ */
.contact-block {
  background-color: var(--accent);
  padding-block: 100px;
}

.contact-block__inner {
  max-width: 680px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.contact-block__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(32px, 3.5vw, 50px);
  color: var(--color-white);
  margin-bottom: 12px;
  line-height: 1.2;
}

.contact-block__sub {
  font-size: 15px;
  color: rgba(250,250,248,0.7);
  margin-bottom: 48px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.form-field {
  position: relative;
}

.form-field input,
.form-field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(250,250,248,0.35);
  padding: 12px 0;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 300;
  color: var(--color-white);
  outline: none;
  transition: border-color var(--transition-fast);
  resize: none;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgba(250,250,248,0.45);
}

.form-field input:focus,
.form-field textarea:focus {
  border-bottom-color: var(--color-white);
}

.form-field textarea { min-height: 100px; }

.form-field .field-error {
  position: absolute;
  bottom: -20px;
  left: 0;
  font-size: 11px;
  color: #ffaaaa;
  letter-spacing: 0.05em;
}

.contact-form .btn--light {
  align-self: flex-start;
  margin-top: 8px;
}

/* Confirmation/erreur — affichée sous le formulaire de contact (fond clair).
   Discret : simple ligne de texte + fin filet accent, sans encadré. */
.form-feedback {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 18px;
  padding-left: 14px;
  border-left: 2px solid;
  font-size: 13.5px;
  font-weight: 300;
  line-height: 1.6;
}

.form-feedback::before {
  content: '';
  flex: 0 0 auto;
  align-self: center;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.form-feedback.success { color: #2f7d4f; border-color: rgba(47, 125, 79, 0.45); }
.form-feedback.error   { color: #a11919; border-color: rgba(161, 25, 25, 0.4); }

/* ── Message d'inscription newsletter (fonds sombres : accueil + footer) ── */
.newsletter-msg {
  margin-top: 14px;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.6;
  color: rgba(250,250,248,0.85);
}

.newsletter-msg.is-error { color: #ffaaaa; }

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE — breakpoints systématiques
   1440 → 1200 → 1024 → 900 → 600 → 375
   ══════════════════════════════════════════════════════════════ */

/* ── ≤ 1200px : tablette large / laptop ── */
@media (max-width: 1200px) {
  :root {
    --section-pad: 90px;
    --container: 1100px;
  }
}

/* ── ≤ 1200px : resserrer le menu desktop (8 items) ── */
@media (max-width: 1200px) {
  .nav__inner { gap: 20px; }
  .nav__menu  { gap: clamp(12px, 1.5vw, 20px); }
  .nav__link  { font-size: 11px; letter-spacing: 0.08em; }
  .nav__logo  { font-size: 19px; }
}

/* ── ≤ 1100px : bascule hamburger (le menu à 8 items ne tient plus) ── */
@media (max-width: 1100px) {
  .nav__menu      { display: none; }
  .nav__hamburger { display: flex; }
}

/* ── ≤ 1024px : tablette ── */
@media (max-width: 1024px) {
  :root { --section-pad: 80px; }
}

/* ── ≤ 900px ── */
@media (max-width: 900px) {
  :root { --section-pad: 70px; }

  .footer__grid   { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer__bottom { flex-direction: column; gap: 12px; text-align: center; }
}

/* ── ≤ 600px : mobile ── */
@media (max-width: 600px) {
  :root {
    --section-pad: 60px;
    --gutter: 20px;
  }

  /* Parallaxe désactivé sur mobile (performance + iOS bug) */
  .hero__bg { background-attachment: scroll; }

  .nav { height: 68px; }
  .nav__mobile { top: 68px; height: calc(100vh - 68px); height: calc(100dvh - 68px); }
  .nav__logo  { font-size: 18px; }

  .hero__title  { font-size: clamp(42px, 11vw, 70px); }
  .hero__subtitle { font-size: clamp(15px, 4vw, 20px); }

  .footer__grid  { grid-template-columns: 1fr; gap: 36px; }
}

/* ── ≤ 375px : très petit écran ── */
@media (max-width: 375px) {
  :root { --gutter: 16px; }

  .nav__logo  { font-size: 16px; letter-spacing: 0.06em; }
  .nav__mobile .nav__link { font-size: 12px; padding: 14px 0; }

  .hero__title { font-size: clamp(36px, 10vw, 56px); }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .hero__bg          { background-attachment: scroll; }
  .nav__mobile       { transition: none; }
  .reveal            { opacity: 1; transform: none; }
}

/* ══════════════════════════════════════════════════════════════
   CONSENTEMENT COOKIES (bandeau + modal)
   ══════════════════════════════════════════════════════════════ */
.cc-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1000;
  background: var(--color-footer);
  border-top: 1px solid rgba(250,250,248,0.12);
  color: rgba(250,250,248,0.7);
  transform: translateY(110%);
  transition: transform 0.4s var(--transition-smooth);
  box-shadow: 0 -10px 40px rgba(0,0,0,0.35);
}
.cc-banner.is-visible { transform: translateY(0); }

.cc-banner__inner {
  max-width: var(--container);
  margin-inline: auto;
  padding: 22px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}
.cc-banner__text { flex: 1 1 420px; min-width: 0; }
.cc-banner__title {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 8px;
}
.cc-banner__desc { font-size: 13.5px; font-weight: 300; line-height: 1.65; }
.cc-banner__actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

.cc-link { color: var(--accent-light); text-decoration: underline; text-underline-offset: 2px; }
.cc-link:hover { color: var(--color-white); }

.cc-btn {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.03em;
  padding: 11px 20px;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), opacity var(--transition-fast);
}
.cc-btn--primary { background: var(--accent-light); color: var(--color-footer); }
.cc-btn--primary:hover { opacity: 0.88; }
.cc-btn--ghost { background: transparent; border-color: rgba(250,250,248,0.25); color: rgba(250,250,248,0.75); }
.cc-btn--ghost:hover { border-color: var(--accent-light); color: var(--color-white); }

/* ── Modal ── */
.cc-modal {
  position: fixed;
  inset: 0;
  z-index: 1001;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(10,12,14,0.6);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.cc-modal.is-visible { opacity: 1; }

.cc-modal__card {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: 88vh;
  overflow-y: auto;
  background: var(--color-white);
  color: var(--color-dark);
  border-radius: 10px;
  padding: 36px 34px 30px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.4);
}
.cc-modal__close {
  position: absolute;
  top: 16px; right: 16px;
  width: 34px; height: 34px;
  border: none; background: transparent;
  font-size: 16px; color: #888; cursor: pointer;
  border-radius: 50%;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}
.cc-modal__close:hover { background: #f0f0ee; color: var(--color-dark); }
.cc-modal__title {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 300;
  margin-bottom: 14px;
}
.cc-modal__intro { font-size: 14px; font-weight: 300; line-height: 1.7; color: #555; margin-bottom: 26px; }
.cc-modal__intro .cc-link { color: var(--accent); }

.cc-cats { display: flex; flex-direction: column; gap: 4px; }
.cc-cat { padding: 16px 0; border-top: 1px solid #ececec; }
.cc-cat:first-child { border-top: none; }
.cc-cat__head { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.cc-cat__name { font-size: 15px; font-weight: 400; color: var(--color-dark); }
.cc-cat__name em { font-style: normal; font-size: 12px; color: #999; }
.cc-cat__desc { font-size: 13px; font-weight: 300; line-height: 1.6; color: #666; margin: 8px 0 0 52px; }

/* Interrupteur */
.cc-switch {
  appearance: none; -webkit-appearance: none;
  position: relative;
  width: 40px; height: 22px;
  flex-shrink: 0;
  background: #ccc;
  border-radius: 20px;
  cursor: pointer;
  transition: background-color var(--transition-fast);
}
.cc-switch::after {
  content: '';
  position: absolute;
  top: 2px; left: 2px;
  width: 18px; height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: transform var(--transition-fast);
}
.cc-switch:checked { background: var(--accent); }
.cc-switch:checked::after { transform: translateX(18px); }
.cc-switch:disabled { opacity: 0.55; cursor: not-allowed; }

.cc-modal__actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
  margin-top: 28px;
}
.cc-modal__actions .cc-btn--ghost { border-color: #d5d5d5; color: #444; }
.cc-modal__actions .cc-btn--ghost:hover { border-color: var(--accent); color: var(--accent); }

@media (max-width: 700px) {
  .cc-banner__inner { flex-direction: column; align-items: stretch; gap: 16px; padding: 20px var(--gutter); }
  .cc-banner__actions .cc-btn { flex: 1 1 auto; text-align: center; }
  .cc-modal__actions { flex-direction: column-reverse; }
  .cc-modal__actions .cc-btn { width: 100%; }
  .cc-cat__desc { margin-left: 0; }
}
