/* ==========================================================================
   Lodgi — Charte Graphique Officielle & Standards Responsive Mobile-First
   Palette : Pine Teal (#124c46) · Blanc (#ffffff) · Onyx (#0f0f0f)
   Typographie : Noto Sans (texte) · Space Mono (data, labels, code)
   Breakpoints : sm: 640px · md: 768px · lg: 1024px · xl: 1280px
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:wght@400;500;600;700&family=Space+Mono:wght@400;700&display=swap');

:root {
  --pine: #124c46;
  --pine-soft: #1c6459;
  --pine-deep: #0b332f;
  --pine-surface: rgba(18, 76, 70, 0.06);
  --pine-border: rgba(18, 76, 70, 0.18);
  --white: #ffffff;
  --paper: #faf9f6;
  --onyx: #0f0f0f;
  --onyx-muted: #555555;
  --hair: rgba(15, 15, 15, 0.10);
  
  --shadow-sm: 0 2px 6px rgba(15, 15, 15, 0.04);
  --shadow-md: 0 6px 20px rgba(15, 15, 15, 0.07);
  --shadow-lg: 0 16px 36px rgba(15, 15, 15, 0.10);
  
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  
  --font-sans: 'Noto Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'Space Mono', monospace;
  --transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  --max-w: 1200px;
}

/* ==========================================================================
   1. Reset & Base Mobile-First
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--white);
  color: var(--onyx);
  line-height: 1.6;
  letter-spacing: -0.01em;
  overflow-x: hidden;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding-top: calc(7.8rem + env(safe-area-inset-top, 0px));
}

body.header-simple {
  padding-top: calc(4.5rem + env(safe-area-inset-top, 0px));
}

main {
  flex: 1;
}

img, video, canvas, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   2. Typographie & Espacements Fluides via clamp()
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  color: var(--onyx);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.025em;
}

h1 { font-size: clamp(2rem, 5vw + 0.5rem, 3.5rem); }
h2 { font-size: clamp(1.65rem, 3.5vw + 0.2rem, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.2vw + 0.2rem, 1.65rem); }
h4 { font-size: 1.15rem; }

p {
  color: var(--onyx-muted);
  font-size: clamp(0.95rem, 0.9rem + 0.2vw, 1.05rem);
  line-height: 1.65;
}

.mono-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  background-color: var(--pine-surface);
  border: 1px solid var(--pine-border);
  color: var(--pine);
  border-radius: var(--radius-xs);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  min-height: 32px;
}

a {
  color: var(--pine);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--pine-deep);
}

.container {
  width: min(100% - 2rem, var(--max-w));
  margin-inline: auto;
  padding-inline: max(0.5rem, env(safe-area-inset-left, 0px));
}

/* ==========================================================================
   3. Cibles Tactiles & Boutons (min 44px, adaptatif mobile)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 44px;
  padding: 0.75rem 1.25rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-align: center;
  text-decoration: none;
  touch-action: manipulation;
  max-width: 100%;
  box-sizing: border-box;
}

.btn-primary {
  background-color: var(--pine);
  color: var(--white) !important;
  box-shadow: 0 2px 8px rgba(18, 76, 70, 0.25);
}

.btn-primary:hover {
  background-color: var(--pine-deep);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(18, 76, 70, 0.35);
}

.btn-secondary {
  background-color: transparent;
  color: var(--pine) !important;
  border: 1px solid var(--pine);
}

.btn-secondary:hover {
  background-color: var(--pine-surface);
  border-color: var(--pine-deep);
  color: var(--pine-deep) !important;
}

.btn-white {
  background-color: var(--white);
  color: var(--pine) !important;
}

.btn-white:hover {
  background-color: var(--paper);
  transform: translateY(-1px);
}

.btn-sm {
  min-height: 38px;
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
}

/* Boutons Larges & Bouton Submit Formulaire : Réduction texte & anti-débordement */
.btn-lg,
#submit-btn,
.section-dark .btn-white {
  min-height: 48px;
  padding: 0.85rem 1.15rem;
  font-size: clamp(0.85rem, 3.8vw, 1.05rem);
  white-space: normal;
  text-align: center;
  line-height: 1.35;
  width: 100%;
  word-break: normal;
}

.btn-block {
  width: 100%;
}

/* ==========================================================================
   4. Header & Navigation (Fixed avec Smart Auto-Hide & Mobile Sub-Bar)
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hair);
  box-shadow: 0 2px 12px rgba(15, 15, 15, 0.05);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
}

.site-header.hide {
  transform: translateY(-100%);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.5rem;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  min-height: 44px;
}

.brand-logo img.logo-mark {
  height: 2.2rem;
  width: auto;
  aspect-ratio: 2876 / 3792;
  object-fit: contain;
  display: block;
}

.brand-logo .brand-name {
  font-family: var(--font-sans);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.035em;
  color: var(--onyx);
  line-height: 1;
}

.brand-logo .brand-badge {
  display: none;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--pine);
  background-color: var(--pine-surface);
  border: 1px solid var(--pine-border);
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Mobile Nav par défaut */
.nav-links {
  display: none;
  list-style: none;
  flex-direction: column;
  gap: 0.25rem;
  max-height: calc(100dvh - 5rem);
  overflow-y: auto;
}

.nav-links .nav-link {
  width: 100%;
  min-height: 44px;
  padding: 0.6rem 0;
}

.nav-link {
  color: var(--onyx);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 0;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.nav-actions .btn-secondary {
  display: none;
}

/* Bouton CTA Desktop masqué dans la barre haute sur mobile */
.nav-actions .desktop-nav-cta {
  display: none;
}

/* Barre Mobile Sub-Header : Déplace le bouton d'action sous le header sur mobile */
.header-mobile-bar {
  display: block;
  padding: 0.5rem 0 0.65rem;
  background-color: var(--paper);
  border-top: 1px solid var(--hair);
}

.header-mobile-bar .mobile-sub-btn {
  font-size: 0.88rem;
  min-height: 42px;
  font-weight: 700;
}

.mobile-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  background: none;
  border: 1px solid var(--hair);
  border-radius: var(--radius-xs);
  color: var(--onyx);
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-toggle:hover {
  background-color: var(--paper);
}

/* ==========================================================================
   5. Hero Section Mobile-First
   ========================================================================== */
.hero-section {
  padding: 2.5rem 0 3.5rem;
  position: relative;
  background: radial-gradient(circle at 85% 15%, rgba(18, 76, 70, 0.05) 0%, transparent 60%);
}

.hero-grid {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.hero-title span.accent-text {
  color: var(--pine);
  position: relative;
  display: inline-block;
}

.hero-cta-group {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  width: 100%;
  margin-top: 0.5rem;
}

.hero-cta-group .btn {
  width: 100%;
}

.hero-guarantee {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--onyx-muted);
  margin-top: 0.5rem;
}

.hero-guarantee-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.hero-visual {
  width: 100%;
}

.preview-card {
  background-color: var(--white);
  border: 1px solid var(--hair);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.preview-bar {
  background-color: var(--paper);
  padding: 0.75rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
  border-bottom: 1px solid var(--hair);
}

.preview-dots {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.preview-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.preview-dot:nth-child(1) { background-color: #ff5f56; }
.preview-dot:nth-child(2) { background-color: #ffbd2e; }
.preview-dot:nth-child(3) { background-color: #27c93f; }

.preview-address-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  width: 100%;
}

.preview-url {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--onyx-muted);
  background-color: var(--white);
  padding: 0.25rem 0.85rem;
  border-radius: var(--radius-xs);
  border: 1px solid var(--hair);
  text-align: center;
  max-width: 85%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.preview-online-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--pine);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background-color: var(--pine-surface);
  border: 1px solid var(--pine-border);
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-xs);
  letter-spacing: 0.05em;
}

.status-dot-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #10b981;
  display: inline-block;
}

.preview-body {
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

/* Grille de stats centrée avec petites cartes */
.preview-kpi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  text-align: center;
}

.kpi-box {
  background-color: var(--paper);
  border: 1px solid var(--hair);
  padding: 0.65rem 0.5rem;
  border-radius: var(--radius-xs);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.kpi-box-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--onyx-muted);
  text-transform: uppercase;
  line-height: 1.2;
  margin-bottom: 0.2rem;
  text-align: center;
}

.kpi-box-val {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--pine);
  font-family: var(--font-mono);
  line-height: 1.1;
  text-align: center;
}

.kpi-box-full {
  grid-column: span 2;
  background-color: var(--pine-surface);
  border-color: var(--pine-border);
}

.kpi-box-full .kpi-box-val {
  font-size: 1.35rem;
}

/* Liste des chambres : [N° chambre] - [Nom chambre] / [client] [nuits] / [statut] */
.preview-schedule {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.schedule-card {
  background-color: var(--white);
  border: 1px solid var(--hair);
  border-radius: var(--radius-xs);
  padding: 0.65rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  text-align: left;
}

.schedule-header strong {
  font-size: 0.88rem;
  color: var(--onyx);
  display: block;
}

.schedule-client-info {
  font-size: 0.78rem;
  color: var(--onyx-muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.schedule-status-wrap {
  margin-top: 0.2rem;
}

.schedule-status {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  border-radius: var(--radius-xs);
  font-weight: 700;
  white-space: nowrap;
}

.status-in { background-color: var(--pine-surface); color: var(--pine); border: 1px solid var(--pine-border); }
.status-out { background-color: var(--paper); color: var(--onyx); border: 1px solid var(--hair); }

.status-in { background-color: var(--pine-surface); color: var(--pine); border: 1px solid var(--pine-border); }
.status-out { background-color: var(--paper); color: var(--onyx); border: 1px solid var(--hair); }

/* ==========================================================================
   6. Sections Contenu & Comparatifs
   ========================================================================== */
.section-pad {
  padding: 3.5rem 0;
}

.section-paper {
  background-color: var(--paper);
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
}

.section-dark {
  background-color: var(--onyx);
  color: var(--white);
}

.section-dark h2, .section-dark h3, .section-dark p {
  color: var(--white);
}

.section-dark p {
  color: rgba(255, 255, 255, 0.75);
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin-inline: auto;
  margin-bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

.comparison-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.comp-card {
  padding: 1.75rem;
  border-radius: var(--radius-sm);
  background-color: var(--white);
  border: 1px solid var(--hair);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.comp-card.highlight {
  border-color: var(--pine);
  box-shadow: var(--shadow-md);
  position: relative;
}

.comp-card.highlight::before {
  content: "RECOMMANDÉ";
  position: absolute;
  top: -12px;
  right: 18px;
  background-color: var(--pine);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-xs);
  letter-spacing: 0.05em;
}

.comp-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.comp-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
}

.comp-icon-neg {
  color: #888888;
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.comp-icon-pos {
  color: var(--pine);
  flex-shrink: 0;
  margin-top: 0.2rem;
}

/* ==========================================================================
   7. Grille de Fonctionnalités Clés
   ========================================================================== */
.features-grid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.feature-box {
  background-color: var(--white);
  border: 1px solid var(--hair);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: var(--transition);
}

.feature-box:hover {
  border-color: var(--pine-border);
  box-shadow: var(--shadow-md);
}

.feature-icon-wrap {
  width: 3.2rem;
  height: 3.2rem;
  background-color: var(--pine-surface);
  border: 1px solid var(--pine-border);
  color: var(--pine);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-xs);
  flex-shrink: 0;
}

/* ==========================================================================
   8. Simulateur d'Économies
   ========================================================================== */
.simulator-card {
  background-color: var(--white);
  border: 1px solid var(--hair);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
}

.sim-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.sim-controls {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sim-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sim-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sim-slider {
  width: 100%;
  accent-color: var(--pine);
  height: 8px;
  cursor: pointer;
  touch-action: manipulation;
}

.sim-result-box {
  background-color: var(--paper);
  border: 1px solid var(--hair);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  text-align: center;
}

.sim-big-number {
  font-family: var(--font-mono);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--pine);
  line-height: 1.1;
}

/* ==========================================================================
   9. Tableau des Tarifs (Pricing) — Prix sur 1 ligne + Devise dessous sur mobile
   ========================================================================== */
.pricing-grid {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  max-width: 900px;
  margin-inline: auto;
}

.pricing-card {
  background-color: var(--white);
  border: 1px solid var(--hair);
  border-radius: var(--radius-sm);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
}

.pricing-card.premium {
  border: 2px solid var(--pine);
  box-shadow: var(--shadow-md);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--pine);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.85rem;
  border-radius: var(--radius-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Structure mobile : prix sur une ligne distincte, devise juste en dessous */
.price-val {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
}

.price-num {
  font-family: var(--font-mono);
  font-size: clamp(2.2rem, 6vw, 2.8rem);
  font-weight: 700;
  color: var(--onyx);
  line-height: 1;
  white-space: nowrap;
  display: block;
}

.price-period {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--onyx-muted);
  font-weight: 700;
  display: block;
  line-height: 1.2;
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  padding: 1.25rem 0;
}

.pricing-feat-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.95rem;
}

/* ==========================================================================
   10. FAQ Accordion
   ========================================================================== */
.faq-wrap {
  max-width: 800px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.faq-item {
  background-color: var(--white);
  border: 1px solid var(--hair);
  border-radius: var(--radius-xs);
  overflow: hidden;
  transition: var(--transition);
}

.faq-question {
  width: 100%;
  min-height: 52px;
  padding: 1rem 1.25rem;
  text-align: left;
  background: none;
  border: none;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--onyx);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  gap: 1rem;
  touch-action: manipulation;
}

.faq-question:hover {
  color: var(--pine);
}

.faq-icon {
  transition: transform 0.2s ease;
  color: var(--pine);
  flex-shrink: 0;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  padding: 0 1.25rem;
  color: var(--onyx-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  max-height: 400px;
  padding: 0 1.25rem 1.25rem;
}

/* ==========================================================================
   11. Page Inscription / Onboarding (Anti-Zoom iOS 16px+)
   ========================================================================== */
.onboarding-page {
  padding: 2rem 0 4rem;
}

.onboarding-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.onboarding-info-card {
  background-color: var(--white);
  border: 1px solid var(--hair);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.onboarding-form-card {
  background-color: var(--white);
  border: 1px solid var(--hair);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
}

.form-group-custom {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
}

.form-group-custom label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--onyx);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* 16px minimum pour empêcher le zoom forcé iOS Safari */
.form-control-custom {
  width: 100%;
  min-height: 48px;
  padding: 0.85rem 1rem;
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--onyx);
  background-color: var(--white);
  border: 1px solid var(--hair);
  border-radius: var(--radius-xs);
  transition: var(--transition);
}

.form-control-custom:focus {
  outline: none;
  border-color: var(--pine);
  box-shadow: 0 0 0 3px var(--pine-surface);
}

.slug-input-wrap {
  display: flex;
  align-items: center;
  border: 1px solid var(--hair);
  border-radius: var(--radius-xs);
  overflow: hidden;
  background-color: var(--paper);
  min-height: 48px;
  transition: var(--transition);
}

.slug-input-wrap:focus-within {
  border-color: var(--pine);
  box-shadow: 0 0 0 3px var(--pine-surface);
}

.slug-input-wrap input {
  flex: 1;
  padding: 0.85rem 1rem;
  border: none;
  background: transparent;
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--onyx);
  outline: none;
  min-width: 0;
}

.slug-input-wrap .slug-suffix {
  padding: 0 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--pine);
  font-weight: 700;
  border-left: 1px solid var(--hair);
  background-color: var(--pine-surface);
  height: 48px;
  display: flex;
  align-items: center;
  white-space: nowrap;
}

/* Réduire le suffixe sur très petit écran pour laisser la place au slug (320px) */
@media (max-width: 479px) {
  .slug-input-wrap .slug-suffix {
    padding: 0 0.5rem;
    font-size: 0.75rem;
  }
}

.form-two-col {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.plan-selection-grid {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.plan-option {
  border: 1px solid var(--hair);
  border-radius: var(--radius-xs);
  padding: 1.15rem;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  background-color: var(--white);
  min-height: 44px;
}

.plan-option:hover {
  border-color: var(--pine-border);
}

.plan-option.selected {
  border: 2px solid var(--pine);
  background-color: var(--pine-surface);
}

.plan-option input[type="radio"] {
  position: absolute;
  top: 1.15rem;
  right: 1.15rem;
  accent-color: var(--pine);
  width: 18px;
  height: 18px;
}

.plan-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--onyx);
}

.plan-price {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--pine);
  margin: 0.35rem 0;
}

.plan-desc {
  font-size: 0.82rem;
  color: var(--onyx-muted);
  line-height: 1.4;
}

/* ==========================================================================
   12. Pages Légales
   ========================================================================== */
.legal-page {
  padding: 2.5rem 0 4rem;
  max-width: 860px;
  margin-inline: auto;
}

.legal-header {
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--hair);
}

.legal-content {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.legal-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.legal-section h3 {
  color: var(--pine);
  font-size: 1.25rem;
}

.legal-section p, .legal-section ul {
  font-size: 0.98rem;
  color: var(--onyx);
  line-height: 1.7;
}

.legal-section ul {
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* ==========================================================================
   13. Footer Mobile-First & Safe Areas
   ========================================================================== */
.site-footer {
  background-color: var(--onyx);
  color: var(--white);
  padding: 3.5rem 0 calc(2rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--hair);
  margin-top: auto;
}

.site-footer .brand-logo .brand-name {
  color: var(--white);
}

.site-footer .brand-logo .brand-badge {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--white);
  display: inline-block;
}

.footer-grid {
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
  margin-bottom: 2.5rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-col h4 {
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
}

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

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--font-mono);
}

/* ==========================================================================
   14. Media Queries Ascendantes (Mobile-First min-width)
   ========================================================================== */

/* Breakpoint sm : 640px+ (Grands smartphones / tablettes portrait) */
@media (min-width: 640px) {
  .price-val {
    flex-direction: row;
    align-items: baseline;
    gap: 0.4rem;
  }
  .hero-cta-group {
    flex-direction: row;
    width: auto;
  }
  .hero-cta-group .btn {
    width: auto;
  }
  .hero-guarantee {
    flex-direction: row;
    gap: 1.5rem;
  }
  .preview-kpi-row {
    grid-template-columns: repeat(3, 1fr);
  }
  .form-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .plan-selection-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* Breakpoint md : 768px+ (Tablettes portrait & paysage) */
@media (min-width: 768px) {
  .section-pad {
    padding: 4.5rem 0;
  }
  .brand-logo .brand-badge {
    display: inline-block;
  }
  .comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  .pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  .footer-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
}

/* Breakpoint lg : 1024px+ (Tablettes paysage & Laptops) */
@media (min-width: 1024px) {
  body {
    padding-top: calc(4.5rem + env(safe-area-inset-top, 0px));
  }
  .header-mobile-bar {
    display: none;
  }
  .nav-actions .desktop-nav-cta {
    display: inline-flex;
  }
  .nav-links {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.85rem;
    max-height: none;
    overflow: visible;
  }
  .nav-links .nav-link {
    width: auto;
    padding: 0.5rem 0;
  }
  .nav-actions .btn-secondary {
    display: inline-flex;
  }
  .mobile-toggle {
    display: none;
  }
  .hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3.5rem;
    align-items: center;
  }
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
  .sim-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: center;
  }
  .simulator-card {
    padding: 3rem;
  }
  .onboarding-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 3rem;
    align-items: start;
  }
  .onboarding-info-card, .onboarding-form-card {
    padding: 2.5rem;
  }
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
  }
}

/* Breakpoint xl : 1280px+ (Écrans Desktop Larges) */
@media (min-width: 1280px) {
  .container {
    width: min(100% - 3rem, var(--max-w));
  }
}
