/* =====================================================================
   ĀIO THE STUDIO — Design system
   Palette : beige / marron / blanc cassé / sauge (logo)
   Mobile-first, esprit application native premium.
   ===================================================================== */

:root {
  --logo-beige:  #D6C6B3;   /* fond exact du logo */
  --cream-bg:    #F6F1E9;
  --cream-soft:  #E8DDD0;
  --card:        #FCFAF6;
  --card-2:      #EFE7DC;
  --brown-900:   #2F2925;
  --brown-800:   #463C36;
  --brown-700:   #5E514A;
  --brown-500:   #776A63;   /* taupe exact du monogramme */
  --brown-300:   #B6A398;
  --sage:        #9A623F;   /* terre cuite exacte du wordmark */
  --sage-dark:   #75472F;
  --line:        #DDD2C6;
  --line-soft:   #EBE3D9;
  --danger:      #B4543F;
  --danger-bg:   #F5E2DC;
  --success:     #5E7A4F;
  --success-bg:  #E6EEDE;
  --warn:        #B08833;
  --warn-bg:     #F6EBD2;
  --info:        #5b6e7d;
  --info-bg:     #E2E9EE;
  --radius:      20px;
  --radius-sm:   10px;
  --shadow:      0 24px 64px -34px rgba(70,50,37,.38);
  --shadow-sm:   0 12px 30px -24px rgba(70,50,37,.34);
  --serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --sans: "DM Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

/* L'élément racine doit rester le conteneur de défilement natif : une valeur
   d'overflow sur `html` ou `body` empêche ici la navigation vers les ancres. */
html, body { margin: 0; padding: 0; width: 100%; max-width: 100%; }
html { scroll-behavior: smooth; }
img { max-width: 100%; }

body {
  font-family: var(--sans);
  background:
    radial-gradient(circle at 92% -10%, rgba(214,198,179,.42), transparent 34rem),
    var(--cream-bg);
  color: var(--brown-900);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 86px; /* place pour la barre de navigation basse */
  min-height: 100dvh;
}

a { color: var(--sage); text-decoration: none; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; color: var(--brown-900); margin: 0 0 .4em; letter-spacing: -.02em; text-wrap: balance; }
h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.2rem; }

.brand-title { font-family: var(--serif); letter-spacing: 2px; text-transform: uppercase; }

/* ---------- Mise en page ---------- */
.container { max-width: 1240px; margin: 0 auto; padding: 0 28px; }
@media (max-width: 380px) { .container { padding: 0 16px; } }
.page { padding: 18px 0 28px; }
.section { margin-bottom: 22px; }
.muted { color: var(--brown-500); }
.text-center { text-align: center; }
.small { font-size: .82rem; }
.mt-2{margin-top:8px}.mt-3{margin-top:14px}.mt-4{margin-top:22px}
.mb-2{margin-bottom:8px}.mb-3{margin-bottom:14px}.mb-4{margin-bottom:22px}

/* ---------- Barre supérieure ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(251,248,241,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px;
}
.topbar .tb-logo { font-family: var(--serif); font-size: 1.25rem; letter-spacing: 3px; text-transform: uppercase; color: var(--brown-900); }
.topbar .tb-logo small { display:block; font-size:.5rem; letter-spacing:4px; color: var(--sage); margin-top:-4px; }
.topbar .tb-actions { display: flex; align-items: center; gap: 12px; }

.bell { position: relative; font-size: 1.2rem; color: var(--brown-700); }
.bell .badge {
  position: absolute; top: -6px; right: -8px; background: var(--danger);
  color: #fff; font-size: .6rem; font-weight: 600; min-width: 16px; height: 16px;
  border-radius: 9px; display: flex; align-items: center; justify-content: center; padding: 0 4px;
}
.avatar-chip {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--sage); color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: .8rem; text-transform: uppercase;
}

/* ---------- Cartes ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: none;
  padding: 22px;
}
.card + .card { margin-top: 14px; }
.card-head { display:flex; align-items:center; justify-content:space-between; margin-bottom: 12px; }
.card-head h3 { margin: 0; }

.grid { display: grid; gap: 14px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 760px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---------- Statistiques ---------- */
.stat { background: var(--card); border:1px solid var(--line); border-radius: var(--radius-sm); padding: 16px; }
.stat .stat-num { font-family: var(--serif); font-size: 1.9rem; color: var(--brown-900); line-height:1; }
.stat .stat-lbl { font-size: .78rem; color: var(--brown-500); text-transform: uppercase; letter-spacing: .5px; margin-top:6px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--sans); font-weight: 600; font-size: .92rem;
  padding: 12px 20px; border-radius: 9px; border: 1px solid transparent;
  cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
  background: var(--sage); color: #FBF8F1; text-align: center;
}
.btn:active { transform: translateY(1px) scale(.985); }
.btn:hover { box-shadow: 0 12px 24px -16px rgba(117,71,47,.62); background: var(--sage-dark); }
.btn-block { display: flex; width: 100%; }
.btn-sage { background: var(--sage); }
.btn-outline { background: transparent; border-color: var(--brown-300); color: var(--brown-800); }
.btn-ghost { background: transparent; color: var(--brown-800); border:1px solid var(--line); }
.btn-ghost:hover, .btn-outline:hover { background: var(--card-2); color: var(--brown-900); border-color: var(--brown-300); box-shadow: none; }
.btn-danger { background: var(--danger); }
.btn-success { background: var(--success); }
.btn-sm { padding: 7px 14px; font-size: .8rem; }
.btn[disabled], .btn:disabled { opacity: .5; cursor: not-allowed; }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(154,98,63,.28);
  outline-offset: 3px;
}

/* ---------- Badges / pills ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 11px; border-radius: 999px; font-size: .72rem; font-weight: 600;
  letter-spacing: .3px; background: var(--card-2); color: var(--brown-700); border:1px solid var(--line);
}
.pill-success { background: var(--success-bg); color: var(--success); border-color: transparent; }
.pill-warn { background: var(--warn-bg); color: var(--warn); border-color: transparent; }
.pill-danger { background: var(--danger-bg); color: var(--danger); border-color: transparent; }
.pill-info { background: var(--info-bg); color: var(--info); border-color: transparent; }
.pill-sage { background: #F0E6DA; color: var(--sage-dark); border-color: transparent; }

/* ---------- Formulaires ---------- */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: .82rem; font-weight: 600; color: var(--brown-700); margin-bottom: 6px; }
.input, .select, .textarea {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: #fff; color: var(--brown-900);
  font-family: var(--sans); font-size: .95rem;
}
.input:focus, .select:focus, .textarea:focus { outline: 2px solid var(--sage); border-color: var(--sage); }
.textarea { min-height: 90px; resize: vertical; }
.help { font-size: .76rem; color: var(--brown-500); margin-top: 4px; }
.row { display: flex; gap: 12px; }
.row > * { flex: 1; }
@media (max-width: 520px){ .row { flex-direction: column; } }

.phone-control {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 8px;
}
.phone-control .input,
.phone-control .select { min-width: 0; }
.phone-control .phone-country { padding-left: 9px; padding-right: 22px; font-size: .84rem; }
.phone-control .phone-number { padding-left: 10px; padding-right: 10px; }
.registration-contact-row > .phone-field { flex: 1.3; }
.registration-contact-row > .birth-field { flex: .9; }

/* ---------- Messages flash ---------- */
.flash { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 14px; font-size: .9rem; font-weight: 500; }
.flash-success { background: var(--success-bg); color: var(--success); }
.flash-error { background: var(--danger-bg); color: var(--danger); }
.flash-info { background: var(--info-bg); color: var(--info); }
.flash-warning { background: var(--warn-bg); color: var(--warn); }

/* ---------- Tableaux ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--card); }
table.tbl { width: 100%; border-collapse: collapse; font-size: .88rem; }
table.tbl th {
  text-align: left; font-size: .68rem; letter-spacing: .6px; text-transform: uppercase;
  color: var(--brown-500); padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap;
}
table.tbl td { padding: 12px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
table.tbl tr:last-child td { border-bottom: none; }
table.tbl tbody tr:hover { background: var(--card-2); }

/* Liste clientes : deux actions lisibles sur la même ligne, sans débordement. */
.clients-table { min-width: 0; table-layout: fixed; }
.clients-table th,
.clients-table td { padding-left: 9px; padding-right: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.clients-table th:nth-child(1) { width: 15%; }
.clients-table th:nth-child(2) { width: 19%; }
.clients-table th:nth-child(3) { width: 14%; }
.clients-table th:nth-child(4) { width: 6%; }
.clients-table th:nth-child(5) { width: 7%; }
.clients-table th:nth-child(6) { width: 10%; }
.clients-table th:nth-child(7) { width: 6%; }
.clients-table th:nth-child(8) { width: 9%; }
.clients-table th:nth-child(9) { width: 14%; }
.clients-table td:nth-child(6),
.clients-table td:nth-child(7),
.clients-table .client-actions-cell { overflow: visible; text-overflow: clip; }
.client-row-actions { display: flex; align-items: center; gap: 5px; flex-wrap: nowrap; }
.client-row-actions form { display: inline-flex; margin: 0; }
.client-row-actions .client-list-action { min-height: 31px; padding: 6px 9px; font-size: .72rem; white-space: nowrap; }

@media (max-width: 680px) {
  .clients-table { table-layout: auto; }
  .clients-table th,
  .clients-table td { width: auto !important; white-space: normal; overflow: visible; }
  .client-row-actions { width: 100%; }
}

/* ---------- Carte de cours ---------- */
.class-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
}
.class-card .cc-img { height: 120px; background: var(--card-2) center/cover no-repeat; position: relative; }
.class-card .cc-time {
  position: absolute; left: 12px; bottom: 12px; background: rgba(56,42,28,.85); color: #fff;
  padding: 5px 11px; border-radius: 999px; font-size: .78rem; font-weight: 600;
}
.class-card .cc-body { padding: 14px; }
.class-card .cc-title { font-family: var(--serif); font-size: 1.15rem; margin-bottom: 4px; }
.class-card .cc-meta { font-size: .82rem; color: var(--brown-500); display: flex; flex-wrap: wrap; gap: 4px 12px; margin-bottom: 10px; }
.class-card .cc-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.seats { font-size: .78rem; color: var(--brown-700); font-weight: 600; }
.seats .bar { display:block; height:6px; background: var(--line); border-radius: 4px; margin-top:5px; overflow:hidden; }
.seats .bar i { display:block; height:100%; background: var(--sage); }

/* ---------- Liste planning (jour) ---------- */
.day-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.day-nav .day-label { font-family: var(--serif); font-size: 1.2rem; text-transform: capitalize; }
.chip-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; }
.chip-day {
  flex: 0 0 auto; padding: 8px 14px; border-radius: 999px; background: var(--card);
  border: 1px solid var(--line); font-size: .82rem; font-weight: 600; color: var(--brown-700); cursor: pointer;
}
.chip-day.active { background: var(--brown-800); color: #fff; border-color: var(--brown-800); }

/* ---------- Fiche client ---------- */
.profile-head { display: flex; gap: 16px; align-items: center; }
.profile-avatar {
  width: 64px; height: 64px; border-radius: 50%; background: var(--sage); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 1.4rem; font-weight: 600;
  font-family: var(--serif);
}
.kv { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line-soft); font-size: .88rem; }
.kv:last-child { border-bottom: none; }
.kv .k { color: var(--brown-500); }
.kv .v { font-weight: 600; color: var(--brown-900); }

/* ---------- Barre de navigation basse (style appli) ---------- */
.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  background: rgba(251,248,241,.96); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-around;
  padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
}
.bottom-nav a {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  font-size: .64rem; color: var(--brown-500); font-weight: 600; padding: 4px 0; border-radius: 12px;
}
.bottom-nav a .ic { font-size: 1.25rem; line-height: 1; }
.bottom-nav a.active { color: var(--brown-900); }
.bottom-nav a.active .ic { transform: translateY(-1px); }

/* ---------- Auth ---------- */
.auth-wrap { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; }
.auth-card { width: 100%; max-width: 400px; }
.auth-logo { text-align: center; margin-bottom: 22px; }
.auth-logo .a-main { font-family: var(--serif); font-size: 2.4rem; letter-spacing: 6px; color: var(--brown-900); }
.auth-logo .a-sub { font-size: .7rem; letter-spacing: 6px; color: var(--sage); text-transform: uppercase; }

/* ---------- Empty state ---------- */
.empty { text-align: center; padding: 36px 18px; color: var(--brown-500); }
.empty .emo { font-size: 2rem; display: block; margin-bottom: 8px; }

/* ---------- Divers ---------- */
.divider { height: 1px; background: var(--line); margin: 16px 0; border: none; }
.list-reset { list-style: none; padding: 0; margin: 0; }
.flex { display: flex; }
.between { justify-content: space-between; }
.items-center { align-items: center; }
.gap { gap: 10px; }
.wrap { flex-wrap: wrap; }
.tag-allowed { font-size:.72rem; color: var(--brown-500); }

/* Notifications dropdown / page */
.notif-item { padding: 12px 4px; border-bottom: 1px solid var(--line-soft); }
.notif-item.unread { background: var(--card-2); border-radius: 10px; padding: 12px; }
.notif-item .nt { font-weight: 600; font-size: .92rem; }
.notif-item .nb { font-size: .84rem; color: var(--brown-600); }
.notif-item .nd { font-size: .72rem; color: var(--brown-300); margin-top: 3px; }

/* ---------- Bannière d'installation (compacte, élégante) ---------- */
.install-banner {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  width: 320px; max-width: calc(100vw - 28px);
  background: var(--card); color: var(--brown-900);
  border: 1px solid var(--line); border-radius: 16px;
  padding: 14px; box-shadow: var(--shadow);
  display: none; align-items: center; gap: 12px;
  animation: ib-in .25s ease;
}
.install-banner[hidden] { display: none !important; }
.install-banner.show { display: flex; }
@keyframes ib-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.install-banner .ib-logo { width: 46px; height: 46px; border-radius: 12px; flex: 0 0 auto; box-shadow: var(--shadow-sm); }
.install-banner .ib-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.install-banner .ib-text strong { font-family: var(--serif); font-size: 1.02rem; }
.install-banner .ib-text span { font-size: .76rem; color: var(--brown-500); line-height: 1.3; }
.install-banner .ib-actions { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.install-banner .ib-close {
  background: none; border: none; color: var(--brown-300); font-size: 1.2rem;
  cursor: pointer; line-height: 1; padding: 2px 6px;
}
.install-banner .ib-close:hover { color: var(--brown-700); }
@media (max-width: 859px) {
  .install-banner { left: 12px; right: 12px; bottom: 92px; width: auto; }
}

/* =====================================================================
   STRUCTURE : sidebar (desktop) + contenu
   ===================================================================== */
.sidebar { display: none; }                 /* masquée par défaut (mobile) */
.app-main { width: 100%; }

.tb-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.tb-logo-link { display: inline-flex; align-items: center; }
.tb-logo-img { height: 30px; width: auto; display: block; }
.tb-title { font-family: var(--serif); font-size: 1.25rem; color: var(--brown-900); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-left: 4px; border-left: 1px solid var(--line); }
.tb-icon { position: relative; color: var(--brown-700); display: inline-flex; }
.tb-icon .badge {
  position: absolute; top: -6px; right: -8px; background: var(--danger); color: #fff;
  font-size: .6rem; font-weight: 600; min-width: 16px; height: 16px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center; padding: 0 4px;
}

.mobile-only  { display: inline-flex; }

/* ----- À partir de 980px : sidebar fixe à gauche, pas de barre basse ----- */
@media (min-width: 980px) {
  body { padding-bottom: 24px; }

  .sidebar {
    position: fixed; top: 0; left: 0; bottom: 0; width: 248px; z-index: 60;
    background: var(--card); border-right: 1px solid var(--line);
    padding: 22px 16px; display: flex; flex-direction: column; gap: 4px;
    overflow-y: auto;
  }
  .s-link { padding: 10px 14px; }   /* un peu plus compact pour 10 entrées */
  .s-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 4px 8px 18px; }
  .s-logo { width: 42px; height: 42px; border-radius: 11px; box-shadow: var(--shadow-sm); }
  .s-brand-name { font-family: var(--serif); font-size: 1.4rem; letter-spacing: 3px; color: var(--brown-900); line-height: 1; }
  .s-brand-sub { font-size: .66rem; letter-spacing: 1px; text-transform: uppercase; color: var(--sage); margin-top: 2px; }

  .s-nav { display: flex; flex-direction: column; gap: 4px; }
  .s-link {
    display: flex; align-items: center; gap: 13px; padding: 12px 14px;
    border-radius: 12px; color: var(--brown-700); font-weight: 600; font-size: .92rem;
    position: relative; transition: background .15s ease, color .15s ease;
  }
  .s-link:hover { background: var(--card-2); }
  .s-link.active { background: var(--brown-800); color: #FBF8F1; }
  .s-link.active .s-ic { color: #FBF8F1; }
  .s-ic { display: inline-flex; color: var(--sage-dark); }
  .s-link.active .s-ic { color: #FBF8F1; }
  .s-spacer { flex: 1; }
  .s-logout { color: var(--danger); }
  .s-logout .s-ic { color: var(--danger); }
  .s-badge {
    margin-left: auto; background: var(--danger); color: #fff; font-size: .62rem; font-weight: 700;
    min-width: 18px; height: 18px; border-radius: 9px; display: flex; align-items: center; justify-content: center; padding: 0 5px;
  }

  .app-main { margin-left: 248px; width: auto; }   /* largeur restante, pas 100% */
  .topbar { padding-left: 24px; padding-right: 24px; }
  .bottom-nav { display: none; }

  .mobile-only  { display: none; }
}

/* ---------- Utilitaires d'affichage responsive ---------- */
@media (max-width: 859px) {
  .mobile-hide { display: none !important; }
}
@media (min-width: 980px) {
  .desktop-hide { display: none !important; }
}

/* =====================================================================
   PAGE D'ACCUEIL PUBLIQUE (site vitrine)
   ===================================================================== */
body.landing { padding-bottom: 0; }

.site-nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 14px 24px;
  background: rgba(235,228,214,.85); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-brand { display: flex; align-items: center; gap: 10px; }
.site-brand-logo { width: 38px; height: 38px; border-radius: 10px; box-shadow: var(--shadow-sm); }
.site-brand span { font-family: var(--serif); font-size: 1.4rem; letter-spacing: 4px; text-transform: uppercase; color: var(--brown-900); line-height: 1; }
.site-brand small { display: block; font-size: .5rem; letter-spacing: 5px; color: var(--sage); margin-top: -2px; }
.site-links { display: flex; gap: 26px; }
.site-links a { color: var(--brown-700); font-weight: 600; font-size: .9rem; }
.site-links a:hover { color: var(--brown-900); }
.site-cta { display: flex; gap: 10px; align-items: center; }
@media (max-width: 760px) { .site-links { display: none; } .site-nav { padding: 12px 16px; } }

.hero { text-align: center; padding: 70px 20px 64px; background: radial-gradient(120% 90% at 50% 0%, var(--cream-soft), var(--cream-bg) 70%); }
.hero-inner { max-width: 760px; margin: 0 auto; }
.hero-logo { width: 84px; height: 84px; border-radius: 22px; box-shadow: var(--shadow); margin-bottom: 22px; }
.hero-title { font-size: clamp(2.1rem, 5vw, 3.4rem); line-height: 1.08; margin: 0 0 .3em; }
.hero-sub { font-size: 1.05rem; color: var(--brown-700); max-width: 560px; margin: 0 auto 28px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.site-section { padding: 60px 0; }
.site-section.alt { background: var(--card-2); }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 32px; }
.eyebrow { display: inline-block; font-size: .74rem; letter-spacing: 2.5px; text-transform: uppercase; color: var(--sage-dark); font-weight: 600; margin-bottom: 8px; }
.section-head h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin: 0 0 .2em; }

.pkg-card { display: flex; flex-direction: column; }
.pkg-name { font-family: var(--serif); font-size: 1.35rem; letter-spacing: 1px; }
.pkg-price { font-family: var(--serif); font-size: 1.6rem; color: var(--brown-800); margin: 14px 0; }
.pkg-card .btn { margin-top: auto; }

.step { text-align: center; }
.step-num {
  width: 46px; height: 46px; border-radius: 50%; margin: 0 auto 12px;
  background: var(--sage); color: #fff; font-family: var(--serif); font-size: 1.4rem;
  display: flex; align-items: center; justify-content: center;
}
.step h3 { margin-bottom: .3em; }

.site-footer { background: var(--cream-bg); color: var(--brown-800); text-align: center; padding: 28px 20px 22px; margin-top: 10px; border-top: 1px solid var(--line); }
.footer-brand { font-family: var(--serif); font-size: 1.6rem; letter-spacing: 4px; text-transform: uppercase; }

.footer-brand small { display: block; font-size: .5rem; letter-spacing: 5px; color: var(--brown-300); }
.site-footer .muted { color: #C9BCA6 !important; }
.site-footer a { color: #EBE4D6; text-decoration: underline; }

/* ---------- Page d'accueil : planning centré ---------- */
.container.narrow { max-width: 920px; }
.chip-row.centered { justify-content: center; flex-wrap: wrap; }
.planning-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.planning-grid .class-card { width: 300px; max-width: 100%; }
.site-footer .credit { margin-top: 8px; }
.site-footer .credit strong { color: #EBE4D6; }

/* ---------- Popup connexion / inscription ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(40,30,20,.5); backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center;
  padding: 18px; overflow: auto;
}
.modal-overlay[hidden] { display: none; }
.modal {
  position: relative; width: 100%; max-width: 420px;
  background: var(--card); border-radius: 20px; padding: 26px 24px 24px;
  box-shadow: var(--shadow); max-height: 94vh; overflow: auto;
  animation: ib-in .2s ease;
}
.modal-close {
  position: absolute; top: 12px; right: 14px;
  background: none; border: none; font-size: 1.7rem; line-height: 1;
  color: var(--brown-300); cursor: pointer;
}
.modal-close:hover { color: var(--brown-700); }
.modal .auth-logo { margin-bottom: 14px; }
.modal .auth-logo .a-main { font-size: 2rem; }

/* ---------- Logo image de la marque ---------- */
.auth-logo-img { height: 74px; width: auto; display: block; margin: 0 auto; }
.brand-logo-img { height: 40px; width: auto; display: block; }
.s-brand-logo-img { height: 48px; width: auto; display: block; }
.footer-logo-img { height: 70px; width: auto; display: inline-block; background: var(--cream-soft); padding: 10px 18px; border-radius: 14px; }
.tb-logo-img { height: 30px; width: auto; display: block; }

/* ---------- Encart d'installation iOS (Safari) ---------- */
.ios-install {
  position: fixed; left: 12px; right: 12px; bottom: 18px; z-index: 70;
  max-width: 380px; margin: 0 auto;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 14px 16px; box-shadow: var(--shadow); display: none;
  animation: ib-in .25s ease;
}
.ios-install.show { display: block; }
.ios-install[hidden] { display: none !important; }
.ios-install .ib-close { position: absolute; top: 8px; right: 12px; background: none; border: none; font-size: 1.4rem; line-height: 1; color: var(--brown-300); cursor: pointer; }
.ios-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.ios-head img { width: 34px; height: 34px; border-radius: 9px; box-shadow: var(--shadow-sm); }
.ios-head strong { font-family: var(--serif); font-size: 1.05rem; }
.ios-steps { margin: 6px 0 0; padding-left: 20px; font-size: .85rem; color: var(--brown-700); }
.ios-steps li { margin: 5px 0; }
.ios-share { display: inline-flex; vertical-align: -3px; color: var(--info); }

/* ---------- Badges carte de cours / âge / état ---------- */
.cc-flag {
  position: absolute; top: 12px; right: 12px;
  background: rgba(56,42,28,.85); color: #fff; padding: 3px 9px;
  border-radius: 999px; font-size: .68rem; font-weight: 600; letter-spacing: .3px;
}
.cc-flag.flag-danger { background: var(--danger); }
.cc-age { background: #EAE2D2; color: var(--brown-700); padding: 1px 8px; border-radius: 999px; font-size: .7rem; }
.class-card.is-muted { opacity: .72; }
.class-card { transition: transform .1s ease, box-shadow .15s ease; }
.class-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

/* Grande image sur la page détail d'un cours */
.cc-img-detail {
  position: relative; height: 210px;
  background: var(--card-2) center/cover no-repeat;
  border-top-left-radius: var(--radius); border-top-right-radius: var(--radius);
}
.cc-img-detail::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(40,30,20,.32), transparent 50%);
  border-top-left-radius: var(--radius); border-top-right-radius: var(--radius);
}
.cc-img-detail .cc-time {
  position: absolute;
  z-index: 2;
  left: 16px;
  right: auto;
  top: auto;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: calc(100% - 32px);
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(47,41,37,.86);
  color: #FCFAF6;
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
}

/* ---------- Menu utilisateur (site vitrine) ---------- */
.user-menu { position: relative; }
.user-menu-list {
  position: absolute; right: 0; top: calc(100% + 8px);
  background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; box-shadow: var(--shadow); min-width: 210px; padding: 6px; z-index: 80;
}
.user-menu-list[hidden] { display: none; }
.user-menu-list a { display: block; padding: 10px 12px; border-radius: 10px; color: var(--brown-800); font-weight: 600; font-size: .9rem; }
.user-menu-list a:hover { background: var(--card-2); }
.user-menu-list a.danger { color: var(--danger); }
#userMenuBtn { display: inline-flex; align-items: center; }

/* ---------- Tableaux en cartes sur mobile ---------- */
@media (max-width: 680px) {
  table.tbl-cards thead { display: none; }
  table.tbl-cards, table.tbl-cards tbody, table.tbl-cards tr, table.tbl-cards td { display: block; width: 100%; }
  table.tbl-cards tr { border: 1px solid var(--line); border-radius: 14px; margin-bottom: 10px; padding: 6px 12px; background: var(--card); }
  table.tbl-cards tr:hover { background: var(--card); }
  table.tbl-cards td { border: none !important; padding: 8px 2px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
  table.tbl-cards td::before { content: attr(data-label); font-size: .68rem; text-transform: uppercase; letter-spacing: .4px; color: var(--brown-500); font-weight: 700; flex: 0 0 auto; }
  table.tbl-cards td:last-child { justify-content: flex-start; flex-wrap: wrap; }
  table.tbl-cards td:last-child::before { display: none; }
  .tbl-cards-wrap { border: none; background: transparent; overflow: visible; }
}

/* ---------- Polish mobile général ---------- */
@media (max-width: 680px) {
  .container { padding: 0 20px; }       /* plus d'air sur les bords */
  .page { padding: 14px 0 26px; }
  h1 { font-size: 1.55rem; }
  h2 { font-size: 1.3rem; }
  .card { padding: 16px; border-radius: 16px; }
  .card-head { flex-wrap: wrap; gap: 8px; }
  .btn { padding: 11px 16px; }
  .btn-sm { padding: 8px 13px; }
  .day-label { font-size: 1.02rem; }
  .stat .stat-num { font-size: 1.6rem; }
  .topbar { padding: 10px 18px; }
  .tb-title { display: none; }          /* le logo suffit ; le titre est dans le contenu */
  .hero { padding: 48px 20px 44px; }
  .site-section { padding: 44px 0; }
  .site-nav { padding: 12px 18px; }
}

/* ---------- Tableur Séances (édition en ligne) ---------- */
.sessions-table { font-size: .9rem; }
.sessions-table th { white-space: nowrap; font-size: .72rem; text-transform: uppercase; letter-spacing: .4px; }
.sessions-table td { padding: 7px 8px; vertical-align: middle; }
.sessions-table .input,
.sessions-table .select { padding: 7px 9px; font-size: .85rem; height: auto; min-width: 0; }
.sessions-table input[type="date"] { width: 150px; }
.sessions-table input[type="time"] { width: 92px; }
.sessions-table input[name="capacity"] { width: 70px; }
.sessions-table input[name="level"] { width: 120px; }
.sessions-table .age-in { width: 56px; }
.sessions-table .select[name="coach_id"] { width: 138px; min-width: 138px; }
.sessions-table td:last-child { width: 1%; white-space: nowrap; }
.sessions-table .btn-icon { padding: 8px; line-height: 0; }
.sessions-table .btn-icon svg { display: block; }
.sessions-table tbody tr:hover { background: var(--card-2); }
@media (max-width: 680px) {
  .sessions-table .input,
  .sessions-table .select,
  .sessions-table input[type="date"],
  .sessions-table input[type="time"],
  .sessions-table input[name="capacity"],
  .sessions-table input[name="level"],
  .sessions-table .select[name="coach_id"] { width: 100%; max-width: none; }
  .sessions-table .age-in { width: 50%; }
}

/* =====================================================================
   IDENTITÉ ĀIO 2026 — déclinaison fidèle au logo fourni
   ===================================================================== */

/* Surfaces et composants partagés */
.grid > .card + .card { margin-top: 0; }
.input, .select, .textarea {
  border-radius: 9px;
  border-color: var(--line);
  background: rgba(252,250,246,.92);
  min-height: 46px;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--sage);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(154,98,63,.11);
}
.field label { letter-spacing: .015em; }
.stat {
  border: 0;
  border-top: 2px solid var(--sage);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  box-shadow: var(--shadow-sm);
}
.table-wrap { box-shadow: var(--shadow-sm); }
.class-card { border-radius: 18px; box-shadow: none; }
.class-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

/* Navigation de l'application connectée */
.topbar {
  min-height: 72px;
  background: rgba(252,250,246,.9);
  border-color: rgba(119,106,99,.16);
  backdrop-filter: blur(18px) saturate(120%);
}
.tb-logo-link {
  width: 68px;
  height: 46px;
  overflow: hidden;
  background: var(--logo-beige);
}
.tb-logo-img {
  width: 68px;
  height: auto;
  border-radius: 0 !important;
  mix-blend-mode: multiply;
}
.tb-title {
  font-size: 1.35rem;
  border-left-color: rgba(119,106,99,.25);
  padding-left: 16px;
}
.avatar-chip { border-radius: 10px; background: var(--brown-800); }
.bottom-nav {
  background: rgba(252,250,246,.95);
  border-top-color: rgba(119,106,99,.18);
  backdrop-filter: blur(18px);
}

@media (min-width: 980px) {
  body { padding-bottom: 30px; }
  .sidebar {
    width: 268px;
    padding: 22px 18px 18px;
    background: #EEE5DA;
    border-right: 1px solid rgba(119,106,99,.18);
  }
  .s-brand {
    align-items: flex-start;
    padding: 0 10px 24px;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(119,106,99,.18);
  }
  .s-brand-logo-img {
    width: 126px;
    height: auto;
    border-radius: 0 !important;
    mix-blend-mode: multiply;
  }
  .s-brand-sub {
    color: var(--sage-dark);
    font-size: .64rem;
    font-weight: 700;
    letter-spacing: .16em;
    margin-top: 3px;
  }
  .s-nav { gap: 2px; }
  .s-link {
    min-height: 44px;
    border-radius: 8px;
    color: var(--brown-700);
    font-size: .88rem;
    font-weight: 600;
    transition: color .2s ease, background .2s ease, transform .2s ease;
  }
  .s-link:hover { background: rgba(252,250,246,.72); transform: translateX(2px); }
  .s-link.active {
    background: rgba(154,98,63,.12);
    color: var(--sage-dark);
    box-shadow: inset 3px 0 0 var(--sage);
  }
  .s-link.active .s-ic { color: var(--sage-dark); }
  .app-main { margin-left: 268px; }
  .topbar { padding: 12px 32px; }
  .app-main > .container { max-width: 1180px; }
}

/* En-tête public — le logo devient une vraie signature de marque */
body.landing { background: var(--cream-bg); }
.site-nav {
  min-height: 84px;
  padding: 10px max(28px, calc((100vw - 1320px) / 2));
  background-color: #D6C6B3;
  background-image: none;
  border-bottom: 1px solid rgba(119,106,99,.24);
  backdrop-filter: none;
}
.site-brand { gap: 18px; color: var(--brown-900); }
.site-brand-logo-frame {
  display: grid;
  place-items: center;
  width: 96px;
  height: 64px;
  overflow: hidden;
  background-color: #D6C6B3;
}
.brand-logo-img {
  width: 96px;
  height: auto;
  display: block;
  border-radius: 0 !important;
  mix-blend-mode: normal;
}
.site-brand-note {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 35px;
  padding-left: 18px;
  border-left: 1px solid rgba(119,106,99,.28);
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.05;
  letter-spacing: .015em;
}
.site-brand-note small {
  display: block;
  margin-top: 5px;
  color: var(--sage);
  font-family: var(--sans);
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.site-links { gap: 34px; }
.site-links a {
  position: relative;
  color: var(--brown-700);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.site-links a::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 1px;
  background: var(--sage);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .25s ease;
}
.site-links a:hover { color: var(--brown-900); }
.site-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.site-cta { gap: 8px; }
.site-cta .btn-sm { min-height: 42px; padding-inline: 17px; }

/* Hero éditorial asymétrique */
.hero {
  position: relative;
  display: flex;
  align-items: stretch;
  min-height: 500px;
  padding: 0;
  overflow: hidden;
  text-align: left;
  background:
    radial-gradient(circle at 82% 15%, rgba(214,198,179,.72), transparent 31rem),
    linear-gradient(118deg, #F8F4ED 0%, #F4EEE6 56%, #E9DED1 100%);
}
.hero::before {
  content: '';
  position: absolute;
  top: 8%;
  left: -9rem;
  width: 19rem;
  height: 19rem;
  border: 1px solid rgba(119,106,99,.18);
  border-radius: 50%;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0,1.15fr) minmax(300px,.65fr);
  align-items: center;
  gap: clamp(30px,4vw,62px);
  width: min(1180px,100%);
  max-width: none;
  margin: 0 auto;
  padding: 42px 28px 48px;
}
.hero-copy { max-width: 690px; }
.hero-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  color: var(--sage-dark);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.hero-kicker i { width: 38px; height: 1px; background: currentColor; }
.hero-title {
  max-width: 690px;
  margin-bottom: 20px;
  font-size: clamp(2.7rem,3.1vw,3.5rem);
  font-weight: 600;
  line-height: .96;
  letter-spacing: -.035em;
}
.hero-title em {
  color: var(--brown-500);
  font-weight: 500;
}
.hero-sub {
  max-width: 56ch;
  margin: 0 0 24px;
  color: var(--brown-700);
  font-size: clamp(.94rem,1.1vw,1.02rem);
  line-height: 1.62;
  text-wrap: pretty;
}
.hero-actions { justify-content: flex-start; gap: 10px; }
.hero-actions .btn { min-height: 46px; padding-inline: 22px; }
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 25px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(119,106,99,.23);
  color: var(--brown-500);
  font-size: .73rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.hero-meta span { position: relative; }
.hero-meta span:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -14px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--sage);
}
.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 350px;
}
.hero-brand-image {
  display: block;
  width: min(390px,90%);
  height: auto;
  object-fit: contain;
}

/* Sections publiques */
.site-section {
  position: relative;
  padding: 108px 0 120px;
  border-top: 1px solid rgba(119,106,99,.13);
}
.site-section.alt { background: #ECE2D6; }
.section-head {
  max-width: 820px;
  margin: 0 0 48px;
  text-align: left;
}
.eyebrow {
  margin-bottom: 14px;
  color: var(--sage-dark);
  font-size: .7rem;
  letter-spacing: .22em;
}
.section-head h2 {
  margin-bottom: 12px;
  font-size: clamp(2.5rem,4.2vw,4.4rem);
  line-height: .98;
  letter-spacing: -.035em;
}
.section-head p { max-width: 54ch; font-size: 1rem; line-height: 1.7; }
.container.narrow { max-width: 1120px; }
.chip-row.centered { justify-content: flex-start; }
.chip-day {
  border-radius: 8px;
  background: transparent;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.chip-day:hover { border-color: var(--brown-300); background: rgba(252,250,246,.7); }
.chip-day.active { background: var(--brown-800); }
.planning-grid { justify-content: flex-start; gap: 22px; }
.planning-grid .class-card { width: min(340px,100%); }
.empty {
  min-height: 190px;
  border: 0;
  border-radius: 0;
  background: rgba(252,250,246,.74);
  box-shadow: inset 3px 0 0 var(--sage);
}
.empty .emo { filter: grayscale(1); opacity: .72; }

/* Forfaits : grille éditoriale, sans tours de cartes génériques */
#forfaits .grid-4 {
  grid-template-columns: repeat(4,1fr);
  gap: 0;
  border-top: 1px solid var(--brown-300);
  border-bottom: 1px solid var(--brown-300);
}
#forfaits .pkg-card {
  min-height: 340px;
  padding: 36px 28px 30px;
  border: 0;
  border-right: 1px solid rgba(119,106,99,.22);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-align: left;
  transition: background .25s ease, transform .25s ease;
}
#forfaits .pkg-card:last-child { border-right: 0; }
#forfaits .pkg-card:hover { background: rgba(252,250,246,.62); transform: translateY(-5px); }
#forfaits .pkg-name { font-size: 1.65rem; letter-spacing: -.01em; }
#forfaits .pkg-price { margin: auto 0 24px; padding-top: 30px; font-size: clamp(1.8rem,2.6vw,2.4rem); }
#forfaits .pkg-card .btn { align-self: stretch; }

/* Parcours en trois lignes */
#studio .grid-3 { display: block; }
#studio .step {
  display: grid;
  grid-template-columns: 90px minmax(200px,.75fr) 1.25fr;
  align-items: center;
  gap: 28px;
  padding: 28px 0;
  border: 0;
  border-top: 1px solid rgba(119,106,99,.28);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-align: left;
}
#studio .step:last-child { border-bottom: 1px solid rgba(119,106,99,.28); }
#studio .step-num {
  width: auto;
  height: auto;
  margin: 0;
  border-radius: 0;
  background: transparent;
  color: var(--sage);
  font-size: 2.7rem;
  font-style: italic;
}
#studio .step h3 { margin: 0; font-size: 1.55rem; }
#studio .step p { margin: 0; }

/* Footer et modales */
.site-footer {
  margin-top: 0;
  padding: 28px 24px 22px;
  border-top: 1px solid rgba(119,106,99,.2);
  background-color: #D6C6B3;
  background-image: none;
  color: var(--brown-900);
}
.site-footer p { margin: 0; }
.footer-brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 18px;
}
.footer-brand-logo-frame {
  display: grid;
  place-items: center;
  width: 104px;
  height: 69px;
  overflow: hidden;
  background-color: #D6C6B3;
}
.footer-logo-img {
  width: 104px;
  height: auto;
  padding: 0;
  border-radius: 0 !important;
  background: transparent;
  mix-blend-mode: normal;
}
.footer-brand-note {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 40px;
  padding-left: 18px;
  border-left: 1px solid rgba(119,106,99,.35);
  color: var(--brown-900);
  font-family: var(--serif);
  font-size: 1.15rem;
  line-height: 1.05;
  letter-spacing: .025em;
  text-align: left;
}
.footer-brand-note small {
  display: block;
  margin-top: 6px;
  color: var(--sage-dark);
  font-family: var(--sans);
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}
body.landing .site-footer .muted { color: var(--brown-700) !important; }
body.landing .site-footer .credit { margin-top: 6px; }
body.landing .site-footer .credit strong { color: var(--brown-900); }
.site-footer a { color: var(--sage-dark); text-underline-offset: 3px; }
.modal-overlay { background: rgba(47,41,37,.68); backdrop-filter: blur(10px); }
.modal {
  max-width: 460px;
  padding: 34px 32px 30px;
  border: 1px solid rgba(255,255,255,.26);
  border-radius: 24px;
  background: #FAF6F0;
  box-shadow: 0 40px 100px -35px rgba(28,22,18,.7);
}
.modal .auth-logo {
  display: grid;
  place-items: center;
  width: 168px;
  margin: 0 auto 22px;
  padding: 12px 16px 11px;
  box-sizing: border-box;
  overflow: visible;
  background-color: transparent;
}
.modal .auth-logo .auth-logo-img {
  display: block;
  width: 136px;
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: center;
  background-color: transparent;
  mix-blend-mode: normal;
}
.auth-logo-img {
  width: 126px;
  height: auto;
  border-radius: 0 !important;
  background: transparent;
  mix-blend-mode: normal;
}

/* Pages de connexion autonomes */
.auth-wrap {
  position: relative;
  min-height: 100dvh;
  padding: 52px 24px;
  overflow: hidden;
  background:
    radial-gradient(circle at 10% 12%, rgba(214,198,179,.78), transparent 25rem),
    linear-gradient(145deg,#F8F4ED,#EDE2D5);
}
.auth-wrap::before {
  content: '';
  position: absolute;
  right: -11rem;
  bottom: -15rem;
  width: 34rem;
  height: 34rem;
  border: 1px solid rgba(119,106,99,.24);
  border-radius: 50%;
}
.auth-card { position: relative; z-index: 1; max-width: 450px; }
.auth-card > .card { padding: 30px; box-shadow: var(--shadow); }
.auth-card > .auth-logo {
  display: grid;
  place-items: center;
  width: 168px;
  margin: 0 auto 28px;
  padding: 12px 16px 11px;
  box-sizing: border-box;
  overflow: visible;
  background-color: transparent;
}
.auth-card > .auth-logo .auth-logo-img {
  display: block;
  width: 136px;
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: center;
  background-color: transparent;
  mix-blend-mode: normal;
}

@media (max-width: 1080px) {
  .site-brand-note { display: none; }
  .hero-inner { grid-template-columns: minmax(0,1fr) minmax(270px,.66fr); gap: 30px; }
  .hero-visual { min-height: 370px; }
  .hero-brand-image { width: min(350px,88%); }
  #forfaits .grid-4 { grid-template-columns: repeat(2,1fr); }
  #forfaits .pkg-card:nth-child(2) { border-right: 0; }
  #forfaits .pkg-card:nth-child(-n+2) { border-bottom: 1px solid rgba(119,106,99,.22); }
}

@media (max-width: 760px) {
  .container { padding-inline: 20px; }
  .site-nav { min-height: 72px; padding: 8px 16px; gap: 10px; }
  .site-brand { gap: 0; }
  .site-brand-logo-frame { width: 76px; height: 50px; }
  .brand-logo-img { width: 76px; }
  .site-cta { gap: 6px; }
  .site-cta .btn-sm { min-height: 38px; padding: 8px 12px; font-size: .72rem; }
  .hero { min-height: auto; }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 44px 20px 52px;
  }
  .hero-kicker { margin-bottom: 16px; font-size: .6rem; letter-spacing: .13em; }
  .hero-kicker i { width: 24px; }
  .hero-title { font-size: clamp(2.45rem,11.5vw,3.15rem); line-height: .96; margin-bottom: 18px; }
  .hero-sub { font-size: .92rem; line-height: 1.58; margin-bottom: 20px; }
  .hero-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .hero-actions .btn { width: 100%; padding-inline: 12px; }
  .hero-meta { gap: 9px 18px; margin-top: 20px; padding-top: 14px; font-size: .61rem; }
  .hero-meta span:not(:last-child)::after { right: -11px; }
  .hero-visual { min-height: 210px; }
  .hero-brand-image { width: min(300px,78vw); }
  .site-section { padding: 74px 0 84px; }
  .section-head { margin-bottom: 36px; }
  .section-head h2 { font-size: clamp(2.5rem,13vw,3.5rem); }
  #forfaits .grid-4 { grid-template-columns: 1fr; border-bottom: 0; }
  #forfaits .pkg-card {
    min-height: 270px;
    padding: 28px 18px;
    border-right: 0;
    border-bottom: 1px solid rgba(119,106,99,.24);
  }
  #forfaits .pkg-card:nth-child(-n+2) { border-bottom: 1px solid rgba(119,106,99,.24); }
  #studio .step { grid-template-columns: 54px 1fr; gap: 16px; }
  #studio .step p { grid-column: 2; }
  #studio .step-num { font-size: 2.15rem; }
  #studio .step h3 { font-size: 1.35rem; }
  .site-footer { padding: 30px 18px 24px; }
  .modal { padding: 30px 22px 24px; }
}

@media (max-width: 430px) {
  .site-cta .btn-ghost { display: none; }
  .site-nav { justify-content: space-between; }
  .hero-inner { padding-top: 38px; }
  .hero-title { font-size: 2.6rem; }
  .hero-meta { display: grid; grid-template-columns: 1fr 1fr; }
  .hero-meta span::after { display: none; }
  .hero-visual { min-height: 185px; }
  .hero-brand-image { width: min(260px,76vw); }
  .auth-wrap { padding: 34px 18px; }
  .auth-card > .card { padding: 24px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
/* Sélecteur de cliente avec recherche (progressive enhancement). */
.client-search{position:relative}
.client-search-source{display:none!important}
.client-search-input{padding-right:42px;background-image:linear-gradient(45deg,transparent 50%,var(--brown-700) 50%),linear-gradient(135deg,var(--brown-700) 50%,transparent 50%);background-position:calc(100% - 18px) 50%,calc(100% - 13px) 50%;background-size:5px 5px,5px 5px;background-repeat:no-repeat}
.client-search-results{position:absolute;z-index:80;left:0;right:0;top:calc(100% + 6px);max-height:280px;overflow-y:auto;padding:6px;background:var(--card);border:1px solid var(--line);border-radius:12px;box-shadow:0 18px 38px rgba(56,42,28,.18)}
.client-search-results[hidden]{display:none}
.client-search-option{display:block;width:100%;padding:10px 11px;border:0;border-radius:8px;background:transparent;color:var(--brown-900);font:inherit;font-size:.86rem;line-height:1.35;text-align:left;cursor:pointer}
.client-search-option:hover,.client-search-option.is-active{background:var(--card-2);color:var(--brown-900)}
.client-search-empty{padding:11px;color:var(--brown-500);font-size:.8rem;text-align:center}
