/* General Styles */
body {
  font-family: "Montserrat", sans-serif;
  margin: 0;
  padding: 0 20px; /* Base padding for desktop */
  background-color: #fff;
  color: #000;
  overflow-x: hidden;
}

h2 {
  font-size: 24px;
  font-weight: 700;
  margin-top: 40px;
  text-transform: uppercase;
  padding: 10px 20px;
}

/* Layout Components */
.section {
  margin-top: 40px;
  padding: 0 40px;
}

.info-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 0 20px;
}

.info-text {
  flex: 1;
  min-width: 250px;
  font-size: 16px;
  line-height: 2.5;
}

.info-text strong {
  display: block;
  font-size: 18px;
  margin-bottom: 4px;
}

.info-image {
  flex: 1;
  min-width: 250px;
  height: auto;
  max-width: 100%;
  border-radius: 10px;
}

/* Bannière and Button */
.bandeaux-container {
  position: relative;
  width: calc(100% + 40px);
  margin-left: -20px;
  margin-right: -20px;
}

.bandeaux {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
}

.bandeaux a {
  margin: 0 40px;
}

.btn-retour {
  position: absolute;
  top: 20px;
  left: 30px;
  background-color: rgba(255, 255, 255, 0.85);
  color: #333;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  padding: 10px 18px;
  border-radius: 12px;
  transition: all 0.25s ease;
  backdrop-filter: blur(5px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.btn-retour:hover {
  background-color: #000;
  color: #fff;
  transform: scale(1.05);
}

/* Animations and Scrolling Text */
.repeated-text {
  display: flex;
  align-items: center;
  overflow: hidden;
  margin: 40px 0 20px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 64px;
}

.scroll {
  white-space: nowrap;
  width: 100%;
}

.scroll div {
  display: flex;
  gap: 2em;
}

.scroll p {
  line-height: 2;
  font-family: "Playfair Display", serif;
  margin: 0;
  color: #000000;
  opacity: 0.2;
}

.gauche {
  animation: gauche 30s infinite linear;
  font-weight: 200;
}

@keyframes gauche {
  from {
    transform: translateX(-50%);
  }
  to {
    transform: translateX(0%);
  }
}

.droite {
  animation: droite 30s infinite linear;
}

@keyframes droite {
  from {
    transform: translateX(0%);
  }
  to {
    transform: translateX(-50%);
  }
}

/* Section 2 Variants (General) */
.section2,
.section2ddf,
.section2gallery,
.section2OC,
.section2mo,
.section2do {
  width: 100%;
  color: white;
  margin: 20px -20px; /* Negative margin for full width */
  padding: 0 40px;
  padding-bottom: 10px;
}

.section2 h2,
.section2ddf h2,
.section2gallery h2,
.section2OC h2,
.section2mo h2,
.section2do h2 {
  padding: 30px 40px 10px 40px;
}

.section2 p,
.section2ddf p,
.section2gallery p,
.section2OC p,
.section2mo p,
.section2do p {
  font-size: 16px;
  margin: 0;
  line-height: 1.5;
  padding: 0 40px;
  max-width: 850px;
}

/* Specific Background Colors */
.section2 {
  background-color: #10319e;
}

.section2ddf {
  background-color: #8c6cad;
}

.section2gallery {
  background-color: #72b369;
}

.section2OC {
  background-color: #242424;
}

.section2mo {
  background-color: #60cdff;
}

.section2do {
  background-color: #727840;
}

/* Large Image and Iframe */
.large-image {
  width: 100%;
  max-width: 100%;
  display: block;
  background-color: #10319e;
  margin: 20px 0;
}

.iframe-container {
  position: relative;
  width: 96%;
  height: 0;
  padding-bottom: 135%; /* Aspect ratio for desktop */
  overflow: hidden;
  margin: 40px;
}

.iframe-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 16px;
}

/* Gallery Styles (Unified for Consistency) */
.GGDL-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around; /* Pour espacer équitablement avec marges */
  gap: 0; /* Évite les écarts supplémentaires */
}

.gallerie {
  width: 45%;
  margin: 40px;
  border-radius: 10px;
}

.trio {
  width: 29%;
  margin: 35px;
  border-radius: 10px;
}

.full {
  margin-top: 80px;
  width: 60%;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.bandeaux-container a {
  margin: 40px;
}

.bandes {
  margin: 40px auto;
  width: 94%; /* largeur ajustable */
  display: block;
  border-radius: 10px;
}

.bande {
  margin: 40px auto;
  width: 100%; /* largeur ajustable */
  display: block;
}

/* Video Responsiveness (Added for HTML videos) */
video {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

/* Media Queries for Responsiveness */
@media (max-width: 1650px) {
  /* Laptops */
  .repeated-text {
    font-size: 56px;
  }

  .scroll p {
    font-size: 56px;
  }

  .gallerie {
    width: 42%;
    margin: 35px;
  }

  .trio {
    width: 26%;
    margin: 34px;
  }

  .full {
    width: 65%;
    margin-top: 70px;
  }

  .bandes {
    width: 95%;
    margin: 35px auto;
  }

  .bande {
    margin: 35px auto;
  }

  .iframe-container {
    padding-bottom: 130%;
    margin: 35px;
  }

  .section2,
  .section2ddf,
  .section2gallery,
  .section2OC,
  .section2mo,
  .section2do {
    padding: 0 35px;
  }

  .section2 h2,
  .section2ddf h2,
  .section2gallery h2,
  .section2OC h2,
  .section2mo h2,
  .section2do h2 {
    padding: 25px 35px 8px 35px;
  }

  .section2 p,
  .section2ddf p,
  .section2gallery p,
  .section2OC p,
  .section2mo p,
  .section2do p {
    padding: 0 35px;
  }
}

@media (max-width: 1024px) {
  /* Tablettes */
  body {
    padding: 15px;
  }

  h2 {
    font-size: 22px;
    padding: 8px 15px;
  }

  .section {
    padding: 0 30px;
  }

  .section2,
  .section2ddf,
  .section2gallery,
  .section2OC,
  .section2mo,
  .section2do {
    margin: 20px -15px;
    padding: 0 30px;
  }

  .info-container {
    gap: 15px;
    padding: 0 15px;
  }

  .info-text {
    font-size: 15px;
    line-height: 2.2;
  }

  .info-text strong {
    font-size: 17px;
  }

  .repeated-text {
    font-size: 48px;
    margin: 30px 0 15px;
  }

  .scroll p {
    font-size: 48px;
  }

  .bandeaux-container {
    width: calc(100% + 30px);
    margin-left: -15px;
    margin-right: -15px;
  }

  .iframe-container {
    padding-bottom: 120%;
    margin: 30px;
  }

  .gallerie {
    width: 40%;
    margin: 30px;
  }

  .trio {
    width: 25%;
    margin: 30px;
  }

  .full {
    width: 70%;
    margin-top: 60px;
  }

  .bandes {
    width: 96%;
    margin: 30px auto;
  }

  .bande {
    margin: 30px auto;
  }

  .btn-retour {
    font-size: 15px;
    padding: 9px 16px;
    top: 15px;
    left: 25px;
  }
}

@media (max-width: 768px) {
  body {
    padding: 10px;
  }

  h2 {
    font-size: 20px;
    padding: 0 10px;
  }

  .section {
    padding: 0 10px;
  }

  .section2,
  .section2ddf,
  .section2gallery,
  .section2OC,
  .section2mo {
    margin: 20px -10px;
    padding: 0 10px;
  }

  .info-container {
    flex-direction: column;
    padding: 0 10px;
  }

  .info-text {
    font-size: 14px;
  }

  .info-text strong {
    font-size: 16px;
  }

  .repeated-text {
    font-size: 32px;
  }

  .scroll p {
    font-size: 32px;
  }

  .bandeaux-container {
    width: calc(100% + 20px);
    margin-left: -10px;
    margin-right: -10px;
  }

  .iframe-container {
    padding-bottom: 150%;
  }

  .GGDL-gallery {
    flex-direction: column;
  }

  .gallerie,
  .trio {
    width: 100%;
    margin: 20px 0;
  }

  .full {
    width: 90%;
    margin-top: 40px;
  }

  .bandes {
    width: 98%;
    margin: 20px auto;
  }

  .bande {
    margin: 20px auto;
  }

  .btn-retour {
    font-size: 14px;
    padding: 8px 14px;
    top: 10px;
    left: 15px;
  }
}

@media (max-width: 600px) {
  /* Petits mobiles intermédiaires */
  .repeated-text {
    font-size: 24px;
  }

  .scroll p {
    font-size: 24px;
  }

  .gallerie,
  .trio {
    margin: 15px 0;
  }

  .full {
    width: 95%;
    margin-top: 30px;
  }

  .bandes {
    width: 100%;
    margin: 15px auto;
  }

  .bande {
    margin: 15px auto;
  }
}

@media (max-width: 480px) {
  body {
    padding: 5px;
  }

  h2 {
    font-size: 18px;
    padding: 0 5px;
  }

  .section {
    padding: 0 5px;
  }

  .section2,
  .section2ddf,
  .section2gallery,
  .section2OC,
  .section2mo {
    margin: 20px -5px;
    padding: 0 5px;
  }

  .info-text {
    font-size: 14px;
  }

  .repeated-text {
    font-size: 18px;
  }

  .scroll p {
    font-size: 18px;
  }

  .bandeaux-container {
    width: calc(100% + 10px);
    margin-left: -5px;
    margin-right: -5px;
  }

  .iframe-container {
    padding-bottom: 160%;
  }

  .gallerie,
  .trio {
    width: 100%;
    margin: 10px 0;
  }

  .full {
    width: 100%;
    margin-top: 20px;
  }

  .bandes {
    width: 100%;
    margin: 10px auto;
  }

  .bande {
    margin: 10px auto;
  }

  .btn-retour {
    font-size: 12px;
    padding: 6px 12px;
    top: 5px;
    left: 10px;
  }
}
