/* ==========================================================================
   Académie de piano Vanessa Theviot — feuille de style principale
   Chargée après Bootstrap 5.3.2 : ce fichier ne redéfinit que les classes
   maison utilisées dans index.html (les classes bootstrap sont réutilisées
   telles quelles).
   ========================================================================== */

:root {
  --primary-dark:  #4a3c32;  /* brun profond : titres, texte fort */
  --primary-light: #9f8266;  /* brun clair : boutons pleins, icônes */
  --accent:        #755d4f;  /* brun moyen : dégradés, hover */
  --cream:         #FBF6F3;  /* fond crème */
  --apricot:       #EED3C4;  /* fond abricot */
  --sand:          #d5c1b6;  /* bordures chaudes */
  --border:        #e0d3cb;
  --shadow-sm: 0 2px 6px rgba(74, 60, 50, .06);
  --shadow-md: 0 8px 24px rgba(74, 60, 50, .10);
  --shadow-lg: 0 16px 40px rgba(74, 60, 50, .14);
}

/* --------------------------------------------------------------- Base --- */

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: #55483f;
  background-color: #fff;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 { letter-spacing: -.01em; }

.section-padding { padding: 5rem 0; }

@media (max-width: 767.98px) {
  .section-padding { padding: 3rem 0; }
}

/* ------------------------------------------------------ Couleurs util --- */

.text-primary-dark  { color: var(--primary-dark) !important; }
.text-primary-light { color: var(--primary-light) !important; }

.bg-cream        { background-color: var(--cream) !important; }
.bg-apricot      { background-color: var(--apricot) !important; }
.bg-primary-dark { background-color: var(--primary-dark) !important; }

.gradient-bg {
  background: linear-gradient(135deg, var(--accent) 0%, var(--primary-dark) 100%);
}

/* ---------------------------------------------------------- Boutons ----- */

.btn.btn-primary-light {
  background-color: var(--primary-light);
  border: 1px solid var(--primary-light);
  color: #fff;
  font-weight: 600;
  border-radius: .5rem;
  transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.btn.btn-primary-light:hover,
.btn.btn-primary-light:focus {
  background-color: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn.btn-outline-primary-dark {
  background-color: transparent;
  border: 1px solid var(--primary-dark);
  color: var(--primary-dark);
  font-weight: 600;
  border-radius: .5rem;
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}

.btn.btn-outline-primary-dark:hover,
.btn.btn-outline-primary-dark:focus {
  background-color: var(--primary-dark);
  color: #fff;
  transform: translateY(-2px);
}

.btn.bouton-blanc {
  background-color: #fff;
  border: 1px solid #fff;
  border-radius: .5rem;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}

.btn.bouton-blanc:hover,
.btn.bouton-blanc:focus {
  background-color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Les CTA sans href doivent rester cliquables visuellement */
a.openFormBtn { cursor: pointer; }

/* ------------------------------------------------------------- Nav ------ */

.nav-background {
  background-color: rgba(251, 246, 243, .96);
  backdrop-filter: saturate(180%) blur(8px);
  padding-top: .6rem;
  padding-bottom: .6rem;
  z-index: 1030;
}

.navbar-brand img { display: block; }

/* ------------------------------------------------------------ Hero ------ */

.hero-section {
  background: linear-gradient(to bottom, #ffffff 0%, var(--cream) 100%);
}

.hero-title {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
}

@media (max-width: 575.98px) {
  /* Les 2 CTA du hero sont en flex-row : on les empile sur mobile */
  .hero-section .d-flex.flex-row { flex-direction: column !important; align-items: center; }
  .hero-section .d-flex.flex-row > div { width: 100%; }
  .hero-section .d-flex.flex-row .btn { width: 100%; }
}

/* --------------------------------------------------------- Timeline ----- */

.section-timeline {
  background: linear-gradient(to bottom, var(--apricot) 0%, var(--cream) 60%, var(--cream) 100%);
}

.timeline-container {
  position: relative;
  max-width: 1080px;
  margin: 0 auto 3rem auto;
  padding: 1rem 0;
}

.timeline-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  margin-left: -1.5px;
  background: linear-gradient(to bottom, transparent, var(--sand) 8%, var(--sand) 92%, transparent);
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 0 3rem 3rem 3rem;
}

.timeline-left  { left: 0; }
.timeline-right { margin-left: 50%; }

.timeline-content {
  position: relative;
  background: #fff;
  border-radius: 1rem;
  padding: 1.75rem 1.5rem 1.5rem 1.5rem;
  box-shadow: var(--shadow-md);
  transition: transform .25s ease, box-shadow .25s ease;
}

.timeline-content:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* Pastille numérotée, posée sur la ligne centrale */
.timeline-number {
  position: absolute;
  top: 1.5rem;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--primary-light);
  color: #fff;
  font-weight: 700;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 6px var(--cream);
}

.timeline-left  .timeline-number { right: -4.15rem; }
.timeline-right .timeline-number { left:  -4.15rem; }

.timeline-icon {
  border-radius: .75rem;
  overflow: hidden;
  margin-bottom: 1rem;
}

.timeline-icon img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
}

/* Badge « Aujourd'hui / Jour 1-5 / … » */
.jour-badge {
  display: inline-block;
  background: var(--apricot);
  color: var(--primary-dark);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: .3rem .9rem;
  border-radius: 999px;
  margin-bottom: .9rem;
}

@media (max-width: 991.98px) {
  .timeline-line { left: 26px; }

  .timeline-item,
  .timeline-left,
  .timeline-right {
    width: 100%;
    margin-left: 0;
    left: 0;
    padding: 0 0 2.5rem 4.25rem;
  }

  .timeline-left  .timeline-number,
  .timeline-right .timeline-number {
    left: -3.6rem;
    right: auto;
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}

/* ---------------------------------------------------------- Tarifs ------ */

.pricing-card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 1rem;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.pricing-card.featured {
  border: 2px solid var(--primary-light);
  box-shadow: var(--shadow-md);
}

.pricing-badge {
  position: absolute;
  top: -.85rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-light);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  padding: .35rem 1.1rem;
  border-radius: 999px;
  white-space: nowrap;
  z-index: 2;
}

.price-amount {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1;
}

.price-period {
  font-size: 1rem;
  color: #8b7c70;
  font-weight: 500;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  padding: .45rem 0;
  border-bottom: 1px solid #f1e9e3;
  font-size: .96rem;
}

.feature-list li:last-child { border-bottom: 0; }

.feature-list li i {
  flex-shrink: 0;
  margin-top: .2rem;
  color: #7da97b;
}

.feature-list li i.bi-x-circle,
.feature-list li i.text-muted { color: #b9aca2 !important; }

/* ------------------------------------------------------- Cartes/hover --- */

.card-hover {
  transition: transform .25s ease, box-shadow .25s ease;
  border-radius: 1rem;
}

.card-hover:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

/* --------------------------------------------------------- Programme ---- */

.programme-section {
  background: linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.2)),
              url('/images/section-programme.webp') no-repeat center/cover;
}

.programme-section .container { text-align: center; }
.programme-section .row       { text-align: left; }

.course-badge {
  background-color: var(--apricot);
  color: var(--primary-dark);
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .02em;
  padding: .4rem .9rem;
}

/* Repli / dépli du programme (voir js/deployer-programme.js) */
.program-item.is-hidden { display: none; }

.toggle-program-btn { border-radius: 999px; padding: .65rem 1.6rem; }

/* -------------------------------------------------------- Témoignages --- */

.testimonial-photo-card {
  border-radius: .9rem;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: #fff;
  transition: transform .25s ease, box-shadow .25s ease;
}

.testimonial-photo-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.testimonial-photo {
  width: 100%;
  height: auto;
  display: block;
}

/* Bloc vidéo témoignage (présent en commentaire dans le HTML) */
.testimonial-video-card { box-shadow: var(--shadow-md); background: #000; }

.testimonial-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  border: 0;
}

/* ------------------------------------------------- Sections à visuel ---- */

.autresplateformes-section,
.pourqui-section {
  background-color: #fff;
}

.cta-section { color: #fff; }
.cta-section .btn-light:hover { background-color: var(--cream); }

/* ---------------------------------------------------------- Footer ------ */

footer a:hover { color: #fff !important; }

/* --------------------------------------------------------- Divers ------- */

/* Le HTML laisse un <div class="row"> hors .container dans la section vidéo :
   on neutralise la marge négative pour éviter un débordement horizontal. */
#presentation > .row { margin-left: 0; margin-right: 0; }

html { scroll-behavior: smooth; }

/* Compense la navbar sticky lors des ancres (#presentation, #programme…) */
[id] { scroll-margin-top: 90px; }


/* ====================================================================== */
/* Images de fond des sections                                            */
/* Reprises telles quelles du stylez.css en production de                 */
/* piano.vanessa-theviot.fr (29/08/2026). Les degrades servent a garder   */
/* le texte lisible par-dessus la photo : ne pas les retirer.             */
/* ====================================================================== */

.hero-section {
  background: radial-gradient(circle, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.5)),
              url('/images/section-hero.webp') no-repeat center/cover;
}

.section-timeline {
  background: linear-gradient(rgba(255, 255, 255, 0.6), rgba(247, 235, 229, 0.8)),
              url('/images/section-timeline.webp') no-repeat center/cover;
}

.autresplateformes-section {
  background: linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.2)),
              url('/images/section-differenciateurs.webp') no-repeat center/cover;
}

/* La section CTA a deux cadrages distincts : paysage sur grand ecran,   */
/* portrait sur mobile. Le degrade y est sombre, le texte etant en blanc. */
@media (min-width: 769px) {
  .cta-section {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.8)),
                url('/images/section-cta-desktop.webp') no-repeat center/cover;
  }
}

@media (max-width: 768px) {
  .cta-section {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.8)),
                url('/images/section-cta-mobile.webp') no-repeat center/cover;
  }
}
