/* ==========================================================================
   KIRO — feuille de style du site
   Reprend l'identité du site historique (fond « réseau » sombre, gros logo,
   Montserrat en capitales, sous-titres en Roboto Slab italique, blocs gris
   arrondis) en la modernisant. Signature : les deux traits obliques bleu et
   rouge du « K » du logo, utilisés comme soulignement des titres.
   S'appuie sur la grille et les utilitaires de Bootstrap 5.1.
   ========================================================================== */

@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-latin-wght-normal.311d352d9323.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-latin-wght-italic.7921052ef928.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Roboto Slab";
  src: url("../fonts/roboto-slab-latin-wght-normal.fee1dc1edf94.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --blue: #1ba6d3;
  --blue-dark: #1286ad;
  --red: #e62e58;
  --red-dark: #c41d45;
  --dark: #202226;
  --text: #24272c;
  --muted: #5f6672;
  --line: #e1e4e9;
  --bg-soft: #f3f4f6;
  --box: #ebedf0;
  --radius: 10px;
  --title: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --slab: "Roboto Slab", Georgia, serif;
  --bs-body-font-family: var(--title);
  --bs-body-color: var(--text);
}

/* --- Base ---------------------------------------------------------------- */

html { scroll-padding-top: 5.5rem; }
body {
  font-family: var(--title);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
::selection { background: rgba(27, 166, 211, 0.22); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--title); font-weight: 700; color: inherit; line-height: 1.25; }
strong { font-weight: 700; }
a { color: var(--blue-dark); text-underline-offset: 0.18em; }
a:hover { color: var(--red); }
code { color: var(--text); font-size: 0.92em; }

.slab { font-family: var(--slab); font-style: italic; font-weight: 400; }
.muted { color: var(--muted); }
.nocaps { text-transform: none; }

/* Les deux traits du « K » : bleu puis rouge, inclinés. */
.kiro-stripes { display: block; width: 4.5rem; height: 6px; margin: 1rem auto 0; background: linear-gradient(90deg, var(--blue) 0 50%, var(--red) 50% 100%); transform: skewX(-28deg); border-radius: 1px; }

/* --- Boutons ------------------------------------------------------------- */

.btn-k {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.6rem;
  border: 2px solid transparent;
  border-radius: 6px;
  font-family: var(--title);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
}
.btn-k:hover { transform: translateY(-1px); }
.btn-k-primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn-k-primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }
.btn-k-ghost { border-color: rgba(255, 255, 255, 0.75); color: #fff; background: transparent; }
.btn-k-ghost:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.btn-k-outline { border-color: var(--text); color: var(--text); background: transparent; }
.btn-k-outline:hover { background: var(--text); color: #fff; }
.btn-k-small { padding: 0.55rem 1rem; font-size: 0.78rem; }
.btn-k-danger { border-color: var(--red); color: var(--red-dark); background: transparent; }
.btn-k-danger:hover { background: var(--red); color: #fff; }
@media (max-width: 575px) { .btn-k-block-sm { width: 100%; } }
.link-arrow { font-weight: 600; text-decoration: none; }
.link-arrow::after { content: " →"; }

/* --- Navigation ---------------------------------------------------------- */

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  background: var(--dark);
  transition: background-color 0.25s, box-shadow 0.25s;
}
.site-nav .container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; min-height: 4.25rem; transition: min-height 0.25s; }
.site-nav .brand img { height: 1.9rem; width: auto; transition: height 0.25s; }
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 6px;
  color: #fff;
  font-family: var(--title);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.5rem 0.85rem;
}
.nav-links { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; gap: 0.15rem; }
.nav-links a, .nav-links button {
  display: block;
  padding: 0.5rem 0.8rem;
  color: #fff;
  font-family: var(--title);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  background: none;
  border: 0;
}
.nav-links a:hover, .nav-links button:hover, .nav-links a[aria-current="page"] { color: var(--red); }
.nav-links .nav-cta { margin-left: 0.6rem; background: var(--blue); border-radius: 6px; padding: 0.55rem 1rem; }
.nav-links .nav-cta:hover, .nav-links .nav-cta[aria-current="page"] { background: var(--blue-dark); color: #fff; }
.nav-links form { margin: 0; }

/* Sur l'accueil, la barre est transparente au-dessus du bandeau puis s'opacifie. */
@media (min-width: 992px) {
  .page-home .site-nav:not(.is-scrolled) { background: transparent; }
  .page-home .site-nav:not(.is-scrolled) .container { min-height: 5.5rem; }
  .page-home .site-nav:not(.is-scrolled) .brand img { height: 2.4rem; }
  .site-nav.is-scrolled { box-shadow: 0 2px 14px rgba(0, 0, 0, 0.25); }
  .site-nav .nav-panel { display: block !important; height: auto !important; }
}
@media (max-width: 991px) {
  .nav-toggle { display: inline-block; }
  .site-nav .nav-panel { flex-basis: 100%; }
  .site-nav .nav-panel:not(.show) { display: none; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 0; padding: 0.25rem 0 1rem; }
  .nav-links a, .nav-links button { padding: 0.8rem 0; text-align: left; width: 100%; border-top: 1px solid rgba(255, 255, 255, 0.1); }
  .nav-links .nav-cta { margin: 0.75rem 0 0; text-align: center; padding: 0.85rem; border-top: 0; }
}

.announce { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1040; background: var(--red); color: #fff; text-align: center; font-weight: 600; font-size: 0.88rem; padding: 0.5rem 1rem; }
body.has-banner { padding-bottom: var(--banner-h, 2.6rem); }

/* --- Fond « réseau » (bandeau d'accueil, en-têtes, pied de page) ----------- */

.masthead {
  position: relative;
  color: #fff;
  text-align: center;
  background: #1c1d20 url("../assets/img/background.bf095006f36f.jpg") center / cover no-repeat;
}
.masthead::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 21, 24, 0.55) 0%, rgba(20, 21, 24, 0.35) 45%, rgba(20, 21, 24, 0.82) 100%); }
.masthead > * { position: relative; }

/* Bandeau d'accueil : accroche à gauche, fiche de l'épreuve à droite, bas coupé
   en oblique et souligné des deux traits du logo. */
.hero-wrap { --cut: 4.5rem; position: relative; margin-bottom: 1.5rem; }
.hero { padding: 9.5rem 0 calc(var(--cut) + 3.5rem); text-align: left; clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), 0 100%); }
.hero::before { background: linear-gradient(90deg, rgba(20, 21, 24, 0.93) 0%, rgba(20, 21, 24, 0.74) 52%, rgba(20, 21, 24, 0.4) 100%); }
/* Les deux traits suivent la coupe : même pente, juste en dessous. */
.hero-wrap::before, .hero-wrap::after { content: ""; position: absolute; left: 0; right: 0; top: calc(100% - var(--cut)); height: calc(var(--cut) + 1.6rem); pointer-events: none; }
.hero-wrap::before { background: var(--blue); clip-path: polygon(0 calc(var(--cut) + 0.45rem), 100% 0.45rem, 100% 0.85rem, 0 calc(var(--cut) + 0.85rem)); }
.hero-wrap::after { background: var(--red); clip-path: polygon(0 calc(var(--cut) + 1.1rem), 100% 1.1rem, 100% 1.5rem, 0 calc(var(--cut) + 1.5rem)); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 4rem; align-items: center; }
.hero-grid.is-solo { grid-template-columns: minmax(0, 1fr); max-width: 52rem; }
.hero-kicker { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue); margin: 0 0 1.1rem; }
.hero h1 { font-size: clamp(2.6rem, 5.6vw, 4.3rem); font-weight: 800; line-height: 1.02; letter-spacing: -0.01em; text-transform: uppercase; margin: 0; }
.c-blue { color: var(--blue); }
.c-red { color: var(--red); }
.hero-sub { font-family: var(--slab); font-style: italic; font-size: clamp(1.1rem, 2vw, 1.32rem); line-height: 1.55; color: rgba(255, 255, 255, 0.86); margin: 1.4rem 0 2.1rem; max-width: 33rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; }

.event-card { background: rgba(20, 21, 24, 0.8); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 12px; padding: 1.6rem 1.75rem 0.6rem; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.event-title { margin: 0; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.countdown { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6rem; margin: 0.9rem 0 0.45rem; }
.countdown > div { background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 10px; text-align: center; padding: 0.8rem 0 0.6rem; }
.countdown b { display: block; font-size: 2.5rem; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.countdown span { display: block; margin-top: 0.4rem; font-size: 0.66rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 255, 255, 0.65); }
.countdown-caption { margin: 0 0 0.4rem; font-family: var(--slab); font-style: italic; font-size: 0.95rem; color: rgba(255, 255, 255, 0.7); }
.event-facts { margin: 0; }
.event-facts > div { display: grid; grid-template-columns: 7.25rem minmax(0, 1fr); gap: 0.75rem; padding: 0.75rem 0; border-top: 1px solid rgba(255, 255, 255, 0.12); }
.event-facts dt { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue); padding-top: 0.2rem; }
.event-facts dd { margin: 0; font-weight: 600; line-height: 1.45; }
.event-facts small { display: block; font-size: 0.85rem; font-weight: 400; color: rgba(255, 255, 255, 0.65); }
.dot { display: inline-block; width: 0.55rem; height: 0.55rem; border-radius: 50%; margin-right: 0.45rem; vertical-align: 0.1em; background: #aaa; }
.dot-open { background: #3ecf7a; box-shadow: 0 0 0 3px rgba(62, 207, 122, 0.25); }
.dot-soon { background: #f0b429; }

@media (max-width: 991px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 2.25rem; }
  .event-card { max-width: 34rem; }
}
@media (max-width: 575px) {
  .hero-wrap { --cut: 1.9rem; margin-bottom: 1rem; }
  .hero { padding-top: 6.75rem; padding-bottom: calc(var(--cut) + 2.25rem); }
  .hero::before { background: linear-gradient(180deg, rgba(20, 21, 24, 0.78) 0%, rgba(20, 21, 24, 0.9) 100%); }
  .hero-kicker { font-size: 0.7rem; margin-bottom: 0.85rem; }
  .hero h1 { font-size: clamp(2.3rem, 11.5vw, 2.9rem); }
  .hero-sub { margin: 1rem 0 1.5rem; }
  .hero-actions .btn-k { width: 100%; }
  .hero-actions .hide-sm { display: none; }
  .event-card { padding: 1.2rem 1.15rem 0.4rem; }
  .countdown b { font-size: 2rem; }
  .event-facts > div { grid-template-columns: 6.25rem minmax(0, 1fr); gap: 0.6rem; padding: 0.65rem 0; }
  .event-facts dd { font-size: 0.95rem; }
}

/* --- Sections ----------------------------------------------------------- */

.section { padding: 5.5rem 0; }
.section-soft { background: var(--bg-soft); }
.section-head { text-align: center; margin-bottom: 3rem; }
.section-head h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); text-transform: uppercase; letter-spacing: 0.02em; margin: 0; }
.section-head .slab { display: block; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.3rem); margin-top: 0.6rem; }
@media (max-width: 767px) { .section { padding: 3.75rem 0; } .section-head { margin-bottom: 2.25rem; } }

.prose { max-width: 46rem; }
.prose > :last-child { margin-bottom: 0; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li { margin-bottom: 0.35rem; }
.center-prose { margin: 0 auto; }
.lead-text { font-size: 1.1rem; line-height: 1.8; }

.box { background: var(--box); border-radius: var(--radius); padding: 1.6rem; height: 100%; }
.box-white { background: #fff; border-radius: var(--radius); padding: 1.6rem; height: 100%; }
.box h3, .box-white h3 { position: relative; font-size: 1.15rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--dark); margin: 0 0 1.1rem; padding-bottom: 0.8rem; border-bottom: 1px solid #e6e9ed; }
/* Trait de couleur sous le titre : distingue le titre du texte en gras des cartes. */
.box h3::after, .box-white h3::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 2.5rem; height: 3px; border-radius: 2px; background: var(--blue); }
.row > :nth-child(3n + 2) > .box-white h3::after { background: var(--red); }
.row > :nth-child(3n) > .box-white h3::after { background: var(--dark); }
.box-white .prose, .box .prose { color: var(--muted); font-size: 0.96rem; }
.box-white .prose strong, .box .prose strong { color: var(--text); font-weight: 600; }

/* Points forts du concours. */
.highlights { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 2.75rem; }
.highlight { text-align: center; padding: 1.5rem 1rem; border-radius: var(--radius); background: var(--bg-soft); }
.highlight .big { display: block; font-size: 2.1rem; font-weight: 800; color: var(--blue); line-height: 1.15; }
.highlight:nth-child(2) .big { color: var(--red); }
.highlight .small { color: var(--muted); font-size: 0.95rem; }
@media (max-width: 767px) { .highlights { grid-template-columns: 1fr; } }

/* Comment ça marche : un parcours relié, du bleu au rouge, chaque étape datée. */
.path { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.75rem; counter-reset: step; position: relative; text-align: center; }
.path::before { content: ""; position: absolute; left: 12.5%; right: 12.5%; top: 2.1rem; height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--blue), var(--red)); }
.path li { counter-increment: step; position: relative; display: flex; flex-direction: column; align-items: center; }
.path li::before { content: counter(step); display: grid; place-items: center; width: 4.4rem; height: 4.4rem; border-radius: 50%; background: #fff; border: 4px solid var(--blue); box-shadow: 0 0 0 6px var(--bg-soft); font-size: 1.5rem; font-weight: 800; margin-bottom: 1rem; }
.path li:nth-child(2)::before { border-color: #5d84c0; }
.path li:nth-child(3)::before { border-color: #a25a8e; }
.path li:nth-child(4)::before { border-color: var(--red); }
.path .when { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue-dark); }
.path li:last-child .when { color: var(--red-dark); }
.path h3 { font-size: 1.05rem; text-transform: uppercase; letter-spacing: 0.04em; margin: 0.45rem 0 0.45rem; }
.path p { margin: 0; color: var(--muted); font-size: 0.95rem; max-width: 17rem; }
@media (max-width: 767px) {
  .path { grid-template-columns: minmax(0, 1fr); gap: 1.6rem; text-align: left; }
  .path::before { left: 1.45rem; right: auto; top: 1.5rem; bottom: 3rem; width: 4px; height: auto; background: linear-gradient(180deg, var(--blue), var(--red)); }
  .path li { display: grid; grid-template-columns: 3.1rem minmax(0, 1fr); column-gap: 1rem; align-items: start; }
  .path li::before { grid-row: 1 / span 3; width: 3.1rem; height: 3.1rem; font-size: 1.15rem; margin: 0; }
  .path h3 { margin: 0.2rem 0 0.3rem; }
  .path p { max-width: none; }
}

/* Planning : deux pages de calendrier et le programme de la journée. */
.agenda { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 2.5rem; }
.agenda.has-programme { grid-template-columns: 22rem minmax(0, 1fr); justify-items: stretch; gap: 3.5rem; align-items: start; }
.cal-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 11rem)); gap: 1.1rem; }
.cal-item { display: flex; flex-direction: column; gap: 0.75rem; }
.cal { margin: 0; display: flex; flex-direction: column; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(20, 21, 24, 0.07); }
.cal .m { background: var(--blue); color: #fff; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; padding: 0.45rem; }
.cal-item.is-red .cal .m { background: var(--red); }
.cal .d { font-size: 4.2rem; font-weight: 800; line-height: 1; padding: 0.85rem 0 0.3rem; }
.cal .w { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); padding-bottom: 0.85rem; }
.cal-text { margin: 0; font-size: 0.92rem; line-height: 1.45; }
.cal-text strong, .cal-text > span:last-child { display: block; }
.cal-text > span:last-child { color: var(--muted); }
.programme { background: var(--bg-soft); border-radius: 12px; padding: 1.4rem 1.9rem 0.6rem; }
.programme-title { margin: 0; font-family: var(--slab); font-style: italic; color: var(--muted); font-size: 1.05rem; }
.programme ol { list-style: none; padding: 0; margin: 0; }
.programme li { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr) auto; gap: 1.1rem; align-items: center; padding: 1rem 0; border-bottom: 1px solid #dfe2e7; }
.programme li:last-child { border-bottom: 0; }
.programme .t { font-size: 1.45rem; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.1; }
.programme li.is-start .t { color: var(--blue); }
.programme li.is-end .t { color: var(--red); }
.programme li[class] p { font-weight: 600; }
.programme p { margin: 0; }
@media (max-width: 991px) {
  .agenda.has-programme { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .cal-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 26rem; width: 100%; margin: 0 auto; }
}
@media (max-width: 575px) {
  .cal .d { font-size: 3.1rem; }
  .cal-text { text-align: center; font-size: 0.86rem; }
  .programme { padding: 1.1rem 1.1rem 0.4rem; }
  .programme li { grid-template-columns: 4.1rem minmax(0, 1fr); gap: 0.25rem 0.85rem; align-items: baseline; padding: 0.85rem 0; }
  .programme .t { font-size: 1.12rem; grid-row: 1 / span 2; }
  .programme p { font-size: 0.94rem; }
  .programme .tag { justify-self: start; }
}

/* Partenaires : celui qui propose le sujet en vedette sur fond sombre, puis les
   soutiens en logos. */
.featured { text-align: left; padding: 5rem 0; }
.featured::before { background: linear-gradient(90deg, rgba(20, 21, 24, 0.94), rgba(20, 21, 24, 0.74)); }
.featured-grid { display: grid; grid-template-columns: 19rem minmax(0, 1fr); gap: 4rem; align-items: center; }
.featured-brand { display: flex; flex-direction: column; gap: 1.1rem; }
.featured-kicker { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue); }
.featured-logo { max-width: 100%; max-height: 8rem; object-fit: contain; object-position: left center; filter: brightness(0) invert(1); }
.featured-name { font-size: 2rem; font-weight: 800; text-transform: uppercase; }
.featured h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); text-transform: uppercase; line-height: 1.15; margin: 0 0 1rem; }
.featured .prose { color: rgba(255, 255, 255, 0.78); font-size: 1.02rem; line-height: 1.8; }
.featured .prose strong { color: #fff; }
.featured-link { margin: 1.25rem 0 0; }
.featured .link-arrow { color: #7fd3ef; }
.featured .link-arrow:hover { color: #fff; }
@media (max-width: 767px) {
  .featured { padding: 3.25rem 0; }
  .featured-grid { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .featured-logo { max-height: 5.5rem; }
}
.supporters-label { display: flex; align-items: center; justify-content: center; gap: 1rem; margin: 0 0 2.25rem; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.supporters-label .kiro-stripes { width: 2.5rem; margin: 0; }
.logo-row { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 2.5rem 5rem; }
.logo-row img { display: block; max-height: 5.5rem; max-width: 13rem; object-fit: contain; filter: grayscale(1); opacity: 0.8; transition: filter 0.2s, opacity 0.2s; }
.logo-row a:hover img, .logo-row a:focus-visible img { filter: none; opacity: 1; }
.logo-name { font-weight: 800; font-size: 1.2rem; color: var(--muted); }
@media (max-width: 575px) { .logo-row { gap: 2rem 2.5rem; } .logo-row img { max-height: 4rem; max-width: 9.5rem; } }

/* Règlement : chaque article dans son bloc, comme sur le site d'origine. */
.rules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; max-width: none; }
.rules p { background: var(--bg-soft); border-radius: var(--radius); padding: 1.4rem; margin: 0; color: var(--muted); font-size: 0.95rem; }
.section-soft .rules p { background: #fff; }
.rules strong { display: block; color: var(--blue-dark); text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.8rem; margin-bottom: 0.35rem; }
.rules p:last-child:nth-child(3n + 1) { grid-column: 1 / -1; }
@media (max-width: 991px) { .rules { grid-template-columns: 1fr 1fr; } .rules p:last-child:nth-child(3n + 1) { grid-column: auto; } }
@media (max-width: 575px) { .rules { grid-template-columns: 1fr; } }

/* FAQ en accordéon (construit en JS à partir des « ### question »). */
.faq { max-width: 52rem; margin: 0 auto; }
.faq details { background: #fff; border-radius: var(--radius); margin-bottom: 0.75rem; border: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 1.1rem 3.5rem 1.1rem 1.4rem; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 1.2rem; top: 50%; transform: translateY(-50%); width: 1.75rem; height: 1.75rem; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font-weight: 700; line-height: 1; }
.faq details[open] summary::after { content: "–"; background: var(--red); }
.faq details > div { padding: 0 1.4rem 1.2rem; color: var(--muted); }
.faq details > div > :last-child { margin-bottom: 0; }
.faq h3 { font-size: 1.02rem; margin: 1.25rem 0 0.4rem; }
.faq-contact { text-align: center; margin: 1.75rem 0 0; color: var(--muted); }

/* Anciens sujets. */
.archive { display: grid; grid-template-columns: 19rem minmax(0, 1fr); gap: 3.5rem; align-items: start; }
.archive-intro { display: flex; flex-direction: column; gap: 0.9rem; padding-top: 0.4rem; }
.archive-intro h2 { margin: 0; font-size: clamp(1.7rem, 3.6vw, 2.5rem); letter-spacing: 0.02em; font-weight: 700; text-transform: uppercase; line-height: 1.1; }
.archive-intro .slab { margin: 0; color: var(--muted); font-size: 1.15rem; line-height: 1.5; }
.archive-intro .small-print { margin: 0; }
.archive-intro .kiro-stripes { margin: 0 0 0 0.35rem; }
.archive-list { list-style: none; margin: 0; padding: 0; background: #fff; border-radius: var(--radius); overflow: hidden; }
.archive-list li { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr) 10rem 11.5rem; align-items: center; gap: 1rem; padding: 0.8rem 1.4rem; border-top: 1px solid #eef0f3; }
.archive-list li:first-child { border-top: 0; }
.archive-list li.is-latest { background: #f7fbfd; }
.archive-list .year { font-size: 0.85rem; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.archive-list .partner { font-weight: 800; }
.archive-list .badge-new { display: inline-block; margin-left: 0.4rem; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #fff; background: var(--red); border-radius: 4px; padding: 0.12rem 0.4rem; vertical-align: 0.15em; }
.archive-list .none { grid-column: 3 / -1; font-size: 0.85rem; color: var(--muted); }
.archive-list .dl { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; font-weight: 700; color: #0f6f91; text-decoration: none; }
.archive-list .dl svg { flex-shrink: 0; color: var(--blue); }
.archive-list .dl small { font-size: 0.78rem; font-weight: 500; color: var(--muted); }
.archive-list .dl:hover { color: var(--red); }
@media (max-width: 991px) { .archive { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; } }
@media (max-width: 767px) {
  .archive-list li { grid-template-columns: minmax(0, 1fr) auto; gap: 0.4rem 1.25rem; padding: 0.9rem 1rem; }
  .archive-list .partner { order: -1; }
  .archive-list .year { text-align: right; }
  .archive-list .file, .archive-list .none { grid-column: auto; }
  .archive-list .none { grid-column: 1 / -1; }
  .archive-list .partner, .archive-list .dl { white-space: nowrap; }
  .archive-list .dl { gap: 0.4rem; }
}

/* Bandeau final. */
.closing { padding: 4.5rem 0; }
.closing h2 { font-size: clamp(1.5rem, 3.2vw, 2.2rem); text-transform: uppercase; letter-spacing: 0.03em; margin: 0 0 0.6rem; }
.closing .slab { color: rgba(255, 255, 255, 0.85); font-size: 1.15rem; margin: 0 0 1.75rem; }

/* --- Pages intérieures -------------------------------------------------- */

.page-head { padding: 8.5rem 0 3.25rem; }
.page-head h1 { font-size: clamp(1.7rem, 4.2vw, 2.6rem); text-transform: uppercase; letter-spacing: 0.03em; margin: 0; }
.page-head .slab { display: block; font-size: clamp(1rem, 2vw, 1.25rem); color: rgba(255, 255, 255, 0.85); margin: 0.6rem auto 0; max-width: 42rem; }
.page-head .kicker { display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue); margin-bottom: 0.6rem; }
.page-head .status { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 1rem; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; background: rgba(255, 255, 255, 0.12); border-radius: 999px; padding: 0.35rem 0.9rem; }
.page-head .status::before { content: ""; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: #f0b429; }
.page-head .status.ok::before { background: #3ecf7a; }
.page-head .status.off::before { background: #aaa; }
@media (max-width: 575px) { .page-head { padding: 6.75rem 0 2.5rem; } }
.page-body { padding: 3rem 0 5rem; background: var(--bg-soft); min-height: 40vh; }
.sheet { background: #fff; border-radius: var(--radius); padding: 2.25rem; box-shadow: 0 1px 3px rgba(20, 21, 24, 0.06); }
@media (max-width: 575px) { .sheet { padding: 1.4rem; } }
.narrow { max-width: 30rem; margin: 0 auto; }
.medium { max-width: 46rem; margin: 0 auto; }
.small-print { font-size: 0.88rem; color: var(--muted); }
.small-print a { color: var(--blue-dark); }

.side-card { background: #fff; border-radius: var(--radius); padding: 1.5rem; border-top: 4px solid var(--blue); }
.side-card + .side-card { margin-top: 1.25rem; border-top-color: var(--red); }
.side-card h2 { font-size: 0.92rem; text-transform: uppercase; letter-spacing: 0.05em; margin: 0 0 1rem; }
@media (min-width: 992px) { .side-sticky { position: sticky; top: 6rem; } }
.numbered { list-style: none; counter-reset: n; padding: 0; margin: 0; }
.numbered li { counter-increment: n; position: relative; padding: 0 0 0.9rem 2.6rem; color: var(--muted); font-size: 0.95rem; }
.numbered li:last-child { padding-bottom: 0; }
.numbered li::before { content: counter(n); position: absolute; left: 0; top: 0; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 700; font-size: 0.85rem; display: grid; place-items: center; }

/* --- Formulaires -------------------------------------------------------- */

.form-k .field-label { display: block; font-size: 0.88rem; font-weight: 600; color: var(--text); margin-bottom: 0.35rem; }
.form-k .form-control { border: 1px solid #cfd4db; border-radius: 6px; padding: 0.65rem 0.85rem; font-size: 1rem; color: var(--text); background: #fff; }
.form-k .form-control::placeholder { color: #a5abb3; }
.form-k .form-control:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(27, 166, 211, 0.2); }
.form-k .form-control.is-invalid { border-color: var(--red); background-image: none; padding-right: 0.85rem; }
.form-k .form-control.is-invalid:focus { box-shadow: 0 0 0 3px rgba(230, 46, 88, 0.18); }
.form-k .form-text { font-size: 0.82rem; color: var(--muted); margin-top: 0.3rem; }
.form-k .invalid-feedback { font-size: 0.85rem; color: var(--red-dark); font-weight: 500; }
.form-k .form-check { padding-left: 1.85rem; }
.form-k .form-check-input { width: 1.15rem; height: 1.15rem; margin-top: 0.22rem; margin-left: -1.85rem; border-color: #b9c0c9; }
.form-k .form-check-input:checked { background-color: var(--blue); border-color: var(--blue); }
.form-k .form-check-input:focus { box-shadow: 0 0 0 3px rgba(27, 166, 211, 0.2); }
.form-k .form-check-input.is-invalid { border-color: var(--red); }
.form-k .form-check-input.is-invalid ~ .form-check-label { color: inherit; }
.form-k fieldset legend.field-label { float: none; width: auto; padding: 0; }

.form-section + .form-section { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.form-section > h2 { display: flex; align-items: center; gap: 0.75rem; font-size: 1.02rem; text-transform: uppercase; letter-spacing: 0.05em; margin: 0 0 1.5rem; }
.form-section > h2 .n { width: 2rem; height: 2rem; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font-size: 0.9rem; flex-shrink: 0; }
.form-section:nth-of-type(2) > h2 .n { background: var(--red); }
.form-section:nth-of-type(3) > h2 .n { background: var(--dark); }

.choices { display: grid; gap: 0.55rem; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice label { display: flex; gap: 0.75rem; align-items: center; height: 100%; padding: 0.8rem 1rem; border: 2px solid #dde1e6; border-radius: 8px; background: #fff; cursor: pointer; font-weight: 500; font-size: 0.95rem; line-height: 1.35; transition: border-color 0.12s, background-color 0.12s; }
.choice label::before { content: ""; flex-shrink: 0; width: 1.1rem; height: 1.1rem; border-radius: 50%; border: 2px solid #b9c0c9; background: #fff; transition: border 0.12s; }
.choice label:hover { border-color: #b9c0c9; }
.choice input:checked + label { border-color: var(--blue); background: #eef8fc; }
.choice input:checked + label::before { border: 6px solid var(--blue); }
.choice input:focus-visible + label { outline: 3px solid var(--blue); outline-offset: 2px; }
.choices.is-invalid .choice label { border-color: rgba(230, 46, 88, 0.6); }
.choices-row { grid-template-columns: repeat(auto-fit, minmax(5.5rem, 1fr)); }
.choices-row .choice label { padding: 0.75rem 0.8rem; gap: 0.55rem; }

.member { border: 0; margin: 0 0 1.25rem; padding: 1.4rem 1.4rem 0.4rem; background: var(--bg-soft); border-radius: var(--radius); }
/* Légende en flottant : sinon le navigateur la pose à cheval sur le bord du bloc. */
.member legend { float: left; width: 100%; font-size: 0.92rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 1rem; padding: 0; }
.member legend + * { clear: both; }
.member legend .who { display: inline-block; margin-left: 0.5rem; font-size: 0.64rem; letter-spacing: 0.1em; background: var(--blue); color: #fff; border-radius: 4px; padding: 0.12rem 0.45rem; vertical-align: 0.15em; }
.member legend .who.opt { background: #dde1e6; color: var(--dark); }
.members-note { color: var(--muted, #5b6470); font-size: 0.95rem; margin: -0.4rem 0 1.25rem; }

.form-alert { border-left: 4px solid var(--red); background: #fdeef1; padding: 0.9rem 1.1rem; color: #8a1733; font-size: 0.95rem; border-radius: 0 8px 8px 0; margin-bottom: 1.5rem; }
.form-alert.warn { border-left-color: #f0a500; background: #fff6e0; color: #6b4b00; }
.form-alert.info { border-left-color: var(--blue); background: #e8f6fb; color: #0e5670; }
.form-alert > :last-child { margin-bottom: 0; }

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

/* Assistant d'inscription (activé par scripts.js ; sans JS le formulaire reste d'un seul tenant). */
.stepper { margin: 0 0 2rem; }
.stepper ol { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); position: relative; }
.stepper ol::before, .stepper ol::after { content: ""; position: absolute; top: 1.05rem; height: 3px; left: calc(50% / var(--n, 5)); background: #dde1e6; border-radius: 2px; }
.stepper ol::before { right: calc(50% / var(--n, 5)); }
.stepper ol::after { background: var(--blue); width: calc((100% - 100% / var(--n, 5)) * var(--progress, 0)); transition: width 0.25s; }
.stepper li { position: relative; z-index: 1; display: flex; justify-content: center; }
.stepper button { display: flex; flex-direction: column; align-items: center; gap: 0.45rem; background: none; border: 0; padding: 0 0.25rem; font-family: var(--title); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.3; color: #8a919b; cursor: pointer; text-align: center; }
.stepper i { display: grid; place-items: center; width: 2.15rem; height: 2.15rem; border-radius: 50%; background: #fff; border: 2px solid #cfd4db; box-shadow: 0 0 0 4px #fff; font-style: normal; font-weight: 800; font-size: 0.85rem; color: #8a919b; transition: background-color 0.15s, border-color 0.15s; }
.stepper .is-done button { color: var(--blue-dark); }
.stepper .is-done i { background: var(--blue); border-color: var(--blue); font-size: 0; }
.stepper .is-done i::before { content: "✓"; font-size: 0.95rem; color: #fff; }
.stepper .is-current button { color: var(--text); }
.stepper .is-current i { border: 3px solid var(--red); color: var(--red); }
.stepper .has-error i { border-color: var(--red); background: #fdeef1; color: var(--red-dark); }
.stepper .has-error button { color: var(--red-dark); }
.stepper-caption { display: none; }

.is-wizard .members-head, .is-wizard .members-note, .is-wizard .member legend .opt, .is-wizard .form-section > h2 .n, .is-wizard .submit-row { display: none; }
.is-wizard .form-section + .form-section { margin-top: 0; padding-top: 0; border-top: 0; }
.is-wizard .member { background: none; padding: 0; margin: 0; }
.is-wizard .member legend, .is-wizard .form-section > h2 { font-size: 1.2rem; margin-bottom: 1.4rem; }
.is-wizard [tabindex="-1"]:focus { outline: none; }
.wizard-nav { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; margin-top: 1.25rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.wizard-nav[hidden] { display: none; }
.wizard-nav [data-next], .wizard-nav [data-submit] { margin-left: auto; }
.lbl-short { display: none; }

.recap { margin: 0 0 1.5rem; background: var(--bg-soft); border-radius: var(--radius); padding: 0.3rem 1.2rem; }
.recap > div { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr) auto; gap: 0.2rem 1rem; padding: 0.75rem 0; border-top: 1px solid #dfe2e7; align-items: baseline; }
.recap > div:first-child { border-top: 0; }
.recap dt { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.recap dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.recap-edit { background: none; border: 0; padding: 0; color: var(--blue-dark); font-family: var(--title); font-weight: 600; font-size: 0.85rem; text-decoration: underline; text-underline-offset: 0.18em; }
.recap-edit:hover { color: var(--red); }

@media (max-width: 575px) {
  .stepper { margin-bottom: 1.5rem; }
  .stepper-caption { display: flex; justify-content: space-between; gap: 1rem; margin: 0 0 0.35rem; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
  .stepper-caption span:last-child { color: var(--text); }
  .stepper ol { gap: 5px; }
  .stepper ol::before, .stepper ol::after { display: none; }
  .stepper li { display: block; }
  /* Sur téléphone, chaque étape devient un segment de barre (zone de clic élargie). */
  .stepper button { display: block; width: 100%; height: 22px; padding: 8px 0; background: #dde1e6; background-clip: content-box; border-radius: 3px; }
  .stepper button i, .stepper button span { display: none; }
  .stepper .is-done button { background-color: var(--blue); }
  .stepper .is-current button { background-color: var(--red); }
  .stepper .has-error button { background-color: #f3a7b8; }
  /* Boutons de l'assistant toujours à portée de pouce. */
  .wizard-nav { position: sticky; bottom: var(--banner-h, 0px); z-index: 5; margin: 1.5rem -1.4rem -1.4rem; padding: 0.8rem 1.4rem; background: #fff; border-radius: 0 0 var(--radius) var(--radius); box-shadow: 0 -6px 16px rgba(20, 21, 24, 0.07); }
  .wizard-nav [data-prev] { padding-left: 1.1rem; padding-right: 1.1rem; }
  .wizard-nav [data-prev] .lbl, .lbl-long { display: none; }
  .lbl-short { display: inline; }
  .wizard-nav [data-next], .wizard-nav [data-submit] { flex: 1; }
  .recap > div { grid-template-columns: minmax(0, 1fr) auto; }
  .recap dd { grid-column: 1 / -1; grid-row: 2; }
}


/* --- Équipes ------------------------------------------------------------ */

.toolbar { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; margin-bottom: 0.9rem; }
.count { font-weight: 600; color: var(--muted); font-size: 0.88rem; margin: 0 0 1.1rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chips[hidden] { display: none; }
.chip { display: inline-flex; align-items: center; gap: 0.45rem; border: 1px solid #cfd4db; background: #fff; color: var(--text); border-radius: 999px; padding: 0.5rem 1rem; font-family: var(--title); font-size: 0.86rem; font-weight: 600; line-height: 1.2; cursor: pointer; transition: background-color 0.12s, border-color 0.12s, color 0.12s; }
.chip span { font-size: 0.78rem; font-weight: 700; color: var(--muted); }
.chip:hover { border-color: #9aa2ad; }
.chip[aria-pressed="true"] { background: var(--dark); border-color: var(--dark); color: #fff; }
.chip[aria-pressed="true"] span { color: rgba(255, 255, 255, 0.7); }
@media (max-width: 575px) {
  .toolbar { flex-direction: column; align-items: stretch; gap: 0.75rem; }
  .search { width: 100%; }
  .chip { padding: 0.45rem 0.8rem; font-size: 0.82rem; }
}
.search { position: relative; width: min(100%, 24rem); }
.search .form-control { padding-left: 2.5rem; border-radius: 999px; }
.search::before { content: ""; position: absolute; left: 1rem; top: 50%; width: 0.75rem; height: 0.75rem; border: 2px solid #9aa2ad; border-radius: 50%; transform: translateY(-62%); z-index: 1; }
.search::after { content: ""; position: absolute; left: 1.62rem; top: 58%; width: 0.4rem; height: 2px; background: #9aa2ad; transform: rotate(45deg); z-index: 1; }

.team-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
@media (max-width: 991px) { .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575px) { .team-grid { grid-template-columns: 1fr; } }
.team { background: #fff; border-radius: var(--radius); padding: 1.3rem 1.4rem 1.2rem; border-top: 4px solid var(--blue); box-shadow: 0 1px 3px rgba(20, 21, 24, 0.06); }
.team.remote { border-top-color: var(--red); }
.team-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.75rem; margin-bottom: 0.85rem; }
.team h2 { font-size: 1.05rem; margin: 0; word-break: break-word; }
.tag { display: inline-block; font-size: 0.64rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; border-radius: 4px; padding: 0.18rem 0.5rem; background: var(--box); color: var(--muted); line-height: 1.4; }
.tag.onsite { background: #e3f4fa; color: var(--blue-dark); }
.tag.remote { background: #fde8ed; color: var(--red-dark); }
.tag.ok { background: #e2f6ea; color: #1d7a45; }
.tag.wait { background: #fff2d6; color: #8a6100; }
.team-tags { display: flex; flex-direction: column; align-items: flex-end; gap: 0.3rem; }
.roster { list-style: none; margin: 0; padding: 0; font-size: 0.92rem; }
.roster li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.38rem 0; border-top: 1px solid var(--bg-soft); }
.roster li:first-child { border-top: 0; }
.roster .name { font-weight: 600; }
.roster .school { color: var(--muted); text-align: right; }
@media (max-width: 400px) { .roster li { flex-direction: column; gap: 0; } .roster .school { text-align: left; } }
.empty { padding: 2rem 0; color: var(--muted); text-align: center; }

/* « Mon équipe ». */
.members { list-style: none; padding: 0; margin: 0; }
.members li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
.members li:first-child { padding-top: 0; }
.members .name { font-weight: 600; }
.members .school { display: block; color: var(--muted); font-size: 0.88rem; font-weight: 400; }
.block + .block { margin-top: 2.25rem; }
.block > h2 { font-size: 0.98rem; text-transform: uppercase; letter-spacing: 0.05em; margin: 0 0 1rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }

/* Tableau de bord orga. */
/* --- Tableau de bord d'organisation --- */
.dash-head { display: flex; flex-direction: column; align-items: center; gap: 0.6rem; }
.dash-head .slab { margin: 0; font-size: 1rem; }
.dash-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.dash-card { background: #fff; border-radius: var(--radius); padding: 1.35rem 1.45rem; display: flex; flex-direction: column; gap: 0.85rem; }
.dash-card h2 { margin: 0; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.dash-card .big { margin: 0; font-size: 2.5rem; font-weight: 800; line-height: 1; }
.dash-card .big small { font-size: 1.1rem; font-weight: 600; color: var(--muted); }
.dash-card .bar { display: flex; height: 10px; border-radius: 999px; overflow: hidden; background: #e6e9ed; }
.dash-card .bar i { display: block; height: 100%; }
.dash-card .legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; font-size: 0.85rem; }
.dash-card .legend li { display: flex; align-items: center; gap: 0.5rem; }
.dash-card .legend i { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; }
.dash-card .legend b { margin-left: auto; }
/* Couleurs des barres, limitées aux cartes : .c-red sert aussi au titre de l'accueil. */
.dash-card .c-conf { background: var(--blue); }
.dash-card .c-wait { background: #f0b429; }
.dash-card .c-off { background: #aab0b8; }
.dash-card .c-red { background: var(--red); }
.dash-card .c-size1 { background: var(--dark); }
.dash-card .c-size2 { background: #5f6672; }
.dash-card .c-size3 { background: #aab0b8; }
.dash-card .c-size4, .dash-card .c-size5 { background: #d3d7dc; }
.dash-state { display: flex; align-items: center; gap: 0.75rem; margin: 1.25rem 0; padding: 0.9rem 1.15rem; border-radius: 10px; font-size: 0.92rem; font-weight: 600; }
.dash-state p { margin: 0; }
.dash-state svg { flex-shrink: 0; }
.dash-state.is-ok { background: #e7f7ee; color: #17603a; }
.dash-state.is-bad { background: #fdeef1; color: #8a1733; }
.dash-actions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.75rem; margin-top: 1.25rem; }
.dash-action { display: flex; align-items: center; gap: 0.8rem; padding: 0.95rem 1.05rem; border-radius: 10px; border: 1px solid #e1e4e8; background: #fff; color: var(--text); text-decoration: none; font-weight: 600; font-size: 0.92rem; transition: border-color 0.15s, box-shadow 0.15s; }
.dash-action:hover { border-color: var(--blue); color: var(--text); box-shadow: 0 4px 14px rgba(20, 21, 24, 0.07); }
.dash-action svg { flex-shrink: 0; color: #1286ad; }
.dash-action small { display: block; font-size: 0.78rem; font-weight: 500; color: var(--muted); }
.dash-action.is-primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.dash-action.is-primary svg, .dash-action.is-primary small { color: #fff; }
.dash-action.is-primary:hover { color: #fff; filter: brightness(1.05); }
@media (max-width: 991px) { .dash-cards, .dash-actions { grid-template-columns: 1fr 1fr; } }
@media (max-width: 575px) { .dash-cards, .dash-actions { grid-template-columns: 1fr; } .dash-card .big { font-size: 2.1rem; } }

/* --- Messages ----------------------------------------------------------- */

.toasts { position: fixed; z-index: 2000; right: 1rem; left: 1rem; bottom: 1rem; display: grid; gap: 0.5rem; justify-items: end; pointer-events: none; }
body.has-banner .toasts { bottom: calc(var(--banner-h, 2.6rem) + 0.65rem); }
.toast-k { pointer-events: auto; max-width: 30rem; display: flex; gap: 1rem; align-items: flex-start; background: #fff; color: var(--text); border-left: 5px solid var(--blue); border-radius: 0 8px 8px 0; padding: 0.9rem 1rem; font-size: 0.95rem; font-weight: 500; box-shadow: 0 10px 30px rgba(20, 21, 24, 0.2); }
.toast-k.error { border-left-color: var(--red); }
.toast-k.warning { border-left-color: #f0a500; }
.toast-k.success { border-left-color: #2bb673; }
.toast-k button { margin-left: auto; background: none; border: 0; color: var(--muted); font-size: 1.3rem; line-height: 1; padding: 0; }

/* --- Pied de page (fond réseau, comme le site d'origine) ------------------ */

.site-footer { color: rgba(255, 255, 255, 0.82); font-size: 0.92rem; text-align: left; }
.site-footer.masthead::before { background: rgba(20, 21, 24, 0.86); }
.site-footer .container { padding-top: 3.5rem; padding-bottom: 1.75rem; }
.footer-partners { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2.5rem 3.5rem; padding-bottom: 2.75rem; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.footer-partners img { max-height: 54px; max-width: 170px; object-fit: contain; filter: brightness(0) invert(1); opacity: 0.85; transition: opacity 0.15s; }
.footer-partners a:hover img { opacity: 1; }
.footer-cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2rem; padding: 2.5rem 0; }
.footer-cols h2 { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue); margin: 0 0 0.85rem; }
.footer-cols ul { list-style: none; padding: 0; margin: 0; }
.footer-cols li { margin-bottom: 0.4rem; }
.footer-cols a { color: #fff; text-decoration: none; }
.footer-cols a:hover { color: var(--red); }
.footer-cols .about img { height: 2rem; margin-bottom: 0.9rem; display: block; }
.footer-cols .about p { max-width: 22rem; margin: 0; }
.footer-base { border-top: 1px solid rgba(255, 255, 255, 0.12); padding-top: 1.25rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; font-size: 0.8rem; color: rgba(255, 255, 255, 0.6); }
@media (max-width: 767px) { .footer-cols { grid-template-columns: 1fr; } .footer-partners { gap: 2rem; } }

/* Mentions légales. */
.legal h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.04em; margin: 2rem 0 0.7rem; }
.legal h2:first-child { margin-top: 0; }

.sheet .side-card { background: var(--bg-soft); }
