@font-face { font-family: "General Sans"; src: url("assets/fonts/general-sans-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "General Sans"; src: url("assets/fonts/general-sans-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "General Sans"; src: url("assets/fonts/general-sans-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --argile: #ebebe9;
  --fond: #f7f7f5;
  --blanc: #ffffff;
  --encre: #111111;
  --doux: #5c5c58;
  --vif: #ff5a1f;

  --petit: 0.9375rem;
  --texte: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --chapo: clamp(1.25rem, 1.05rem + 0.8vw, 1.75rem);
  --titre: clamp(2.75rem, 7.6vw, 8rem);

  --marge: 32px;
  --arrondi: 28px;
  --ombre: 0 10px 30px rgba(17, 17, 17, 0.12);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--fond);
  color: var(--encre);
  font-family: "General Sans", system-ui, sans-serif;
  font-size: var(--texte);
  line-height: 1.45;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul { margin: 0; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--vif); outline-offset: 3px; }

.capitales { font-weight: 700; text-transform: uppercase; letter-spacing: -0.035em; line-height: 0.92; }

.bouton {
  display: inline-block;
  padding: 0.85em 1.3em;
  border: 0;
  border-radius: 12px;
  background: var(--encre);
  color: var(--blanc);
  font-weight: 500;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms var(--ease), background-color 180ms var(--ease), color 180ms var(--ease);
}
.bouton:hover { transform: translateY(-2px); background: var(--vif); color: var(--encre); }
.bouton:active { transform: translateY(0) scale(0.98); }
.bouton-vif { background: var(--vif); color: var(--encre); }
.bouton-vif:hover { background: var(--encre); color: var(--blanc); }

.nav {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px var(--marge);
}
.marque { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1.5rem; letter-spacing: -0.03em; text-decoration: none; }
.marque::before { content: ""; width: 1.25em; height: 1.25em; background: url("assets/logo-badge.svg") center / contain no-repeat; }
.nav-liens { display: flex; align-items: center; gap: 22px; font-size: var(--petit); }
.nav-liens a:not(.bouton) { text-decoration: underline transparent 2px; text-underline-offset: 4px; transition: text-decoration-color 200ms var(--ease); }
.nav-liens a:not(.bouton):hover { text-decoration-color: currentColor; }

/* Premier écran : le titre passe derrière les toits */
.scene {
  position: relative;
  --tel: clamp(240px, min(21vw, 32svh), 340px);
  --ecart: 24px;
  height: min(100svh, 64vw);
  min-height: 620px;
  overflow: hidden;
  background: var(--argile);
}
.scene .nav { position: absolute; inset: 0 0 auto; }
.scene h1 { position: absolute; z-index: 1; inset: 5.6vw 0 auto; text-align: center; }
.surtitre { display: block; color: var(--doux); font-size: clamp(1.25rem, 2.1vw, 2.25rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; }
.geant { display: block; margin-top: 0.02em; font-size: 18.4vw; line-height: 0.82; white-space: nowrap; }

.village { position: absolute; z-index: 2; top: 0; left: -6vw; width: 112vw; aspect-ratio: 2600 / 1456; }
.village img { width: 100%; height: 100%; }

.epingle {
  position: absolute;
  left: var(--x);
  top: var(--y);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px 7px 9px;
  border: 0;
  border-radius: 999px;
  background: var(--blanc);
  box-shadow: var(--ombre);
  font-size: var(--petit);
  font-weight: 500;
  line-height: 1.1;
  white-space: nowrap;
  cursor: pointer;
  transform: translate(-50%, -100%);
  transition: transform 200ms var(--ease), background-color 200ms var(--ease), color 200ms var(--ease);
  animation: flotte 5s ease-in-out infinite alternate;
  animation-delay: var(--d, 0s);
}
.epingle::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--vif); }
.epingle:hover { transform: translate(-50%, -112%) scale(1.04); }
.epingle[aria-pressed="true"] { background: var(--encre); color: var(--blanc); }
@keyframes flotte { from { margin-top: 0; } to { margin-top: -8px; } }

/* Téléphone : la maquette à votre nom */
.telephone {
  position: relative;
  padding: 9px;
  border-radius: 46px;
  background: var(--encre);
  box-shadow: 0 30px 70px rgba(17, 17, 17, 0.28);
}
.ecran { overflow: hidden; border-radius: 38px; background: var(--blanc); color: var(--encre); }
.ecran-haut { display: flex; justify-content: center; padding: 11px 0 9px; }
.ecran-haut::before { content: ""; width: 34%; height: 20px; border-radius: 999px; background: var(--encre); }
.maq-bandeau { padding: 7px 14px; background: var(--argile); font-size: 0.8125rem; line-height: 1.25; }
.maq-photo { aspect-ratio: 4 / 3; overflow: hidden; }
.maq-photo img { width: 100%; height: 100%; object-fit: cover; transition: opacity 260ms var(--ease); }
.maq-corps { display: grid; gap: 4px; padding: 14px 14px 20px; }
.maq-nom { font-weight: 700; font-size: 1.3125rem; line-height: 1.08; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.maq-ligne { font-size: 0.875rem; }
.maq-appel { justify-self: start; margin-top: 8px; padding: 9px 16px; border-radius: 10px; background: var(--vif); font-size: 0.875rem; font-weight: 500; }
.maq-horaires { display: grid; grid-template-columns: auto 1fr; gap: 1px 14px; padding: 12px 14px; background: var(--fond); font-size: 0.8125rem; }
.maq-avis { padding: 12px 14px 4px; font-weight: 700; font-size: 0.9375rem; }
.maq-champ { margin: 8px 14px 0; padding: 9px 12px; border-radius: 10px; background: var(--fond); font-size: 0.8125rem; }
.maq-envoi { margin: 10px 14px 18px; padding: 9px 16px; border-radius: 10px; background: var(--encre); color: var(--blanc); font-size: 0.8125rem; font-weight: 500; display: inline-block; }

.scene .maq-photo { aspect-ratio: 16 / 9; }
/* Le téléphone continue sous le bord de l'écran : on n'en voit jamais le bas */
.scene .ecran { padding-bottom: 30px; border-radius: 38px 38px 0 0; }
.scene .telephone {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: -24px;
  width: var(--tel);
  padding-bottom: 0;
  border-radius: 46px 46px 0 0;
  transform: translateX(-50%);
}

.carte {
  position: absolute;
  z-index: 4;
  bottom: var(--marge);
  padding: 20px;
  border-radius: 22px;
  background: var(--blanc);
  box-shadow: var(--ombre);
}
.carte-essai { --c: min(310px, 23vw); left: max(var(--marge), calc(50% - var(--tel) / 2 - var(--ecart) - var(--c))); width: var(--c); display: grid; gap: 12px; }
.carte-essai strong { font-size: var(--chapo); line-height: 1.1; letter-spacing: -0.02em; }
.champ { display: grid; gap: 4px; font-size: var(--petit); font-weight: 500; }
.champ input, .champ select {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 0;
  border-radius: 12px;
  background: var(--argile);
  font-size: 1rem;
  font-weight: 400;
  transition: background-color 160ms var(--ease);
}
.champ input:hover, .champ select:hover { background: #e0e0dd; }
.champ input::placeholder { color: var(--doux); opacity: 1; }
.champ.champ-metier { display: none; }
.note { font-size: 0.875rem; color: var(--doux); }
.carte-prix { --c: min(310px, 23vw); right: max(var(--marge), calc(50% - var(--tel) / 2 - var(--ecart) - var(--c))); width: var(--c); display: grid; gap: 8px; }
.carte-prix strong { font-size: var(--chapo); line-height: 1.1; letter-spacing: -0.02em; }
.carte-prix a { font-weight: 500; text-underline-offset: 3px; }

/* Sections */
.section { padding: 130px var(--marge) 0; }
.section h2 { font-size: var(--titre); }

.etapes { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; margin-top: 56px; }
.etape {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: end;
  min-height: 420px;
  overflow: hidden;
  border-radius: var(--arrondi);
  background: #e5e4e2;
  transition: transform 260ms var(--ease);
}
.etape:hover { transform: translateY(-4px); }
.etape:nth-child(1), .etape:nth-child(4) { grid-column: span 7; }
.etape:nth-child(2), .etape:nth-child(3) { grid-column: span 5; }
.etape-texte { position: relative; z-index: 1; display: grid; gap: 12px; padding: 28px; align-self: stretch; align-content: space-between; }
.etape h3 { font-size: clamp(2.25rem, 4.2vw, 4.5rem); }
.etape img { position: absolute; right: 0; bottom: 0; width: 60%; height: 100%; object-fit: contain; object-position: right bottom; }
.etape .etape-texte { grid-column: 1 / -1; }
.etape p { max-width: 42%; position: relative; z-index: 1; }
.etape:nth-child(2) img, .etape:nth-child(3) img { width: 66%; height: 66%; }
.etape:nth-child(2) .etape-texte, .etape:nth-child(3) .etape-texte { grid-column: 1 / -1; }
.etape:nth-child(2) p, .etape:nth-child(3) p { max-width: 46%; }

.contenu { display: grid; justify-items: center; text-align: center; }
.contenu-scene { position: relative; width: 100%; max-width: 1180px; display: flex; justify-content: center; margin-top: 56px; }
.contenu .telephone { width: clamp(270px, 25vw, 340px); }
.contenu .ecran { text-align: left; }
.etiquette {
  position: absolute;
  left: var(--x);
  top: var(--y);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px 10px 12px;
  border-radius: 999px;
  background: var(--blanc);
  box-shadow: var(--ombre);
  font-weight: 500;
  white-space: nowrap;
}
.etiquette::before { content: ""; flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--vif); }

.tarifs { margin: 130px var(--marge) 0; padding: 72px 48px 56px; border-radius: 36px; background: var(--encre); color: var(--blanc); }
.tarifs h2 { font-size: clamp(1.75rem, 6.5vw, 7rem); }
.prix-ligne { display: block; white-space: nowrap; }
.prix-chiffre { display: inline-block; padding: 0.02em 0.14em 0; border-radius: 0.14em; background: var(--vif); color: var(--encre); font-variant-numeric: tabular-nums; }
.reglages { display: flex; flex-wrap: wrap; gap: 16px 36px; margin-top: 48px; }
.bascule { border: 0; margin: 0; padding: 0; min-width: 0; }
.bascule legend { padding: 0 0 8px; font-size: var(--petit); font-weight: 500; }
.bascule-choix { display: flex; gap: 4px; padding: 4px; border-radius: 14px; background: #2a2a2a; }
.bascule label { cursor: pointer; }
.bascule input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.bascule span { display: block; padding: 10px 18px; border-radius: 10px; font-weight: 500; transition: background-color 180ms var(--ease), color 180ms var(--ease); }
.bascule span:hover { background: #3a3a3a; }
.bascule input:checked + span { background: var(--blanc); color: var(--encre); }
.bascule input:focus-visible + span { outline: 3px solid var(--vif); outline-offset: 2px; }
.prix-bas { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px 64px; align-items: end; margin-top: 40px; }
.prix-inclus { font-size: var(--chapo); line-height: 1.25; max-width: 38ch; }
.prix-action { display: grid; justify-items: end; gap: 14px; text-align: right; }
.prix-options { margin-top: 40px; max-width: 70ch; color: #cfcfca; }

.questions { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: start; }
.questions h2 { font-size: clamp(2.5rem, 5.4vw, 5.75rem); position: sticky; top: 32px; }
.questions-liste { display: grid; gap: 10px; }
.question { border-radius: 20px; padding: 20px 24px; background: var(--argile); transition: background-color 200ms var(--ease); }
.question[open] { background: var(--blanc); box-shadow: var(--ombre); }
.question summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; list-style: none; cursor: pointer; font-size: clamp(1.125rem, 1rem + 0.4vw, 1.375rem); font-weight: 500; line-height: 1.25; }
.question summary::-webkit-details-marker { display: none; }
.question summary::after { content: "+"; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--encre); color: var(--blanc); text-align: center; line-height: 30px; font-size: 1.25rem; font-weight: 400; transition: transform 220ms var(--ease), background-color 220ms var(--ease); }
.question summary:hover::after { background: var(--vif); }
.question[open] summary::after { transform: rotate(45deg); }
.question p { padding-top: 12px; max-width: 58ch; }

/* Pied : le nom passe à son tour derrière le village */
.pied { position: relative; margin-top: 130px; overflow: hidden; background: var(--argile); }
.pied-haut { position: relative; z-index: 3; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px; padding: 80px var(--marge) 0; }
.pied-haut p.capitales { font-size: clamp(2.5rem, 5.4vw, 5.75rem); margin-bottom: 26px; }
.pied-colonnes { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-content: start; font-size: var(--texte); }
.pied-colonnes ul { list-style: none; padding: 0; display: grid; gap: 6px; }
.pied-colonnes a { text-underline-offset: 3px; }
.pied-colonnes strong { display: block; margin-bottom: 8px; font-weight: 500; color: var(--doux); }
.pied-note { position: relative; z-index: 3; padding: 28px var(--marge) 0; max-width: 62ch; font-size: 0.875rem; color: var(--doux); }
.pied-vue { position: relative; height: 46vw; margin-top: 4vw; }
.pied-mot { position: absolute; z-index: 1; left: 0; right: 0; top: 0; text-align: center; font-size: 26vw; line-height: 0.8; white-space: nowrap; }
.pied-vue img { position: absolute; z-index: 2; left: -6vw; top: -3vw; width: 112vw; max-width: none; height: auto; }

/* Pages légales */
.legal { max-width: 46rem; padding: 40px var(--marge) 120px; display: grid; gap: 18px; }
.legal h1 { font-size: clamp(2.25rem, 5vw, 4rem); margin-bottom: 16px; }
.legal h2 { font-size: var(--chapo); font-weight: 700; margin-top: 24px; letter-spacing: -0.01em; }
.legal ul { padding-left: 1.2em; display: grid; gap: 8px; }
.a-completer { padding: 0 0.25em; border-radius: 4px; background: #ffe3d8; font-weight: 500; }

/* Mouvement : le contenu reste visible sans script */
@media (prefers-reduced-motion: no-preference) {
  .js .monte { opacity: 0; transform: translateY(26px); transition: opacity 620ms var(--ease), transform 620ms var(--ease); transition-delay: calc(var(--i, 0) * 75ms); }
  .js .monte.vu { opacity: 1; transform: none; }
  .js .etape.monte.vu:hover { transform: translateY(-4px); transition-delay: 0ms; }
  .js .scene .telephone { animation: entre 900ms var(--ease) both; }
  .js .geant { animation: leve 900ms var(--ease) both; }
  @keyframes entre { from { transform: translate(-50%, 90px); } to { transform: translate(-50%, 0); } }
  @keyframes leve { from { transform: translateY(0.25em); } to { transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .epingle { animation: none; }
}

@media (max-width: 1100px) {
  .etape:nth-child(n) { grid-column: span 6; min-height: 500px; }
  .etape:nth-child(n) img { width: 90%; height: 56%; }
  .etape:nth-child(n) .etape-texte { grid-column: 1 / -1; align-content: start; }
  .etape:nth-child(n) p { max-width: none; }
  .contenu-scene { flex-direction: column; align-items: center; margin-top: 32px; gap: 10px; }
  .etiquettes-groupe { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 8px; }
  .etiquette { position: static; padding: 8px 12px 8px 10px; font-size: var(--petit); }
  .carte-essai, .carte-prix { --c: min(280px, 30vw); }
}

@media (min-width: 761px) and (max-width: 1100px) {
  .scene { --tel: 30vw; --ecart: 12px; height: 92vw; min-height: 0; }
  .scene h1 { top: 80px; }
  .village { top: 44px; }
  .village img { -webkit-mask-image: linear-gradient(#000 84%, transparent); mask-image: linear-gradient(#000 84%, transparent); }
  .scene .telephone { bottom: -24px; }
  .carte { padding: 16px; }
}

/* Téléphone : sa propre composition */
@media (max-width: 760px) {
  :root { --marge: 16px; --arrondi: 22px; }
  .nav { padding: 14px var(--marge); }
  .nav-liens a:not(.bouton) { display: none; }
  .nav-liens .bouton { padding: 0.7em 1em; }

  .scene { height: auto; min-height: 0; overflow: hidden; padding-bottom: 20px; }
  .scene .nav { position: relative; }
  .scene h1 { position: relative; inset: auto; margin-top: 6px; }
  .surtitre { font-size: 1.375rem; }
  .geant { font-size: 21.6vw; }
  .village { position: relative; left: -55vw; width: 210vw; margin-top: -34vw; }
  .village img { position: relative; -webkit-mask-image: linear-gradient(#000 82%, transparent); mask-image: linear-gradient(#000 82%, transparent); }
  .epingle { font-size: 0.875rem; padding: 6px 10px 6px 8px; }
  .epingle[data-loin], .epingle[data-metier="boucherie"] { display: none; }
  .js .scene .telephone { animation: none; }
  .scene .ecran { padding-bottom: 0; }
  .scene .telephone { position: relative; left: auto; bottom: auto; transform: none; --tel: 68vw; height: auto; margin: -44vw auto -9vw; overflow: hidden; }
  .champ.champ-metier { display: grid; }
  .carte { position: relative; inset: auto; width: auto; margin: 14px var(--marge) 0; z-index: 4; }
  .carte-essai { width: auto; margin-top: 16px; }
  .carte-prix { width: auto; }

  .section { padding-top: 88px; }
  .section h2 { font-size: 13vw; }
  .etapes { grid-template-columns: 1fr; margin-top: 32px; }
  .etape:nth-child(n) { grid-column: auto; grid-template-columns: 1fr; min-height: 0; }
  .etape:nth-child(n) img { position: relative; width: 100%; height: auto; aspect-ratio: 4 / 3; right: auto; bottom: auto; }
  .etape-texte { padding: 22px 22px 8px; }
  .etape h3 { font-size: 13vw; }

  .contenu .telephone { width: 72vw; }

  .tarifs { margin: 88px var(--marge) 0; padding: 44px 20px 28px; border-radius: 26px; }
  .tarifs h2 { font-size: 7.1vw; }
  .reglages { margin-top: 30px; }
  .bascule { width: 100%; }
  .bascule-choix label { flex: 1; }
  .bascule span { text-align: center; padding: 11px 6px; }
  .prix-bas { grid-template-columns: 1fr; margin-top: 28px; }
  .prix-inclus { font-size: 1.125rem; }
  .prix-action { justify-items: stretch; text-align: left; }

  .questions { grid-template-columns: 1fr; gap: 28px; }
  .questions h2 { font-size: 11vw; position: static; }
  .question { padding: 16px 18px; }

  .pied { margin-top: 88px; }
  .pied-haut { grid-template-columns: 1fr; padding-top: 56px; }
  .pied-haut p.capitales { font-size: 11vw; }
  .pied-haut .bouton { display: block; }
  .pied-vue { height: 62vw; margin-top: 28px; }
  .pied-mot { font-size: 27vw; }
  .pied-vue img { left: -40vw; width: 180vw; top: -7vw; }
  .legal { padding: 24px var(--marge) 80px; }
}
