
/* ============================================================
   CORRECTION FINALE — EN-TÊTES DE SECTIONS PARFAITEMENT CENTRÉS
   Chargé en dernier pour prendre le dessus sur les anciens CSS.
   ============================================================ */

.section-head,
.section-copy,
.about-heading {
  width: min(920px, 100%) !important;
  max-width: 920px !important;
  margin: 0 auto clamp(30px, 4vw, 52px) !important;
  padding: 0 16px !important;
  text-align: center !important;
  justify-self: center !important;
  align-self: start !important;
}

.section-head > *,
.section-copy > *,
.about-heading > * {
  margin-left: auto !important;
  margin-right: auto !important;
}

.section-head .section-label,
.section-copy .section-label,
.about-heading .section-label {
  display: flex !important;
  width: fit-content !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
  text-align: center !important;
}

.section-head h2,
.section-copy h2,
.about-heading h2 {
  max-width: 900px !important;
  text-align: center !important;
  text-wrap: balance;
}

.section-head > p:not(.section-label),
.section-copy > p:not(.section-label),
.about-heading > p:not(.section-label) {
  max-width: 760px !important;
  text-align: center !important;
}

/* Les sections à deux colonnes passent en une ligne d'en-tête pleine largeur,
   puis le contenu reprend toute la largeur en dessous. */
.split-section {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
}

.split-section > .section-copy {
  grid-column: 1 / -1 !important;
}

.split-section > .program-grid,
.split-section > .embed-card,
.split-section > .twitch-placeholder {
  width: 100% !important;
  max-width: 1180px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.section-copy .btn,
.section-copy .hero-actions {
  margin-left: auto !important;
  margin-right: auto !important;
}

.section-copy .btn {
  display: flex !important;
  width: fit-content !important;
}

.section-copy .hero-actions {
  justify-content: center !important;
}

/* Services */
#services > .section-head {
  text-align: center !important;
}

/* Contact : titre et texte centrés, formulaire conservé sous le texte */
.contact-section {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 34px !important;
}

.contact-section > div:first-child {
  width: min(900px, 100%) !important;
  margin: 0 auto !important;
  text-align: center !important;
}

.contact-section > div:first-child > * {
  margin-left: auto !important;
  margin-right: auto !important;
}

.contact-section > form {
  width: min(850px, 100%) !important;
  margin: 0 auto !important;
}

/* Le héros reste volontairement aligné à gauche : ce n'est pas un titre de section. */
.hero-copy,
.hero-copy h1,
.hero-copy .intro,
.hero-copy .kicker {
  text-align: left !important;
}

/* Tablette et mobile */
@media (max-width: 820px) {
  .section-head,
  .section-copy,
  .about-heading {
    width: 100% !important;
    padding-inline: 6px !important;
    margin-bottom: 28px !important;
  }

  .section-head h2,
  .section-copy h2,
  .about-heading h2 {
    font-size: clamp(34px, 10vw, 52px) !important;
  }

  .section-copy .btn {
    width: min(100%, 340px) !important;
  }
}


/* VRAIS LOGOS ET LIENS DES RÉSEAUX SOCIAUX */
.social-line {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 12px !important;
}

.social-line b {
  margin-right: 6px !important;
}

.social-line a,
.footer-socials a {
  display: inline-grid !important;
  width: 42px !important;
  height: 42px !important;
  place-items: center !important;
  flex: 0 0 42px !important;
  border: 1px solid rgba(255,48,65, .28) !important;
  border-radius: 50% !important;
  background: rgba(10,10,10, .68) !important;
  box-shadow: 0 10px 28px rgba(0,0,0, .22) !important;
  transition: transform .2s ease, background .2s ease, border-color .2s ease !important;
}

.social-line a:hover,
.footer-socials a:hover {
  transform: translateY(-3px) scale(1.06) !important;
  background: #ff3041 !important;
  border-color: #ff3041 !important;
}

.social-line img,
.footer-socials img {
  width: 19px !important;
  height: 19px !important;
  filter: brightness(0) invert(1) !important;
}

.footer-socials {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 12px !important;
  margin: 22px auto !important;
}

@media (max-width: 620px) {
  .social-line {
    justify-content: flex-start !important;
  }
  .social-line b {
    width: 100% !important;
    margin-bottom: 3px !important;
  }
  .social-line a,
  .footer-socials a {
    width: 39px !important;
    height: 39px !important;
    flex-basis: 39px !important;
  }
}


/* Correction visibilité définitive : logos SVG intégrés directement dans le HTML */
.social-line svg,
.footer-socials svg {
  display: block !important;
  width: 20px !important;
  height: 20px !important;
  fill: #ffffff !important;
  color: #ffffff !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: none !important;
}

.social-line a,
.footer-socials a {
  color: #ffffff !important;
  opacity: 1 !important;
  visibility: visible !important;
  overflow: visible !important;
}


/* Réseaux sociaux en couleurs officielles */
.social-line a,
.footer-socials a {
  background: rgba(255,255,255, 0.08) !important;
  border-color: rgba(255,255,255, 0.16) !important;
}

.social-line a svg,
.footer-socials a svg {
  fill: #ffffff !important;
}

/* Instagram */
.social-line a[aria-label="Instagram"],
.footer-socials a[aria-label="Instagram"] {
  background: radial-gradient(circle at 30% 110%, #ff3041 0%, #ff3041 28%, #ff0169 52%, #e30613 72%, #ff3041 100%) !important;
}

/* YouTube */
.social-line a[aria-label="YouTube"],
.footer-socials a[aria-label="YouTube"] {
  background: #ff0000 !important;
}

/* Twitch */
.social-line a[aria-label="Twitch"],
.footer-socials a[aria-label="Twitch"] {
  background: #ff3041 !important;
}

/* Facebook */
.social-line a[aria-label="Facebook"],
.footer-socials a[aria-label="Facebook"] {
  background: #ff3041 !important;
}

/* TikTok */
.social-line a[aria-label="TikTok"],
.footer-socials a[aria-label="TikTok"] {
  background: #000000 !important;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.12),
    3px 0 0 rgba(255,48,65,.35),
    -3px 0 0 rgba(254,44,85,.35),
    0 10px 28px rgba(0,0,0,.24) !important;
}

/* X */
.social-line a[aria-label="X"],
.footer-socials a[aria-label="X"] {
  background: #000000 !important;
  border-color: rgba(255,255,255,.35) !important;
}

.social-line a:hover,
.footer-socials a:hover {
  filter: brightness(1.1) saturate(1.08) !important;
  transform: translateY(-3px) scale(1.08) !important;
}

/* Ajustement spécifique Instagram */
.social-line a[aria-label="Instagram"] svg,
.footer-socials a[aria-label="Instagram"] svg {
  width: 21px !important;
  height: 21px !important;
  fill: #ffffff !important;
}


/* Pied de page : copyright et mentions légales uniquement en bas */
.site-footer-inner {
  text-align: center !important;
}

.footer-copyright {
  display: block !important;
  width: 100% !important;
  margin: 22px auto 0 !important;
  text-align: center !important;
  color: #e30613 !important;
  font-size: .95rem !important;
  line-height: 1.6 !important;
}

.footer-copyright a {
  color: #ffffff !important;
  text-decoration: none !important;
  transition: color .2s ease !important;
}

.footer-copyright a:hover,
.footer-copyright a:focus-visible {
  color: #ff3041 !important;
  text-decoration: underline !important;
}
