/* Code CSS avec une logique mobile first */

/**** FONTS ****/
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&family=Sigmar&display=swap');

/*.outfit {
  font-family: "outfit", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}*/

/*.sigmar {
  font-family: 'Sigmar', cursive, sans-serif;
  font-weight: 400;
  font-style: normal;
}*/

/**** RESET & BASE ****/

:root{
  --brown-default-color: #e7c894;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  list-style: none;
}

body {
  font-family: 'Outfit', sans-serif;
  line-height: 1.6;
  background-color: #f8f9fa;
  color: #000;
}

.container {
  font-family: 'Outfit', sans-serif;

  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.photo-centree {
  width: 90%;
  display: block;
  margin: 1rem auto;
}

.blank-title {
  color: white;
}

.glitters{
  height: 16px;
}

h1, h2 {
  font-family: 'Sigmar', cursive;
  letter-spacing: 2px;
  
  padding: 25px 0 10px 0;
}

p {
  text-align: justify;
}

/**** HEADER & NAV ****/
header {
  background: var(--brown-default-color);
  color: white;
  padding: 1rem;
  font-family: 'Sigmar', cursive;
  letter-spacing: 2px;
}

article header {
  padding: 1rem;
  border-radius: 10px;
}

header h1 {
  text-transform: capitalize;
}

nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;

  padding-top: 15px;
}

nav h1 a {
  color: white;
  text-decoration: none;
  font-size: 1.5rem;
}

nav ul {
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
  margin-top: 0.5rem;
  transition: max-height 0.3s ease, opacity 0.3s ease;
  overflow: hidden;
}

nav ul.active {
  display: flex;
}

nav a {
  color: white;
  text-decoration: none;
  transition: color 0.3s;
  display: block;
  text-align: center;
  padding: 0.5rem 0;
}

nav a:hover {
  color: #9e0000;
}

.burger {
  display: block;
  font-size: 2rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  margin: auto;
  z-index: 10;
}

/**** MAIN ****/
main {
  min-height: calc(100vh - 200px);
  padding: 2rem 0;
}

.clubs-existants li{
  padding-top: 1rem;
}

/**** EVENT CARDS ****/
.event-card {
  display: flex;
  flex-direction: column;

  text-align: center;

  gap: 1rem;
  margin-bottom: 1.5rem;

  background: white;
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

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

.event-card img {
  width: 100%;
  max-width: 300px;
  box-shadow: 0 0 4px rgba(0,0,0,0.1);
  margin: auto;
}

.event-card h3 {
  margin-bottom: 1rem;
}

.event-card p {
  margin-bottom: 0.5rem;
}

.event-card a {
  color: var(--brown-default-color);
  text-decoration: none;
  font-weight: 500;
}

.event-card a:hover {
  text-decoration: underline;
}

/**** EVENT DETAIL ****/
.event-detail {
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  flex: 1;
}

.event-meta {
  color: black;
  background: #f8f9fa;
  padding: 1rem;
  border-radius: 4px;
  margin: 1rem 0;
}

.event-poster {
  text-align: center;
  margin: 2rem 0;
}

.event-poster img {
  max-width: 100%;
  height: auto;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/**** EVENT CONTENT ****/
.event-content {
  margin: 2rem 0;
  line-height: 1.8;
}

.event-content h1,
.event-content h2,
.event-content h3,
.event-content h4,
.event-content h5,
.event-content h6 {
  color: #000;
  margin: 1.5rem 0 1rem 0;
  font-weight: 600;
}

.event-content h1 {
  font-size: 2rem;
  border-bottom: 2px solid var(--brown-default-color);
  padding-bottom: 0.5rem;
}

.event-content h2 {
  font-size: 1.5rem;
}

.event-content h3 {
  font-size: 1.25rem;
}

.event-content p {
  margin-bottom: 1rem;
  text-align: justify;
}

.event-content ul,
.event-content ol {
  margin: 1rem 0;
  padding-left: 2rem;
}

.event-content li {
  margin-bottom: 0.5rem;
}

.event-content strong {
  color: #000;
  font-weight: 600;
}

.event-content a {
  color: var(--brown-default-color);
  text-decoration: none;
  font-weight: 500;
}

.event-content a:hover {
  text-decoration: underline;
}

.event-content blockquote {
  border-left: 4px solid var(--brown-default-color);
  padding-left: 1rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: #000;
}

.event-content img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin: 1rem 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/**** FOOTER ****/
footer {
  background: #9e0000;
  text-align: center;
  padding: 1rem;
  margin-top: 3rem;
  font-size: small;
}

footer p {
  color: white;
}

/**** DESKTOP (>769px) ****/
@media (min-width: 769px) {
  nav {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  nav ul {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    margin-top: 0;
    width: auto;
  }

  nav a {
    text-align: left;
    padding: 0;
  }

  .burger {
    display: none;
  }

  .event-card {
    flex-direction: row;
    align-items: flex-start;
    gap: 30px;
    padding: 1.5rem;
    text-align: left;
  }

  .event-card img {
    width: 17%;
    max-width: none;
    margin: 0;
  }

  .event-detail {
    padding: 2rem;
  }

  .photo-centree {
    width: 70%;
  }

  .event-poster img {
    max-width: 45%;
  }
}