/* ============================================================================
   WEBOT — minimalisme chaleureux
   ----------------------------------------------------------------------------
   Palette verrouillée : sable, terracotta, argile, sauge, mousse, encre.
   Règle de couleur : le sable porte toute la page, l'encre porte tout le texte.
   La terracotta n'apparaît que sur les éléments qui appellent une action.
   Les filets de séparation sont en argile à 25 %.
   ========================================================================== */

:root {
  /* ---- Marque ---------------------------------------------------------- */
  --sable:      #E8DCC7;
  --terracotta: #C66B3D;
  --argile:     #B08B6E;
  --sauge:      #8B9D83;
  --mousse:     #606C38;
  --encre:      #33291F;
  --sable-creux: #DFD0B6;         /* bulle du visiteur dans le chat */

  /* ---- Dérivés --------------------------------------------------------- */
  --encre-72: rgba(51, 41, 31, .72);   /* texte secondaire */
  --encre-05: rgba(51, 41, 31, .05);   /* fond de carte, à peine posé */
  --filet:    rgba(176, 139, 110, .25);/* argile 25 % — séparations */
  --bord:     rgba(51, 41, 31, .42);   /* contour des éléments manipulables */

  /* ---- Typographie ----------------------------------------------------- */
  --titre: 'Fraunces', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --texte: 'Epilogue', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --t-display: clamp(3rem, 8.6vw, 8.5rem);
  --t-band:    clamp(2.5rem, 6.4vw, 5.5rem);
  --t-sub:     clamp(1.9rem, 3.4vw, 2.9rem);
  --t-lead:    clamp(1.6rem, 2.9vw, 2.35rem);
  --t-ask:     clamp(1.25rem, 2.2vw, 1.75rem);
  --t-big:     1.1875rem;
  --t-body:    1.0625rem;
  --t-small:   .9375rem;
  --t-micro:   .8125rem;

  /* ---- Mesures --------------------------------------------------------- */
  --marge: clamp(1.25rem, 5vw, 4.5rem);
  --large: 1240px;
  --bande: clamp(6.5rem, 14vw, 12.5rem);
  --arrondi: 26px;
  --courbe: cubic-bezier(.33, .7, .3, 1);

  color-scheme: light;
  interpolate-size: allow-keywords;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--sable);
  color: var(--encre);
  font-family: var(--texte);
  font-size: var(--t-body);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Grain à 3,5 % : une tuile SVG en position fixe, sans coût au défilement. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .2 0 0 0 0 .16 0 0 0 0 .12 0 0 0 2.4 -.6'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}

img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--encre);
  outline-offset: 3px;
  border-radius: 4px;
}

.shell {
  width: 100%;
  max-width: calc(var(--large) + var(--marge) * 2);
  margin-inline: auto;
  padding-inline: var(--marge);
}

.skip-link {
  position: fixed;
  z-index: 300;
  left: 1rem;
  top: -5rem;
  padding: .7rem 1.2rem;
  border-radius: 999px;
  background: var(--encre);
  color: var(--sable);
  text-decoration: none;
  transition: top .25s var(--courbe);
}
.skip-link:focus { top: 1rem; }


/* ══════════════════════════════════════════════════════════════════════════
   1. HEADER
   ═══════════════════════════════════════════════════════════════════════ */

.masthead {
  position: sticky;
  top: 0;
  z-index: 80;
  background: color-mix(in srgb, var(--sable) 88%, transparent);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  backdrop-filter: blur(12px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color .4s var(--courbe);
}
.masthead.sticking { border-bottom-color: var(--filet); }

.masthead-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: 5rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  text-decoration: none;
  flex: none;
}
.logo img { width: 48px; height: 48px; }
.logo-word {
  font-family: var(--titre);
  font-size: 1.75rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.022em;
  font-variation-settings: "SOFT" 60, "WONK" 0;
}
.logo-sm img { width: 32px; height: 32px; }
.logo-sm .logo-word { font-size: 1.375rem; }

.menu ul {
  display: flex;
  gap: clamp(1.25rem, 3vw, 2.75rem);
}
.menu a {
  position: relative;
  display: inline-block;
  padding-block: .45rem;
  font-size: .95rem;
  text-decoration: none;
}
.menu a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: .15rem;
  height: 1px;
  background: var(--terracotta);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s var(--courbe);
}
.menu a:hover::after,
.menu a:focus-visible::after,
.menu a[aria-current]::after { transform: scaleX(1); }

.menu-btn {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  padding: .5rem .35rem .5rem .75rem;
  border: 0;
  background: transparent;
  font-size: var(--t-small);
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
}
.menu-btn[hidden] { display: none; }
.menu-btn-bars {
  position: relative;
  width: 1.5rem;
  height: 9px;
}
.menu-btn-bars::before,
.menu-btn-bars::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1.5px;
  border-radius: 2px;
  background: var(--encre);
  transition: transform .4s var(--courbe);
}
.menu-btn-bars::before { top: 0; }
.menu-btn-bars::after  { bottom: 0; }
.menu-btn[aria-expanded="true"] .menu-btn-bars::before { transform: translateY(3.75px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn-bars::after  { transform: translateY(-3.75px) rotate(-45deg); }


/* ══════════════════════════════════════════════════════════════════════════
   2. HERO
   ═══════════════════════════════════════════════════════════════════════ */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(84svh, 52rem);
  padding-block: clamp(3.5rem, 8vw, 7rem) clamp(5rem, 11vw, 9.5rem);
  overflow: hidden;
}
.hero-body { position: relative; z-index: 1; }

.hero-h {
  max-width: 14ch;
  font-family: var(--titre);
  font-size: var(--t-display);
  font-weight: 300;
  line-height: .98;
  letter-spacing: -.038em;
  font-variation-settings: "SOFT" 45, "WONK" 0;
  text-wrap: balance;
}
.hero-h em {
  font-style: italic;
  font-variation-settings: "SOFT" 45, "WONK" 1;
  text-decoration: underline;
  text-decoration-color: var(--terracotta);
  text-decoration-thickness: .03em;
  text-underline-offset: .13em;
  text-decoration-skip-ink: none;
}

.hero-p {
  max-width: 34rem;
  margin-block: clamp(1.75rem, 3.6vw, 2.75rem);
  color: var(--encre-72);
  font-size: var(--t-big);
  text-wrap: pretty;
}

/* Les deux anneaux du logo, en simple trait, qui respirent en décalé. */
.hero-mark {
  position: absolute;
  z-index: 0;
  right: calc(var(--marge) * -.6);
  bottom: clamp(1.5rem, 7vh, 4.5rem);
  width: min(56vw, 720px);
  height: auto;
  pointer-events: none;
}
.hero-mark circle {
  fill: none;
  stroke-width: 1.15px;
  vector-effect: non-scaling-stroke;
}
.halo {
  transform-box: fill-box;
  transform-origin: center;
  animation: respire 9s ease-in-out infinite;
}
.halo-1 { stroke: var(--terracotta); opacity: .55; }
.halo-2 { stroke: var(--mousse);     opacity: .5;  animation-delay: -3s; }
.halo-3 { stroke: var(--sauge);      opacity: .8;  animation-delay: -6s; }

@keyframes respire {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.045); }
}

/* Entrée à l'ouverture de la page, sans dépendre du défilement. */
@keyframes monte {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
@keyframes parait { from { opacity: 0; } }

.hero-h   { animation: monte .95s var(--courbe) both; }
.hero-p   { animation: monte .95s var(--courbe) .1s both; }
.hero-cta { animation: monte .95s var(--courbe) .2s both; }
.hero-mark{ animation: parait 1.6s var(--courbe) .25s both; }


/* ══════════════════════════════════════════════════════════════════════════
   BOUTONS ET LIENS
   ═══════════════════════════════════════════════════════════════════════ */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: .55rem .55rem .55rem 1.75rem;
  border: 0;
  border-radius: 999px;
  background: var(--encre);
  color: var(--sable);
  font-size: var(--t-body);
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform .35s var(--courbe);
}
.pill-dot {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--terracotta);
  color: var(--encre);
  transition: transform .5s var(--courbe);
}
.pill:hover .pill-dot { transform: translateX(4px) scale(1.06); }
.pill:active { transform: scale(.985); }
.pill:focus-visible { outline-offset: 4px; border-radius: 999px; }
.pill[disabled] { opacity: .55; cursor: progress; }

.underline-link {
  display: inline-flex;
  align-items: baseline;
  gap: .5rem;
  margin-top: 2rem;
  padding-bottom: .25rem;
  border-bottom: 1px solid var(--bord);
  font-weight: 500;
  text-decoration: none;
  transition: border-color .3s var(--courbe);
}
.underline-link:hover { border-bottom-color: var(--terracotta); }
.underline-link-arrow { transition: transform .4s var(--courbe); }
.underline-link:hover .underline-link-arrow { transform: translateX(4px); }

.mail-link {
  text-decoration: underline;
  text-decoration-color: var(--terracotta);
  text-decoration-thickness: 1px;
  text-underline-offset: .25em;
}


/* ══════════════════════════════════════════════════════════════════════════
   BANDES DE SECTION
   ═══════════════════════════════════════════════════════════════════════ */

.band { padding-top: var(--bande); }
.band-last { padding-bottom: var(--bande); }

.band-head {
  position: relative;
  padding-top: 1.75rem;
  margin-bottom: clamp(3rem, 7vw, 6rem);
}
.band-head::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: var(--filet);
}

.eyebrow {
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
  color: var(--encre-72);
  font-size: var(--t-micro);
  font-weight: 500;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.band-h {
  max-width: 15ch;
  font-family: var(--titre);
  font-size: var(--t-band);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -.032em;
  font-variation-settings: "SOFT" 45, "WONK" 0;
  text-wrap: balance;
}

/* Deux colonnes : le titre tient à gauche, le contenu répond à droite. */
.split {
  display: grid;
  grid-template-columns: 5fr 7fr;
  column-gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}
.split .band-head { margin-bottom: 0; }


/* ══════════════════════════════════════════════════════════════════════════
   3. SERVICES
   ═══════════════════════════════════════════════════════════════════════ */

.offers {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.offer {
  display: flex;
  flex-direction: column;
  align-items: start;
  padding-block: .5rem;
}
.offer:first-child { padding-right: clamp(2rem, 5vw, 5rem); }
.offer + .offer {
  padding-left: clamp(2rem, 5vw, 5rem);
  border-left: 1px solid var(--filet);
}

.offer-mark {
  width: 3.5rem;
  height: 3.5rem;
  margin-bottom: 2rem;
  color: var(--encre);
}
.offer-h {
  font-family: var(--titre);
  font-size: var(--t-sub);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -.024em;
  font-variation-settings: "SOFT" 50, "WONK" 0;
}
.offer-p {
  max-width: 32rem;
  margin-top: 1.25rem;
  color: var(--encre-72);
  font-size: 1.125rem;
  text-wrap: pretty;
}

.spec {
  width: 100%;
  margin-top: 2.5rem;
}
.spec li {
  padding-block: 1rem;
  border-top: 1px solid var(--filet);
}
.spec li:last-child { border-bottom: 1px solid var(--filet); }


/* ══════════════════════════════════════════════════════════════════════════
   4. PORTFOLIO
   ═══════════════════════════════════════════════════════════════════════ */

.concepts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.25rem, 3vw, 2.5rem);
}

.concept {
  display: flex;
  flex-direction: column;
  padding: clamp(1.75rem, 3.4vw, 3rem);
  border: 1px solid var(--filet);
  border-radius: var(--arrondi);
  background: var(--encre-05);
}
.concept-warm  { --accent: var(--terracotta); }
.concept-green { --accent: var(--mousse); }

.concept-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: clamp(3rem, 7vw, 6rem);
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .3rem .85rem .3rem .7rem;
  border: 1px solid var(--accent);
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .1em;
  line-height: 1.6;
  text-transform: uppercase;
}
.tag::before {
  content: "";
  width: .4rem;
  height: .4rem;
  border-radius: 50%;
  background: var(--accent);
}
.concept-kind {
  color: var(--encre-72);
  font-size: var(--t-small);
}

.concept-h {
  font-family: var(--titre);
  font-size: clamp(2.25rem, 4.2vw, 3.6rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -.028em;
  font-variation-settings: "SOFT" 50, "WONK" 0;
}
.concept-p {
  max-width: 34rem;
  margin-block: 1.25rem clamp(2.5rem, 5vw, 3.5rem);
  color: var(--encre-72);
  text-wrap: pretty;
}
.concept-note {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid var(--filet);
  font-size: var(--t-small);
  font-weight: 500;
}
.concept-note svg { flex: none; color: var(--accent); }

.aside {
  max-width: 36rem;
  margin-top: 2rem;
  color: var(--encre-72);
  font-size: var(--t-small);
}


/* ══════════════════════════════════════════════════════════════════════════
   5. À PROPOS
   ═══════════════════════════════════════════════════════════════════════ */

.about { padding-top: .25rem; }
.about-lead {
  max-width: 22ch;
  font-family: var(--titre);
  font-size: var(--t-lead);
  font-weight: 300;
  line-height: 1.18;
  letter-spacing: -.022em;
  font-variation-settings: "SOFT" 45, "WONK" 0;
  text-wrap: balance;
}
.about-rest {
  max-width: 40rem;
  margin-top: 1.75rem;
  color: var(--encre-72);
  font-size: var(--t-big);
  line-height: 1.72;
  text-wrap: pretty;
}


/* ══════════════════════════════════════════════════════════════════════════
   6. FAQ
   ═══════════════════════════════════════════════════════════════════════ */

.faq { max-width: 58rem; }
.faq details { border-top: 1px solid var(--filet); }
.faq details:last-of-type { border-bottom: 1px solid var(--filet); }

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-block: 1.75rem;
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:focus-visible { outline-offset: -2px; }

.faq-q {
  font-family: var(--titre);
  font-size: var(--t-ask);
  font-weight: 400;
  line-height: 1.22;
  letter-spacing: -.018em;
  font-variation-settings: "SOFT" 50, "WONK" 0;
  text-wrap: pretty;
}

.faq-sign {
  position: relative;
  flex: none;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--bord);
  border-radius: 50%;
  transition: border-color .35s var(--courbe), transform .5s var(--courbe);
}
.faq-sign::before,
.faq-sign::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: .8rem;
  height: 1.5px;
  border-radius: 2px;
  background: var(--encre);
  transform: translate(-50%, -50%);
  transition: transform .5s var(--courbe);
}
.faq-sign::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq summary:hover .faq-sign { border-color: var(--terracotta); }
.faq details[open] .faq-sign { border-color: var(--terracotta); transform: rotate(180deg); }
.faq details[open] .faq-sign::after { transform: translate(-50%, -50%) rotate(0deg); }

.faq-a {
  max-width: 44rem;
  padding: 0 4.25rem 2rem 0;
  color: var(--encre-72);
  font-size: 1.125rem;
  text-wrap: pretty;
}

/* Ouverture animée là où le navigateur sait interpoler une hauteur « auto ». */
.faq details::details-content {
  block-size: 0;
  overflow: clip;
  transition: block-size .45s var(--courbe), content-visibility .45s allow-discrete;
}
.faq details[open]::details-content { block-size: auto; }


/* ══════════════════════════════════════════════════════════════════════════
   7. CONTACT
   ═══════════════════════════════════════════════════════════════════════ */

.contact-p {
  max-width: 26rem;
  margin-top: 2rem;
  color: var(--encre-72);
  text-wrap: pretty;
}

.form { padding-top: .25rem; }
.row { margin-bottom: 2rem; }
.row label {
  display: block;
  margin-bottom: .3rem;
  color: var(--encre-72);
  font-size: .875rem;
  font-weight: 500;
}
.row input,
.row textarea {
  width: 100%;
  padding: .55rem 0 .75rem;
  border: 0;
  border-bottom: 1.5px solid var(--bord);
  border-radius: 0;
  background: transparent;
  color: var(--encre);
  font-family: var(--texte);
  font-size: 1.25rem;
  line-height: 1.5;
  transition: border-color .3s var(--courbe);
}
.row textarea { min-height: 8rem; resize: vertical; }
.row input:hover,
.row textarea:hover { border-bottom-color: var(--encre); }
.row input:focus,
.row textarea:focus {
  outline: none;
  border-bottom-color: var(--terracotta);
  border-bottom-width: 2px;
  padding-bottom: calc(.75rem - .5px);
}
.row.invalid input,
.row.invalid textarea { border-bottom-color: var(--terracotta); }

.err {
  margin-top: .45rem;
  color: var(--encre);
  font-size: var(--t-small);
  font-weight: 500;
}
.err:empty { display: none; }

.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.send {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 1.75rem;
  margin-top: 2.75rem;
}
.send-status {
  flex: 1 1 15rem;
  font-size: var(--t-small);
  line-height: 1.5;
}
.send-status:empty { display: none; }


/* ══════════════════════════════════════════════════════════════════════════
   8. FOOTER
   ═══════════════════════════════════════════════════════════════════════ */

.colophon {
  margin-top: var(--bande);
  border-top: 1px solid var(--filet);
}
.band-last + .colophon { margin-top: 0; }

.colophon-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-block: 2.5rem;
}
.colophon-copy {
  color: var(--encre-72);
  font-size: var(--t-small);
}
.colophon .mail-link { font-size: var(--t-small); }


/* ══════════════════════════════════════════════════════════════════════════
   PAGE DE CONFIRMATION (merci.html)
   ═══════════════════════════════════════════════════════════════════════ */

.thanks {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(2rem, 5vw, 3.25rem);
  align-items: start;
  min-height: 100svh;
  padding-block: clamp(3rem, 8vw, 6rem);
}
.thanks-h {
  max-width: 13ch;
  font-family: var(--titre);
  font-size: var(--t-band);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -.034em;
  font-variation-settings: "SOFT" 45, "WONK" 0;
  text-wrap: balance;
}
.thanks-p {
  max-width: 32rem;
  color: var(--encre-72);
  font-size: var(--t-big);
}


/* ══════════════════════════════════════════════════════════════════════════
   CHATBOT DÉMO
   ═══════════════════════════════════════════════════════════════════════ */

.assistant {
  position: fixed;
  z-index: 200;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
}

/* La bulle reprend la sauge du cercle central du logo. */
.orb {
  position: relative;
  display: grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  margin-left: auto;
  padding: 0;
  border: 1px solid var(--mousse);
  border-radius: 50%;
  background: var(--sauge);
  color: var(--encre);
  cursor: pointer;
  animation: souffle 5s ease-in-out infinite;
}
/* Deux ondes, terracotta puis mousse, qui s'éloignent en décalé. */
.orb::before,
.orb::after {
  content: "";
  position: absolute;
  inset: -1px;
  border: 1.5px solid var(--terracotta);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  animation: onde 5s ease-out infinite;
}
.orb::after {
  border-color: var(--mousse);
  animation-delay: 1.7s;
}
@keyframes souffle {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.055); }
}
@keyframes onde {
  0%        { transform: scale(1); opacity: .65; }
  70%, 100% { transform: scale(1.7); opacity: 0; }
}

.orb-face {
  position: absolute;
  display: grid;
  place-items: center;
  transition: opacity .3s var(--courbe), transform .45s var(--courbe);
}
.orb-x { opacity: 0; transform: rotate(-60deg) scale(.6); }
.orb:focus-visible { outline-offset: 5px; border-radius: 50%; }

.assistant.open .orb { animation: none; }
.assistant.open .orb::before,
.assistant.open .orb::after { animation: none; }
.assistant.open .orb-bot { opacity: 0; transform: rotate(60deg) scale(.6); }
.assistant.open .orb-x   { opacity: 1; transform: none; }

.panel {
  position: absolute;
  right: 0;
  bottom: calc(4rem + .85rem);
  display: flex;
  flex-direction: column;
  width: min(23.5rem, calc(100vw - 2rem));
  max-height: min(34rem, calc(100dvh - 9rem));
  border: 1px solid var(--filet);
  border-radius: 28px;
  background: var(--sable);
  box-shadow: 0 20px 55px -22px rgba(51, 41, 31, .32);
  overflow: hidden;
  visibility: hidden;
  opacity: 0;
  transform: translateY(10px) scale(.97);
  transform-origin: bottom right;
  transition: opacity .32s var(--courbe), transform .45s var(--courbe), visibility 0s .45s;
}
.assistant.open .panel {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition-delay: 0s;
}

.panel-head {
  display: flex;
  align-items: center;
  gap: .55rem;
  flex: none;
  padding: .9rem 1rem .9rem .9rem;
  border-bottom: 1px solid var(--filet);
}
.panel-head img { width: 36px; height: 36px; flex: none; }
.panel-head-text { flex: 1; min-width: 0; }
.panel-h {
  font-family: var(--titre);
  font-size: 1.1875rem;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -.018em;
  font-variation-settings: "SOFT" 50, "WONK" 0;
}
.panel-sub {
  color: var(--encre-72);
  font-size: var(--t-micro);
  line-height: 1.35;
}
.panel-x {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: background-color .25s var(--courbe);
}
.panel-x:hover { background: var(--encre-05); }

.thread {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  flex: 1;
  min-height: 9rem;
  padding: 1.1rem 1rem;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.bubble {
  max-width: 88%;
  padding: .7rem 1rem;
  font-size: .96875rem;
  line-height: 1.5;
  animation: pose .4s var(--courbe) both;
}
.bubble a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
}
/* Réponse de l'assistant : terracotta, texte sable. */
.bubble-bot {
  align-self: flex-start;
  border-radius: 18px 18px 18px 6px;
  background: var(--terracotta);
  color: var(--sable);
  font-weight: 500;
}
/* Message du visiteur : sable creusé, texte encre. */
.bubble-me {
  align-self: flex-end;
  border-radius: 18px 18px 6px 18px;
  background: var(--sable-creux);
  color: var(--encre);
}

.bubble-wait {
  display: flex;
  gap: .3rem;
  padding-block: .95rem;
}
.bubble-wait span {
  width: .4rem;
  height: .4rem;
  border-radius: 50%;
  background: var(--sable);
  animation: point 1.1s ease-in-out infinite;
}
.bubble-wait span:nth-child(2) { animation-delay: .15s; }
.bubble-wait span:nth-child(3) { animation-delay: .3s; }

@keyframes pose { from { opacity: 0; transform: translateY(8px); } }
@keyframes point {
  0%, 100% { opacity: .35; transform: none; }
  50%      { opacity: 1; transform: translateY(-3px); }
}

.prompts {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  flex: none;
  padding: .9rem 1rem 1.1rem;
  border-top: 1px solid var(--filet);
}
.prompt {
  padding: .5rem .95rem;
  border: 1px solid var(--bord);
  border-radius: 999px;
  background: transparent;
  font-size: .875rem;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
  transition: background-color .25s var(--courbe), border-color .25s var(--courbe);
}
.prompt:hover { background: var(--encre-05); border-color: var(--encre); }
.prompt[disabled] { opacity: .45; cursor: progress; }
.prompt.used {
  opacity: .5;
  border-style: dashed;
}


/* ══════════════════════════════════════════════════════════════════════════
   APPARITION AU DÉFILEMENT
   La classe n'est posée sur <html> que si le script tourne : sans JS,
   tout le contenu reste visible.
   ═══════════════════════════════════════════════════════════════════════ */

.reveal-on .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .85s var(--courbe), transform .85s var(--courbe);
}
.reveal-on .reveal.seen { opacity: 1; transform: none; }


/* ══════════════════════════════════════════════════════════════════════════
   ADAPTATIONS D'ÉCRAN
   ═══════════════════════════════════════════════════════════════════════ */

@media (max-width: 900px) {
  .offers,
  .concepts,
  .split { grid-template-columns: 1fr; }

  .offer:first-child { padding-right: 0; padding-bottom: 3.5rem; }
  .offer + .offer {
    padding-left: 0;
    padding-top: 3.5rem;
    border-left: 0;
    border-top: 1px solid var(--filet);
  }

  .split .band-head { margin-bottom: clamp(2.5rem, 7vw, 4rem); }
  .about-lead { max-width: none; }
  .faq-a { padding-right: 0; }
  .hero-mark { width: 116vw; right: -32vw; bottom: 2rem; opacity: .6; }
}

@media (max-width: 760px) {
  .masthead-row { min-height: 4.5rem; }
  .logo img { width: 42px; height: 42px; }
  .logo-word { font-size: 1.5rem; }

  .menu {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    padding: .25rem var(--marge) 2rem;
    background: var(--sable);
    border-bottom: 1px solid var(--filet);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity .3s var(--courbe), transform .4s var(--courbe), visibility 0s .4s;
  }
  .menu.open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .menu ul { flex-direction: column; gap: 0; }
  .menu li + li { border-top: 1px solid var(--filet); }
  .menu a {
    display: block;
    padding-block: 1rem;
    font-family: var(--titre);
    font-size: 1.75rem;
    font-weight: 300;
    letter-spacing: -.024em;
    font-variation-settings: "SOFT" 50, "WONK" 0;
  }
  .menu a::after { display: none; }

  /* Sans script, le menu reste un simple ruban qui passe à la ligne. */
  html:not(.js) .menu {
    position: static;
    visibility: visible;
    opacity: 1;
    transform: none;
    padding: 0;
    border: 0;
    background: none;
  }
  html:not(.js) .menu ul { flex-direction: row; flex-wrap: wrap; gap: .5rem 1.25rem; }
  html:not(.js) .menu a { font-family: var(--texte); font-size: var(--t-small); padding-block: .4rem; }

  .hero {
    min-height: 0;
    padding-bottom: 19rem;
  }
  .hero-mark { width: 108vw; right: -28vw; bottom: 1.5rem; }
  .concept-meta { margin-bottom: 3rem; }
  .faq summary { gap: 1.25rem; }
}

@media (max-width: 420px) {
  .orb { width: 3.5rem; height: 3.5rem; }
  .panel { bottom: calc(3.5rem + .75rem); width: calc(100vw - 2rem); }
  .pill { padding-left: 1.4rem; font-size: 1rem; }
  .pill-dot { width: 2.75rem; height: 2.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    transition-delay: 0s !important;
  }
  .reveal-on .reveal { opacity: 1; transform: none; }
}

@media print {
  .masthead, .assistant, .skip-link, .hero-mark { display: none; }
  body { background: #fff; }
  .band { padding-top: 2rem; }
}
