/* ===========================================================
   EVARS — Éducation à la Vie Affective, Relationnelle et Sexuelle
   Feuille de style unique — pure CSS, aucune dépendance externe
   =========================================================== */

:root {
  /* Palette néon — inspirée du logo EVARS */
  --lavande:   #1e1535;
  --lavande-d: #9C6FDB;
  --menthe:    #0d2a24;
  --menthe-d:  #3DF0D0;
  --peche:     #2a1a10;
  --peche-d:   #FF7043;
  --ciel:      #0d1e2a;
  --ciel-d:    #5BB8F5;
  --rose:      #2a0d1a;
  --rose-d:    #F06292;
  --citron:    #1e1a00;
  --citron-d:  #F0C040;

  --encre:     #E8F0F8;
  --encre-douce: #8BAAC0;
  --creme:     #0d1b2a;
  --carte-fond: #132336;
  --ombre: rgba(0, 0, 0, 0.4);

  --rayon: 22px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--creme);
  background-image:
    radial-gradient(circle at 12% 8%, rgba(156, 111, 219, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 88% 4%, rgba(255, 112, 67, 0.1) 0%, transparent 35%),
    radial-gradient(circle at 50% 100%, rgba(61, 240, 208, 0.08) 0%, transparent 45%);
  background-attachment: fixed;
  color: var(--encre);
  font-family: "Avenir Next", "Century Gothic", "Segoe UI", -apple-system, sans-serif;
  line-height: 1.55;
}

/* Typo "display" : on simule un caractère affirmé avec une police système
   serif, en s'appuyant sur l'italique et l'espacement plutôt que sur un
   webfont (philosophie éco-responsable du site). */
h1, h2, h3, .titre-affiche {
  font-family: Georgia, "Iowan Old Style", "Times New Roman", serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--encre);
}

a { color: inherit; }

img, svg { max-width: 100%; display: block; }

/* ---------- En-tête ---------- */

.entete {
  position: static;
  z-index: 10;
  background: rgba(13, 27, 42, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(61, 240, 208, 0.18);
  box-shadow: 0 2px 24px rgba(0,0,0,0.35);
}

.entete-contenu {
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px 28px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 28px;
}

.marque {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.marque-logo {
  height: 208px;
  width: 208px;
  border-radius: 16px;
  object-fit: cover;
  border: 2px solid rgba(61, 240, 208, 0.4);
  box-shadow: 0 0 12px rgba(61, 240, 208, 0.25);
}

.entete-texte {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.marque-soustitre {
  font-size: 1.5rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: linear-gradient(90deg, #3DF0D0, #9C6FDB);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 600;
}

/* ---------- Bandeau d'intro ---------- */

.bandeau {
  max-width: 760px;
  margin: 0;
  padding: 0;
  text-align: left;
}

.bandeau h1 {
  font-size: 1.4rem;
  line-height: 1.25;
}

.bandeau h1 em {
  font-style: italic;
  background: linear-gradient(120deg, #3DF0D0, #9C6FDB);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.bandeau p {
  margin-top: 14px;
  color: var(--encre-douce);
  font-size: 1.02rem;
}

.bandeau-puces {
  margin-top: 22px;
  display: flex;
  gap: 10px;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.puce {
  font-size: 0.78rem;
  padding: 6px 14px;
  border-radius: 999px;
  color: var(--encre);
  font-weight: 600;
}
.puce.c1 { background: var(--lavande); }
.puce.c2 { background: var(--menthe); }
.puce.c3 { background: var(--peche); }
.puce.c4 { background: var(--ciel); }
.puce.c5 { background: var(--rose); }

/* ---------- Grille type Pinterest / Padlet ---------- */

.galerie {
  max-width: 1180px;
  margin: 0 auto;
  padding: 40px 28px 80px;
  column-count: 3;
  column-gap: 26px;
}

@media (max-width: 920px) { .galerie { column-count: 2; } }
@media (max-width: 600px) { .galerie { column-count: 1; } }

.cadre {
  display: block;
  break-inside: avoid;
  margin-bottom: 26px;
  background: var(--carte-fond);
  border-radius: var(--rayon);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 10px 30px var(--ombre);
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cadre:hover {
  transform: translateY(-4px) rotate(-0.3deg);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.4), 0 0 20px rgba(61, 240, 208, 0.12);
}

/* la "punaise" qui rappelle un tableau collaboratif type Padlet */
.cadre::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 22px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--pin, var(--rose-d));
  box-shadow: 0 3px 6px rgba(0,0,0,0.18);
  z-index: 2;
}

.cadre.t-lavande { --pin: var(--lavande-d); }
.cadre.t-menthe  { --pin: var(--menthe-d); }
.cadre.t-peche   { --pin: var(--peche-d); }
.cadre.t-ciel    { --pin: var(--ciel-d); }
.cadre.t-rose    { --pin: var(--rose-d); }
.cadre.t-citron  { --pin: var(--citron-d); }

.cadre-illu {
  height: 168px;
  width: 100%;
}

.cadre.t-lavande .cadre-illu { background: linear-gradient(160deg, var(--lavande), #fff); }
.cadre.t-menthe  .cadre-illu { background: linear-gradient(160deg, var(--menthe), #fff); }
.cadre.t-peche   .cadre-illu { background: linear-gradient(160deg, var(--peche), #fff); }
.cadre.t-ciel    .cadre-illu { background: linear-gradient(160deg, var(--ciel), #fff); }
.cadre.t-rose    .cadre-illu { background: linear-gradient(160deg, var(--rose), #fff); }
.cadre.t-citron  .cadre-illu { background: linear-gradient(160deg, var(--citron), #fff); }

.cadre-illu svg { width: 100%; height: 100%; }
.cadre-illu img { width: 100%; height: 100%; object-fit: cover; }

.cadre-corps { padding: 18px 20px 20px; }

.cadre-date {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--encre-douce);
  font-weight: 600;
}

.cadre-titre {
  margin-top: 6px;
  font-size: 1.18rem;
  line-height: 1.3;
}

.cadre-extrait {
  margin-top: 8px;
  font-size: 0.92rem;
  color: var(--encre-douce);
}

.cadre-lire {
  margin-top: 14px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--encre);
}
.cadre-lire::after { content: " →"; }

/* ---------- Pied de page ---------- */

.pied {
  border-top: 1px solid rgba(61, 240, 208, 0.12);
  padding: 30px 28px 50px;
  text-align: center;
  color: var(--encre-douce);
  font-size: 0.82rem;
}

/* ============== Page d'une action (détail) ============== */

.page-action { max-width: 760px; margin: 0 auto; padding: 0 28px 80px; }

.retour {
  display: inline-block;
  margin: 34px 0 18px;
  font-size: 0.85rem;
  color: var(--encre-douce);
  text-decoration: none;
}
.retour:hover { color: var(--encre); }

.action-entete { text-align: left; }

.action-tag {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 13px;
  border-radius: 999px;
  background: var(--rose);
  color: var(--encre);
}

.action-titre {
  margin-top: 14px;
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  line-height: 1.2;
}

.action-meta {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--encre-douce);
}

.action-hero {
  margin-top: 28px;
  height: 260px;
  border-radius: var(--rayon);
  background: linear-gradient(150deg, var(--lavande), var(--rose));
  overflow: hidden;
}
.action-hero svg { width: 100%; height: 100%; }

.action-corps { margin-top: 32px; font-size: 1.02rem; }
.action-corps h2 {
  font-size: 1.25rem;
  margin-top: 34px;
  margin-bottom: 10px;
}
.action-corps p { margin: 0 0 16px; }
.action-corps ul { padding-left: 20px; }
.action-corps li { margin-bottom: 8px; }

.action-encart {
  margin-top: 28px;
  padding: 18px 20px;
  border-radius: 16px;
  background: var(--menthe);
}
.action-encart p { margin: 0; }

.action-pied-nav {
  margin-top: 50px;
  padding-top: 24px;
  border-top: 1px solid rgba(52,48,61,0.1);
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
}

.video-responsive {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  border-radius: var(--rayon);
  overflow: hidden;
  box-shadow: 0 10px 30px var(--ombre);
}
.video-responsive iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-secours {
  margin-top: 10px;
  font-size: 0.85rem;
  text-align: right;
}
.video-secours a { color: var(--encre-douce); }
.video-secours a:hover { color: var(--encre); }

/* Accessibilité : focus visible partout */
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--lavande-d);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* ============== Diaporama (ex. Octobre rose) ==============
   Thème dédié, distinct du fond sombre du site : crème + violet
   pastel + texte orangé, repris de la maquette disposition-couleur.png */

.diaporama {
  max-width: 1180px;
  margin: 40px auto 80px;
  padding: 0 28px;
}

.diaporama-piste {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  border-radius: var(--rayon);
  box-shadow: 0 10px 30px var(--ombre);
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.diaporama-piste::-webkit-scrollbar { display: none; }

.diapo {
  position: relative;
  flex: 0 0 100%;
  scroll-snap-align: start;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 560px;
}

.diapo-image {
  background: #F2EEDC;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.diapo-cadre-image {
  width: 82%;
  aspect-ratio: 4 / 5;
  border-radius: 18px;
  overflow: hidden;
  background: #FBEAF0;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.25);
}
.diapo-cadre-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.diapo-texte {
  background: #E9D9F6;
  padding: 56px 68px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  color: #2E2338;
}

.diapo-tag {
  align-self: flex-start;
  background: #14121C;
  color: #fff;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
}

.diapo-titre {
  font-family: "Avenir Next", "Century Gothic", "Segoe UI", -apple-system, sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.02;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  color: #E0592F;
  margin: 0;
}

.diapo-sous {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2E2338;
}

.diapo-texte p {
  margin: 0;
  font-size: 2rem;
  line-height: 1.4;
  max-width: 26ch;
}

.diapo-liste, .diapo-stats {
  margin: 0;
  padding-left: 20px;
  font-size: 2rem;
  line-height: 1.4;
  max-width: 26ch;
}
.diapo-liste li, .diapo-stats li { margin-bottom: 10px; }
.diapo-stats strong { color: #E0592F; }

.diapo-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #14121C;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease;
}
.diapo-nav:hover { transform: translateY(-50%) scale(1.08); }
.diapo-nav.suivant { right: 24px; }
.diapo-nav.precedent { left: 24px; }

@media (max-width: 760px) {
  .diapo { grid-template-columns: 1fr; min-height: auto; }
  .diapo-image { padding: 28px 28px 0; }
  .diapo-cadre-image { width: 60%; aspect-ratio: 1 / 1; }
  .diapo-texte { padding: 32px 26px 76px; }
  .diapo-nav {
    top: auto;
    bottom: 20px;
    transform: none;
    width: 46px;
    height: 46px;
    font-size: 1.4rem;
  }
  .diapo-nav:hover { transform: scale(1.08); }
}

/* ---------- Barre d'outils + mode plein écran ---------- */

.diaporama-barre {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}

.diaporama-plein-ecran {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #14121C;
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: opacity 0.2s ease;
}
.diaporama-plein-ecran:hover { opacity: 0.82; }
.diaporama-plein-ecran svg { width: 16px; height: 16px; flex-shrink: 0; }

/* En plein écran, le navigateur agrandit la section entière : on
   supprime les contraintes de largeur et on grossit les textes pour
   qu'ils restent lisibles depuis le fond d'une salle de classe. */
.diaporama:fullscreen {
  max-width: none;
  width: 100vw;
  height: 100vh;
  margin: 0;
  padding: 36px;
  background: #14121C;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.diaporama:fullscreen .diaporama-barre {
  position: absolute;
  top: 24px;
  right: 24px;
  margin: 0;
  z-index: 10;
}
.diaporama:fullscreen .diaporama-piste {
  flex: 1;
  height: 100%;
  border-radius: 20px;
}
.diaporama:fullscreen .diapo { min-height: 100%; }
.diaporama:fullscreen .diapo-texte { padding: 64px 80px; gap: 22px; }
.diaporama:fullscreen .diapo-titre { font-size: clamp(3.4rem, 7vw, 6.4rem); }
.diaporama:fullscreen .diapo-sous { font-size: 1.6rem; }
.diaporama:fullscreen .diapo-texte p,
.diaporama:fullscreen .diapo-liste,
.diaporama:fullscreen .diapo-stats {
  font-size: 2.6rem;
  max-width: 30ch;
}
.diaporama:fullscreen .diapo-tag { font-size: 1rem; padding: 8px 18px; }
.diaporama:fullscreen .diapo-nav { width: 74px; height: 74px; font-size: 2.2rem; }
.diaporama:fullscreen .diapo-cadre-image { width: 88%; }
