/* ============================================================
   Brigitte Meyer – Pianiste
   Reconstruction fidèle du thème Startit (WordPress) en CSS pur.
   Palette : blanc / #f4f4f4 / noir, textes #818181, titres #202020.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Raleway', sans-serif;
  font-size: 14px;
  line-height: 26px;
  color: #797979;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

a { color: #202020; text-decoration: none; transition: color .2s ease; }
a:hover { color: #000; }

h1, h2, h3, h4 {
  font-family: 'Raleway', sans-serif;
  color: #202020;
  margin: 0 0 20px;
  font-weight: 700;
  line-height: 1.2;
}
h2 { font-size: 35px; }
h3 { font-size: 22px; }

p { margin: 0 0 16px; }

.grille { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* ---------- En-tête transparent ---------- */
.entete {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 110;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  background: transparent;
}
.entete-logo img { display: block; height: 88px; width: auto; }

/* ---------- Burger (ouvre le menu plein écran) ---------- */
.burger {
  position: relative;
  width: 44px; height: 44px;
  background: none; border: 0; cursor: pointer;
  padding: 0;
}
.burger-ligne, .burger-ligne::before, .burger-ligne::after {
  content: '';
  position: absolute;
  left: 7px;
  width: 30px; height: 2px;
  background: #fff;
  transition: transform .3s ease, opacity .3s ease, background .3s ease;
}
.burger-ligne { top: 21px; }
.burger-ligne::before { top: -9px; left: 0; }
.burger-ligne::after  { top: 9px;  left: 0; }
.burger.sombre .burger-ligne,
.burger.sombre .burger-ligne::before,
.burger.sombre .burger-ligne::after { background: #202020; }

body.menu-ouvert .burger .burger-ligne { background: transparent !important; }
body.menu-ouvert .burger .burger-ligne::before { transform: translateY(9px) rotate(45deg); background: #202020; }
body.menu-ouvert .burger .burger-ligne::after  { transform: translateY(-9px) rotate(-45deg); background: #202020; }

/* ---------- En-tête compact (réapparaît en remontant) ---------- */
.entete-collant {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 120;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.12);
  transform: translateY(-100%);
  transition: transform .3s ease;
}
.entete-collant.visible { transform: translateY(0); }
.entete-collant .entete-logo img { height: 46px; }

/* ---------- En-tête mobile ---------- */
.entete-mobile {
  display: none;
  align-items: center;
  justify-content: space-between;
  height: 100px;
  padding: 0 15px;
  background: #fff;
  border-bottom: 1px solid #eaeaea;
}
.entete-mobile .entete-logo img { height: 70px; }
.entete-mobile-cale { width: 44px; }

/* ---------- Menu plein écran ---------- */
.menu-plein {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s ease, visibility .4s ease;
}
body.menu-ouvert .menu-plein { opacity: 1; visibility: visible; }
.menu-plein ul { list-style: none; margin: 0; padding: 0; text-align: center; }
.menu-plein li {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .35s ease, transform .35s ease;
  transition-delay: calc(.06s * var(--i, 0));
}
body.menu-ouvert .menu-plein li { opacity: 1; transform: none; }
.menu-plein a {
  display: inline-block;
  font-size: 30px;
  line-height: 56px;
  font-weight: 600;
  color: #202020;
}
.menu-plein a:hover, .menu-plein a.actif { color: #9a9a9a; }

/* ---------- Slider d'accueil ---------- */
.slider {
  position: relative;
  height: 100vh;
  min-height: 480px;
  background: #21211b;
  overflow: hidden;
}
.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.slide.visible { opacity: 1; }

/* Bouton « souris » qui invite à défiler */
.slider-souris {
  position: absolute;
  left: 50%;
  bottom: 42px;
  transform: translateX(-50%);
  width: 35px; height: 55px;
  border: 3px solid rgba(255,255,255,.75);
  border-radius: 23px;
  z-index: 5;
}
.slider-souris span {
  position: absolute;
  left: 50%; top: 10px;
  width: 4px; height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: #fff;
  animation: souris 2s infinite;
}
@keyframes souris {
  0%   { opacity: 0; transform: translateY(0); }
  25%  { opacity: 1; }
  75%  { opacity: 0; transform: translateY(18px); }
  100% { opacity: 0; }
}

/* ---------- Sections ---------- */
.section-blanche { padding: 95px 0 70px; background: #fff; }

.deux-colonnes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: start;
}
.colonne-portrait { text-align: center; }

.portrait-rond {
  border-radius: 50%;
  border: 8px solid #fff;
  box-shadow: 0 0 25px rgba(0,0,0,.25);
}

.deux-colonnes h2 { margin-top: 40px; }

/* Sections grises moitié image / moitié texte */
.section-grise {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #f4f4f4;
}
.moitie-image {
  background-size: cover;
  background-position: center;
  min-height: 560px;
}
.moitie-texte { display: flex; align-items: center; }
.moitie-texte-inner {
  max-width: 560px;
  padding: 120px 40px 90px;
  margin: 0 auto;
}
.titre-40 {
  font-family: 'Raleway', sans-serif;
  font-size: 40px;
  line-height: 40px;
  font-weight: 700;
  color: #202020;
  margin-bottom: 28px;
}

/* ---------- Boutons ---------- */
.rang-boutons { margin-top: 33px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.rang-boutons.centre { justify-content: center; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
  font-family: 'Raleway', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .5px;
  line-height: 1;
  padding: 16px 26px;
  border: 1px solid #000;
  cursor: pointer;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.btn-plein { background: #000; color: #fff; }
.btn-plein:hover { background: #2b2b2b; color: #fff; }
.btn-contour { background: transparent; color: #202020; border-color: #202020; }
.btn-contour:hover { background: #000; color: #fff; }
.btn-gris {
  background: #ebebeb;
  color: #444;
  border: 0;
  border-radius: 5px;
  padding: 15px 22px;
  font-weight: 600;
  letter-spacing: 0;
}
.btn-gris:hover { background: #dcdcdc; color: #202020; }

.ic svg { width: 18px; height: 18px; display: block; }

/* ---------- Bandeau de titre des pages intérieures ---------- */
.bandeau {
  height: 520px;
  background-size: cover;
  background-position: center top;
  /* Parallaxe : l'image reste fixe pendant que la page défile */
  background-attachment: fixed;
  display: flex;
  align-items: center;
}
.bandeau-inner {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 60px 20px 0;
}
.bandeau h1 {
  color: #fff;
  font-size: 65px;
  font-weight: 700;
  margin: 0;
}

/* Biographie : l'image du bandeau ne fait que 400 px de haut (2000 x 400).
   Le parallaxe plein écran la zoome trop et coupe le visage ; ici le bandeau
   reprend la hauteur réelle de l'image, calée à gauche, sans parallaxe. */
body[data-page="biographie"] .bandeau {
  background-attachment: scroll;
  background-position: left top;
  height: 400px;
}

/* ---------- Texte des pages intérieures ---------- */
.texte-page { max-width: 1100px; }
.texte-page h2 { margin-bottom: 25px; }
.texte-page h3 { margin: 40px 0 20px; }
.texte-page ul { margin: 0 0 16px; padding-left: 20px; }
.texte-page li { margin-bottom: 6px; }

/* ---------- Vidéos ---------- */
.video-16-9 {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-bottom: 20px;
  background: #000;
}
.video-16-9 iframe {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  border: 0;
}
.deux-colonnes-videos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: start;
}
.liste-videos .video-16-9 { margin-bottom: 60px; }

/* ---------- Contact ---------- */
.contact h3 { margin-bottom: 35px; }
.champs-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
#formContact label { display: block; margin-bottom: 22px; }
.champ-titre { display: block; margin-bottom: 8px; color: #818181; }
#formContact input[type=text],
#formContact input[type=email],
#formContact textarea {
  width: 100%;
  font-family: 'Raleway', sans-serif;
  font-size: 14px;
  color: #202020;
  background: #fff;
  border: 1px solid #cfcfcf;
  padding: 9px 12px;
  outline: none;
  transition: border-color .2s ease;
}
#formContact input:focus, #formContact textarea:focus { border-color: #202020; }
.pot-de-miel { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-reponse { margin-top: 18px; font-weight: 600; }
.form-reponse.ok { color: #3f7d3f; }
.form-reponse.erreur { color: #b03030; }

.coordonnees { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.coord-item { display: flex; gap: 18px; align-items: flex-start; }
.coord-item > div { min-width: 0; }
.coord-item p { margin: 0 0 4px; }
.coord-item a { font-weight: 600; }
.coord-ic {
  flex: 0 0 auto;
  width: 39px; height: 39px;
  border: 1px solid #202020;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #202020;
  transition: background .2s ease, color .2s ease;
}
.coord-item:hover .coord-ic { background: #979797; border-color: #979797; color: #fff; }
.coord-ic svg { width: 19px; height: 19px; }

/* ---------- Pied de page ---------- */
.pied {
  background: #303030;
  text-align: center;
  padding: 28px 20px;
  color: #a2a2a2;
  font-size: 14px;
}

/* ---------- Retour en haut ---------- */
#hautPage {
  position: fixed;
  right: 25px; bottom: 25px;
  z-index: 90;
  width: 44px; height: 44px;
  border: 2px solid #202020;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #202020;
  background: rgba(255,255,255,.85);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}
#hautPage.visible { opacity: 1; visibility: visible; }
#hautPage svg { width: 20px; height: 20px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .entete, .entete-collant { display: none; }
  .entete-mobile { display: flex; position: sticky; top: 0; z-index: 110; }

  .slider { height: 62vh; }

  .deux-colonnes { grid-template-columns: 1fr; gap: 30px; }
  .section-grise { grid-template-columns: 1fr; }
  .section-grise.inversee .moitie-image { order: -1; }
  .moitie-image { min-height: 320px; }
  .moitie-texte-inner { padding: 60px 25px 50px; }

  .deux-colonnes-videos { grid-template-columns: 1fr; }
  .menu-plein a { font-size: 24px; line-height: 48px; }

  /* Le parallaxe en position fixe est mal géré par les navigateurs tactiles */
  .bandeau { background-attachment: scroll; }
}

@media (max-width: 600px) {
  .section-blanche { padding: 55px 0 45px; }
  .bandeau { height: 320px; background-attachment: scroll; }
  .bandeau h1 { font-size: 36px; }
  h2 { font-size: 28px; }
  .titre-40 { font-size: 32px; line-height: 34px; }
  .champs-2col, .coordonnees { grid-template-columns: 1fr; }
  .liste-videos .video-16-9 { margin-bottom: 30px; }
}
