/* Carte des 10 ans CCO — même univers que les visuels : bleu nuit, dégradé turquoise→menthe,
   et les trois couleurs de pôles (Infrastructure, Développement, Cloud). Une seule ambiance, sombre. */
@font-face { font-family: "Montserrat"; font-weight: 300; font-display: swap; src: url("fonts/montserrat-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 600; font-display: swap; src: url("fonts/montserrat-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 800; font-display: swap; src: url("fonts/montserrat-latin-800-normal.woff2") format("woff2"); }

:root {
  --night: #081B33;
  --night-2: #0A2445;
  --surface: #0F2C52;
  --surface-2: #133561;
  --line: rgba(255, 255, 255, 0.14);
  --fg: #FFFFFF;
  --fg-soft: rgba(255, 255, 255, 0.82);
  --fg-mute: rgba(255, 255, 255, 0.66);
  --teal: #0AAEBF;
  --mint: #6CFFCB;
  --mid: #3FDCC8;
  --infra: #08AEBE;
  --dev: #A47BD0;      /* violet Développement, éclairci pour rester lisible sur fond nuit */
  --dev-solid: #8B5AB3;
  --cloud: #F9AF3B;
  --danger: #FF8A80;
  --grad: linear-gradient(135deg, #0AAEBF 0%, #3FDCC8 50%, #6CFFCB 100%);
  --font: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --radius: 14px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--fg);
  background: var(--night);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
h1, h2 { text-wrap: balance; margin: 0; }
p { margin: 0; }
a { color: var(--mint); }
a:hover { color: var(--fg); }
:focus-visible { outline: 3px solid var(--mint); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mint { color: var(--mint); }

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

/* Pastilles de pôles */
.dot { display: inline-block; width: 0.75em; height: 0.75em; border-radius: 50%; flex: none; }
.dot-infra { background: var(--infra); }
.dot-dev { background: var(--dev-solid); }
.dot-cloud { background: var(--cloud); }
.dot-all { background: var(--grad); }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 28px;
  border: 0; border-radius: 999px;
  background: var(--grad); color: var(--night);
  font: 800 1rem/1 var(--font); letter-spacing: 0.02em;
  text-decoration: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { color: var(--night); transform: translateY(-1px); box-shadow: 0 8px 28px rgba(63, 220, 200, 0.35); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 0.875rem; }
.btn-ghost { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1px var(--line); }
.btn-ghost:hover { color: var(--fg); background: rgba(255,255,255,0.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.3); }
.btn-danger { background: transparent; color: var(--danger); box-shadow: inset 0 0 0 1px rgba(255,138,128,0.45); }
.btn-danger:hover { color: var(--night); background: var(--danger); box-shadow: none; }

/* En-tête */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(circle at 18% 55%, rgba(16,170,190,0.24) 0%, rgba(16,170,190,0) 45%),
    linear-gradient(180deg, var(--night) 0%, var(--night-2) 100%);
}
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; pointer-events: none;
}
.hero::before { /* anneau de la charte */
  width: 760px; height: 760px; right: -260px; top: -300px;
  border: 60px solid rgba(63, 220, 200, 0.07);
}
.hero::after { /* trois cercles de la charte */
  width: 96px; height: 96px; right: 9%; top: 150px;
  background: var(--cloud); opacity: .6;
  box-shadow: 64px -34px 0 var(--infra), 64px 34px 0 var(--dev-solid);
  filter: saturate(.95);
}
.hero-inner { position: relative; z-index: 1; padding-block: 48px 64px; display: flex; flex-direction: column; gap: 28px; }
.hero-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.logo { width: 170px; }
.years { font-weight: 600; font-size: 0.95rem; letter-spacing: 0.3em; color: var(--fg-mute); }

.ten { display: flex; align-items: center; gap: clamp(14px, 3vw, 32px); margin-top: 8px; }
.ten-num {
  font-weight: 800; font-size: clamp(9rem, 26vw, 20rem); line-height: 0.8; letter-spacing: -0.05em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 40px rgba(16,170,190,0.35));
}
.ten-words h1 { font-weight: 800; font-size: clamp(3rem, 9vw, 7rem); line-height: 0.9; text-transform: uppercase; letter-spacing: 0.02em; }
.ten-sub { font-weight: 300; font-size: clamp(1.4rem, 3.6vw, 2.6rem); color: var(--mint); line-height: 1.15; margin-top: 6px; }

.lede { max-width: 38ch; font-size: clamp(1.1rem, 2vw, 1.4rem); line-height: 1.5; color: var(--fg-soft); }

.poles { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 32px; font-weight: 600; font-size: 1.05rem; }
.poles li { display: flex; align-items: center; gap: 10px; }

.frise { max-width: 720px; width: 100%; }
.frise { position: relative; padding-top: 4px; }
.frise-line { height: 2px; margin: 9px 6px 0; background: linear-gradient(90deg, rgba(108,255,203,0.25), var(--mid)); }
.frise-dots { display: flex; justify-content: space-between; align-items: center; margin-top: -11px; height: 20px; }
.fd { width: 9px; height: 9px; border-radius: 50%; display: block; }
.fd-start { width: 12px; height: 12px; background: var(--teal); }
.fd-end { width: 18px; height: 18px; background: var(--mint); box-shadow: 0 0 0 6px rgba(108,255,203,0.18), 0 0 22px rgba(108,255,203,0.7); }
.frise-labels { display: flex; justify-content: space-between; margin-top: 10px; font-weight: 600; font-size: 0.85rem; letter-spacing: 0.12em; color: var(--fg-mute); }

.btn-hero { align-self: flex-start; margin-top: 4px; }

/* La carte */
.card-section { padding-block: 72px; background: var(--night-2); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; }
h2 { font-weight: 800; font-size: clamp(1.7rem, 3.5vw, 2.4rem); line-height: 1.15; }
.count { font-weight: 600; font-size: 0.95rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mint); }

.board { list-style: none; margin: 0; padding: 0; columns: 3 300px; column-gap: 20px; }
.note {
  break-inside: avoid; margin: 0 0 20px;
  padding: 24px 24px 20px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06) inset, 0 12px 30px rgba(0,0,0,0.25);
  display: flex; flex-direction: column; gap: 18px;
}
.note-infra { background: radial-gradient(circle at 0% 0%, rgba(8,174,190,0.22), transparent 55%), var(--surface); }
.note-dev   { background: radial-gradient(circle at 0% 0%, rgba(139,90,179,0.30), transparent 55%), var(--surface); }
.note-cloud { background: radial-gradient(circle at 0% 0%, rgba(249,175,59,0.20), transparent 55%), var(--surface); }
.note-all   { background: radial-gradient(circle at 0% 0%, rgba(63,220,200,0.20), transparent 55%), var(--surface); }
.note blockquote { margin: 0; }
.note blockquote p { font-size: 1.05rem; line-height: 1.6; color: var(--fg); overflow-wrap: anywhere; }
.note footer { display: flex; align-items: center; gap: 10px; font-size: 0.95rem; }
.note .dot { width: 12px; height: 12px; }
.who { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.who strong { font-weight: 600; overflow-wrap: anywhere; }
.company { color: var(--fg-mute); font-size: 0.875rem; overflow-wrap: anywhere; }

.empty {
  max-width: 560px; padding: 36px; border-radius: var(--radius);
  border: 1px dashed rgba(108,255,203,0.4);
  display: flex; flex-direction: column; gap: 12px; align-items: flex-start;
  color: var(--fg-soft);
}
.empty-title { font-weight: 800; font-size: 1.3rem; color: var(--fg); }
.empty .btn { margin-top: 8px; }

/* Formulaire */
.form-section { padding-block: 72px 88px; background: var(--night); }
.form-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 48px; align-items: start; }
.form-intro { display: flex; flex-direction: column; gap: 14px; color: var(--fg-soft); max-width: 40ch; }
.form-wrap > .flash { grid-column: 2; }
.form { grid-column: 2; display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; border: 0; padding: 0; margin: 0; }
label, legend { font-weight: 600; font-size: 0.95rem; color: var(--fg); padding: 0; }
.opt { font-weight: 300; color: var(--fg-mute); }
input[type="text"], input[type="password"], textarea {
  width: 100%; padding: 14px 16px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--surface);
  color: var(--fg); font: 300 1rem/1.5 var(--font);
  transition: border-color .15s ease, background .15s ease;
}
textarea { resize: vertical; min-height: 140px; }
input:hover, textarea:hover { border-color: rgba(255,255,255,0.3); }
input:focus, textarea:focus { outline: none; border-color: var(--mint); background: var(--surface-2); box-shadow: 0 0 0 3px rgba(108,255,203,0.18); }
[aria-invalid="true"] { border-color: var(--danger); }
.hint { font-size: 0.85rem; color: var(--fg-mute); font-variant-numeric: tabular-nums; }
.hint.over { color: var(--danger); }
.err { font-size: 0.9rem; color: var(--danger); font-weight: 600; }

.choices { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.choice { position: relative; font-weight: 600; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 18px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  font-size: 0.95rem; transition: border-color .15s, background .15s;
}
.choice input:hover + span { border-color: rgba(255,255,255,0.35); }
.choice input:checked + span { border-color: var(--mint); background: var(--surface-2); box-shadow: 0 0 0 1px var(--mint) inset; }
.choice input:focus-visible + span { outline: 3px solid var(--mint); outline-offset: 2px; }

.form .btn { align-self: flex-start; }
.legal { font-size: 0.85rem; line-height: 1.5; color: var(--fg-mute); max-width: 60ch; }
.mail { color: var(--fg-soft); user-select: all; }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.flash { padding: 18px 22px; border-radius: var(--radius); display: flex; flex-direction: column; gap: 4px; }
.flash-ok { background: rgba(108,255,203,0.1); box-shadow: inset 0 0 0 1px rgba(108,255,203,0.45); }
.flash-err { background: rgba(255,138,128,0.1); box-shadow: inset 0 0 0 1px rgba(255,138,128,0.5); color: #FFD3CE; }
.flash-title { font-weight: 800; color: var(--mint); font-size: 1.1rem; }

/* Pied de page */
.site-foot { background: var(--night-2); border-top: 1px solid var(--line); }
.foot-inner { padding-block: 32px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; color: var(--fg-soft); }
.foot-inner strong { color: var(--mint); font-weight: 800; }

/* Administration */
.admin { background: var(--night); }
.login { max-width: 420px; padding-block: 80px; display: flex; flex-direction: column; gap: 24px; }
.login h1 { font-weight: 800; font-size: 1.8rem; }
.login .form { grid-column: auto; }
.admin-bar { background: var(--night-2); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.admin-bar-inner { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; padding-block: 14px; }
.admin-title { font-weight: 600; flex: 1 1 auto; }
.admin-main { padding-block: 40px 80px; display: flex; flex-direction: column; gap: 48px; }
.admin-main h2 { font-size: 1.5rem; margin-bottom: 20px; display: flex; align-items: center; gap: 12px; }
.badge { font-size: 0.9rem; font-weight: 800; min-width: 32px; height: 32px; padding: 0 10px; border-radius: 999px; background: var(--surface-2); color: var(--mint); display: inline-flex; align-items: center; justify-content: center; font-variant-numeric: tabular-nums; }
.muted { color: var(--fg-mute); }
.meta { font-size: 0.8rem; color: var(--fg-mute); }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }
.actions form { margin: 0; }

@media (max-width: 860px) {
  .form-wrap { grid-template-columns: 1fr; gap: 28px; }
  .form, .form-wrap > .flash { grid-column: auto; }
  .hero::after { right: 18%; top: 120px; transform: scale(.7); opacity: .4; }
}
@media (max-width: 560px) {
  .row { grid-template-columns: 1fr; }
  .hero-inner { padding-block: 32px 48px; gap: 22px; }
  .logo { width: 130px; }
  .years { font-size: 0.8rem; }
  .hero::before { width: 480px; height: 480px; right: -220px; top: -200px; border-width: 40px; }
  .hero::after { display: none; }
  .card-section, .form-section { padding-block: 52px; }
  .note { padding: 20px; }
}
