/* ==========================
   CSS GLOBAL POUR Jérémy David
   Structure claire et styles par page
   ========================== */

/* ---- Reset et styles communs ---- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

img {
  pointer-events: none;
  user-select: none;
}

body {
  margin: 0;
  padding: 20px; /* ou 0 si tu veux que le contenu colle aux bords */
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  background-color: #EDF2F4;
  color: #2B2D42;
  width: 100%;
  box-sizing: border-box;
  overflow-x: hidden; /* empêche la barre horizontale */
}


h1, h2, h3 {
  font-family: 'Georgia', serif;
  color: #2B2D42;
}

p, ul, li {
  color: #2B2D42;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

ul {
  margin-left: 1.25rem;
}

a {
  color: #EDF2F4;
  text-decoration: none;
}

a:hover, a:focus {
  text-decoration: underline;
}

/* ---- HEADER et NAVIGATION ---- */
header {
  width: 100%;
  background-color: #EDF2F4; /* un noir profond, légèrement transparent */
  padding: 0.5rem 0;  /* pas de padding latéral : fond collé aux bords */
  box-sizing: border-box;
  border-radius: 0;
  border-color: #2B2D42;
  border-style: solid;
  border-width: 1px;
  position: relative;
  z-index: 10;
  margin: 0;
  border-radius: 15px;
  margin-bottom: 2rem; /* Ajoute un espace sous le header */
}

.container-header {
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
  box-sizing: border-box;
}

header h1 {
  color: #2B2D42;
  font-size: 2rem;
  margin: 0;
  font-weight: bold;
  position: relative;
  padding-bottom: 0;
  border-bottom: none;
}

header h1 .header-subtitle {
  display: block;
  font-size: 1rem;
  font-weight: normal;
  color: #2B2D42;
  margin-top: 0.2rem;
  font-style: italic;
}

/* Conteneur du logo pour gérer la barre et le sous-titre */
.logo-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* ou center si préfère centré */
}

/* Texte principal */
.logo-block .main-title {
  font-family: 'Georgia', serif;
  color: #2B2D42;
  font-size: 2rem;
  font-weight: bold;
  line-height: 1.1;
  margin: 0;
}

/* Barre rouge sous le titre */
.logo-block .main-underline {
  display: block;
  width: 100%;
  max-width: 260px; /* largeur barre */
  height: 3px; /* épaisseur barre */
  background: #EF233C;
  margin-top: 0.4rem;
  margin-bottom: 0.3rem; /* espace entre barre et sous-titre */
  border-radius: 3px;
}

/* Sous-titre "saxophoniste" */
.logo-block .header-subtitle {
  font-family: 'Georgia', serif;
  font-size: 1.5rem;
  color: #2B2D42;
  font-style: italic;
  margin-left: 2px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.2rem;
  margin: 0;
  padding: 0;
}

nav ul li a {
  color: #2B2D42;
  font-size: 1.3rem; /* plus petit que le h1 */
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s ease;
}

nav ul li a:hover,
nav ul li a:focus {
  color: #EF233C; /* couleur d'accent au hover */
  text-decoration: none;
}

/* Bouton hamburger — caché sur desktop */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.5rem;
  cursor: pointer;
  color: #2B2D42;
}

/* Cacher le menu hamburger sur les grands écrans */
@media (min-width: 1025px) {
  .menu-toggle {
    display: none !important;
  }
}

/* Afficher le menu hamburger uniquement sur petits écrans */
@media (max-width: 1024px) {
  .menu-toggle {
    display: block !important;
    font-size: 1.5rem; /* ou la taille souhaitée */
    cursor: pointer;
  }
}

/* ---- FOOTER ---- */
footer {
  text-align: center;
  background-color: #EDF2F4;
  padding: 1rem 0;
  font-size: 0.9rem;
  color: #2B2D42;
  border-top: 1px solid #444;
  margin-top: 2rem;
}

/* ---- MAIN et SECTIONS ---- */
main {
  margin-bottom: 2rem;
}

section {
  background-color: #EDF2F4;
  padding: 1.5rem 2rem;
  border-radius: 0px;
  margin-bottom: 0rem;
}

h1 {
  font-size: 2.5rem;
  border-bottom: 2px solid #EF233C;
  padding-bottom: 0.3rem;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 1.8rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.4rem;
  color: #2b2d42;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

/* ---- FORMULAIRES (index, contact) ---- */
form input[type="text"],
form input[type="email"],
form textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #8d99ae;
  border-radius: 5px;
  font-size: 1rem;
  margin-bottom: 1rem;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  transition: border-color 0.3s ease, background-color 0.3s ease;
  background-color: #edf2f4;
  color: #2b2d42;
}

form input[type="text"]:focus,
form input[type="email"]:focus,
form textarea:focus {
  outline: none;
  border-color: #ef233c;
  background-color: #edf2f4;
}

form textarea {
  resize: vertical;
  min-height: 120px;
}

form label {
  font-weight: 100;
  color: #2b2d42;
  font-size: 1rem;
}

.form-row {
  display: flex;
  gap: 1em; /* espace entre colonnes */
  flex-wrap: wrap; /* pour que ça reste responsive */
}

.form-group {
  flex: 1 1 45%; /* chaque champ prend environ 45% de la largeur */
  min-width: 250px; /* largeur minimale pour petits écrans */
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%; /* remplissage du conteneur */
  box-sizing: border-box; /* inclure padding/border dans la largeur */
}


form button[type="submit"] {
  background-color: #ef233c;
  color: #edf2f4;
  border: none;
  padding: 0.5rem 2rem;
  font-size: 1rem;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  display: block;
  margin: 1em auto 0;
}

hr {
  margin-top: 1.5em; /* espace au-dessus de la ligne */
  border-color: black; /* couleur éventuelle si besoin */
}

form button:hover,
form button:focus {
  background-color: #d90429;
  outline: none;
}

#message-sent {
  display: none;
  padding: 1em;
  margin-bottom: 1em;
  border-radius: 5px;
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

#message-error {
  display: none;
  padding: 1em;
  margin-bottom: 1em;
  border-radius: 5px;
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.button-container {
  display: flex;
  justify-content: center; /* centre horizontalement */
  margin-top: 1rem;        /* optionnel : espace au-dessus */
  margin-bottom: 1rem;     /* optionnel : espace en dessous */
}
.button-link {
  display: inline-block;
  background-color: #ef233c; /* même couleur que le bouton */
  color: #edf2f4;
  padding: 0.5rem 2rem;
  font-size: 1rem;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  border-radius: 5px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  border: none;
  transition: background-color 0.3s ease;
}

.button-link:hover,
.button-link:focus {
  background-color: #d90429;
  outline: none;
  text-decoration: none;
}

/* À venir */
.events-list {
  max-width: 95vw;
  margin: 2rem auto;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #2B2D42;
  background-color: #EDF2F4;
  padding: 1rem;
  border-radius: 8px;
  font-size: inherit;
  line-height: inherit;
}

/* titre événements à venir*/
.events-list h1.titre-a-venir {
  text-align: center !important;
  color: #EF233C !important;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid #EF233C !important;
  margin-bottom: 1.5rem;
}

/*titre événements passés*/
.events-list h1.titre-passes {
  text-align: center;
  color: #6B7A90;
  text-decoration: none;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid #C5CBD6;
  font-size: 1.8rem;        /* légèrement plus petit */
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
  font-style: italic;
}

/* Boîtes événements PASSÉS */
.event-box {
  background-color: #EDF2F4;
  border: 2px solid #6B7A90;
  padding: 1rem 1.5rem;
  margin-bottom: 1rem;
  border-radius: 8px;
  transition: background-color 0.3s ease, color 0.3s ease;
  cursor: pointer;
  width: 100%;
  box-sizing: border-box;
  color: #2B2D42;
}

.event-box h2 {
  margin-top: 0;
  margin-bottom: 0.4rem;
}

.event-box p {
  margin: 0.2rem 0;
}

.event-box a {
  color: #2B2D42;
  text-decoration: underline;
  font-weight: 400;
}

.event-location {
  font-style: normal;
  color: #8D99AE; /* gris bleuté discret */
  margin: 0.2rem 0 0.6rem 0;
}

.event-box:hover,
.event-box:focus-within {
  background-color: #edf2f4;
  color: #d90429d9;
  border-color: #EF233C;
}

.event-box:hover a,
.event-box:focus-within a {
  color: #ef233c;
}

/* Boîtes événements PASSÉS */
.event-box.passe {
  background-color: #F5F7F9;
  border: 1.5px solid #D1D8E0;
  opacity: 0.75;
}

.event-box.passe h2 {
  color: #8D99AE;
  font-size: 1.5rem;
}

.event-box.passe p,
.event-box.passe time {
  color: #A0AABB;
  font-size: 1rem;
}

.event-box.passe .event-location {
  color: #B0BBC8;
}

.event-box.passe a {
  color: #8D99AE;
  text-decoration: underline;
}

.event-box.passe:hover,
.event-box.passe:focus-within {
  opacity: 1;
  border-color: #8D99AE;
  background-color: #EDF2F4;
}

.event-box.passe:hover a,
.event-box.passe:focus-within a {
  color: #2B2D42;
}

/* ---- Séparateur visuel entre sections ---- */
.separateur-passes {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 2.5rem 0 0 0;
}

.separateur-passes::before,
.separateur-passes::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #C5CBD6;
}


/* ----------- HERO ROW (index) -------------- */
.hero-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  background: #EDF2F4;
  border-radius: 12px;
  min-height: 50vh;
  width: 100%;
  margin-bottom: 2rem;
  gap: 3vw;
  box-shadow: 0 2px 16px rgba(44,45,66,0.07);
}

.hero-text-side {
  flex: 1.2;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  max-width: 600px;
}

.hero-intro {
  color: #2B2D42;
  font-size: 1.4rem;
  line-height: 1.5;
  margin: 0 0 0 2vw;
  text-align: left;
  font-weight: 400;
  font-style: italic;
}

.hero-intro .signature {
  display: block;
  margin-top: 2rem;
  font-family: 'Georgia', serif;
  font-size: 1.15rem;
  font-style: italic;
  color: #EF233C;
  letter-spacing: 0.02em;
}

.hero-image-side {
  flex: 1;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  min-width: 220px;
  max-width: 330px;
}

.hero-portrait {
  width: 100%;
  max-width: 330px;
  aspect-ratio: 3/4;   /* format portrait pur */
  height: auto;
  border-radius: 8px;
  box-shadow: 0 6px 28px rgba(44,45,66,0.17);
  object-fit: cover;
  background: #edf2f4;
}


/* VIDÉOS (section projets) */
.projet-video {
  background: #EDF2F4;
  padding: 1.5rem;
  margin-bottom: 0.5rem;
  box-shadow: 0 2px 16px rgba(44,45,66,0.07);
  border-radius: 1rem;
}

.video-container {
  width: 100%;
  max-width: 720px;           /* largeur max sur desktop */
  margin: 1.5rem auto;
  aspect-ratio: 16 / 9;       /* ratio paysage moderne */
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 8px;
  background: #000;
  display: block;
}

/* Texte sous la vidéo */
.extrait {
  font-style: italic;
  color: #2B2D42;
  text-align: center;
  margin: 1rem auto 2rem auto;
  max-width: 800px;
  font-size: 1rem;
}


/* Texte en dessous */
.extrait {
  font-style: italic;
  color: #cccccc;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 2rem auto;
}

.inner-container {
  padding: 0 2rem;
}

/* mise en page de la fiche technique */
.fiche-technique a {
  color: #2B2D42;
  font-weight: 400;
  text-decoration: underline;
  display: inline-flex;
  align-items: center;
  gap: 0.20em;
  transition: color 0.2s;
}

.fiche-technique a:hover,
.fiche-technique a:focus {
  color: #EF233C;
}

/* Section bio */

.bio_jeunes-annees,
.bio_parcours,
.bio_presentement {
  display: flex;
  flex-direction: column; /* Titres au-dessus, contenu en colonne */
  margin-bottom: 0rem;
}

.bio_jeunes-annees h2,
.bio_parcours h2,
.bio_presentement h2 {
  margin-bottom: 0rem;
  color: #2B2D42;
  font-weight: 700;
}

/* Conteneur texte + image en ligne */
.bio-content {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

/* Texte justifié */
.bio-content .text {
  flex: 1;
  text-align: justify;
  color: #2B2D42;
}

/* environ % de la largeur */
.bio-content .image {
  flex: none;
  width: 40vw;
  max-width: 500px;  /* pour ne pas dépasser sur grands écrans */
  min-width: 180px;  /* pour garder une taille minimale */
  border-radius: 12px;
}

.bio-content .image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

/* Ordres par section pour placer l’image à gauche ou à droite */
.bio_jeunes-annees .bio-content {
  flex-direction: row;
}

.bio_jeunes-annees .bio-content .image {
  order: 1; /* image à droite */
  margin-left: 1.5rem;
}

.bio_parcours .bio-content {
  flex-direction: row;
}

.bio_parcours .bio-content .image {
  order: 0; /* image à gauche */
  margin-right: 1.5rem;
}

.bio_presentement .bio-content {
  flex-direction: row;
}

.bio_presentement .bio-content .image {
  order: 1; /* image à droite */
  margin-left: 1.5rem;
}


/* -------- MEDIA QUERY -------- */

@media (max-width: 768px) {
  h1 {
    font-size: 1.8rem;
    margin-bottom: 0.2rem;
    padding-bottom: 0.2rem;
  }

  h2 {
    font-size: 1.3rem;
    margin-top: 0.2rem;
    margin-bottom: 0.8rem;
  }

  h3 {
    font-size: 1.1rem;
    font-weight: 600;
  }

  p, ul, li {
    font-size: 1rem;
    line-height: 1.5;
    text-align: justify;
  }

  main,
  section {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box;
  }

/* MENU */

  nav ul {
    display: none;
    flex-direction: column;
    gap: 0;
    background-color: #EDF2F4;
    position: absolute;
    top: 70px; /* ajuster selon la hauteur du header */
    right: 0.5rem;
    border: 1px solid #2B2D42;
    border-radius: 8px;
    padding: 1rem;
    width: 180px;
    z-index: 20;
  }

  .menu-toggle {
    display: block;
    position: absolute;    
    top: 15px;
    right: 10px;
    z-index: 50;
  }
  

  nav ul.active {
    display: flex;
  }

  nav ul li {
    margin-bottom: 0.8rem;
  }

  nav ul li:last-child {
    margin-bottom: 0;
  }

  nav ul li a {
    font-size: 1.2rem;
    color: #2B2D42;
  }

  nav ul li a:hover,
  nav ul li a:focus {
    color: #EF233C;
  }

  /* Réduction du logo dans le header */
  .logo-block .main-title {
    font-size: 1.4rem; /* taille réduite */
  }

  .logo-block .header-subtitle {
    font-size: 1rem; /* taille réduite */
  }

  /* Réduire aussi la barre rouge sous le logo */
  .logo-block .main-underline {
    max-width: 160px; /* longueur */
    height: 2px;      /* largeur */
    margin-top: 0.3rem;
    margin-bottom: 0.2rem;
  }

/* INDEX */

  .hero-row {
    flex-direction: column-reverse;
    gap: 1.5rem;
    min-height: unset;
    border-radius: 12px;
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }
  .hero-text-side,
  .hero-image-side {
    max-width: 96vw;
    justify-content: center;
    margin: 0;
  }
  .hero-intro {
    margin: 0 1.5vw;
    font-size: 1.04rem;
    text-align: center;
  }
  .hero-image-side {
    max-width: 240px;
    min-width: 120px;
  }

/* BIO */ 
  
  /* Empilement vertical pour toutes les sections bio */
  .bio_jeunes-annees .bio-content,
  .bio_parcours .bio-content,
  .bio_presentement .bio-content {
    flex-direction: column !important;
  }

  /* Texte en premier, image en dernier */
  .bio_jeunes-annees .bio-content .text,
  .bio_parcours .bio-content .text,
  .bio_presentement .bio-content .text {
    order: 0 !important;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding-left: 0;
    padding-right: 0;
    box-sizing: border-box;
  }

  .bio_jeunes-annees .bio-content .image,
  .bio_parcours .bio-content .image,
  .bio_presentement .bio-content .image {
    order: 1 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 90vw;
    max-width: 280px !important;
    margin: 1rem auto 1rem auto !important;
    margin-left: auto !important;
    margin-right: auto !important;
    float: none;
  }

  /* Centrage de l'image elle-même */
  .bio-content .image img {
    display: block;
    margin: 0 auto;
  }

  /* Titres et paragraphes étalés */
  .bio-content .text,
  .bio-content h2,
  .bio-content h3 {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding-left: 0;
    padding-right: 0;
    box-sizing: border-box;
  }

/* À VENIR */

  .events-list {
    max-width: 95vw;
    margin: 1rem auto;
    padding: 0.8rem;
    font-size: 1rem; /* taille un peu plus petite pour mobile */
    line-height: 1.4;
    border-radius: 8px;
  }

  .events-list h1 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }

  .event-box {
    padding: 0.8rem 1rem;
    margin-bottom: 0.8rem;
    border-width: 1.5px;
    font-size: 1rem;
  }

  .event-box h2 {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
  }

  .event-box p {
    margin: 0.15rem 0;
    font-size: 0.95rem;
  }

  .event-box a {
    font-size: 0.95rem;
  }

  .event-location {
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
  }

/* PROJETS */

  .projet-video h2,
  .projet-video h3,
  .projet-video p,
  .projet-video ul,
  .projet-video li {
    padding-left: 1rem;
    padding-right: 1rem;
    box-sizing: border-box;
  }

  .video-container {
    max-width: 98vw;
    border-radius: 4px;
  }

}