@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 300;
  font-stretch: 100%;
  font-display: auto;
  src: url('../fonts/Fraunces-9pt-SuperSoft-Light.otf') format("opentype");
  src: url('../fonts/Fraunces-9pt-SuperSoft-Light.ttf') format("truetype");
  src: url('../fonts/Fraunces-9pt-SuperSoft-Light.woff') format("woff");
  src: url('../fonts/Fraunces-9pt-SuperSoft-Light.woff2') format("woff");
}

@font-face {
  font-family: 'Abordage';
  src: url('../fonts/Abordage-Regular.woff2') format('woff2'),
       url('../fonts/Abordage-Regular.woff') format('woff'),
       url('../fonts/Abordage-Regular.ttf') format('truetype');
}

@font-face {
  font-family: 'Canarina';
  src: url('../fonts/Canarina-Regular.woff2') format('woff2'),
       url('../fonts/Canarina-Regular.woff') format('woff');
}

@font-face {
  font-family: 'Murmure';
  src: url('../fonts/LeMurmure-Regular.woff2') format('woff2'),
       url('../fonts/LeMurmure-Regular.woff') format('woff');
}

html, body {
  margin: 0;
  padding: 0;
  background-color: #EEEEEE;
  color: #000;
  font-family: 'Fraunces', sans-serif;
  line-height: 1.5;
  width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

a {
  color: inherit;
  text-decoration: none;
}

header {
  background: #FFFFFF;
  padding: 3% 2% 0 2%;
  text-align: center;
}

header img {
  width: 100%;
  height: auto;
  margin: 0 auto;
  display: block;
}

.subtitle h1 {
  font-family: 'Abordage';
  font-size: 1rem;
  margin-top: 0.5rem;
  display: flex;
  justify-content: center;
}

.social {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #EEEEEE;
  padding: 1rem;
  text-align: center;
}

.social p {
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
}

.social ul.topbar {
  list-style: none;
  display: flex;
  gap: 10px;
  justify-content: center;
  padding: 0;
  margin: 0;
}

.social ul.topbar img {
  width: 28px;
  height: auto;
  transition: opacity 0.2s;
}

/* MENU */
#menu {
  width: 100%;
  margin: 0;
  text-align: center;
  background: #EEEEEE;
}

#menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-family: 'Abordage';
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
}

#menu > ul > li {
  margin: 6px 0;
  width: 90%;
  margin-left: auto;
  margin-right: auto;
}

#menu a {
  display: block;
  padding: 12px;
  border-radius: 8px;
  transition: background-color 0.3s;
}

.ecole { background: #FFED00; color: #E30613; }
.formation-loisir { background: #ECA1C7; color: #006633; }
.le-coin-des-petits { background: #FF8C00; color: #FFF9C4; }
.formation-pro { background: #009FE3; color: #29235C; }
.repetitions { background: #E52421; color: #FFED00; }
.galerie { background: #006633; color: #ECA1C7; }

/* SOUS-MENUS */
.sub-menu {
  display: none;
  position: relative;
  background-color: inherit;
  padding-left: 0;
  margin: 0;
  border-radius: 5px;
}

.sub-menu.active {
  display: block;
}

.sub-menu a {
  padding: 8px 12px;
  display: block;
  font-size: 0.9rem;
  color: inherit;
  background: rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

.accueil_equipe {
  padding: 1rem 5%;
  text-align: center;
}

.accueil_equipe img {
  max-width: 100%;
  height: auto;
}

/* AGENDA DYNAMIQUE */
#agenda {
  width: 90%;
  margin: 0 auto;
  padding: 1rem 0 2rem 0;
}

.agenda-section-title {
  font-family: 'Canarina';
  font-size: 1.5rem;
  font-weight: 400;
  text-align: center;
  margin: 1.5rem 0;
  color: #000;
}

.event {
  background: #fff;
  border-top: 4px solid #E91E63;
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 8px;
}

.event-no-date em {
  font-size: 1.1em;
  font-weight: 600;
  font-style: normal;
}

.event-header strong {
  color: #E91E63;
  display: block;
  margin-bottom: 0.3rem;
  font-size: 1.1rem;
  font-weight:600;
}

.event-header em {
  font-style: normal;
  text-transform: uppercase;
  font-weight: 600;
  color: #333;
}

.event-header small {
  color: #666;
  font-size: 0.9em;
}

.event-content img {
  width: 100%;
  height: auto;
  border-radius: 5px;
  margin-top: 0.5rem;
}

/* PARTENAIRES */
#partenaires {
  text-align: center;
  padding: 1rem 1rem;
}

ul.partenaires {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  padding: 0;
  margin-top: 0;
}

ul.partenaires img {
  width: 70px;
  height: auto;
  transition: transform 0.2s;
}

/* RETOUR EN HAUT */
#back-to-top {
  display: none;
}

/* FOOTER */
footer {
  background: #fff;
  text-align: center;
  padding: 0.5rem;
  font-size: 13px;
  color: #333;
}

/* BANNIERE URGENTE */
.urgent-banner {
  background-color: #e61974;
  color: white;
  padding: 15px;
  display: block;
  text-align: center;
  font-family: sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}

.urgent-banner-content {
  display: flex;
  font-family: 'Fraunces';
  align-items: center;
  margin: auto;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.urgent-icon {
  font-size: 20px;
  font-weight: bold;
}

.urgent-btn {
  background: #1a1a1a;
  color: #fff;
  padding: 8px 14px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
}

.urgent-btn:hover {
  opacity: 0.8;
}

.urgent-close {
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: #1a1a1a;
}

#urgentBanner {
  opacity: 1;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  visibility: visible;
}

#urgentBanner.closing {
  opacity: 0;
  visibility: hidden;
}

/* RESPONSIVE */
@media screen and (min-width: 600px) {
  header img {
    width: 60%;
  }
  .subtitle h1 {
    font-size: 1.2rem;
  }
  .social p {
    font-size: 0.9rem;
  }
  #menu ul {
    font-size: 1rem;
  }
}

@media screen and (min-width: 768px) {
  #menu ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }
  #menu > ul > li {
    width: auto;
  }
}
