/* ==========================================================
   FRESQUE LGBT+ — feuille de style commune à toutes les pages
   Palette et logique reprises du fichier d'origine
   ========================================================== */

:root {
  --vert: #072E00;          /* texte du menu et du pied de page */
  --rose: #ffb9d5;
  --orange: #f18d43;
  --jaune: #fded72;
  --turquoise: #4ddfb8;
  --violet: #9e4dff;
  --clair: #f5f5f5;
  --nav-h: 64px;
  --police-titre: "Arial Rounded MT Bold", "Arial Rounded", Arial, Helvetica, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
  font-family: Helvetica, Arial, sans-serif;
  color: #fff;
  line-height: 1.55;
  background: #2b1a5e;
  padding-top: var(--nav-h);
}

img { max-width: 100%; }
a { color: inherit; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Titres ---------- */

h1 {
  font-family: var(--police-titre);
  font-size: 2.1em;
  text-align: center;
  margin: 0 10px 12px;
  text-shadow: 2px 2px 3px rgba(0, 0, 0, .3);
  line-height: 1.2;
}

h2 {
  font-family: var(--police-titre);
  font-size: 1.5em;
  text-align: center;
  margin: 56px 5% 14px;
  text-shadow: 2px 2px 2px rgba(0, 0, 0, .25);
  line-height: 1.25;
}

h3 {
  font-family: var(--police-titre);
  font-size: 1.1em;
  margin-bottom: 8px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, .25);
}

p + p { margin-top: .8em; }

.lead {
  max-width: 760px;
  margin: 10px auto 0;
  text-align: center;
  font-size: 1.15rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, .3);
}

.sous-titre {
  text-align: center;
  font-style: oblique;
  font-family: 'Times New Roman', Times, serif;
  font-size: 1.15rem;
  line-height: 1.75;
}

/* ---------- Fonds de page (image + dégradé de secours) ---------- */

.page {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
}

/* voile léger pour garder le texte blanc lisible quel que soit le fond */
.page::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(15, 0, 40, .28);
  pointer-events: none;
}

.bg1 { background-image: url('images/background_1.png'), linear-gradient(135deg, #3f51b5 0%, #7b2fa3 40%, #c2185b 70%, #f57c00 100%); }
.bg2 { background-image: url('images/background_2.png'), linear-gradient(160deg, #1565c0, #26a69a 60%, #7cb342); }
.bg3 { background-image: url('images/background_3.png'), linear-gradient(160deg, #558b2f, #00897b 45%, #1e88e5); }
.bg4 { background-image: url('images/background_4.png'), linear-gradient(135deg, #00897b, #3949ab 50%, #8e24aa); }
.bg5 { background-image: url('images/background_5.png'), linear-gradient(135deg, #f57c00, #8e24aa 50%, #3949ab); }
.bg6 { background-image: url('images/background_6.png'), linear-gradient(160deg, #7b1fa2, #1e88e5 50%, #00acc1); }
.bg7 { background-image: url('images/background_7.png'), linear-gradient(160deg, #f4511e, #c2185b 60%, #6a1b9a); }
.bg8 { background-image: url('images/background_8.png'), linear-gradient(135deg, #ef6c00, #c2185b 50%, #5e35b1); }

.container {
  position: relative;
  max-width: 1040px;
  margin: 0 auto;
  padding: 48px 20px 90px;
}

/* ==========================================================
   BARRE DE NAVIGATION FIXE
   ========================================================== */

body > nav {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: var(--nav-h);
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1.5rem 0 1rem;
  background: rgb(245, 245, 245);
  box-shadow: 0 2px 5px rgba(0, 0, 0, .3);
}

.logo img {
  display: block;
  height: 44px;
  width: auto;
}

.logo { display: flex; align-items: center; min-height: 44px; font-weight: 700; color: var(--vert); text-decoration: none; }

.nav-menu {
  display: flex;
  gap: 1.4rem;
  list-style: none;
}

.nav-link {
  display: block;
  padding: .45rem 0 .3rem;
  color: var(--vert);
  text-decoration: none;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-bottom: 3px solid transparent;
  transition: .25s;
  white-space: nowrap;
}

.nav-link:hover { color: #000; border-bottom-color: var(--c, var(--rose)); }
.nav-link[aria-current="page"] { border-bottom-color: var(--c, var(--rose)); }

.nav-menu li:nth-child(5n+1) { --c: var(--rose); }
.nav-menu li:nth-child(5n+2) { --c: var(--orange); }
.nav-menu li:nth-child(5n+3) { --c: var(--jaune); }
.nav-menu li:nth-child(5n+4) { --c: var(--turquoise); }
.nav-menu li:nth-child(5n)   { --c: var(--violet); }

.hamburger {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 10px 6px;
}

.bar {
  display: block;
  width: 26px;
  height: 2px;
  margin: 5px auto;
  background: #333;
  transition: all .3s ease-in-out;
}

.nav-link:focus-visible,
.hamburger:focus-visible,
.pill:focus-visible,
.tile:focus-visible,
summary:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
nav .nav-link:focus-visible,
nav .hamburger:focus-visible { outline-color: var(--violet); }

@media (max-width: 1020px) {
  .hamburger { display: block; }

  .hamburger.active .bar:nth-child(2) { opacity: 0; }
  .hamburger.active .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .hamburger.active .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav-menu {
    position: fixed;
    top: var(--nav-h);
    right: 0;
    width: min(320px, 100%);
    flex-direction: column;
    gap: 0;
    padding: .5rem 1.4rem 1rem;
    background: rgba(255, 255, 255, .97);
    box-shadow: -2px 4px 8px rgba(0, 0, 0, .25);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform .3s, visibility .3s;
  }

  .nav-menu.active { transform: translateX(0); visibility: visible; }
  .nav-menu li { margin: 6px 0; }
  .nav-link { font-size: .95rem; }
}

/* ==========================================================
   ACCUEIL
   ========================================================== */

.hero { text-align: center; padding-top: 10px; }
.hero-logo { width: min(450px, 85%); height: auto; }

.accroche {
  margin-top: 18px;
  font-family: var(--police-titre);
  font-size: clamp(1.1rem, 2.6vw, 1.6rem);
  letter-spacing: .04em;
  text-shadow: 2px 2px 3px rgba(0, 0, 0, .3);
}

.icones { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; margin: 28px 0; }
.icones img { height: 90px; width: auto; }

/* gélules de navigation */

.pill-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 28px;
}

.pill {
  padding: 10px 20px;
  border-radius: 10px;
  background: var(--rose);
  color: #000;
  text-decoration: none;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  white-space: nowrap;
  transition: .2s ease;
  box-shadow: 2px 2px 1px rgba(255, 255, 255, .2);
}

.pill:hover { font-weight: 800; box-shadow: 2px 2px 1px rgba(255, 255, 255, .5); filter: brightness(.95); }

.pill_1 { background: var(--rose); }
.pill_2 { background: var(--orange); }
.pill_3 { background: var(--jaune); }
.pill_4 { background: var(--turquoise); }
.pill_5 { background: var(--violet); color: #fff; }

/* ==========================================================
   BLOCS COMMUNS
   ========================================================== */

.grille {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 26px;
}

.card {
  background: rgba(20, 5, 50, .38);
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 16px;
  padding: 22px;
  backdrop-filter: blur(2px);
}

.grille-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

.card h3 { font-size: 1.2em; }
.card ul { padding-left: 1.1em; }
.card li { margin: 4px 0; }

.card.accent { border-top: 6px solid var(--a, var(--rose)); }
.a-rose { --a: var(--rose); }
.a-orange { --a: var(--orange); }
.a-jaune { --a: var(--jaune); }
.a-turquoise { --a: var(--turquoise); }
.a-violet { --a: var(--violet); }

.chiffre {
  display: block;
  font-family: var(--police-titre);
  font-size: 2.2rem;
  line-height: 1.1;
  margin-bottom: 4px;
}

.centre { text-align: center; }

.bouton {
  display: inline-block;
  margin-top: 16px;
  padding: 10px 22px;
  border-radius: 999px;
  background: #fff;
  color: var(--vert);
  font-weight: 700;
  text-decoration: none;
}
.bouton:hover { background: var(--jaune); }

/* bandeaux avec photo (concept) */

.bandeau {
  position: relative;
  min-height: 190px;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 26px 8%;
  margin-top: 20px;
  background-image: var(--img), linear-gradient(120deg, #5e35b1, #1e88e5);
  background-size: cover;
  background-position: center;
}

.bandeau::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(15, 0, 40, .5);
}

.bandeau > div { position: relative; text-shadow: 1px 1px 3px rgba(0, 0, 0, .7); }
.bandeau h3 { font-size: 1.4em; }

/* ---------- Cartes de l'atelier (rendues en CSS) ---------- */

.cartes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px;
  margin-top: 26px;
}

.carte {
  position: relative;
  min-height: 160px;
  padding: 18px 14px 46px;
  border-radius: 10px;
  background: var(--k);
  color: #2b2b2b;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: Impact, "Arial Narrow Bold", Arial, sans-serif;
  font-size: 1.35rem;
  text-transform: uppercase;
  line-height: 1.15;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .3);
}

.carte small {
  font-family: Helvetica, Arial, sans-serif;
  font-size: .62rem;
  letter-spacing: .12em;
  margin-bottom: 8px;
}

.carte::after {
  content: "FRESQUE LGBT+";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 10px 0;
  background: #fff;
  border-radius: 0 0 10px 10px;
  color: #333;
  font-family: Helvetica, Arial, sans-serif;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .08em;
}

.k-rose { --k: #f9b4d6; }
.k-orange { --k: #f18d43; }
.k-jaune { --k: #fded72; }
.k-turquoise { --k: #7fc4b8; }
.k-violet { --k: #5b5bb5; color: #fff; }
.carte.citation { text-transform: none; font-size: 1.2rem; }

/* fiches Ma proposition / Mon engagement */

.fiche {
  background: #fff;
  color: #2b2b2b;
  border-radius: 10px;
  padding: 18px 20px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .3);
  font-size: .9rem;
}

.fiche h3 {
  color: #2b2b2b;
  text-shadow: none;
  font-family: Impact, "Arial Narrow Bold", Arial, sans-serif;
  text-transform: uppercase;
  font-size: 1.5rem;
  font-weight: 400;
  border-bottom: 2px dotted #999;
  padding-bottom: 6px;
}

.fiche p { margin-top: .7em; }
.fiche .lignes { margin-top: 12px; height: 80px; background: repeating-linear-gradient(transparent 0 19px, #bbb 19px 20px); }
.fiche .note { font-size: .75rem; font-style: italic; color: #555; }

/* ---------- Stats / jauges ---------- */

.stat {
  display: grid;
  grid-template-columns: 70px minmax(170px, 1fr) 1.5fr;
  gap: 22px;
  align-items: center;
  margin: 30px 0;
}

.stat > img { width: 56px; height: auto; justify-self: center; }

.gauge {
  height: 46px;
  padding: 4px;
  border: 2px solid rgba(255, 255, 255, .9);
  border-radius: 14px;
  background: rgba(255, 255, 255, .1);
}

.gauge-bar {
  height: 100%;
  width: var(--v);
  min-width: 70px;
  display: flex;
  align-items: center;
  padding-left: 12px;
  border-radius: 9px;
  font-weight: 700;
  font-size: 1.2rem;
  animation: grandir 1.1s ease-out;
}

.gauge-bar.jaune { background: var(--jaune); color: #222; }
.gauge-bar.rouge { background: #b3202a; }
.gauge-bar.violet { background: #7b2fd6; }

@keyframes grandir { from { width: 70px; } }

.stat p { font-size: .95rem; }
.source { font-style: italic; font-size: .8rem; opacity: .92; }

@media (max-width: 760px) {
  .stat { grid-template-columns: 1fr; gap: 10px; }
  .stat > img { justify-self: start; width: 44px; }
}

/* ---------- Pastilles numérotées (séquences) ---------- */

.sequences {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
  margin-top: 24px;
  counter-reset: seq;
}

.sequence {
  counter-increment: seq;
  position: relative;
  padding: 44px 18px 18px;
  background: rgba(20, 5, 50, .38);
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 16px;
}

.sequence::before {
  content: counter(seq);
  position: absolute;
  top: -16px; left: 18px;
  width: 38px; height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--jaune);
  color: #222;
  font-weight: 800;
}

.sequence h3 { font-size: 1rem; }
.sequence p { font-size: .9rem; }

/* ==========================================================
   TUILES RETOURNABLES (déroulé)
   ========================================================== */

.tiles {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.tile {
  width: 200px;
  height: 200px;
  perspective: 1000px;
  background: none;
  border: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
  text-align: center;
}

.tile-inner {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform .6s;
  transform-style: preserve-3d;
}

.tile.active .tile-inner { transform: rotateY(180deg); }
.tile:focus-visible .tile-inner { transform: rotateY(180deg); }
@media (hover: hover) {
  .tile:hover .tile-inner { transform: rotateY(180deg); }
}

.tile-front,
.tile-back {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  border-radius: 16px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .3);
}

.tile-front {
  background: rgba(20, 5, 50, .38);
  border: 1px solid rgba(255, 255, 255, .3);
}

.tile-front img { height: 58px; width: auto; }
.tile-front b { font-family: var(--police-titre); font-size: 1.05rem; line-height: 1.2; text-shadow: 1px 1px 2px rgba(0, 0, 0, .3); }
.tile-front .fleche { position: absolute; right: 12px; bottom: 8px; font-size: 1.1rem; opacity: .8; }

.tile-back {
  transform: rotateY(180deg);
  background: rgba(7, 46, 0, .78);
  font-size: .95rem;
}

.aide { text-align: center; font-size: .85rem; opacity: .9; margin-top: 14px; }

/* modules complémentaires */

.module { margin-top: 26px; }
.module .meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 16px; }
.etiquette { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--jaune); color: #222; font-size: .78rem; font-weight: 700; }
.etiquette.alt { background: var(--turquoise); }

.exemple { margin-top: 22px; }
.quiz-demo { display: flex; gap: 14px; margin-top: 14px; }
.quiz-demo span { flex: 1; text-align: center; padding: 10px; border-radius: 12px; font-weight: 800; color: #111; }
.quiz-demo .oui { background: #1fe58a; }
.quiz-demo .non { background: #ff4df2; }

/* ==========================================================
   ÉQUIPE
   ========================================================== */

.profil { display: grid; grid-template-columns: 220px 1fr; gap: 28px; align-items: start; }
.profil .photo { width: 200px; height: 200px; border-radius: 50%; object-fit: cover; border: 6px solid rgba(255, 255, 255, .45); justify-self: center; background: rgba(255, 255, 255, .15); }
.profil h3 { font-size: 1.5em; margin-bottom: 2px; }
.profil .role { opacity: .95; margin-bottom: 12px; }
.profil ul { padding-left: 1.1em; }
.profil li { margin: 5px 0; }

blockquote {
  margin: 22px 0 0;
  padding: 14px 18px;
  border-left: 5px solid var(--jaune);
  font-size: 1.1rem;
  font-style: oblique;
}

blockquote cite { display: block; margin-top: 8px; font-size: .9rem; font-style: normal; }

@media (max-width: 700px) {
  .profil { grid-template-columns: 1fr; }
}

.logos-createurs { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 30px; margin-top: 18px; }
.logos-createurs img { height: 64px; width: auto; }

/* ==========================================================
   APRÈS L'ATELIER / FORMATION / CONTACT
   ========================================================== */

.deux-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; margin-top: 26px; }
@media (max-width: 800px) { .deux-col { grid-template-columns: 1fr; } }

.photo-atelier { width: 100%; border-radius: 16px; box-shadow: 0 3px 10px rgba(0, 0, 0, .35); background: rgba(255, 255, 255, .15); min-height: 120px; }
.badge-img { width: min(260px, 70%); display: block; margin: 0 auto; }

.refs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 18px;
  margin-top: 26px;
}

.ref {
  display: grid;
  place-items: center;
  min-height: 130px;
  padding: 14px;
  border: 3px solid rgba(255, 255, 255, .9);
  border-radius: 26px;
}

.ref img { max-height: 80px; width: auto; background: #fff; padding: 6px 8px; border-radius: 6px; }

.contact-liste { list-style: none; text-align: center; font-size: 1.25rem; line-height: 2; }
.contact-liste a { text-decoration: underline; }

.rond { width: min(280px, 70%); aspect-ratio: 1; border-radius: 50%; object-fit: cover; display: block; margin: 26px auto 0; background: rgba(255, 255, 255, .15); }

.credits { font-size: .85rem; }
.credits li { margin: 4px 0; }
.credits a { word-break: break-word; }

/* ==========================================================
   BOUTONS FLOTTANTS
   ========================================================== */

.haut {
  position: fixed;
  bottom: 20px;
  right: 15px;
  z-index: 900;
  width: 42px; height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .55);
  color: #000;
  font-size: 1.2rem;
  font-weight: 700;
  box-shadow: 0 2px 5px rgba(0, 0, 0, .3);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}

.haut.visible { opacity: 1; pointer-events: auto; }
.haut:hover { background: rgba(255, 255, 255, .95); }

.reseaux {
  position: fixed;
  left: 15px;
  bottom: 20px;
  z-index: 900;
  display: none;
  flex-direction: column;
  gap: 10px;
}

.reseaux a {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(20, 5, 50, .45);
  opacity: .75;
  transition: .2s;
}

.reseaux a:hover { opacity: 1; }
.reseaux img { width: 24px; height: 24px; object-fit: contain; }
@media (min-width: 1200px) { .reseaux { display: flex; } }

/* ==========================================================
   PIED DE PAGE
   ========================================================== */

footer {
  background: var(--clair);
  color: var(--vert);
  text-align: center;
  font-size: 12px;
  padding: 18px 16px;
}

footer a { color: var(--vert); }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
