/* Variables pour la palette de couleurs et les tailles */
:root {
  --primary-color: #005bb5;
  --secondary-color: #e64500;
  --light-color: #faf7f7;
  --dark-color: #333;
  --background-color: #f9f9f9;
  --border-radius: 8px;
  --font-base: "Roboto", sans-serif;
  --font-size-base: 1rem;
  --font-size-lg: 1.2rem;
  --font-size-xl: 2.5rem;
  --font-size-xxl: 3rem;
}

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

body {
  font-family: var(--font-base);
  line-height: 1.5;
  margin: 0;
  padding: 0;
  background: rgb(70, 106, 120);
  background: radial-gradient(
    circle,
    rgba(70, 106, 120, 1) 0%,
    rgba(148, 187, 233, 1) 100%
  );
}

header,
nav {
  border-top: 5px solid white;
  border-bottom: 5px solid white;
}

.carrousel-item img,
.header-banner img {
  border-radius: 5px;
  margin-bottom: 15px;
  object-fit: cover;
}

@media screen and (max-width: 768px) {
  .header {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    margin-bottom: 5px;
    padding: 0;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .header-banner {
    position: relative;
    top: 0;
    width: 100%;
    margin: 0;
  }

  .header .header-banner .header-content .site-title {
    margin-top: 300px;
    font-size: 1rem;
    color: var(--light-color);
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.7);
    text-align: center;
    margin: 0;
    padding: 0;
    margin-top: 150px;
  }

  .header .header-banner .banner-logo {
    padding: 0;
    margin: 0;
    margin-top: 150px;
    height: 200px;
    width: 250px;
  }
  .main-content h2.section-title {
    font-size: 2.5rem;
    text-align: center;
    color: var(--light-color);
    line-height: 3rem;
    margin-top: 4rem;
  }
}

@media screen and (max-width: 768px) {
  /* Ajuster le carrousel */
  .carrousel {
    justify-content: center;
    flex-wrap: nowrap;
    margin-top: 20px;
    width: 90%;
  }
  @media screen and (max-width: 768px) {
    .navbar .navbar-menu ul li a {
      padding: 0;
      margin: 0;
    }
    .navbar {
      position: relative;
      top: 0;
      left: 0;
      width: auto;
      margin: 0 auto;
      padding-bottom: 5px;
    }

    .navbar-menu li {
      margin: 0 10px; /* Ajoutez un espacement réduit pour les petits écrans */
      font-size: 0.8rem;
      line-height: 20px;
    }

    .navbar-menu li.en a {
      font-weight: bold;
      align-items: center;
      padding: 0;
      margin: 0;
    }

    /* Ajuster la disposition des éléments de la navbar */
    .navbar-menu {
      align-items: center;
      flex-wrap: nowrap;
    }

    .navbar-menu li.en a:active {
      background-color: blue;
      color: white;
    }

    .carrousel {
      flex-wrap: nowrap;
    }

    .carrousel-item {
      width: 250px;
    }
  }

  @media screen and (max-width: 768px) {
    .carrousel {
      display: flex;
      gap: 10px;
      overflow-x: auto;
    }
    .navbar {
      max-width: 100%;
      height: 100px;
    }
  }

  /* Ajuster les éléments du carrousel */
  .carrousel-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    width: 900px;
    height: 500px;
    box-sizing: border-box;
    padding: 10px;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 50px rgba(22, 21, 21, 0.857);
    border: 2px solid var(--dark-color);
    text-align: center;
    transition: transform 0.3s ease;
    margin-bottom: 10px;
    background-color: black;
  }

  /* Réduire la taille de l'image du carrousel */
  .carrousel .carrousel-item img {
    width: 100%px;
    height: auto;
    object-fit: cover;
    border: 4px solid black;
  }

  /* Ajuster la taille du titre dans les éléments */
  .carrousel-item-title {
    font-size: 0.8rem;
    margin-top: 5px;
    color: white;
    line-height: 50px;
  }

  /* Ajuster les autres textes dans les éléments */
  .carrousel-item .carrousel-item-accroche {
    font-size: 0.7rem;
    margin-top: 5px;
    line-height: 10px;
  }

  .carrousel-item-description {
    font-size: 0.7rem;
    margin-top: 5px;
  }
}

/* Général */

a {
  text-decoration: none;
  color: var(--dark-color);
  transition: color 0.3s ease;
}

a:hover {
  color: var(--primary-color);
}

h1,
h2,
h3,
h5,
h6 {
  margin: 0px;
  color: var(--light-color);
  font-weight: normal;
}

/* Header */
.header {
  position: relative;
  text-align: center;
  color: white;
  width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

/* Bannière */
.header-banner {
  position: relative;
  width: 100%;
  height: 500px;
  background: url("../images/longueuil-banniere.jpg") no-repeat center
    center/cover;
  background-size: cover;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

/* Logo */
.banner-logo {
  max-width: 400px;
  height: 400px;
  margin-top: 30px;
  z-index: 3;
}

/* Texte du header */
.header-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 600px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  z-index: 2;
  background: radial-gradient(
    circle,
    rgba(70, 106, 120, 0.4) 0%,
    rgba(148, 187, 233, 0.8) 100%
  );
  padding: 20px;
}

/* Effet sur le texte */
.site-title {
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 1.5px;
  color: #ffffff;
  text-shadow: 0 2px 5px rgba(20, 0, 0, 15);
  margin-top: 300px;
}

.site-subtitle {
  font-size: 1.2rem;
  color: #ffffff;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.7);
}

/* Navbar */
.navbar {
  background: radial-gradient(
    circle,
    rgba(70, 106, 120, 1) 0%,
    rgba(148, 187, 233, 1) 100%
  );
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0);
  padding: 15px 30px;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: background-color 0.3s ease;
  border-bottom: 2px solid #e1e1e1;
}

.navbar-menu {
  display: flex;
  justify-content: space-around;
  align-items: center;
  width: 100%;
  margin: 0;
}

.navbar.navbar-menu ul li.en {
  width: 50px;
}

.navbar-menu a {
  font-weight: 500;
  padding: 10px 20px;
  border-radius: var(--border-radius);
  color: var(--light-color);
  transition: background-color 0.3s ease, color 0.3s ease;
  display: block;
  text-align: center; /* Centrage du texte */
}

/* Lien actif (surbrillance) */
.navbar-menu a.active {
  background-color: var(--primary-color);
  color: white;
}

/* Effet au survol */
.navbar-menu a:hover {
  background-color: var(--primary-color);
  color: white;
  transform: scale(1.05);
}

/* Effet au survol de la barre */
.navbar:hover {
  background-color: #e2e6ea;
}

/* Cacher les éléments après le dernier li avec la classe "en" */
.navbar-menu .more-items {
  display: none;
  list-style-type: none;
  padding-left: 0;
  margin-top: 5px;
  transition: all 0.3s ease;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 160px;
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.navbar-menu .more-items li {
  padding: 8px 16px;
  cursor: pointer;
}

.navbar-menu .more-items li:hover {
  background-color: #ddd;
}

.navbar-menu li.en:hover .more-items {
  display: block;
}

/* Ajouter un effet visuel pour l'élément "en" au survol */
.navbar-menu li.en:hover::before {
  transform: rotate(180deg);
}

/* Gérer l'état du menu lors du clic avec une classe active */
.navbar-menu li.en.active .more-items {
  display: block;
}

/* menu déroulant */
ul {
  list-style-type: none;
  padding: 0;
}

li {
  position: relative;
  display: inline-block;
  padding: 10px;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 160px;
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* Optionnel : Style des options du menu déroulant */
.dropdown-content li {
  padding: 8px 16px;
  cursor: pointer;
}

.dropdown-content li:hover {
  background-color: #ddd;
}

/* Autres styles restent inchangés */

/* Main Content */
.main-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 80px;
  padding: 20px;
}

.section-title:hover {
  color: var(--secondary-color);
  transform: scale(1.1);
}

h2.section-title {
  text-align: center;
  margin: 0 auto;
  display: block;
  font-size: 3rem;
  color: var(--light-color);
  position: relative;
  text-transform: uppercase;
  font-weight: 600;
  line-height: 50px;
  margin-bottom: 75px;
  margin-top: 150px;
}

.section-title {
  text-align: center;
  margin: 0 auto;
  font-size: 2rem;
  margin: 10px 0;
}

h2.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 1px;
  background-color: var(--dark-color);
  transition: width 0.4s ease;
}

h2.section-title:hover {
  color: var(--dark-color);
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

h2.section-title:hover::after {
  width: 100%;
}

/* Pour les paragraphes */
main p {
  margin-bottom: 20px;
  line-height: 1.6;
  color: var(--light-color);
}
.content-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.paragraphs {
  flex: 1;
  margin-right: 30px;
  text-align: justify;
}

.content-container .aside h3 {
  color: var(--light-color);
  font-size: 2rem;
  line-height: 30px;
  font-weight: 300;
  text-align: center;
}
/* Pour les liens */
main p a {
  color: blue;
  text-decoration: underline;
  transition: color 0.3s ease;
}

main p a:hover {
  color: darkblue;
}

/* Carrousel */
.carrousel {
  display: flex;
  justify-content: space-evenly;
  gap: 20px;
  flex-wrap: nowrap;
  margin-top: 20px;
  overflow-x: auto;
}

/* Éléments du carrousel */
.carrousel-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  padding: 50px;
  margin: 0;
  background: linear-gradient(to bottom right, #333, #777, #000);
  width: auto;
  height: 100%;
  box-sizing: border-box;
  transition: transform 0.3s ease;
  margin-bottom: 20px;
  text-align: center;
  border-radius: 30px;
  border: 2px solid var(--dark-color);
}

/* Effet au survol */
.carrousel-item:hover {
  transform: translateY(-10px);
}

/* Image du carrousel */
.carrousel-item img {
  object-fit: cover;
  width: 100%;
  height: auto;
  border: 4px solid black;
  border-radius: 5px;
  background: linear-gradient(
      to left,
      rgba(249, 249, 249, 0),
      rgba(249, 249, 249, 1) 50%
    ),
    linear-gradient(
      to right,
      rgba(249, 249, 249, 0),
      rgba(249, 249, 249, 1) 50%
    );
  /* Dégradé transparent vers le fond (f9f9f9 ici) sur les côtés */
  box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.4);
}

/* Titre de l'élément */
.carrousel-item-title,
h3 {
  font-size: 2rem;
  color: var(--light-color);
  width: 100%;
  line-height: 30px;
  margin-left: 10px;
}

/* Accroche sous le titre */
.carrousel-item .carrousel-item-accroche {
  font-weight: 200;
  margin-bottom: 1px;
  width: 100%;
  font-style: italic;
  line-height: 30px;
  margin-top: 15px;
  text-align: center;
  font-size: 1.5rem;
  color: var(--light-color);
}

/* Description de l'élément */
.carrousel-item-description {
  font-size: 1rem;
  margin-bottom: 15px;
  margin-top: 1rem;
  color: var(--light-color);
  text-align: center;
  width: 100%;
  font-weight: 200;
  line-height: 20px;
}

.carrousel-item {
  display: none;
}

.carrousel-item:first-child {
  display: block;
}

.dots-container {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.dot {
  width: 12px;
  height: 12px;
  background-color: var(--secondary-color);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.dot.active {
  background-color: #505050;
}

.dot:hover {
  background-color: #909090;
}

.gray-light {
  background-color: #d3d3d3;
}

.gray-medium {
  background-color: #a9a9a9;
}

.gray-dark {
  background-color: #696969;
}

footer {
  position: relative;
  background-image: url(../images/carte-longueuil.png);
  background-size: cover;
  background-position: center;
  height: 400px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  overflow: hidden;
  text-align: center;
  border-top: 5px solid white;
  border-bottom: 5px solid white;
  margin-top: 100px;
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle,
    rgba(70, 106, 120, 0.1) 0%,
    rgba(148, 187, 233, 0.8) 100%
  );
  z-index: 1;
}

footer p {
  position: relative;
  background: rgb(70, 106, 120);
  background: radial-gradient(
    circle,
    rgba(70, 106, 120, 1) 0%,
    rgba(148, 187, 233, 1) 100%
  );
  padding: 15px 20px;
  font-size: 1rem;
  line-height: 1.5;
  color: #ffffff;
  z-index: 2;
  margin: 0;
  width: 100%;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.5);
  text-align: center;
  font-style: italic;
  font-weight: 200;
  border-top: 5px solid white;
  border-bottom: 5px solid white;
}

/* Styles généraux */

main .main-content p {
  margin-bottom: 30rem;
}

/* Styles pour le formulaire */
form {
  background-color: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  max-width: none;
  width: 100%;
  margin: 0;
  margin-top: 30px;
}

form p {
  margin: 0;
  line-height: 1.6;
}

form label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: #333;
}

form input[type="text"],
form input[type="email"],
form input[type="file"],
form textarea,
form select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-sizing: border-box;
  font-size: 1rem;
}

form input[type="submit"]:hover,
form input[type="reset"]:hover {
  background-color: #0056b3;
}

/* Ajuster le padding et la marge pour les boutons */
form input[type="submit"],
form input[type="reset"] {
  background-color: #007bff;
  color: #fff;
  padding: 10px 15px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  margin-right: 10px;
}

/* Eviter l'espacement supplémentaire entre les champs */
form input,
form textarea,
form select {
  margin-bottom: 1rem;
}

.required::after {
  content: " *";
  color: red;
  font-weight: bold;
}

.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}
.content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-start;
}

.text-content {
  font-size: large;
}

.form-content {
  flex: 5; /* Donne plus d'espace au formulaire */
  min-width: 300px;
}

/* Préparation pour l'impression */
@media print {
  /* Réinitialiser certaines propriétés pour l'impression */
  body,
  header,
  nav,
  footer {
    background: none !important;
    color: black !important;
    font-size: 12pt;
  }

  h2.section-title {
    font-size: 2rem;
    color: black;
    position: relative;
    text-transform: uppercase;
    font-weight: 600;
    line-height: 50px;
    margin-bottom: 20px;
    margin-top: 20px;
  }

  main p {
    margin-bottom: 20px;
    line-height: 1.6;
    color: black;
  }

  /* Gérer les éléments qui ne doivent pas être imprimés */
  .no-print,
  .navbar,
  .header-banner,
  .footer {
    display: none !important;
  }

  footer {
    display: none !important;
  }

  /* Forcer l'affichage du carrousel pour l'impression */
  .carrousel {
    display: block !important;
    page-break-inside: avoid;
    width: 50% !important;
    overflow: visible !important;
    margin: 0 !important;
  }

  /* Ajuster les éléments du carrousel */
  .carrousel-item {
    display: inline-block !important;
    width: auto !important;
    margin: 10px !important;
    page-break-inside: avoid;
  }

  /* Ajuster la taille des images dans le carrousel */
  .carrousel-item img {
    width: 100% !important;
    height: auto !important;
  }

  /* Ajuster les titres et les paragraphes */
  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    font-size: 10pt;
    margin-bottom: 15px;
  }

  p {
    font-size: 8pt;
    margin-bottom: 10px;
    color: #000;
  }

  /* Espacements et bordures */
  .content-container {
    margin: 20px;
  }

  .main-content {
    width: 100% !important;
    padding: 0 !important;
  }

  /* Réinitialiser les styles des liens */
  a {
    color: black !important;
    text-decoration: none;
  }

  .dot {
    display: none;
  }

  audio {
    display: none;
  }

  /* Formulaire */
  form {
    background-color: #f9f9f9;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: none;
    width: 100%;
    height: auto;
    margin: 0;
    margin-top: 15px;
    max-height: 25%;
    overflow: hidden;
  }

  /* Réduire la taille des éléments à l'intérieur du formulaire */
  form input,
  form select,
  form textarea {
    font-size: 11pt;
    padding: 5px;
    margin-bottom: 10px;
  }

  /* Optimisation de l'espacement interne */
  form .form-group {
    margin-bottom: 15px;
  }

  label[for="image"],
  label[for="clip-audio"],
  label[for="langue"] {
    display: none;
  }

  input[type="file"],
  select {
    display: none;
  }

  form input[type="submit"]:hover,
  form input[type="reset"]:hover {
    display: none;
  }

  /* Ajuster le padding et la marge pour les boutons */
  form input[type="submit"],
  form input[type="reset"] {
    display: none;
  }
}
