/* ------------------------------
   STRUCTURE GLOBALE
------------------------------ */
body {
  margin: 0;
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  background-color: #EFEEE9;
  color: #222;
}

/* ------------------------------
   HEADER PRINCIPAL
------------------------------ */
.site-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  background-color: #EFEEE9;
  position: relative;
  overflow: hidden;
  padding: 0 40px 0 0;
  margin-top: 0;
  height: 130px; /* fixe la hauteur du header complet */
}


/* Bloc gauche : image rectangulaire */
.header-left {
  flex-shrink: 0;
}

.header-img-rect {
  height: 130px;
  width: auto;
  display: block;
}

/* Bloc central : barre marron */
.header-center {
  background-color: #6b451d;
  border-radius: 10px;
  padding: 10px 25px;
  flex-grow: 1;
  margin: 0 40px;
  margin-top: 5px; /* espace minimal sous le haut de page */
}

.header-center ul {
  list-style: none;
  display: flex;
  justify-content: center;
  margin: 0;
  padding: 0;
  gap: 50px;
}

.header-center a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 18px;
}

.header-center a:hover {
  text-decoration: underline;
}

/* Bloc droit : image rectangulaire */
.header-right-image {
  flex-shrink: 0;
  position: relative;
}

.right-image {
  height: 180px; /* légèrement plus grand */
  width: auto;
  display: block;
  position: relative;
  z-index: 1;
}

/* Sous-titre */
/* ---- Titre rouge sous la barre ---- */
.header-subtitle {
  position: absolute;            /* sort du flux normal pour le rapprocher */
  top: 100px;                    /* position verticale exacte à ajuster si besoin */
  left: 0;
  width: 100%;
  text-align: center;
  background-color: transparent; /* pas de fond beige parasite */
  margin: 0;
  padding: 0;
  z-index: 10;                   /* au-dessus de l’image du fond */
}

.header-subtitle h1 {
  color: #b50000;
  font-size: 26px;
  font-weight: 700;
  margin: 0;
  line-height: 1.1;
}

/* ------------------------------
   CONTENU CENTRAL
------------------------------ */
/* ---- Zone blanche réalignée visuellement ---- */
.main-content {
  background-color: #fff;
  border-radius: 20px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  padding: 40px;
  min-height: 60vh;

  margin-left: 40px;
  margin-right: 260px;
  margin-top: 30px;
  margin-bottom: 0;
  position: relative;
  z-index: 2;
}


/* ------------------------------
   BANDEAU LOGOS BAS – version fine et centrée
------------------------------ */
.bottom-logos {
  background-color: #EFEEE9;
  width: 100%;
  padding: 15px 0 30px 0; /* <<< petit espacement haut/bas */
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 0;          /* <<< supprime la marge par défaut */
  position: relative;
  top: -5px;             /* <<< remonte légèrement le footer pour affiner l’écart */
  z-index: 1;
}

.logos-container {
  background-color: #fff;
  border-radius: 20px;
  box-shadow: 0 0 8px rgba(0,0,0,0.08);
  width: 90%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 15px 30px;

  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 35px;
}

.logos-container img {
  max-height: 55px;
  width: auto;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.logos-container img:hover {
  transform: scale(1.05);
}


/* Logos individuels */
.logos-container img {
  max-height: 60px; /* hauteur maximale ajustée */
  width: auto;
  object-fit: contain;
  display: block;
  transition: transform 0.2s ease;
}

/* Effet subtil au survol */
.logos-container img:hover {
  transform: scale(1.05);
}

/* ------------------------------
   STRUCTURE PRINCIPALE
------------------------------ */
.page-container {
  display: flex;
  background-color: #EFEEE9;
  min-height: 100vh;
}

/* Bande verticale gauche : deux images empilées */
.left-band {
  width: 240px;
  background-color: #EFEEE9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.left-image {
  width: 100%;
  height: auto;
  display: block;
}

.bottom-image {
  flex-shrink: 0;
}

/* Zone principale à droite */
.main-zone {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* ------------------------------
   STYLE DU CONTENU PRINCIPAL
------------------------------ */
.main-content h2 {
  color: #B50000;
  font-size: 24px;
  margin-top: 0;
  border-bottom: 2px solid #B50000;
  display: inline-block;
  padding-bottom: 4px;
  font-weight: 700;
}

.main-content p {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 20px;
  text-align: justify;
}

.main-content strong {
  color: #B50000;
  font-weight: 700;
}

/* ------------------------------
   STYLE GÉNÉRAL DES LIENS DANS LE CONTENU
------------------------------ */
.main-content a {
  color: #B50000;            /* même rouge foncé que dans venue.php */
  text-decoration: none;     /* enlève le soulignement */
  font-weight: 600;          /* léger renforcement du texte */
}

.main-content a:hover {
  text-decoration: underline; /* réapparaît au survol */
}

/* ------------------------------
   PAGE PROGRAMME
------------------------------ */
.programme-list {
  font-size: 17px;
  line-height: 1.6;
  margin-left: 25px;
  margin-bottom: 30px;
}

.programme-list li {
  margin-bottom: 8px;
}

.committee {
  font-size: 15px;
  line-height: 1.6;
  text-align: justify;
  margin-bottom: 25px;
}

/* ------------------------------
   PAGE VENUE
------------------------------ */
.venue-list {
  font-size: 17px;
  line-height: 1.6;
  margin-left: 25px;
  margin-bottom: 25px;
}

.venue-list li {
  margin-bottom: 6px;
}

.hotels-list {
  font-size: 15px;
  line-height: 1.6;
  margin-left: 25px;
  margin-bottom: 25px;
}

.hotels-list li {
  margin-bottom: 5px;
}

/* Liens d’hôtels : rouge foncé et lisibles */
.hotels-list a {
  color: #B50000;
  text-decoration: none;
  font-weight: 600;
}

.hotels-list a:hover {
  text-decoration: underline;
}

/* ------------------------------
   RESPONSIVE
------------------------------ */
@media (max-width: 768px) {
  .header-img-rect {
    display: none;
  }
  .right-image {
    display: none;
  }
  .header-center {
    padding: 8px 10px;
    margin: 0 10px;
  }
  .header-center ul {
    gap: 15px;
    flex-wrap: wrap;
  }
  .bordeaux-text {
    font-size: 18px;
  }
  .bottom-logos {
    display: none;
  }
  .main-content {
    width: 95%;
    margin: 20px auto;
    padding: 20px;
  }
}


/* ------------------------------
   AJUSTEMENTS RESPONSIVE FINES
------------------------------ */

/* ↓↓↓  écrans moyens (≤ 1600 px) ↓↓↓ */
@media (max-width: 1600px) {
  .main-content {
    margin-left: 60px;
    margin-right: 200px;
  }
}

/* ↓↓↓  écrans entre 1200 et 1400 px ↓↓↓ */
@media (max-width: 1400px) {
  .main-content {
    margin-left: 40px;
    margin-right: 150px;
    padding: 35px;
  }

  .header-subtitle h1 {
    font-size: 24px;
  }
}

/* ↓↓↓  écrans entre 992 et 1199 px ↓↓↓ */
@media (max-width: 1199px) {
  .main-content {
    margin-left: 25px;
    margin-right: 100px;
    padding: 30px;
  }

  .header-center ul {
    gap: 25px;
  }

  .header-center a {
    font-size: 16px;
  }
}

/* ↓↓↓  petits écrans (≤ 991 px) ↓↓↓ */
@media (max-width: 991px) {
  .main-content {
    margin: 20px auto;
    width: 90%;
    padding: 25px;
  }

  .header-img-rect,
  .header-right-image {
    display: none; /* cache les grandes images pour ne garder que le menu */
  }

  .header-center {
    margin: 0 auto;
    padding: 10px 15px;
    width: 95%;
  }

  .header-subtitle h1 {
    font-size: 22px;
  }
}

/* ↓↓↓  très petits écrans (≤ 600 px) ↓↓↓ */
@media (max-width: 600px) {
  .main-content {
    width: 95%;
    margin: 15px auto;
    padding: 20px;
  }

  .header-center ul {
    flex-wrap: wrap;
    gap: 15px;
  }

  .header-center a {
    font-size: 15px;
  }

  .header-subtitle h1 {
    font-size: 20px;
  }
}

/* ------------------------------
   FORMULAIRE D'INSCRIPTION
------------------------------ */
.inscription-form {
  background-color: #fff;
  border-radius: 20px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.08);
  padding: 40px 50px;
  max-width: 700px;
  margin: 40px auto;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.form-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.inscription-form label {
  font-weight: 600;
  color: #6b451d;
  margin-bottom: 5px;
  font-size: 15px;
}

.inscription-form input,
.inscription-form select {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 16px;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.2s ease;
}

.inscription-form input:focus,
.inscription-form select:focus {
  outline: none;
  border-color: #b50000;
  box-shadow: 0 0 4px rgba(181, 0, 0, 0.3);
}

.inscription-form button {
  align-self: center;
  background-color: #B50000;
  color: white;
  border: none;
  border-radius: 10px;
  padding: 12px 30px;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.inscription-form button:hover {
  background-color: #8d0000;
  transform: scale(1.02);
}


/* ------------------------------
   RESPONSIVE COMPLET POUR SMARTPHONES
------------------------------ */
@media (max-width: 768px) {

  /* Masque la bande verticale gauche */
  .left-band {
    display: none;
  }

  /* La page devient une seule colonne fluide */
  .page-container {
    flex-direction: column;
    align-items: center;
  }

  /* Zone principale prend toute la largeur */
  .main-zone {
    width: 100%;
    margin: 0;
    padding: 0;
  }

  /* Contenu central mieux adapté */
  .main-content {
    width: 92%;
    margin: 20px auto;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
  }

  /* Le header se simplifie */
  .site-header {
    flex-direction: column;
    align-items: center;
    height: auto;
    padding: 10px 0;
  }

  .header-img-rect,
  .right-image {
    display: none;
  }

  .header-center {
    margin: 0;
    width: 95%;
    padding: 10px;
    border-radius: 8px;
  }

  .header-center ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
  }

  .header-center a {
    font-size: 16px;
  }

  .header-subtitle {
    position: static;
    margin-top: 10px;
  }

  .header-subtitle h1 {
    font-size: 20px;
    line-height: 1.3;
    padding: 0 10px;
  }

  /* Le formulaire s’ajuste parfaitement */
  .inscription-form {
    width: 95%;
    padding: 25px 20px;
  }

  .form-row {
    flex-direction: column;
    gap: 15px;
  }

  /* Logos du bas empilés ou masqués si trop petits */
  .bottom-logos {
    background-color: #EFEEE9;
    padding: 15px 0;
  }

  .logos-container {
    width: 95%;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .logos-container img {
    max-height: 40px;
  }
}
