/* ==========================================================================
   Wauthier.com — Espace familial Wauthier
   ========================================================================== */

/* --------------------------------------------------------------------------
   Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Neutral base */
  --bg:            #f4f3ee;
  --ink:           #16150f;
  --ink-soft:      #38362f;
  --muted:         #55534b;
  --muted-2:       #6b6a62;
  --faint:         #9a988f;
  --surface:       #fbfaf7;
  --white:         #fff;

  --rule:          rgba(0, 0, 0, .1);
  --rule-soft:     rgba(0, 0, 0, .08);
  --field-border:  rgba(0, 0, 0, .16);

  /* Per-activity accents */
  --ia:            #1f5f9e;
  --ia-deep:       #16324d;
  --ia-slate:      #3a4d6b;
  --ia-pale:       #8ea3c9;

  --energie:       #4a6b47;
  --energie-deep:  #2f4a2c;

  --archi:         #7a6a52;

  --philo:         #5a4a6b;
  --philo-deep:    #3a3350;

  --sweet:         #A85F78;
  --sweet-ink:     #3A2A30;
  --sweet-body:    #6E5D63;
  --sweet-faint:   #8A767D;
  --sweet-muted:   #A8969C;
  --sweet-gold:    #B2925C;

  --kawa:          #6b7a52;
  --kawa-deep:     #3b4028;
  --kawa-body:     #565a45;
  --kawa-faint:    #9a9c8c;
  --kawa-label:    #aeb894;
  --kawa-para:     #d4d8c4;
  --kawa-olive:    #5e6b45;

  /* Type */
  --sans:    Manrope, sans-serif;
  --display: 'Space Grotesk', sans-serif;
  --serif:   Spectral, serif;
  --garamond:'Cormorant Garamond', serif;
  --jost:    'Jost', sans-serif;

  /* Layout */
  --gutter: 34px;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--muted-2); }

::selection { background: var(--ink); color: var(--bg); }

img { max-width: 100%; }

.shell { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }

/* Screen-reader-only text */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* Keyboard skip link */
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--bg);
  font-family: var(--sans); font-size: 14px; font-weight: 600;
  padding: 10px 18px; border-radius: 8px;
  transition: top .16s ease;
}
.skip-link:focus { top: 12px; color: var(--bg); }

:where(a, button, input, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
  border-radius: 4px;
}

@keyframes wfadeup {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   Layout helpers
   -------------------------------------------------------------------------- */
.wrap    { max-width: 1180px; margin: 0 auto; }
.wrap-md { max-width: 1120px; margin: 0 auto; }
.wrap-sm { max-width: 960px;  margin: 0 auto; }
.wrap-xs { max-width: 820px;  margin: 0 auto; }

.eyebrow {
  font-family: var(--sans);
  font-size: 13px; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 18px;
}
.eyebrow--tight { letter-spacing: .2em; }

.section-label {
  font-family: var(--display);
  font-size: 14px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--faint);
  margin: 0 0 30px;
}

/* Split hero: text + visual */
.split {
  padding: 8px var(--gutter) 20px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
}

.lede {
  font-family: var(--sans);
  font-size: 19px; line-height: 1.65;
  color: var(--muted);
  max-width: 54ch;
  margin: 24px 0 0;
  text-wrap: pretty;
}

.lede--follow { margin-top: 16px; }

.h-display {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(34px, 4.6vw, 54px);
  line-height: 1.05;
  letter-spacing: -.02em;
  margin: 0;
  max-width: 16ch;
}

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 14px var(--gutter);
  background: rgba(244, 243, 238, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rule-soft);
}

.nav__brand { display: flex; align-items: center; gap: 12px; }
.nav__brand:hover { color: var(--ink); }

.nav__mark {
  height: 40px; width: 40px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.wordmark {
  font-family: var(--display);
  font-weight: 700; font-size: 16px;
  letter-spacing: .14em;
}
.wordmark span { color: var(--faint); }

.nav__links {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 4px;
  margin: 0; padding: 0; list-style: none;
}

.nav__link {
  display: block;
  font-family: var(--sans);
  font-size: 14px; font-weight: 600;
  padding: 8px 13px;
  border-radius: 8px;
  color: var(--muted-2);
  transition: background .15s ease, color .15s ease;
}
.nav__link:hover { background: rgba(0, 0, 0, .05); color: var(--muted-2); }
.nav__link[aria-current='page'] { color: var(--ink); }

/* --------------------------------------------------------------------------
   Screens
   -------------------------------------------------------------------------- */
.screen { animation: wfadeup .5s ease both; }
.screen[hidden] { display: none; }

@media (prefers-reduced-motion: reduce) {
  .screen { animation: none; }
}

.back {
  padding: 40px var(--gutter) 0;
}
.back__link {
  cursor: pointer;
  font-family: var(--sans);
  font-size: 13px; font-weight: 600;
  color: var(--faint);
  display: inline-flex; align-items: center; gap: 7px;
}
.back__link:hover { color: var(--ink); }

/* --------------------------------------------------------------------------
   Home
   -------------------------------------------------------------------------- */
.home-hero { padding: 72px var(--gutter) 40px; }

.home-hero__inner {
  display: flex; align-items: center;
  gap: clamp(24px, 4vw, 52px);
  flex-wrap: wrap;
}

.home-hero__logo {
  height: clamp(150px, 19vw, 240px);
  width: auto; object-fit: contain; flex: none;
}

.home-hero__text { flex: 1; min-width: 300px; }

.home-hero h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.02;
  letter-spacing: -.02em;
  margin: 0;
  max-width: 15ch;
  text-wrap: balance;
}

.home-hero p {
  font-family: var(--sans);
  font-size: clamp(16px, 1.7vw, 19px);
  line-height: 1.6;
  color: var(--muted);
  max-width: 54ch;
  margin: 22px 0 0;
}

/* Bento grid */
.bento {
  padding: 8px var(--gutter) 96px;
}
.bento__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  /* Les deux premières rangées (Énergie, IA & RH) sont plus hautes : la
     surface des tuiles décroît avec l'ordre d'affichage. */
  grid-template-rows: 190px 190px;
  grid-auto-rows: 158px;
  gap: 14px;
}

.tile {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  display: block;
  transition: transform .25s ease, box-shadow .25s ease;
}
.tile:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(0, 0, 0, .12); }

@media (prefers-reduced-motion: reduce) {
  .tile { transition: none; }
  .tile:hover { transform: none; }
}

.tile__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}

.tile__scrim { position: absolute; inset: 0; }

.tile__body {
  position: absolute;
  left: 26px; right: 26px; bottom: 24px;
  color: var(--white);
}
.tile__body--sm { left: 22px; right: 22px; bottom: 18px; }

.tile h3 { margin: 0; }

.tile__cue {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sans);
  font-size: 13.5px; font-weight: 700;
  margin-top: 8px;
  opacity: .95;
}
.tile__cue--sm { gap: 7px; font-size: 12.5px; margin-top: 5px; }

/* Individual tiles */
.tile--archi { grid-column: span 7; grid-row: span 1; }
/* Activité pas encore publiée : la tuile reste visible mais ne réagit pas. */
.tile--soon { cursor: default; }
.tile--soon:hover { transform: none; box-shadow: none; }
.tile--archi h3 {
  font-family: var(--display);
  font-size: 27px; font-weight: 600; letter-spacing: -.01em;
}
.tile--archi .tile__scrim {
  background: linear-gradient(180deg, rgba(20, 25, 35, 0) 40%, rgba(20, 25, 35, .72) 100%);
}

.tile--ia {
  grid-column: span 5; grid-row: span 2;
  background: linear-gradient(150deg, #eef4fa 0%, #dbe7f4 100%);
  display: flex; flex-direction: column;
  padding: 30px 32px;
}
.tile--ia .tile__logo { flex: 1; display: flex; align-items: center; justify-content: center; }
/* Le logo est livré sur fond blanc opaque : on l'assume en carte blanche
   arrondie plutôt que de le laisser former un rectangle sur le dégradé. */
.tile--ia .tile__logo img {
  width: 100%; max-width: 420px; height: auto; object-fit: contain;
  background: var(--white);
  border-radius: 14px;
  padding: 10px 14px;
  box-shadow: 0 4px 14px rgba(22, 50, 77, .08);
}
.tile--ia h3 {
  font-family: var(--display);
  font-size: 26px; font-weight: 600; letter-spacing: -.01em;
  color: var(--ia-deep);
}
.tile--ia .tile__cue { color: var(--ia); margin-top: 7px; }

.tile--sweet { grid-column: span 5; grid-row: span 2; }
.tile--sweet h3 {
  font-family: var(--garamond);
  font-size: 34px; font-weight: 600; line-height: 1;
}
.tile--sweet .tile__cue {
  font-family: var(--jost);
  font-weight: 500; letter-spacing: .4px;
}
.tile--sweet .tile__scrim {
  background: linear-gradient(180deg, rgba(90, 54, 38, 0) 35%, rgba(90, 54, 38, .72) 100%);
}

/* Logo tile: the Kawa mark ships as an opaque rectangle with its own green
   gradient baked in, so it is cropped to a circle — showing only the white
   disc — over a tile background sampled from that same gradient. */
.tile--kawa {
  grid-column: span 3; grid-row: span 1;
  background: linear-gradient(150deg, #98a67c 0%, #bccba1 100%);
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  padding: 22px 22px 22px 24px;
}
.tile--kawa h3 {
  font-family: var(--serif);
  font-size: 20px; font-weight: 400; line-height: 1.05;
  color: #2b3320;
}
.tile--kawa .tile__cue { font-weight: 600; color: #46522f; }
.tile--kawa .tile__mark {
  flex: none;
  width: 76px; height: 76px;
  border-radius: 50%;
  overflow: hidden;
}
.tile--kawa .tile__mark img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.06);
}

.tile--energie {
  grid-column: span 7; grid-row: span 2;
  background: #eef3ea;
  display: flex; flex-direction: column-reverse; justify-content: space-between;
  gap: 20px;
  padding: 26px 28px;
}
.tile--energie h3 {
  font-family: var(--display);
  font-size: 23px; font-weight: 600; letter-spacing: -.01em;
  color: var(--energie-deep);
}
.tile--energie .tile__cue { color: var(--energie); }
.tile--energie .tile__art { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; }
.tile--energie .tile__art img { width: auto; height: 100%; max-height: 210px; object-fit: contain; display: block; }

.tile--philo {
  grid-column: span 4; grid-row: span 1;
  background: #edecf1;
  display: flex; flex-direction: column; justify-content: center;
  padding: 24px 28px;
}
.tile--philo h3 {
  font-family: var(--serif);
  font-size: 26px; font-weight: 400;
  color: var(--philo-deep);
}
.tile--philo .tile__cue { font-size: 13px; font-weight: 600; color: var(--philo); }
.tile--philo .tile__inner { position: relative; }
.tile__filigrane {
  position: absolute; top: 50%; right: -10px;
  transform: translateY(-50%);
  height: 150%; width: auto;
  max-width: none;
  opacity: .5;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(250deg, #000 40%, transparent 82%);
  mask-image: linear-gradient(250deg, #000 40%, transparent 82%);
}

/* --------------------------------------------------------------------------
   Cards / panels
   -------------------------------------------------------------------------- */
.cards {
  padding: 44px var(--gutter) 8px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.card {
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 26px 24px;
  background: var(--surface);
}
.card__label {
  font-family: var(--sans);
  font-size: 12px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--ia-slate);
  margin-bottom: 12px;
}
.card p {
  font-family: var(--sans);
  font-size: 16px; line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
}

/* Fact strip */
.facts {
  display: flex; flex-wrap: wrap; gap: 14px;
}
.fact {
  flex: 1; min-width: 220px;
  display: flex; align-items: center; gap: 14px;
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 18px 20px;
  background: var(--white);
}
.fact--top { align-items: flex-start; min-width: 240px; padding: 20px 22px; }
.fact--top svg { flex: none; margin-top: 1px; }
.fact__label {
  font-family: var(--sans);
  font-size: 12px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--faint);
}
.fact__value {
  font-family: var(--sans);
  font-size: 15px; font-weight: 600;
  color: var(--ink);
  margin-top: 3px;
  line-height: 1.4;
}
a.fact:hover { color: inherit; }

/* Numbered steps */
.steps { display: flex; flex-direction: column; }
.step {
  display: flex; gap: 22px;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule-soft);
}
.step__num {
  flex: none;
  font-family: var(--display);
  font-size: 15px; font-weight: 700;
  color: var(--ia-slate);
  width: 34px;
  padding-top: 2px;
}
.step h3 {
  font-family: var(--display);
  font-size: 20px; font-weight: 600;
  margin: 0 0 5px;
}
.step p {
  font-family: var(--sans);
  font-size: 15.5px; line-height: 1.6;
  color: var(--muted-2);
  margin: 0;
}

/* --------------------------------------------------------------------------
   Contact blocks
   -------------------------------------------------------------------------- */
.contact-panel {
  border: 1px solid var(--rule);
  border-radius: 20px;
  padding: clamp(30px, 4vw, 48px);
  background: var(--surface);
}
.contact-panel h2 {
  font-family: var(--display);
  font-size: clamp(23px, 3vw, 32px);
  font-weight: 600;
  margin: 0 0 10px;
}
.contact-panel > p {
  font-family: var(--sans);
  font-size: 16px; line-height: 1.6;
  color: var(--muted-2);
  max-width: 52ch;
  margin: 0 0 30px;
}

/* Dark CTA (IA screen) */
.cta-dark {
  background: var(--ink);
  border-radius: 20px;
  padding: clamp(34px, 5vw, 60px);
  color: var(--bg);
}
.cta-dark h2 {
  font-family: var(--display);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 600; letter-spacing: -.01em;
  margin: 0 0 12px;
}
.cta-dark > p {
  font-family: var(--sans);
  font-size: 16px; line-height: 1.6;
  color: #b8b6ad;
  max-width: 54ch;
  margin: 0 0 20px;
}
.cta-dark__links {
  display: flex; flex-wrap: wrap; gap: 22px;
  margin: 0 0 34px;
}
.cta-dark__link {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--sans);
  font-size: 15px; font-weight: 600;
  color: var(--bg);
}
.cta-dark__link:hover { color: var(--white); }
.cta-dark__form-shell {
  background: var(--bg);
  border-radius: 14px;
  padding: 6px;
}
.cta-dark__form-shell .contact-form-mount,
.cta-dark__form-shell .workshop-form-mount { display: block; padding: 26px; }

/* --------------------------------------------------------------------------
   Contact form
   -------------------------------------------------------------------------- */
.cform { display: flex; flex-direction: column; gap: 18px; }

.cform__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.cform__field {
  display: flex; flex-direction: column; gap: 7px;
  font-family: var(--sans);
  font-size: 12px; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase;
  color: var(--muted-2);
}

.cform__field input,
.cform__field textarea {
  font-family: var(--sans);
  font-size: 15px; font-weight: 400;
  text-transform: none; letter-spacing: 0;
  color: var(--ink);
  padding: 13px 15px;
  border: 1px solid var(--field-border);
  border-radius: 9px;
  background: var(--white);
  outline: none;
  width: 100%;
}
.cform__field textarea { resize: vertical; min-height: 110px; }
.cform__field input:focus,
.cform__field textarea:focus { border-color: var(--ink); }

.cform__submit {
  align-self: flex-start;
  margin-top: 4px;
  font-family: var(--display);
  font-size: 15px; font-weight: 600;
  color: var(--white);
  background: var(--accent, var(--ink));
  border: none;
  padding: 15px 30px;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 10px;
}
.cform__submit:hover { opacity: .88; }
.cform__submit[disabled] { opacity: .6; cursor: default; }

/* Astérisque des champs obligatoires. */
.cform__req { color: #a3342f; font-weight: 700; }

/* Marque un champ non obligatoire, sans rompre le libellé en capitales. */
.cform__optional {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--muted-2);
  opacity: .75;
}

.cform__note {
  font-family: var(--sans);
  font-size: 13px; line-height: 1.55;
  color: var(--muted-2);
  max-width: 52ch;
  margin: -4px 0 0;
}

.cform__error {
  font-family: var(--sans);
  font-size: 14px; line-height: 1.5;
  color: #a3342f;
  margin: 0;
}
.cform__error[hidden] { display: none; }

/* Sent confirmation */
.cform-sent {
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 14px;
  padding: 38px 34px;
  border: 1px solid var(--rule);
  border-radius: 14px;
  background: var(--white);
}
.cform-sent__badge {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--accent, var(--ink));
  color: var(--accent, var(--ink));
}
.cform-sent:focus { outline: none; }
.cform-sent__title {
  font-family: var(--display);
  font-size: 20px; font-weight: 600;
  color: var(--ink);
}
.cform-sent__body {
  font-family: var(--sans);
  font-size: 15px; line-height: 1.6;
  color: var(--muted-2);
  max-width: 46ch;
}
.cform-sent__again {
  margin-top: 6px;
  background: none; border: none; padding: 0;
  font-family: var(--sans);
  font-size: 14px; font-weight: 600;
  color: var(--accent, var(--ink));
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* --------------------------------------------------------------------------
   IA & RH screen
   -------------------------------------------------------------------------- */
.ia-eyebrow { color: var(--ia); }

.ia-logo-panel {
  border: 1px solid rgba(31, 95, 158, .15);
  border-radius: 20px;
  background: linear-gradient(150deg, #eef4fa 0%, #dbe7f4 100%);
  padding: 38px 34px;
  display: flex; align-items: center; justify-content: center;
}
.ia-logo-panel img { width: 100%; max-width: 360px; height: auto; object-fit: contain; }

/* Profile panel beside the hero */
.ia-profile {
  border: 1px solid rgba(31, 95, 158, .15);
  border-radius: 20px;
  background: linear-gradient(150deg, #eef4fa 0%, #dbe7f4 100%);
  padding: 34px 32px;
}
.ia-profile__kicker {
  font-family: var(--display);
  font-size: 22px; font-weight: 700;
  color: var(--ia-deep);
  margin: 0 0 16px;
}
.ia-profile__list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.ia-profile__list li {
  position: relative;
  padding-left: 20px;
  font-family: var(--sans);
  font-size: 16px; line-height: 1.5;
  color: var(--ink-soft);
}
.ia-profile__list li::before {
  content: '';
  position: absolute; left: 0; top: .6em;
  width: 8px; height: 8px; border-radius: 50%;
  background: #f07c22;
}
.ia-profile__list strong { color: var(--ia-deep); }
.ia-profile__note {
  font-family: var(--sans);
  font-size: 14.5px; line-height: 1.55;
  color: var(--ia-slate);
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid rgba(31, 95, 158, .18);
}

/* The three workshop offers */
.offers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.offer {
  display: flex; flex-direction: column;
  border: 1px solid var(--rule);
  border-radius: 18px;
  background: var(--white);
  padding: 18px 22px 24px;
}
.offer__logo {
  display: block;
  border-radius: 12px;
  margin: 0 -4px 14px;
  transition: transform .2s ease;
}
.offer__logo:hover { transform: scale(1.02); }
.offer__logo img { display: block; width: 100%; height: auto; }
.offer__audience {
  font-family: var(--sans);
  font-size: 12px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--ia);
  margin: 0 0 8px;
}
.offer h3 {
  font-family: var(--display);
  font-size: 19px; font-weight: 600; line-height: 1.3;
  margin: 0 0 10px;
}
.offer > p {
  font-family: var(--sans);
  font-size: 15px; line-height: 1.6;
  color: var(--muted-2);
  margin: 0 0 16px;
}
.offer__facts {
  list-style: none; margin: auto 0 18px; padding: 0;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.offer__facts li {
  font-family: var(--sans);
  font-size: 13px; font-weight: 600;
  color: var(--ia-deep);
  background: #eef4fa;
  border-radius: 999px;
  padding: 6px 12px;
}
.offer__actions {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px;
}
.offer__pdf {
  font-family: var(--sans);
  font-size: 14px; font-weight: 600;
  color: var(--ia);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.offer__pick {
  font-family: var(--display);
  font-size: 14px; font-weight: 600;
  color: var(--white);
  background: var(--ia);
  border: none;
  border-radius: 9px;
  padding: 10px 16px;
  cursor: pointer;
}
.offer__pick:hover { opacity: .88; }

/* Workshop request form extras */
.cform__field select {
  font-family: var(--sans);
  font-size: 15px; font-weight: 400;
  text-transform: none; letter-spacing: 0;
  color: var(--ink);
  padding: 13px 15px;
  border: 1px solid var(--field-border);
  border-radius: 9px;
  background: var(--white);
  outline: none;
  width: 100%;
}
.cform__field select:focus { border-color: var(--ink); }
.cform__group {
  border: none; margin: 0; padding: 0; min-width: 0;
  display: flex; flex-direction: column; gap: 14px;
}
.cform__group legend {
  padding: 0; margin-bottom: 4px;
  font-family: var(--sans);
  font-size: 12px; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase;
  color: var(--ink-soft);
}
.cform__checks { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.cform__check {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  cursor: pointer;
}
.cform__check input { width: 18px; height: 18px; accent-color: var(--accent, var(--ink)); }

.rule-top { border-top: 1px solid var(--rule); padding-top: 44px; }

/* --------------------------------------------------------------------------
   Énergie screen
   -------------------------------------------------------------------------- */
.peb-logo-panel {
  border: 1px solid rgba(74, 107, 71, .16);
  border-radius: 20px;
  background: linear-gradient(150deg, #eef3ea 0%, #e0ebdd 100%);
  padding: 38px 34px;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
}
.peb-logo-panel img { width: 100%; max-width: 340px; height: auto; object-fit: contain; }

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 16px;
  overflow: hidden;
}
.service {
  background: var(--surface);
  padding: 30px 28px;
  display: flex; flex-direction: column; gap: 14px;
  min-height: 210px;
}
.service__icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: #e9efe7;
  display: flex; align-items: center; justify-content: center;
  color: var(--energie);
}
.service h3 {
  font-family: var(--display);
  font-size: 20px; font-weight: 600;
  margin: 4px 0 0;
}
.service p {
  font-family: var(--sans);
  font-size: 15px; line-height: 1.6;
  color: var(--muted-2);
  margin: 0;
}
a.fact:hover { border-color: var(--energie); }

/* --------------------------------------------------------------------------
   Architecture screen
   -------------------------------------------------------------------------- */
.archi-eyebrow { color: var(--archi); }

.archi-hero { padding: 70px var(--gutter) 20px; }
.archi-hero h1 { max-width: 18ch; }
.archi-hero p { max-width: 60ch; margin: 26px 0 0; }

.archi-figure {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--rule-soft);
  aspect-ratio: 16 / 7;
}
.archi-figure img { width: 100%; height: 100%; object-fit: cover; display: block; }

.archi-steps {
  border-top: 1px solid var(--rule);
  padding-top: 44px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 26px;
}
.archi-step { display: flex; flex-direction: column; gap: 10px; }
.archi-step__num {
  font-family: var(--display);
  font-size: 13px; font-weight: 700;
  color: var(--archi);
  letter-spacing: .1em;
}
.archi-step h3 {
  font-family: var(--display);
  font-size: 19px; font-weight: 600;
  margin: 0;
}
.archi-step p {
  font-family: var(--sans);
  font-size: 15px; line-height: 1.6;
  color: var(--muted-2);
  margin: 0;
}

/* --------------------------------------------------------------------------
   Le coin philo
   -------------------------------------------------------------------------- */
.philo { position: relative; overflow: hidden; }

.philo__filigrane {
  position: absolute;
  top: 0; right: -40px;
  width: min(680px, 60vw);
  max-width: none;
  opacity: .34;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(205deg, #000 45%, transparent 88%);
  mask-image: linear-gradient(205deg, #000 45%, transparent 88%);
  z-index: 0;
}

.philo section { position: relative; z-index: 1; }

.philo-eyebrow { color: var(--philo); }

.philo-hero { padding: 70px var(--gutter) 20px; }
.philo-hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 4.4vw, 50px);
  line-height: 1.12;
  letter-spacing: -.01em;
  margin: 0;
  max-width: 20ch;
}
.philo-hero p {
  font-family: var(--sans);
  font-size: 18px; line-height: 1.7;
  color: var(--muted);
  max-width: 60ch;
  margin: 24px 0 0;
}

.quote-card {
  border: 1px solid var(--rule);
  border-radius: 20px;
  background: var(--surface);
  padding: clamp(34px, 5vw, 58px);
}
.quote-card__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  margin-bottom: 30px;
}
.quote-card__kicker {
  font-family: var(--sans);
  font-size: 12px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--faint);
}
.quote-card__date {
  font-family: var(--sans);
  font-size: 12px; font-weight: 600;
  color: var(--faint);
}
.quote-card blockquote {
  margin: 0;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(24px, 3.4vw, 36px);
  line-height: 1.3;
  color: var(--ink);
  text-wrap: pretty;
}
.quote-card__author {
  font-family: var(--sans);
  font-size: 15px; font-weight: 600;
  color: var(--philo);
  margin-top: 22px;
}
.quote-card__hr {
  height: 1px;
  background: var(--rule);
  margin: 34px 0;
  border: 0;
}
.quote-card__context {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 18px; line-height: 1.75;
  color: var(--ink-soft);
  margin: 0;
  text-wrap: pretty;
}
.quote-nav {
  display: flex; align-items: center; justify-content: center;
  gap: 22px;
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--rule);
}
/* Sans cette règle, le `display: flex` ci-dessus l'emporte sur l'attribut
   `hidden` et les flèches s'affichent alors qu'elles ne mènent nulle part. */
.quote-nav[hidden] { display: none; }
.quote-nav__btn {
  font-family: var(--sans);
  font-size: 13px; font-weight: 700;
  letter-spacing: .12em;
  color: var(--philo);
  background: none;
  border: 0;
  border-radius: 6px;
  padding: 6px 10px;
  cursor: pointer;
  transition: opacity .18s ease, background-color .18s ease;
}
.quote-nav__btn:hover { background: rgba(90, 74, 107, .09); }
.quote-nav__btn:disabled {
  opacity: .28;
  cursor: default;
  background: none;
}
.quote-nav__date {
  font-family: var(--sans);
  font-size: 13px; font-weight: 600;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
  /* Largeur fixe : sans elle, les flèches bougent à chaque changement de date. */
  min-width: 10ch;
  text-align: center;
}

.philo-contact {
  border: 1px solid var(--rule);
  border-radius: 20px;
  padding: clamp(28px, 4vw, 42px);
}
.philo-contact h2 {
  font-family: var(--serif);
  font-weight: 400; font-size: 26px;
  margin: 0 0 8px;
}
.philo-contact > p {
  font-family: var(--sans);
  font-size: 15.5px; line-height: 1.6;
  color: var(--muted-2);
  max-width: 52ch;
  margin: 0 0 28px;
}

/* --------------------------------------------------------------------------
   SweetLo
   -------------------------------------------------------------------------- */
.sweet {
  background: radial-gradient(130% 120% at 8% 0%, #F7E7EC 0%, #FBF3EF 44%, #FAF5F1 100%);
  font-family: var(--jost);
}
.sweet .back__link {
  font-family: var(--jost);
  font-weight: 500;
  color: var(--sweet-muted);
}
.sweet .back__link:hover { color: var(--sweet); }

.sweet__id {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 26px;
}
.sweet__avatar {
  width: 74px; height: 74px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 8px 24px rgba(168, 95, 120, .22);
}
.sweet__name {
  font-family: var(--garamond);
  font-size: 34px; font-weight: 600;
  color: var(--sweet-ink);
  line-height: 1;
}
.sweet__tagline {
  font-family: var(--jost);
  font-size: 12px;
  letter-spacing: 1.6px;
  color: var(--sweet);
  margin-top: 4px;
}

.sweet h1 {
  font-family: var(--garamond);
  font-weight: 600;
  font-size: clamp(40px, 5vw, 62px);
  line-height: 1.04;
  letter-spacing: .3px;
  margin: 0;
  color: var(--sweet-ink);
  text-wrap: balance;
}
.sweet__lede {
  font-family: var(--jost);
  font-size: 17px; line-height: 1.65;
  color: var(--sweet-body);
  max-width: 52ch;
  margin: 22px 0 0;
  text-wrap: pretty;
}

.sweet__hero-img {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(58, 42, 48, .22);
  aspect-ratio: 4 / 5;
}
.sweet__hero-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sweet__hero-img::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(58, 42, 48, 0) 55%, rgba(58, 42, 48, .5) 100%);
}

.sweet__heading {
  font-family: var(--garamond);
  font-size: 30px; font-weight: 600;
  color: var(--sweet-ink);
  margin-bottom: 22px;
}

.sweet__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}

.pastry {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(58, 42, 48, .08);
}
.pastry__img { aspect-ratio: 4 / 3; overflow: hidden; }
.pastry__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pastry__body { padding: 18px 20px 22px; }
.pastry__cat {
  font-family: var(--jost);
  font-size: 10px;
  letter-spacing: 1.4px;
  color: var(--sweet-gold);
  text-transform: uppercase;
  margin-bottom: 5px;
}
.pastry h3 {
  font-family: var(--garamond);
  font-weight: 600; font-size: 23px;
  margin: 0 0 5px;
  color: var(--sweet-ink);
  line-height: 1.1;
}
.pastry p {
  font-family: var(--jost);
  font-size: 14px; line-height: 1.5;
  color: var(--sweet-faint);
  margin: 0;
}

.sweet-order {
  background: var(--white);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(58, 42, 48, .1);
  display: grid;
  grid-template-columns: .9fr 1.1fr;
}
.sweet-order__media { position: relative; min-height: 100%; min-height: 260px; }
.sweet-order__media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.sweet-order__body { padding: clamp(30px, 3.5vw, 48px); }
.sweet-order h2 {
  font-family: var(--garamond);
  font-weight: 600;
  font-size: clamp(28px, 3vw, 38px);
  color: var(--sweet-ink);
  margin: 0 0 8px;
}
.sweet-order > .sweet-order__body > p {
  font-family: var(--jost);
  font-size: 15.5px; line-height: 1.6;
  color: var(--sweet-body);
  max-width: 46ch;
  margin: 0 0 26px;
  text-wrap: pretty;
}

/* --------------------------------------------------------------------------
   Espace Kawa
   -------------------------------------------------------------------------- */
.kawa { background: linear-gradient(180deg, #f3f4ec 0%, #f6f5ee 100%); }
.kawa .back__link { color: var(--kawa-faint); }
.kawa .back__link:hover { color: var(--kawa-olive); }

.kawa-eyebrow { color: #6b7a52; }

.kawa h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(38px, 5vw, 60px);
  line-height: 1.06;
  letter-spacing: -.01em;
  margin: 0;
  color: var(--kawa-deep);
  max-width: 16ch;
}
.kawa__lede {
  font-family: var(--sans);
  font-size: 19px; line-height: 1.7;
  color: var(--kawa-body);
  max-width: 54ch;
  margin: 24px 0 0;
  text-wrap: pretty;
}

.btn-kawa {
  margin-top: 30px;
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display);
  font-size: 15px; font-weight: 600;
  color: var(--white);
  background: var(--kawa);
  border-radius: 10px;
  padding: 15px 28px;
}
.btn-kawa:hover { background: var(--kawa-olive); color: var(--white); }

.kawa__hero-img {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(59, 64, 40, .2);
  aspect-ratio: 4 / 5;
}
.kawa__hero-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

.kawa__panels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}
.kawa-panel {
  background: var(--white);
  border: 1px solid rgba(59, 64, 40, .1);
  border-radius: 20px;
  padding: 34px 30px;
}
.kawa-panel h2 {
  font-family: var(--serif);
  font-weight: 500; font-size: 26px;
  color: var(--kawa-deep);
  margin: 0 0 14px;
}
.kawa-panel p {
  font-family: var(--sans);
  font-size: 15.5px; line-height: 1.7;
  color: var(--kawa-body);
  margin: 0;
  text-wrap: pretty;
}

.kawa__gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.kawa__gallery div { aspect-ratio: 1 / 1; border-radius: 16px; overflow: hidden; }
.kawa__gallery img { width: 100%; height: 100%; object-fit: cover; display: block; }

.kawa .fact { border-color: rgba(59, 64, 40, .12); }
.kawa a.fact:hover { border-color: var(--kawa); }
.kawa .fact__label { color: var(--kawa-faint); }
.kawa .fact__value { color: var(--kawa-deep); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
  border-top: 1px solid var(--rule-soft);
  background: var(--bg);
  padding: 40px var(--gutter);
}
.footer__inner {
  max-width: 1120px; margin: 0 auto;
  display: flex; flex-wrap: wrap;
  gap: 24px;
  align-items: center; justify-content: space-between;
}
.footer__brand { display: flex; align-items: center; gap: 12px; }
.footer__mark {
  height: 34px; width: 34px;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.footer__brand .wordmark { font-size: 14px; }
.footer__meta {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--faint);
}

/* --------------------------------------------------------------------------
   Section padding utilities (match prototype spacing)
   -------------------------------------------------------------------------- */
.pad-steps    { padding: 44px var(--gutter); }
.pad-facts    { padding: 8px var(--gutter); }
.pad-offers   { padding: 44px var(--gutter) 28px; }
.pad-cta      { padding: 40px var(--gutter) 96px; }
.pad-figure   { padding: 52px var(--gutter); }
.pad-archi-steps { padding: 20px var(--gutter) 40px; }
.pad-archi-cta   { padding: 36px var(--gutter) 96px; }
.pad-philo-quote { padding: 48px var(--gutter); }
.pad-philo-cta   { padding: 8px var(--gutter) 96px; }
.pad-services    { padding: 52px var(--gutter) 20px; }
.pad-energie-facts { padding: 24px var(--gutter) 8px; }
.pad-sweet-grid  { padding: 48px var(--gutter) 8px; }
.pad-sweet-order { padding: 44px var(--gutter) 96px; }
.pad-kawa-panels { padding: 52px var(--gutter) 20px; }
.pad-kawa-gallery { padding: 24px var(--gutter); }
.pad-kawa-facts  { padding: 8px var(--gutter) 96px; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

/* Tablet: relax the bento into a 6-column grid */
@media (max-width: 1000px) {
  .bento__grid { grid-template-columns: repeat(6, 1fr); grid-template-rows: 170px 170px; grid-auto-rows: 150px; }
  .tile--energie { grid-column: span 6; grid-row: span 2; }
  .tile--ia      { grid-column: span 3; grid-row: span 2; }
  .tile--sweet   { grid-column: span 3; grid-row: span 2; }
  .tile--archi   { grid-column: span 6; grid-row: span 1; }
  .tile--philo   { grid-column: span 3; grid-row: span 1; }
  .tile--kawa    { grid-column: span 3; grid-row: span 1; }
}

/* Stack the two-column heroes */
@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
    gap: 34px;
  }
  .sweet-order { grid-template-columns: 1fr; }
  .offers { grid-template-columns: 1fr; max-width: 560px; }
  .sweet-order__media { min-height: 280px; }
  .h-display, .kawa h1, .sweet h1, .philo-hero h1 { max-width: none; }
}

/* Phone */
@media (max-width: 720px) {
  :root { --gutter: 20px; }

  .nav { flex-wrap: wrap; gap: 10px; padding: 12px var(--gutter); }
  .nav__links { gap: 2px; }
  .nav__link { padding: 7px 10px; font-size: 13px; }

  .home-hero { padding: 44px var(--gutter) 32px; }
  /* Stack explicitly: min-width:0 alone would let the two items shrink
     side-by-side instead of wrapping. */
  .home-hero__inner { flex-direction: column; align-items: flex-start; gap: 24px; }
  .home-hero__logo { height: clamp(120px, 34vw, 180px); }
  .home-hero__text { min-width: 0; width: 100%; }

  .bento__grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    grid-auto-rows: auto;
    gap: 12px;
  }
  .bento__grid .tile { grid-column: 1 / -1 !important; grid-row: auto !important; }
  .tile--sweet { min-height: 230px; }
  .tile--energie { min-height: 280px; }
  .tile--ia { min-height: 260px; }
  /* Kawa is now a logo tile, not a photo tile — it sizes like the other two. */
  .tile--archi, .tile--philo, .tile--kawa { min-height: 150px; }

  .cform__row { grid-template-columns: 1fr; }

  .quote-card__head { flex-direction: column; align-items: flex-start; gap: 6px; }

  .philo__filigrane { width: min(420px, 78vw); right: -60px; opacity: .26; }

  .cta-dark__links { gap: 14px; }
  .cta-dark__form-shell .contact-form-mount,
  .cta-dark__form-shell .workshop-form-mount { padding: 18px; }

  .cform-sent { padding: 28px 22px; }

  .archi-figure { aspect-ratio: 4 / 3; }

  .step { gap: 14px; }
  .step__num { width: 26px; }

  .footer__inner { gap: 16px; }
}
