/* ARPT Cyber Challenge 2026 · site vitrine
   Charte tiree du logo officiel du challenge : gris anthracite + six couleurs des barres,
   police Montserrat (celle du logo). */

:root {
  /* Couleurs du logo */
  --c-red: #db3a45;
  --c-yellow: #f5bf64;
  --c-green: #52ac82;
  --c-orange: #d66e40;
  --c-purple: #8779a7;
  --c-cyan: #29b2d7;
  --logo-grey: #5a5a59;

  --ink: #1c1d21;          /* fonds sombres (accueil, recompenses) */
  --ink-2: #26282d;
  --accent: #157a96;       /* cyan assombri : liens et textes sur fond clair (contraste AA) */
  --accent-hover: #0f6178;

  --bg: #ffffff;
  --bg-alt: #f5f5f3;
  --card: #ffffff;
  --border: #e3e3df;
  --text: #2a2a29;
  --text-2: #55554f;
  --text-3: #75756e;

  --radius: 14px;
  --font: "Montserrat", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --accent: #4cc3e3;
  --accent-hover: #7dd5ec;
  --bg: #16171a;
  --bg-alt: #1c1d21;
  --card: #24262b;
  --border: #34363c;
  --text: #f2f2f0;
  --text-2: #c9c9c4;
  --text-3: #9b9b95;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.7; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; }
p { margin: 0 0 1rem; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; }
[hidden] { display: none !important; }
code { font-family: var(--mono); font-size: .92em; color: var(--accent); }
:focus-visible { outline: 2px solid var(--c-cyan); outline-offset: 3px; }
.wrap { width: 100%; max-width: 1184px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--text-2); }
.center { text-align: center; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 16px; border-radius: 6px; }
.skip:focus { left: 16px; }

/* Bande aux six couleurs du logo */
.stripe { display: flex; height: 4px; }
.stripe i { flex: 1; }
.stripe i:nth-child(1), .hero-bars i:nth-child(1) { background: var(--c-red); }
.stripe i:nth-child(2), .hero-bars i:nth-child(2) { background: var(--c-yellow); }
.stripe i:nth-child(3), .hero-bars i:nth-child(3) { background: var(--c-green); }
.stripe i:nth-child(4), .hero-bars i:nth-child(4) { background: var(--c-orange); }
.stripe i:nth-child(5), .hero-bars i:nth-child(5) { background: var(--c-purple); }
.stripe i:nth-child(6), .hero-bars i:nth-child(6) { background: var(--c-cyan); }
.stripe-short { width: 132px; height: 5px; border-radius: 3px; overflow: hidden; margin-top: 22px; }

/* Couleur propre a chaque carte */
.c-red { --c: var(--c-red); }
.c-yellow { --c: var(--c-yellow); }
.c-green { --c: var(--c-green); }
.c-orange { --c: var(--c-orange); }
.c-purple { --c: var(--c-purple); }
.c-cyan { --c: var(--c-cyan); }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 50px; padding: 0 26px; border-radius: 8px;
  font-family: var(--font); font-weight: 600; font-size: 16px; text-decoration: none; white-space: nowrap;
  transition: background .2s, border-color .2s, color .2s, transform .2s;
}
.btn-outline { border: 1.5px solid rgba(255, 255, 255, .35); color: #fff; }
.btn-outline:hover { border-color: #fff; background: rgba(255, 255, 255, .08); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; margin-top: 8px; }
.btn-dark:hover { background: #000; color: #fff; }
:root[data-theme="dark"] .btn-dark { background: #fff; color: var(--ink); }

/* Bouton d'inscription : grand, contour anime aux couleurs du logo */
.btn-register {
  position: relative; isolation: isolate;
  height: 68px; padding: 0 56px; border-radius: 999px;
  font-size: 21px; font-weight: 700; letter-spacing: .02em;
  color: var(--ink); background: var(--c-yellow);
  box-shadow: 0 10px 30px -8px rgba(245, 191, 100, .55);
  animation: pulse 2.6s ease-in-out infinite;
}
.btn-register::before {
  content: ""; position: absolute; inset: -4px; z-index: -1; border-radius: inherit;
  background: linear-gradient(90deg, var(--c-red), var(--c-yellow), var(--c-green), var(--c-orange), var(--c-purple), var(--c-cyan), var(--c-red));
  background-size: 300% 100%;
  animation: flow 6s linear infinite;
}
.btn-register::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--c-yellow); }
.btn-register svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.btn-register:hover { color: var(--ink); transform: translateY(-2px); }
.btn-register:hover svg { transform: translateX(4px); }
.btn-register-sm { height: 56px; padding: 0 36px; font-size: 18px; }
@keyframes flow { to { background-position: 300% 0; } }
@keyframes pulse { 50% { box-shadow: 0 10px 44px -6px rgba(245, 191, 100, .8); } }

/* Barre du haut : logo du challenge a gauche, logo ARPT a droite */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
:root[data-theme="dark"] .nav { background: rgba(22, 23, 26, .94); }
.nav-in { display: flex; align-items: center; gap: 24px; height: 84px; }
.nav .stripe { height: 3px; }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { height: 52px; width: auto; display: block; }
.logo-dark, :root[data-theme="dark"] .logo-light { display: none !important; }
:root[data-theme="dark"] .logo-dark { display: block !important; }
.nav-links { display: flex; gap: 26px; margin: 0 auto; }
.nav-links a { position: relative; color: var(--text); text-decoration: none; font-size: 14.5px; font-weight: 600; padding: 6px 0; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--c-cyan); transition: right .25s; }
.nav-links a:hover, .nav-links a.is-active { color: var(--accent); }
.nav-links a:hover::after, .nav-links a.is-active::after { right: 0; }
.icon-btn { background: none; border: 0; padding: 6px; color: var(--text); cursor: pointer; display: grid; place-items: center; border-radius: 6px; }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn:hover { background: var(--bg-alt); }
:root[data-theme="light"] .i-sun, :root:not([data-theme]) .i-sun { display: none; }
:root[data-theme="dark"] .i-moon { display: none; }
.menu-btn { display: none; }
.arpt-logo { flex: none; display: inline-flex; border-radius: 6px; }
.arpt-logo img { height: 52px; width: auto; display: block; }
:root[data-theme="dark"] .arpt-logo { background: #fff; padding: 3px 6px; }
:root[data-theme="dark"] .arpt-logo img { height: 46px; }

/* Page d'accueil */
.hero {
  position: relative; overflow: hidden; color: #fff; text-align: center;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(41, 178, 215, .16), transparent 60%),
    radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px) 0 0 / 24px 24px,
    var(--ink);
  padding: 72px 0 80px;
}
/* Barres du logo en fond, qui montent et descendent doucement */
/* Barres placees sur les cotes uniquement, jamais derriere le contenu central */
.hero-bars { position: absolute; inset: 0; pointer-events: none; opacity: .09; }
.hero-bars i { position: absolute; top: 0; bottom: 0; width: 46px; border-radius: 999px; animation: bar 9s ease-in-out infinite alternate; }
.hero-bars i:nth-child(1) { left: 3%; }
.hero-bars i:nth-child(2) { left: 9%; }
.hero-bars i:nth-child(3) { left: 15%; }
.hero-bars i:nth-child(4) { right: 15%; }
.hero-bars i:nth-child(5) { right: 9%; }
.hero-bars i:nth-child(6) { right: 3%; }
.hero-bars i:nth-child(1) { margin: 6% 0 34%; }
.hero-bars i:nth-child(2) { margin: 14% 0 18%; animation-delay: -2s; }
.hero-bars i:nth-child(3) { margin: 30% 0 4%; animation-delay: -4s; }
.hero-bars i:nth-child(4) { margin: 4% 0 30%; animation-delay: -1s; }
.hero-bars i:nth-child(5) { margin: 20% 0 10%; animation-delay: -3s; }
.hero-bars i:nth-child(6) { margin: 28% 0 6%; animation-delay: -5s; }
@keyframes bar { to { transform: translateY(8%); } }

.hero-in { position: relative; display: flex; flex-direction: column; align-items: center; }
.hero-logo { margin: 0 0 28px; }
.hero-logo img { display: block; width: min(600px, 86vw); height: auto; }
.hero-lead { font-size: 19px; color: #c9c9c4; max-width: 640px; margin-bottom: 30px; }

.hero-prizes { margin-top: 44px; width: 100%; max-width: 900px; }
.hero-prizes-t { font-family: var(--mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--c-yellow); margin-bottom: 14px; }
.hero-prizes ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.hero-prizes li {
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 16px 12px;
  border-radius: 12px; background: var(--ink-2); border: 1px solid rgba(255, 255, 255, .1);
  transition: background .4s, border-color .4s, transform .4s;
}
.hero-prizes li.is-lit { background: #34302a; border-color: rgba(245, 191, 100, .55); transform: translateY(-3px); }
.hero-prizes .medal { width: 34px; height: 44px; margin-bottom: 4px; }
.hero-prizes b { font-size: 15px; }
.hero-prizes small { font-size: 12.5px; color: #a9a9a3; line-height: 1.4; }

.countdown { margin-top: 48px; }
.cd-label { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--c-cyan); margin-bottom: 14px; }
.cd-grid { display: flex; justify-content: center; gap: 12px; }
.cd-grid div { min-width: 96px; padding: 14px 8px 10px; border-radius: 12px; background: var(--ink-2); border: 1px solid rgba(255, 255, 255, .12); }
.cd-grid b { display: block; font-size: 40px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.cd-grid span { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: #a9a9a3; }
.cd-done { font-size: 18px; color: #fff; margin: 0; }
.hero .btn-register { margin-top: 40px; }

/* Sections */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }
.eyebrow { font-family: var(--mono); font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.section h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 700; letter-spacing: -.01em; }
.sec-head { max-width: 720px; margin-bottom: 48px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head .muted { margin: 14px 0 0; font-size: 17px; }

/* A propos */
.about { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
.about-txt p { font-size: 17px; color: var(--text-2); }
.about-txt b { color: var(--text); font-weight: 600; }

/* Calendrier : ligne pointillee, cartes datees au-dessus et au-dessous */
.cal { list-style: none; margin: 0; padding: 0; position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cal::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 2px dashed var(--text-3); opacity: .55; }
.cal-item { position: relative; display: grid; grid-template-rows: 1fr 1fr; justify-items: center; min-height: 500px; }
.cal-item .cal-card { grid-row: 1; align-self: end; margin-bottom: 38px; }
.cal-item.is-down .cal-card { grid-row: 2; align-self: start; margin: 38px 0 0; }
.cal-card {
  position: relative; width: 100%; max-width: 320px; text-align: center;
  background: var(--c); color: #fff; border-radius: 18px; padding: 26px 22px 24px;
  box-shadow: 0 16px 34px -18px rgba(0, 0, 0, .45);
  transition: transform .25s;
}
.cal-card:hover { transform: translateY(-4px); }
.c-yellow .cal-card, .c-cyan .cal-card { color: var(--ink); }
/* Connecteur entre la carte et la ligne */
.cal-card::after { content: ""; position: absolute; left: 50%; width: 2px; height: 27px; background: var(--c); transform: translateX(-50%); }
.cal-item:not(.is-down) .cal-card::after { top: 100%; }
.cal-item.is-down .cal-card::after { bottom: 100%; }
.cal-month { display: block; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; opacity: .9; }
.cal-day { display: block; font-size: 64px; font-weight: 800; line-height: 1.05; margin: 2px 0 8px; }
.cal-card h3 { font-size: 17px; font-weight: 600; line-height: 1.35; }
.cal-status:empty { display: none; }
.cal-status { display: inline-block; margin-top: 14px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 4px 12px; border-radius: 999px; background: rgba(255, 255, 255, .22); }
.cal-dot {
  position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; transform: translate(-50%, -50%);
  border-radius: 50%; background: var(--c); border: 4px solid var(--bg-alt); box-shadow: 0 0 0 2px var(--c);
}
.cal-item.is-now .cal-dot { animation: ping 1.8s ease-out infinite; }
.cal-item.is-past .cal-card { filter: grayscale(.85); opacity: .7; }
@keyframes ping { 0% { box-shadow: 0 0 0 2px var(--c); } 100% { box-shadow: 0 0 0 16px transparent; } }

/* Explorez les defis */
.domains { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.domain { grid-column: span 2; background: var(--card); border: 1px solid var(--border); border-top: 4px solid var(--c); border-radius: var(--radius); padding: 28px 26px; transition: transform .25s, box-shadow .25s; }
.domain:nth-child(4) { grid-column: 2 / span 2; }
.domain:hover { transform: translateY(-4px); box-shadow: 0 18px 36px -24px rgba(0, 0, 0, .4); }
.domain svg { width: 34px; height: 34px; fill: none; stroke: var(--c); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 16px; }
.domain h3 { font-size: 19px; margin-bottom: 10px; }
.domain p { margin: 0; color: var(--text-2); font-size: 15.5px; }

.scoring { margin-top: 40px; padding: 32px 36px; border-radius: var(--radius); background: var(--ink); color: #fff; }
.scoring h3 { font-size: 21px; margin-bottom: 20px; }
.scoring ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: s; }
.scoring li { position: relative; padding-top: 44px; color: #c9c9c4; font-size: 15.5px; counter-increment: s; }
.scoring li::before { content: "0" counter(s); position: absolute; top: 0; left: 0; font-family: var(--mono); font-size: 22px; font-weight: 700; color: var(--c-yellow); }
.scoring b { display: block; color: #fff; margin-bottom: 4px; }

/* Regles de participation */
.rules { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px 34px; }
.card-wide { grid-column: 1 / -1; }
.card h3 { font-size: 20px; margin-bottom: 18px; }
.checks { list-style: none; margin: 0; padding: 0; }
.checks li { position: relative; padding: 6px 0 6px 30px; color: var(--text-2); font-size: 15.5px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 11px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--c-green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.checks b { color: var(--text); font-weight: 600; }
.checks.two { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 36px; }
.rules-more { margin: 28px 0 0; color: var(--text-2); }

.term { background: #0f1013; border-radius: 10px; padding: 0 20px 16px; }
.term-bar { display: flex; align-items: center; gap: 8px; padding: 13px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); margin-bottom: 10px; }
.term-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--c-red); }
.term-bar i:nth-child(2) { background: var(--c-yellow); }
.term-bar i:nth-child(3) { background: var(--c-green); }
.term-bar span { font-family: var(--mono); font-size: 13px; color: #9b9b95; margin-left: 10px; }
.term ul { list-style: none; margin: 0; padding: 0; }
.term li { position: relative; padding: 6px 0 6px 20px; font-family: var(--mono); font-size: 14px; color: #e8e8e4; }
.term li::before { content: "×"; position: absolute; left: 0; color: var(--c-red); font-weight: 700; }

/* Recompenses : cartes sombres + carte orange pour les prix speciaux */
.prizes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.prize {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px;
  background: var(--ink); color: #fff; border-radius: 26px; padding: 34px 22px 32px;
  transition: transform .25s, box-shadow .25s;
}
.prize:hover { transform: translateY(-6px); box-shadow: 0 22px 40px -22px rgba(0, 0, 0, .6); }
:root[data-theme="dark"] .prize { background: var(--card); border: 1px solid var(--border); }
.prize .medal { width: 48px; height: 62px; margin-bottom: 14px; }
.prize-rank { font-size: 26px; font-weight: 800; line-height: 1.1; text-transform: uppercase; margin-bottom: 14px; }
.prize-rank sup { font-size: .55em; }
.prize-what { font-size: 17px; font-weight: 700; color: var(--c-yellow); line-height: 1.35; }
.prize-sub { font-size: 13.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: #c9c9c4; }
.prize-special, :root[data-theme="dark"] .prize-special { background: var(--c-orange); border-color: transparent; }
.prize-special .prize-what { color: var(--ink); }
.prize-special .prize-sub { color: #fff; }
.prize-note { margin: 28px auto 0; max-width: 640px; }

/* Medaille dessinee en CSS : disque + ruban */
.medal { position: relative; display: inline-block; }
.medal::before { content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: 72%; height: 50%; background: linear-gradient(90deg, var(--c-red) 0 48%, transparent 48% 52%, #9c2a32 52%); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 72%, 0 100%); }
.medal::after { content: ""; position: absolute; left: 0; top: 0; width: 100%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff8 0 12%, transparent 13%), var(--m); box-shadow: inset 0 0 0 3px rgba(0, 0, 0, .18), 0 0 0 3px var(--m-ring); }
.m-gold { --m: #e6b84a; --m-ring: #b98a22; }
.m-silver { --m: #cfd3d8; --m-ring: #8f959c; }
.m-bronze { --m: #cd8a52; --m-ring: #94582a; }
.m-special { --m: var(--c-cyan); --m-ring: #1a7f9b; }
.m-special::before { background: linear-gradient(90deg, var(--c-purple) 0 48%, transparent 48% 52%, #5f527e 52%); }

/* Partenaires */
.organizers { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.org { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 260px; padding: 22px 32px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); text-decoration: none; transition: border-color .2s; }
a.org:hover { border-color: var(--c-cyan); }
.org-role { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.org-logo { display: inline-flex; align-items: center; gap: 12px; font-size: 28px; font-weight: 800; letter-spacing: .03em; color: var(--text); }
.org-logo img { height: 50px; width: auto; }
.logo-plate { display: inline-flex; align-items: center; justify-content: center; background: #fff; border-radius: 8px; padding: 6px 10px; }
.logo-plate img { height: 70px; width: auto; display: block; }
.logo-plate-sm { padding: 4px 8px; margin-bottom: 12px; border: 1px solid var(--border); }
.logo-plate-sm img { height: 48px; }
.marquee {
  overflow: hidden; padding: 6px 0; margin-bottom: 20px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { list-style: none; margin: 0; padding: 0; display: flex; gap: 16px; width: max-content; animation: defile 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track li {
  flex: none; display: flex; align-items: center; justify-content: center;
  width: 210px; height: 92px; padding: 0 20px;
  background: var(--card); border: 1px solid var(--border); border-radius: 10px;
  color: var(--text-3); font-weight: 600; font-size: 14.5px; text-align: center; line-height: 1.3;
  filter: grayscale(1); opacity: .8; transition: filter .2s, opacity .2s;
}
.marquee-track li:hover { filter: none; opacity: 1; }
.marquee-track img { max-width: 150px; max-height: 52px; object-fit: contain; }
.marquee-track .ph { border-style: dashed; }
@keyframes defile { to { transform: translateX(-50%); } }

/* FAQ */
.faq-wrap { max-width: 880px; }
.faq details { border-bottom: 1px solid var(--border); }
.faq details:first-child { border-top: 1px solid var(--border); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 44px 20px 0; position: relative; font-weight: 600; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 15px; font-size: 26px; font-weight: 400; color: var(--accent); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--accent); }
.faq details p { margin: 0 0 20px; color: var(--text-2); }

/* Appel final */
.cta-band { background: var(--ink); color: #fff; padding: 72px 0; }
.cta { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.cta h2 { font-size: 34px; margin-bottom: 12px; }
.cta p { color: #c9c9c4; max-width: 560px; margin: 0; font-size: 17px; }

/* Pied de page */
.footer { background: var(--bg-alt); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 32px; padding-top: 56px; padding-bottom: 48px; }
.footer .brand img { height: 56px; }
.footer-grid > div:first-child .muted { margin-top: 18px; max-width: 340px; font-size: 15px; }
.footer h4 { font-family: var(--mono); font-size: 12px; font-weight: 400; text-transform: uppercase; letter-spacing: .14em; color: var(--text-3); margin-bottom: 16px; }
.footer-grid a:not(.brand) { display: block; color: var(--text); text-decoration: none; margin-bottom: 10px; font-size: 15px; }
.footer-grid a:not(.brand):hover { color: var(--accent); }
.footer-grid .muted { font-size: 15px; }

/* Barres de fond : seulement sur grand ecran, ou il reste de la place sur les cotes */
@media (max-width: 1279px) { .hero-bars { display: none; } }

/* Tablette */
@media (max-width: 1100px) {
  .nav-links { gap: 18px; }
  .nav-links a { font-size: 13.5px; }
  .brand img, .arpt-logo img { height: 44px; }
}
@media (max-width: 980px) {
  .menu-btn { display: grid; }
  .theme-btn { margin-left: auto; }
  .nav-links {
    display: none; position: absolute; left: 0; right: 0; top: 100%; margin: 0;
    flex-direction: column; gap: 0; padding: 8px 24px 16px;
    background: var(--bg); border-bottom: 1px solid var(--border); box-shadow: 0 16px 24px -16px rgba(0, 0, 0, .3);
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { font-size: 16px; padding: 12px 0; border-bottom: 1px solid var(--border); }
  .nav-links a::after { display: none; }
  .about, .rules { grid-template-columns: 1fr; gap: 32px; }
  .domains { grid-template-columns: 1fr 1fr; }
  .domain, .domain:nth-child(4) { grid-column: auto; }
  .domain:last-child { grid-column: 1 / -1; }
  .scoring ol { grid-template-columns: 1fr; gap: 20px; }
  .prizes { grid-template-columns: 1fr 1fr; }
  .hero-prizes ul { grid-template-columns: 1fr 1fr; }
  .checks.two { grid-template-columns: 1fr; }
  .cta { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  /* Calendrier vertical */
  .cal { grid-template-columns: 1fr; gap: 20px; padding-left: 36px; }
  .cal::before { left: 10px; right: auto; top: 0; bottom: 0; border-top: 0; border-left: 2px dashed var(--text-3); }
  .cal-item, .cal-item.is-down { min-height: 0; display: block; }
  .cal-item .cal-card, .cal-item.is-down .cal-card { max-width: none; margin: 0; text-align: left; }
  .cal-card::after { display: none; }
  .cal-dot { left: -26px; top: 34px; }
}
/* Mobile */
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .nav-in { height: 68px; gap: 8px; }
  .brand img { height: 38px; }
  .arpt-logo img { height: 36px; }
  :root[data-theme="dark"] .arpt-logo img { height: 32px; }
  .nav-links { padding: 4px 16px 12px; }
  .hero { padding: 48px 0 56px; }
  .hero-lead { font-size: 16.5px; }
  .cd-grid { gap: 8px; }
  .cd-grid div { min-width: 0; flex: 1; padding: 12px 4px 8px; }
  .cd-grid b { font-size: 28px; }
  .cd-grid span { font-size: 10.5px; letter-spacing: .04em; }
  .btn-register { height: 60px; padding: 0 40px; font-size: 19px; }
  .section { padding: 64px 0; }
  .sec-head { margin-bottom: 32px; }
  .domains, .prizes { grid-template-columns: 1fr; }
  .card { padding: 26px 22px; }
  .scoring { padding: 26px 22px; }
  .cal-day { font-size: 48px; }
  .cta h2 { font-size: 26px; }
  .footer-grid { grid-template-columns: 1fr; }
  .org { min-width: 0; flex: 1 1 100%; }
  .marquee-track li { width: 170px; height: 80px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee-track { flex-wrap: wrap; justify-content: center; width: auto; }
  .marquee-track li[aria-hidden="true"] { display: none; }
}
