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

body,
button {
  background: white;
  font-family: "Abel", sans-serif;
  text-align: center;
}

nav {
  width: 100%;
  height: auto;
  background-image: url(Image/what.jpg);
  background-size: cover;
  margin-left: auto;
  margin-right: auto;
  font-size: 12px;
  text-align: center;
  padding-top: 10px;
  border-bottom: none;
  transition: height 0.3s ease-in-out;
}

nav h3 {
  font-size: 65px;
  font-weight: bold;
  color: white;
}

ul {
  display: flex;
  justify-content: center;
  align-items: center;
  list-style-type: none;
}

li {
  margin: 0 0px;
}

a img.logo {
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: 100%;
}

.logo {
  padding: 0;
  margin: 0;
  vertical-align: middle;
  transition: transform 0.3s ease-in-out;
  line-height: 130px;
}

.logo:hover {
  transform: scale(1.2);
}

nav a {
  display: flex;
  align-items: center;
  color: white;
  font-size: 20px;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 600;
  line-height: 130px;
  transition: color 0.3s ease-in-out;
}

nav a:hover {
  color: #78dbe8;
  outline: 1px solid #214ac4;
}

ul img {
  width: 120px;
  height: 100px;
  max-width: 100%;
  max-height: 100%;
}

nav ul {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  list-style-type: none;
}

nav li {
  margin: 20px;
}

h3:hover {
  color: #f69a9af7;
  transition: 550ms;
  background: linear-gradient(to right, #006eff, #8fffa2, #14ffd0, #f93939, yellow, orange, #f0e80f);
  background-clip: text;
  animation: rainbow 2s linear infinite;
}


@keyframes rainbow {
  to {
    background-position: 200% 0;
  }
}

@media screen and (max-width: 550px) {
  nav li {
    margin: 0 8px;
  }

  nav a {
    font-size: 15px;
  }
}

/* HOME */
.hero {
  height: 80vh;
  display: flex;
  overflow: hidden;
  position: relative;
  max-height: 800px;
  margin: 0;
  border: 2px solid rgba(0, 0, 0, 0.8);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  margin-top: 55px;
}

h1 {
  color: #f1f1f1;
  font-size: 90px;
  padding-top: 90px;
  padding-bottom: 20px;
  margin-left: 8vw;
  white-space: nowrap;
}

#home h1:hover {
  background-position: 0% 0;
}

.hero p {
  color: #f1f1f1;
  font-size: 25px;
  width: 90%;
  max-width: 800px;
  text-align: center;
  line-height: 1.4;
  margin: 0 auto;
  padding: 20px;
}

.btn-hero {
  display: flex;
}

.btn-home {
  font-size: 10px;
  text-align: center;
  padding: 20px;
  left: 500px;
  text-decoration: none;
  margin-top: 20px;
  border-radius: 200px;
  cursor: pointer;
  display: flex;
}

.btn-home img {
  width: 40px;
  height: 35px;
  margin-right: 1px;
  display: block;
  transition: transform 0.2s ease-in-out, margin-right 0.2s ease-in-out;
}

.btn-home img:hover {
  transform: translateX(4px);
  margin-right: 4px;
}

.b1 {
  margin-left: 100px;
}

.btn-home:hover {
  color: #212121;
  background: #ffb13d;
  transition: all 0.2s ease;
}

.home-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem;
  background: linear-gradient(to right, #4a6fa5, #5d7bb8); /* teinte adaptée */
  color: white;
  z-index: 2;
  position: relative;
}

.home-right {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.home-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-right::before {
  content: "";
  position: absolute;
  top: 0;
  left: -10%; /* élargi vers la gauche */
  width: 35%;  /* élargi pour recouvrir la frontière */
  height: 100%;
  background: linear-gradient(to right, rgba(74, 111, 165, 1), rgba(74, 111, 165, 0));
  z-index: 1;
}

.home-right {
  flex: 1;
  background-image: url("Image/Portfolio2 (1).png");
  background-size: cover;
  background-position: center;
  width: 50%;
  height: 100%;
  position: relative;
  z-index: 1;
  transform-origin: center;
}



.hero-container {
  display: flex;
  width: 100vw;
  justify-content: space-between;
  align-items: center;
  overflow: hidden;
}

.home-right {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.home-right img {
  width: 100%;
  height: auto;
  display: block;
}

@media screen and (max-width: 1350px) {
  .home-left {
    width: 50%;
  }

  .home-right {
    background-position: 35% 20%;
  }
}

@media screen and (max-width: 950px) {
  h1 {
    font-size: 80px;
  }
}

@media screen and (max-width: 750px) {
  .hero {
    height: 600px;
  }

  h1 {
    font-size: 60px;
    margin-bottom: 10px;
  }

  .hero p {
    font-size: 18px;
    margin-bottom: 10px;
  }

  .btn-home {
    font-size: 18px;
    padding: 12px 18px;
    margin-top: 20px;
  }
}

@media screen and (max-width: 550px) {
  .hero {
    height: 450px;
  }

  h1 {
    font-size: 50px;
    padding-top: 100px;
    margin-left: 2vw;
  }

  .hero p {
    font-size: 16px;
    margin-left: 2vw;
    margin-bottom: 15px;
  }

  .btn-home {
    padding: 8px 10px;
    font-size: 14px;
  }

  .b1 {
    margin-left: 2vw;
  }

  .b2 {
    margin-left: 10vw;
  }

  .home-left {
    box-shadow: 50px 0px 100px 100px rgb(0, 0, 0);
    width: 50%;
  }
}

@media screen and (max-width: 768px) {
  .hero {
    border: none;
    border-top: 2px solid rgba(0, 0, 0, 0.8);
    border-bottom: 2px solid rgba(0, 0, 0, 0.8);
    margin-top: 50px;
  }

  .home-left {
    width: 100%;
    padding: 30px 20px;
  }

  .home-right {
    width: 100%;
    height: 40vh;
    margin-top: -50px;
  }

  .hero p {
    font-size: 1.1rem;
    padding: 15px;
  }

  .home-right::before {
    left: 0;
    top: -5%;
    width: 100%;
    height: 25%;
    background: linear-gradient(to bottom,
      #233D63 0%,
      rgba(35, 61, 99, 0.98) 20%,
      rgba(35, 61, 99, 0.95) 40%,
      rgba(35, 61, 99, 0.85) 60%,
      rgba(35, 61, 99, 0.6) 75%,
      rgba(35, 61, 99, 0.2) 90%,
      rgba(35, 61, 99, 0) 100%
    );
  }
}

@media screen and (max-width: 480px) {
  .home-right {
    height: 250px;
    margin-top: -30px;
  }

  .home-right::before {
    top: -30px;
    height: 80px;
  }

  .hero p {
    width: 95%;
    font-size: 1rem;
    padding: 15px;
  }
}

/* À propos de moi */

.A_propos {
  text-align: center;
}

.info-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title1 {
  font-size: 45px;
  display: inline-block;
  padding: 5px 60px 5px;
  border: 8px solid #233D63;
  border-radius: 50px;
  cursor: pointer;
  transition: transform 0.3s ease-in-out;
  box-shadow: 8px 8px 8px rgba(0, 0, 0, 0.2);
  margin: 10px 15px 25px;
}

.section-title1:hover {
  transform: scale(0.9);
}

.section-title2 {
  text-align: right;
  font-size: 45px;
  display: inline-block;
  padding: 5px 60px 5px;
  border: 8px solid #233D63;
  border-radius: 50px;
  cursor: pointer;
  transition: transform 0.3s ease-in-out;
  box-shadow: 8px 8px 8px rgba(0, 0, 0, 0.2);
  margin: 30px 15px 25px;
}

.section-title2:hover {
  transform: scale(0.9);
}

.info-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  max-width: 300px;
  margin: 0 auto;
}

.skills-section {
  padding: 2rem;
  background-color: #f5f5f5;
  color: #333;
}

.skills-section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  text-align: center;
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.skill-item {
  background-color: #4a6fa5;
  color: white;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  font-weight: 500;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  place-content: center;
}


.info-card:hover {
  transform: translateY(-5px);
}

.container-info-photo {
  width: 100%;
  height: 180px;
  overflow: hidden;
}

.container-info-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.info-card:hover .container-info-photo img {
  transform: scale(1.1);
}

.info-card h2 {
  color: #1a237e;
  margin: 1rem;
  font-size: 1.2rem;
  text-align: center;
}

.info-card p {
  color: #666;
  margin: 0 1rem 1rem;
  font-size: 0.9rem;
  text-align: center;
  line-height: 1.4;
}

@media (max-width: 768px) {
  .info-section {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    padding: 1rem;
    gap: 1rem;
  }

  .info-card {
    max-width: 250px;
  }

  .container-info-photo {
    height: 150px;
  }
}

@media screen and (max-width: 1000px) {
  .section-title1 {
    font-size: 50px;
  }
}

@media screen and (max-width: 550px) {
  .section-title1 {
    font-size: 30px;
    padding: 40px 20px 40px;
  }

  .info-card {
    margin: 0 10px 45px;
  }
}

/* CHOICE */
#choice {
  background: #000;
  width: 100%;
  height: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.training-choice {
  color: #fff;
  width: 30%;
  text-align: center;
  margin: 50px 20px 70px;
}

.training-choice h3 {
  font-size: 45px;
  margin-bottom: 20px;
}

.training-choice p {
  font-size: 20px;
  width: 70%;
  margin: 0 auto 30px;
}

.btn-outline-choice {
  width: 300px;
  padding: 15px 0;
  font-size: 20px;
  background: #00999d;
  border: 1px solid #00999d;
  color: #000;
  cursor: pointer;
  border-radius: 5px;
  font-weight: bold;
}

.btn-outline-choice:hover {
  transition: all 0.2s ease-in-out;
  background: #000;
  color: #00999d;
}

@media screen and (max-width: 1200px) {
  .training-choice {
    width: 400px;
  }
}

@media screen and (max-width: 775px) {
  #choice {
    flex-direction: column;
  }

  .training-choice {
    width: 350px;
    margin: 50px 0 70px;
  }

  .training-choice h3 {
    font-size: 40px;
    margin-bottom: 20px;
  }

  .btn-outline-choice {
    width: 250px;
  }

  .training-choice:nth-child(1) {
    margin: 50px 20px 0;
  }
}

/*EQUIPMENTS*/
#engagement {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  width: 100%;
  max-width: auto;
  min-height: auto;
  margin: 0 auto 70px;
  text-align: center;
}

#engagement .section-title2 {
  font-size: 81px;
  display: inline-block;
  padding: 10px 120px 13px;
  border: 15px solid #233D63;
  border-radius: 100px;
  cursor: pointer;
  transition: transform 0.3s ease-in-out;
}

#engagement .section-title2:hover {
  transform: scale(0.9);
}

#engagement .equip-container {
  position: relative;
  overflow: hidden;
}

.equip-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom right, #233D63, #0080D2);
  border-radius: 25px;
  z-index: -1;
}

.equip-container a {
  position: relative;
  z-index: 1;
  display: block;
  text-decoration: none;
  color: #fff;
}

.equip-container a:hover {
  color: #ffffff;
}

.btn-modal {
  width: 550px;
  height: 700px;
  border: 9px solid #ffffff;
  margin: 8px;
  cursor: pointer;
  overflow: hidden;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  position: relative;
  box-shadow: 12px 12px 12px rgba(0, 0, 0, 0.2);
}

.btn-modal:nth-child(1) {
  background-image: url(Image/m);
}

.btn-modal:nth-child(2) {
  background-image: url(img/equip-2.jpg);
}

.btn-modal:nth-child(3) {
  background-image: url(img/equip-3.jpg);
}

.btn-modal:nth-child(4) {
  background-image: url(img/equip-4.jpg);
}

.btn-modal:nth-child(5) {
  background-image: url(img/equip-5.jpg);
}

.btn-modal:nth-child(6) {
  background-image: url(img/equip-6.jpg);
}

.bloc-modal {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgb(0, 0, 0, 0.75);
  z-index: 1000;
  display: none;
}

.active-modal {
  display: block;
}

.bloc-img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: auto;
  height: auto;
  max-width: 500px;
  max-height: 400x;
}

.bloc-img img {
  width: 100%;
}

.close {
  position: absolute;
  z-index: 3000;
  top: 3%;
  right: 3%;
  width: 50px;
  height: 50px;
  font-size: 24px;
  color: #fff;
  background: red;
  border-radius: 50%;
  cursor: pointer;
  border: none;
}

.equip-container {
  text-align: center;
  margin: 10px;
  font-size: 45px;
  color: #fff;
  text-transform: uppercase;
}

.equip-container .btn-modal {
  width: 600px;
  height: 300px;
  border: none;
  cursor: pointer;
  overflow: hidden;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

.equip-container .btn-modal:nth-child(1) {
  background-image: url(images/evenement/canoe.jpg);
}

.equip-container .btn-modal:nth-child(2) {
  background-image: url(images/evenement/football.jpg);
}

.equip-container .btn-modal:nth-child(3) {
  background-image: url(images/evenement/motocross.jpg);
}

.equip-container .btn-modal:nth-child(4) {
  background-image: url(images/evenement/plancheAvoile.jpg);
}

.equip-container .btn-modal:nth-child(5) {
  background-image: url(images/evenement/plongée.jpg);
}

.equip-container .btn-modal:nth-child(6) {
  background-image: url(images/evenement/triathlon.jpg);
}

/* CONTACT */
#contact {
  padding: 4rem 2rem;
  text-align: center;
  background-color: rgba(219, 0, 0, 0.95);
}

.contact-info,
.contact-form {
  margin-top: 20px;
  text-align: center;
}

.contact-info p {
  margin: 5px 0;
}

.contact-form {
  max-width: 500px;
  margin: 0 auto;
}

.contact-form label {
  display: block;
  margin-bottom: 8px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

.contact-form button {
  background-color: #4CAF50;
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.contact-form button:hover {
  background-color: #45a049;
}

.contact-form .success-message,
.contact-form .error-message {
  padding: 10px;
  margin-bottom: 16px;
  border-radius: 4px;
}

.contact-form .success-message {
  background-color: #dff0d8;
  border: 1px solid #d6e9c6;
  color: #3c763d;
}

.contact-form .error-message {
  background-color: #f2dede;
  border: 1px solid #ebccd1;
  color: #a94442;
}

#contact .btn-reseau-contact {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  width: 100%;
  max-width: auto;
  min-height: auto;
  margin: 20px auto 70px;
  text-align: center;
}

#contact .btn-reseau-contact .btn-home {
  margin: 0 10px;
}

#contact .btn-reseau-contact .btn-home:hover {
  filter: invert(85%);
}

/* S'INSCRIRE */
#Sinscrire {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #233D63;
  color: white;
  padding: 40px;
  border-radius: 100px;
}

.signup-section {
  display: flex;
  justify-content: space-around;
  max-width: 1000px;
  margin: 0 auto;
}

.training-choice {
  color: #fff;
  text-align: center;
}

.training-choice h3 {
  font-size: 45px;
  margin-bottom: 20px;
}

.training-choice p {
  font-size: 20px;
  width: 70%;
  margin: 0 auto 30px;
}

.btn-outline-choice {
  width: 300px;
  padding: 15px 0;
  font-size: 20px;
  background: #000000;
  border: 1px solid #00999d;
  color: #ffffff;
  cursor: pointer;
  border-radius: 5px;
  font-weight: bold;
}

.btn-outline-choice:hover {
  transition: all 0.2s ease-in-out;
  background: #ffffff;
  color: #000000;
}

@media screen and (max-width: 775px) {
  #Sinscrire {
    flex-direction: column;
  }

  .signup-section {
    flex-direction: column;
  }

  .training-choice {
    width: 100%;
    margin-bottom: 20px;
  }
}

.equip-container {
  text-align: center;
  margin: 10px;
  position: relative;
}

.btn-modal {
  width: 350px;
  height: 400px;
  cursor: pointer;
  overflow: hidden;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  position: relative;
  border: 9px solid #ffffff;
  ;
}

.btn-modal:hover {
  border: 9px solid #ffffff;
  box-shadow: 12px 12px 12px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
  nav h3 {
    font-size: 40px;
  }

  .hero h1 {
    font-size: 50px;
  }

  .btn-home {
    font-size: 16px;
    padding: 10px 20px;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 40px 10px;
  }
}

.overlay-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #ffffff;
  border-color: rgb(255, 255, 255);
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-modal:hover .overlay-text {
  opacity: 1;
}

.equip-text {
  margin-top: 5px;
  font-size: 23px;
  color: white;
}

.animated-element {
  animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.btn-hero1 {
  display: flex;
  align-items: center;
}

h2 {
  font-size: clamp(24px, 5vw, 75px);
  /* S'adapte entre 24px et 75px */
}

@media (max-width: 768px) {
  h2 {
    font-size: 5vw;
    /* Ajuste la taille pour les écrans plus petits */
    margin: 30px 10px;
    padding: 5px 20px;
  }
}

@media (max-width: 768px) {
  h2 {
    font-size: 5vw;
    /* Ajuste la taille pour les écrans plus petits */
    margin: 30px 10px;
    padding: 5px 20px;
  }
}

/* Règles de base pour la responsivité */
html {
  font-size: 16px;
  overflow-x: hidden;
}

body {
  width: 100%;
  overflow-x: hidden;
}

/* Media Queries pour la navigation */
@media screen and (max-width: 768px) {
  nav {
    padding: 10px;
  }

  nav h3 {
    font-size: 2rem;
  }

  nav ul {
    flex-direction: column;
    align-items: center;
    padding: 10px 0;
  }

  nav li {
    margin: 10px 0;
  }

  .logo {
    width: 80px;
    height: 80px;
  }
}

/* Media Queries pour la section hero */
@media screen and (max-width: 768px) {
  .hero {
    flex-direction: column;
    height: auto;
  }

  .home-left {
    width: 100%;
    padding: 20px;
    box-shadow: none;
  }

  .home-right {
    width: 100%;
    height: 300px;
    margin-top: 20px;
  }

  h1 {
    font-size: 2.5rem;
    margin: 20px 0;
    padding: 0;
  }

  .hero p {
    width: 90%;
    font-size: 1.2rem;
    padding: 20px;
  }

  .btn-hero {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  .btn-home {
    margin: 5px;
  }

  .b1 {
    margin-left: 0;
  }
}

/* Media Queries pour les sections de contenu */
@media screen and (max-width: 768px) {
  .info-section {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px;
  }

  .info-card {
    width: 100%;
    margin: 10px 0;
  }

  .section-title1, .section-title2 {
    font-size: 32px;
    padding: 5px 30px 5px;
    border: 6px solid #233D63;
    margin: 15px 10px 20px;
  }

  .passions-section {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px;
  }

  .equip-container {
    width: 100%;
    margin: 10px 0;
  }

  .btn-modal {
    height: 200px;
  }
}

/* Media Queries pour le formulaire de contact */
@media screen and (max-width: 768px) {
  #contact {
    padding: 20px;
  }

  .contact-form {
    width: 100%;
    padding: 20px;
  }

  .contact-form input,
  .contact-form textarea {
    width: 100%;
    margin: 10px 0;
  }

  .contact-info {
    padding: 20px;
  }

  .btn-reseau-contact {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }
}

/* Media Queries pour les très petits écrans */
@media screen and (max-width: 480px) {
  nav h3 {
    font-size: 1.5rem;
  }

  h1 {
    font-size: 2rem;
  }

  .hero p {
    width: 95%;
    font-size: 1rem;
    padding: 15px;
  }

  .section-title1, .section-title2 {
    font-size: 24px;
    padding: 5px 20px 5px;
    border: 4px solid #233D63;
    margin: 10px 5px 15px;
  }

  .btn-modal {
    height: 150px;
  }

  .overlay-text {
    font-size: 1rem;
  }

  .equip-text {
    font-size: 0.9rem;
  }
}

/* Optimisations pour les tablettes */
@media screen and (min-width: 769px) and (max-width: 1024px) {
  .info-section {
    grid-template-columns: repeat(2, 1fr);
  }

  .passions-section {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero p {
    width: 80%;
  }

  .home-left {
    width: 45%;
  }

  .home-right {
    width: 55%;
  }
}

/* Section Contact */
#contact {
  padding: 4rem 2rem;
  text-align: center;
  background-color: rgba(35, 61, 99, 0.95);
}

.legal-links {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.legal-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.legal-links a:hover {
  color: #4a90e2;
}

/* Contact Section Styles */
.contact-container {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  flex: 1;
}

.contact-card {
  background: #fff;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-5px);
}

.contact-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 1rem;
}

.contact-card h3 {
  color: #1a237e;
  margin-bottom: 0.5rem;
}

.contact-card p {
  color: #666;
  margin-bottom: 1rem;
}

.contact-link {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: #1a237e;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.contact-link:hover {
  background-color: #283593;
}

.contact-form {
  flex: 1;
  background: #fff;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.contact-form h3 {
  color: #1a237e;
  margin-bottom: 1.5rem;
  text-align: center;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
}

.form-group textarea {
  height: 150px;
  resize: vertical;
}

.submit-btn {
  width: 100%;
  padding: 1rem;
  background-color: #1a237e;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.submit-btn:hover {
  background-color: #283593;
}

@media (max-width: 768px) {
  .contact-container {
    flex-direction: column;
  }
  
  .contact-info {
    grid-template-columns: 1fr;
  }
}

/* Contact Section */
.contact-section {
  background-color: #1a237e;
  color: white;
  padding: 4rem 2rem;
  text-align: center;
  margin-top: 4rem;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 2rem;
}

.btn-reseau-contact {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.btn-home {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: white;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

.btn-home:hover {
  transform: scale(1.1);
}

.btn-home img {
  width: 30px;
  height: 30px;
}

.legal-links {
  margin-top: 2rem;
}

.legal-links a {
  color: white;
  text-decoration: none;
  font-size: 0.9rem;
}

.legal-links a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .btn-reseau-contact {
    gap: 1rem;
  }
}

/* Header and Navigation */
.header {
    background: linear-gradient(135deg, #1a237e 0%, #0d47a1 100%);
    padding: 0.3rem 2rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    height: 100%;
}

.nav-brand img {
    width: 45px;
    height: 45px;
    transition: transform 0.3s ease;
    display: block;
}

.nav-brand h1 {
    color: white;
    font-size: 1.5rem;
    font-weight: 500;
    margin: 0;
    padding: 0;
    line-height: 45px;
    height: 45px;
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    padding: 0.3rem 0;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.nav-link:hover {
    color: #64b5f6;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #64b5f6;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

@media (max-width: 1024px) {
    .nav-container {
        max-width: 100%;
    }
    
    .nav-menu {
        gap: 1rem;
    }
    
    .nav-brand h1 {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #1a237e;
        flex-direction: column;
        padding: 1rem 0;
        text-align: center;
    }

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

    .nav-item {
        width: 100%;
    }

    .nav-link {
        display: block;
        padding: 0.5rem 1rem;
    }

    .nav-link::after {
        display: none;
    }

    .header {
        padding: 0.3rem 1rem;
    }

    .nav-brand img {
        width: 40px;
        height: 40px;
    }

    .nav-brand h1 {
        font-size: 1.2rem;
        line-height: 40px;
    }

    .hero {
        margin-top: 50px;
    }
}

/* BTS Info Section */
.bts-info-section {
    background-color: #f5f5f5;
    padding: 4rem 2rem;
    margin: 2rem 0;
}

.bts-info-container {
    max-width: 1200px;
    margin: 0 auto;
}

.bts-info-content {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
    margin-top: 2rem;
}

.bts-info-text {
    flex: 1;
    text-align: left;
}

.bts-info-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333;
    margin-bottom: 1.5rem;
}

/* Styles pour les menus déroulants */
.speciality-dropdown {
    margin-bottom: 1.5rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.speciality-dropdown:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.speciality-header {
    padding: 1rem;
    background: #1a237e;
    color: white;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.speciality-header:hover {
    background: #283593;
}

.speciality-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 500;
}

.arrow {
    transition: transform 0.3s ease;
}

.speciality-dropdown:hover .arrow {
    transform: rotate(180deg);
}

.speciality-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: white;
}

.speciality-dropdown:hover .speciality-content {
    max-height: 500px;
}

.speciality-content p {
    padding: 1rem;
    margin: 0;
    color: #1a237e;
    font-weight: 500;
    border-bottom: 1px solid #e0e0e0;
}

.speciality-content ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.speciality-content li {
    padding: 0.8rem 1rem;
    color: #333;
    border-bottom: 1px solid #f5f5f5;
    transition: background-color 0.3s ease;
}

.speciality-content li:hover {
    background-color: #f8f9fa;
}

.speciality-content li:last-child {
    border-bottom: none;
}

.bts-info-image {
    flex: 1;
    max-width: 500px;
    position: sticky;
    top: 100px;
}

.bts-info-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    .bts-info-content {
        flex-direction: column;
        gap: 2rem;
    }

    .bts-info-image {
        max-width: 100%;
        position: static;
    }

    .bts-info-text {
        text-align: center;
    }

    .speciality-content {
        text-align: left;
    }
}

/* Cookie Banner Styles */
.cookie-banner {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(26, 35, 126, 0.95);
  color: white;
  padding: 1rem;
  z-index: 1000;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.cookie-content p {
  margin: 0;
  font-size: 0.9rem;
  flex: 1;
}

.cookie-content button {
  background-color: white;
  color: #1a237e;
  border: none;
  padding: 0.5rem 1.5rem;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.cookie-content button:hover {
  background-color: #f5f5f5;
}

@media (max-width: 768px) {
  .cookie-content {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .cookie-content button {
    width: 100%;
  }
}

/* Documents Link Button */
.documents-link {
  text-align: center;
  margin: 2rem 0;
}

.btn-documents {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  background-color: #1a237e;
  color: white;
  padding: 1rem 2rem;
  border-radius: 5px;
  text-decoration: none;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-documents:hover {
  background-color: #283593;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-documents .icon {
  font-size: 1.5rem;
}

.btn-documents .text {
  font-weight: 500;
}

@media (max-width: 768px) {
  .btn-documents {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
  }
  
  .btn-documents .icon {
    font-size: 1.3rem;
  }
}

/* BTS SIO Section */
.bts-section {
  padding: 4rem 2rem;
  background: linear-gradient(135deg, #1a237e, #0d47a1);
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.bts-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('../Image/pattern.png') repeat;
  opacity: 0.1;
  z-index: 1;
}

.bts-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.bts-text {
  text-align: left;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.bts-text h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.bts-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  color: #fff;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.bts-text ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.bts-text li {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  padding-left: 1.5rem;
  position: relative;
  color: #fff;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.bts-text li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: #64b5f6;
}

.bts-image {
  position: relative;
  padding: 2rem;
}

.bts-image img {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.bts-image img:hover {
  transform: translateY(-5px);
}

/* Responsive Design pour BTS SIO */
@media (max-width: 1024px) {
  .bts-content {
    gap: 2rem;
  }

  .bts-text h2 {
    font-size: 2.2rem;
  }

  .bts-text p,
  .bts-text li {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .bts-section {
    padding: 3rem 1rem;
  }

  .bts-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .bts-text {
    padding: 1.5rem;
  }

  .bts-text h2 {
    font-size: 2rem;
    text-align: center;
  }

  .bts-text p,
  .bts-text li {
    font-size: 1rem;
  }

  .bts-image {
    padding: 1rem;
  }

  .bts-image img {
    max-width: 400px;
    margin: 0 auto;
    display: block;
  }
}

@media (max-width: 480px) {
  .bts-section {
    padding: 2rem 1rem;
  }

  .bts-text h2 {
    font-size: 1.8rem;
  }

  .bts-text {
    padding: 1rem;
  }

  .bts-text p,
  .bts-text li {
    font-size: 0.95rem;
  }

  .bts-image img {
    max-width: 300px;
  }
}