/* === BODY === */

body {
    width: 100%;
    height: 100vh;
    margin: 0;

    font-family: "Poppins", sans-serif;
    font-weight: 400;
    font-size: var(--main-font);
    color: var(--clr-black);
    background-color: var(--clr-creme);
}

/* === HEADER === */ 

header {
    position: relative;
    width: 100%;
    height: auto;
    min-height: auto;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;

    background-color: var(--clr-red);
}

/* === MENU === */

#menu {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Logo + mots sur une même ligne, alignés à gauche */
    width: 100%;
    padding: 1rem 2rem;
    gap: 4rem; /* Espace entre logo et mots */
}

#menu #logo{
    display: flex;
    align-items: center;
    gap: 2rem; 

    user-select: none;
}

#menu img {
    margin: 5%;
    width: 80px;
    height: auto;
}

#noir_logo {
    display: block;
}

#creme_logo {
    display: none;
}

#mots {
    display: flex;
    flex: 1; /* Les liens prennent toute la place dispo */
    justify-content: space-evenly; /* Répartit les liens uniformément */
    align-items: center;
    font-weight: 500;
    font-size: var(--font-nav);
    color: var(--clr-noir);

    text-decoration: none;
}

#mots a {
    text-decoration: none;
    color: inherit;
    white-space: nowrap;
    transition: opacity 0.3s;
}

#mots a:hover {
    opacity: 0.4;
    transition: opacity 0.3s;}


/* SECTION RENDEZ-VOUS */
.rendezvous {
  text-align: center;
  background-color: var(--clr-red);
  color: #fff;
  padding: 2rem 1rem 7rem;
}

.rendezvous h1 {
  font-family: "Imbue";
  font-weight: normal;
  color: var(--clr-creme);
  font-size: 5rem;
  line-height: 1.2;
  margin: 1rem;
}

.rendezvous .subtitle {
  text-transform: uppercase;
  color: var(--clr-black);
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 2rem;
}

.contact-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.contact-btn {
  border: 2px solid var(--clr-creme);
  padding: 0.8rem 1.5rem;
  text-decoration: none;
  color: var(--clr-black);
  font-weight: 400;
  border-radius: 5px;
  width: 280px;
  text-align: center;
  transition: all 0.2s ease;
}

.contact-btn:hover {
  background-color: var(--clr-creme);
  color: #c57a62;
}

/* SECTION TARIFS */
.tarifs {
  background-color: var(--clr-creme);
  padding: 7rem 5rem;
}

.tarifs h2{
  font-family: "Imbue";
  font-size: 2rem;
}

.tarifs-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 2rem;
}

.tarifs-content img {
  width: 300px;
  border-radius: 10px;
}

.tarifs-text {
  max-width: 400px;
}

.tarifs-text ul {
  list-style: none;
  margin: 1rem 0;
}

.tarifs-text li {
  margin-bottom: 1rem;
  border-bottom: 1px solid #c57a62;
  padding-bottom: 0.5rem;
}

.tarifs-text span {
  font-size: 0.9rem;
  color: #555;
}

.reglement {
  margin-top: 1rem;
  font-weight: bold;
}

/* SECTION DÉROULEMENT */
.deroulement {
  font-family: "Poppins";
  font-weight: 400;
  background-color: var(--clr-creme);
  padding: 3rem 1.5rem;
  max-width: 800px;
  margin: 0 auto;
}

.deroulement h2 {
  font-family: "Imbue";
  font-weight: 800;
  font-size: 2rem;
  text-align: center;
  margin-bottom: 2rem;
}

.deroulement h3 {
  font-family: "Imbue";
  font-weight: 400;
  font-style: normal;
}

.etape {
  display: flex;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.point {
  width: 10px;
  height: 10px;
  background-color: black;
  border-radius: 50%;
  margin-right: 1rem;
  margin-top: 0.5rem;
}

.etape-content h3 {
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.etape-content .note {
  font-size: 0.9rem;
  color: #333;
  margin-bottom: 0.5rem;
}

/* SECTION CONTRE-INDICATIONS */
.contre {
  background-color: #c57a62;
  text-align: center;
  padding: 8rem;
}

.contre h2 {
  font-family: "Imbue";
  font-size: 2rem;
  color: var(--clr-black);
  margin-bottom: 2rem;
}

.contre-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  max-width: 900px;
  margin: 0 auto 2rem;
}

.contre-grid div {
  display: flex;                /* <-- important */
  justify-content: center;      /* centre horizontalement */
  align-items: center;          /* centre verticalement */
  text-align: center;           /* centre le texte sur plusieurs lignes */

  padding: 1rem 1.25rem;
  min-height: 100px;            /* ajuste selon ton design */
  box-sizing: border-box;

  font-weight: bold;
  user-select: none;
  cursor: pointer;

  /* style visuel */
  color: #7A7A73;
  background-image: linear-gradient(to right, #F6EFD2 0%, #F7BB97 51%, #F5D3C4 100%);
  background-size: 200% auto;
  transition: 0.5s;
  border-radius: 10px;
}

.contre-grid div:hover {
  background-position: right center; /* change the direction of the change here */
  color: var(--clr-black);
  text-decoration: none;
}

/* SECTION HORAIRES */
.horaires {
  text-align: center;
  background-color: var(--clr-creme);
  padding: 3rem 1rem;
}

.horaires h2 {
  font-family: "Imbue";
  font-size: 2rem;
  margin-bottom: 2rem;
}

/* === FOOTER === */

footer {
    width: 100%;
    padding: 2rem;
    text-align: center;
    font-size: 0.9rem;
    background-color: var(--clr-creme);
    border-top: 1px solid var(--clr-black);
    user-select: none;
}

footer a {
    color: var(--clr-black);
    text-decoration: none;
}

#mentions:hover {
    text-decoration: underline;
}

/* Fenêtre masquée par défaut */
#mentions-legales {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(3px);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

/* Quand ciblée par le lien */
#mentions-legales:target {
  display: flex;
}

/* Contenu */
.mentions-content {
  position: relative;
  background: #f8f1de;
  padding: 2rem;
  border-radius: 12px;
  max-width: 600px;
  width: 90%;
  box-shadow: 0 0 15px rgba(0,0,0,0.2);
  text-align: left;
  animation: fadeIn 0.3s ease;
}

/* Bouton croix */
.close-mentions {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 2rem;
  color: #7c3f3f;
  text-decoration: none;
  user-select: none;
  font-weight: bold;
  transition: 0.2s;
}

.close-mentions:hover {
  color: #592c2c;
}

/* === MEDIA QUERIES RESPONSIVE POUR CONTACTS.HTML === */

/* === CORRECTIONS GÉNÉRALES === */

/* Menu en haut à droite, plus resserré */


/* === RESPONSIVE POUR TRÈS GRANDS ÉCRANS (> 1400px) === */
@media (min-width: 1400px) {
  .contact-section h1 {
    font-size: 6rem;
  }
  
  .contact-card {
    max-width: 900px;
    padding: 3rem;
  }
  
  .contact-label {
    min-width: 180px;
    font-size: 1.1rem;
  }
  
  .contact-info {
    font-size: 1.1rem;
  }
}

/* === RESPONSIVE POUR TABLETTES (768px - 1023px) === */
@media (max-width: 1023px) {
  #menu {
    padding: 1rem 1.5rem;
    gap: 1.5rem !important;
  }
  
  #mots {
    font-size: 16px;
    gap: 1.5rem !important;
  }
  
  .contact-section {
    padding: 2.5rem 1rem 4rem;
  }
  
  .contact-section h1 {
    font-size: 4rem;
    margin-bottom: 2.5rem;
  }
  
  .contact-card {
    max-width: 650px;
    padding: 1.8rem;
  }
  
  .contact-label {
    min-width: 130px;
    font-size: 0.95rem;
  }
  
  .contact-info {
    font-size: 0.95rem;
  }
  
  .contact-row {
    padding: 0.9rem 0;
  }
}

/* === RESPONSIVE POUR PETITES TABLETTES ET MOBILES (< 991px) === */
@media (max-width: 991px) {
  #menu {
    flex-direction: row !important;
    align-items: flex-start;
    gap: 1.5rem !important;
    padding: 1rem;
    justify-content: space-between !important;
  }
  
  #mots {
    width: auto !important;
    flex-direction: column;
    gap: 0.5rem !important;
    align-items: flex-end !important;
    justify-content: flex-start !important;
  }
  
  #mots a {
    padding: 0.25rem 0;
    width: 100% !important;
    text-align: right;
  }
  
  .contact-section {
    padding: 2rem 1rem 3.5rem;
  }
  
  .contact-section h1 {
    font-size: 3.5rem;
    margin-bottom: 2rem;
  }
  
  .contact-card {
    max-width: 90%;
    padding: 1.5rem;
  }
  
  .contact-row {
    flex-direction: column;
    padding: 0.8rem 0;
  }
  
  .contact-label {
    margin-bottom: 0.5rem;
    min-width: 100%;
  }
  
  .contact-info {
    width: 100%;
  }

  .contre  {
    padding: 4rem 2rem;
  }
}

/* === RESPONSIVE POUR MOBILES (< 768px) === */
@media (max-width: 767px) {
  #menu {
    padding: 0.75rem;
    gap: 1rem !important;
  }
  
  #menu img {
    width: 60px;
    margin: 2%;
  }
  
  #mots {
    font-size: 15px;
  }
  
  .contact-section {
    padding: 2rem 1rem 3rem;
  }
  
  .contact-section h1 {
    font-size: 2.8rem;
    margin-bottom: 1.8rem;
  }
  
  .contact-card {
    max-width: 95%;
    padding: 1.5rem;
    border-radius: 12px;
  }
  
  .contact-row {
    padding: 0.75rem 0;
  }
  
  .contact-label {
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
  }
  
  .contact-info {
    font-size: 0.9rem;
    line-height: 1.6;
  }
  
  footer {
    padding: 1.5rem 1rem;
    font-size: 0.85rem;
  }
  
  .mentions-content {
    padding: 1.5rem;
    width: 95%;
  }

  .contre  {
    padding: 4rem 2rem;
  }
}

/* === RESPONSIVE POUR PETITS MOBILES (< 480px) === */
@media (max-width: 479px) {
  #menu {
    padding: 0.5rem;
    gap: 0.75rem !important;
  }
  
  #menu img {
    width: 50px;
    margin: 1%;
  }
  
  #mots {
    font-size: 14px;
    gap: 0.3rem !important;
  }
  
  .contact-section {
    padding: 1.5rem 0.75rem 2.5rem;
  }
  
  .contact-section h1 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
  }
  
  .contact-card {
    max-width: 98%;
    padding: 1.25rem;
    border-radius: 10px;
  }
  
  .contact-row {
    padding: 0.7rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  }
  
  .contact-row:last-child {
    border-bottom: none;
  }
  
  .contact-label {
    font-size: 0.85rem;
    margin-bottom: 0.4rem;
    font-weight: 500;
  }
  
  .contact-info {
    font-size: 0.85rem;
    line-height: 1.5;
  }
  
  .contact-info br {
    margin-bottom: 0.2rem;
  }
  
  footer {
    padding: 1rem 0.5rem;
    font-size: 0.8rem;
  }
  
  .mentions-content {
    padding: 1.25rem;
    font-size: 14px;
    width: 98%;
  }
  
  .mentions-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
  }
  
  .close-mentions {
    font-size: 1.5rem;
    top: 8px;
    right: 12px;
  }

  .contre  {
    padding: 4rem 2rem;
  }
}

/* === RESPONSIVE LANDSCAPE MOBILE === */
@media (max-width: 991px) and (orientation: landscape) {
  .contact-section h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
  }
  
  .contact-section {
    padding: 1.5rem 1rem 2.5rem;
  }
  
  .contact-card {
    max-width: 80%;
  }
}

/* === CORRECTION OVERFLOW === */
html, body {
  overflow-x: hidden;
  width: 100%;
}