/* Accueil hobee.fr : la carte lilas (référence 1), puis la coulée corail et la page longue (référence 2). */

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { overflow-x: clip; }
.lien-evitement {
  position: absolute;
  z-index: 100;
  left: 12px;
  top: -80px;
  padding: 12px 18px;
  border-radius: var(--r-pilule);
  background: var(--encre);
  color: var(--creme);
  font-weight: 800;
  text-decoration: none;
}
.lien-evitement:focus { top: 12px; }

/* les titres en capitales de la référence 2 */
.capitales {
  margin: 0;
  font-family: var(--titre);
  font-weight: 900;
  font-variation-settings: 'opsz' 24;
  line-height: 0.88;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  text-wrap: balance;
}
.etiquette-maj {
  font: 800 13px/1.2 var(--texte);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ============ 1. La carte lilas ============ */
.carte {
  position: relative;
  margin: 12px;
  border-radius: 36px;
  background: var(--lilas);
  overflow: hidden;
  isolation: isolate;
  min-height: clamp(660px, calc(100svh - 24px), 900px);
  display: grid;
  grid-template-rows: auto 1fr auto;
}
/* la gelée s'attrape : des poignées invisibles posées sur chaque personnage */
.poignee {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 4;
  border-radius: 50%;
  touch-action: none;
  cursor: grab;
  -webkit-tap-highlight-color: transparent;
}
.carte.attrapable { cursor: grab; }
.carte.tient,
.carte.tient * { cursor: grabbing !important; user-select: none; -webkit-user-select: none; }
.scene {
  position: absolute;
  inset: 0;
  z-index: 1; /* sous la vague : la gelée s'y enfonce au lieu d'être coupée par le bord de la carte */
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.9s var(--sortie);
}
.gl > .scene { opacity: 1; }

.barre {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 22px 28px 0;
}
.marque {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  height: 52px;
  padding: 0 20px;
  border-radius: var(--r-pilule);
  background: var(--surface);
  box-shadow: var(--ombre-pose);
}
.marque img { height: 28px; width: auto; }
.menu {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 6px;
  list-style: none;
  border-radius: var(--r-pilule);
  background: var(--surface);
  box-shadow: var(--ombre-pose);
}
.menu a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: var(--r-pilule);
  font: 800 13px/1 var(--texte);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 0.2s var(--sortie), color 0.2s var(--sortie);
}
.menu a:hover { background: var(--sable); }
.menu a[aria-current='page'] { background: var(--encre); color: var(--creme); }
.acces { justify-self: end; }
.bouton-menu { display: none; }

.heros {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  padding: 24px clamp(28px, 5vw, 80px) 0;
}
.heros .texte { padding-bottom: 11vh; }
.heros h1 { margin: 0; font-size: clamp(48px, 5.3vw, 86px); }
.chapo {
  max-width: 36ch;
  margin: 24px 0 0;
  font-size: clamp(17px, 1.35vw, 19px);
  line-height: 1.5;
  text-wrap: pretty;
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.place-blob { position: relative; height: min(52vh, 470px); margin-bottom: 10vh; }

.portee {
  position: absolute;
  z-index: 5;
  top: 96px;
  right: clamp(28px, 5vw, 80px);
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}
.portee legend { float: left; margin-right: 6px; }
.portee label { position: relative; }
.portee input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.portee span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--r-pilule);
  background: color-mix(in srgb, var(--surface) 55%, transparent);
  font: 800 14px/1 var(--texte);
  transition: background-color 0.2s var(--sortie), color 0.2s var(--sortie), transform 0.18s var(--sortie);
}
.portee label:hover span { background: var(--surface); }
.portee input:checked + span { background: var(--encre); color: var(--creme); }
.portee input:focus-visible + span { outline: 3px solid var(--encre); outline-offset: 3px; }
.portee label:active span { transform: scale(0.96); }

.vague { position: absolute; z-index: 2; left: 0; right: 0; bottom: -1px; width: 100%; height: 27%; }
.pied-carte {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: end;
  gap: 28px;
  padding: 0 clamp(28px, 4vw, 56px) 30px;
}
.prix { display: flex; align-items: center; gap: 12px; margin: 0; font-size: 14px; line-height: 1.3; }
.prix b { font-weight: 800; }
.medaille {
  flex: none;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--ambre);
}
.sortie {
  position: relative;
  width: clamp(150px, 15vw, 230px);
  margin: 0 0 -6px;
  aspect-ratio: 1;
  transform: rotate(-5deg);
}
.sortie img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 56px 32px 44px 26px;
  outline: 1px solid rgba(0, 0, 0, 0.08);
  outline-offset: -1px;
  box-shadow: var(--ombre-flottant);
  transition: opacity 0.35s var(--sortie), transform 0.5s var(--sortie);
}
.sortie img.part { opacity: 0; transform: translateY(14px) scale(0.96); }
.carrousel { display: flex; align-items: center; gap: 10px; padding-bottom: 6px; }
.rond {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--surface);
  color: var(--encre);
  box-shadow: inset 0 0 0 2px var(--trait);
  cursor: pointer;
  transition: transform 0.18s var(--sortie), background-color 0.2s var(--sortie);
}
.rond:hover { background: var(--sable); }
.rond:active { transform: scale(0.96); }
.sortie-nom { margin: 0 0 0 8px; font: 800 15px/1.2 var(--texte); min-width: 13ch; }
.reseau {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: var(--encre);
  transition: background-color 0.2s var(--sortie);
}
.reseau:hover { background: var(--sable); }

.repli {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  pointer-events: none;
  transition: opacity 0.9s var(--sortie);
}
.repli svg { width: auto; height: 100%; overflow: visible; }
.gl .repli { opacity: 0; }

/* ---- les yeux du fond ---- */
.yeux { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.yeux .oeil {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--t);
  aspect-ratio: 1;
  margin: calc(var(--t) / -2) 0 0 calc(var(--t) / -2);
  border-radius: 44%;
  background: #fff;
  box-shadow: 0 10px 24px -10px rgba(46, 42, 38, 0.35);
  transform: scaleY(0.05);
  transition: transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.yeux .oeil.ouvert { transform: scaleY(1); }
.yeux .oeil.ouvert.cligne { transform: scaleY(0.08); transition-duration: 0.09s; transition-timing-function: ease-in; }
.yeux .oeil.loin { filter: blur(3px); }
.yeux .iris {
  position: absolute;
  left: 26.5%;
  top: 26.5%;
  width: 47%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--encre);
  transition-property: transform;
  transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
}
/* positions : de gros yeux de tailles différentes, autour du blob ; le quatrième guette derrière la vague */
.o1 { --x: 57%; --y: 21%; --t: 68px; }
.o2 { --x: 91%; --y: 62%; --t: 134px; }
.o3 { --x: 97.5%; --y: 27%; --t: 52px; }
.o4 { --x: 73%; --y: 82%; --t: 104px; }
.i1 { --x: 7%; --y: 26%; --t: 96px; }
.i2 { --x: 98%; --y: 52%; --t: 168px; }
@media (prefers-reduced-motion: reduce) {
  .yeux .oeil { transform: none; transition: none; }
}

/* ============ 2. La coulée corail ============ */
.coulee { position: relative; isolation: isolate; margin-top: 64px; overflow-x: clip; }
.bandeau {
  position: relative;
  margin: 0 12px;
  border-radius: 36px;
  background: var(--corail);
  padding: clamp(40px, 6vw, 88px) clamp(20px, 5vw, 80px);
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
}
/* Le téléphone de l'affiche IDWT, à ses mesures exactes (viewBox -12 -6 924 1898) :
   coque en SVG, écran à 28 du bord avec un rayon de 118, îlot de 268 × 79,5. */
.telephone {
  position: relative;
  z-index: 3;
  justify-self: center;
  width: min(300px, 70%);
  aspect-ratio: 924 / 1898;
  background: url('/assets/img/telephone-coque.svg') no-repeat center / 100% 100%;
  filter: drop-shadow(0 22px 26px rgba(46, 42, 38, 0.26)) drop-shadow(0 4px 8px rgba(46, 42, 38, 0.12));
}
.telephone .ecran {
  position: absolute;
  left: 4.329%;
  top: 1.791%;
  width: 91.342%;
  height: 96.417%;
  max-width: none;
  border-radius: 13.981% / 6.448%;
  object-fit: cover;
}
.telephone .ilot {
  position: absolute;
  left: 35.476%;
  top: 3.035%;
  width: 29.048%;
  height: 4.189%;
  border-radius: 999px;
  background: #0e0d0c;
}
.bandeau .telephone { margin-bottom: -96px; transform: rotate(-8deg); }
.accroche { position: relative; z-index: 3; min-width: 0; }
.accroche h2 { font-size: clamp(56px, 7.6vw, 128px); }
.accroche .sous-titre { max-width: 40ch; margin: 22px 0 0; font: 800 15px/1.45 var(--texte); letter-spacing: 0.08em; text-transform: uppercase; }
.accroche .bouton { margin-top: 28px; }

.intro {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  padding: 150px 24px 88px;
  text-align: center;
}
.intro .trio { position: relative; z-index: 1; height: 96px; width: auto; margin-bottom: 18px; }
.intro p, .intro .source { position: relative; z-index: 1; }
.intro p { max-width: 42ch; margin: 8px 0 0; font-size: clamp(19px, 1.6vw, 23px); font-weight: 600; line-height: 1.45; text-wrap: pretty; }
.intro p strong { font-weight: 800; }
.intro .source { margin-top: 14px; font-size: 14px; font-weight: 600; color: var(--gris); }
.yeux-bord { position: absolute; inset: 0; z-index: 1; pointer-events: none; }

/* ============ 3. La recette ============ */
.recette { padding: 96px 24px 120px; text-align: center; }
.recette h2 { max-width: 15ch; margin: 0 auto; font-size: clamp(44px, 6vw, 96px); }
.schema {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(32px, 6vw, 110px);
  max-width: 1140px;
  margin: 64px auto 0;
}
.schema .colonne { display: grid; gap: 140px; }
.schema .colonne:first-child { justify-items: end; }
.schema .colonne:last-child { justify-items: start; }
.schema .telephone { width: 260px; transform: rotate(3deg); }
.geste {
  position: relative;
  z-index: 2;
  max-width: 270px;
  padding: 18px 22px 20px;
  border-radius: 24px;
  background: var(--sable);
  text-align: left;
}
.geste h3 { margin: 0; }
.geste p { margin: 8px 0 0; font-size: 16px; line-height: 1.45; text-wrap: pretty; }
.fleches { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.fleches path { fill: none; stroke: var(--corail); stroke-width: 3; stroke-linecap: round; }

/* ============ 4. À chacun sa façon ============ */
.facons {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(40px, 7vw, 120px);
  max-width: 1180px;
  margin: 0 auto;
  padding: 40px 24px 140px;
}
.vitrine { position: relative; display: grid; place-items: center; }
.vitrine .fond {
  width: min(420px, 100%);
  aspect-ratio: 4 / 5;
  border-radius: 40px;
  background: var(--profil, var(--vif-violet));
  transform: rotate(-6deg);
  transition: background-color 0.5s var(--sortie);
  box-shadow: var(--ombre-flottant);
}
.vitrine img {
  position: absolute;
  height: min(360px, 78%);
  width: auto;
  transition: opacity 0.3s var(--sortie), transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.vitrine img.part { opacity: 0; transform: scale(0.9) rotate(-4deg); }
.vitrine .rond { position: absolute; top: 50%; margin-top: -24px; }
.vitrine .rond[data-sens='-1'] { left: 0; }
.vitrine .rond[data-sens='1'] { right: 0; }
.facons h2 { font-size: clamp(48px, 6vw, 96px); }
.profil-nom { margin: 26px 0 0; }
.profil-reponse { margin: 6px 0 0; font-family: var(--titre); font-weight: 600; font-size: clamp(22px, 2vw, 28px); line-height: 1.2; text-wrap: balance; }
.facons .explication { max-width: 46ch; margin: 18px 0 0; font-size: 17px; text-wrap: pretty; }
.facons .bouton { margin-top: 28px; }
.promesses { display: flex; flex-wrap: wrap; gap: 28px; margin: 36px 0 0; padding: 0; list-style: none; }
.promesses li { display: grid; justify-items: center; gap: 10px; width: 116px; text-align: center; font: 800 13px/1.25 var(--texte); }
.promesses .pastille {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--peche);
}
.promesses li:nth-child(2) .pastille { background: var(--menthe); }
.promesses li:nth-child(3) .pastille { background: var(--lilas-clair); }
details.jamais { margin-top: 32px; border-top: 2px solid var(--sable-2); border-bottom: 2px solid var(--sable-2); }
details.jamais summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  cursor: pointer;
  list-style: none;
}
details.jamais summary::-webkit-details-marker { display: none; }
details.jamais summary svg { transition: transform 0.25s var(--sortie); }
details.jamais[open] summary svg { transform: rotate(45deg); }
details.jamais p { margin: 0 0 18px; max-width: 52ch; text-wrap: pretty; }

/* ============ 5. Les sorties, sur l'encre ============ */
.sorties-encre { background: var(--encre); color: var(--creme); padding: 96px clamp(16px, 4vw, 48px) 40px; border-radius: 36px 36px 0 0; }
.grille { display: grid; grid-template-columns: 1.08fr 1fr; gap: 16px; max-width: 1240px; margin: 0 auto; }
.grande {
  position: relative;
  min-height: 560px;
  border-radius: 32px;
  overflow: hidden;
  display: grid;
  align-items: end;
  padding: 16px;
}
.grande > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.grande .galet {
  position: relative;
  padding: 26px 26px 24px;
  border-radius: 28px 20px 24px 16px;
  background: var(--creme);
  color: var(--encre);
}
.grande h2 { font-size: clamp(36px, 3.6vw, 56px); }
.grande p { margin: 12px 0 0; max-width: 40ch; text-wrap: pretty; }
.grande .bouton { margin-top: 20px; }
.petites { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 0; padding: 0; list-style: none; }
.petites li { display: flex; flex-direction: column; gap: 14px; padding: 18px; border-radius: 28px; background: var(--creme); color: var(--encre); }
.petites h3 { margin: 0; }
.petites img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 30px 20px 24px 16px; }
.petites li:nth-child(even) img { border-radius: 20px 30px 16px 24px; }

.pied {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  max-width: 1240px;
  margin: 72px auto 0;
  padding: 28px 0 8px;
  border-top: 1px solid rgba(255, 247, 240, 0.16);
  font-size: 14px;
  color: rgba(255, 247, 240, 0.82);
}
.pied img { height: 30px; width: auto; }
.pied ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 8px; margin: 0; padding: 0; list-style: none; }
.pied a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: var(--r-pilule); color: var(--creme); font-weight: 700; text-decoration: none; }
.pied a:hover { background: rgba(255, 247, 240, 0.12); }
.pied :focus-visible { outline-color: var(--creme); }
.pied p { margin: 0; }

/* ============ Téléphone ============ */
@media (max-width: 860px) {
  .carte { margin: 8px; border-radius: 28px; min-height: 0; }
  .barre { grid-template-columns: 1fr auto; padding: 14px 14px 0; }
  .menu, .acces { display: none; }
  .bouton-menu {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: 50%;
    background: var(--surface);
    color: var(--encre);
    box-shadow: var(--ombre-pose);
    cursor: pointer;
  }
  .barre.ouverte .menu {
    display: grid;
    position: absolute;
    top: 74px;
    left: 14px;
    right: 14px;
    padding: 8px;
    border-radius: 28px;
    box-shadow: var(--ombre-flottant);
  }
  .barre.ouverte .menu a { min-height: 52px; font-size: 14px; }
  /* téléphone : autant d'air qu'au bureau */
  .heros { grid-template-columns: 1fr; padding: 36px 24px 0; gap: 0; }
  .heros .texte { padding-bottom: 0; }
  .heros h1 { font-size: clamp(44px, 13vw, 64px); }
  .chapo { margin-top: 20px; }
  .actions { margin-top: 32px; gap: 14px; }
  .actions .bouton { flex: 1 1 auto; }
  .heros .place-blob { height: 400px; margin: 36px 0 12px; }
  .portee { position: relative; top: auto; right: auto; flex-wrap: wrap; justify-content: center; padding: 0 20px; margin-top: 8px; }
  .portee legend { float: none; width: 100%; margin: 0 0 14px; text-align: center; }
  .portee span { padding: 0 14px; font-size: 14px; }
  .vague { height: 250px; }
  /* sur téléphone, deux yeux seulement, loin du blob et des boutons (la boîte suit sa place, voir accueil.js) */
  .o1 { --x: 90%; --y: 22%; --t: 44px; }
  .o2 { --x: 5%; --y: 74%; --t: 62px; }
  .o3,
  .o4 { display: none; }
  .i1 { --x: 6%; --y: 18%; --t: 60px; }
  .i2 { --x: 98%; --y: 48%; --t: 100px; }
  .pied-carte { grid-template-columns: auto 1fr auto; grid-template-areas: 'sortie carrousel carrousel' 'prix prix reseau'; gap: 28px 18px; padding: 72px 20px 28px; }
  .sortie { grid-area: sortie; width: 140px; }
  .carrousel { grid-area: carrousel; flex-wrap: wrap; align-self: end; padding-bottom: 8px; }
  .sortie-nom { order: -1; width: 100%; margin: 0 0 6px; min-width: 0; }
  .prix { grid-area: prix; }
  .reseau { grid-area: reseau; justify-self: end; }

  .coulee { margin-top: 56px; }
  .bandeau { grid-template-columns: 1fr; padding: 52px 24px 12px; }
  .accroche { order: -1; }
  .accroche h2 { font-size: clamp(40px, 12.2vw, 84px); }
  .accroche .sous-titre { font-size: 14px; margin-top: 20px; }
  .accroche .bouton { width: 100%; margin-top: 32px; }
  .bandeau { margin: 0 8px; border-radius: 28px; }
  .bandeau .telephone { width: 52%; margin: 36px 6% -72px 0; justify-self: end; transform: rotate(7deg); }
  .intro { padding: 128px 24px 80px; }
  .intro .trio { height: 76px; margin-bottom: 24px; }

  .recette { padding: 88px 24px 104px; }
  .schema { grid-template-columns: 1fr; gap: 20px; margin-top: 48px; }
  .schema .colonne { display: contents; }
  .schema .telephone { order: -1; justify-self: center; width: 62%; margin-bottom: 28px; }
  .geste { max-width: none; justify-self: stretch; padding: 22px 24px 24px; }
  .fleches { display: none; }

  .facons { grid-template-columns: 1fr; gap: 56px; padding: 32px 24px 112px; }
  .vitrine .fond { width: 78%; }
  .promesses { gap: 16px; justify-content: space-between; }
  .promesses li { width: 30%; }

  .sorties-encre { padding: 88px 16px 40px; border-radius: 28px 28px 0 0; }
  .grille { grid-template-columns: 1fr; gap: 16px; }
  .grande { min-height: 640px; padding: 14px; }
  .grande .galet { padding: 22px 22px 24px; }
  .grande h2 { font-size: clamp(30px, 9vw, 40px); }
  .petites { grid-template-columns: 1fr 1fr; gap: 14px; }
  .petites li { padding: 14px; gap: 12px; border-radius: 24px; }
  .petites h3 { min-height: 2.5em; font-size: 12px; }
  .pied { grid-template-columns: 1fr; justify-items: center; gap: 18px; margin-top: 56px; text-align: center; }
}
