/* Sunu Firndé — mêmes couleurs et même police que FIÏLA */
@font-face { font-family: 'Plus Jakarta Sans'; src: url(/fonts/plus-jakarta-sans-latin-500-normal.woff2) format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Plus Jakarta Sans'; src: url(/fonts/plus-jakarta-sans-latin-600-normal.woff2) format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Plus Jakarta Sans'; src: url(/fonts/plus-jakarta-sans-latin-700-normal.woff2) format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Plus Jakarta Sans'; src: url(/fonts/plus-jakarta-sans-latin-800-normal.woff2) format('woff2'); font-weight: 800; font-display: swap; }
:root {
  --rouge: #BE1E28; --rouge-f: #9A1820; --rouge-c: #FBE3E4; --noir: #111111; --gris: #6B6B6B; --ligne: #E6E6E6; --fond: #F6F6F6; --blanc: #FFFFFF;
  --vert: #1E7B3C; --vert-c: #E5F3EA; --orange: #9A5B00; --orange-c: #FDF0DC;
  --ombre: 0 1px 2px rgba(0,0,0,.05), 0 6px 20px rgba(0,0,0,.06);
  --police: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--police); color: var(--noir); background: var(--blanc); line-height: 1.5; font-size: 16px; }
img, svg { max-width: 100%; }
a { color: var(--rouge); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .4em; }
p { margin: 0 0 .8em; }
.muted { color: var(--gris); } .petit { font-size: .88rem; } .centre { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.conteneur { width: min(1120px, 100% - 32px); margin: 0 auto; }

/* boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 12px; padding: 12px 18px; font: inherit; font-weight: 800; font-size: .98rem; cursor: pointer; text-decoration: none; line-height: 1.2; transition: transform .1s, background .15s; }
.btn:active { transform: scale(.98); } .btn[disabled] { opacity: .55; cursor: wait; }
.btn-rouge { background: var(--rouge); color: #fff; } .btn-rouge:hover { background: var(--rouge-f); color: #fff; }
.btn-noir { background: var(--noir); color: #fff; } .btn-noir:hover { color: #fff; }
.btn-clair { background: #fff; color: var(--noir); border: 1.5px solid var(--ligne); } .btn-clair:hover { border-color: #ccc; color: var(--noir); }
.btn-large { padding: 15px 24px; font-size: 1.05rem; } .btn-plein { width: 100%; }
.btn-lien { background: none; border: 0; color: var(--rouge); font: inherit; font-weight: 700; cursor: pointer; padding: 0; }

/* formulaires */
.champ { display: grid; gap: 6px; margin-bottom: 14px; }
.champ label, .lbl { font-weight: 700; font-size: .92rem; }
input[type=text], input[type=tel], input[type=password], input[type=number], select, textarea {
  width: 100%; border: 1.5px solid var(--ligne); border-radius: 12px; padding: 12px 14px; font: inherit; font-weight: 600; color: var(--noir); background: #fff; }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--noir); box-shadow: 0 0 0 3px rgba(17,17,17,.08); }
.champ-erreur { border-color: var(--rouge) !important; background: #FFF6F6 !important; }
.grille2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 640px) { .grille2 { grid-template-columns: 1fr; } }
.choix { display: flex; gap: 10px; flex-wrap: wrap; }
.choix label { flex: 1; min-width: 140px; border: 1.5px solid var(--ligne); border-radius: 12px; padding: 12px 14px; cursor: pointer; font-weight: 700; display: grid; gap: 2px; }
.choix label span { font-weight: 500; font-size: .85rem; color: var(--gris); }
.choix input { position: absolute; opacity: 0; }
.choix label:has(input:checked) { border-color: var(--noir); background: #FAFAFA; box-shadow: inset 0 0 0 1px var(--noir); }
.msg { color: var(--rouge); font-weight: 700; font-size: .92rem; min-height: 1.2em; }

/* éléments */
.carte { background: #fff; border-radius: 18px; padding: 20px; box-shadow: var(--ombre); }
.pastille { display: inline-flex; align-items: center; gap: 6px; border-radius: 30px; padding: 5px 12px; font-size: .8rem; font-weight: 800; white-space: nowrap; }
.p-vert { background: var(--vert-c); color: var(--vert); } .p-orange { background: var(--orange-c); color: var(--orange); } .p-rouge { background: var(--rouge-c); color: var(--rouge); } .p-gris { background: #F0F0F0; color: var(--gris); }
.cachet svg { width: 100%; height: auto; display: block; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: var(--noir); color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 700; opacity: 0; transition: .25s; z-index: 99; max-width: min(92vw, 460px); text-align: center; pointer-events: none; }
.toast.on { opacity: 1; transform: translateX(-50%); }
.logo-lien { display: inline-flex; align-items: center; text-decoration: none; }
.logo-lien img { height: 44px; width: auto; }

/* site vitrine */
.entete { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--ligne); }
.entete .conteneur { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.entete nav { display: flex; gap: 6px; align-items: center; }
.entete nav a:not(.btn) { color: var(--noir); text-decoration: none; font-weight: 700; padding: 8px 10px; border-radius: 10px; }
@media (max-width: 760px) { .entete nav a.cache-m { display: none; } .logo-lien img { height: 38px; } }
.heros { padding: 64px 0 56px; background: radial-gradient(1200px 400px at 80% -10%, var(--rouge-c), transparent 60%); }
.heros .conteneur { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.heros h1 { font-size: clamp(2.1rem, 1.4rem + 3vw, 3.6rem); }
.heros h1 span { color: var(--rouge); }
.heros .lead { font-size: 1.15rem; color: #333; max-width: 560px; }
.heros .actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.heros-visuel { position: relative; }
.heros-visuel .feuille { background: #fff; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.14); aspect-ratio: 297/210; padding: 7%; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px solid #eee; position: relative; font-family: Georgia, serif; }
.heros-visuel .feuille::before { content: ''; position: absolute; inset: 5%; border: 2px solid var(--rouge); opacity: .35; }
.heros-visuel .feuille b { font-size: clamp(1rem, .6rem + 1.4vw, 1.5rem); letter-spacing: .12em; color: var(--rouge); }
.heros-visuel .feuille i { font-size: clamp(1.3rem, .8rem + 2vw, 2.2rem); margin: 4% 0; }
.heros-visuel .feuille .cachet { position: absolute; right: 7%; bottom: 6%; width: 30%; mix-blend-mode: multiply; transform: rotate(-8deg); }
.heros-visuel .scan { position: absolute; left: -6%; bottom: -10%; background: #fff; border-radius: 16px; box-shadow: var(--ombre); padding: 12px 14px; display: flex; gap: 10px; align-items: center; font-size: .85rem; max-width: 300px; }
.heros-visuel .scan .ok { width: 34px; height: 34px; border-radius: 50%; background: var(--vert); color: #fff; display: grid; place-items: center; font-weight: 800; flex: 0 0 34px; }
@media (max-width: 900px) { .heros .conteneur { grid-template-columns: 1fr; } .heros { padding-top: 36px; } .heros-visuel .scan { left: 4%; } }
.section { padding: 64px 0; } .section.gris { background: var(--fond); }
.section h2 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.4rem); text-align: center; }
.section .sous { text-align: center; color: var(--gris); max-width: 640px; margin: 0 auto 32px; }
.grille3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; } .grille4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 900px) { .grille3, .grille4 { grid-template-columns: 1fr 1fr; } } @media (max-width: 560px) { .grille3, .grille4 { grid-template-columns: 1fr; } }
.num { width: 38px; height: 38px; border-radius: 50%; background: var(--rouge); color: #fff; font-weight: 800; display: grid; place-items: center; margin-bottom: 10px; }
.ic { width: 46px; height: 46px; border-radius: 12px; background: var(--rouge-c); display: grid; place-items: center; font-size: 22px; margin-bottom: 10px; }
.prix-carte { text-align: left; display: flex; flex-direction: column; gap: 6px; }
.prix-carte.vedette { outline: 2px solid var(--noir); }
.prix { font-size: 2.2rem; font-weight: 800; letter-spacing: -.03em; } .prix small { font-size: .95rem; color: var(--gris); font-weight: 700; }
.coches { list-style: none; padding: 0; margin: 8px 0 14px; display: grid; gap: 7px; }
.coches li::before { content: '✓'; color: var(--rouge); font-weight: 800; margin-right: 8px; }
.pied { background: var(--noir); color: #ddd; padding: 36px 0; font-size: .92rem; }
.pied a { color: #fff; } .pied .conteneur { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
.pied img { height: 40px; }

/* pages d'accès (inscription, connexion) */
.acces { min-height: 100vh; display: grid; grid-template-columns: 440px 1fr; }
.acces-gauche { background: var(--noir); color: #fff; padding: 40px; display: flex; flex-direction: column; gap: 18px; position: relative; overflow: hidden; }
.acces-gauche h2 { font-size: 2rem; margin-top: 40px; } .acces-gauche h2 span { color: #FF5A63; }
.acces-gauche ul { list-style: none; padding: 0; display: grid; gap: 10px; font-weight: 700; }
.acces-gauche ul li::before { content: '✓  '; color: #FF5A63; }
.acces-gauche .cercle { position: absolute; border-radius: 50%; border: 2px solid rgba(190,30,40,.5); }
.acces-droite { padding: 40px clamp(20px, 6vw, 80px); max-width: 820px; width: 100%; }
@media (max-width: 900px) { .acces { grid-template-columns: 1fr; } .acces-gauche { display: none; } .acces-droite { padding: 24px 18px 60px; } }
.etapes { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 22px; }
.etapes span { border-radius: 30px; padding: 6px 12px; font-size: .82rem; font-weight: 800; background: #F0F0F0; color: var(--gris); }
.etapes span.on { background: var(--noir); color: #fff; } .etapes span.fait { background: var(--vert-c); color: var(--vert); }
.logo-zone { display: flex; align-items: center; gap: 12px; border: 1.5px dashed var(--ligne); border-radius: 12px; padding: 10px 14px; cursor: pointer; }
.logo-zone img { width: 46px; height: 46px; object-fit: contain; border-radius: 8px; background: #fafafa; }
.apercu-cachet { display: grid; grid-template-columns: 260px 1fr; gap: 24px; align-items: start; }
@media (max-width: 640px) { .apercu-cachet { grid-template-columns: 1fr; } .apercu-cachet .cachet { max-width: 240px; margin: 0 auto; } }
.vignettes { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.vignettes label { border: 1.5px solid var(--ligne); border-radius: 12px; padding: 6px; cursor: pointer; text-align: center; font-size: .72rem; font-weight: 700; }
.vignettes input { position: absolute; opacity: 0; }
.vignettes label:has(input:checked) { border-color: var(--noir); box-shadow: inset 0 0 0 1px var(--noir); }
.famille { grid-column: 1 / -1; font-weight: 800; font-size: .85rem; color: var(--rouge); margin-top: 6px; }
.couleurs { display: flex; gap: 10px; margin: 10px 0; }
.couleurs label { width: 34px; height: 34px; border-radius: 50%; cursor: pointer; box-shadow: 0 0 0 2px #fff, 0 0 0 3px transparent; }
.couleurs input { position: absolute; opacity: 0; }
.couleurs label:has(input:checked) { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--noir); }

/* espace école */
.app { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; background: var(--fond); }
.cote { background: var(--noir); color: #fff; padding: 20px 14px; display: flex; flex-direction: column; gap: 3px; position: sticky; top: 0; height: 100vh; }
.cote .marque { padding: 4px 8px 18px; } .cote .marque img { height: 40px; }
.cote .ecole-nom { font-size: .8rem; color: #bbb; font-weight: 700; padding: 0 8px 14px; line-height: 1.3; }
.cote a { display: flex; align-items: center; gap: 11px; padding: 11px 12px; border-radius: 11px; font-weight: 700; font-size: .95rem; color: #d6d6d6; text-decoration: none; }
.cote a.on, .cote a:hover { background: rgba(255,255,255,.1); color: #fff; } .cote a.on { box-shadow: inset 3px 0 0 var(--rouge); }
.cote a i { width: 20px; text-align: center; font-style: normal; }
.cote .abo { margin-top: auto; background: rgba(255,255,255,.07); border-radius: 14px; padding: 12px; font-size: .8rem; line-height: 1.5; }
.cote .abo b { color: #FF6B73; }
.contenu { padding: 26px clamp(16px, 3vw, 36px) 90px; min-width: 0; }
.haut { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.haut h1 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.9rem); margin: 0; } .haut p { margin: 4px 0 0; color: var(--gris); }
.haut .etats { display: flex; gap: 6px; flex-wrap: wrap; }
.tuiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tuile { background: #fff; border-radius: 16px; padding: 16px; border: 1.5px solid var(--ligne); text-decoration: none; color: var(--noir); display: block; }
.tuile:hover { border-color: var(--noir); color: var(--noir); } .tuile b { display: block; } .tuile span { color: var(--gris); font-size: .85rem; }
.accueil { display: grid; grid-template-columns: 340px 1fr; gap: 18px; }
.cartes-cachets { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.carte-cachet { text-align: center; } .carte-cachet .cachet { max-width: 200px; margin: 0 auto 8px; }
.carte-cachet .actions { display: flex; gap: 6px; justify-content: center; margin-top: 10px; flex-wrap: wrap; }
.carte-cachet .actions .btn { padding: 8px 12px; font-size: .85rem; }
.bas-nav { display: none; }
.bandeau { border-radius: 14px; padding: 12px 16px; margin-bottom: 16px; font-weight: 700; font-size: .92rem; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.bandeau.orange { background: var(--orange-c); color: var(--orange); } .bandeau.rouge { background: var(--rouge-c); color: var(--rouge-f); } .bandeau.vert { background: var(--vert-c); color: var(--vert); } .bandeau.noir { background: var(--noir); color: #fff; }
@media (max-width: 960px) {
  .app { grid-template-columns: 1fr; } .cote { display: none; }
  .accueil { grid-template-columns: 1fr; } .tuiles { grid-template-columns: 1fr 1fr; }
  .bas-nav { display: flex; position: fixed; left: 0; right: 0; bottom: 0; background: #fff; border-top: 1px solid var(--ligne); justify-content: space-around; padding: 8px 0 calc(8px + env(safe-area-inset-bottom)); z-index: 30; }
  .bas-nav a { text-align: center; font-size: .7rem; font-weight: 700; color: var(--gris); text-decoration: none; display: grid; gap: 2px; }
  .bas-nav a i { font-style: normal; font-size: 1.1rem; } .bas-nav a.on { color: var(--rouge); }
  .entete-m { display: flex !important; }
}
.entete-m { display: none; align-items: center; justify-content: space-between; background: var(--noir); color: #fff; padding: 12px 16px; }
.entete-m img { height: 32px; }
.scene-doc { position: relative; display: inline-block; max-width: 100%; touch-action: none; background: #fff; box-shadow: var(--ombre); }
.scene-doc canvas { display: block; max-width: 100%; }
.scene-doc img.tampon { position: absolute; cursor: grab; mix-blend-mode: multiply; user-select: none; -webkit-user-drag: none; }
.table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 14px; overflow: hidden; font-size: .92rem; }
.table th { background: var(--noir); color: #fff; text-align: left; padding: 9px 10px; font-size: .8rem; }
.table td { padding: 7px 10px; border-bottom: 1px solid #eee; vertical-align: middle; }
.table input { min-width: 140px; padding: 8px 10px; }
.table-zone { overflow: auto; border-radius: 14px; }
.retirer { border: 0; background: #F0F0F0; border-radius: 8px; width: 32px; height: 32px; cursor: pointer; font-weight: 800; color: #555; }
.bloc { background: #fff; border-radius: 18px; padding: 20px; margin-bottom: 16px; box-shadow: var(--ombre); }
.bloc h2 { font-size: 1.15rem; display: flex; gap: 10px; align-items: center; }
.bloc h2 .n { width: 28px; height: 28px; border-radius: 50%; background: var(--rouge); color: #fff; display: grid; place-items: center; font-size: .85rem; flex: 0 0 28px; }
.ok-vert { color: var(--vert); font-weight: 800; }
.verdict { display: flex; gap: 14px; align-items: center; border-radius: 16px; padding: 16px 18px; margin-bottom: 16px; }
.verdict .ic2 { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 1.4rem; font-weight: 800; flex: 0 0 46px; }
.verdict.ok { background: var(--vert-c); } .verdict.ok .ic2 { background: var(--vert); }
.verdict.ko { background: var(--rouge-c); } .verdict.ko .ic2 { background: var(--rouge); }
.verdict.attente { background: var(--orange-c); } .verdict.attente .ic2 { background: var(--orange); }
.verdict b { font-size: 1.1rem; } .verdict p { margin: 2px 0 0; }
.details { display: grid; gap: 0; } .details div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid #eee; }
.details span { color: var(--gris); } .details b { text-align: right; }
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.45); display: grid; place-items: center; z-index: 50; padding: 16px; }
.modal .carte { width: min(860px, 100%); max-height: 92vh; overflow: auto; }
