/* ========== CSS Architecture ==========
   - Variables
   - Reset & Base
   - Layout: header, nav, container, sections, footer
   - Components: buttons, events, team, forms, social list
   - Utilities & Responsive
*/

/* Variables */
:root {
  --color-bg: #0a0a0a; /* near black */
  --color-text: #e5e7eb; /* light gray for readability on dark */
  --color-black: #000000;
  --color-primary: #facc15; /* yellow */
  --color-primary-strong: #f59e0b; /* amber */
  --color-accent: rgba(250, 204, 21, 0.08); /* subtle yellow panel */
  --color-muted: rgba(255, 255, 255, 0.18); /* borders on dark */
}

/* Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue",
    Arial, sans-serif;
  margin: 0;
  background: linear-gradient(180deg, #000000 0%, #0b0b0b 40%, #111111 100%);
  background-size: cover;
}
h1,
h2,
h3 {
  line-height: 1.25;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}

/* Type scale for friendly hierarchy */
h1 {
  font-size: clamp(1.8rem, 2.6vw, 2.4rem);
  color: #ffffff;
  margin: 0 0 8px;
}
h2 {
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  color: #f8fafc;
  margin: 0 0 6px;
}
h3 {
  font-size: clamp(1.1rem, 1.6vw, 1.25rem);
  color: #e5e7eb;
  margin: 0 0 4px;
}
p {
  margin: 0.5rem 0 0;
}

/* Full-screen animated background with parallax shift */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(
      800px 500px at 15% 15%,
      rgba(250, 204, 21, 0.14),
      transparent 60%
    ),
    radial-gradient(
      900px 520px at 85% 25%,
      rgba(253, 224, 71, 0.1),
      transparent 60%
    ),
    radial-gradient(
      700px 480px at 35% 85%,
      rgba(245, 158, 11, 0.12),
      transparent 60%
    ),
    linear-gradient(180deg, #000000 0%, #0b0b0b 45%, #111111 100%);
  background-size: 120% 120%, 120% 120%, 120% 120%, cover;
  background-repeat: no-repeat;
  animation: bg-pan 22s ease-in-out infinite alternate;
  transform: translateY(var(--bg-shift, 0px));
  will-change: transform, background-position;
}

@keyframes bg-pan {
  0% {
    background-position: 0% 0%, 100% 0%, 50% 100%, center;
  }
  100% {
    background-position: 100% 100%, 0% 100%, 50% 0%, center;
  }
}

@media (prefers-reduced-motion: reduce) {
  body::before {
    animation: none;
    transform: none;
  }
}

/* Layout */
.container {
  width: min(1100px, 92%);
  margin-inline: auto;
}
/* Container modifiers (none active) */
/* Vertical rhythm inside sections */
section .container > * + * {
  margin-top: 10px;
}
@media (min-width: 768px) {
  section .container > * + * {
    margin-top: 20px;
  }
}
section p + p {
  margin-top: 10px;
}
section ul {
  margin: 12px 0 0 1.25rem;
}
section li + li {
  margin-top: 6px;
}
section .container > p {
  max-width: 72ch;
}
section .container .intro p {
  max-width: 72ch;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  color: #fff;
  background: rgba(10, 10, 10, 0.55);
  border-bottom: 1px solid rgba(250, 204, 21, 0.18);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
}
@supports not (
  (backdrop-filter: blur(10px)) or (-webkit-backdrop-filter: blur(10px))
) {
  .site-header {
    background: rgba(0, 0, 0, 0.6);
  }
}
.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 14px 0;
}
.brand {
  display: inline-flex;
  align-items: center;
}
.logo {
  height: 48px;
  width: auto;
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 10px;
  padding: 0;
  margin: 0;
}
.site-nav a {
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.2px;
}

section {
  padding: 52px 0;
  scroll-margin-top: 72px;
}

.section-muted {
  background-color: var(--color-accent);
}

footer {
  text-align: center;
  color: #cbd5e1;
  padding: 24px 0;
}

/* Components */
.nav-link {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 10px;
  color: #e5e7eb;
  border: 1px solid rgba(250, 204, 21, 0.2);
  background: rgba(250, 204, 21, 0.06);
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease,
    border-color 0.2s ease;
}
.nav-link:hover {
  transform: translateY(-2px);
  background-color: rgba(250, 204, 21, 0.22);
  border-color: rgba(185, 151, 16, 0.38);
  color: #ffffff;
}

/* Home */
#accueil {
  background-color: transparent;
  color: var(--color-text);
}

.intro {
  color: var(--color-text);
  display: flex;
  align-items: flex-start;
  gap: 24px;
  /*margin-top: 12px;*/
  flex-direction: row;
  flex-wrap: wrap;
}

.intro p{
  flex: 1 1 100%; /* chaque paragraphe prend jusqu'à 45% de la largeur */

}

.cerveau {
  max-width: 280px;
  flex: 0 0 auto;
  align-content: center;
}


.Activites {
  color: var(--color-text);
  display: block; /* natural reading flow for Activités */
  margin-top: 20px;
}
#activites h2 {
  margin-bottom: 8px;
}
#activites p {
  max-width: 200ch;
}
#activites ul {
  margin-top: 12px;
}
#activites li + li {
  margin-top: 6px;
}

/* Events */
#evenements {
  background-color: transparent;
  color: var(--color-text);
}
.events {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 16px;
  color: var(--color-text);
}
.event {
  background: rgba(250, 204, 21, 0.06);
  border: 1px solid rgba(250, 204, 21, 0.2);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  padding: 18px;
  border-radius: 12px;
  color: var(--color-text);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* pousse la date en bas */
  min-height: 210px; /* adapte selon ta hauteur moyenne */
}

.event:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(250, 204, 21, 0.12);
  border-color: rgba(250, 204, 21, 0.36);
}
.event h3 {
  color: #ffffff;
  margin-top: 0;
}

.event-date {
  margin-top: 12px;
  text-align: right;
  font-size: 0.85rem;
  color: #ffcb25;
  opacity: 0.85;
  border-top: 1px solid rgba(250, 204, 21, 0.15);
  padding-top: 6px;
}

/* Team */
#equipe {
  background-color: transparent;
  color: var(--color-text);
}
.team {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.member {
  text-align: center;
  background: rgba(250, 204, 21, 0.06);
  border: 1px solid rgba(250, 204, 21, 0.2);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  padding: 16px;
  border-radius: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.member:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(250, 204, 21, 0.12);
  border-color: rgba(250, 204, 21, 0.36);
}


/* Contact */
#contact {
  background-color: transparent;
  color: var(--color-text);
}
/* Add extra space under contact section on index only */
#main #contact {
  margin-bottom: 96px;
}
form {
  display: flex;
  flex-direction: column;
  max-width: 640px;
  margin: 0 auto;
}
/* Better spacing for the contact page form */
.contact-form {
  width: 100%;
  gap: 12px;
}
.contact-form input,
.contact-form textarea,
.contact-form button {
  width: 100%;
}
form label {
  margin: 8px 0 4px;
}
form input,
form textarea {
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--color-muted);
  font: inherit;
  color: var(--color-text);
}
form textarea {
  min-height: 140px;
  resize: vertical;
}
form button {
  padding: 10px 16px;
  background-color: var(--color-primary);
  color: #0a0a0a;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}
form button:hover {
  background-color: var(--color-primary-strong);
  transition: transform 0.2s ease, background-color 0.2s ease;
  transform: translateY(-1px);
}

/* Utilities & Responsive */
.text-center {
  text-align: center;
}

@media (max-width: 900px) {
  .header-bar {
    flex-wrap: wrap;
    justify-content: center;
    padding: 10px 0;
  }
  .site-nav {
    width: 100%;
  }
  .site-nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }
  .logo {
    height: 40px;
  }
  .event,
  .member {
    border-radius: 10px;
  }
  .events {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
  .team {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
  .site-header {
    -webkit-backdrop-filter: saturate(140%) blur(6px);
    backdrop-filter: saturate(140%) blur(6px);
  }
}

@media (max-width: 768px) {
  .intro {
    flex-direction: column;
    gap: 16px;
  }
  .cerveau {
    max-width: 240px;
    margin: 0 auto;
    align-content: center;
    margin-top: 5px;
  }
  section {
    padding: 36px 0;
  }
  h1 {
    font-size: clamp(1.6rem, 5vw, 2rem);
  }
  h2 {
    font-size: clamp(1.25rem, 3.6vw, 1.6rem);
  }
  h3 {
    font-size: clamp(1.05rem, 3vw, 1.2rem);
  }
}

@media (max-width: 600px) {
  .cerveau {
    max-width: 220px;
    align-content: center;
  }
  .events {
    grid-template-columns: 1fr;
  }
  .team {
    grid-template-columns: 1fr;
  }
  .site-nav ul {
    gap: 6px;
  }
  .navlink,
  .nav-link {
    padding: 12px 14px;
  }
  footer {
    padding: 18px 0;
  }
}

@media (max-width: 480px) {
  .logo {
    height: 32px;
  }
  .nav-link {
    max-width: 100%;
    border-radius: 8px;
  }
  section {
    padding: 28px 0;
  }
}


/* Hero section - Vidéo en fond */

@font-face {
    font-family: 'Android 101';
    src: url('font/android101.ttf') format('truetype');
}

.hero {
    position: relative;
    height: 100vh; /* Prendre toute la hauteur de l'écran */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    overflow: hidden; /* Cache les débordements de la vidéo */
}

.hero .background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Couvre toute la section sans déformation */
    z-index: -1; /* Place la vidéo derrière le texte */
}

.hero .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Superposition sombre pour améliorer la lisibilité du texte */
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1; /* Place le texte au-dessus de la vidéo */
    color: #FFCB25; /* Texte jaune pour contraster sur fond sombre */
    padding: 0 20px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7); /* Ombre légère pour améliorer la lisibilité */
}

.hero-content h2 {
    font-family: 'Android 101', sans-serif;
    color: #FFC000;
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero h3 {
    font-family: 'open sans', sans-serif;
    font-style: italic;
    
    max-width: 800px;
    margin: 0 auto;
}

/* (removed duplicate 900px nav block) */


@media (max-width: 768px) {
  h1 {
    font-size: clamp(1.6rem, 5vw, 2rem);
  }
  h2 {
    font-size: clamp(1.25rem, 3.6vw, 1.6rem);
  }
  h3 {
    font-size: clamp(1.05rem, 3vw, 1.2rem);
  }
  .hero h2 {
    font-size: 2rem; /* Ajuste la taille du titre dans la section hero */
  }
}

@media (max-width: 600px) {
  form {
    max-width: 100%;
    padding: 16px 12px;
  }
  .contact-form {
    padding: 0 8px; /* reduce inner padding so fields feel wider */
    gap: 14px;
  }
  .contact-form input,
  .contact-form textarea,
  .contact-form button {
    font-size: 1rem;
    padding: 14px;
  }
  .contact-form textarea {
    min-height: 180px;
  }
  form label {
    font-size: 1.05rem;
  }
}

/* (removed duplicate hero block; using the primary one above) */

/* Menu de base */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #000;
    padding: 10px;
}

.nav-list {
    list-style-type: none;
    display: flex;
    gap: 20px;
}

.nav-list li a {
    color: #FFCB25;
    text-decoration: none;
    font-size: 1.2rem;
}


/* --- Sections plein écran (optional utility) --- */
.section-full {
  min-height: 100vh;          /* pleine hauteur */
  display: flex;
  align-items: center;         /* centrer verticalement */
  justify-content: center;     /* centrer horizontalement */
  flex-direction: column;
  padding: 4rem 2rem;
  box-sizing: border-box;
}

/* --- Animation d’apparition --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Mobile Nav Overrides (natural wrap on phones) --- */
@media (max-width: 768px) {
  .site-nav ul,
  .site-nav .nav-list {
    display: flex;
    flex-direction: row !important;
    flex-wrap: wrap;     /* allow wrapping to new lines */
    gap: 5px;
    justify-content: center;
    align-items: center;

  }
  .site-nav ul li,
  .site-nav .nav-list li {
    flex: 0 1 auto;      /* allow items to wrap naturally */
  }
  .site-nav .nav-link {
    width: auto;
    max-width: 100%;
    display: inline-flex;
    white-space: normal; /* allow text to wrap if needed */
    padding: 6px 8px;
    font-size: 0.65rem;
  }
  
}

/* Grid générique (même logique que .events) */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 16px;
  color: var(--color-text);
}

/* Carte générique = clone de .event */
.card {
  background: rgba(250, 204, 21, 0.06);
  border: 1px solid rgba(250, 204, 21, 0.2);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  padding: 18px;
  border-radius: 12px;
  color: var(--color-text);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(250, 204, 21, 0.12);
  border-color: rgba(250, 204, 21, 0.36);
}
.card h3 {
  color: #fff;
  margin: 0 0 6px 0;
  font-size: 1.05rem;
}

/* Optionnel : petite pastille icône/emoji en tête */
.card .icon {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(250,204,21,.35);
  margin-bottom: 10px;
  font-size: 1.1rem;
}

/* Variante image (pour une galerie “encadrée”) */
.card--media { padding: 0; overflow: hidden; }
.card--media img { width: 100%; height: 180px; object-fit: cover; display: block; }
.card--media .caption { padding: 12px 14px; color: var(--color-text); }




.team-grid {
  align-items: stretch;
  justify-items: center;
}

.member-card {
  text-align: center;
  padding-top: 24px;
}

.avatar-placeholder {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 2px solid rgba(255, 203, 37, 0.6);
  background: radial-gradient(circle at 30% 30%, rgba(255, 203, 37, 0.15), rgba(255, 203, 37, 0.05) 70%, transparent 100%);
  color: #ffcb25;
  font-size: 1.8rem;
  font-weight: 600;
  font-family: "Android101", system-ui, sans-serif;
  display: flex;              /* plus stable que grid sur iOS */
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px auto;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  box-shadow: 0 0 8px rgba(255, 203, 37, 0.08) inset, 0 0 6px rgba(255, 203, 37, 0.05);
  -webkit-transform: translateZ(0); /* évite le rendu plat sur Safari */
  will-change: transform;
}

.member-card:hover .avatar-placeholder {
  transform: scale(1.05);
  border-color: rgba(255, 203, 37, 0.9);
  box-shadow: 0 0 12px rgba(255, 203, 37, 0.25);
}


.member-name {
  color: #fff;
  margin: 0.4rem 0 0.2rem;
  font-size: 1.1rem;
}
.role {
  font-size: .9rem;
  opacity: .9;
  margin-bottom: .5rem;
  border: 1px solid rgba(250,204,21,.35);
  border-radius: 999px;
  padding: .15rem .6rem;
  display: inline-block;
}
.bio {
  opacity: .9;
  font-size: .92rem;
  line-height: 1.4;
  text-align: justify;
}

.callout {
  margin-top: 24px;
  text-align: center;
}


/* Layout colonne pour pousser le footer en bas */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;  /* plein écran */
}
/* Le footer se colle en bas quand la page est courte */
footer {
  margin-top: auto;           
  text-align: center;
  padding: 10px 0;
  color: var(--color-text, #fff);
}




/*pb sur iphone, bandes noires en bas*/
/* === Fix spécifique iPhone (bande en bas / 100vh) === */
html, body {
  
  height: 100%;
}

/* évite la bande liée à la zone "home indicator" */
body {
  padding-bottom: env(safe-area-inset-bottom);
}

/* corrige les sections plein écran (hero, section-full, etc.) */
.hero, .section-full {
  min-height: 100vh;
}

@supports (min-height: 100dvh) {
  .hero, .section-full {
    min-height: 100dvh;
  }
}

@supports (min-height: 100svh) {
  .hero, .section-full {
    min-height: 100svh;
  }
}
