/* Wintg QR - styles communs (24 nov. 2026, v2).
   Polices : General Sans (Fontshare, licence ITF FFL) et Departure Mono (Helena Zhang, licence SIL OFL).
   Tailles en rem, 1 rem suit la largeur de l'écran : la même page à l'échelle de chaque écran. */

@font-face { font-family: "General Sans"; font-style: normal; font-weight: 200 700; font-display: swap; src: url("/fonts/general-sans.woff2") format("woff2"); }
@font-face { font-family: "Departure Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/departure-mono.woff2") format("woff2"); }

:root {
  --fond: #FFF8EF; --sable: #F4EBDF; --sable-f: #EADDCB; --ligne: #E5D6C2; --carte: #FFFDFA;
  --encre: #17110D; --cacao: #3A1C0A; --taupe: #7A6352; --taupe-c: #A08B78; --os: #F4EEE6;
  --orange: #E17A21; --orange-f: #BF5E1C; --vert: #1E9E55; --vert-c: #E3F3E8; --rouge: #C2410C; --rouge-c: #FBE7DC;
  --blanc: #FFF8EF; --sans: "General Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Departure Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --ombre: 0 .0625rem .125rem rgba(58, 28, 10, .07), 0 1rem 2.5rem -1rem rgba(58, 28, 10, .28);
  --ombre-douce: 0 .0625rem .125rem rgba(58, 28, 10, .06), 0 .5rem 1.5rem -.75rem rgba(58, 28, 10, .22);
  --marge: 1.5rem;
}

html { font-size: 1.111vw; -webkit-text-size-adjust: 100%; }
@media (max-width: 1023px) { html { font-size: 1.92vw; } }
@media (max-width: 767px) { html { font-size: 4.4vw; } :root { --marge: 1rem; } }

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--fond); color: var(--encre); font: 400 1rem/1.5 var(--sans); overflow-x: clip;
  -webkit-tap-highlight-color: transparent; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, canvas, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: .125rem solid var(--orange); outline-offset: .1875rem; border-radius: .375rem; }
.visuellement-cache { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: var(--mono); font-size: .75rem; line-height: 1.4; letter-spacing: .06em; text-transform: uppercase; font-weight: 400; }
@media (max-width: 767px) { .mono { font-size: .72rem; } }

.i { width: 1.25rem; height: 1.25rem; flex: none; stroke-linecap: round; stroke-linejoin: round; }
.i--wa { width: 1.2rem; height: 1.2rem; }

/* ------------------------------------------------------------------ éléments de base */

.etiquette { margin: 0 0 .9rem; font: 400 .75rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--orange-f); }
.titre-section { margin: 0; font-weight: 500; font-size: 3.2rem; line-height: 1; letter-spacing: -.045em; color: var(--encre); }
@media (max-width: 767px) { .titre-section { font-size: 2.1rem; } }

.lien-mono { display: inline-flex; align-items: center; gap: .35rem; font: 400 .75rem/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--encre); white-space: nowrap; }
.lien-mono .i { width: .9rem; height: .9rem; }
.lien-mono:hover { color: var(--taupe); }

.pilule { display: inline-flex; align-items: center; gap: .5rem; height: 2.4rem; padding: 0 1.15rem; border-radius: 999px; background: var(--encre); color: var(--os);
  white-space: nowrap; transition: background .25s, color .25s, box-shadow .25s; }
.pilule:hover { background: var(--os); color: var(--encre); box-shadow: inset 0 0 0 .0625rem var(--encre); }
.pilule__court { display: none; }
@media (max-width: 767px) { .pilule__long { display: none; } .pilule__court { display: inline; } }

.bouton { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; height: 2.75rem; padding: 0 1.25rem; border-radius: 999px;
  background: var(--encre); color: var(--os); font: 400 .78rem/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
  transition: transform .2s, background .2s, opacity .2s; }
.bouton .i { width: 1.1rem; height: 1.1rem; }
.bouton:hover { background: #2a221c; }
.bouton:active { transform: scale(.97); }
.bouton:disabled { opacity: .45; cursor: default; }
.bouton--clair { background: var(--carte); color: var(--encre); box-shadow: inset 0 0 0 .0625rem var(--ligne); }
.bouton--clair:hover { background: var(--sable); }
.bouton--orange { background: var(--orange); color: var(--encre); }
.bouton--orange:hover { background: #EA8A35; }
.bouton--wa { background: #1E9E55; color: #fff; }
.bouton--wa:hover { background: #18894A; }
.bouton--plein { width: 100%; }
.bouton--petit { height: 2.25rem; padding: 0 .95rem; font-size: .7rem; }
.bouton--icone { width: 2.75rem; padding: 0; }

.champ { display: block; }
.champ__nom { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; margin-bottom: .45rem; font-size: .875rem; font-weight: 500; color: var(--encre); }
.champ__saisie { width: 100%; height: 2.9rem; padding: 0 1rem; border: 0; border-radius: .85rem; background: var(--sable); color: var(--encre);
  font: 400 .9rem var(--mono); outline: none; box-shadow: inset 0 0 0 .0625rem transparent; transition: box-shadow .2s, background .2s; }
textarea.champ__saisie { height: auto; min-height: 5.5rem; padding: .8rem 1rem; resize: vertical; line-height: 1.45; font-family: var(--sans); font-size: .95rem; }
.champ__saisie::placeholder { color: var(--taupe-c); }
.champ__saisie:focus { background: var(--carte); box-shadow: inset 0 0 0 .09375rem var(--encre); }

.message { margin: 0; min-height: 1.2rem; font: 400 .72rem/1.4 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--taupe); text-align: center; transition: opacity .3s; }
.message[data-genre="ok"] { color: var(--vert); }
.message[data-genre="erreur"] { color: var(--rouge); }

/* ------------------------------------------------------------------ pied (studio) */

.pied { position: relative; z-index: 2; padding: 0 var(--marge) calc(2rem + env(safe-area-inset-bottom)); max-width: 84rem; margin: 2rem auto 0; }
.pied__chaine { display: grid; grid-template-columns: 1fr auto; gap: 3rem; align-items: center; padding: 3rem; border-radius: 1.6rem; background: var(--encre); color: var(--os); }
.pied__chaine .etiquette { color: var(--orange); }
.pied__titre { margin: 0 0 .9rem; max-width: 34rem; font-size: 2.2rem; font-weight: 500; line-height: 1.05; letter-spacing: -.035em; }
.pied__sous { margin: 0 0 1.6rem; max-width: 32rem; color: var(--taupe-c); }
.pied__qr { margin: 0; display: grid; justify-items: center; gap: .75rem; }
.pied__qr canvas { width: 12rem; height: auto; }
.pied__qr figcaption { color: var(--taupe-c); }
.pied__bas { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem; padding: 2rem .25rem 0; }
.pied__logo img { width: 5.5rem; height: auto; }
.pied__liens { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; }
.pied__liens a:hover { color: var(--taupe); }
.pied__droits { margin: 0; color: var(--taupe); }
@media (max-width: 767px) {
  .pied__chaine { grid-template-columns: 1fr; padding: 2rem 1.4rem; gap: 1.5rem; }
  .pied__titre { font-size: 1.7rem; }
  .pied__qr { display: none; }
  .pied__bas { flex-direction: column; align-items: flex-start; }
}

/* ------------------------------------------------------------------ questions (studio) */

.questions { max-width: 52rem; margin: 3rem auto 0; padding: 0 var(--marge); }
.faq { border-radius: 1.5rem; background: var(--carte); box-shadow: inset 0 0 0 .0625rem var(--ligne); padding: .4rem 1.6rem; }
.faq details { border-top: .0625rem solid var(--ligne); }
.faq details:first-child { border-top: 0; }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.25rem 0; cursor: pointer; list-style: none; font-size: 1.05rem; font-weight: 500; letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { width: 1.1rem; height: 1.1rem; color: var(--taupe); transition: transform .3s; }
.faq details[open] summary .i { transform: rotate(45deg); }
.faq p { margin: -.35rem 0 1.3rem; max-width: 44rem; color: var(--taupe); line-height: 1.6; }
@media (max-width: 767px) { .faq { padding: .25rem 1.1rem; } .faq summary { font-size: .98rem; padding: 1.05rem 0; } }

/* ------------------------------------------------------------------ feuilles (modale sur ordinateur, feuille du bas sur téléphone) */

.voile { position: fixed; inset: 0; z-index: 90; background: rgba(23, 17, 13, .38); opacity: 0; transition: opacity .3s; -webkit-backdrop-filter: blur(.125rem); backdrop-filter: blur(.125rem); }
.voile.est-ouvert { opacity: 1; }
.feuille { position: fixed; z-index: 91; left: 50%; top: 50%; width: min(34rem, calc(100% - 2rem)); max-height: min(90vh, 52rem); overflow: auto; overscroll-behavior: contain;
  padding: 1.5rem; border-radius: 1.5rem; background: var(--fond); box-shadow: var(--ombre); transform: translate(-50%, -46%) scale(.98); opacity: 0;
  transition: transform .35s cubic-bezier(.22, 1, .36, 1), opacity .25s; }
.feuille.est-ouvert { transform: translate(-50%, -50%); opacity: 1; }
.feuille:focus { outline: none; }
.feuille--large { width: min(56rem, calc(100% - 2rem)); }
.feuille__tete { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; }
.feuille__titre { margin: 0; font-size: 1.3rem; font-weight: 500; letter-spacing: -.025em; }
.feuille__fermer { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--sable); color: var(--encre); }
.feuille__fermer:hover { background: var(--sable-f); }
.feuille__poignee { display: none; }
@media (max-width: 767px) {
  .feuille, .feuille--large { left: .6rem; right: .6rem; top: auto; bottom: calc(.6rem + env(safe-area-inset-bottom)); width: auto; max-height: 88vh; max-height: 88dvh;
    padding: .75rem 1.1rem 1.25rem; border-radius: 1.35rem; transform: translateY(110%); opacity: 1; }
  .feuille.est-ouvert { transform: none; }
  .feuille__poignee { display: block; width: 2.5rem; height: .25rem; margin: 0 auto .75rem; border-radius: 999px; background: var(--sable-f); }
}

.liste { position: relative; }
.liste__bouton { display: flex; align-items: center; justify-content: space-between; gap: .5rem; width: 100%; height: 2.9rem; padding: 0 .9rem; border-radius: .85rem;
  background: var(--sable); font: 400 .9rem var(--mono); white-space: nowrap; }
.liste__bouton .i { width: 1rem; height: 1rem; color: var(--taupe); transition: transform .25s; }
.liste.est-ouverte .liste__bouton .i { transform: rotate(180deg); }
.liste__choix { position: absolute; z-index: 40; left: 0; top: calc(100% + .35rem); min-width: 100%; max-height: 16rem; overflow: auto; margin: 0; padding: .35rem; list-style: none;
  border-radius: .95rem; background: var(--carte); box-shadow: inset 0 0 0 .0625rem var(--ligne), var(--ombre); }
.liste__choix button { display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%; padding: .6rem .7rem; border-radius: .6rem; font: 400 .85rem var(--mono); text-align: left; white-space: nowrap; }
.liste__choix button:hover, .liste__choix button:focus-visible { background: var(--sable); }
.liste__choix button .i { width: 1rem; height: 1rem; color: var(--orange-f); visibility: hidden; }
.liste__choix button[aria-selected="true"] .i { visibility: visible; }

/* 404 */
.page-vide { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 6rem var(--marge) 3rem; }
.page-vide h1 { margin: 1.5rem 0 .75rem; font-size: 3.6rem; font-weight: 500; letter-spacing: -.05em; line-height: 1; }
.page-vide p { margin: 0 0 1.75rem; color: var(--taupe); }
.page-vide canvas { width: 11rem; margin: 0 auto; }
.haut-simple { position: absolute; left: 0; right: 0; top: 0; z-index: 30; display: flex; justify-content: space-between; align-items: center; padding: calc(1rem + env(safe-area-inset-top)) var(--marge) 0; }
.haut-simple img { width: 5.6rem; height: auto; }
@media (max-width: 767px) { .page-vide h1 { font-size: 2.4rem; } }
