/* ==========================================================================
   Cartes ISMM — interface
   Direction : institutionnelle et maritime. Bleu océan profond + cyan de la carte,
   titres en serif (Instrument Serif), texte en Poppins, vagues douces, mouvement discret.
   ========================================================================== */

@font-face { font-family: 'Poppins'; font-weight: 500; font-display: swap; src: url('../fonts/Poppins-Medium.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 600; font-display: swap; src: url('../fonts/Poppins-SemiBold.woff2') format('woff2'); }
@font-face { font-family: 'Instrument Serif'; font-weight: 400; font-style: normal; font-display: swap; src: url('../fonts/InstrumentSerif-Regular.woff2') format('woff2'); }
@font-face { font-family: 'Instrument Serif'; font-weight: 400; font-style: italic; font-display: swap; src: url('../fonts/InstrumentSerif-Italic.woff2') format('woff2'); }

:root {
  /* encre et surfaces (jamais de noir ni de blanc purs en fond) */
  --ink: #0a2036;
  --ink-2: #3d5166;
  --ink-3: #6b7d8f;
  --ink-4: #98a7b5;
  --line: rgba(10, 32, 54, .09);
  --line-strong: rgba(10, 32, 54, .16);
  --bg: #eff5f9;
  --surface: #fdfeff;
  --surface-2: #f5f9fc;

  /* océan */
  --ocean-950: #06192c;
  --ocean-900: #082a45;
  --ocean-800: #0a3a5e;
  --ocean-700: #0c4f7e;
  --cyan: #00aeef;
  --cyan-soft: rgba(0, 174, 239, .12);
  --brand: #0079ad;
  --brand-dark: #005f88;
  --sand: #f2c474;   /* unique touche chaude, pour l'attention */

  --ok: #14783d;  --ok-bg: #e0f4e8;
  --warn: #8f5600; --warn-bg: #fdf0d3;
  --bad: #ad2219; --bad-bg: #fde6e3;

  --f-display: 'Instrument Serif', 'Times New Roman', serif;
  --f-body: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --r-sm: 10px; --r: 16px; --r-lg: 26px;
  --shadow-sm: 0 1px 2px rgba(6, 25, 44, .06);
  --shadow: 0 1px 2px rgba(6, 25, 44, .05), 0 12px 32px -14px rgba(6, 25, 44, .22);
  --shadow-lg: 0 2px 4px rgba(6, 25, 44, .06), 0 30px 60px -22px rgba(6, 25, 44, .35);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-back: cubic-bezier(.34, 1.56, .64, 1);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; color: var(--ink); font: 400 15px/1.55 var(--f-body);
  background:
    radial-gradient(900px 420px at 100% -80px, rgba(0, 174, 239, .10), transparent 70%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--cyan); color: #04202f; }

h1, h2 { font-family: var(--f-display); font-weight: 400; color: var(--ocean-900); line-height: 1.08; letter-spacing: -.012em; margin: 0 0 .45em; }
h1 { font-size: clamp(2rem, 1.4rem + 2.2vw, 3rem); }
h2 { font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem); }
h3 { font-family: var(--f-body); font-weight: 600; font-size: 1rem; color: var(--ocean-900); margin: 0 0 .4em; }
h1 em, h2 em { font-style: italic; color: var(--brand); }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-dark); }
p { margin: 0 0 .85em; }
code { font-size: .88em; background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: .05em .4em; }
.muted { color: var(--ink-3); }
.small { font-size: .85rem; }
.eyebrow { display: inline-flex; align-items: center; gap: .55rem; font: 600 .72rem/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); margin: 0 0 1rem; }
.eyebrow::before { content: ''; width: 1.6rem; height: 2px; background: currentColor; border-radius: 2px; }

/* icônes */
.ico { width: 1.15em; height: 1.15em; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.2em; }

/* ------------------------------------------------------------------ Barre du haut */
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 1.2rem; padding: .55rem clamp(.8rem, 2vw, 1.6rem);
  background: rgba(6, 25, 44, .9); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .06); color: #fff; }
.brand { display: flex; align-items: center; gap: .7rem; color: #fff; text-decoration: none; white-space: nowrap; }
.brand:hover { color: #fff; }
.brand-logo { width: 38px; height: 38px; border-radius: 50%; background: radial-gradient(circle at 30% 25%, #ffffff, #d7eefa); padding: 4px; object-fit: contain; box-shadow: 0 0 0 2px rgba(0, 174, 239, .55); }
.brand-name { font: 400 1.35rem/1 var(--f-display); letter-spacing: .005em; }
.brand-name small { display: block; font: 500 .62rem/1 var(--f-body); letter-spacing: .16em; text-transform: uppercase; color: #8fc9e8; margin-top: .22rem; }
.topbar nav { display: flex; gap: .2rem; overflow-x: auto; flex: 1; scrollbar-width: none; padding: .15rem 0; }
.topbar nav::-webkit-scrollbar { display: none; }
.topbar nav a { display: inline-flex; align-items: center; gap: .45rem; color: #b9d3e6; text-decoration: none; padding: .5rem .85rem; border-radius: 999px;
  white-space: nowrap; font: 500 .86rem/1 var(--f-body); transition: background .25s var(--ease), color .25s var(--ease); }
.topbar nav a:hover { background: rgba(255, 255, 255, .09); color: #fff; }
.topbar nav a.on { background: var(--cyan); color: #04202f; font-weight: 600; box-shadow: 0 6px 18px -6px rgba(0, 174, 239, .8); }
.topbar nav a.out { margin-left: auto; color: #8fb2ca; }
@media (max-width: 720px) { .brand-name small { display: none; } .topbar nav a .t { display: none; } .topbar nav a.on .t { display: inline; } }

main { max-width: 1040px; margin: 0 auto; padding: clamp(1.1rem, 2.4vw, 2rem) clamp(.9rem, 2vw, 1.4rem) 5rem; }
main.wide { max-width: 1320px; }
main.bare { max-width: none; padding: 0 0 5rem; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 clamp(.9rem, 2vw, 1.4rem); }

/* ------------------------------------------------------------------ Blocs */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-sm); padding: clamp(1rem, 2vw, 1.4rem); margin-bottom: 1.1rem; }
.panel > :last-child { margin-bottom: 0; }
.grid { display: grid; gap: 1.1rem; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.row { display: flex; gap: .65rem; flex-wrap: wrap; align-items: center; }
.row.between { justify-content: space-between; }

.flash { display: flex; gap: .7rem; align-items: flex-start; padding: .8rem 1.05rem; border-radius: var(--r-sm); margin-bottom: 1.1rem; font-weight: 500; border: 1px solid transparent; animation: rise .6s var(--ease) both; }
.flash-ok { background: var(--ok-bg); color: var(--ok); border-color: rgba(20, 120, 61, .18); }
.flash-err { background: var(--bad-bg); color: var(--bad); border-color: rgba(173, 34, 25, .18); }
.flash-warn { background: var(--warn-bg); color: var(--warn); border-color: rgba(143, 86, 0, .2); }

/* ------------------------------------------------------------------ Boutons */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; border: 0; cursor: pointer; text-decoration: none;
  color: #fff; font: 600 .9rem/1 var(--f-body); padding: .85rem 1.25rem; min-height: 46px; border-radius: 12px;
  background: linear-gradient(180deg, #0a8dc6, var(--brand)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 1px 2px rgba(0, 60, 90, .35), 0 8px 18px -8px rgba(0, 121, 173, .8);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s; }
.btn:hover { color: #fff; transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 2px 4px rgba(0, 60, 90, .3), 0 14px 24px -10px rgba(0, 121, 173, .85); }
.btn:active { transform: translateY(1px); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .25); }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible, button:focus-visible { outline: 3px solid rgba(0, 174, 239, .55); outline-offset: 2px; }
.btn-ghost { background: var(--surface); color: var(--brand); box-shadow: inset 0 0 0 1.5px var(--line-strong), var(--shadow-sm); }
.btn-ghost:hover { color: var(--brand-dark); background: #fff; box-shadow: inset 0 0 0 1.5px var(--cyan), var(--shadow-sm); }
.btn-ok { background: linear-gradient(180deg, #1a8f4b, var(--ok)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 1px 2px rgba(0, 60, 30, .35), 0 8px 18px -8px rgba(20, 120, 61, .8); }
.btn-ok:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 14px 24px -10px rgba(20, 120, 61, .85); }
.btn-danger { background: var(--surface); color: var(--bad); box-shadow: inset 0 0 0 1.5px rgba(173, 34, 25, .28); }
.btn-danger:hover { color: var(--bad); background: var(--bad-bg); box-shadow: inset 0 0 0 1.5px rgba(173, 34, 25, .5); }
.btn-light { background: #fff; color: var(--ocean-900); box-shadow: 0 10px 28px -10px rgba(0, 0, 0, .55); }
.btn-light:hover { color: var(--ocean-900); background: #eaf7fd; }
.btn-glass { background: rgba(255, 255, 255, .1); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .28); backdrop-filter: blur(6px); }
.btn-glass:hover { background: rgba(255, 255, 255, .18); }
.btn-sm { padding: .55rem .85rem; min-height: 38px; font-size: .8rem; border-radius: 10px; }
.btn-big { font-size: 1rem; padding: 1.05rem 1.6rem; min-height: 58px; border-radius: 14px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; }

/* ------------------------------------------------------------------ Formulaires */
label { display: block; font: 600 .8rem/1.3 var(--f-body); letter-spacing: .01em; margin: 0 0 .4rem; color: var(--ocean-900); }
input[type=text], input[type=password], input[type=search], input[type=number], select, textarea {
  width: 100%; font: 400 1rem/1.3 var(--f-body); padding: .8rem .95rem; min-height: 50px; color: var(--ink);
  border: 1.5px solid var(--line-strong); border-radius: 12px; background: var(--surface);
  transition: border-color .2s, box-shadow .2s, background .2s; }
input::placeholder, textarea::placeholder { color: var(--ink-4); }
select { appearance: none; -webkit-appearance: none; padding-right: 2.6rem; cursor: pointer;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9' fill='none' stroke='%230a3a5e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m1.5 1.5 5.5 6 5.5-6'/%3E%3C/svg%3E") no-repeat right 1rem center; }
textarea { min-height: 150px; resize: vertical; }
input:hover, select:hover, textarea:hover { border-color: rgba(0, 121, 173, .45); }
input:focus, select:focus, textarea:focus { border-color: var(--cyan); box-shadow: 0 0 0 4px var(--cyan-soft); outline: none; }
input[type=checkbox] { width: 1.15rem; height: 1.15rem; accent-color: var(--brand); }
.field { margin-bottom: 1.05rem; }
.field .hint { font-size: .8rem; color: var(--ink-3); margin-top: .3rem; }
.field.err input, .field.err select { border-color: var(--bad); box-shadow: 0 0 0 4px var(--bad-bg); }
.field .errmsg { color: var(--bad); font-size: .82rem; margin-top: .3rem; font-weight: 600; }
.cols3 { display: grid; grid-template-columns: 1fr 1.5fr 1fr; gap: .6rem; }
.cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
@media (max-width: 520px) { .cols2 { grid-template-columns: 1fr; } }
input[type=range] { width: 100%; accent-color: var(--brand); min-height: 32px; padding: 0; border: 0; box-shadow: none; }

/* ------------------------------------------------------------------ Pastilles */
.badge { display: inline-flex; align-items: center; gap: .4rem; padding: .22rem .7rem; border-radius: 999px; font: 600 .72rem/1.2 var(--f-body); white-space: nowrap; }
.badge::before { content: ''; width: .42rem; height: .42rem; border-radius: 50%; background: currentColor; opacity: .85; }
.b-ok { background: var(--ok-bg); color: var(--ok); }
.b-wait { background: var(--warn-bg); color: var(--warn); }
.b-bad { background: var(--bad-bg); color: var(--bad); }
.b-info { background: #dff1fb; color: var(--brand-dark); }
.b-off { background: #e8edf2; color: var(--ink-3); }

/* ------------------------------------------------------------------ Animations */
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes drift { from { transform: translateX(-3%); } to { transform: translateX(3%); } }
@keyframes pop { 0% { transform: scale(.6); opacity: 0; } 60% { transform: scale(1.08); opacity: 1; } 100% { transform: scale(1); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
.reveal { opacity: 0; animation: rise .8s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 70ms + 60ms); }

/* ------------------------------------------------------------------ Accueil : héros */
.hero { position: relative; isolation: isolate; color: #fff; overflow: hidden; padding: clamp(2.2rem, 5vw, 4.2rem) 0 clamp(6.5rem, 10vw, 8.5rem);
  background:
    radial-gradient(900px 480px at 88% -12%, rgba(0, 174, 239, .42), transparent 62%),
    radial-gradient(700px 380px at -5% 105%, rgba(12, 79, 126, .9), transparent 62%),
    linear-gradient(162deg, var(--ocean-950), var(--ocean-800) 68%, var(--ocean-700)); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 2rem; align-items: center; }
.hero h1 { color: #fff; font-size: clamp(2.5rem, 1.4rem + 4.6vw, 4.9rem); line-height: .98; letter-spacing: -.02em; margin-bottom: .35em; }
.hero h1 em { color: var(--sand); }
.hero .lead { font-size: clamp(1rem, .95rem + .3vw, 1.15rem); color: #c3dcec; max-width: 34rem; margin-bottom: 1.6rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-seal { position: relative; justify-self: center; width: min(100%, 300px); aspect-ratio: 1; display: grid; place-items: center; }
.hero-seal::before, .hero-seal::after { content: ''; position: absolute; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .16); }
.hero-seal::before { inset: -9%; } .hero-seal::after { inset: -22%; border-color: rgba(255, 255, 255, .08); }
.hero-seal .disc { width: 78%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 30% 22%, #fff, #d5ecf8 62%, #a9d6ee);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6), inset 0 -8px 20px rgba(0, 100, 150, .2), 0 0 0 8px rgba(255, 255, 255, .08); }
.hero-seal img { width: 62%; height: auto; filter: drop-shadow(0 6px 10px rgba(6, 25, 44, .25)); }
@media (max-width: 820px) { .hero-grid { grid-template-columns: 1fr; } .hero-seal { display: none; } }

.waves { position: absolute; left: -4%; bottom: -1px; width: 108%; height: clamp(90px, 14vw, 170px); z-index: -1; animation: drift 14s ease-in-out infinite alternate; }
.waves .w1 { fill: rgba(255, 255, 255, .07); }
.waves .w2 { fill: rgba(0, 174, 239, .16); }
.waves .w3 { fill: var(--bg); }
.waves.slow { animation-duration: 22s; animation-direction: alternate-reverse; }

/* Statistiques (chevauchent le héros) */
.kpis { position: relative; z-index: 2; margin-top: calc(-1 * clamp(3.4rem, 6vw, 4.6rem)); display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .9rem; }
.kpi { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1.1rem 1.15rem 1rem; box-shadow: var(--shadow); overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.kpi:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.kpi .ico { width: 1.35rem; height: 1.35rem; color: var(--cyan); margin-bottom: .55rem; }
.kpi b { display: block; font: 400 clamp(2.2rem, 1.6rem + 2vw, 3.1rem)/1 var(--f-display); color: var(--ocean-900); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kpi span { display: block; color: var(--ink-3); font-size: .8rem; margin-top: .3rem; }
.kpi.hot { background: linear-gradient(180deg, #fffaf0, var(--surface)); border-color: rgba(242, 196, 116, .55); }
.kpi.hot .ico { color: #c98a14; } .kpi.hot b { color: #8f5600; }
.kpi.good::after { content: ''; position: absolute; inset: auto 0 0 0; height: 3px; background: linear-gradient(90deg, var(--cyan), #5fd3a0); }

/* Avancement */
.progress-card { margin: 1.6rem 0 2.2rem; display: grid; grid-template-columns: auto 1fr; gap: 1.2rem 1.6rem; align-items: center; }
.progress-card .pct { font: 400 clamp(2.6rem, 2rem + 2.2vw, 3.6rem)/1 var(--f-display); color: var(--ocean-900); }
.progress-card .pct small { font-size: .5em; color: var(--ink-3); }
.meter { height: 12px; border-radius: 99px; background: #dbe8f1; overflow: hidden; }
.meter > i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--cyan), #3ad0a5); transition: width 1.2s var(--ease) .3s; box-shadow: 0 0 18px rgba(0, 174, 239, .55); }
.progress-card p { margin: .5rem 0 0; color: var(--ink-3); font-size: .85rem; }
@media (max-width: 560px) { .progress-card { grid-template-columns: 1fr; } }

/* Déroulement */
.pipeline { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(5, minmax(0, 1fr)); position: relative; }
.pipeline::before { content: ''; position: absolute; left: 6%; right: 6%; top: 27px; height: 2px; background: repeating-linear-gradient(90deg, var(--line-strong) 0 8px, transparent 8px 16px); z-index: 0; }
.step { position: relative; z-index: 1; display: flex; flex-direction: column; gap: .15rem; text-decoration: none; color: inherit; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 1.1rem 1.1rem 1rem; box-shadow: var(--shadow-sm); transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s; height: 100%; }
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(0, 174, 239, .55); color: inherit; }
.step .num { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; margin-bottom: .6rem; color: var(--brand); background: var(--cyan-soft);
  box-shadow: 0 0 0 5px var(--bg); transition: background .3s, color .3s; }
.step:hover .num { background: var(--cyan); color: #04202f; }
.step .num .ico { width: 1.3rem; height: 1.3rem; }
.step h3 { margin: 0; font-size: .98rem; }
.step p { margin: .2rem 0 .8rem; color: var(--ink-3); font-size: .8rem; line-height: 1.45; flex: 1; }
.step .chip { align-self: flex-start; font: 600 .72rem/1 var(--f-body); padding: .38rem .7rem; border-radius: 99px; background: #e8edf2; color: var(--ink-3); }
.step .chip.ok { background: var(--ok-bg); color: var(--ok); }
.step .chip.todo { background: var(--warn-bg); color: var(--warn); }
.step .go { position: absolute; right: 1rem; top: 1.2rem; color: var(--ink-4); transition: transform .4s var(--ease), color .3s; }
.step:hover .go { transform: translateX(4px); color: var(--brand); }
@media (max-width: 1020px) { .pipeline { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pipeline::before { display: none; } }
@media (max-width: 560px) { .pipeline { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ Connexion */
body.login-page { background: var(--ocean-950); }
.split { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
.split-art { position: relative; isolation: isolate; overflow: hidden; color: #fff; display: flex; flex-direction: column; justify-content: center; padding: clamp(2rem, 6vw, 5rem);
  background:
    radial-gradient(700px 420px at 90% 0%, rgba(0, 174, 239, .45), transparent 62%),
    radial-gradient(600px 400px at 0% 100%, rgba(12, 79, 126, .9), transparent 62%),
    linear-gradient(160deg, var(--ocean-950), var(--ocean-800) 70%, var(--ocean-700)); }
.split-art .seal { width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 1.8rem; background: radial-gradient(circle at 30% 22%, #fff, #d5ecf8 62%, #a9d6ee); box-shadow: 0 18px 40px -14px rgba(0, 0, 0, .6), 0 0 0 6px rgba(255, 255, 255, .08); }
.split-art .seal img { width: 62%; }
.split-art h1 { color: #fff; font-size: clamp(2.6rem, 1.6rem + 4vw, 4.6rem); line-height: .98; letter-spacing: -.02em; }
.split-art h1 em { color: var(--sand); }
.split-art p { color: #bcd7e9; max-width: 28rem; }
.split-art .waves { height: 150px; }
.split-form { background: var(--bg); display: flex; align-items: center; justify-content: center; padding: 2rem clamp(1rem, 4vw, 3rem); }
.split-form .box { width: 100%; max-width: 400px; animation: rise .9s var(--ease) both; }
.split-form h2 { font-size: 2.1rem; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split-art { padding: 2rem 1.4rem 5.5rem; } .split-art .seal { width: 64px; height: 64px; margin-bottom: 1rem; } .split-art h1 { font-size: 2.4rem; } .split-art p { display: none; } .split-form { align-items: flex-start; margin-top: -3rem; position: relative; z-index: 3; background: transparent; } .split-form .box { background: var(--surface); padding: 1.6rem; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); } }
.login { max-width: 420px; margin: 7vh auto 0; }

/* ------------------------------------------------------------------ Tableaux */
.tablewrap { overflow-x: auto; border-radius: var(--r); box-shadow: var(--shadow); background: var(--surface); border: 1px solid var(--line); }
table.list { width: 100%; border-collapse: collapse; background: var(--surface); }
table.list th { text-align: left; font: 600 .68rem/1 var(--f-body); text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); padding: .95rem .8rem; background: var(--surface-2); border-bottom: 1px solid var(--line); white-space: nowrap; position: sticky; top: 0; }
table.list td { padding: .7rem .8rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.list tr:last-child td { border-bottom: 0; }
table.list tbody tr { transition: background .2s; }
table.list tbody tr:hover td { background: #f1f8fc; }
.thumb { width: 40px; height: 57px; border-radius: 8px; object-fit: cover; background: #d9e8f2; display: block; box-shadow: 0 0 0 2px #fff, 0 2px 8px rgba(6, 25, 44, .25); cursor: zoom-in; }
.thumb.empty { display: grid; place-items: center; color: var(--ink-4); font-size: .62rem; text-align: center; box-shadow: inset 0 0 0 1.5px var(--line-strong); background: var(--surface-2); cursor: default; }
.flags { margin: .25rem 0 0; padding: 0; list-style: none; font-size: .78rem; color: var(--bad); }

/* ------------------------------------------------------------------ Saisie étudiant */
body.kiosk { background: var(--bg); }
.k-head { position: relative; isolation: isolate; overflow: hidden; color: #fff; text-align: center; padding: clamp(1.6rem, 4vw, 2.6rem) 1rem clamp(5rem, 9vw, 6.5rem);
  background:
    radial-gradient(700px 360px at 85% -20%, rgba(0, 174, 239, .45), transparent 62%),
    linear-gradient(165deg, var(--ocean-950), var(--ocean-800) 70%, var(--ocean-700)); }
.k-head .seal { width: 64px; height: 64px; margin: 0 auto .8rem; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 30% 22%, #fff, #d5ecf8 62%, #a9d6ee); box-shadow: 0 12px 28px -10px rgba(0, 0, 0, .6), 0 0 0 5px rgba(255, 255, 255, .08); }
.k-head .seal img { width: 62%; }
.k-head h1 { color: #fff; font-size: clamp(2rem, 1.4rem + 2.6vw, 3.2rem); margin-bottom: .25em; }
.k-head h1 em { color: var(--sand); }
.k-head p { color: #bcd7e9; margin: 0 auto; max-width: 30rem; }
.kiosk-wrap { max-width: 1060px; margin: calc(-1 * clamp(3rem, 6vw, 4.2rem)) auto 0; padding: 0 1rem 3rem; display: grid; gap: 1.4rem; position: relative; z-index: 2; }
@media (min-width: 900px) { .kiosk-wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } .kiosk-preview { position: sticky; top: 1.2rem; } }
.kiosk-preview { perspective: 1100px; }
.kiosk-preview .card-box { border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-lg); transition: transform .5s var(--ease), box-shadow .5s var(--ease); transform-style: preserve-3d; will-change: transform; }
.kiosk-preview .cap { text-align: center; color: var(--ink-3); font-size: .8rem; margin: .9rem 0 0; }
.kiosk-wrap .panel { box-shadow: var(--shadow); border-radius: var(--r-lg); padding: clamp(1.1rem, 3vw, 1.8rem); }
.bigok { text-align: center; padding: clamp(1.6rem, 4vw, 2.6rem) 1.2rem; }
.bigok .tick { width: 96px; height: 96px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); display: grid; place-items: center; margin: 0 auto 1.1rem; animation: pop .7s var(--ease-back) both; box-shadow: 0 0 0 10px rgba(20, 120, 61, .08); }
.bigok .tick svg { width: 48px; height: 48px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .6s var(--ease) .35s forwards; }
.bigok h1 { font-size: clamp(2rem, 1.5rem + 2vw, 2.8rem); }

/* ------------------------------------------------------------------ Photos */
.drop { display: block; border: 2px dashed rgba(0, 121, 173, .4); border-radius: var(--r); background: linear-gradient(180deg, #f4fafe, #eaf5fb); padding: 2rem 1rem; text-align: center; cursor: pointer; transition: background .3s, border-color .3s, transform .3s var(--ease); }
.drop:hover { border-color: var(--cyan); transform: translateY(-1px); }
.drop.over { background: #d9f0fb; border-color: var(--cyan); transform: scale(1.01); }
.drop strong { color: var(--brand-dark); font-size: 1.05rem; }
.drop .muted { font-weight: 400; }
.uplist { margin: .9rem 0 0; padding: 0; list-style: none; font-size: .85rem; max-height: 230px; overflow: auto; }
.uplist li { display: flex; justify-content: space-between; gap: .6rem; padding: .35rem 0; border-bottom: 1px solid var(--line); }
.uplist .okc { color: var(--ok); font-weight: 600; } .uplist .errc { color: var(--bad); font-weight: 600; }
.progress { height: 10px; background: #dbe8f1; border-radius: 99px; overflow: hidden; margin-top: .7rem; }
.progress > i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--cyan), #3ad0a5); transition: width .25s; border-radius: inherit; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 1rem; }
.ph { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-sm); position: relative; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.ph:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.ph img.pic { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block; background: #d9e8f2; cursor: zoom-in; }
.ph .meta { padding: .6rem .65rem .7rem; font-size: .78rem; }
.ph .num { position: absolute; left: .5rem; top: .5rem; background: rgba(6, 25, 44, .82); backdrop-filter: blur(4px); color: #fff; border-radius: 99px; padding: .1rem .6rem; font: 600 .72rem/1.5 var(--f-body); }
.ph.off img.pic { opacity: .35; filter: grayscale(1); }
.ph .acts { display: flex; gap: .35rem; margin-top: .5rem; flex-wrap: wrap; }

/* ------------------------------------------------------------------ Association */
.pairs { display: grid; gap: .85rem; }
.pair { display: grid; grid-template-columns: 44px minmax(0, 1fr) 30px minmax(0, 1.1fr) auto; gap: .9rem; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: .85rem 1rem; box-shadow: var(--shadow-sm); transition: box-shadow .3s, transform .4s var(--ease); }
.pair:hover { box-shadow: var(--shadow); }
.pair.locked { border-color: rgba(20, 120, 61, .3); background: #f4fcf7; }
.pair .idx { font: 400 1.7rem/1 var(--f-display); color: var(--ink-4); text-align: center; }
.pair .who b { display: block; font: 600 1.02rem/1.25 var(--f-body); color: var(--ocean-900); }
.pair .who span { color: var(--ink-3); font-size: .82rem; }
.pair .arrow { color: var(--cyan); font-size: 1.4rem; text-align: center; }
.pair .shot { display: flex; align-items: center; gap: .8rem; }
.pair .shot img { width: 92px; height: 122px; object-fit: cover; border-radius: 10px; background: #d9e8f2; cursor: zoom-in; }
.pair .shot .frame { width: 92px; aspect-ratio: 60.7 / 86.9; border-radius: 12px; border: 2px solid var(--cyan); background-repeat: no-repeat; background-color: #d9e8f2; cursor: zoom-in; flex: none; box-shadow: 0 8px 18px -8px rgba(0, 121, 173, .6); }
.pair .shot .none { width: 92px; height: 122px; border: 2px dashed var(--line-strong); border-radius: 12px; display: grid; place-items: center; color: var(--ink-3); font-size: .75rem; text-align: center; padding: .3rem; }
.pair .shot small { color: var(--ink-3); }
.pair .acts { display: flex; flex-direction: column; gap: .4rem; align-items: stretch; }
@media (max-width: 860px) {
  .pair { grid-template-columns: 32px 1fr; }
  .pair .arrow { display: none; }
  .pair .shot { grid-column: 1 / -1; }
  .pair .acts { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
}
.stickybar { position: sticky; bottom: 0; background: rgba(253, 254, 255, .9); backdrop-filter: blur(10px); border-top: 1px solid var(--line);
  padding: .8rem 1rem; margin: 1.2rem -1rem -5rem; display: flex; gap: .7rem; flex-wrap: wrap; align-items: center; justify-content: space-between; z-index: 5; }
.tray { background: var(--surface-2); border: 1.5px dashed var(--line-strong); border-radius: var(--r); padding: .9rem 1rem; margin-top: 1.1rem; }
.tray h3 { font-size: .9rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { display: inline-flex; align-items: center; gap: .5rem; background: var(--surface); border: 1px solid var(--line); border-radius: 99px; padding: .28rem .8rem .28rem .32rem; font-size: .82rem; }
.chip img { width: 28px; height: 38px; border-radius: 6px; object-fit: cover; }
.chip button { border: 0; background: none; color: var(--brand); font: 600 .82rem var(--f-body); cursor: pointer; }

/* ------------------------------------------------------------------ Cadrage, fenêtres */
.cropper { position: relative; width: 280px; max-width: 100%; aspect-ratio: 60.7 / 86.9; overflow: hidden; border-radius: 16px; background: #0c2234; touch-action: none; cursor: grab; margin: 0 auto; outline: 3px solid var(--cyan); box-shadow: var(--shadow-lg); }
.cropper img { position: absolute; left: 0; top: 0; max-width: none; user-select: none; -webkit-user-drag: none; transform-origin: 0 0; }
.cropper:active { cursor: grabbing; }
.lightbox { position: fixed; inset: 0; background: rgba(4, 14, 24, .9); backdrop-filter: blur(6px); display: none; align-items: center; justify-content: center; z-index: 100; padding: 1rem; }
.lightbox.on { display: flex; animation: rise .35s var(--ease); }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 12px; box-shadow: var(--shadow-lg); }
.modal { position: fixed; inset: 0; background: rgba(4, 14, 24, .7); backdrop-filter: blur(5px); z-index: 90; display: flex; align-items: center; justify-content: center; padding: 1rem; overflow: auto; }
.modal[hidden] { display: none; }
.modal-box { background: var(--surface); border-radius: var(--r-lg); padding: 1.4rem; width: 100%; max-width: 390px; max-height: 100%; overflow: auto; box-shadow: var(--shadow-lg); animation: rise .5s var(--ease); }
.modal-box .cropper { width: 300px; }

.empty-note { text-align: center; color: var(--ink-3); padding: 2.6rem 1rem; }
.sheet-preview { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.2rem; }
.sheet-preview .card-box { border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); }
.print-only { display: none; }

/* ------------------------------------------------------------------ Impression / mouvement réduit */
@media print {
  body { background: #fff; }
  .topbar, .no-print, .flash { display: none !important; }
  .print-only { display: block; }
  main { max-width: none; padding: 0; margin: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; }
}
