/* ── Variables ───────────────────────────────────── */
:root {
  --black:      #000000;
  --white:      #FFFFFF;
  --bg:         #FFFFFF;
  --anthracite: #1C1C1C;
  --grey-mid:   #6F6F6F;
  --grey-light: #E5E5E5;
  --beige:      #EAE6DF;
  --toggle-on:  #1C1C1C;
  --toggle-off: #E8E4DE;

  --font-serif: "Didot", "GFS Didot", "Bodoni MT", Georgia, serif;
  --font-sans:  "Galvji", local("Galvji"), "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* ── Utility ─────────────────────────────────────── */
.hidden { display: none !important; }

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

/* ── Base ────────────────────────────────────────── */
body {
  background: var(--bg);
  color: var(--anthracite);
  font-family: var(--font-sans);
  line-height: 1.6;
}

/* ── Layout ──────────────────────────────────────── */
.wrapper {
  display: grid;
  grid-template-columns: 50% 50%;
}

/* ── Colonne gauche ──────────────────────────────── */
.col-left {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px 0 32px clamp(6px, 12vw, 33%);
}

.col-left picture {
  display: block;
  width: 100%;
  height: 100%;
}

.col-left__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.col-left__logo-wrap {
  margin-top: 14px;
  padding: 4px 5% 8px 0;
  width: 100%;
  text-align: center;
  flex-shrink: 0;
}

#logo {
  height: 48px;
  width: auto;
  object-fit: contain;
}

/* ── Colonne droite ──────────────────────────────── */
.col-right {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.confirmation .col-right {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 120px 56px 80px;
}

/* ── Scrollbar ───────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--grey-light); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: var(--grey-mid); }

/* ── Logo mobile ─────────────────────────────────── */
.logo-mobile { display: none; }

/* ── Titre ───────────────────────────────────────── */
h1 {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(0.72rem, 1.25vw, 1.05rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  color: var(--black);
  padding: 0 0 52px;
  margin-bottom: 0;
}

h1::after {
  content: none;
}

/* ── Formulaire ──────────────────────────────────── */
.form-container {
  padding: 24px 72px 80px 52px;
}

#preferencesForm {
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 560px;
}

.bloc {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

#estimation-bloc {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

.bloc > div,
#estimation-bloc > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* ── Labels ──────────────────────────────────────── */
label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #000000;
}

label:has(input[type="radio"]) {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: none;
  letter-spacing: normal;
  font-size: 0.875rem;
  color: var(--anthracite);
  cursor: pointer;
}

.bloc > div:not(#estimation-bloc):has(input[type="radio"]),
#estimation-bloc > div:has(input[type="radio"]) {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.bloc > div:not(#estimation-bloc):has(input[type="radio"]) > label:first-child,
#estimation-bloc > div:has(input[type="radio"]) > label:first-child {
  width: 100%;
}

span[aria-hidden="true"] { color: var(--grey-mid); }

/* ── Inputs ──────────────────────────────────────── */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--grey-light);
  padding: 10px 0;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: var(--anthracite);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.2s;
}

input[type="text"]::placeholder,
input[type="email"]::placeholder,
input[type="tel"]::placeholder,
input[type="number"]::placeholder,
textarea::placeholder {
  color: var(--grey-light);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
textarea:focus {
  border-bottom-color: var(--black);
}

textarea {
  min-height: 90px;
  resize: none;
}

/* ── Radio ───────────────────────────────────────── */
input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border: 1px solid var(--grey-mid);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s, border-color 0.15s;
  position: relative;
}

input[type="radio"]:checked {
  background: var(--anthracite);
  border-color: var(--anthracite);
}

input[type="radio"]:checked::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--white);
}

/* ── Bouton ──────────────────────────────────────── */
button[type="submit"] {
  width: 100%;
  background: var(--anthracite);
  color: var(--white);
  border: none;
  padding: 16px;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
}

button[type="submit"]:hover { background: var(--black); }

/* ── Signature ───────────────────────────────────── */
.signature {
  margin-top: 56px;
  max-width: 560px;
  text-align: center;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 0.95rem;
  font-style: italic;
  color: var(--grey-mid);
  letter-spacing: 0.02em;
  line-height: 1.9;
}

/* ── Page confirmation ───────────────────────────── */
.confirmation-message {
  max-width: 560px;
}

.confirmation-message p {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  letter-spacing: 0.02em;
  color: var(--black);
  line-height: 1.7;
}


body.confirmation .signature {
  margin-top: auto;
  padding-top: 56px;
}

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 768px) {
  .wrapper { grid-template-columns: 1fr; }

  .col-left { display: none; }

  .logo-mobile {
    display: flex;
    justify-content: center;
    margin-bottom: 32px;
  }

  .logo-mobile img { height: 36px; width: auto; }

  .form-container { padding: 36px 24px 60px; }

  #preferencesForm { max-width: 100%; }

  .signature { max-width: 100%; }

  body.confirmation .col-right {
    min-height: auto;
    padding: 48px 24px 64px;
    justify-content: flex-start;
  }

  .confirmation-message { max-width: 100%; }
}
