/* ==========================================================================
   Afoodi — page /contact
   Le formulaire est le contenu principal : il occupe la colonne large et
   n'attend pas le bas de page. Le reste — coordonnées directes, seuil
   d'éligibilité — l'accompagne sans le concurrencer.
   ========================================================================== */

.has-gsap [data-reveal] { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .has-gsap [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* ==========================================================================
   HERO
   ========================================================================== */
.top {
  background:
    radial-gradient(1100px 620px at 50% -8%, oklch(0.33 0.05 163 / .85), transparent 60%),
    linear-gradient(175deg, var(--green-dark), var(--green-ink) 70%);
  padding-bottom: clamp(44px, 5.5vw, 78px);
}
.hero { padding: clamp(44px, 6vw, 88px) 0 clamp(30px, 3.6vw, 48px); max-width: 1000px; }
.hero h1 {
  font-size: clamp(34px, 5vw, 72px);
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: 1;
  margin-top: 18px;
  text-wrap: balance;
}
.hero h1 .accent { color: var(--orange); }
.hero__lead {
  font-size: clamp(16.5px, 1.3vw, 19px);
  line-height: 1.6;
  color: var(--cream-dim);
  margin-top: clamp(20px, 2.4vw, 30px);
  max-width: 62ch;
  text-wrap: pretty;
}
.hero__lead strong { color: var(--cream); font-weight: 800; }

.promesse {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 22px);
  margin-top: clamp(28px, 3.2vw, 44px);
  padding-top: clamp(26px, 3vw, 38px);
  border-top: 1px solid var(--panel-line);
}
.promesse li {
  border: 1px solid var(--panel-line);
  border-radius: 18px;
  padding: clamp(18px, 1.8vw, 24px);
  background: oklch(0.24 0.04 165 / .45);
}
.promesse__no { font-size: 12px; font-weight: 800; letter-spacing: .18em; color: var(--orange); }
.promesse__t { font-size: clamp(17px, 1.5vw, 21px); font-weight: 800; letter-spacing: -.02em; line-height: 1.2; margin-top: 10px; }
.promesse__d { font-size: 14.5px; line-height: 1.5; color: var(--cream-dim); margin-top: 8px; }
.promesse__note {
  margin-top: clamp(22px, 2.4vw, 32px);
  font-size: 15.5px;
  font-weight: 700;
  color: var(--cream);
  border-left: 2px solid var(--orange);
  padding-left: 16px;
  max-width: 60ch;
  text-wrap: pretty;
}

/* ==========================================================================
   FORMULAIRE
   ========================================================================== */
.light { background: var(--cream); color: var(--green-ink); position: relative; z-index: 2; }
.light a { color: var(--green-ink); }
.light a:hover { color: var(--orange); }

.rdv {
  border-radius: 34px 34px 0 0;
  margin-top: -22px;
  padding: clamp(52px, 6.5vw, 100px) 0 clamp(56px, 7vw, 104px);
}
.rdv__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 68px);
  align-items: start;
}
.rdv__form h2 {
  font-size: clamp(28px, 3.6vw, 48px);
  font-weight: 900;
  letter-spacing: -.035em;
  line-height: 1;
  text-wrap: balance;
}
.rdv__sous { font-size: 14.5px; line-height: 1.55; color: var(--ink-soft); margin-top: 14px; }

/* ==========================================================================
   Agenda Google, chargé au clic
   L'iframe dépose des cookies tiers : elle n'apparaît qu'après une action
   explicite du visiteur, à qui l'on dit ce qui va se passer. Tant qu'il n'a
   pas cliqué, la page ne contacte pas Google.
   ========================================================================== */
.agenda {
  margin-top: clamp(26px, 3vw, 38px);
  border: 1px solid var(--ink-line);
  border-radius: 20px;
  background: var(--cream-pure);
  overflow: hidden;
}
.agenda__invite { padding: clamp(26px, 3.2vw, 44px); display: grid; justify-items: start; gap: 14px; }
.agenda__t { font-size: clamp(19px, 1.9vw, 25px); font-weight: 800; letter-spacing: -.025em; }
.agenda__d { font-size: 15.5px; line-height: 1.6; color: var(--ink-soft); max-width: 46ch; text-wrap: pretty; }
.agenda__invite .btn { margin-top: 6px; }
.agenda__legal { font-size: 12.5px; line-height: 1.55; color: var(--ink-soft); max-width: 54ch; text-wrap: pretty; }
.agenda__legal strong { font-weight: 800; color: var(--green-ink); }
.agenda__legal a { text-decoration: underline; text-underline-offset: 2px; }
/* Une fois chargée, l'iframe occupe tout le cadre. */
.agenda iframe { display: block; width: 100%; height: clamp(620px, 78vh, 760px); border: 0; }

.form { display: grid; gap: 16px; margin-top: clamp(26px, 3vw, 38px); }
.form__duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.champ { display: grid; gap: 7px; }
.champ label { font-size: 13.5px; font-weight: 700; letter-spacing: -.01em; }
/* L'astérisque doit se voir sans être criard : c'est une indication, pas une alerte. */
.champ abbr { color: var(--orange); text-decoration: none; }
.champ__opt { font-weight: 500; color: var(--ink-soft); }
.champ input,
.champ select,
.champ textarea {
  font-family: var(--font);
  font-size: 15px;
  color: var(--green-ink);
  background: var(--cream-pure);
  border: 1px solid var(--ink-line);
  border-radius: 10px;
  padding: 13px 14px;
  width: 100%;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.champ textarea { resize: vertical; min-height: 96px; }
.champ input:focus-visible,
.champ select:focus-visible,
.champ textarea:focus-visible {
  border-color: var(--orange);
  outline: none;
  box-shadow: 0 0 0 3px oklch(0.68 0.16 45 / .18);
}
/* Signalé seulement après une tentative d'envoi, jamais pendant la frappe. */
.form.is-checked :invalid { border-color: oklch(0.58 0.19 25); }

.form__envoi { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 4px; }
.form__msg { font-size: 13.5px; font-weight: 700; line-height: 1.5; color: var(--orange); }
.form__msg:empty { display: none; }
.form__legal { font-size: 12.5px; line-height: 1.5; color: var(--ink-soft); }
.form__legal a { text-decoration: underline; text-underline-offset: 2px; }

/* ==========================================================================
   COLONNE D'APPUI
   ========================================================================== */
.rdv__aside { display: grid; gap: clamp(16px, 2vw, 24px); }
.direct, .seuil {
  background: var(--cream-pure);
  border: 1px solid var(--ink-line);
  border-radius: 20px;
  padding: clamp(22px, 2.2vw, 30px);
}
.direct { border-top: 3px solid var(--orange); }
.direct__k { font-size: 11.5px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--orange); }
/* Le visage de celui qu'on aura au bout du fil : sur une page de prise de
   rendez-vous, il vaut mieux qu'un nom seul. */
.direct__id { display: flex; align-items: center; gap: 16px; margin-top: 16px; }
.direct__photo { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; flex: none; }
.direct__nom { font-size: clamp(20px, 1.9vw, 26px); font-weight: 900; letter-spacing: -.025em; line-height: 1.15; }
.direct__role { font-size: 14px; color: var(--ink-soft); margin-top: 4px; }
.direct__liens { list-style: none; display: grid; gap: 8px; margin-top: 16px; }
.direct__liens a { font-size: 15px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

.seuil__k { font-size: 11.5px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft); }
.seuil__t { font-size: clamp(17px, 1.6vw, 21px); font-weight: 800; letter-spacing: -.02em; line-height: 1.25; margin-top: 12px; }
.seuil__t strong { color: var(--orange); font-weight: 900; }
.seuil__d { font-size: 14px; line-height: 1.6; color: var(--ink-soft); margin-top: 12px; text-wrap: pretty; }

.rdv__liens { font-size: 15px; line-height: 2.4; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 960px) {
  .rdv__grid { grid-template-columns: 1fr; }
  .promesse { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .form__duo { grid-template-columns: 1fr; }
}
