/* Papers Clip — téléphone d'abord. Les deux couleurs du logo officiel (2022) : bleu #1e4e9f, rose #e3187a. Formes rondes, comme le mot. */
:root {
  --bleu: #1e4e9f; --bleu-fonce: #173c7a; --bleu-pale: #eef3fb; --turquoise: #e3187a;
  --orange: #e3187a; --orange-fonce: #c01166; --rose-pale: #fdeaf3;
  --encre: #17223b; --gris: #5a6478; --trait: #d5ddee; --rond: ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; --fond: #fff; --rouge: #b3261e; --vert: #1c7a45;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 17px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; color: var(--encre); background: var(--fond); min-height: 100dvh; display: flex; flex-direction: column; }
[hidden] { display: none !important; }
a { color: var(--bleu); }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--turquoise); outline-offset: 2px; }

.haut { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; max-width: 720px; width: 100%; margin: 0 auto; }
.marque { display: flex; align-items: center; gap: 8px; text-decoration: none; min-height: 48px; }
.marque img { display: block; height: 36px; width: auto; }
.marque .mot { height: 26px; margin-top: 4px; }
.haut nav a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 8px; text-decoration: none; font-weight: 600; }

main { flex: 1; width: 100%; max-width: 720px; margin: 0 auto; padding: 8px 16px 32px; }
h1, h2, .carte strong, .action, .second, .grand-code, .zone strong, .formule .prix { font-family: var(--rond); }
h1 { font-size: 28px; line-height: 1.2; margin: 16px 0 8px; color: var(--bleu); text-wrap: balance; }
h2 { font-size: 24px; line-height: 1.25; margin: 8px 0 12px; color: var(--bleu); }
.chapeau { color: var(--gris); margin: 0 0 20px; }
.petit { font-size: 14px; color: var(--gris); text-align: center; }

.choix { display: grid; gap: 12px; }
.carte { display: grid; grid-template-columns: 56px 1fr; column-gap: 14px; align-items: center; text-align: left; padding: 18px; min-height: 96px; background: var(--bleu); color: #fff; border: 0; border-radius: 28px; }
.carte svg { grid-row: span 2; width: 56px; height: 56px; }
.carte strong { font-size: 22px; align-self: end; }
.carte span { opacity: .9; align-self: start; }
.carte + .carte { background: var(--orange); }
.carte:active { transform: scale(.99); }
svg { fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.carte circle { fill: currentColor; stroke: none; }

.rappel { width: 100%; min-height: 48px; margin-top: 12px; background: var(--rose-pale); color: var(--orange-fonce); border: 0; border-radius: 999px; font-weight: 700; }
.atouts, .publics { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; color: var(--gris); }
.atouts li, .publics li { padding: 16px 18px; border-radius: 22px; background: var(--bleu-pale); }
.publics li { background: #fff; border: 1px solid var(--trait); }
.publics strong { display: block; color: var(--orange-fonce); font-family: var(--rond); }
.bande { margin-top: 44px; scroll-margin-top: 12px; }
.bande h2 { font-size: 26px; margin-bottom: 16px; }
.etapes { list-style: none; counter-reset: etape; padding: 0; margin: 0; display: grid; gap: 14px; }
.etapes li { counter-increment: etape; position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: start; padding: 18px; border: 1px solid var(--trait); border-radius: 24px; }
.etapes li::before { content: counter(etape); position: absolute; top: -10px; left: -6px; width: 30px; height: 30px; border-radius: 50%; background: var(--orange); color: #fff; font-weight: 800; font-family: var(--rond); display: grid; place-items: center; }
.etapes svg { width: 56px; height: 56px; color: var(--bleu); }
.etapes circle { fill: currentColor; stroke: none; }
.etapes strong { font-family: var(--rond); font-size: 20px; color: var(--bleu); }
.etapes p { margin: 2px 0 0; color: var(--gris); }
.exemple { margin: 18px 0 0; padding: 18px; border-radius: 24px; background: var(--bleu); color: #fff; text-align: center; }
.exemple span { display: block; opacity: .9; }
.exemple b { display: block; font-family: var(--rond); font-size: clamp(44px, 14vw, 72px); line-height: 1.1; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.apres { margin: 14px 0 0; text-align: center; color: var(--encre); font-weight: 600; }
.fin { margin-bottom: 8px; }
.fin h2 { text-align: center; }
.haut nav { display: flex; gap: 2px; white-space: nowrap; }
@media (max-width: 400px) { .marque img { height: 30px; } .marque .mot { height: 21px; } .haut nav a { font-size: 16px; padding: 0 6px; } }
.atouts strong { display: block; color: var(--bleu); font-family: var(--rond); }

.retour { background: none; border: 0; color: var(--bleu); min-height: 48px; padding: 0 8px 0 0; font-weight: 600; }
.action, .second, .danger { width: 100%; min-height: 56px; border-radius: 999px; font-weight: 700; font-size: 19px; border: 0; }
.action { background: var(--orange); color: #fff; }
.action:hover { background: var(--orange-fonce); }
.action:disabled { background: #c9cedb; cursor: default; }
.second { background: var(--bleu-pale); color: var(--bleu-fonce); border: 1px solid var(--trait); }
.danger { background: none; color: var(--rouge); border: 1px solid #e6b8b5; margin-top: 20px; font-size: 16px; min-height: 48px; }
.discret { min-height: 48px; padding: 0 14px; background: #fff; border: 1px solid var(--trait); border-radius: 999px; }
.rangee { display: grid; gap: 10px; }

.msg { min-height: 0; margin: 10px 0; color: var(--rouge); font-weight: 600; }
.msg:empty { display: none; }
.msg.ok { color: var(--vert); }

.saisie-code { display: block; width: 100%; min-height: 76px; text-align: center; font-size: 40px; font-weight: 700; letter-spacing: .12em; font-variant-numeric: tabular-nums; border: 2px solid var(--trait); border-radius: 24px; margin-bottom: 14px; color: var(--bleu); font-family: var(--rond); }
.saisie-code:focus { border-color: var(--bleu); outline: none; }

.zone { display: grid; justify-items: center; gap: 4px; padding: 24px 16px; border: 2px dashed var(--bleu); border-radius: 24px; background: var(--bleu-pale); color: var(--bleu-fonce); cursor: pointer; text-align: center; }
.zone svg { width: 44px; height: 44px; }
.zone strong { font-size: 19px; }
.zone span { color: var(--gris); font-size: 15px; }
.zone.survol { background: #dfe9fb; }
.cache { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.cache:focus-visible + .liste, .zone:focus-within { outline: 3px solid var(--turquoise); }

.liste { list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 8px; }
.liste li { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; padding: 10px 10px 10px 16px; border: 1px solid var(--trait); border-radius: 20px; }
.liste .nom { font-weight: 600; overflow-wrap: anywhere; }
.liste .taille { display: block; font-weight: 400; color: var(--gris); font-size: 14px; }
.liste a.telecharger, .liste button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 18px; border-radius: 999px; font-weight: 700; font-size: 19px; text-decoration: none; border: 0; }
.liste a.telecharger { background: var(--orange); color: #fff; }
.liste button { background: none; color: var(--rouge); border: 1px solid var(--trait); font-weight: 600; font-size: 16px; }
.liste.simple li { grid-template-columns: 1fr; padding: 8px 12px; }

.champ { display: block; font-weight: 600; margin: 18px 0 6px; }
.champ em { font-weight: 400; color: var(--gris); font-style: normal; }
input[type=text] { width: 100%; min-height: 52px; padding: 0 18px; border: 1px solid var(--trait); border-radius: 999px; }
.durees { border: 0; padding: 0; margin: 18px 0 8px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.durees legend { font-weight: 600; padding: 0; margin-bottom: 6px; }
.durees input { position: absolute; opacity: 0; }
.durees span { display: flex; align-items: center; justify-content: center; min-height: 52px; border: 1px solid var(--trait); border-radius: 999px; font-weight: 600; cursor: pointer; }
.durees input:checked + span { background: var(--bleu); color: #fff; border-color: var(--bleu); }
.durees input:focus-visible + span { outline: 3px solid var(--turquoise); outline-offset: 2px; }
.barre { height: 10px; background: var(--bleu-pale); border-radius: 5px; overflow: hidden; margin: 12px 0; }
.barre i { display: block; height: 100%; width: 0; background: var(--bleu); transition: width .2s; }

#projection { text-align: center; padding: 8px 0 4px; }
.sur { font-weight: 700; font-size: 19px; margin: 0 0 4px; overflow-wrap: anywhere; }
.sur:empty { display: none; }
.invite { margin: 0; color: var(--gris); }
.invite strong { color: var(--encre); }
.grand-code { white-space: nowrap; margin: 4px 0 12px; font-size: clamp(52px, 17vw, 96px); line-height: 1.1; font-weight: 800; letter-spacing: .04em; font-variant-numeric: tabular-nums; color: var(--bleu); }
#p-qr { width: 200px; height: 200px; image-rendering: pixelated; }
#v-pret .rangee { margin-top: 8px; }

.signaler { margin-top: 28px; color: var(--gris); }
.signaler summary { min-height: 48px; display: flex; align-items: center; cursor: pointer; text-decoration: underline; }

/* Affichage en grand, pour le projecteur */
body.grand .haut, body.grand .bas, body.grand #v-pret > :not(#projection) { display: none; }
body.grand main { max-width: none; display: grid; place-items: center; padding: 3vmin; }
body.grand #v-pret { max-width: none; width: 100%; margin: 0; }
body.grand #projection { cursor: zoom-out; }
body.grand .sur { font-size: 4vmin; }
body.grand .invite { font-size: 3.6vmin; }
body.grand .grand-code { font-size: min(19vw, 34vh); }
body.grand #p-qr { width: min(32vh, 60vw); height: min(32vh, 60vw); }
body.grand #p-expire { font-size: 2.6vmin; margin: 0; }

.bas { display: flex; flex-wrap: wrap; gap: 4px 18px; justify-content: center; align-items: center; padding: 16px; border-top: 1px solid var(--trait); color: var(--gris); font-size: 14px; }
.bas a { display: inline-flex; align-items: center; min-height: 48px; }

/* Pages de texte */
.texte h2 { margin-top: 28px; font-size: 20px; }
.texte li { margin-bottom: 6px; }
.formules { display: grid; gap: 14px; margin: 20px 0; }
.formule { border: 1px solid var(--trait); border-radius: 28px; padding: 22px; }
.formule.active { border: 2px solid var(--bleu); }
.formule h2 { margin: 0; font-size: 22px; }
.formule .prix { font-size: 26px; font-weight: 800; margin: 4px 0 10px; color: var(--encre); }
.formule .prix small { font-size: 15px; font-weight: 400; color: var(--gris); }
.formule ul { margin: 0; padding-left: 20px; }
.etiquette { display: inline-block; font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 99px; background: var(--bleu-pale); color: var(--bleu-fonce); margin-bottom: 8px; }
.formule.active .etiquette { background: var(--rose-pale); color: var(--orange-fonce); }
.formule .action { display: flex; align-items: center; justify-content: center; text-decoration: none; margin-top: 14px; }

@media (min-width: 761px) {
  h1 { font-size: 38px; margin-top: 36px; }
  .choix { grid-template-columns: 1fr 1fr; }
  .atouts { grid-template-columns: repeat(2, 1fr); }
  .publics { grid-template-columns: repeat(3, 1fr); }
  .etapes { grid-template-columns: repeat(3, 1fr); }
  .etapes li { grid-template-columns: 1fr; }
  .bande { margin-top: 64px; }
  .bande h2 { font-size: 30px; text-align: center; }
  .formules { grid-template-columns: repeat(3, 1fr); }
  #v-pret .rangee { grid-template-columns: 1fr 1fr; }
  .signaler .rangee { grid-template-columns: repeat(3, 1fr); }
  #v-code, #v-deposer, #v-fichiers, #v-pret { max-width: 520px; margin: 0 auto; }
}
