/* =============================================
   DAVID BLANCHET — Slider horizontal
   davidblanchet.fr
   ============================================= */

:root {
  --db-noir:   #1A2B25;
  --db-sauge:  #3A7A65;
  --db-sauge2: #6A9E8E;
  --db-brume:  #DDE8E4;
  --db-creme:  #F5F8F7;
  --db-texte:  #2A4A3E;
  --db-doux:   #4A7A6A;
}

/* ── Conteneur principal ── */
#db-slider {
  width: 100%;
  height: 100vh;
  overflow: hidden;
  position: relative;
  font-family: 'DM Sans', sans-serif;
}

/* ── Piste des panneaux ── */
#db-track {
  display: flex;
  width: 600%;
  height: 100%;
  transition: transform .7s cubic-bezier(.22, 1, .36, 1);
}

/* ── Panneau individuel ── */
.db-panel {
  width: calc(100% / 6);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 48px 64px;
  position: relative;
  overflow: hidden;
}

.db-panel-num {
  position: absolute;
  bottom: 24px;
  right: 32px;
  font-size: 120px;
  font-weight: 700;
  opacity: .04;
  line-height: 1;
  pointer-events: none;
  font-family: 'DM Sans', sans-serif;
}

/* ── Couleurs des panneaux ── */
.db-p1 { background: var(--db-noir); }
.db-p2 { background: var(--db-creme); }
.db-p3 { background: #fff; }
.db-p4 { background: var(--db-brume); }
.db-p5 { background: var(--db-noir); }
.db-p6 { background: var(--db-sauge); }

/* ── Barre de progression ── */
#db-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--db-sauge);
  transition: width .7s cubic-bezier(.22, 1, .36, 1);
  z-index: 200;
}

/* ── Navigation points ── */
#db-dots {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 200;
}

.db-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,.3);
  cursor: pointer;
  transition: all .3s;
  border: none;
  padding: 0;
}
.db-dot.active {
  background: #fff;
  transform: scale(1.4);
}
.db-p2 ~ #db-dots .db-dot,
.db-p3 ~ #db-dots .db-dot,
.db-p4 ~ #db-dots .db-dot {
  background: rgba(26,43,37,.2);
}

/* ── Flèches discrètes ── */
#db-prev, #db-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: rgba(255,255,255,.4);
  cursor: pointer;
  z-index: 200;
  background: none;
  border: none;
  padding: 16px;
  transition: color .2s, opacity .2s;
  user-select: none;
}
#db-prev { left: 16px; }
#db-next { right: 16px; }
#db-prev:hover, #db-next:hover { color: rgba(255,255,255,.9); }
#db-prev.hidden, #db-next.hidden { opacity: 0; pointer-events: none; }

/* ── Compteur ── */
#db-counter {
  position: fixed;
  bottom: 28px;
  right: 32px;
  font-size: 11px;
  color: rgba(255,255,255,.4);
  z-index: 200;
  font-family: 'DM Sans', sans-serif;
  letter-spacing: .08em;
}

/* ══════════════════════════════════════
   CONTENU DES PANNEAUX
   ══════════════════════════════════════ */

/* ── Tag / label ── */
.db-tag {
  display: inline-block;
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

/* ── Titres ── */
.db-h1 {
  font-family: 'Lora', serif;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 400;
  text-align: center;
  line-height: 1.2;
  margin-bottom: 12px;
}
.db-h2 {
  font-family: 'Lora', serif;
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 400;
  text-align: center;
  line-height: 1.2;
  margin-bottom: 20px;
}

/* ── Sous-titre ── */
.db-sub {
  font-size: 14px;
  font-weight: 300;
  text-align: center;
  line-height: 1.8;
  max-width: 480px;
  margin-bottom: 28px;
}

/* ── Boutons ── */
.db-btns { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

.db-btn-primary {
  background: var(--db-sauge);
  color: #fff;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 15px;
  letter-spacing: .1em;
  padding: 12px 28px;
  text-decoration: none;
  border: 2px solid var(--db-sauge);
  transition: background .2s, color .2s;
  border-radius: 2px;
  cursor: pointer;
}
.db-btn-primary:hover { background: transparent; color: var(--db-sauge2); }

.db-btn-outline {
  background: transparent;
  color: rgba(255,255,255,.75);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 15px;
  letter-spacing: .1em;
  padding: 12px 28px;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.3);
  transition: all .2s;
  border-radius: 2px;
  cursor: pointer;
}
.db-btn-outline:hover { border-color: #fff; color: #fff; }

/* ── Grilles disciplines ── */
.db-disc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: 100%;
  max-width: 480px;
}
.db-disc-card {
  background: #fff;
  border: 0.5px solid var(--db-brume);
  border-left: 3px solid var(--db-sauge);
  padding: 16px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.db-disc-icon {
  width: 40px; height: 40px;
  background: rgba(58,122,101,.1);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.db-disc-title { font-size: 14px; font-weight: 500; color: var(--db-noir); }
.db-disc-sub   { font-size: 11px; color: var(--db-doux); margin-top: 2px; }

/* ── Grille pourquoi ── */
.db-why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: 100%;
  max-width: 560px;
}
.db-why-card {
  background: var(--db-creme);
  border: 0.5px solid var(--db-brume);
  padding: 20px 16px;
}
.db-why-num   { font-size: 32px; font-weight: 700; color: var(--db-brume); line-height: 1; margin-bottom: 8px; }
.db-why-title { font-size: 14px; font-weight: 500; color: var(--db-noir); margin-bottom: 4px; }
.db-why-text  { font-size: 12px; color: var(--db-doux); line-height: 1.6; font-weight: 300; }

/* ── Formules ── */
.db-form-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  width: 100%;
  max-width: 620px;
}
.db-form-card {
  background: #fff;
  border-left: 3px solid var(--db-sauge);
  padding: 22px 16px;
}
.db-form-tag {
  font-size: 9px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--db-sauge); background: rgba(58,122,101,.08);
  padding: 2px 10px; border-radius: 999px;
  display: inline-block; margin-bottom: 10px;
}
.db-form-title  { font-family: 'Lora', serif; font-size: 18px; color: var(--db-noir); margin-bottom: 8px; }
.db-form-desc   { font-size: 12px; color: var(--db-doux); line-height: 1.7; font-weight: 300; margin-bottom: 10px; }
.db-form-detail { font-size: 11px; color: #999; }

/* ── Profil ── */
.db-profil {
  display: flex; gap: 32px; align-items: center;
  max-width: 560px; width: 100%;
}
.db-profil-img {
  width: 120px; height: 160px;
  background: rgba(255,255,255,.08);
  border-radius: 2px;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 6px; flex-shrink: 0;
}
.db-profil-stats {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 8px; margin: 14px 0;
}
.db-stat {
  background: rgba(255,255,255,.06);
  padding: 10px 12px; border-radius: 2px;
}
.db-stat-num   { font-size: 22px; font-weight: 500; color: var(--db-sauge); }
.db-stat-label { font-size: 10px; color: rgba(255,255,255,.45); }
.db-profil-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.db-profil-tag {
  font-size: 10px; border: 1px solid rgba(106,158,142,.4);
  color: var(--db-sauge2); padding: 2px 10px; border-radius: 999px;
}

/* ── Témoignages ── */
.db-temo-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 10px; width: 100%; max-width: 640px; margin-bottom: 28px;
}
.db-temo {
  background: rgba(255,255,255,.12);
  border: 0.5px solid rgba(255,255,255,.15);
  padding: 18px 14px; border-radius: 2px;
}
.db-temo-q {
  font-family: 'Lora', serif; font-style: italic;
  font-size: 13px; color: rgba(255,255,255,.85);
  line-height: 1.7; margin-bottom: 10px;
}
.db-temo-a { font-size: 10px; color: var(--db-sauge2); }

/* ── CTA blanc ── */
.db-btn-white {
  background: #fff; color: var(--db-sauge);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 15px; letter-spacing: .1em;
  padding: 12px 28px; text-decoration: none;
  border: 2px solid #fff; border-radius: 2px;
  transition: background .2s, color .2s; cursor: pointer;
}
.db-btn-white:hover { background: transparent; color: #fff; }

/* ══ RESPONSIVE ══ */
@media(max-width: 768px) {
  .db-panel { padding: 32px 24px; }
  .db-disc-grid, .db-why-grid { max-width: 100%; }
  .db-form-grid { grid-template-columns: 1fr; max-width: 320px; }
  .db-temo-grid { grid-template-columns: 1fr; max-width: 320px; }
  .db-profil { flex-direction: column; }
  .db-profil-img { width: 100%; height: 120px; }
  .db-h1 { font-size: 28px; }
  .db-h2 { font-size: 22px; }
}