/* --------- BASE --------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Montserrat", sans-serif;
  scroll-behavior: smooth;
}

body {
  background: beige;
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* --------- TOP BAR --------- */
.top-bar {
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 10px 20px;
  font-size: 12px;
  font-family: 'Kanit', sans-serif;
  display: flex;
  justify-content: flex-end;
}

.top-bar-links {
  display: flex;
  gap: 10px;
}

.top-bar-links a {
  color: rgb(233, 188, 136);
  text-decoration: none;
  padding: 2px 6px;
  border: 1px solid #f5deb3;
  border-radius: 3px;
}

.top-bar-links a:hover {
  background-color: #f5deb3;
  color: rgb(241, 171, 113);
}

/* --------- HEADER --------- */
header {
  background: beige;
  width: 100%;
  height: 5vh;
  display: flex;
  align-items: center;
  justify-items: center;
  font-size: 40px;
}

header a {
  text-decoration: none;
  color: rgb(0, 0, 0);
  font-size: 40px;
  text-align: center;
  width: 100%;
}

/* --------- LOGO ROTATION --------- */
#vero {
  display: block;
  background: burlywood;
  width: 80px;
  height: 80px;
  transform: rotate(-35deg);
  border-radius: 40px;
  line-height: 80px;
  text-align: center;
  position: absolute;
  left: 48%;
  top: 30px;
  color: beige;
}

/* --------- SLIDE --------- */
#slide {
  background: url(GLOBE.jpg) center center no-repeat;
  background-size: cover;
  width: 100%;
  height: 95vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
  text-align: center;
  color: white;
  padding: 20px;
}
@media screen and (max-width: 768px) {
  #slide {
    background-position: center top;
    background-size: cover;
    height: 70vh; /* adapte si 95vh est trop grand sur mobile */
  }
}

h1 {
  color: beige;
  font-size: 100px;
  text-shadow: 1px 1px 5px rgb(81, 12, 242);
  margin-top: 30px;
}

h1 + a {
  text-decoration: none;
  width: 300px;
  height: 50px;
  text-align: center;
  line-height: 50px;
  background: beige;
  color: rgb(0, 0, 0);
  display: block;
  border-radius: 10px;
  transition: .5s linear;
}

h1 + a:hover {
  background: burlywood;
  color: rgb(0, 0, 0);
  border-radius: 0;
}

/* --------- MAIN CONTENT --------- */
main {
  width: 100%;
  background: beige;
}

/* --------- SECTION actions-row (inchangé) --------- */
.actions-row {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 20px;
  padding: 20px;
}

.actions-row article {
  flex: 0 0 300px;
  background-color: #fff8e1;
  padding: 10px;
  box-shadow: 1px 1px 5px burlywood;
  border-radius: 10px;
}

/* --------- ARTICLES (autres sections) --------- */
main section:not(.actions-row) {
  width: calc(100% - 4%);
  margin: 10px auto;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

main section:not(.actions-row) article {
  flex: 1 1 300px;
  padding: 10px;
  box-shadow: 1px 1px 5px burlywood;
  background-color: #fff8e1;
  border-radius: 10px;
}

/* --------- ARTICLES IMAGES --------- */
article figure {
  width: 100%;
  margin: 0 auto 20px;
  display: flex;
  justify-content: center;
}

article figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 0 6px rgba(0,0,0,0.1);
}

/* --------- TEXTS --------- */
span {
  color: burlywood;
}

h2 {
  margin: 20px 0;
  font-size: 24px;
}

/* --------- CITATIONS --------- */
.temoin {
  margin-top: 20px;
  padding-left: 18px;
  border-left: 4px solid #d8b4a6;
  font-style: italic;
  color: #b39273;
  background-color: #f7e9d1;
  border-radius: 4px;
  box-sizing: border-box;
  max-width: 100%;
}

.temoin .auteur {
  display: block;
  margin-top: 8px;
  font-style: normal;
  font-weight: 600;
  color: #bd9d7e;
  font-size: 0.9em;
  text-align: right;
}

/* --------- SECTION SOURIS (Plan, Contact, Partenaires) --------- */
#souris {
  width: 100%;
  padding: 0 2%;
  margin-bottom: 50px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

#souris > div {
  flex: 1 1 30%;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: beige;
  padding: 15px;
  box-shadow: 1px 1px 5px burlywood;
  border-radius: 10px;
  min-width: 250px;

  min-height: 380px;
  overflow: hidden;
}

#souris > div > h2 {
  color: burlywood;
  font-size: 24px;
  margin-bottom: 15px;
  text-align: center;
}

#souris .plan-acces iframe {
  width: 100%;
  height: 250px;
  border: none;
  border-radius: 10px;
}

#souris .contact p {
  font-size: 18px;
  line-height: 1.6;
  color: #333;
  text-align: center;
}

/* Partenaires carousel inchangé */
.partenaires-carousel {
  width: 100%;
  margin-top: auto;
}

.carousel-container {
  position: relative;
  overflow: hidden;
  padding: 0 40px;
}

.carousel-track {
  display: flex;
  gap: 20px;
  transition: transform 0.5s ease-in-out;
}

.carousel-item {
  flex: 0 0 auto;
  width: calc(100% / 3 - 20px);
  height: 150px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #fffef9;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  position: relative;
}

.carousel-item img {
  max-height: 100%;
  max-width: 100%;
  height: auto;
  width: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: burlywood;
  color: white;
  border: none;
  font-size: 26px;
  padding: 10px;
  cursor: pointer;
  border-radius: 50%;
  z-index: 2;
  transition: background 0.3s;
}

.carousel-btn:hover {
  background: #d6a96e;
}

.carousel-btn.prev {
  left: 10px;
}

.carousel-btn.next {
  right: 10px;
}

/* --------- RESPONSIVE --------- */
@media (max-width: 900px) {
  .carousel-item {
    width: calc(100% / 2 - 20px);
  }
}

@media (max-width: 600px) {
  .carousel-item {
    width: 100%;
  }

  #souris {
    flex-direction: column;
    width: 90%;
  }

  #souris > div {
    flex: 1 1 100%;
    margin-bottom: 30px;
  }
}

/* --------- RESPONSIVE : compléments mobile --------- */
@media (max-width: 600px) {
  #vero {
    position: static;
    transform: none;
    margin: 20px auto;
  }

  h1 {
    font-size: 40px;
    text-align: center;
  }

  h1 + a {
    width: 80%;
    max-width: 280px;
    margin: 15px auto 0;
    font-size: 16px;
  }

  .top-bar-links {
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
  }

  .actions-row {
    flex-direction: column;
    padding: 10px;
  }

  .actions-row article {
    flex: 1 1 100%;
    width: 100%;
  }

  main section:not(.actions-row) {
    flex-direction: column;
    gap: 20px;
  }

  main section:not(.actions-row) article {
    flex: 1 1 100%;
    width: 100%;
  }

  .engagement-options {
    flex-direction: column;
    align-items: center;
  }

  #planning {
    width: 100%;
    margin: 20px auto;
  }
}

/* --------- SECTION ENGAGEMENT --------- */
.engagement {
  background-color: #fff8e1;
  padding: 40px 20px;
  text-align: center;
  box-shadow: 0 -1px 5px rgba(0,0,0,0.1);
  margin-top: 50px;
  border-radius: 10px;
  width: 90%;
  margin-left: auto;
  margin-right: auto;
}

.engagement h2 {
  color: burlywood;
  font-size: 28px;
  margin-bottom: 20px;
  font-family: "Kanit", sans-serif;
}

.engagement p {
  font-size: 18px;
  margin-bottom: 30px;
  color: #444;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.engagement-options {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.btn-engage {
  background-color: burlywood;
  color: white;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
  box-shadow: 1px 1px 5px rgba(0,0,0,0.1);
}

.btn-engage:hover {
  background-color: #d6a96e;
}

/* QR code discret dans la section engagement */
.mini-qrcode {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  font-size: 11px;
  color: #a48151;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.mini-qrcode:hover {
  opacity: 1;
}

.mini-qrcode img {
  width: 170px;
  height: 170px;
  border-radius: 4px;
  margin-bottom: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.mini-qrcode img:hover {
  transform: scale(1.1);
}

/* --------- PLANNING --------- */
#planning {
  max-width: 700px;
  margin: 40px auto;
  padding: 20px;
  background: #fffef9;
  border-radius: 10px;
  box-shadow: 0 0 12px rgba(172, 146, 82, 0.2);
  font-family: 'Montserrat', sans-serif;
  color: #4a423a;
}

#planning h2 {
  color: #8c7b5a;
  font-family: 'Kanit', sans-serif;
}

#planning p em {
  font-style: italic;
  color: #8c7b5a;
}

#planning a {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 18px;
  background: #b89869;
  color: #fffef9;
  text-decoration: none;
  font-weight: 700;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}

#planning a:hover {
  background-color: #a48151;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: #b89869;
  color: white;
  text-decoration: none;
  font-weight: 700;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: #a48151;
}

/* --------- SECTION APPLICATION EN COURS --------- */
.app-coming {
  background-color: #fff8e1;
  padding: 40px 20px;
  text-align: center;
  box-shadow: 0 -1px 5px rgba(0,0,0,0.1);
  margin: 50px auto;
  border-radius: 10px;
  width: 90%;
  max-width: 800px;
  font-family: 'Montserrat', sans-serif;
}

.app-coming h2 {
  color: burlywood;
  font-size: 28px;
  margin-bottom: 20px;
  font-family: 'Kanit', sans-serif;
}

.app-coming p {
  font-size: 18px;
  margin-bottom: 20px;
  color: #444;
  line-height: 1.6;
}

.app-coming .suspense {
  font-style: italic;
  color: #a48151;
  font-weight: bold;
}

.app-coming .btn-engage {
  margin-top: 15px;
}

/* --------- NOUVEAUX STYLES POUR LA GRILLE D’ACTIVITÉS --------- */
.activities-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 10px;
}

.activity-card {
  background-color: #fff8e1;
  border-radius: 10px;
  box-shadow: 1px 1px 5px burlywood;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.activity-card a {
  color: inherit;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.activity-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-bottom: 1px solid #d8b4a6;
  border-radius: 10px 10px 0 0;
}

.activity-card h2 {
  margin: 15px 10px 10px;
  font-size: 1.3rem;
}

.activity-card .voir-plus {
  margin: auto 10px 15px;
  padding: 10px 0;
  background-color: burlywood;
  color: white;
  text-align: center;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.activity-card .voir-plus:hover {
  background-color: #d6a96e;
}

/* Responsive */
@media (max-width: 900px) {
  .activities-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .activities-grid {
    grid-template-columns: 1fr;
  }
}

.actions-row.two-columns {
  display: flex;
  gap: 40px;
  margin: 40px 0;
}

.actions-column {
  flex: 1;
  background: #f9f9f9;
  padding: 20px;
  border-radius: 40px;
  box-shadow: 0 2px 6px rgb(0 0 0 / 0.1);
}

.actions-column h2 {
  font-weight: 500;
  margin-bottom: 15px;
}

.actions-column p {
  margin-bottom: 15px;
  line-height: 1.5;
}

.actions-column a.btn-engage {
  display: inline-block;
  padding: 10px 20px;
  background-color: #aa7f62ee;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
}

.actions-column a.btn-engage:hover {
  background-color: #f5bc7b;
}

/* Responsive : empiler en dessous sur petit écran */
@media (max-width: 800px) {
  .actions-row.two-columns {
    flex-direction: column;
  }
}
@media (max-width: 600px) {
  .activity-card img {
    height: auto;
    aspect-ratio: 4 / 3;
  }
}