/* ========================================================== */
/* IBD Services — design tokens & globals                     */
/* Palette stricte : #0B1E38 #E86212 #F4C938 #B0BECA #FDFCFA  */
/* ========================================================== */

:root {
  --marin: #0B1E38;
  --marin-deep: #050E1A;
  --marin-line: #14294A;
  --marin-soft: #1B3354;
  --orange: #E86212;
  --orange-deep: #C0500A;
  --sable: #EEF2F7;
  --sable-soft: #D7DEE4;
  --acier: #B0BECA;
  --acier-soft: #D7DEE4;
  --noir: #1A2B3C;        /* corps texte sombre neutre */
  --noir-soft: #2E3D4F;   /* variante body secondaire */
  --fond: #F5F3EF;        /* sand undertone — zones respiration */
  --fond-warm: #F0EDE8;
  --blanc: #FFFFFF;

  --ff-title: "Barlow Condensed", "Arial Narrow", sans-serif;
  --ff-body: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --ff-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  font-family: var(--ff-body);
  font-weight: 400;
  background: var(--fond);
  color: var(--marin);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body { overflow-x: hidden; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }
img, svg { display: block; max-width: 100%; }

/* --- type system ----------------------------------------- */
.h1 {
  font-family: var(--ff-title);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -1px;
  line-height: 0.88;
}
.h2 {
  font-family: var(--ff-title);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.5px;
  line-height: 0.92;
}
.h3 {
  font-family: var(--ff-title);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
  line-height: 1;
}
.subtitle {
  font-family: var(--ff-body);
  font-weight: 700;
  color: var(--orange);
  letter-spacing: 0;
}
.body-dark { color: var(--acier); line-height: 1.55; }
.body-light { color: var(--noir); line-height: 1.55; }
.label {
  font-family: var(--ff-body);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 11px;
}
.mono { font-family: var(--ff-mono); }

/* --- layout helpers -------------------------------------- */
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 720px) { .wrap { padding: 0 20px; } }

/* --- buttons --------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 22px;
  font-family: var(--ff-body);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-size: 13px;
  border-radius: 2px;
  transition: transform .18s ease-out, background .18s ease-out, border-color .18s ease-out, color .18s ease-out;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn--orange  { background: var(--orange); color: #fff; }
.btn--orange:hover  { background: var(--orange-deep); }
.btn--marin   { background: var(--marin); color: #fff; }
.btn--marin:hover   { background: var(--marin-soft); }
.btn--white   { background: #fff; color: var(--marin); }
.btn--white:hover   { background: var(--fond-warm); }
.btn--ghost-white { background: transparent; color: #fff; border: 1.5px solid #fff; }
.btn--ghost-white:hover { background: #fff; color: var(--marin); }
.btn--ghost-marin { background: transparent; color: var(--marin); border: 1.5px solid var(--marin); }
.btn--ghost-marin:hover { background: var(--marin); color: #fff; }
.btn--sm { height: 42px; padding: 0 16px; font-size: 12px; }

/* arrow chip inside btn */
.btn .arr {
  width: 22px; height: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.15);
}
.btn--white .arr, .btn--ghost-marin .arr { background: var(--marin); color: #fff; }

/* --- helpers --------------------------------------------- */
.hr-orange { height: 3px; width: 56px; background: var(--orange); display: block; }
.hr-thin   { height: 1px; background: var(--marin-line); display: block; }

/* tagline tag with brackets */
.tag {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--sable);
}
.tag::before, .tag::after { content: ""; width: 22px; height: 1px; background: var(--sable); opacity: .6; }
.tag--marin { color: var(--marin); }
.tag--marin::before, .tag--marin::after { background: var(--marin); opacity: .35; }
.tag--orange { color: var(--orange); }
.tag--orange::before, .tag--orange::after { background: var(--orange); opacity: .5; }

/* striped photo placeholder — used everywhere we'd drop a real image */
.photo {
  position: relative;
  background:
    repeating-linear-gradient(135deg, rgba(176,190,202,.10) 0 10px, rgba(176,190,202,.04) 10px 22px),
    linear-gradient(180deg, #14294A 0%, #0B1E38 100%);
  overflow: hidden;
}
.photo::before {
  /* corner ticks */
  content: "";
  position: absolute; inset: 14px;
  border: 1px dashed rgba(176,190,202,.30);
  pointer-events: none;
}
.photo .photo-label {
  position: absolute;
  left: 22px; bottom: 22px;
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--acier);
  background: rgba(5,14,26,.78);
  padding: 6px 10px;
  border-left: 2px solid var(--orange);
}
.photo .photo-corner {
  position: absolute; top: 22px; right: 22px;
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--sable);
}

/* light variant */
.photo--light {
  background:
    repeating-linear-gradient(135deg, rgba(11,30,56,.06) 0 10px, rgba(11,30,56,.02) 10px 22px),
    linear-gradient(180deg, var(--fond-warm) 0%, #E3DCCE 100%);
}
.photo--light::before { border-color: rgba(11,30,56,.20); }
.photo--light .photo-label { background: var(--marin); color: #fff; }

/* --- shoring graphic (étais métalliques) ----------------- */
/* Subtle repeating vertical tubes for hero & atmospheric blocks */
.tubes {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(90deg, transparent 0, transparent 22px, rgba(176,190,202,.12) 22px, rgba(176,190,202,.12) 24px, transparent 24px, transparent 64px),
    linear-gradient(90deg, transparent 0, transparent 32px, rgba(176,190,202,.04) 32px, rgba(176,190,202,.04) 40px, transparent 40px, transparent 64px);
  background-size: 64px 100%;
  mix-blend-mode: screen;
  opacity: .65;
  pointer-events: none;
}

/* --- form primitives ------------------------------------ */
.ibd-input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--acier);
  background: #fff;
  font-family: var(--ff-body);
  font-size: 15px;
  color: var(--marin);
  outline: none;
  transition: border-color .15s ease-out, background .15s ease-out;
  border-radius: 0;
}
.ibd-input:focus { border-color: var(--orange); background: #FFFDF9; }
.ibd-input::placeholder { color: #9AA4AE; }

.ibd-qty-btn {
  width: 44px; height: 44px;
  border: 1px solid var(--acier);
  background: #fff;
  font-family: var(--ff-title);
  font-weight: 800;
  font-size: 14px;
  color: var(--marin);
  transition: border-color .15s, color .15s, background .15s;
}
.ibd-qty-btn:hover { border-color: var(--orange); color: var(--orange); }
.ibd-qty-btn:active { transform: scale(0.97); }

.ibd-chip {
  padding: 8px 14px;
  border: 1px solid var(--acier);
  background: #fff;
  font-family: var(--ff-body);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--marin);
  transition: border-color .15s, color .15s;
}
.ibd-chip:hover { border-color: var(--orange); color: var(--orange); }

/* --- accordion ------------------------------------------ */
.ibd-acc {
  border-top: 1px solid var(--acier-soft);
}
.ibd-acc summary {
  list-style: none;
  cursor: pointer;
  padding: 28px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid var(--acier-soft);
  transition: color .18s ease-out;
}
.ibd-acc summary::-webkit-details-marker { display: none; }
.ibd-acc[open] summary { color: var(--orange); }
.ibd-acc-body {
  padding: 4px 0 32px;
  border-bottom: 1px solid var(--acier-soft);
  color: var(--noir);
  line-height: 1.65;
  font-size: 15px;
  max-width: 760px;
}
.ibd-acc-icon {
  width: 36px; height: 36px;
  background: var(--orange);
  color: #fff;
  font-family: var(--ff-title);
  font-weight: 900;
  font-size: 22px;
  display: inline-flex;
  align-items: center; justify-content: center;
  flex: 0 0 auto;
  transition: transform .2s ease-out, background .15s;
}
.ibd-acc[open] .ibd-acc-icon { transform: rotate(45deg); background: var(--marin); }

/* selection */
::selection { background: var(--orange); color: #fff; }

/* --- scroll animations ----------------------------------- */
/* Elements start hidden and animate in when they enter viewport */
.ibd-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .55s cubic-bezier(.22,1,.36,1), transform .55s cubic-bezier(.22,1,.36,1);
}
.ibd-reveal.ibd-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children delay */
.ibd-reveal-group > *:nth-child(1) { transition-delay: 0ms; }
.ibd-reveal-group > *:nth-child(2) { transition-delay: 80ms; }
.ibd-reveal-group > *:nth-child(3) { transition-delay: 160ms; }
.ibd-reveal-group > *:nth-child(4) { transition-delay: 240ms; }
.ibd-reveal-group > *:nth-child(5) { transition-delay: 320ms; }

/* Slide from left */
.ibd-reveal-left {
  opacity: 0;
  transform: translateX(-32px);
  transition: opacity .55s cubic-bezier(.22,1,.36,1), transform .55s cubic-bezier(.22,1,.36,1);
}
.ibd-reveal-left.ibd-visible {
  opacity: 1;
  transform: translateX(0);
}

/* Slide from right */
.ibd-reveal-right {
  opacity: 0;
  transform: translateX(32px);
  transition: opacity .55s cubic-bezier(.22,1,.36,1), transform .55s cubic-bezier(.22,1,.36,1);
}
.ibd-reveal-right.ibd-visible {
  opacity: 1;
  transform: translateX(0);
}

/* Scale in — for cards/KPIs */
.ibd-reveal-scale {
  opacity: 0;
  transform: scale(.96);
  transition: opacity .5s cubic-bezier(.22,1,.36,1), transform .5s cubic-bezier(.22,1,.36,1);
}
.ibd-reveal-scale.ibd-visible {
  opacity: 1;
  transform: scale(1);
}

/* --- reservation booking grid ---------------------------- */
.ibd-booking-grid {
  grid-template-columns: 1fr 380px;
}

/* Page fade (already exists as keyframe, keep both) */
@keyframes ibd-fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* --- responsive mobile ----------------------------------- */
@media (max-width: 768px) {
  html, body { overflow-x: hidden; max-width: 100vw; }

  /* Grille pricing cards → 1 colonne */
  .ibd-pricing-grid {
    grid-template-columns: 1fr !important;
  }

  /* Formulaire réservation — form + récap en colonne */
  .ibd-booking-grid {
    grid-template-columns: 1fr !important;
  }

  /* Conditions bar */
  .ibd-conditions-grid {
    grid-template-columns: 1fr !important;
  }

  /* Section head — titre + texte en colonne */
  .ibd-section-head {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  /* About grid */
  .ibd-about-grid {
    grid-template-columns: 1fr !important;
  }

  /* Channels contact */
  .ibd-channels-grid {
    grid-template-columns: 1fr !important;
  }

  /* FAQ grid */
  .ibd-faq-grid {
    grid-template-columns: 1fr !important;
  }

  /* Values grid */
  .ibd-values-grid {
    grid-template-columns: 1fr 1fr !important;
  }

  /* Steps */
  .ibd-steps {
    grid-template-columns: 1fr 1fr !important;
  }

  /* Footer */
  .ibd-footer-grid {
    grid-template-columns: 1fr !important;
  }

  /* Stats */
  .ibd-stats-grid {
    grid-template-columns: 1fr !important;
  }

  /* Inventory grid */
  .ibd-inv-grid {
    grid-template-columns: 1fr !important;
  }

  /* Why grid */
  .ibd-why-grid {
    grid-template-columns: 1fr !important;
  }

  /* CTA grid */
  .ibd-cta-grid {
    grid-template-columns: 1fr !important;
  }

  /* Reduce padding on mobile */
  .wrap { padding: 0 16px; }

  /* Header nav — masquer sur mobile */
  .ibd-nav { display: none !important; }
  .ibd-header-cta { display: none !important; }
  .ibd-burger { display: inline-flex !important; }
}
