:root {
  --color-primary: #003049;
  --color-secondary: #D62828;
  --color-accent: #F77F00;
  --color-bg: #FDF0D5;
  --color-text: #000000;
  --color-falc-bg: #FFFACD;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
}

header,
section,
footer {
  padding: 2rem 0;
}

header {
  background-image: url('../images/modeles/site/hero.jpg');
  background-size: cover;
  background-position: center;
  position: relative;
  color: white;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 48, 73, 0.7);
  z-index: 0;
}

header .container {
  position: relative;
  z-index: 1;
}

header .container h1 {
  color: white;
}

nav a {
  color: white;
  margin: 0 1rem;
  text-decoration: underline;
}

.falc-toggle-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 999;
}

.falc-toggle-container button {
  background-color: var(--color-accent);
  border: none;
  padding: 0.75rem;
  border-radius: 50%;
  font-size: 1.5rem;
  color: #000;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease;
}

.falc-toggle-container button:hover {
  background-color: var(--color-secondary);
  color: white;
}

.container {
  max-width: 960px;
  margin: 0 auto;
}

h1,
h2 {
  color: var(--color-primary);
}

.falc-version {
  display: none;
  background-color: var(--color-falc-bg);
  padding: 1rem;
  margin-top: 1rem;
  border: 2px dashed var(--color-accent);
}

.responsive-img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-top: 1rem;
}

footer {
  background-color: var(--color-primary);
  text-align: center;
  color: white;
}

.grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.activity-photo,
.image-container {
  width: 300px;
}

.presentation-content,
.services-content,
.infos-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

.presentation-text,
.services-text,
.infos-texte,
.infos-carte {
  flex: 1 1 300px;
}

.presentation-image,
.services-image {
  flex: 0 0 300px;
  text-align: center;
}

.presentation-image img,
.services-image img {
  width: 300px;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

#equipe {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.carousel-container {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin: 2rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel {
  overflow: hidden;
  width: 100%;
  height: 450px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  padding: 1rem;
  box-sizing: border-box;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  background-color: white;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.carousel-slide.active {
  display: flex;
  opacity: 1;
  z-index: 1;
}

.carousel-slide img {
  width: auto;
  height: 250px;
  object-fit: cover;
  border-radius: 10px;
  border: 2px solid var(--color-primary);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.carousel-btn {
  background-color: rgba(0, 0, 0, 0.6);
  border: none;
  color: white;
  font-size: 2rem;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s;
  z-index: 2;
}

.carousel-btn:hover {
  background-color: rgba(255, 255, 255, 0.9);
  color: #003049;
}

.carousel-btn.prev {
  position: absolute;
  left: -60px;
  top: 50%;
  transform: translateY(-50%);
}

.carousel-btn.next {
  position: absolute;
  right: -60px;
  top: 50%;
  transform: translateY(-50%);
}

.photo-credit {
  font-size: 0.75rem;
  color: #555;
  margin-top: 0.5rem;
}

.photo-credit a {
  color: inherit;
  text-decoration: underline dotted;
}

.image-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 10px;
}

.image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

.image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 0.5rem;
  font-size: 0.9rem;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  border-radius: 0 0 10px 10px;
}

.image-wrapper:hover .image-overlay {
  opacity: 1;
}

#admin {
  background-color: #f5f5f5;
  padding: 2rem;
  margin-top: 2rem;
  margin-bottom: 5rem;
  border-radius: 10px;
}

#admin fieldset {
  border: 1px solid #ccc;
  padding: 1rem;
  border-radius: 10px;
}

#admin select,
#admin input[type="file"] {
  width: 100%;
  max-width: 300px;
}

.admin-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

.admin-thumbnail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  width: 150px;
}

.admin-thumbnail img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 2px solid var(--color-primary);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}


.demo-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.demo-modal-content {
  background: #fff;
  color: #000;
  max-width: 600px;
  width: 90%;
  padding: 2rem;
  border-radius: 12px;
  position: relative;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
  overflow-y: auto;
  max-height: 90vh;
}

.demo-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #000;
}

.demo-modal-close:focus {
  outline: 2px solid var(--color-accent);
}



@media screen and (max-width: 769px) {
  .falc-toggle-container {
    right: 2rem;
  }

  .infos-content {
      flex-direction: column;
  }

  .infos-carte iframe {
      height: 250px;
  }

  .container {
    max-width: 700px;
    margin: 0 auto;
  }
  
}




@media screen and (max-width: 600px) {
  nav a {
      display: block;
      margin: 0.5rem 0;
  }

  .carousel-container {
      max-width: 100%;
  }

  .carousel-btn.prev {
      left: 5px;
  }

  .carousel-btn.next {
      right: 5px;
  }

  .carousel {
      height: auto;
      min-height: 450px;
  }

  .container {
    max-width: 540px;
    margin: 0 auto;
  }
}


@media screen and (max-width: 430px) {
  .container {
    max-width: 380px;
    margin: 0 auto;
  }
}
@media screen and (max-width: 380px) {
  .container {
    max-width: 350px;
    margin: 0 auto;
  }
}
@media screen and (max-width: 330px) {
  .container {
    max-width: 300px;
    margin: 0 auto;
  }
}