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

:root {
  --red: #CC0000;
  --red-dark: #990000;
  --black: #0a0a0a;
  --white: #ffffff;
  --bg: #f4f4f2;
  --border: #d8d8d6;
  --muted: #6b6b69;
  --input-h: 48px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Barlow',sans-serif;
  background: var(--bg);
  color: var(--black);
  min-height: 100vh;
}

/* ── NAV ── */

nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 2px solid var(--black);
  padding: 0 5vw;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: 'Barlow Condensed',sans-serif;
  font-weight: 900;
  font-size: 26px;
  letter-spacing: -0.5px;
  color: var(--black);
  display: flex;
  align-items: center;
  gap: 0;
}

.nav-logo span {
  color: var(--red);
}

.nav-logo::after {
  content: '';
  display: block;
  width: 100%;
  height: 3px;
  background: var(--red);
  position: absolute;
  bottom: -2px;
  left: 0;
}

.nav-wrap {
  position: relative;
}

.nav-badge {
  background: var(--bg);
  border: 1.5px solid var(--border);
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 14px;
}

/* ── HERO STRIP ── */

.hero-strip {
  background: var(--black);
  color: var(--white);
  padding: 44px 5vw 40px;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.hero-strip::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--red);
}

.hero-strip::after {
  content: 'RDV';
  font-family: 'Barlow Condensed',sans-serif;
  font-weight: 900;
  font-size: 220px;
  color: rgba(255,255,255,0.03);
  position: absolute;
  right: -20px;
  top: -30px;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.hero-eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--red);
  font-weight: 600;
  margin-bottom: 12px;
}

.hero-strip h1 {
  font-family: 'Barlow Condensed',sans-serif;
  font-weight: 900;
  font-size: clamp(32px,6vw,62px);
  text-transform: uppercase;
  line-height: 0.95;
  margin-bottom: 16px;
  color: #ffffff;
}

.hero-strip h1 em {
  color: var(--red);
  font-style: normal;
}

.hero-sub {
  font-size: 15px;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
  max-width: 540px;
  margin: 0 auto;
}

/* ── FORM CONTAINER ── */

.form-wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 48px 5vw 80px;
}

/* ── BLOC SECTION ── */

.form-bloc {
  background: var(--white);
  border: 1.5px solid var(--border);
  margin-bottom: 20px;
  overflow: hidden;
}

.bloc-head {
  background: var(--black);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.bloc-num {
  font-family: 'Barlow Condensed',sans-serif;
  font-weight: 900;
  font-size: 13px;
  color: var(--red);
  background: rgba(204,0,0,0.15);
  border: 1px solid rgba(204,0,0,0.4);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bloc-title {
  font-family: 'Barlow Condensed',sans-serif;
  font-weight: 800;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--white);
}

.bloc-body {
  padding: 28px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 24px;
}

.bloc-body.full {
  grid-template-columns: 1fr;
}

/* ── CHAMPS ── */

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field.span2 {
  grid-column: 1/-1;
}

label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--muted);
}

label .req {
  color: var(--red);
  margin-left: 2px;
}

input[type=text], input[type=email], input[type=tel], input[type=date], input[type=number], select, textarea {
  width: 100%;
  height: var(--input-h);
  border: 1.5px solid var(--border);
  background: var(--white);
  font-family: 'Barlow',sans-serif;
  font-size: 15px;
  color: var(--black);
  padding: 0 14px;
  outline: none;
  border-radius: 0;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.15s ease;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(204,0,0,0.08);
}

input::placeholder, textarea::placeholder {
  color: #b0b0ae;
  font-size: 14px;
}

textarea {
  height: auto;
  min-height: 110px;
  padding: 12px 14px;
  resize: vertical;
  line-height: 1.6;
}

/* SELECT custom arrow */

.select-wrap {
  position: relative;
}

.select-wrap::after {
  content: '▾';
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: var(--muted);
  pointer-events: none;
}

select {
  padding-right: 36px;
  cursor: pointer;
}

/* Radio créneaux */

.creneaux {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 10px;
}

.creneau-option {
  position: relative;
}

.creneau-option input[type=radio] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.creneau-option label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--border);
  padding: 14px 8px;
  cursor: pointer;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  font-weight: 600;
  transition: border-color 0.15s,background 0.15s,color 0.15s;
  gap: 6px;
}

.creneau-option label .slot-time {
  font-family: 'Barlow Condensed',sans-serif;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--black);
}

.creneau-option input[type=radio]:checked + label {
  border-color: var(--red);
  background: rgba(204,0,0,0.04);
  color: var(--red);
}

.creneau-option input[type=radio]:checked + label .slot-time {
  color: var(--red);
}

.creneau-option label:hover {
  border-color: var(--black);
}

/* Motif radio pills */

.motifs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.motif-option {
  position: relative;
}

.motif-option input[type=radio] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.motif-option label {
  display: inline-block;
  border: 1.5px solid var(--border);
  padding: 9px 16px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: var(--black);
  transition: border-color 0.15s,background 0.15s;
}

.motif-option input[type=radio]:checked + label {
  border-color: var(--red);
  background: var(--red);
  color: var(--white);
}

.motif-option label:hover {
  border-color: var(--black);
}

/* ── SUBMIT ── */

.submit-area {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.btn-submit {
  width: 100%;
  background: var(--red);
  color: var(--white);
  font-family: 'Barlow Condensed',sans-serif;
  font-weight: 900;
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 18px 40px;
  border: none;
  cursor: pointer;
  transition: background 0.18s ease,transform 0.1s ease;
}

.btn-submit:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
}

.btn-submit:active {
  transform: translateY(0);
}

.legal {
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  line-height: 1.7;
}

/* ── CONFIRMATION (hidden by default) ── */

.confirm-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10,10,10,0.85);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.confirm-overlay.show {
  display: flex;
}

.confirm-box {
  background: var(--white);
  max-width: 480px;
  width: 100%;
  padding: 40px 36px;
  text-align: center;
}

.confirm-box::before {
  content: '';
  display: block;
  width: 60px;
  height: 5px;
  background: var(--red);
  margin: 0 auto 24px;
}

.confirm-box h2 {
  font-family: 'Barlow Condensed',sans-serif;
  font-weight: 900;
  font-size: 32px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.confirm-box p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

.btn-close-confirm {
  background: var(--black);
  color: var(--white);
  font-family: 'Barlow',sans-serif;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 12px 28px;
  border: none;
  cursor: pointer;
}

/* ── FOOTER ── */

footer {
  background: var(--black);
  color: rgba(255,255,255,0.4);
  text-align: center;
  padding: 22px 5vw;
  font-size: 11px;
  line-height: 1.7;
}

footer a {
  color: rgba(255,255,255,0.55);
}

/* ── RESPONSIVE ── */

@media (max-width:640px) {
  .bloc-body {
    grid-template-columns: 1fr;
  }
}

@media (max-width:640px) {
  .field.span2 {
    grid-column: auto;
  }
}

@media (max-width:640px) {
  .creneaux {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width:640px) {
  nav {
    padding: 0 4vw;
  }
}

@media (max-width:640px) {
  .form-wrap {
    padding: 32px 4vw 60px;
  }
}

@media (max-width:640px) {
  .bloc-body {
    padding: 20px 16px;
  }
}

@media (max-width:640px) {
  .bloc-head {
    padding: 12px 16px;
  }
}

