/* ==========================================================================
   COOL KIDZ ROUEN — feuille de style
   Palette et formes reprises des agendas Canva.
   ========================================================================== */

/* --------------------------------------------------- Helvetica Now (licence)
   Helvetica Now est une police commerciale (Monotype/Linotype) : elle n'est
   pas fournie avec ce site. Si vous possédez une licence web valide,
   déposez les fichiers .woff2 dans un dossier assets/fonts/ puis
   décommentez et adaptez le bloc ci-dessous — les variables --font-display
   et --font-body de :root plus bas s'appliqueront alors automatiquement.

@font-face {
  font-family: "Helvetica Now Text";
  src: url("../fonts/HelveticaNowText-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Helvetica Now Text";
  src: url("../fonts/HelveticaNowText-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Helvetica Now Display";
  src: url("../fonts/HelveticaNowDisplay-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
   Sans ces fichiers, le site utilise Helvetica Neue / Arial en secours :
   visuellement très proche, aucune casse.
   ========================================================================== */

:root {
  /* Palette officielle Cool Kidz Rouen — reprise du logo & des agendas */
  --cream: #feffed;
  --ink: #000000;
  --red: #ef3220;
  --blue: #397dc9;
  --yellow: #fbc120;

  /* Alias de rôle (facilite une évolution future de palette) */
  --brand-primary: var(--red);
  --brand-secondary: var(--blue);
  --brand-accent: var(--yellow);

  --radius-card: 32px;
  --radius-pill: 999px;
  --maxw: 940px;

  /* Helvetica Now est une police commerciale (Monotype) : elle n'est pas
     chargée depuis un CDN ici. Si vous disposez d'une licence (Adobe Fonts,
     Monotype, ou fichiers achetés), voir le bloc @font-face commenté juste
     au-dessus de ce fichier — dès que les fichiers sont en place, ces noms
     sont automatiquement pris en compte, sans rien changer d'autre.
     En attendant, le site utilise Helvetica Neue / Arial, très proches. */
  --font-display: "Helvetica Now Display", "Helvetica Now Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body: "Helvetica Now Text", "Helvetica Now Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

a { color: inherit; }

/* Accessible mais invisible à l'écran : garde le H1 riche en mots-clés
   pour le référencement sans dupliquer visuellement le logo. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------- confettis déco */
.confetti {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.confetti span {
  position: absolute;
  border-radius: 50%;
  opacity: .55;
}

/* ------------------------------------------------------------------ header */
.site-header {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 54px 0 8px;
}

.emblem {
  width: clamp(150px, 32vw, 230px);
  height: auto;
  display: block;
  margin: 0 auto;
}

.tagline {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--red);
  font-size: clamp(12px, 2.4vw, 15px);
  margin: 10px 0 0;
}

.week-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  align-items: center;
  margin: 28px 0 0;
}

.week-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(20px, 4vw, 28px);
  color: var(--blue);
  margin: 26px 0 0;
  text-align: center;
}

.week-select {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  padding: 10px 16px;
  border: 3px solid var(--ink);
  border-radius: var(--radius-pill);
  background: #fff;
  cursor: pointer;
}

/* ------------------------------------------------------------------ boutons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  padding: 12px 18px;
  border-radius: var(--radius-pill);
  border: 3px solid var(--ink);
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 4px 0 var(--ink); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--sm { font-size: 13px; padding: 9px 14px; border-width: 2px; }

/* ----------------------------------------------------------- nav des jours */
.day-nav {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--cream);
  padding: 14px 0;
  margin-top: 26px;
  border-bottom: 3px solid var(--ink);
}
.day-nav ul {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  list-style: none;
  margin: 0;
  padding: 0;
  scrollbar-width: none;
}
.day-nav ul::-webkit-scrollbar { display: none; }
.day-nav a {
  display: inline-block;
  white-space: nowrap;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  padding: 9px 15px;
  border: 2px solid var(--ink);
  border-radius: var(--radius-pill);
  background: #fff;
}
.day-nav a:hover { background: var(--yellow); }

/* -------------------------------------------------------------- jour / bloc */
main { position: relative; z-index: 1; padding-bottom: 60px; }

.day {
  margin: 46px 0 0;
  scroll-margin-top: 80px;
}

.day-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 14px;
}
.day-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(38px, 8vw, 74px);
  line-height: 1;
  margin: 0;
}
.day-date {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(16px, 3.4vw, 26px);
}

.day-card {
  border-radius: var(--radius-card);
  padding: 30px 26px;
}
/* Les 4 styles de jour tournent sur la semaine : les 3 couleurs de marque,
   plus une 4e variante "carte crème à bordure noire" pour rythmer sans
   sortir de la palette officielle. */
.day--red    .day-card { background: var(--red); }
.day--blue   .day-card { background: var(--blue); }
.day--yellow .day-card { background: var(--yellow); }
.day--cream  .day-card { background: var(--cream); border: 4px solid var(--ink); }
.day--cream  .event + .event { border-top-color: rgba(0, 0, 0, .25); }

.day-note {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(19px, 3.6vw, 26px);
  line-height: 1.35;
  margin: 0;
  text-align: center;
  padding: 14px 6px;
}

/* ------------------------------------------------------------- événements */
.event + .event {
  margin-top: 26px;
  padding-top: 26px;
  border-top: 3px dotted rgba(0, 0, 0, .45);
}

.event-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  flex-wrap: wrap;
}

.event-title {
  font-size: clamp(19px, 3.4vw, 23px);
  font-weight: 700;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: .01em;
  margin: 0;
}
.event-title a { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.event-title a:hover { background: var(--yellow); }

.event-sub {
  display: block;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-top: 3px;
}

.event-time {
  flex-shrink: 0;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
}

.event-desc { margin: 12px 0 14px; }

.event-meta {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
  font-size: 15.5px;
}
.event-meta li {
  display: flex;
  gap: 9px;
  align-items: flex-start;
}
.event-meta .ico {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  color: var(--ink);
}
.event-meta .ico svg { display: block; width: 100%; height: 100%; }

.event-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 16px;
}
.event-actions .label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-right: 2px;
}

/* -------------------------------------------------------------- pied de page */
.site-footer {
  position: relative;
  z-index: 1;
  border-top: 3px solid var(--ink);
  padding: 34px 0 60px;
  text-align: center;
}
.footer-logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 34px;
  color: var(--blue);
  margin: 0 0 6px;
}
.footer-links {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 16px 0 0;
}
.footer-note { font-size: 14px; margin-top: 20px; opacity: .7; }

/* ------------------------------------------------------------------ mobile */
@media (max-width: 560px) {
  body { font-size: 16px; }
  .day-card { padding: 24px 18px; border-radius: 26px; }
  .event-time { font-size: 13px; padding: 8px 13px; }
  .site-header { padding-top: 36px; }
}

@media print {
  .day-nav, .event-actions, .week-switch, .confetti, .site-footer .footer-links { display: none; }
  .day-card { break-inside: avoid; }
}
