/* ---- Paramètres généraux ---- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  background-color: #fff;
  color: #111;
  padding: 10px;
}

/* ---- Mise en page adaptable ---- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
}

/* ---- Images et vidéos fluides ---- */
img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ---- Liens ---- */
a {
  color: #0066cc;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ---- Boutons (grands doigts friendly) ---- */
button, .button, input[type="submit"] {
  padding: 12px 20px;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 8px;
  border: none;
}

/* ---- Grilles flexibles ---- */
.flex {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.flex-center {
  justify-content: center;
  align-items: center;
}

.column {
  flex-direction: column;
}

/* ---- Titres adaptables ---- */
h1 {
  font-size: 2rem;
  margin-bottom: 10px;
}
h2 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}
h3 {
  font-size: 1.2rem;
  margin-bottom: 6px;
}

/* ---- Bandeau principal (hero) ---- */
.hero {
  background-color: #1e1e1e;
  color: white;
  padding: 50px;
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  text-align: center;
  font-family: 'Poppins', sans-serif;
  margin-top: 40px;
  margin-bottom: 60px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  box-sizing: border-box;
}

.hero h1 {
  font-size: 32px;
  font-weight: normal;
}

.hero h2 {
  font-size: 20px;
  font-weight: normal;
}

.hero p {
  font-size: 20px;
  line-height: 1.8;
  color: #fff;
  font-weight: normal;
}

.hero em {
  color: #ddd;
  font-style: italic;
}

/* ---- Header ---- */
header {
  background-color: white;
  color: #1e1e1e;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  font-family: 'Montserrat', sans-serif;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

nav a {
  color: #1e1e1e;
  text-decoration: none;
  margin: 0 20px;
  font-weight: 500;
  transition: color 0.3s;
}

nav a:hover {
  color: #ffcb05;
}

.profile-box {
  display: flex;
  align-items: center;
  gap: 10px;
}

.profile-name {
  font-weight: 500;
  color: #1e1e1e;
}

.profile-icon {
  background-color: white;
  color: #1e1e1e;
  padding: 8px 12px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
  text-decoration: none;
}

.logout-button {
  background: none;
  border: none;
  color: #1e1e1e;
  font-weight: 500;
  cursor: pointer;
  margin-left: 10px;
}

.logout-button:hover {
  color: #ffcb05;
}

/* ---- Footer ---- */
footer {
  text-align: center;
  padding: 20px;
  font-size: 14px;
  color: #666;
  margin-top: 60px;
}

footer a {
  color: #1e1e1e;
  text-decoration: none;
  font-weight: 500;
}

footer a:hover {
  color: #ffcb05;
}

/* ---- Responsive media query ---- */
@media screen and (max-width: 768px) {
  body {
    font-size: 15px;
    padding: 10px;
  }

  .flex {
    flex-direction: column;
    gap: 10px;
  }

  h1 {
    font-size: 1.6rem;
  }

  h2 {
    font-size: 1.3rem;
  }

  h3 {
    font-size: 1.1rem;
  }

  button, .button, input[type="submit"] {
    width: 100%;
  }

  .hero {
    padding: 30px;
  }

  .hero h1 {
    font-size: 26px;
  }

  .hero h2 {
    font-size: 18px;
  }

  .hero p {
    font-size: 18px;
  }

  header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  nav a {
    margin: 5px 10px;
  }

  .profile-icon {
    font-size: 18px;
    padding: 6px 10px;
  }

  header {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 20px;
  }

  header .logo {
    margin-bottom: 10px;
    font-size: 18px;
  }

  header nav {
    display: flex;
    flex-direction: column;
    width: 100%;
  }

  header nav a {
    margin: 6px 0;
    font-size: 16px;
  }

  header .profil {
    align-self: flex-end;
    margin-top: 10px;
  }

  header .profil img {
    width: 32px;
    height: 32px;
  }
}
}

/* =========================
   FOOTER : corriger le "gros blanc" en mode PORTRAIT
   (tablettes + téléphones en vertical)
   ========================= */
@media screen and (orientation: portrait) {

  /* Sticky footer (sans toucher au paysage/desktop) */
  html, body {
    height: 100%;
  }

  body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
  }

  /* Mets ton contenu principal dans un "flux" qui prend la place.
     Si tu as déjà un wrapper global (ex: .container), ça marche aussi.
     Sinon, laisse body gérer et on pousse juste le footer. */
  footer {
    margin-top: auto;      /* pousse le footer en bas */
    padding-top: 12px;     /* optionnel: un peu plus compact */
    padding-bottom: 12px;  /* optionnel */
  }
}
