/* ============================================================
   GasparCatMusique — Feuille de styles principale
   Thème : sombre élégant / ambiance musicale
   ============================================================ */

/* Variables de couleur */
:root {
  --navy:        #0f1b2d;
  --navy-dark:   #0a1420;
  --navy-card:   #1a2d47;
  --navy-hover:  #213651;
  --gold:        #c9a84c;
  --gold-light:  #e0c06a;
  --gold-dim:    #8a6f2e;
  --white:       #f5f0e8;
  --white-dim:   #b8b0a0;
  --muted:       #8a9ab5;
  --error:       #e05555;
  --success:     #4caf7d;
  --warning:     #e09e55;

  --header-h:    70px;
  --panel-w:     320px;
  --radius:      10px;
  --radius-sm:   6px;
  --shadow:      0 8px 32px rgba(0,0,0,.45);
  --transition:  .2s ease;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--navy);
  color: var(--white);
  font-family: 'Source Sans Pro', system-ui, sans-serif;
  min-height: 100vh;
  line-height: 1.6;
}

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-light); }

img { max-width: 100%; }

h1, h2, h3, h4 { font-family: 'Playfair Display', Georgia, serif; }

/* ── Typographie utilitaire ── */
.text-muted  { color: var(--muted); }
.text-gold   { color: var(--gold); }
.text-error  { color: var(--error); }
.text-center { text-align: center; }

/* ── Boutons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .55rem 1.25rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  font-family: 'Source Sans Pro', sans-serif;
  font-size: .95rem;
  font-weight: 600;
  transition: background var(--transition), transform var(--transition), opacity var(--transition);
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .45; cursor: not-allowed; }

.btn-primary {
  background: var(--gold);
  color: var(--navy-dark);
}
.btn-primary:hover { background: var(--gold-light); }

.btn-secondary {
  background: var(--navy-card);
  color: var(--white);
  border: 1px solid var(--navy-hover);
}
.btn-secondary:hover { background: var(--navy-hover); }

.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold-dim);
}
.btn-outline:hover { background: rgba(201,168,76,.1); border-color: var(--gold); }

.btn-danger {
  background: var(--error);
  color: #fff;
}
.btn-danger:hover { background: #c73c3c; }

.btn-sm  { padding: .35rem .85rem; font-size: .85rem; }
.btn-full { width: 100%; justify-content: center; }
.btn-icon { padding: .4rem; border-radius: 50%; }

/* ── Alertes ── */
.alert {
  padding: .75rem 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  font-size: .95rem;
}
.alert-error   { background: rgba(224,85,85,.15); border-left: 3px solid var(--error);   color: #f09090; }
.alert-success { background: rgba(76,175,125,.15); border-left: 3px solid var(--success); color: #80e0b0; }
.alert-info    { background: rgba(201,168,76,.10); border-left: 3px solid var(--gold);    color: var(--gold-light); }

/* ── Formulaires ── */
.form-group { margin-bottom: 1.1rem; }
.form-group label {
  display: block;
  margin-bottom: .4rem;
  font-size: .9rem;
  color: var(--muted);
  font-weight: 600;
}
.form-control {
  width: 100%;
  padding: .65rem .9rem;
  background: var(--navy-dark);
  border: 1px solid var(--navy-hover);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-size: .95rem;
  font-family: inherit;
  transition: border-color var(--transition);
  appearance: none;
}
.form-control:focus {
  outline: none;
  border-color: var(--gold);
}
.form-control option { background: var(--navy-dark); }

select.form-control { cursor: pointer; }

/* ── Header ── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: var(--navy-dark);
  border-bottom: 1px solid rgba(201,168,76,.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  z-index: 1000;
  gap: 1rem;
}

.header-left .logo {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.logo-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.3rem;
  color: var(--gold);
  letter-spacing: .02em;
}
.logo-sub {
  font-size: .72rem;
  color: var(--muted);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.header-center {
  display: flex;
  gap: .75rem;
}

.header-tool-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .2rem;
  background: transparent;
  border: 1px solid rgba(201,168,76,.2);
  border-radius: var(--radius-sm);
  color: var(--white-dim);
  cursor: pointer;
  padding: .4rem .9rem;
  font-family: inherit;
  font-size: .75rem;
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}
.header-tool-btn svg { width: 20px; height: 20px; }
.header-tool-btn:hover,
.header-tool-btn.active {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201,168,76,.08);
}

.header-right {
  display: flex;
  align-items: center;
  gap: .75rem;
}
.header-username {
  font-size: .9rem;
  color: var(--muted);
}

/* ── Main content offset ── */
.page-content {
  padding-top: calc(var(--header-h) + 2rem);
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  padding-bottom: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* ── Floating panels ── */
.floating-panel {
  position: fixed;
  top: calc(var(--header-h) + 12px);
  width: var(--panel-w);
  background: var(--navy-card);
  border: 1px solid rgba(201,168,76,.3);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  z-index: 1100;
  animation: panelIn .18s ease;
  user-select: none;
}
.floating-panel[hidden] { display: none; }

@keyframes panelIn {
  from { opacity: 0; transform: translateY(-8px) scale(.97); }
  to   { opacity: 1; transform: none; }
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .85rem 1rem .7rem;
  border-bottom: 1px solid rgba(201,168,76,.15);
  cursor: grab;
}
.panel-header:active { cursor: grabbing; }
.panel-header h3 {
  font-size: 1rem;
  color: var(--gold);
}
.panel-close {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  padding: .2rem .4rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition);
}
.panel-close:hover { color: var(--white); }

.panel-body { padding: 1rem; }

/* ── Métronome ── */
#panel-metronome { right: 1.5rem; }

.metronome-flash {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--navy-hover);
  margin: 0 auto .75rem;
  transition: background .06s;
  border: 2px solid var(--navy-hover);
}
.metronome-flash.flash {
  background: var(--gold);
  border-color: var(--gold-light);
  box-shadow: 0 0 18px var(--gold);
}

.bpm-number {
  text-align: center;
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  color: var(--gold);
  line-height: 1;
  margin-bottom: .5rem;
}
.bpm-label {
  text-align: center;
  font-size: .75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: .75rem;
}

.bpm-slider {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 3px;
  background: var(--navy-hover);
  outline: none;
  cursor: pointer;
  margin-bottom: .6rem;
}
.bpm-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--gold);
  cursor: pointer;
  box-shadow: 0 0 6px rgba(201,168,76,.4);
}
.bpm-slider::-moz-range-thumb {
  width: 18px; height: 18px;
  border: none;
  border-radius: 50%;
  background: var(--gold);
  cursor: pointer;
}

.bpm-nudge {
  display: flex;
  gap: .4rem;
  margin-bottom: .9rem;
  justify-content: center;
}
.bpm-nudge button {
  flex: 1;
  background: var(--navy-hover);
  border: 1px solid rgba(201,168,76,.15);
  border-radius: var(--radius-sm);
  color: var(--white-dim);
  cursor: pointer;
  padding: .35rem 0;
  font-size: .85rem;
  font-family: inherit;
  transition: background var(--transition), color var(--transition);
}
.bpm-nudge button:hover { background: var(--navy-card); color: var(--gold); }

.subdivision-row {
  display: flex;
  gap: .5rem;
  margin-bottom: .9rem;
  justify-content: center;
}
.sub-btn {
  flex: 1;
  background: var(--navy-dark);
  border: 1px solid var(--navy-hover);
  border-radius: var(--radius-sm);
  color: var(--muted);
  cursor: pointer;
  padding: .45rem 0;
  font-size: 1.1rem;
  transition: all var(--transition);
}
.sub-btn.active {
  background: rgba(201,168,76,.15);
  border-color: var(--gold);
  color: var(--gold);
}

/* ── Accordeur ── */
#panel-tuner { left: 1.5rem; }

.tuner-note-display {
  text-align: center;
  margin-bottom: .5rem;
}
.tuner-note-name {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  color: var(--gold);
  line-height: 1;
}
.tuner-note-octave {
  font-size: 1.3rem;
  color: var(--muted);
  vertical-align: super;
}
.tuner-freq {
  text-align: center;
  font-size: .85rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.tuner-meter {
  background: var(--navy-dark);
  border-radius: var(--radius-sm);
  padding: .75rem .5rem .5rem;
  margin-bottom: .75rem;
  position: relative;
  overflow: hidden;
}
.meter-ticks {
  display: flex;
  justify-content: space-between;
  font-size: .7rem;
  color: var(--muted);
  margin-bottom: .4rem;
  padding: 0 2px;
}
.meter-bar-track {
  height: 8px;
  background: var(--navy-hover);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}
.meter-bar-fill {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 4px;
  background: var(--gold);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: left .08s ease, background .15s;
}
.meter-bar-fill.in-tune  { background: var(--success); }
.meter-bar-fill.out-tune { background: var(--error); }

.tuner-cents {
  text-align: center;
  font-size: .82rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

/* ── Page login ── */
body.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: radial-gradient(ellipse at 60% 20%, #1a2d47 0%, var(--navy-dark) 70%);
}

.login-container {
  width: 100%;
  max-width: 420px;
  padding: 2.5rem;
  background: var(--navy-card);
  border: 1px solid rgba(201,168,76,.2);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.login-logo {
  text-align: center;
  margin-bottom: 2rem;
}
.login-logo h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: var(--gold);
  letter-spacing: .02em;
}
.login-logo p {
  font-size: .85rem;
  color: var(--muted);
  margin-top: .3rem;
  text-transform: uppercase;
  letter-spacing: .1em;
}

/* ── Dashboard ── */
.page-title {
  font-size: 1.8rem;
  color: var(--gold);
  margin-bottom: .3rem;
}
.page-subtitle {
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.filter-bar {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  align-items: center;
}
.filter-bar label { color: var(--muted); font-size: .9rem; }

.partition-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

.partition-card {
  background: var(--navy-card);
  border: 1px solid rgba(201,168,76,.12);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
  transition: border-color var(--transition), transform var(--transition);
}
.partition-card:hover {
  border-color: rgba(201,168,76,.4);
  transform: translateY(-2px);
}
.partition-card-icon {
  font-size: 2rem;
  line-height: 1;
}
.partition-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  color: var(--white);
  line-height: 1.3;
}
.partition-card-meta {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}
.badge {
  display: inline-block;
  padding: .2rem .55rem;
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 600;
}
.badge-instrument {
  background: rgba(201,168,76,.15);
  color: var(--gold);
}
.badge-level {
  background: rgba(138,154,181,.15);
  color: var(--muted);
}
.partition-card .btn { margin-top: auto; }

.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--muted);
  grid-column: 1 / -1;
}
.empty-state-icon { font-size: 3rem; margin-bottom: 1rem; }

/* ── Visionneuse PDF ── */
.viewer-toolbar {
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0;
  height: 52px;
  background: var(--navy-dark);
  border-bottom: 1px solid rgba(201,168,76,.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem;
  z-index: 900;
  gap: .75rem;
}
.viewer-nav {
  display: flex;
  align-items: center;
  gap: .5rem;
}
.viewer-page-info {
  font-size: .9rem;
  color: var(--muted);
  white-space: nowrap;
}
.viewer-canvas-wrap {
  padding-top: calc(var(--header-h) + 52px + 1.5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding-bottom: 2rem;
}
#pdf-canvas {
  max-width: 100%;
  box-shadow: var(--shadow);
  border-radius: 4px;
}
.viewer-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding-top: 4rem;
  color: var(--muted);
}
.spinner {
  width: 40px; height: 40px;
  border: 3px solid var(--navy-hover);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Admin ── */
.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.stat-card {
  background: var(--navy-card);
  border: 1px solid rgba(201,168,76,.12);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
}
.stat-card-value {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  color: var(--gold);
  line-height: 1;
  margin-bottom: .25rem;
}
.stat-card-label { color: var(--muted); font-size: .9rem; }

.admin-nav {
  display: flex;
  gap: .75rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

/* ── Tables ── */
.table-wrap { overflow-x: auto; border-radius: var(--radius); }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: .92rem;
}
th {
  background: var(--navy-dark);
  color: var(--muted);
  font-weight: 600;
  text-align: left;
  padding: .75rem 1rem;
  white-space: nowrap;
  text-transform: uppercase;
  font-size: .78rem;
  letter-spacing: .06em;
}
td {
  padding: .85rem 1rem;
  border-bottom: 1px solid rgba(201,168,76,.06);
  vertical-align: middle;
}
tr:last-child td { border-bottom: none; }
tbody tr { background: var(--navy-card); transition: background var(--transition); }
tbody tr:hover { background: var(--navy-hover); }

.table-actions { display: flex; gap: .5rem; align-items: center; }

/* ── Modale / card formulaire ── */
.form-card {
  background: var(--navy-card);
  border: 1px solid rgba(201,168,76,.15);
  border-radius: var(--radius);
  padding: 1.5rem;
  max-width: 560px;
  margin-bottom: 2rem;
}
.form-card h2 {
  font-size: 1.15rem;
  color: var(--gold);
  margin-bottom: 1.25rem;
}

/* ── Accordion partitions assignées ── */
.assign-student-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.assign-card {
  background: var(--navy-card);
  border: 1px solid rgba(201,168,76,.12);
  border-radius: var(--radius);
  padding: 1rem;
}
.assign-card-name {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  color: var(--white);
  margin-bottom: .75rem;
}
.assign-list { list-style: none; }
.assign-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .35rem 0;
  border-bottom: 1px solid rgba(201,168,76,.06);
  font-size: .88rem;
  color: var(--white-dim);
}
.assign-list li:last-child { border-bottom: none; }

/* ── Boutique ── */
.shop-card { position: relative; }
.shop-price {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: var(--gold);
  margin-top: auto;
  padding-top: .25rem;
}
.badge-success {
  background: rgba(76,175,125,.15);
  color: var(--success);
}

/* ── Fix panel flottant : stabilité totale ── */
.floating-panel {
  /* Empêcher tout mouvement involontaire */
  will-change: top, left;
}
/* Assurer que le bouton fermer est toujours cliquable et ne déclenche pas le drag */
.panel-close {
  position: relative;
  z-index: 10;
  min-width: 44px;
  min-height: 44px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  cursor: pointer !important; /* override du grab du parent */
  flex-shrink: 0;
}

/* ── Navigation publique ── */
.pub-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 2rem;
  transition: background .3s, box-shadow .3s, padding .3s;
}
.pub-nav.scrolled,
.pub-nav:not([style]) {
  background: var(--navy-dark);
  box-shadow: 0 2px 20px rgba(0,0,0,.4);
  border-bottom: 1px solid rgba(201,168,76,.15);
  padding: 0 2rem;
}
.pub-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  max-width: 1200px;
  margin: 0 auto;
}
.pub-logo { text-decoration: none; }
.pub-logo-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: var(--gold);
  letter-spacing: .02em;
}
.pub-nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}
.pub-nav-links a {
  color: var(--white-dim);
  font-size: .95rem;
  transition: color var(--transition);
}
.pub-nav-links a:hover { color: var(--gold); }

.pub-nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
}
.pub-nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white-dim);
  border-radius: 2px;
  transition: var(--transition);
}

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 25% 50%, rgba(26,45,71,.9) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 10%, rgba(201,168,76,.08) 0%, transparent 50%),
    var(--navy-dark);
  padding: 120px 2rem 3rem;
}

.hero-notes { position: absolute; inset: 0; pointer-events: none; }
.hero-note {
  position: absolute;
  left: var(--x);
  top: var(--y);
  font-size: var(--s, 2rem);
  color: var(--gold);
  opacity: .07;
  animation: floatNote 7s var(--d, 0s) ease-in-out infinite;
}
@keyframes floatNote {
  0%, 100% { transform: translateY(0) rotate(-5deg); }
  50%       { transform: translateY(-28px) rotate(5deg); }
}

.hero-content {
  text-align: center;
  max-width: 720px;
  position: relative;
  z-index: 2;
}
.hero-location {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .85rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 1.5rem;
}
.hero-location-dot {
  width: 8px; height: 8px;
  background: var(--gold);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201,168,76,.5); }
  50%       { box-shadow: 0 0 0 8px rgba(201,168,76,0); }
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 1.25rem;
}
.hero-title em {
  font-style: italic;
  color: var(--gold);
}
.hero-subtitle {
  font-size: 1.15rem;
  color: var(--white-dim);
  line-height: 1.7;
  margin-bottom: 2rem;
  font-weight: 300;
}
.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-lg { padding: .8rem 2rem; font-size: 1.05rem; }

.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--muted);
  animation: bounce 2s ease-in-out infinite;
  font-size: 1.5rem;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ── Animations scroll ── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: none;
}

/* ── Sections génériques ── */
.section {
  padding: 6rem 2rem;
}
.section-alt {
  background: rgba(0,0,0,.25);
}
.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.section-label {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--gold);
  margin-bottom: .75rem;
}
.section-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: var(--white);
  margin-bottom: 1rem;
  line-height: 1.2;
}
.section-subtitle {
  color: var(--white-dim);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
  max-width: 600px;
}

/* ── Cours ── */
.cours-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.cours-card {
  background: var(--navy-card);
  border: 1px solid rgba(201,168,76,.12);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  transition-delay: var(--delay, 0s);
}
.cours-card:hover {
  border-color: rgba(201,168,76,.35);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,.3);
}
.cours-icon {
  width: 80px; height: 80px;
  color: var(--gold);
  margin-bottom: 1.25rem;
}
.cours-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: .75rem;
}
.cours-levels {
  display: flex;
  gap: .4rem;
  flex-wrap: wrap;
  margin-bottom: .9rem;
}
.cours-desc {
  color: var(--white-dim);
  font-size: .95rem;
  line-height: 1.65;
}

/* ── Bio ── */
.bio-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 4rem;
  align-items: start;
}
.bio-intro {
  font-size: 1.1rem;
  color: var(--white-dim);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.timeline { margin-top: 1rem; }
.timeline-item {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(201,168,76,.1);
}
.timeline-item:last-child { border-bottom: none; }
.timeline-year {
  font-family: 'Playfair Display', serif;
  color: var(--gold);
  font-size: .95rem;
  padding-top: .2rem;
  font-weight: 700;
  white-space: nowrap;
}
.timeline-content {
  color: var(--white-dim);
  font-size: .95rem;
  line-height: 1.65;
}
.timeline-content strong { color: var(--white); }

.bio-decoration {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}
.bio-deco-note {
  font-size: 8rem;
  color: var(--gold);
  opacity: .08;
  line-height: 1;
  animation: floatNote 8s ease-in-out infinite;
}
.bio-deco-circle {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(201,168,76,.15);
}
.bio-deco-circle-1 { width: 280px; height: 280px; top: -20px; left: 50%; transform: translateX(-50%); }
.bio-deco-circle-2 { width: 200px; height: 200px; top: 20px;  left: 50%; transform: translateX(-50%); border-style: dashed; }

.bio-stats {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem;
  background: var(--navy-card);
  border: 1px solid rgba(201,168,76,.15);
  border-radius: var(--radius);
  position: relative;
  z-index: 2;
  margin-top: 3rem;
}
.bio-stat { text-align: center; flex: 1; }
.bio-stat-num {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: var(--gold);
  line-height: 1;
}
.bio-stat-label {
  font-size: .78rem;
  color: var(--muted);
  margin-top: .3rem;
  line-height: 1.3;
}

/* ── Zone d'intervention ── */
.zone-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  margin-top: 2rem;
}
.zone-map-visual {
  background: var(--navy-card);
  border: 1px solid rgba(201,168,76,.15);
  border-radius: var(--radius);
  height: 320px;
  position: relative;
  overflow: hidden;
}
.zone-lake {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 45%;
  background: linear-gradient(180deg, rgba(30,60,100,.4), rgba(15,40,80,.6));
  border-top: 2px solid rgba(100,150,200,.3);
}
.zone-lake-label {
  position: absolute;
  bottom: 18%;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(140,185,230,.5);
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.zone-dots { position: absolute; inset: 0; }
.zone-dot {
  position: absolute;
  left: var(--zx);
  top: var(--zy);
  transform: translate(-50%, -50%);
}
.zone-dot::before {
  content: '';
  display: block;
  width: 10px; height: 10px;
  background: var(--gold);
  border-radius: 50%;
  opacity: .7;
  transition: transform .2s, opacity .2s;
}
.zone-dot:hover::before { transform: scale(1.5); opacity: 1; }
.zone-dot-active::before { opacity: 1; box-shadow: 0 0 0 4px rgba(201,168,76,.3); }
.zone-dot-label {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: .72rem;
  color: var(--gold);
  opacity: 0;
  transition: opacity .2s;
  background: var(--navy-dark);
  padding: .1rem .4rem;
  border-radius: 4px;
}
.zone-dot:hover .zone-dot-label { opacity: 1; }

.zone-communes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 1rem;
}
.zone-region-title {
  font-size: .82rem;
  font-weight: 600;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: .5rem;
}
.zone-communes ul { list-style: none; }
.zone-communes li {
  color: var(--white-dim);
  font-size: .9rem;
  padding: .15rem 0;
}
.zone-communes li::before { content: '· '; color: var(--gold-dim); }
.zone-note {
  color: var(--muted);
  font-size: .88rem;
  font-style: italic;
  padding-top: .75rem;
  border-top: 1px solid rgba(201,168,76,.1);
}

/* ── Contact ── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 2.5rem;
  align-items: start;
}
.contact-form textarea.form-control { resize: vertical; min-height: 120px; }
.contact-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.contact-info-card {
  background: var(--navy-card);
  border: 1px solid rgba(201,168,76,.15);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.contact-info-card h3 {
  font-size: 1rem;
  color: var(--gold);
  margin-bottom: 1.25rem;
}
.contact-detail {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  margin-bottom: .9rem;
  font-size: .92rem;
  color: var(--white-dim);
}
.contact-icon { font-size: 1.1rem; flex-shrink: 0; }
.contact-detail a { color: var(--white-dim); }
.contact-detail a:hover { color: var(--gold); }
.contact-promise { display: flex; flex-direction: column; gap: .6rem; }
.contact-promise-item {
  font-size: .88rem;
  color: var(--white-dim);
}

/* ── Footer public ── */
.pub-footer {
  background: var(--navy-dark);
  border-top: 1px solid rgba(201,168,76,.1);
  padding: 2.5rem 2rem;
  text-align: center;
}
.pub-footer-inner { max-width: 900px; margin: 0 auto; }
.pub-footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: var(--gold);
  margin-bottom: 1rem;
}
.pub-footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.pub-footer-links a { color: var(--muted); font-size: .9rem; }
.pub-footer-links a:hover { color: var(--gold); }
.pub-footer-copy { color: var(--muted); font-size: .8rem; }

/* ── Responsive ── */
@media (max-width: 768px) {
  /* Header app */
  .site-header { padding: 0 1rem; }
  .logo-name    { font-size: 1.1rem; }
  .header-tool-btn span { display: none; }
  .header-tool-btn { padding: .4rem .6rem; }
  .header-username { display: none; }
  .page-content { padding-left: 1rem; padding-right: 1rem; }
  .floating-panel { width: calc(100vw - 2rem); }
  #panel-tuner, #panel-metronome { left: 1rem; right: 1rem; }

  /* Nav publique */
  .pub-nav-toggle { display: flex; }
  .pub-nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0; right: 0;
    background: var(--navy-dark);
    flex-direction: column;
    padding: 1rem 1.5rem 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid rgba(201,168,76,.15);
  }
  .pub-nav-links.open { display: flex; }

  /* Hero */
  .hero { padding-top: 100px; }
  .hero-ctas { flex-direction: column; align-items: center; }

  /* Sections */
  .section { padding: 4rem 1.25rem; }
  .bio-layout,
  .zone-layout,
  .contact-layout { grid-template-columns: 1fr; }
  .bio-visual { display: none; }
  .timeline-item { grid-template-columns: 1fr; gap: .25rem; }
  .zone-communes { grid-template-columns: 1fr 1fr; }
  .contact-form-row { grid-template-columns: 1fr; }
  .zone-map-visual { height: 200px; }
}
