/* Reset et styles de base */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: Arial, sans-serif;
}

body {
  background: url('https://stefisa.fr/images/stefisa.jpg') no-repeat center center fixed;
  background-size: cover;
  color: white;
  text-shadow: 1px 1px 4px #000;
  overflow-x: hidden;
}
a {
	text-decoration:none;
	transition: color 0.3s ease;
}
.hide {
	display:none;
}
.content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1em;
  box-sizing: border-box;
}

/* Carousel */
.carousel {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 1em;
}

.carousel img {
  width: 100px;
  height: 75px;
  object-fit: cover;
  border: 2px solid white;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.carousel img:hover {
  transform: scale(1.05);
}

/* Modal responsive avec <picture> */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
  transition: opacity 0.3s ease;
}

.modal.show {
  display: flex;
}

.modal picture {
  width: 80vw;
  max-height: 90vh;
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.3s ease, transform 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal.show picture {
  opacity: 1;
  transform: scale(1);
}

.modal picture img {
  /* width: 100%; */
  height: auto;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.7);
}

.modal .close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  text-decoration: none;
  z-index: 30;
  cursor:pointer;
}

/* Présentation */
.presentation {
  background: rgba(0, 0, 0, 0.7);
  padding: 1em;
  box-sizing: border-box;
  border-radius: 10px;
  margin-bottom: 100px;
  text-align: left;
  width: 100%;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  color:white;
}
.presentation p {
  color:white;
  text-align: justify;
}

/* Footer */
footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.8);
  text-align: center;
  padding: 1em;
  box-sizing: border-box;
  font-size: 0.9em;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5em;
}

footer .social-link img {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  margin-left: 0.5em;
  transition: transform 0.3s;
}
footer .social-link:hover img {
  transform: scale(1.1);
}
footer #adresse {
	color:white;
	font-weight:bold;
}
footer #adresse:hover {
	color: #00aaff;
}
/* Responsive */
@media (max-width: 600px) {
  .carousel img {
    width: 70px;
    height: 52px;
  }
}

/* Menu hamburger */
.hamburger {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  z-index: 50;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: white;
  display: block;
  border-radius: 3px;
  transition: background-color 0.3s ease;
}

/* Nav de base */
.nav {
  position: fixed;
  width:100%;
  top: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.6);
  box-shadow: 0 2px 5px rgba(0,0,0,0.7);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1rem;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.nav-links li a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
  transition: color 0.3s ease;
  font-weight:bold;
}

.nav-links li a:hover,
.nav-links li a:focus {
  color: #00aaff;
  /* text-decoration: underline; */
}

a.important-link {
  font-weight: bold;
  color: #00aaff;
  text-decoration: none;
  transition: color 0.3s ease, text-decoration 0.3s ease;
}

a.important-link:hover,
a.important-link:focus {
  color: #0077cc;
  text-decoration: underline;
}

/* Mobile styles */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
    padding: 5px 0 5px 0;
  }

  .nav-links {
    position: absolute;
    top: 30px;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.85);
    border-radius: 8px;
    padding: 1rem;
    display: none;
    min-width: 150px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li a {
    color: white;
    font-size: 1.1rem;
    padding: 0.5rem 0;
  }

  .nav-links li a:hover,
  .nav-links li a:focus {
    color: #00aaff;
    text-decoration: underline;
  }
}

/* Contact page styles */
.contact-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  background-color: #f5f5f5;
  color: #222222;
  text-shadow: none;
  font-family: Arial, sans-serif;
  padding-top: 1px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.contact-form input,
.contact-form textarea,
.contact-form button {
  padding: 0.5rem;
  font-size: 1rem;
  border-radius: 4px;
  border: 1px solid #ccc;
  font-family: inherit;
}

.contact-form button {
  background-color: #3e8e41;
  color: white;
  cursor: pointer;
  border: none;
  transition: background-color 0.3s ease;
}

.contact-form button:hover {
  background-color: #367d39;
}

.alert-success {
  background-color: #d4edda;
  padding: 1rem;
  border-left: 4px solid #28a745;
  margin-bottom: 1rem;
  color: #155724;
}

.alert-error {
  background-color: #f8d7da;
  padding: 1rem;
  border-left: 4px solid #dc3545;
  margin-bottom: 1rem;
  color: #721c24;
}

.contact-infos {
  max-width: 700px;
  margin: 2rem auto;
  color: #222222;
}

.contact-infos h2 {
  color: #111111;
  margin-bottom: 1.5rem;
}

.contact-infos-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.contact-infos-inner > .contact-address,
.contact-infos-inner > .contact-links {
  flex: 1 1 300px;
  min-width: 280px;
}

.contact-links a {
  color: #0066cc;
  text-decoration: underline;
  text-shadow: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.contact-links a:hover,
.contact-links a:focus {
  color: #004a99;
  text-decoration: none;
}

.contact-address p,
.contact-links p {
  line-height: 1.5;
}

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

/* Container général main */
.main-container {
  color: #222;
  text-shadow: none;
  padding: 2rem;
  border-radius: 1rem;
  margin: 2rem auto;
  max-width: 1100px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

@media (max-width: 600px) {
  .main-container {
    padding: 25px 0.5rem 100px 0.5rem;
    margin: 1rem;
    padding-bottom: 100px;
  }
}
