/* ===========================================
   style.css — Feuille de styles de La Guilde
   Contient toute la mise en forme du site :
   variables, navigation, hero, sections, cards,
   responsive, etc.
   =========================================== */

/* ===========================================
   VARIABLES CSS — Palette et typographie
   Thème "vitrail" : fond bordeaux très sombre,
   accents orange (principal) et cyan (secondaire),
   repris des couleurs du logo (papillon + dé « 86 »).

   Note maintenance : presque toutes les couleurs du site
   passent par ces variables. Pour changer le thème, il suffit
   en grande partie de modifier les valeurs ci-dessous.
   =========================================== */
:root {
  --color-bg-dark: #241019;      /* Bordeaux très sombre (fonds sombres, navbar, footer) */
  --color-bg-medium: #3a1a26;    /* Bordeaux un peu plus clair (cards sur fond sombre) */
  --color-bg-light: #f5f0eb;     /* Crème (fond clair par défaut) */
  --color-bg-alt: #eae2d6;       /* Beige (sections alternées) */
  --color-gold: #e8871e;         /* ACCENT PRINCIPAL — orange du logo (liens, titres, CTA) */
  --color-gold-light: #f4a54d;   /* Orange clair (survol) */
  --color-text-light: #f2e9e4;   /* Texte clair (sur fond sombre) */
  --color-text-dark: #2b2422;    /* Texte foncé (sur fond clair) */
  --color-text-muted: #b0a89e;   /* Texte atténué */
  --color-accent: #2ba7cf;       /* ACCENT SECONDAIRE — cyan du logo (encadrés, survols) */
  --color-accent-soft: rgba(43, 167, 207, 0.15);  /* Cyan très transparent (fonds d'encadrés) */
  --color-border: rgba(232, 135, 30, 0.3);         /* Bordure orange discrète */
  --font-heading: 'Cinzel', serif;
  --font-body: 'Inter', sans-serif;
  --max-width: 900px;
  --section-padding: 5rem 2rem;
}

/* ===========================================
   RESET & BASE
   =========================================== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 70px; /* Compense la navbar fixe */
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  color: var(--color-text-dark);
  background: var(--color-bg-light);
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.3;
}

a {
  color: var(--color-gold);
  text-decoration: none;
  transition: color 0.3s;
}

a:hover {
  color: var(--color-gold-light);
}

img {
  max-width: 100%;
}

/* ===========================================
   NAVIGATION FIXE
   Barre de navigation collée en haut de page
   =========================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(36, 16, 25, 0.95); /* Bordeaux très sombre translucide (cf. --color-bg-dark) */
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  padding: 0 2rem;
}

.navbar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px;
}

.navbar-brand {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--color-gold);
  font-weight: 600;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.navbar-brand img {
  height: 36px;
  width: auto;
}

.navbar-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.navbar-links a {
  color: var(--color-text-light);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  transition: color 0.3s;
}

.navbar-links a:hover {
  color: var(--color-gold);
}

/* Bouton hamburger pour mobile */
.navbar-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.navbar-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text-light);
  margin: 5px 0;
  transition: transform 0.3s, opacity 0.3s;
}

/* ===========================================
   HERO — Section d'accueil plein écran
   Fond sombre avec dégradé, titre centré
   =========================================== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  /* Dégradé bordeaux : du très sombre vers un bordeaux plus profond/chaud */
  background: linear-gradient(135deg, var(--color-bg-dark) 0%, var(--color-bg-medium) 50%, #5e1a30 100%);
  color: var(--color-text-light);
  padding: 6rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}

/* Effet décoratif subtil en arrière-plan (cercle flou) */
.hero::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(232, 135, 30, 0.08) 0%, transparent 70%); /* Halo orange discret */
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

.hero-logo {
  width: 160px;
  height: auto;
  margin-bottom: 1.5rem;
  animation: float 3s ease-in-out infinite;
  filter: drop-shadow(0 4px 24px rgba(0, 0, 0, 0.35)); /* Ombre douce : détache le logo du fond sombre */
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: var(--color-gold);
  margin-bottom: 1rem;
  letter-spacing: 0.04em;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  max-width: 600px;
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

.hero-cta {
  display: inline-block;
  padding: 0.8rem 2rem;
  border: 1px solid var(--color-gold);
  color: var(--color-gold);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  border-radius: 4px;
  transition: background 0.3s, color 0.3s;
}

.hero-cta:hover {
  background: var(--color-gold);
  color: var(--color-bg-dark);
}

/* ===========================================
   SECTIONS — Styles communs
   Alternance fond clair / fond sombre
   =========================================== */
.section {
  padding: var(--section-padding);
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 1.5rem;
  color: var(--color-bg-dark);
  position: relative;
  padding-bottom: 0.75rem;
}

/* Trait doré sous les titres de section */
.section h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--color-gold);
  border-radius: 2px;
}

.section h2.centered {
  text-align: center;
}

.section h2.centered::after {
  left: 50%;
  transform: translateX(-50%);
}

/* Sections à fond sombre */
.section--dark {
  background: var(--color-bg-dark);
  color: var(--color-text-light);
}

.section--dark h2 {
  color: var(--color-gold);
}

/* Sections à fond alterné (beige léger) */
.section--alt {
  background: var(--color-bg-alt);
}

.section p {
  margin-bottom: 1rem;
}

.section p:last-child {
  margin-bottom: 0;
}

/* ===========================================
   SOUS-TITRES DE SECTION — h3 dorés réutilisables
   Remplace les anciens styles inline
   =========================================== */
.section-subtitle {
  font-size: 1.05rem;
  margin-top: 1.5rem;
  color: var(--color-gold);
}

.section-subtitle--large {
  font-size: 1.1rem;
  margin-top: 2rem;
}

/* ===========================================
   CARDS — Boîtes d'information réutilisables
   =========================================== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.card {
  background: white;
  border-radius: 8px;
  padding: 2rem;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.section--dark .card {
  background: var(--color-bg-medium);
  border-color: var(--color-border);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  color: var(--color-gold);
}

.card p, .card address {
  font-size: 0.95rem;
  font-style: normal;
  line-height: 1.7;
}

/* ===========================================
   BUREAU — Liste des membres du bureau
   =========================================== */
.bureau-list {
  list-style: none;
  margin-top: 1rem;
}

.bureau-list li {
  padding: 0.3rem 0;
  font-size: 0.95rem;
}

.bureau-list li strong {
  color: var(--color-gold);
}

/* ===========================================
   ÉTAPES — Liste numérotée stylisée
   Pour "Ta première soirée" et processus
   =========================================== */
.steps {
  list-style: none;
  counter-reset: step-counter;
  margin-top: 1.5rem;
}

.steps li {
  counter-increment: step-counter;
  padding: 1rem 0 1rem 3.5rem;
  position: relative;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.section--dark .steps li {
  border-bottom-color: var(--color-border);
}

.steps li:last-child {
  border-bottom: none;
}

/* Numéro circulaire doré */
.steps li::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 1rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--color-gold);
  color: var(--color-bg-dark);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.steps li strong {
  display: block;
  margin-bottom: 0.25rem;
}

/* ===========================================
   TABLEAU — Lexique
   =========================================== */
.lexique-table-wrapper {
  overflow-x: auto;
}

.lexique-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
  font-size: 0.95rem;
}

.lexique-table thead {
  background: var(--color-bg-dark);
  color: var(--color-gold);
}

.lexique-table th {
  font-family: var(--font-heading);
  font-weight: 600;
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
}

.lexique-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  vertical-align: top;
}

.lexique-table td:first-child {
  font-weight: 600;
  color: var(--color-bg-dark);
  white-space: nowrap;
  width: 160px;
}

.lexique-table tbody tr:hover {
  background: var(--color-accent-soft);
}

/* ===========================================
   TARIFS — Mise en forme de la section adhésion
   =========================================== */
.tarif-box {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 2rem;
  margin-top: 1.5rem;
  text-align: center;
}

.section--dark .tarif-box {
  background: var(--color-bg-medium);
}

.tarif-price {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--color-gold);
  font-weight: 700;
}

.tarif-price small {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  margin-top: 0.25rem;
}

.tarif-details {
  margin-top: 1rem;
  font-size: 0.95rem;
}

/* ===========================================
   LISTES SIMPLES — Sans puces, avec espacement
   =========================================== */
.plain-list {
  list-style: none;
  margin-top: 1rem;
}

.plain-list li {
  padding: 0.3rem 0;
}

/* ===========================================
   RÈGLES DE VIE — Liste avec icônes
   =========================================== */
.rules-list {
  list-style: none;
  margin-top: 1.5rem;
}

.rules-list li {
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.section--dark .rules-list li {
  border-bottom-color: var(--color-border);
}

.rules-list li:last-child {
  border-bottom: none;
}

.rules-list h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--color-bg-dark);
}

.section--dark .rules-list h3 {
  color: var(--color-gold);
}

.rules-list p {
  font-size: 0.95rem;
}

/* ===========================================
   ACTIVITÉS — Grille de cards
   =========================================== */
.activities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.activity-card {
  background: linear-gradient(135deg, var(--color-bg-medium) 0%, rgba(58, 26, 38, 0.8) 100%); /* Dégradé bordeaux (cf. --color-bg-medium) */
  border-radius: 12px;
  padding: 2rem 1.75rem;
  border: 1px solid var(--color-border);
  text-align: left;
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  transition: transform 0.2s, border-color 0.3s, box-shadow 0.3s;
}

.activity-card:hover {
  transform: translateY(-3px);
  border-color: var(--color-gold);
  box-shadow: 0 4px 20px rgba(232, 135, 30, 0.12); /* Lueur orange au survol */
}

.activity-card .card-icon {
  font-size: 2rem;
  flex-shrink: 0;
  width: 2.5rem;
  text-align: center;
  padding-top: 0.15rem;
}

.activity-card-text h3 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: var(--color-gold);
  margin-bottom: 0.4rem;
}

.activity-card-text p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ===========================================
   CONTACT — Section liens et coordonnées
   =========================================== */
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
  justify-content: center;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  color: var(--color-text-dark);
  font-size: 0.9rem;
  transition: background 0.3s, border-color 0.3s;
}

.contact-link:hover {
  background: rgba(232, 135, 30, 0.15); /* Fond orange léger au survol */
  border-color: var(--color-gold);
  color: var(--color-gold);
}

.useful-links {
  margin-top: 2rem;
  text-align: center;
}

.useful-links h3 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.useful-links a {
  display: inline-block;
  margin: 0.5rem 1rem;
  font-size: 0.9rem;
}

/* ===========================================
   CALLOUT — Encadré mis en avant
   =========================================== */
.callout {
  background: var(--color-accent-soft);
  border-left: 4px solid var(--color-accent);
  border-radius: 0 8px 8px 0;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

.section--dark .callout {
  background: rgba(43, 167, 207, 0.12); /* Cyan léger sur fond sombre */
}

.callout-warning {
  background: rgba(232, 135, 30, 0.12); /* Orange léger (encadré d'avertissement) */
  border-left-color: var(--color-gold);
}

/* ===========================================
   SECTION CTA FINALE — Appel à l'action
   =========================================== */
.section-cta {
  text-align: center;
  padding: 4rem 2rem;
}

.section-cta p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
}

.section-cta .hero-cta {
  margin-top: 1.5rem;
}

/* ===========================================
   FOOTER
   =========================================== */
.footer {
  background: var(--color-bg-dark);
  color: var(--color-text-muted);
  text-align: center;
  padding: 2rem;
  font-size: 0.85rem;
  border-top: 1px solid var(--color-border);
}

.footer a {
  color: var(--color-gold);
}

/* ===========================================
   LIENS DISCORD / FORUM — Rappels en bas de section
   =========================================== */
.section-links {
  margin-top: 1.5rem;
  font-size: 0.95rem;
}

.section-links a {
  font-weight: 600;
}

/* ===========================================
   HIGHLIGHT TEXT — Texte doré pour emphase
   =========================================== */
.gold {
  color: var(--color-gold);
  font-weight: 600;
}

/* Variante pour sections claires (assure le contraste) */
.section--alt .contact-link {
  border-color: rgba(0,0,0,0.15);
}

/* ===========================================
   RESPONSIVE — Adaptations mobile / tablette
   =========================================== */

/* Tablette et en-dessous */
@media (max-width: 768px) {
  :root {
    --section-padding: 3.5rem 1.25rem;
  }

  /* Affiche le bouton hamburger, masque les liens */
  .navbar-toggle {
    display: block;
  }

  .navbar-links {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: rgba(36, 16, 25, 0.98); /* Bordeaux très sombre (menu mobile déroulant) */
    flex-direction: column;
    padding: 1rem 2rem;
    gap: 0.75rem;
    border-bottom: 1px solid var(--color-border);
  }

  .navbar-links.open {
    display: flex;
  }

  .hero {
    padding: 5rem 1.5rem 3rem;
  }

  .lexique-table td:first-child {
    white-space: normal;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .activities-grid {
    grid-template-columns: 1fr;
  }
}

/* Mobile petit */
@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.6rem;
  }

  .contact-links {
    flex-direction: column;
    align-items: stretch;
  }

  .contact-link {
    justify-content: center;
  }
}
