/* ===== Fonts ===== */
@import url("https://fonts.googleapis.com/css2?family=Baloo+2:wght@700;800&family=Roboto:ital,wght@0,300;0,400;0,500;0,700;1,400&display=swap");

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

:root {
  --gold: #d2ad68;
  --purple: #9249b0;
  --purple-dark: #6b2d8b;
  --purple-light: #c48ad8;
  --black: #1a1a1a;
  --white: #ffffff;
  --off-white: #faf9fb;
  --gray-light: #f0eef2;
  --gray: #888;
  --font-heading: "Baloo 2", sans-serif;
  --font-body:
    "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--black);
  background: var(--white);
  line-height: 1.7;
  font-size: 18px;
  overflow-x: hidden;
}

a {
  color: var(--purple);
  text-decoration: none;
  transition: color 0.3s;
}
a:hover {
  color: var(--purple-dark);
}
img {
  max-width: 100%;
  height: auto;
}

/* ===== Banner ===== */
.banner {
  background: var(--white);
  text-align: center;
  padding: 1.25rem 2rem 1rem;
  position: relative;
}

.banner a {
  display: inline-block;
}

.banner img.logo {
  max-height: 230px;
  width: auto;
}

.banner::after {
  content: "";
  display: block;
  height: 1.5px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--gold) 25%,
    var(--gold) 75%,
    transparent 100%
  );
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}

/* ===== Navigation ===== */
.main-nav {
  background: var(--white);
  border-bottom: 1px solid var(--gray-light);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.main-nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  max-width: 800px;
  margin: 0 auto;
}

.main-nav li {
  position: relative;
}

.main-nav a {
  display: block;
  padding: 1rem 2.2rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--black);
  transition: color 0.3s;
}

.main-nav a:hover {
  color: var(--purple);
}
.main-nav a.active {
  color: var(--purple);
}

.main-nav a.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 2px;
  background: var(--gold);
  border-radius: 1px;
}

.nav-toggle { display: none; }

@media (max-width: 768px) {
  .main-nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }
  .main-nav li {
    flex: 0 0 50%;
    text-align: center;
  }
  .main-nav a {
    padding: 0.75rem 0.5rem;
    font-size: 0.78rem;
  }
}

/* ===== Golden Ribbon ===== */
.ribbon-container {
  width: 100%;
  overflow: visible;
  position: relative;
  z-index: 2;
  pointer-events: none;
  line-height: 0;
}

.ribbon-container svg {
  width: 100%;
  height: 90px;
  display: block;
  overflow: visible;
}

.ribbon-path {
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 3px rgba(255, 215, 0, 0.45));
  stroke-dasharray: 2400;
  stroke-dashoffset: 2400;
}

.ribbon-path-glow {
  fill: none;
  stroke: var(--gold);
  stroke-width: 9;
  stroke-linecap: round;
  opacity: 0.09;
  stroke-dasharray: 2400;
  stroke-dashoffset: 2400;
}

.ribbon-container.ribbon-visible .ribbon-path {
  animation: drawRibbon 1.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.ribbon-container.ribbon-visible .ribbon-path-glow {
  animation: drawRibbon 1.6s cubic-bezier(0.4, 0, 0.2, 1) 0.08s forwards;
}

@keyframes drawRibbon {
  to {
    stroke-dashoffset: 0;
  }
}

/* Gradient backgrounds — sync ribbon zone with adjacent sections */
.ribbon-bg-w2g {
  background: linear-gradient(180deg, #ffffff 0%, #faf9fb 100%);
}
.ribbon-bg-g2w {
  background: linear-gradient(180deg, #faf9fb 0%, #ffffff 100%);
}
.ribbon-bg-g2bk {
  background: linear-gradient(180deg, #faf9fb 0%, #1a1a1a 100%);
}
.ribbon-bg-w2bk {
  background: linear-gradient(180deg, #ffffff 0%, #1a1a1a 100%);
}
.ribbon-bg-w2w {
  background: #ffffff;
}
.ribbon-bg-g2g {
  background: #faf9fb;
}

/* ===== Hero ===== */
.hero {
  text-align: center;
  padding: 4.5rem 2rem 3rem;
  max-width: 750px;
  margin: 0 auto;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.hero h1 em {
  color: var(--purple);
  font-style: normal;
}

.hero p {
  font-size: 1.02rem;
  color: #555;
  line-height: 1.8;
  margin-bottom: 0.75rem;
}

/* ===== Sections ===== */
.section {
  padding: 4.5rem 2rem;
  max-width: 960px;
  margin: 0 auto;
  position: relative;
}

.section--gray {
  background: var(--off-white);
  max-width: 100%;
}
.section--gray .section-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 4.5rem 2rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.75rem;
  position: relative;
  display: inline-block;
  line-height: 1.3;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 36px;
  height: 1.5px;
  background: var(--gold);
}

/* ===== Moyens d'action ===== */
.moyens-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.moyen-card {
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: 8px;
  padding: 1.75rem 1.5rem;
  text-align: center;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}

.moyen-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(146, 73, 176, 0.1);
}
.moyen-card a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.moyen-card .icon {
  font-size: 1.6rem;
  margin-bottom: 0.6rem;
  display: block;
}

.moyen-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--purple);
}

.moyen-card p {
  font-size: 0.88rem;
  color: #666;
}

/* ===== Actualités ===== */
.actu-card {
  background: var(--white);
  border-left: 2px solid var(--gold);
  padding: 1.5rem 2rem;
  margin-bottom: 1rem;
  border-radius: 0 8px 8px 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s;
}
.actu-card:hover {
  transform: translateX(3px);
}

.actu-card .actu-date {
  font-size: 0.78rem;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.3rem;
}

.actu-card h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--black);
}

.actu-card p {
  color: #555;
  font-size: 0.92rem;
}

/* ===== Groupes preview (accueil) ===== */
.groupes-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.groupe-preview-card {
  display: block;
  background: var(--white);
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  border-top: 2px solid var(--gold);
  transition:
    transform 0.3s,
    box-shadow 0.3s;
  color: inherit;
}
.groupe-preview-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(146, 73, 176, 0.12);
  color: inherit;
}

.groupe-preview-card h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--purple);
  margin-bottom: 0.3rem;
}
.groupe-preview-card .tag {
  font-size: 0.73rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.65rem;
}
.groupe-preview-card p {
  font-size: 0.88rem;
  color: #666;
  line-height: 1.65;
}

.btn-link {
  display: inline-block;
  margin-top: 0.7rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--purple);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 1px;
}

.btn-cta {
  display: inline-block;
  margin-top: 2rem;
  background: var(--purple);
  color: var(--white);
  padding: 0.75rem 2rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition:
    background 0.3s,
    transform 0.2s;
}
.btn-cta:hover {
  background: var(--purple-dark);
  color: var(--white);
  transform: translateY(-1px);
}

/* ===== Groupes — Tabs ===== */
.groupes-nav {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
  justify-content: center;
}

.tab-btn {
  background: var(--white);
  border: 1.5px solid var(--purple-light);
  color: var(--purple);
  padding: 0.75rem 1.75rem;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s;
  white-space: nowrap;
}
.tab-btn:hover {
  background: var(--gray-light);
}
.tab-btn.active {
  background: var(--purple);
  color: var(--white);
  border-color: var(--purple);
}

/* Indicateur › sur les onglets inactifs */
.tab-btn:not(.active)::after {
  content: ' ›';
  font-size: 1em;
  opacity: 0.5;
  margin-left: 2px;
}

/* Pulse au chargement pour signaler l'interactivité */
@keyframes tabPulse {
  0%, 100% { transform: scale(1); box-shadow: none; }
  50% { transform: scale(1.04); box-shadow: 0 4px 14px rgba(146, 73, 176, 0.22); }
}

.tab-btn--pulse {
  animation: tabPulse 0.75s ease-in-out 1s 2;
}

.tab-btn--pulse.active,
.tab-btn--pulse:hover {
  animation: none;
}

/* Texte d'aide sous les onglets */
.tabs-hint {
  font-size: 0.8rem;
  color: var(--gray);
  font-style: italic;
  text-align: center;
  margin-bottom: 2rem;
  letter-spacing: 0.02em;
}

.tab-panel {
  display: none;
}
.tab-panel.active {
  display: block;
}

/* ===== Groupes detail ===== */
.groupe-block {
  background: var(--white);
  border-radius: 10px;
  padding: 2.5rem 2.5rem 2.5rem 3rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  position: relative;
  overflow: hidden;
}

.groupe-block::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, var(--gold) 0%, var(--purple) 100%);
}

.groupe-block h2 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--purple);
  margin-bottom: 0.3rem;
}
.groupe-block .groupe-subtitle {
  font-size: 0.88rem;
  color: var(--gray);
  font-style: italic;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--gray-light);
}

.groupe-block h3 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--purple-dark);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.groupe-block p {
  font-size: 0.93rem;
  color: #555;
  line-height: 1.75;
}

.groupe-block ul {
  list-style: none;
  padding: 0;
}
.groupe-block ul li {
  font-size: 0.93rem;
  color: #555;
  padding: 0.3rem 0 0.3rem 1.5rem;
  position: relative;
  line-height: 1.6;
}
.groupe-block ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 10px;
  height: 1.5px;
  background: var(--gold);
}

.groupe-info {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.groupe-info-item {
  background: var(--off-white);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.83rem;
  color: var(--black);
}
.groupe-info-item strong {
  color: var(--purple);
}

.adresse-link {
  color: var(--purple);
  text-decoration: none;
  font-weight: 500;
}
.adresse-link:hover {
  color: var(--purple-dark);
  text-decoration: underline;
}

/* ===== Team ===== */
.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.team-card {
  background: var(--white);
  border-radius: 10px;
  padding: 2rem 1.75rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  border-top: 2px solid var(--gold);
  transition: transform 0.3s;
  text-align: center;
}
.team-card:hover {
  transform: translateY(-2px);
}

.team-photo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 1.1rem;
  border: 2px solid var(--gold);
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.team-photo-placeholder {
  width: 100%;
  height: 100%;
  background: var(--gray-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--purple);
}

.team-card h3 a {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--purple);
  transition: color 0.2s;
}
.team-card h3 a:hover {
  color: var(--purple-dark);
}

.team-card .role {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray);
  margin: 0.25rem 0 0.9rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--gray-light);
}

.team-card p {
  font-size: 0.88rem;
  color: #555;
  line-height: 1.75;
  text-align: left;
}

/* ===== Contact ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-info h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.contact-info p {
  color: #555;
  margin-bottom: 0.75rem;
  line-height: 1.75;
  font-size: 0.95rem;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--purple);
  color: var(--white) !important;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.9rem;
  margin-top: 1rem;
  transition:
    background 0.3s,
    transform 0.2s;
}
.contact-email:hover {
  background: var(--purple-dark);
  color: var(--white) !important;
  transform: translateY(-1px);
}

.contact-form label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #666;
  margin-bottom: 0.3rem;
  margin-top: 1.25rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition:
    border-color 0.3s,
    box-shadow 0.3s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(146, 73, 176, 0.1);
}
.contact-form textarea {
  min-height: 130px;
  resize: vertical;
}

.contact-form button {
  margin-top: 1.5rem;
  background: var(--purple);
  color: var(--white);
  border: none;
  padding: 0.8rem 2rem;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition:
    background 0.3s,
    transform 0.2s;
}
.contact-form button:hover {
  background: var(--purple-dark);
  transform: translateY(-1px);
}

/* ===== Intro quote ===== */
.intro-quote {
  font-size: 1.05rem;
  color: #444;
  line-height: 1.9;
  border-left: 2px solid var(--gold);
  padding: 0.75rem 0 0.75rem 1.5rem;
  margin-bottom: 1.5rem;
  font-style: italic;
}

/* ===== Map placeholder ===== */
.map-placeholder {
  background: var(--gray-light);
  border-radius: 10px;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  font-size: 0.9rem;
  margin-top: 2rem;
}

/* ===== Footer ===== */
.footer {
  background: var(--black);
  color: #888;
  text-align: center;
  padding: 2.5rem 1rem;
  font-size: 0.85rem;
  position: relative;
}
.footer::before {
  content: "";
  display: block;
  height: 1.5px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--gold) 30%,
    var(--gold) 70%,
    transparent
  );
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}
.footer a {
  color: var(--gold);
}

.footer .footer-logo {
  max-height: 105px;
  margin-bottom: 0.9rem;
  opacity: 0.8;
  filter: brightness(0) invert(1);
}

.footer p {
  margin-bottom: 0.25rem;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }
  .section {
    padding: 3rem 1.25rem;
  }
  .section--gray .section-inner {
    padding: 3rem 1.25rem;
  }
  .section-title {
    font-size: 1.75rem;
  }
  .team-grid {
    grid-template-columns: 1fr 1fr;
  }
  .groupe-block {
    padding: 1.5rem 1.5rem 1.5rem 2rem;
  }
  .groupes-preview-grid {
    grid-template-columns: 1fr;
  }
  .groupes-nav {
    justify-content: flex-start;
  }
  .tab-btn {
    font-size: 0.82rem;
    padding: 0.65rem 1.25rem;
  }
}

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

/* ===== Utility ===== */
.text-center {
  text-align: center;
}
.mt-1 {
  margin-top: 0.5rem;
}
.mt-2 {
  margin-top: 1rem;
}
.mt-3 {
  margin-top: 2rem;
}
.mb-2 {
  margin-bottom: 1rem;
}
