/*
 * Pelote : feuille commune du site (landing, page du calendrier, pages légales).
 * DA reprise du concept TERRA (brand/DA.md), couleurs de src/theme/jetons.ts.
 * Les teintes « -texte » sont assombries pour tenir le contraste AA sur leur fond doux.
 */
@font-face {
  font-family: "Bebas Neue";
  src: url("/polices/bebas-neue.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --page: #f3f1fa;
  --surface: #fbfffc;
  --blanc: #ffffff;
  --encre: #2f2647;
  --encre-2: #625b78;
  --encre-3: #8a85a0;
  --orange: #ff5b04;
  --orange-clair: #ff7a33;
  --orange-doux: #ffe6da;
  --orange-texte: #a83c00;
  --lavande: #ece0ff;
  --lavande-claire: #f1ecfe;
  --violet: #d0b1ff;
  --violet-fonce: #9672e3;
  --violet-texte: #5b3cb4;
  --prune: #534579;
  --rose-doux: #ffe3f6;
  --rose-texte: #962f7c;
  --bleu-doux: #daf1fb;
  --bleu-texte: #1b6788;
  --menthe: #a6e3c4;
  --bordure: #e6e2f2;
  /* les deux maisons : violet et orange */
  --a-plein: #9672e3;
  --a-doux: #ece0ff;
  --a-texte: #5b3cb4;
  --b-plein: #ff7a33;
  --b-doux: #ffe6da;
  --b-texte: #a83c00;
  /* dégradé de marque (en-têtes, appel final) : assez dense pour un titre blanc */
  --degrade-marque: linear-gradient(160deg, #f2550a 0%, #b85ad6 58%, #7a4fe6 100%);
  --rayon-carte: 24px;
  --rayon-bouton: 14px;
  --police: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --titre: "Bebas Neue", "Arial Narrow", Impact, sans-serif;
  --gouttiere: 16px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--encre);
  font-family: var(--police);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  border-radius: 8px;
}

.sr {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.capitales {
  font-family: var(--titre);
  font-weight: 400;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  line-height: 0.95;
}

/* ------------------------------------------------------------ éléments communs */

.marque {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
}
.marque img {
  width: 40px;
  height: 40px;
}
.marque span {
  font-family: var(--titre);
  font-size: 30px;
  line-height: 1;
  letter-spacing: 0.02em;
  padding-top: 3px;
}

.pastille {
  display: inline-block;
  padding: 0.02em 0.42em 0.06em;
  border-radius: 0.36em;
  white-space: nowrap;
  font-weight: 500;
}
.pastille.violet { background: #dcc8ff; color: var(--violet-texte); }
.pastille.bleu { background: var(--bleu-doux); color: var(--bleu-texte); }
.pastille.orange { background: #ffd9c4; color: var(--orange-texte); }
.pastille.rose { background: var(--rose-doux); color: var(--rose-texte); }

.etiquette {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--orange-texte);
}
.etiquette b {
  display: inline-grid;
  place-items: center;
  min-width: 30px;
  height: 26px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--orange-doux);
}
.etiquette span {
  padding: 4px 14px;
  border-radius: 999px;
  background: var(--orange-doux);
}

.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 26px;
  border: 0;
  border-radius: var(--rayon-bouton);
  background: var(--orange);
  color: #fff;
  font: 700 19px/1 var(--police);
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms cubic-bezier(0.2, 0.8, 0.2, 1), background-color 160ms ease;
}
.bouton:hover { background: #f05200; }
.bouton:active { transform: scale(0.97); }
.bouton.doux { background: var(--orange-doux); color: var(--orange-texte); }
.bouton.doux:hover { background: #ffd9c4; }
.bouton.blanc { background: #fff; color: var(--orange-texte); }
.bouton svg { flex: none; }

.fleche {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  flex: none;
}

.carte {
  background: var(--blanc);
  border-radius: var(--rayon-carte);
  padding: 22px 20px;
}

/* ------------------------------------------------------------ pied de page commun */

.pied {
  max-width: 1120px;
  margin: 0 auto;
  padding: 40px var(--gouttiere) 48px;
  color: var(--encre-2);
  font-size: 15px;
}
.pied nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 18px 0;
  padding: 0;
  list-style: none;
}
.pied nav a {
  color: var(--encre);
  font-weight: 600;
  text-decoration: none;
}
.pied nav a:hover { text-decoration: underline; }
.pied p { margin: 4px 0; }
.pied .marque { color: var(--encre); }

/* ------------------------------------------------------------ landing */

.couverture {
  position: relative;
  margin: 12px 12px 0;
  border-radius: 32px;
  overflow: hidden;
  color: var(--encre);
  background:
    radial-gradient(ellipse 75% 55% at 50% 102%, rgba(255, 140, 90, 0.95) 0%, rgba(255, 160, 120, 0.55) 38%, rgba(255, 170, 130, 0) 72%),
    radial-gradient(ellipse 60% 50% at 0% 0%, rgba(232, 220, 255, 0.9) 0%, rgba(232, 220, 255, 0) 70%),
    linear-gradient(165deg, #d6c4fb 0%, #b79cf3 46%, #a58af0 100%);
  isolation: isolate;
}
.couverture-haut {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 0;
}
.couverture-haut .marque span { color: var(--encre); }
.badge-store {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  color: var(--encre);
  font-size: 13px;
  font-weight: 700;
}
.badge-store i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
}

.geant {
  position: relative;
  z-index: 1;
  margin: 6px 0 0;
  text-align: center;
  font-family: var(--titre);
  font-weight: 400;
  color: #fff;
  font-size: clamp(120px, 39vw, 440px);
  line-height: 0.82;
  letter-spacing: 0.01em;
  text-transform: lowercase;
  user-select: none;
}
.geant .mot {
  display: block;
  text-transform: uppercase;
  transform: translateY(0.04em);
}

.couverture-legendes {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 18px 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--encre);
}
.couverture-legendes p { margin: 0; line-height: 1.35; }
.couverture-legendes p:last-child { text-align: right; }

.scene {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  margin-top: -6px;
  padding: 0 0 0;
  height: 520px;
}
.arcs {
  position: absolute;
  z-index: 0;
  left: 50%;
  bottom: -40px;
  width: 1100px;
  max-width: none;
  transform: translateX(-50%);
  pointer-events: none;
}
.arcs text {
  fill: rgba(255, 255, 255, 0.4);
  font-family: var(--police);
  font-size: 30px;
  font-weight: 500;
}

.telephone {
  position: relative;
  z-index: 2;
  width: 270px;
  height: 560px;
  padding: 9px;
  border-radius: 46px;
  background: linear-gradient(145deg, #e8d5c4, #b8a089 40%, #8c7766);
  box-shadow: 0 30px 60px -20px rgba(47, 38, 71, 0.45);
}
.ecran {
  position: relative;
  height: 100%;
  border-radius: 38px;
  overflow: hidden;
  background: var(--page);
  border: 3px solid #1c1c1e;
  font-size: 11px;
  line-height: 1.3;
}
.ecran .barre {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 22px 0;
  height: 40px;
  background: var(--surface);
  font-weight: 700;
  font-size: 12px;
}
.ecran .ile {
  position: absolute;
  top: 9px;
  left: 50%;
  width: 82px;
  height: 24px;
  border-radius: 14px;
  background: #1c1c1e;
  transform: translateX(-50%);
}
.ecran .tete {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 14px 10px;
  background: var(--surface);
}
.ecran .tete img { width: 30px; height: 30px; }
.ecran .tete strong {
  font-family: var(--titre);
  font-weight: 400;
  font-size: 21px;
  letter-spacing: 0.02em;
}
.ecran .cloche {
  width: 18px;
  height: 18px;
  color: var(--encre);
}
.ecran .corps { padding: 10px 10px 0; }
.ecran h3 {
  display: flex;
  justify-content: space-between;
  margin: 2px 4px 7px;
  font-size: 12.5px;
}
.mini-soir {
  position: relative;
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: var(--b-doux);
}
.mini-soir img { width: 54px; height: 54px; }
.mini-soir small { display: block; color: var(--encre-2); font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.mini-soir strong { display: block; font-family: var(--titre); font-weight: 400; font-size: 25px; line-height: 0.95; color: var(--b-texte); }
.mini-soir .fleche { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; }
.mini-soir .fleche svg { width: 14px; height: 14px; }
.mini-carte {
  margin-top: 8px;
  padding: 9px 10px;
  border-radius: 14px;
  background: var(--blanc);
}
.mini-carte p { margin: 0; }
.mini-carte .gris { color: var(--encre-2); font-size: 10px; }
.mini-puces { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.mini-puces span {
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 600;
}
.mini-bande {
  display: grid;
  grid-template-columns: repeat(14, 1fr);
  gap: 2px;
  margin-top: 6px;
}
.mini-bande i {
  height: 18px;
  border-radius: 5px;
  background: var(--a-plein);
}
.mini-bande i.b { background: var(--b-plein); }
.mini-bande i.p { background: linear-gradient(135deg, var(--b-plein) 50%, var(--a-plein) 50%); }
.mini-jours {
  display: grid;
  grid-template-columns: repeat(14, 1fr);
  gap: 2px;
  margin-top: 3px;
  text-align: center;
  font-size: 8.5px;
  color: var(--encre-2);
}
.mini-onglets {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: space-around;
  padding: 9px 8px 20px;
  background: var(--surface);
  border-radius: 20px 20px 0 0;
  font-size: 8.5px;
  color: var(--encre-3);
}
.mini-onglets span { display: grid; justify-items: center; gap: 3px; }
.mini-onglets span.actif { color: var(--encre); font-weight: 700; }
.mini-onglets svg { width: 17px; height: 17px; }

.mascotte {
  position: absolute;
  z-index: 3;
  width: 110px;
  filter: drop-shadow(0 10px 18px rgba(47, 38, 71, 0.18));
}
.mascotte.m1 { left: max(4px, calc(50% - 250px)); top: 150px; transform: rotate(-12deg); }
.mascotte.m2 { right: max(4px, calc(50% - 250px)); top: 320px; width: 96px; transform: rotate(10deg); }

/* sections */

.section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 64px var(--gouttiere) 0;
}
.section h2 {
  margin: 0 0 14px;
  font-family: var(--titre);
  font-weight: 400;
  font-size: clamp(40px, 9vw, 64px);
  line-height: 0.95;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.section .chapo {
  margin: 0 0 28px;
  max-width: 640px;
  font-size: 18px;
  color: var(--encre-2);
}

.promesse {
  text-align: center;
}
.promesse .pelote-tete {
  width: 84px;
  margin: 0 auto 6px;
}
.promesse h2 {
  margin-bottom: 18px;
}
.promesse .phrase {
  max-width: 860px;
  margin: 0 auto;
  font-size: clamp(21px, 4.6vw, 32px);
  line-height: 1.6;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.promesse .phrase .pastille { white-space: normal; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.promesse .actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

.grille-3 {
  display: grid;
  gap: 14px;
}
.benefice {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 100%;
}
.benefice img {
  width: 92px;
  height: 92px;
  margin: -6px 0 2px -6px;
}
.benefice h3 {
  margin: 0;
  font-size: 21px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.benefice p {
  margin: 0;
  color: var(--encre-2);
}
.benefice .mini-puces { margin-top: auto; padding-top: 6px; }
.benefice .mini-puces span { font-size: 13px; padding: 4px 10px; }

.etapes {
  position: relative;
  display: grid;
  gap: 14px;
  counter-reset: etape;
}
.etape {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 14px;
  align-items: start;
}
.etape .num {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-family: var(--titre);
  font-size: 30px;
  padding-top: 3px;
}
.etape h3 { margin: 4px 0 6px; font-size: 20px; line-height: 1.25; }
.etape p { margin: 0; color: var(--encre-2); }
.etape .mini-puces span { font-size: 13px; padding: 4px 10px; }

.lien-parent {
  display: grid;
  gap: 14px;
}
.carte-lavande {
  position: relative;
  padding: 26px 22px;
  border-radius: var(--rayon-carte);
  background: var(--lavande);
}
.carte-lavande .fleche { position: absolute; top: 18px; right: 18px; }
.carte-lavande h3 {
  margin: 0 56px 10px 0;
  font-family: var(--titre);
  font-weight: 400;
  font-size: 40px;
  line-height: 0.95;
  text-transform: uppercase;
  color: var(--violet-texte);
}
.carte-lavande p { margin: 0 0 12px; font-size: 17px; }
.carte-lavande p:last-child { margin-bottom: 0; }
.adresse {
  display: block;
  margin: 14px 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff;
  font: 600 14px/1.45 ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  word-break: break-all;
  color: var(--encre);
}
.adresse b { color: var(--orange-texte); }
.liste-coches {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.liste-coches li {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 10px;
  align-items: start;
}
.liste-coches svg { margin-top: 1px; }

.apercu {
  padding: 18px;
  border-radius: var(--rayon-carte);
  background: var(--blanc);
}
.apercu .mini-soir { padding: 14px; }
.apercu .mini-soir img { width: 74px; height: 74px; }
.apercu .mini-soir small { font-size: 12px; }
.apercu .mini-soir strong { font-size: 36px; }
.apercu .mini-soir .fleche { width: 36px; height: 36px; }
.apercu .mini-soir .fleche svg { width: 18px; height: 18px; }
.apercu .mini-bande i { height: 26px; border-radius: 7px; }
.apercu .mini-jours { font-size: 11px; }
.apercu .bouton { width: 100%; margin-top: 14px; }

.confiance {
  display: grid;
  gap: 14px;
  align-items: center;
}
.confiance .carte { display: grid; gap: 14px; }
.confiance img.grande { width: 150px; margin: 0 auto; }
.confiance h3 { margin: 0; font-size: 22px; }

.faq {
  display: grid;
  gap: 10px;
}
.faq details {
  border-radius: 20px;
  background: var(--blanc);
}
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  font-size: 17px;
  line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--orange-doux) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23a83c00' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform 200ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.faq details[open] summary::after { transform: rotate(180deg); }
.faq details > div {
  padding: 0 20px 20px;
  color: var(--encre-2);
}
.faq details > div p { margin: 0 0 10px; }
.faq details > div p:last-child { margin: 0; }

.appel {
  position: relative;
  max-width: 1120px;
  margin: 72px auto 0;
  padding: 0 12px;
}
.appel-fond {
  position: relative;
  overflow: hidden;
  padding: 44px 22px 40px;
  border-radius: 32px;
  background: var(--degrade-marque);
  color: #fff;
  text-align: center;
}
.appel h2 {
  margin: 0 0 18px;
  font-family: var(--titre);
  font-weight: 400;
  font-size: clamp(54px, 15vw, 120px);
  line-height: 0.88;
  text-transform: uppercase;
}
.appel p {
  max-width: 560px;
  margin: 0 auto 24px;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.45;
}
.appel .actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.appel .bouton.blanc[aria-disabled="true"] { cursor: default; }
.appel .bouton.blanc[aria-disabled="true"]:active { transform: none; }
.appel .bouton.contour {
  background: transparent;
  color: #fff;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.85);
}
.appel .deco {
  position: absolute;
  width: 120px;
  opacity: 1;
  pointer-events: none;
}
.appel .deco.d1 { left: -22px; bottom: -26px; transform: rotate(-14deg); }
.appel .deco.d2 { right: -18px; top: -20px; transform: rotate(16deg); width: 100px; }

/* ------------------------------------------------------------ pages intérieures (légales, calendrier) */

.bandeau-haut {
  position: relative;
  background: var(--degrade-marque);
  color: #fff;
  padding: 16px var(--gouttiere) 64px;
}
.bandeau-haut .interieur {
  max-width: 760px;
  margin: 0 auto;
}
.bandeau-haut .marque span { color: #fff; }
.bandeau-haut h1 {
  margin: 22px 0 0;
  font-family: var(--titre);
  font-weight: 400;
  font-size: clamp(44px, 12vw, 72px);
  line-height: 0.92;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
.bandeau-haut .etincelle {
  position: absolute;
  color: rgba(255, 255, 255, 0.9);
}

.feuille {
  position: relative;
  max-width: 792px;
  margin: -36px auto 0;
  padding: 0 var(--gouttiere);
}

.texte-legal {
  padding: 26px 20px 30px;
  border-radius: var(--rayon-carte);
  background: var(--blanc);
}
.texte-legal .date { margin: 0 0 18px; color: var(--encre-2); font-size: 14px; }
.texte-legal h2 { margin: 30px 0 8px; font-size: 20px; line-height: 1.25; }
.texte-legal h2:first-of-type { margin-top: 8px; }
.texte-legal p, .texte-legal li { color: #3e3657; }
.texte-legal ul { padding-left: 20px; }
.texte-legal li { margin: 6px 0; }
.texte-legal a { color: var(--violet-texte); font-weight: 600; }
.tableau { overflow-x: auto; margin: 10px 0; }
.texte-legal table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 15px; }
.texte-legal th, .texte-legal td { padding: 10px 8px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--bordure); }
.texte-legal th { font-size: 13px; text-transform: uppercase; letter-spacing: 0.03em; color: var(--encre-2); }

/* ------------------------------------------------------------ grands écrans */

@media (min-width: 720px) {
  :root { --gouttiere: 32px; }
  .couverture { margin: 20px 20px 0; border-radius: 44px; }
  .couverture-haut { padding: 24px 32px 0; }
  .couverture-legendes { padding: 0 48px; margin-top: -10px; font-size: 14px; }
  .scene { height: 600px; margin-top: calc(min(39vw, 440px) * -0.3); }
  .telephone { width: 300px; height: 620px; }
  .mascotte { width: 150px; }
  .mascotte.m1 { left: calc(50% - 360px); top: 250px; }
  .mascotte.m2 { right: calc(50% - 350px); top: 400px; width: 130px; }
  .grille-3 { grid-template-columns: repeat(3, 1fr); }
  .etapes { grid-template-columns: repeat(3, 1fr); }
  .etape { grid-template-columns: 1fr; }
  .lien-parent { grid-template-columns: 1.15fr 1fr; align-items: stretch; }
  .confiance { grid-template-columns: 220px 1fr; }
  .confiance img.grande { width: 200px; }
  .appel { padding: 0 20px; }
  .appel-fond { padding: 64px 40px 56px; border-radius: 44px; }
  .appel .deco { width: 180px; }
  .appel .deco.d2 { width: 150px; }
  .faq { grid-template-columns: 1fr 1fr; align-items: start; }
  .texte-legal { padding: 36px 40px 40px; }
  .bandeau-haut { padding-top: 22px; }
}

@media (min-width: 1100px) {
  .couverture-legendes { margin-top: -24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
