/* === BODY === */

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

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

/* === HEADER === */ 

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

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

    background-image: url("../src/img/OUI.JPG");
    background-size: cover;
    background-position: center;
    
}

/* === 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 */
}

#logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    user-select: none;
}

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

#noir_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: #434E78;
}

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

#mots a:hover {
    opacity: 0.7;
}


/* === TITLE === */

/* === TITLE === */
#title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    
    text-align: center;
    color: var(--clr-creme);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    user-select: none;
}

#title h1 {
    font-family: 'Imbue';
    font-weight: 800;
    font-size: 7rem;
    margin-bottom: 1px;
}

#title h2 {
    font-size: 1,5rem;
    font-weight: 300;
    margin-top: 0;
}

/* === BODY === */ 

.content {
  margin: 80px auto;        /* marge haut/bas et centré horizontalement */
  padding: 50px;            /* espace intérieur (blanc tournant) */
}


.eric-container {
    max-width: 60%;
    display: flex;
    align-items: center;        /* vertical centering */
    gap: 30px;                  /* space between image and text */
    flex-wrap: wrap;            /* important for responsiveness */

    padding: 30px;
    margin: auto;
}

.eric-container h2 {
    font-family: "Imbue";
    font-size: var(--title-font);
    margin-bottom: 20px;
}

#eric {
    width: 230px;
    height: 290px;
    object-fit: cover;
    border-radius: 20px;
    flex-shrink: 0;

}

.texte-eric {
    flex: 1;
    min-width: 250px;
}

.buttons {
    font-family: "Poppins", sans-serif;
    position: relative;;
    margin: auto;
    padding: 10%;
    text-align: center;
}

.buttons a {
    flex-direction: column;
    text-decoration: none;
    color: black;

    border: 2px solid black;
    padding: 10px 10px;
    border-radius: 8px;
}

#btn_info {
    margin-right: 20px;
}

#btn_rdv {
    background-color: #c4bfa8;
}

#btn_info:hover, #btn_rdv:hover {
    background-color: var(--clr-red);
    color: var(--clr-creme);
    border: 2px solid var(--clr-red);
    transition: background-color 0.3s, color 0.3s, border 0.3s;
}

/* === 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 {
  font-family: "Poppins", sans-serif;
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 2rem;
  color: #7c3f3f;
  text-decoration: none;
  user-select: none;
  font-weight: normal;
  transition: 0.2s;
}

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

/* Animation d’apparition */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

/* === MEDIA QUERIES RESPONSIVE POUR STYLE.CSS (INDEX.HTML) === */


/* === RESPONSIVE POUR TRÈS GRANDS ÉCRANS (> 1400px) === */
@media (min-width: 1400px) {
  #title h1 {
    font-size: 8rem;
  }
  
  #title h2 {
    font-size: 2rem;
  }
  
  .content {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .eric-container {
    max-width: 50%;
  }
}

/* === RESPONSIVE POUR TABLETTES (768px - 1023px) === */
@media (max-width: 1023px) {
  #title h1 {
    font-size: 5rem;
  }
  
  #title h2 {
    font-size: 1.3rem;
  }
  
  #menu {
    padding: 1rem 1.5rem;
    gap: 1.5rem;
  }
  
  #mots {
    font-size: 16px;
    gap: 1.5rem !important;
  }
  
  .eric-container {
    max-width: 75%;
    gap: 20px;
    padding: 20px;
  }
  
  .content {
    margin: 60px auto;
    padding: 40px;
  }
  
  #eric {
    width: 200px;
    height: 250px;
  }
}

/* === 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;
  }
  
  #title h1 {
    font-size: 4.5rem;
  }
  
  .eric-container {
    max-width: 90%;
    flex-direction: column;
    text-align: center;
  }
  
  #eric {
    margin: 0 auto;
  }
  
  .texte-eric {
    min-width: 100%;
  }
  
  .buttons {
    padding: 5%;
  }
  
  .buttons a {
    display: inline-block;
    margin: 10px 5px;
  }
  
  #btn_info {
    margin-right: 10px;
  }
}

/* === RESPONSIVE POUR MOBILES (< 768px) === */
@media (max-width: 767px) {
  header {
    min-height: 80vh;
    height: 100vh;
  }
  
  #menu {
    padding: 0.75rem;
    gap: 1rem !important;
  }
  
  #menu img {
    width: 60px;
  }
  
  #mots {
    font-size: 15px;
    gap: 0.4rem !important;
  }
  
  #title h1 {
    font-size: 3.5rem;
  }
  
  #title h2 {
    font-size: 1.1rem;
  }
  
  .content {
    margin: 40px auto;
    padding: 30px 20px;
  }
  
  .eric-container {
    max-width: 100%;
    padding: 15px;
  }
  
  .eric-container h2 {
    font-size: 24px;
  }
  
  #eric {
    width: 180px;
    height: 220px;
  }
  
  .buttons {
    padding: 8%;
  }
  
  .buttons a {
    font-size: 14px;
    padding: 8px 12px;
  }
  
  footer {
    padding: 1.5rem 1rem;
    font-size: 0.85rem;
  }
  
  .mentions-content {
    padding: 1.5rem;
    width: 95%;
  }
}

/* === RESPONSIVE POUR PETITS MOBILES (< 480px) === */
@media (max-width: 479px) {
  #menu {
    padding: 0.5rem;
    gap: 0.5rem !important;
  }
  
  #menu img {
    width: 50px;
  }
  
  #mots {
    font-size: 14px;
    gap: 0.3rem !important;
  }
  
  #title h1 {
    font-size: 2.5rem;
  }
  
  #title h2 {
    font-size: 1rem;
  }
  
  .content {
    margin: 30px auto;
    padding: 20px 15px;
  }
  
  .eric-container {
    padding: 10px;
  }
  
  .eric-container h2 {
    font-size: 20px;
    margin-bottom: 15px;
  }
  
  #eric {
    width: 150px;
    height: 190px;
    border-radius: 15px;
  }
  
  .texte-eric p {
    font-size: 14px;
    line-height: 1.5;
  }
  
  .buttons {
    padding: 5%;
  }
  
  .buttons a {
    display: block;
    width: 100%;
    margin: 10px 0;
    font-size: 13px;
    padding: 10px;
  }
  
  #btn_info {
    margin-right: 0;
  }
  
  footer {
    padding: 1rem 0.5rem;
    font-size: 0.8rem;
  }
  
  .mentions-content {
    padding: 1.25rem;
    font-size: 14px;
  }
  
  .mentions-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
  }
  
  .close-mentions {
    font-size: 1.5rem;
    top: 8px;
    right: 12px;
  }
}

/* === RESPONSIVE LANDSCAPE MOBILE === */
@media (max-width: 991px) and (orientation: landscape) {
  header {
    min-height: 100vh;
  }
  
  #title h1 {
    font-size: 3rem;
  }
  
  #title h2 {
    font-size: 1rem;
  }
}

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