/* ═══════════════════════════════
   GLIDE GUIDE — refonte visuelle naturelle
   Base non destructive chargée après style.css
   ═══════════════════════════════ */

:root {
  --navy: #2f2a25;
  --navy2: #3f3932;
  --gold: #f2d16b;
  --gold-light: #fff1b8;
  --grey: #f4efe7;
  --white: #fff9f0;
  --text: #2f2a25;
  --muted: #6f665e;
  --border: #ded1c3;
  --green: #6f8a73;
  --red: #b85f54;
  --sage: #dde8dd;
  --sage-strong: #8fa7a8;
  --sand: #f4efe7;
  --ivory: #fff9f0;
  --clay: #c9825f;
  --clay-dark: #a86649;
  --brand-yellow: #f2d16b;
  --brand-yellow-soft: #fff1b8;
  --brand-yellow-deep: #d4a936;
  --ink: #2f2a25;
  --radius: 28px;
  --radius-sm: 16px;
  --shadow: 0 16px 45px rgba(47, 42, 37, 0.08);
  --shadow-lg: 0 24px 70px rgba(47, 42, 37, 0.13);
  --font-head: 'Fraunces', 'Playfair Display', Georgia, serif;
  --font-body: 'Manrope', 'Inter', system-ui, sans-serif;
}

html {
  background: var(--sand);
}

body {
  background:
    radial-gradient(circle at 8% 8%, rgba(221, 232, 221, 0.85), transparent 28rem),
    radial-gradient(circle at 88% 4%, rgba(255, 241, 184, 0.9), transparent 24rem),
    var(--sand);
  color: var(--ink);
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0.32;
  background-image:
    linear-gradient(rgba(47, 42, 37, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 42, 37, 0.025) 1px, transparent 1px);
  background-size: 42px 42px;
}

h1,
h2,
h3,
.nav-logo,
.footer-logo,
.admin-login-logo {
  letter-spacing: -0.035em;
}

p,
li,
.field label,
.radio-group label,
.checkbox-group label {
  letter-spacing: -0.01em;
}

em {
  color: var(--brand-yellow-deep);
}

/* Navigation */
.nav {
  top: 14px;
  left: 5%;
  right: 5%;
  width: auto;
  height: 62px;
  background: rgba(255, 249, 240, 0.9);
  border: 1px solid rgba(222, 209, 195, 0.72);
  border-radius: 999px;
  box-shadow: 0 18px 50px rgba(47, 42, 37, 0.1);
  backdrop-filter: blur(18px);
}

.nav-logo,
.nav-links a {
  color: var(--ink);
}

.nav-logo span,
.footer-logo span,
.admin-login-logo span {
  color: var(--brand-yellow-deep);
}

.nav-links a {
  color: rgba(47, 42, 37, 0.68);
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-cta {
  background: var(--brand-yellow) !important;
  color: var(--ink) !important;
  box-shadow: 0 10px 24px rgba(242, 209, 107, 0.3);
}

.nav-cta:hover {
  box-shadow: 0 14px 32px rgba(242, 209, 107, 0.42);
}

.nav-burger span {
  background: var(--ink);
}

/* Boutons */
.btn-primary,
#submitBtn,
.offre-card--featured .btn-offre {
  background: var(--brand-yellow);
  color: var(--ink);
  border: 1px solid rgba(212, 169, 54, 0.42);
  box-shadow: 0 15px 34px rgba(242, 209, 107, 0.3);
}

.btn-primary:hover,
#submitBtn:hover:not(:disabled),
.offre-card--featured .btn-offre:hover {
  background: var(--brand-yellow-deep);
  color: var(--ink);
  box-shadow: 0 18px 44px rgba(242, 209, 107, 0.42);
}

.btn-outline,
.btn-offre {
  border-color: rgba(212, 169, 54, 0.6);
  color: var(--ink);
  background: rgba(255, 249, 240, 0.48);
}

.btn-outline:hover,
.btn-offre:hover {
  background: var(--brand-yellow);
  border-color: var(--brand-yellow);
  color: var(--ink);
}

.btn-ghost {
  color: rgba(47, 42, 37, 0.68);
}

.btn-ghost:hover {
  color: var(--ink);
}

/* Sections */
.section {
  padding: 104px 5%;
}

.section-alt {
  background:
    linear-gradient(180deg, rgba(221, 232, 221, 0.62), rgba(244, 239, 231, 0.84));
}

.section-inner,
.section-inner--narrow {
  position: relative;
}

.section-head {
  margin-bottom: 56px;
}

.section-label,
.offre-tag,
.etape-num {
  color: var(--brand-yellow-deep);
  letter-spacing: 0.16em;
}

.section-head p,
.page-header p,
.hero-content p,
.voyage-card-body p,
.voyage-row-body p,
.step p,
.offre-note,
.offres-note-globale,
.faq-item p,
.about-trip-body p,
.about-val span,
.field .hint {
  color: var(--muted);
}

/* Hero */
.hero {
  min-height: 92vh;
  background:
    radial-gradient(circle at 70% 20%, rgba(221, 232, 221, 0.82), transparent 26rem),
    linear-gradient(135deg, #f4efe7 0%, #fff9f0 54%, #dde8dd 100%);
  border-bottom-left-radius: 48px;
  border-bottom-right-radius: 48px;
}

.hero::after {
  content: '';
  position: absolute;
  right: -8rem;
  bottom: -9rem;
  width: 34rem;
  height: 34rem;
  border-radius: 46% 54% 48% 52%;
  background: rgba(242, 209, 107, 0.24);
  filter: blur(1px);
}

.hero-bg {
  inset: auto 5% 6%;
  left: auto;
  width: min(42vw, 560px);
  height: min(66vh, 620px);
  border-radius: 42px;
  opacity: 0.82;
  box-shadow: 0 30px 90px rgba(47, 42, 37, 0.18);
}

.hero-overlay {
  background: linear-gradient(90deg, rgba(244, 239, 231, 0.98) 0%, rgba(244, 239, 231, 0.88) 46%, rgba(244, 239, 231, 0.22) 100%);
}

.hero-content {
  max-width: 660px;
}

.hero-tag {
  background: rgba(255, 241, 184, 0.72);
  border: 1px solid rgba(212, 169, 54, 0.28);
  color: var(--ink);
  border-radius: 999px;
}

.hero-content h1,
.hero-content p {
  color: var(--ink);
}

.hero-content p {
  max-width: 560px;
  font-size: clamp(1rem, 1.5vw, 1.12rem);
}

.hero-actions {
  gap: 16px;
}

/* En-têtes pages */
.page-header {
  background:
    linear-gradient(135deg, rgba(47, 42, 37, 0.46), rgba(47, 42, 37, 0.18)),
    var(--sand);
  border-bottom-left-radius: 44px;
  border-bottom-right-radius: 44px;
}

.page-header h1 {
  color: var(--ivory);
}

.page-header p {
  color: rgba(255, 249, 240, 0.78);
}

/* Cards générales */
.voyage-card,
.step,
.offre-card,
.about-trip,
.about-val,
.bloc,
.admin-login-box,
.etape-infos {
  background: rgba(255, 249, 240, 0.88);
  border: 1px solid rgba(222, 209, 195, 0.82);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.voyage-card:hover,
.offre-card:hover,
.about-trip:hover {
  box-shadow: var(--shadow-lg);
}

.voyage-card-img,
.voyage-row-bg,
.galerie-item img,
.etape-photo img {
  border-radius: 24px;
}

.voyage-card {
  padding: 12px;
  overflow: hidden;
}

.voyage-card-img {
  height: 230px;
}

.voyage-card-body h3,
.voyage-row-body h2,
.step h3,
.offre-title,
.faq-item h3,
.about-trip-body h3,
.about-val strong,
.bloc-title,
.field label,
.voyage-section-title,
.etape-header h3 {
  color: var(--ink);
}

.voyage-row {
  border-bottom: 1px solid rgba(222, 209, 195, 0.75);
  border-radius: 32px;
  overflow: hidden;
  margin-bottom: 22px;
  background: rgba(255, 249, 240, 0.54);
}

.voyage-row:hover {
  background: rgba(221, 232, 221, 0.52);
}

.voyage-row-body {
  padding: 56px;
}

/* Étapes */
.steps {
  gap: 22px;
}

.step {
  position: relative;
  overflow: hidden;
}

.step::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--sage-strong), var(--brand-yellow));
}

.step-num,
.bloc-number {
  background: var(--brand-yellow-soft);
  color: var(--ink);
  border: 1px solid rgba(212, 169, 54, 0.28);
}

/* Offres — layout flex, bouton + note en bas */
.offres-grid {
  align-items: stretch;
}

.offres-grid .offre-card {
  align-self: stretch;
}

.offre-card {
  background: rgba(255, 249, 240, 0.9);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.offre-title {
  min-height: 3.2em;
}

.offre-features {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 250px;
}

.offre-card-footer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
}

.offres-grid .btn-offre {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
}

.offre-card--featured {
  background: linear-gradient(160deg, #fff9f0 0%, #fff1b8 52%, #dde8dd 100%);
  border-color: rgba(212, 169, 54, 0.42);
}

.offre-card--featured .offre-title,
.offre-card--featured .offre-features li {
  color: var(--ink);
}

.offre-price,
.offre-card--featured .offre-price {
  color: var(--brand-yellow-deep);
}

.featured-badge {
  background: var(--brand-yellow);
  color: var(--ink);
}

.check {
  color: var(--sage-strong);
}

.offre-card--featured .check {
  color: var(--brand-yellow-deep);
}

/* Formulaire brief */
.progress-bar {
  height: 7px;
  background: rgba(222, 209, 195, 0.7);
}

.progress-fill {
  background: linear-gradient(90deg, var(--sage-strong), var(--brand-yellow));
}

.bloc {
  padding: clamp(24px, 4vw, 42px);
}

.bloc--cta {
  background: rgba(221, 232, 221, 0.58);
}

.bloc-header {
  border-bottom-color: rgba(222, 209, 195, 0.72);
}

.field input[type='text'],
.field input[type='email'],
.field input[type='tel'],
.field input[type='password'],
.field textarea {
  background: rgba(255, 255, 255, 0.68);
  border: 1.5px solid rgba(222, 209, 195, 0.95);
  border-radius: 18px;
  color: var(--ink);
  padding: 14px 16px;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--brand-yellow-deep);
  box-shadow: 0 0 0 4px rgba(242, 209, 107, 0.22);
}

.radio-group label,
.checkbox-group label {
  background: rgba(255, 249, 240, 0.62);
  border-color: rgba(222, 209, 195, 0.8);
  border-radius: 18px;
}

.radio-group label:hover,
.checkbox-group label:hover {
  border-color: rgba(212, 169, 54, 0.48);
  background: rgba(255, 241, 184, 0.42);
}

.radio-group input,
.checkbox-group input,
.cgv-box input {
  accent-color: var(--brand-yellow-deep);
}

.notice {
  background: rgba(255, 241, 184, 0.64);
  border-left-color: var(--brand-yellow-deep);
  border-radius: 18px;
}

/* Voyage détail */
.voyage-cover {
  border-bottom-left-radius: 48px;
  border-bottom-right-radius: 48px;
}

.voyage-cover-overlay {
  background: linear-gradient(to top, rgba(47, 42, 37, 0.58) 0%, rgba(47, 42, 37, 0.18) 70%, rgba(47, 42, 37, 0.06) 100%);
}

.voyage-chapeau,
.about-chapeau {
  color: var(--ink);
}

.etape-infos {
  background: rgba(221, 232, 221, 0.52);
}

/* CTA et footer */
.section-cta-banner {
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 249, 240, 0.55), transparent 18rem),
    linear-gradient(135deg, var(--sage), var(--brand-yellow-soft));
  border-radius: 44px 44px 0 0;
}

.section-cta-banner h2,
.section-cta-banner p {
  color: var(--ink);
}

.footer {
  background:
    radial-gradient(circle at 15% 15%, rgba(255, 241, 184, 0.52), transparent 18rem),
    linear-gradient(135deg, #f4efe7 0%, #fff9f0 52%, #dde8dd 100%);
  border-top: 1px solid rgba(222, 209, 195, 0.9);
  border-top-left-radius: 44px;
  border-top-right-radius: 44px;
}

.footer-logo {
  color: var(--ink);
}

.footer-tagline,
.footer-links a,
.footer-copy {
  color: rgba(47, 42, 37, 0.62);
}

.footer-links a:hover {
  color: var(--brand-yellow-deep);
}

/* Admin : cohérence douce sans perdre la lisibilité */
.admin-body {
  background: var(--sand);
}

.admin-nav {
  background: rgba(47, 42, 37, 0.9);
}

.admin-error {
  border-left-color: var(--red);
}

/* Accessibilité et responsive */
:focus-visible {
  outline: 3px solid rgba(242, 209, 107, 0.62);
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .nav {
    top: 10px;
    left: 16px;
    right: 16px;
  }

  .hero {
    min-height: auto;
    padding-top: calc(var(--nav-h) + 92px);
    border-bottom-left-radius: 32px;
    border-bottom-right-radius: 32px;
  }

  .hero-bg {
    position: relative;
    width: 100%;
    height: 280px;
    margin-top: 36px;
    inset: auto;
  }

  .hero-overlay {
    background: rgba(244, 239, 231, 0.86);
  }

  .section {
    padding: 72px 5%;
  }

  .voyage-row-body {
    padding: 32px 24px;
  }
}

@media (max-width: 720px) {
  .nav-links {
    background: rgba(255, 249, 240, 0.98);
    border: 1px solid rgba(222, 209, 195, 0.8);
    border-radius: 28px;
    box-shadow: var(--shadow-lg);
  }

  .nav-links a {
    color: var(--ink);
  }

  .hero-actions {
    align-items: stretch;
  }

  .hero-actions .btn-primary,
  .hero-actions .btn-ghost,
  .btn-outline,
  .btn-offre,
  #submitBtn {
    width: 100%;
    text-align: center;
  }

  .offre-title,
  .offre-features {
    min-height: 0;
  }

  .page-header,
  .section-cta-banner,
  .footer,
  .voyage-cover {
    border-radius: 0;
  }
}
