:root {
  --main-color: rgb(100, 155, 199);
  --main-color-alt: rgb(100, 155, 199);
  --main-transition: 0.3s;
  --main-padding-top: 100px;
  --main-padding-bottom: 100px;
  --section-background: #ececec;
}

.container {
  padding-left: 15px;
  padding-right: 15px;
  margin-left: auto;
  margin-right: auto;
}

/* Small */
@media (min-width: 768px) {
  .container {
    width: 750;
  }
}

/* Medium */
@media (min-width: 992px) {
  .container {
    width: 970px;
  }
}

/* Large */
@media (min-width: 1200px) {
  .container {
    width: 1170px;
  }
}

.spikes {
  position: relative;
}

.spikes::after {
  content: "";
  position: absolute;
  right: 0;
  width: 100%;
  height: 30px;
  z-index: 1;
  background-image: radial-gradient(circle at 15px 30px, #ececec 15px, transparent 16px);
  background-size: 30px 30px;
  background-color: white;
}

.spikes-2 {
  position: relative;
}

.spikes-2::after {
  content: "";
  position: absolute;
  right: 0;
  width: 100%;
  height: 30px;
  z-index: 1;
  background-image: radial-gradient(circle at 15px 0, #ececec 15px, transparent 16px);
  background-size: 30px 30px;
}


.dots {
  background-image: url("../images/bleu.png");
  height: 300px;
  width: 300px;
  background-repeat: no-repeat;
  position: absolute;
  opacity: 1;
  z-index: -1;
}


.dots-up {
  top: 200px;
  right: 0;
}

.dots-down {
  bottom: 150px;
  left: 0;
}

.dots-up1 {
  top: 150px;
  right: 0;
}

.dots-down1 {
  bottom: 150px;
  left: 0;
}

.dots-up3 {
  top: 725px;
  right: 0;
}

@media (max-width: 1204px) {
.dots-up {
  top: 575px;
  right: 0;
}
.dots-down {
  bottom: 220px;
  left: 0;
}
.dots-up1 {
  top: 540px;
  right: 0;
}

.dots-down1 {
  bottom: 590px;
  left: 0;
}
}

@media (max-width: 994px) {
.dots-up {
  display: none;
}
.dots-down {
  display: none;
}
.dots-up1 {
  display: none;
}
.dots-down1 {
  display: none;
}
.dots-up3 {
  display: none;
}
}

.articles {
  padding-top: var(--main-padding-top);
  padding-bottom: var(--main-padding-bottom);
  position: relative;
}

.articles .container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 40px;
}

.articles .box {
  box-shadow: 0 2px 15px rgb(0 0 0 / 10%);
  -webkit-box-shadow: 0 2px 15px rgb(0 0 0 / 10%);
  -moz-box-shadow: 0 2px 15px rgb(0 0 0 / 10%);
  -ms-box-shadow: 0 2px 15px rgb(0 0 0 / 10%);
  -o-box-shadow: 0 2px 15px rgb(0 0 0 / 10%);
  background-color: white;
  border-radius: 6px;
  -webkit-border-radius: 6px;
  -moz-border-radius: 6px;
  -ms-border-radius: 6px;
  -o-border-radius: 6px;
  overflow: hidden;
  transition: transform var(--main-transition),
    box-shadow var(--main-transition);
  -webkit-transition: transform var(--main-transition),
    box-shadow var(--main-transition);
  -moz-transition: transform var(--main-transition),
    box-shadow var(--main-transition);
  -ms-transition: transform var(--main-transition),
    box-shadow var(--main-transition);
  -o-transition: transform var(--main-transition),
    box-shadow var(--main-transition);
}


.articles .box:hover {
  transform: translateY(-10px);
  -webkit-transform: translateY(-10px);
  -moz-transform: translateY(-10px);
  -ms-transform: translateY(-10px);
  -o-transform: translateY(-10px);
  box-shadow: 0 2px 15px rgb(0 0 0 / 20%);
}

.articles .box img {
  width: 100%;
  max-width: 100%;
}

.articles .box .content {
  padding: 20px;
}

.articles .box .content h3 {
  margin: 0;
}

.articles .box .content p {
  margin: 10px 0 0;
  line-height: 1.5;
  color: #777;
}

.articles .box .info {
  padding: 20px;
  border-top: 1px solid #e6e6e7;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.articles .box .info a {
  color: var(--main-color);
  font-weight: bold;
}

.articles .box .info i {
  color: var(--main-color);
}

.articles .box:hover .info i {
  animation: moving-arrow 0.6s linear infinite;
  -webkit-animation: moving-arrow 0.6s linear infinite;
}

.articles .box {
  display: flex;
  flex-direction: column;
}

.articles .box .event-date {
  margin-top: auto;
  padding: 15px 20px;
  border-top: 1px solid #e6e6e7;
  font-weight: bold;
  color: #333;
  text-align: center;
  background-color: #f9f9f9;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}


.gallery {
  padding-top: var(--main-padding-top);
  padding-bottom: var(--main-padding-bottom);
  position: relative;
}

.gallery .container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 40px;
}

.gallery .box {
  padding: 15px;
  background-color: white;
  box-shadow: 0px 12px 20px 0px rgb(0 0 0 / 13%),
    0px 2px 4px 0px rgb(0 0 0 / 12%);
}

.gallery .box .image {
  position: relative;
  overflow: hidden;
}

.gallery .box .image::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  -webkit-transform: translate(-50%, -50%);
  -moz-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  -o-transform: translate(-50%, -50%);
  background-color: rgb(255 255 255 / 20%);
  width: 0px;
  height: 0px;
  opacity: 0;
  z-index: 2;
}

.gallery .box .image:hover::before {
  animation: flashing 0.7s;
  -webkit-animation: flashing 0.7s;
}

.gallery .box img {
  max-width: 100%;
  transition: var(--main-transition);
  -webkit-transition: var(--main-transition);
  -moz-transition: var(--main-transition);
  -ms-transition: var(--main-transition);
  -o-transition: var(--main-transition);
}


.testimonials {
  padding-top: var(--main-padding-top);
  position: relative;
}

.testimonials .container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 40px;
}

.testimonials .box {
  padding: 20px;
  background-color: white;
  box-shadow: 0 2px 4px rgb(0 0 0 / 7%);
  border-radius: 6px;
  -webkit-border-radius: 6px;
  -moz-border-radius: 6px;
  -ms-border-radius: 6px;
  -o-border-radius: 6px;
  position: relative;
}

.testimonials .box img {
  position: absolute;
  right: -10px;
  top: -50px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  -webkit-border-radius: 50;
  -moz-border-radius: 50;
  -ms-border-radius: 50;
  -o-border-radius: 50;
  border: 10px solid var(--section-background);
}

.testimonials .box .h3 {
  margin: 0 0 10px;
}

.testimonials .box .title {
  color: #777;
  margin-bottom: 10px;
  display: block;
}

.testimonials .box p {
  line-height: 1.5;
  color: #777;
  margin-top: 10px;
  margin-bottom: 0;
}

.services {
  padding-top: var(--main-padding-top);
  position: relative;
  background-color: var(--section-background);
}

.services .container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 40px;
}

.services .box {
  background-color: white;
  counter-increment: services;
  transition: var(--main-transition);
  -webkit-transition: var(--main-transition);
  -moz-transition: var(--main-transition);
  -ms-transition: var(--main-transition);
  -o-transition: var(--main-transition);
  position: relative;
}

.services .box::before {
  content: "";
  left: 50%;
  transform: translateX(-50%);
  -webkit-transform: translateX(-50%);
  -moz-transform: translateX(-50%);
  -ms-transform: translateX(-50%);
  -o-transform: translateX(-50%);
  height: 3px;
  top: -3px;
  background-color: var(--main-color);
  position: absolute;
  width: 0;
  transition: var(--main-transition);
  -webkit-transition: var(--main-transition);
  -moz-transition: var(--main-transition);
  -ms-transition: var(--main-transition);
  -o-transition: var(--main-transition);
}

.services .box:hover {
  transform: translateY(-10px);
  -webkit-transform: translateY(-10px);
  -moz-transform: translateY(-10px);
  -ms-transform: translateY(-10px);
  -o-transform: translateY(-10px);
}

.services .box:hover::before {
  width: 100%;
}

.services .box > i {
  margin: 40px auto 20px;
  display: block;
  text-align: center;
  color: #d5d5d5;
}

.services .box > h3 {
  text-align: center;
  margin: 20px 0 40px;
  font-size: 25px;
  color: var(--main-color);
}

.services .box .info {
  padding: 15px;
  position: relative;
  background-color: #f9f9f9;
  text-align: right;
}

.work-steps {
  padding-top: var(--main-padding-top);
  padding-bottom: var(--main-padding-bottom);
  position: relative;
  background-color: var(--section-background);
}

.work-steps .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

@media (max-width: 991px) {
  .work-steps .container {
    flex-direction: column;
  }
}

.work-steps .image {
  max-width: 100%;
  margin-right: 100px;
}

@media (max-width: 991px) {
  .work-steps .image {
    margin: 0 0 50px;
  }
}

.work-steps .info .box {
  background-color: #f6f5f5;
  padding: 30px;
  margin-bottom: 20px;
  border-radius: 6px;
  -webkit-border-radius: 6px;
  -moz-border-radius: 6px;
  -ms-border-radius: 6px;
  -o-border-radius: 6px;
  display: flex;
  align-items: center;
  border: 2px solid white;
  position: relative;
  z-index: 1;
}

.work-steps .info .box::before {
  content: "";
  left: 50%;
  top: 50%;
  position: absolute;
  width: 0;
  height: 0;
  transform: translate(-50%, -50%);
  -webkit-transform: translate(-50%, -50%);
  -moz-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  -o-transform: translate(-50%, -50%);
  background-color: #ededed;
  z-index: -1;
  transition: var(--main-transition);
  -webkit-transition: var(--main-transition);
  -moz-transition: var(--main-transition);
  -ms-transition: var(--main-transition);
  -o-transition: var(--main-transition);
}

.work-steps .info .box:hover::before {
  width: 100%;
  height: 100%;
}

.work-steps .info .box img {
  width: 64px;
  margin-right: 30px;
}

.work-steps .info .box h3 {
  margin: 0;
  font-size: 22px;
}

.work-steps .info .box p {
  color: #777;
  line-height: 1.7;
  margin: 10px 0 0;
  font-size: 18px;
}

.events {
  padding-top: var(--main-padding-top);
  position: relative;
}

.events .container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.events img {
  margin-right: 10px;
  max-width: 400px;
  border-radius: 10px;
}

@media (max-width: 768px) {
  #events .image-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-bottom: 20px;
  }

  #events .image-wrapper img {
    max-width: 400px;
    width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
  }
}

@media (max-width: 991px) {
  .events img {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 90%;
  }
}


.events .info {
  flex: 1;
}

.events .info .time {
  display: flex;
  align-items: center;
  margin: 20px auto;
  gap: 10px;
  justify-content: center;
}

.events .info .time .unit {
  border: 1px solid #d4d4d4;
  border-radius: 6px;
  -webkit-border-radius: 6px;
  -moz-border-radius: 6px;
  -ms-border-radius: 6px;
  -o-border-radius: 6px;
  text-align: center;
  width: 75px;
  transition: var(--main-transition);
  -webkit-transition: var(--main-transition);
  -moz-transition: var(--main-transition);
  -ms-transition: var(--main-transition);
  -o-transition: var(--main-transition);
}

.events .info .time .unit span {
  display: block;
  transition: var(--main-transition);
  -webkit-transition: var(--main-transition);
  -moz-transition: var(--main-transition);
  -ms-transition: var(--main-transition);
  -o-transition: var(--main-transition);
}

.events .info .time .unit span:first-child {
  font-size: 35px;
  padding: 15px;
  color: var(--main-color);
  font-weight: bold;
}

.events .info .time .unit span:last-child {
  padding: 8px 10px;
  font-size: 13px;
  border-top: 1px solid #d4d4d4;
}

.events .info .time .unit:hover,
.events .info .time .unit:hover span:last-child {
  border-color: var(--main-color);
}

.events .title {
  text-align: center;
  margin: 40px 0 0;
  font-size: 30px;
}

.events .description {
  text-align: center;
  line-height: 1.7;
  font-size: 19px;
  color: #777;
}

.events .subscribe {
  width: 100%;
  margin-top: 50px;
}

.events .subscribe form {
  width: 600px;
  margin: 20px auto;
  padding: 30px 40px;
  background-color: #f6f5f5;
  border-radius: 50px;
  -webkit-border-radius: 50px;
  -moz-border-radius: 50px;
  -ms-border-radius: 50px;
  -o-border-radius: 50px;
  display: flex;
  gap: 20px;
}

@media (max-width: 767px) {
  .events .subscribe form {
    max-width: 100%;
    padding: 20px;
    flex-direction: column;
    border-radius: 0;
    -webkit-border-radius: 0;
    -moz-border-radius: 0;
    -ms-border-radius: 0;
    -o-border-radius: 0;
  }
}

.events .subscribe form input[type="email"] {
  padding: 20px;
  border-radius: 50px;
  -webkit-border-radius: 50px;
  -moz-border-radius: 50px;
  -ms-border-radius: 50px;
  -o-border-radius: 50px;
  border: none;
  flex: 1;
  background-color: white;
  caret-color: var(--main-color);
}

@media (max-width: 767px) {
  .events .subscribe form input[type="email"] {
    border-radius: 0;
    -webkit-border-radius: 0;
    -moz-border-radius: 0;
    -ms-border-radius: 0;
    -o-border-radius: 0;
  }
}

.events .subscribe form input[type="email"]:focus {
  outline: none;
}

.events .subscribe form input[type="email"]::placeholder {
  transition: opacity var(--main-transition);
  -webkit-transition: opacity var(--main-transition);
  -moz-transition: opacity var(--main-transition);
  -ms-transition: opacity var(--main-transition);
  -o-transition: opacity var(--main-transition);
}

.events .subscribe form input[type="email"]:focus::placeholder {
  opacity: 0;
}

.events .subscribe form input[type="submit"] {
  border-radius: 50px;
  -webkit-border-radius: 50px;
  -moz-border-radius: 50px;
  -ms-border-radius: 50px;
  -o-border-radius: 50px;
  border: none;
  background-color: var(--main-color);
  color: white;
  font-weight: bold;
  padding: 20px;
  cursor: pointer;
  transition: var(--main-transition);
  -webkit-transition: var(--main-transition);
  -moz-transition: var(--main-transition);
  -ms-transition: var(--main-transition);
  -o-transition: var(--main-transition);
}

@media (max-width: 767px) {
  .events .subscribe form input[type="submit"] {
    border-radius: 0;
    -webkit-border-radius: 0;
    -moz-border-radius: 0;
    -ms-border-radius: 0;
    -o-border-radius: 0;
  }
}

.events .subscribe form input[type="submit"]:hover {
  background-color: var(--main-color-alt);
}


@keyframes flashing {
  0%,
  40% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    width: 200%;
    height: 200%;
  }
}
    
    .header {
      width: 100%;
      background-color: #649bc7;
      color: white;
      text-align: center;
      position: relative;
      overflow: hidden;
      animation: fadeIn 1s ease-out;
      box-sizing: border-box;
      border-bottom-left-radius: 2rem;
      border-bottom-right-radius: 2rem;
    }

    .header-content {
      max-width: 960px;
      margin: 0 auto;
      margin-top: 5em;
      margin-bottom: 2em;
    }

    #landing {
      display: block;
      margin: 0 auto 1.5rem auto;
      max-width: 120px;
      height: auto;
      background: none;
      animation: fadeIn 1s ease-out;
    }

    h1 {
      font-size: 2.4rem;
      font-weight: 700;
      margin-bottom: 1rem;
      animation: slideUp 0.8s ease-out;
      line-height: 1.2;
    }

    .subtitle {
      font-size: 1.3rem;
      font-weight: 500;
      margin-bottom: 2.5rem;
      animation: fadeIn 1.2s ease-out 0.3s both;
      line-height: 1.3;
    }


    .footer-text {
      margin-top: 2.5rem;
      font-size: 1.15rem;
      font-style: italic;
      opacity: 0.9;
      animation: fadeIn 1.8s ease-out 0.8s both;
      line-height: 1.4;
      max-width: 600px;
      margin-left: auto;
      margin-right: auto;
    }

    @keyframes fadeIn {
      from { opacity: 0; }
      to { opacity: 1; }
    }

    @keyframes slideUp {
      from {
        opacity: 0;
        transform: translateY(30px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    @media (max-width: 600px) {
      h1 {
        font-size: 1.8rem;
      }
      .subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
      }
      .contact {
        font-size: 1.2rem;
        padding: 1rem 2rem;
        max-width: 90vw;
      }
      .footer-text {
        font-size: 1rem;
        max-width: 90vw;
      }
    }


body {
  font-family: Arial, sans-serif !important;
  color: rgb(40, 40, 40) !important;
}

h1, h2, h3, h4 {
  font-family: Arial, sans-serif !important;
  font-weight: 700 !important;
  color: rgb(100, 155, 199) !important;
  line-height: 1.2 !important;
}

.header h1 {
  font-size: 2rem !important;
  margin-bottom: 1rem !important;
}

.subtitle {
  font-size: 1.3rem !important;
  color: rgb(40, 40, 40) !important;
  font-weight: 500 !important;
  margin-bottom: 1.2rem !important;
}

.contact {
  font-size: 1.2rem !important;
  font-weight: 500 !important;
  color: rgb(40, 40, 40) !important;
  line-height: 1.5 !important;
}


.section-header .main-title {
  font-size: 1.8rem !important;
  color: rgb(100, 155, 199) !important;
  font-weight: 700 !important;
  text-align: center !important;
  margin-bottom: 1rem !important;
}


.services .box h3,
.work-steps .box h3 {
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  margin-left: 1.5em;
  margin-right: 1.5em;
}

.work-steps .box p {
  font-size: 1.1rem !important;
  font-weight: 400 !important;
  color: rgb(40, 40, 40) !important;
  line-height: 1.4 !important;
}

.articles .box h3 {
  font-size: 1.2rem !important;
  font-weight: 700 !important;
  color: rgb(100, 155, 199) !important;
  margin-bottom: 0.5rem !important;
}
.articles .box p {
  font-size: 1rem !important;
  color: rgb(40, 40, 40) !important;
  line-height: 1.4 !important;
}

.gallery .section-header .main-title {
  color: rgb(100, 155, 199) !important;
}



#landing-header {
  font-family: Arial, sans-serif !important;
  color: white !important;
  text-align: center !important;
  padding: 2rem 1rem !important;
  background-image: url("../images/accueil.jpg") !important;
  background-size: cover;
  background-position: center;

}

#landing-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(100, 154, 199, 0.596);
  z-index: 1;
}

#landing-header * {
  position: relative;
  z-index: 20;
}

#landing-title {
  font-family: Arial, sans-serif !important;
  font-size: 2.2rem !important;
  font-weight: 700 !important;
  color: white !important;
}

#landing-subtitle {
  font-size: 1.4rem !important;
  color: white !important;
  font-weight: 500 !important;
  margin-bottom: 1.5rem !important;
}

#landing-contact {
  font-size: 1.2rem !important;
  font-weight: 500 !important;
  color: white !important;
  line-height: 1.6 !important;
}

#landing-phone {
  font-weight: 700 !important;
  text-decoration: underline !important;
  color: #f0f8ff !important; 
}

#landing-footer-text {
  font-size: 1.15rem !important;
  font-style: italic !important;
  line-height: 1.5 !important;
  opacity: 0.95 !important;
  max-width: 600px !important;
  margin: 2.5rem auto 0 !important;
  color: white !important;
}
.blanding {
  background-color: rgba(100, 154, 199, 0);
  border-radius: 12px;
  padding: 20px;
}


#img_activites{
     width: 350px;
}

header.header {
  background-image: url("./assets/images/prochain_evenement.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed; 
  height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
}

header.header::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.4); 
  z-index: 0;
}

header .header-content {
  position: relative;
  z-index: 1; 
}

.articles .box img {
  width: 100%;
  aspect-ratio: 3 / 4;   /* ratio 3024 x 4032 */
  object-fit: cover;     /* recadre proprement sans étirer */
  border-radius: 6px;    /* optionnel, pour garder cohérence */
  display: block;
}
