:root {
  /* Couleurs principales */
  --primary-color: #ffcc00;           /* Jaune vif */
  --primary-color-dark: #e6b800;      /* Variante plus sombre pour hover/focus */
  --primary-text-color: #06031b;      /* Texte principal sur fond clair */

  /* Couleurs secondaires */
  --secondary-color: #06031b;         /* Noir profond */
  --secondary-color-light: #130c42;   /* Variante plus douce pour fonds ou bordures */
  --secondary-text-color: #fbcf23;    /* Jaune pâle pour le texte sur fond sombre */

  /* Couleurs d'accent */
  --accent-color: #ff6f00;            /* Orange brûlé pour appels à l'action */
  --accent-color-light: #ffa733;

  /* Couleurs de fond */
  --background-color: #f9fafbef;      /* Fond principal */
  --background-alt-color: #f0f2f5;    /* Fond secondaire (cartes, sections) */
  --surface-color: #ffffff;           /* Surfaces comme les cartes ou modales */

  /* Couleurs de texte */
  --text-color: #1f2937;              /* Gris foncé lisible */
  --text-muted-color: #6b7280;        /* Texte secondaire ou désactivé */
  --text-inverted-color: #ffffff;     /* Texte sur fond sombre */

  /* États et feedback */
  --success-color: #22c55e;           /* Vert pour succès */
  --warning-color: #f59e0b;           /* Orange pour avertissements */
  --error-color: #ef4444;             /* Rouge pour erreurs */
  --info-color: #3b82f6;              /* Bleu pour informations */

  /* Dimensions */
  --header-height: 70px;
  --max-width-tablet: 768px;
}

@font-face {
  font-family: Pirate;
  src: url('resources/Custom-Pirates-ESVL.ttf');
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Pirate', Arial, sans-serif;
}

body {
  font-family: Pirate, Arial, sans-serif;
  background-color: var(--secondary-text-color);
  background-repeat: repeat;
  background-size: 200px 200px;
  background-position: 25px 25px;
  background-image: url(https://res.cloudinary.com/dqsu0tr1u/image/upload/v1754371221/6AnfK101_1_yk5xyo.svg);
  color: var(--text-color);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

header {
  background-color: var(--primary-color);
  color: var(--primary-text-color);
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  flex-wrap: wrap;
  border-bottom: 2px solid var(--text-color);
}

ul.inline-list {
  list-style: none;

  li::before {
    content: '-';
    color: var(--primary-text-color);
    margin-right: 0.5em;
  }
}

p {
  margin: 10px 0;
}

p.lieu::before {
  content: '📍';
  margin-right: 0.5em;
}

p a {
  color: currentColor;
  font-weight: bold;

  &::after {
    content: '🏴‍☠️';
    display: inline-block;
  }

  &[target="_blank"]::after {
    content: '🌐';
  }
}

button,
a.button {
  border: none;
  padding: 10px 15px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  text-decoration: none;

  &.primary {
    background-color: var(--secondary-color);
    color: var(--secondary-text-color);
  }

  &.secondary {
    background-color: var(--primary-color);
    color: var(--primary-text-color);
  }

  &:hover {
    opacity: 0.8;
  }

  &.imaged {
    height: 2.8em;
    width: 2.8em;
    padding: 0;
    align-content: center;

    img {
      width: 85%;
      height: 85%;
      margin: auto;
      display: block;
    }
  }
}

input {
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid var(--secondary-color);
  width: 90%;
  border-radius: 5px;
  box-sizing: border-box;
}

.header {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--primary-text-color);
}

.pirate-logo {
  height: var(--header-height);
  margin-right: 10px;
  padding: 5px 0;
}

.nav-pages {
  height: 100%;
  display: flex;
  align-items: flex-end;
}

.nav-pages ul {
  list-style: none;
  display: flex;
  position: relative;
}

.nav-pages>ul>li {
  border-left: 1px solid var(--secondary-color);

  &:first-child {
    border-left: none;
  }
}

.nav-pages li {
  position: relative;
}

nav li:hover {
  background-color: var(--secondary-color);

  &>a {
    color: var(--secondary-text-color);
  }
}

.nav-pages a {
  text-decoration: none;
  color: var(--primary-text-color);
  padding: 10px;
  display: block;
}

.nav-pages .submenu {
  display: none;
  position: absolute;
  background-color: var(--primary-color);
  top: 100%;
  left: 0;
  min-width: 160px;
  z-index: 1000;
  border: 2px solid var(--primary-text-color);
}

.nav-pages li:hover>.submenu {
  display: block;
}

.nav-pages .submenu li {
  width: 100%;
}

.nav-externe {
  display: flex;
}


.nav-externe a {
  color: var(--primary-text-color);
  margin: 0 10px;
  text-decoration: none;
  background-color: white;
  border-radius: 5px;
  display: flex;
  padding: 2px;
}

.banner {
  background-color: var(--secondary-color);
  color: var(--secondary-text-color);
  padding: 10px;
  text-align: center;
  display: none;
}

main {
  display: flex;
  flex: 1;
  padding: 20px;
  gap: 20px;
}

section, aside {
  background-color: var(--background-color);
  padding: 15px;
  margin: 4px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

section.partial {
  display: table;
  margin: auto;
  text-align: center;
}

div.main-content {
  flex: 2 1 60%;
}

/* aside element (only on desktop) */

aside {
  flex: 1 1 30%;
  height: max-content;
  max-width: 400px;
  overflow-y: auto; /* utile uniquement si le contenu déborde */
  padding: 1rem;
  box-sizing: border-box;
}

/* conteneur pour maîtriser la taille et éviter les débordements */
.instagram-container {
  width: 100%;
  overflow: hidden;
  margin-bottom: 1rem;
}

.snapwidget-widget {
  width: 100%;
  height: 800px; /* Ajustable */
  border: none;
  display: block;
  overflow: hidden;
}



/* Footer styles */

footer {
  background-color: var(--primary-color);
  color: var(--primary-text-color);
  text-align: center;
  padding: 10px;
  font-size: 0.9rem;
  border-top: 2px solid var(--secondary-color);
}

/* Footer sponsors */

ul.footer-sponsors {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  list-style-type: none;
  padding: 0;
}

.sponsor {
  &.light {
    background-color: #ffffff;
    color: var(--text-color);
  }

  &.dark {
    background-color: var(--secondary-color);
    color: var(--secondary-text-color);
  }

  height: 6em;
  border-radius: 5px;
  text-align: center;
  width: 10em;

  img {
    max-width: 100%;
    max-height: 4em;
  }

  p.sponsor-name {
    margin: 0;
    color: inherit;
    font-family: inherit;
    text-decoration: none;
  }

  a {
    display: flex;
    padding: 5px;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
    font-family: serif;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
  }

  margin-bottom: 5px;
}


/* Modal styles */

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: var(--secondary-color);
  color: var(--secondary-text-color);
  padding: 20px;
  border-radius: 8px;
  max-width: 400px;
  text-align: center;
}

@media (max-width: 768px) {
  main {
    flex-direction: column;
    padding: 5px;
  }

  aside {
    display: none;
  }

  .nav-pages ul {
    flex-direction: column;
    gap: 0;
  }

  .nav-pages .submenu {
    position: static;
  }
}

.reseau-icon {
  width: 2em;
  height: 2em;
}


.horizontal-line {
  height: fit-content;
  display: flex;
  align-items: center;
  margin: 20px 0;
  gap: 10px;

  @media (max-width: 600px) {
    flex-direction: column;
  }
}

img.portrait {
  width: auto;
  height: 10em;
  border-radius: 8px;
}

img.illustration {
  width: 100%;
  height: 50vh;
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
  transition: transform 0.3s ease-in-out;
}

#illustration {
  background-image: url("https://res.cloudinary.com/dqsu0tr1u/image/upload/v1751868189/504007180_1454090279270305_2153625117580147842_n_trlvqw.jpg");
  background-position: center;
  height: 50vh;
  border-radius: 8px;
  scroll-behavior: smooth;
  display: flex;
  align-items: center;
  justify-content: center;

  h2 {
    color: rgb(from var(--primary-color) r g b / 0.9);

    font-size: 5rem;
    text-shadow:
      0px 0px 30px var(--secondary-color),
      0px 0px 30px var(--secondary-color),
      0px 0px 30px var(--secondary-color),
      0px 0px 30px var(--secondary-color);

    text-align: center;
    margin-top: 20px;
  }
}

/* Responsive design for mobile */
@media (max-width: 768px) {
  main {
    flex-direction: column;
  }

  aside {
    display: none;
  }

  .nav-pages ul {
    flex-direction: column;
    gap: 0;
  }

  .nav-pages .submenu {
    position: static;
  }

  #illustration h2 {
    font-size: 3rem;
  }

  span.full {
    display: none;
  }
}

/* Bouton menu burger */
.burger {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--primary-text-color);
}

/* Responsive header */
@media (max-width: 768px) {
  header {
    display: block;
    gap: 10px;
    height: auto;
    padding: 0 10px;
  }

  .header {
    justify-content: space-between;
  }

  .club-name {
    font-size: 1.5rem;
  }

  /* Bouton burger visible */
  .burger {
    display: block;
  }

  .nav-pages {
    width: 100%;
    flex-direction: column;
    display: none;
  }

  .nav-pages ul {
    flex-direction: column;
    width: 100%;
    background-color: var(--primary-color);

    & li {
      text-align: center;
    }
  }

  .nav-pages>ul>li>a {
    background-color: var(--secondary-color);
    color: var(--secondary-text-color);
  }

  .nav-pages.open {
    display: flex;
    position: absolute;
    width: 95%;

    .submenu {
      display: flex;
    }
  }

  .nav-pages>ul>li {
    border-left: 1px solid var(--primary-color);
    border-right: 1px solid var(--primary-color);
    border-bottom: 1px solid var(--secondary-color);
    padding: 0;
  }

  .nav-pages>ul>li>ul>li {
    border: 1px solid var(--secondary-color);
    border-bottom: 1px solid var(--secondary-color);
    padding: 0;
  }

  .nav-pages .submenu {
    position: static;
    border: none;
  }

  .nav-externe {
    justify-content: center;
    width: 100%;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 0;
  }
}



/* Style pour les cartes de personnes */

.personne {
  display: flex;
  min-width: 150px;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background-color: var(--background-color);
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.personne img {
  max-width: 100px;
  max-height: 100px;
  border-radius: 10px;
  margin-bottom: 10px;
}

.personne h4 {
  margin: 5px 0;
  font-size: 1.2rem;
  color: var(--primary-text-color);
}

.personne p {
  font-size: 1rem;
  color: var(--primary-text-color);
}

/* Style pour les cartes d'entrainement */
.entrainement {
  display: flex;
  flex-direction: row;
  align-items: center;
  text-align: center;
  gap: 1em;
  background-color: var(--background-color);
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.entrainement p {
  font-size: 1rem;
  font-style: italic;
  color: var(--primary-text-color);
}
