/* ===========================================================
   Titi et les Gros Minots — feuille de style
   Palette et polices définies en variables, voir CLAUDE.md
   =========================================================== */

:root {
  --rouge: #8b1e3f;
  --rouge-fonce: #611630;
  --jaune: #f4b942;
  --jaune-clair: #ffd57a;
  --creme: #fdf6e3;
  --brun: #2b1b17;
  --vert: #2f5d50;
  --blanc: #ffffff;

  --police-affiche: "Bungee", system-ui, sans-serif;
  --police-ronde: "Fredoka", system-ui, sans-serif;
  --police-texte: "Nunito", system-ui, -apple-system, sans-serif;

  --rayon: 18px;
  --ombre: 0 12px 0 rgba(43, 27, 23, 0.9);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--creme);
  color: var(--brun);
  font-family: var(--police-texte);
  line-height: 1.6;
}

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

a {
  color: inherit;
}

.conteneur {
  width: min(1100px, 100% - 2.5rem);
  margin-inline: auto;
}

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

.entete {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--creme);
  border-bottom: 4px solid var(--brun);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.9rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--police-affiche);
  font-size: 1.1rem;
  text-decoration: none;
  color: var(--rouge);
  line-height: 1;
}

.logo-image {
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

.logo span {
  display: block;
  font-family: var(--police-ronde);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--brun);
  margin-top: 0.2rem;
}

.nav-liens {
  list-style: none;
  display: flex;
  gap: 1.8rem;
  margin: 0;
  padding: 0;
}

.nav-liens a {
  text-decoration: none;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--brun);
  position: relative;
  padding-bottom: 3px;
}

.nav-liens a:hover {
  color: var(--rouge);
}

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: none;
  border: 3px solid var(--brun);
  border-radius: 10px;
  cursor: pointer;
}

.burger span {
  display: block;
  height: 3px;
  background: var(--brun);
  margin-inline: 8px;
  border-radius: 2px;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--rouge);
  color: var(--creme);
  padding-block: 5.5rem 6rem;
  text-align: center;
}

.hero-motif {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--rouge-fonce) 2px, transparent 2px);
  background-size: 26px 26px;
  opacity: 0.5;
}

.hero-contenu {
  position: relative;
  z-index: 1;
}

.hero-logo {
  width: clamp(120px, 22vw, 170px);
  height: auto;
  margin: 0 auto 1.4rem;
  border-radius: 50%;
  border: 4px solid var(--brun);
  box-shadow: 0 8px 0 var(--rouge-fonce);
}

.hero-kicker {
  font-family: var(--police-ronde);
  font-weight: 600;
  letter-spacing: 0.04em;
  font-size: 1.15rem;
  color: var(--jaune-clair);
  margin: 0 0 0.5rem;
}

.hero-titre {
  font-family: var(--police-affiche);
  font-size: clamp(2.6rem, 8vw, 5.5rem);
  line-height: 1.05;
  margin: 0 0 1.2rem;
  text-shadow: 4px 4px 0 var(--rouge-fonce);
}

.hero-accroche {
  font-size: 1.2rem;
  font-weight: 600;
  max-width: 44rem;
  margin: 0 auto 1.8rem;
}

.hero-accroche span {
  display: block;
}

.reseaux {
  list-style: none;
  display: flex;
  gap: 0.9rem;
  justify-content: center;
  margin: 0 0 2rem;
  padding: 0;
}

.reseau {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 3px solid var(--creme);
  color: var(--creme);
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.reseau:hover,
.reseau:focus-visible {
  background: var(--jaune);
  border-color: var(--brun);
  color: var(--brun);
  transform: translateY(-3px) rotate(-4deg);
}

.reseau svg,
.contact-lien svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bouton {
  display: inline-block;
  padding: 0.85rem 1.8rem;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  border: 3px solid var(--brun);
  transition: transform 0.15s ease;
}

.bouton:hover {
  transform: translateY(-3px) rotate(-1deg);
}

.bouton-plein {
  background: var(--jaune);
  color: var(--brun);
  box-shadow: var(--ombre);
}



/* ---------- Sections génériques ---------- */

.section {
  padding-block: 4.5rem;
}

.titre-section {
  font-family: var(--police-affiche);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--rouge);
  text-align: center;
  margin: 0 0 0.5rem;
}

.titre-clair {
  color: var(--jaune-clair);
}

.sous-titre {
  text-align: center;
  font-family: var(--police-ronde);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--brun);
  margin: 0 0 2.5rem;
}

.sous-titre-clair {
  color: var(--creme);
}

.texte-large {
  max-width: 42rem;
  margin: 0 auto;
  text-align: center;
  font-size: 1.15rem;
}

.contact {
  background: var(--jaune-clair);
}

/* ---------- Membres ---------- */

/* Section plus large que le conteneur standard pour laisser de la place aux 7 cartes */
.minots .conteneur {
  width: min(1340px, 100% - 2.5rem);
}

.grille-minots {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(150px, 1fr);
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.6rem 0.3rem 1.6rem;
}

.carte-minot {
  background: var(--blanc);
  border: 3px solid var(--brun);
  border-radius: var(--rayon);
  padding: 1.5rem 1rem;
  text-align: center;
  box-shadow: 0 8px 0 rgba(43, 27, 23, 0.9);
  scroll-snap-align: start;
  transition: transform 0.2s ease;
  cursor: default;
}

.carte-minot:hover,
.carte-minot:focus-within {
  transform: translateY(-6px) rotate(-1.5deg);
}

.carte-minot:nth-child(even):hover {
  transform: translateY(-6px) rotate(1.5deg);
}

.avatar-minot {
  width: 86px;
  height: 86px;
  margin: 0 auto 0.8rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--police-affiche);
  font-size: 1.5rem;
  color: var(--creme);
  border: 3px solid var(--brun);
}

.nom-minot {
  font-family: var(--police-affiche);
  font-size: 1rem;
  line-height: 1.2;
  margin: 0 0 0.3rem;
  color: var(--rouge);
}

.role-minot {
  font-family: var(--police-ronde);
  font-size: 1.1rem;
  line-height: 1.25;
  margin: 0 0 0.5rem;
  color: var(--vert);
  font-weight: 600;
}

.bio-minot {
  font-size: 0.92rem;
  line-height: 1.45;
  margin: 0;
}

/* ---------- Vidéo ---------- */

.video {
  background: var(--brun);
  color: var(--creme);
}

.cadre-video {
  max-width: 46rem;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--rayon);
  border: 3px solid var(--jaune);
  overflow: hidden;
}

.cadre-video iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.video-placeholder {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: repeating-linear-gradient(
    45deg,
    rgba(244, 185, 66, 0.08),
    rgba(244, 185, 66, 0.08) 14px,
    transparent 14px,
    transparent 28px
  );
  font-size: 1.3rem;
  font-weight: 800;
}

.video-placeholder-note {
  font-size: 0.95rem;
  font-weight: 600;
  opacity: 0.75;
}

/* ---------- Contact ---------- */

.contact-contenu {
  text-align: center;
}

.contact-liens {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.contact-lien {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  border: 3px solid var(--brun);
  background: var(--jaune);
  text-decoration: none;
  font-weight: 800;
  color: var(--brun);
  transition: transform 0.15s ease;
}

.contact-lien:hover {
  transform: translateY(-3px) rotate(-1deg);
}



.contact-note {
  font-size: 0.85rem;
  opacity: 0.6;
}

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

.pied {
  text-align: center;
  padding: 1.8rem 1rem;
  background: var(--brun);
  color: var(--creme);
  font-size: 0.85rem;
}

.pied-ligne {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.3rem 0;
  margin: 0;
  padding: 0;
}

/* Petit point séparateur entre les éléments, masqué en début de ligne */
.pied-ligne li + li::before {
  content: "·";
  margin-inline: 0.8rem;
  opacity: 0.5;
}

.pied a {
  color: var(--jaune-clair);
  font-weight: 700;
  text-decoration: none;
}

.pied a:hover,
.pied a:focus-visible {
  text-decoration: underline;
}

/* ---------- Responsive ---------- */

@media (max-width: 720px) {
  .burger {
    display: flex;
  }

  .nav-liens {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--creme);
    border-bottom: 4px solid var(--brun);
    flex-direction: column;
    align-items: center;
    padding: 1.2rem 0;
    gap: 1rem;
    display: none;
  }

  .nav-liens.ouvert {
    display: flex;
  }

  .hero {
    padding-block: 4rem 4.5rem;
  }

  .pied-ligne {
    flex-direction: column;
  }

  .pied-ligne li + li::before {
    content: none;
  }
}
