/* ==========================================================================
   IDS PRODUCTION - SIMULATEUR DE DEVIS MARIAGE DYNAMIQUE
   Design System : Luxe Minimaliste & Tons Chauds (100% CSS Pur, Sans Images IA)
   Mobile-First Architecture & Haute Réactivité
   ========================================================================== */

:root {
  /* Palette Haute Couture - Mode Clair par Défaut (Fond Blanc & Texte Noir) */
  --bg-primary: #F8F6F2;
  --bg-card: #FFFFFF;
  --bg-card-elevated: #F3EFE9;
  --bg-accent-soft: #EDE8DE;
  
  --color-gold: #141312;
  --color-gold-light: #4A4641;
  --color-gold-dark: #141312;
  --gold-gradient: linear-gradient(135deg, #141312 0%, #2A2724 100%);
  --gold-glow: 0 4px 20px rgba(0, 0, 0, 0.08);
  
  --text-main: #141312;
  --text-muted: #66615B;
  --text-light: #8C867E;
  --border-light: rgba(0, 0, 0, 0.09);
  --border-active: #141312;

  --whatsapp-color: #25D366;
  --whatsapp-hover: #1EBE5B;
  --whatsapp-gradient: linear-gradient(135deg, #25D366 0%, #128C7E 100%);

  /* Typographie */
  --font-serif: 'Lato', sans-serif;
  --font-sans: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Rayons & Ombres */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.12);

  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

body.dark-mode {
  --bg-primary: #0D0C0B;
  --bg-card: #181716;
  --bg-card-elevated: #22201E;
  --bg-accent-soft: #1E1C1A;
  
  --color-gold: #FFFFFF;
  --color-gold-light: #F2F0ED;
  --color-gold-dark: #D4D0CA;
  --gold-gradient: linear-gradient(135deg, #FFFFFF 0%, #E8E5DF 50%, #C4C0B8 100%);
  --gold-glow: 0 4px 20px rgba(255, 255, 255, 0.12);
  
  --text-main: #FFFFFF;
  --text-muted: #B8B3AC;
  --text-light: #8E8982;
  --border-light: rgba(255, 255, 255, 0.14);
  --border-active: #FFFFFF;
  --shadow-card: 0 8px 30px rgba(0, 0, 0, 0.45);
  --shadow-hover: 0 12px 36px rgba(0, 0, 0, 0.6);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg-primary);
  color: var(--text-main);
}

body {
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.5;
  background: var(--bg-primary);
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(0, 0, 0, 0.03) 0%, transparent 60%),
    radial-gradient(circle at 50% 100%, rgba(0, 0, 0, 0.02) 0%, transparent 50%);
  background-attachment: fixed;
  min-height: 100vh;
  padding-bottom: 120px;
  transition: background-color 0.25s ease, color 0.25s ease;
}

body.dark-mode {
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.05) 0%, transparent 60%),
    radial-gradient(circle at 50% 100%, rgba(255, 255, 255, 0.03) 0%, transparent 50%);
}

/* --------------------------------------------------------------------------
   HEADER HERO (Haute Couture Blanc / Noir avec Logo Officiel)
   -------------------------------------------------------------------------- */
.header {
  position: relative;
  background: var(--bg-card);
  color: var(--text-main);
  padding: 38px 20px 32px;
  text-align: center;
  border-bottom: 1px solid var(--border-light);
  transition: background 0.25s ease, border-color 0.25s ease;
}

/* Bouton bascule mode nuit / jour (Lune / Soleil) */
.theme-toggle-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--bg-accent-soft);
  border: 1px solid var(--border-light);
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  transition: all var(--transition-fast);
  z-index: 10;
}

.theme-toggle-btn:hover {
  transform: scale(1.1);
  border-color: var(--border-active);
}

.header-container {
  max-width: 680px;
  margin: 0 auto;
}

.brand-logo-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 16px;
}

.brand-logo-img {
  width: 130px;
  max-width: 45vw;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.12));
}

.main-title {
  font-family: var(--font-serif);
  font-size: 2.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin-bottom: 6px;
  color: var(--text-main);
}

.subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 400;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

/* Badge +100 Avis Mariés placé directement sous "en 20 secondes" */
.reviews-header-wrap {
  margin-bottom: 12px;
}

.reviews-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-card-elevated);
  border: 1.5px solid var(--border-light);
  padding: 7px 18px;
  border-radius: var(--radius-full);
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-main);
  text-decoration: none;
  transition: all var(--transition-fast);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.reviews-pill-btn:hover {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: var(--bg-card);
  transform: translateY(-2px);
}

.reviews-pill-btn:hover svg {
  stroke: var(--bg-card);
}

/* Liens réseaux sociaux Instagram & TikTok */
.social-header-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 18px;
}

.social-chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-card-elevated);
  border: 1px solid var(--border-light);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-main);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.social-chip-btn:hover {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: var(--bg-card);
  transform: translateY(-2px);
}

.social-chip-btn svg {
  flex-shrink: 0;
}

/* Section Portfolio structurée avec liens ligne par ligne */
.portfolio-container-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: var(--bg-card-elevated);
  border: 1px solid var(--border-light);
  padding: 12px 14px;
  border-radius: var(--radius-md);
  max-width: 460px;
  margin: 0 auto;
  width: 100%;
}

.portfolio-section-label {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
}

.portfolio-links-vertical {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.portfolio-link-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  padding: 11px 16px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.portfolio-link-btn svg {
  color: var(--text-muted);
  transition: transform var(--transition-fast), color var(--transition-fast);
  flex-shrink: 0;
}

.portfolio-link-btn:hover {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: var(--bg-card);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.portfolio-link-btn:hover svg {
  color: var(--bg-card);
  transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   LAYOUT PRINCIPAL
   -------------------------------------------------------------------------- */
.main-content {
  max-width: 720px;
  margin: -16px auto 0;
  padding: 0 16px;
  position: relative;
  z-index: 5;
}

.card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 22px 18px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-card);
}

.section-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}

.step-num {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-gold);
  line-height: 1;
  background: var(--bg-accent-soft);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  flex-shrink: 0;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.2;
}

.section-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 3px;
}

/* --------------------------------------------------------------------------
   SECTION 1 : HORAIRES & DOUBLE CURSEUR (08h à 02h)
   -------------------------------------------------------------------------- */
.time-display-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  background: var(--bg-card-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 14px 12px;
  margin-bottom: 18px;
}

.time-item-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.time-item-tag {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.time-item-tag svg {
  stroke: var(--color-gold);
}

.time-item-time {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.1;
}

.time-arrow-separator {
  color: var(--text-muted);
  font-size: 1.25rem;
  font-weight: bold;
}

/* Dual Range Slider */
.dual-slider-container {
  position: relative;
  height: 44px;
  display: flex;
  align-items: center;
  margin: 6px 4px 8px;
}

.slider-track-bg {
  position: absolute;
  left: 0;
  right: 0;
  height: 8px;
  border-radius: 4px;
  background: #E5E0D8;
}

body.dark-mode .slider-track-bg {
  background: #2A2724;
}

.slider-track-highlight {
  position: absolute;
  height: 8px;
  border-radius: 4px;
  background: var(--gold-gradient);
  z-index: 1;
}

.dual-slider-container input[type="range"] {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  pointer-events: none;
  z-index: 2;
}

.dual-slider-container input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  pointer-events: auto;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-gold);
  border: 3px solid var(--bg-card);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.22);
  cursor: grab;
  transition: transform 0.15s ease;
}

.dual-slider-container input[type="range"]::-webkit-slider-thumb:active {
  cursor: grabbing;
  transform: scale(1.15);
  background: var(--color-gold-dark);
}

.dual-slider-container input[type="range"]::-moz-range-thumb {
  pointer-events: auto;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-gold);
  border: 3px solid var(--bg-card);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.22);
  cursor: grab;
}

.slider-tick-marks {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-light);
  padding: 0 6px;
  margin-bottom: 16px;
}

/* Zone Durée Calculée */
.duration-responsive-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 6px;
  background: var(--bg-card-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  width: 100%;
}

.duration-title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.duration-icon-large {
  font-size: 1.25rem;
}

.duration-card-label {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-weight: 600;
}

.duration-card-value {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.1;
}

.duration-card-badge {
  background: var(--color-gold);
  color: var(--bg-card);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-block;
  margin-top: 2px;
}

/* --------------------------------------------------------------------------
   SECTION 2 : PRESTATION (3 Choix sans prix initial)
   -------------------------------------------------------------------------- */
.prestation-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.prestation-pill {
  position: relative;
  display: block;
  cursor: pointer;
}

.prestation-pill input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.prestation-inner {
  background: var(--bg-card);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 14px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  transition: all var(--transition-fast);
}

.prestation-pill:hover .prestation-inner {
  border-color: var(--border-active);
  transform: translateY(-1px);
}

/* Prestation cochée - Mode Clair (Par défaut : fond sombre contrasté) */
.prestation-pill input[type="radio"]:checked + .prestation-inner,
.prestation-pill:has(input:checked) .prestation-inner {
  border-color: #141312;
  border-width: 2px;
  background: #141312 !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
}

.prestation-pill input[type="radio"]:checked + .prestation-inner .pres-name,
.prestation-pill:has(input:checked) .pres-name {
  color: #FFFFFF !important;
  font-weight: 700 !important;
}

.prestation-pill input[type="radio"]:checked + .prestation-inner .pres-sub,
.prestation-pill:has(input:checked) .pres-sub {
  color: #D4D0CA !important;
  font-weight: 500 !important;
}

.prestation-pill input[type="radio"]:checked + .prestation-inner .pres-tag,
.prestation-pill:has(input:checked) .pres-tag {
  background: #FFFFFF !important;
  color: #000000 !important;
  border: 1px solid #FFFFFF !important;
}

/* Prestation cochée - Mode Sombre (Fond blanc éclatant et texte noir) */
body.dark-mode .prestation-pill input[type="radio"]:checked + .prestation-inner,
body.dark-mode .prestation-pill:has(input:checked) .prestation-inner {
  border-color: #FFFFFF;
  border-width: 2px;
  background: #FFFFFF !important;
  box-shadow: 0 4px 22px rgba(255, 255, 255, 0.28);
}

body.dark-mode .prestation-pill input[type="radio"]:checked + .prestation-inner .pres-name,
body.dark-mode .prestation-pill:has(input:checked) .pres-name {
  color: #000000 !important;
  font-weight: 700 !important;
}

body.dark-mode .prestation-pill input[type="radio"]:checked + .prestation-inner .pres-sub,
body.dark-mode .prestation-pill:has(input:checked) .pres-sub {
  color: #2D2B29 !important;
  font-weight: 500 !important;
}

body.dark-mode .prestation-pill input[type="radio"]:checked + .prestation-inner .pres-tag,
body.dark-mode .prestation-pill:has(input:checked) .pres-tag {
  background: #000000 !important;
  color: #FFFFFF !important;
  border: 1px solid #333333 !important;
}

.pres-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.pres-texts {
  display: flex;
  flex-direction: column;
}

.pres-name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.2;
  transition: color var(--transition-fast);
}

.pres-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.pres-tag {
  position: absolute;
  top: 8px;
  right: 10px;
  background: var(--bg-accent-soft);
  border: 1px solid var(--border-light);
  color: var(--text-main);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: var(--radius-sm);
}

/* Mode Solo / Duo */
.team-mode-card {
  background: var(--bg-card-elevated);
  border: 1.5px dashed var(--border-light);
  border-radius: var(--radius-sm);
  padding: 14px 14px;
  margin-top: 14px;
}

.team-title {
  display: block;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.team-radios-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.team-radio-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
  cursor: pointer;
  color: var(--text-main);
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1.5px solid var(--border-light);
  transition: all var(--transition-fast);
}

.team-radio-label:hover {
  border-color: var(--border-active);
}

.team-radio-label input {
  accent-color: var(--color-gold);
  width: 18px;
  height: 18px;
  margin: 0;
  flex-shrink: 0;
}

.team-label-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.team-label-content strong {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-main);
  transition: color var(--transition-fast);
}

.team-desc {
  font-size: 0.76rem;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

/* Mise en évidence nette de l'option équipe cochée (Mode Clair) */
.team-radio-label:has(input:checked),
.team-radio-label.is-selected {
  background: #141312 !important;
  border-color: #141312 !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.16);
}

.team-radio-label:has(input:checked) .team-label-content strong,
.team-radio-label.is-selected .team-label-content strong {
  color: #FFFFFF !important;
}

.team-radio-label:has(input:checked) .team-desc,
.team-radio-label.is-selected .team-desc {
  color: #D4D0CA !important;
}

/* Mise en évidence nette de l'option équipe cochée (Mode Sombre) */
body.dark-mode .team-radio-label:has(input:checked),
body.dark-mode .team-radio-label.is-selected {
  background: #FFFFFF !important;
  border-color: #FFFFFF !important;
  box-shadow: 0 4px 18px rgba(255, 255, 255, 0.25);
}

body.dark-mode .team-radio-label:has(input:checked) .team-label-content strong,
body.dark-mode .team-radio-label.is-selected .team-label-content strong {
  color: #000000 !important;
}

body.dark-mode .team-radio-label:has(input:checked) .team-desc,
body.dark-mode .team-radio-label.is-selected .team-desc {
  color: #2D2B29 !important;
}

.team-duo-threshold-hint {
  background: var(--bg-accent-soft);
  border: 1px solid var(--border-light);
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  color: var(--text-main);
  line-height: 1.4;
  margin-top: 6px;
}

/* --------------------------------------------------------------------------
   SECTION 3 : OPTIONS EN ACCORDÉON / COLLAPSE
   -------------------------------------------------------------------------- */
.options-collapse-wrapper {
  overflow: hidden;
}

.collapse-header {
  width: 100%;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  padding: 0;
  text-align: left;
}

.collapse-header-left {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.collapse-titles {
  display: flex;
  flex-direction: column;
}

.collapse-main-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.optional-badge {
  background: var(--bg-accent-soft);
  color: var(--text-main);
  border: 1px solid var(--border-light);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: var(--radius-full);
}

.collapse-hint {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 3px;
}

.collapse-trigger-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-accent-soft);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gold);
  transition: transform var(--transition-fast);
  flex-shrink: 0;
  margin-left: 8px;
}

.collapse-header[aria-expanded="true"] .collapse-trigger-icon {
  transform: rotate(180deg);
  background: var(--color-gold);
  color: var(--bg-card);
}

/* Corps du Collapse */
.collapse-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
  opacity: 0;
}

.collapse-body.expanded {
  max-height: 1400px;
  opacity: 1;
  margin-top: 18px;
}

.options-inner-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.option-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--bg-card-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.option-row:hover {
  border-color: var(--border-active);
}

/* Option cochée - Mode Clair */
.option-row:has(.option-check:checked) {
  border-color: #141312;
  background: #EAE5DC;
}

/* Option cochée - Mode Sombre */
body.dark-mode .option-row:has(.option-check:checked) {
  border-color: #FFFFFF;
  background: #242220;
}

.option-check-wrap {
  position: relative;
  flex-shrink: 0;
  margin-top: 2px;
}

.option-check {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.checkbox-box {
  display: block;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1.5px solid var(--border-light);
  background: var(--bg-card);
  transition: all var(--transition-fast);
  position: relative;
}

.option-check:checked + .checkbox-box {
  background: var(--color-gold);
  border-color: var(--color-gold);
}

.option-check:checked + .checkbox-box::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 7px;
  width: 5px;
  height: 10px;
  border: solid var(--bg-card);
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}

.option-details {
  flex: 1;
}

.option-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 2px;
}

.opt-name {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.3;
}

.opt-price {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
}

.opt-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.35;
}

/* Déplacement */
.travel-block {
  background: var(--bg-card-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.travel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.travel-title-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
}

.free-km-badge {
  background: rgba(37, 211, 102, 0.12);
  color: #128C7E;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-full);
}

.travel-cost {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-main);
}

.travel-range-wrap {
  margin-top: 10px;
}

.travel-distance-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

input[type="range"]#travel-slider {
  width: 100%;
  height: 6px;
  border-radius: 4px;
  background: #E5DDD3;
  outline: none;
  -webkit-appearance: none;
  cursor: pointer;
}

body.dark-mode input[type="range"]#travel-slider {
  background: #2A2724;
}

input[type="range"]#travel-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-gold);
  border: 2px solid var(--bg-card);
  cursor: pointer;
}

.travel-ticks {
  display: flex;
  justify-content: space-between;
  font-size: 0.68rem;
  color: var(--text-light);
  margin-top: 4px;
}

.tick-free {
  color: var(--whatsapp-color);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   SECTION 4 : LE RÉCAPITULATIF 100% RESPONSIVE (SANS CASSE DE LIGNE)
   -------------------------------------------------------------------------- */
.summary-card {
  background: var(--bg-card) !important;
  border: 1.5px solid var(--border-light) !important;
  box-shadow: var(--shadow-card) !important;
}

.summary-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 14px;
  margin-bottom: 16px;
}

.summary-title-col {
  flex: 1;
  min-width: 160px;
}

.recap-label-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.summary-card-title {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

.summary-price-box {
  text-align: right;
  background: var(--color-gold);
  color: var(--bg-card);
  padding: 8px 16px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--color-gold);
  flex-shrink: 0;
}

.price-box-label {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--bg-accent-soft);
  opacity: 0.9;
}

.price-box-amount {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--bg-card);
}

/* Lignes de devis verticales ultra-robustes */
.breakdown-items-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.breakdown-item-card {
  background: var(--bg-card-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.breakdown-item-card.main-pack {
  background: var(--bg-accent-soft);
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--color-gold);
}

.breakdown-row-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.breakdown-item-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.3;
  flex: 1;
}

.breakdown-item-price {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  flex-shrink: 0;
  text-align: right;
}

.breakdown-item-detail {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Bloc WhatsApp et Coordonnées */
.whatsapp-card-block {
  background: var(--bg-card-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 18px 14px;
}

.whatsapp-card-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-main);
}

.contact-fields-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.c-field {
  display: flex;
  flex-direction: column;
}

.c-field label {
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 3px;
}

.required-star {
  color: #FF5A5A;
  font-weight: 700;
  font-size: 0.85rem;
}

.c-field input {
  padding: 11px 12px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-light);
  background: var(--bg-card);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  color: var(--text-main);
  transition: all var(--transition-fast);
}

.c-field input::placeholder {
  color: var(--text-light);
}

.c-field input:focus {
  outline: none;
  background: var(--bg-card);
  border-color: var(--border-active);
  color: var(--text-main);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}

body.dark-mode .c-field input:focus {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.15);
}

body.dark-mode .c-field input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1);
  cursor: pointer;
  opacity: 0.85;
}

.c-field.has-error input {
  border-color: #FF5A5A !important;
  background: #FFF5F5 !important;
  color: #141312 !important;
  box-shadow: 0 0 0 3px rgba(255, 90, 90, 0.2) !important;
  animation: shakeInput 0.3s ease-in-out;
}

body.dark-mode .c-field.has-error input {
  background: #261616 !important;
  color: #FFFFFF !important;
}

@keyframes shakeInput {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

.contact-validation-msg {
  background: #FFF5F5;
  border: 1px solid rgba(255, 90, 90, 0.4);
  color: #D32F2F;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 14px;
  animation: fadeIn 0.2s ease-out;
}

body.dark-mode .contact-validation-msg {
  background: #261616;
  color: #FF8F8F;
}

.whatsapp-btn-wrap {
  display: flex;
  flex-direction: column;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 20px;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 0.98rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  border: none;
  transition: all var(--transition-fast);
}

.btn-whatsapp-direct {
  background: var(--whatsapp-gradient);
  color: #FFFFFF;
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp-direct:hover {
  background: var(--whatsapp-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45);
}

.reassurance-note {
  font-size: 0.76rem;
  color: var(--text-light);
  text-align: center;
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  line-height: 1.4;
}

.reassurance-line {
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.8rem;
}

.reassurance-sub {
  color: var(--text-muted);
  font-size: 0.74rem;
}

/* --------------------------------------------------------------------------
   BARRE FIXE EN BAS (PANNEAU TARIF LIVE - TOUJOURS VISIBLE)
   -------------------------------------------------------------------------- */
.ids-live-calculator-panel,
.sticky-footer,
.sticky-bar,
.fixed-bottom-bar {
  position: fixed !important;
  bottom: 0px !important;
  left: 0px !important;
  right: 0px !important;
  width: 100% !important;
  background: rgba(255, 255, 255, 0.96) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  border-top: 1.5px solid rgba(0, 0, 0, 0.1) !important;
  padding: 12px 16px 14px !important;
  z-index: 2147483647 !important;
  box-shadow: 0 -8px 25px rgba(0, 0, 0, 0.08) !important;
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  box-sizing: border-box !important;
  transition: background 0.25s ease, border-color 0.25s ease;
}

body.dark-mode .ids-live-calculator-panel,
body.dark-mode .sticky-footer,
body.dark-mode .sticky-bar,
body.dark-mode .fixed-bottom-bar {
  background: #161412 !important;
  border-top: 2px solid #FFFFFF !important;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5), 0 -2px 10px rgba(255, 255, 255, 0.16) !important;
}

.ids-panel-inner,
.fixed-bottom-inner {
  max-width: 680px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.fixed-price-col {
  display: flex;
  flex-direction: column;
}

.fixed-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  max-width: 150px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fixed-amount-row {
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.fixed-currency {
  font-size: 1.05rem;
  color: var(--text-main);
  font-weight: 600;
}

.fixed-amount {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1;
}

.fixed-action-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--whatsapp-gradient);
  color: #FFFFFF;
  border: none;
  padding: 12px 18px;
  border-radius: var(--radius-full);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.fixed-action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.55);
}

@media (min-width: 768px) {
  .sticky-footer,
  .sticky-bar,
  .fixed-bottom-bar {
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    width: min(650px, calc(100% - 32px)) !important;
    bottom: 14px !important;
    border-radius: var(--radius-full) !important;
    border: 1.5px solid var(--border-light) !important;
    padding: 10px 22px;
  }
}

/* --------------------------------------------------------------------------
   MODAL DE CONFIRMATION DIRECTE WHATSAPP
   -------------------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(18, 16, 14, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-smooth);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  max-width: 480px;
  width: 100%;
  padding: 26px 20px;
  position: relative;
  box-shadow: var(--shadow-card);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--text-light);
  cursor: pointer;
}

.modal-icon {
  font-size: 2rem;
  margin-bottom: 6px;
}

.modal-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.modal-subtitle {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.modal-summary-preview {
  background: var(--bg-card-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 12px;
  font-size: 0.82rem;
  line-height: 1.5;
  white-space: pre-line;
  color: var(--text-main);
  margin-bottom: 18px;
  max-height: 160px;
  overflow-y: auto;
}

.full-width {
  width: 100%;
}

/* --------------------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------------------- */
.footer {
  text-align: center;
  padding: 24px 20px 36px;
  color: var(--text-light);
  font-size: 0.8rem;
}

.footer-brand {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--text-main);
}

.footer-phone {
  font-weight: 600;
  color: var(--color-gold-dark);
  margin: 4px 0;
}

.footer-legal {
  font-size: 0.72rem;
}

/* Responsive Tablette & Bureau */
@media (min-width: 640px) {
  .header {
    padding: 50px 24px 40px;
  }
  .main-title {
    font-size: 2.85rem;
  }
  .prestation-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .contact-fields-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
