/* =====================================================================
   Mon Photographe — thème visuel (CSS pur, par-dessus app.css)
   Indépendant du build Tailwind. Police + dégradés + ombres + animations.
   ===================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* =====================================================================
   Thème « Apple » clair — fond perlé, verre dépoli, accent bleu système.
   (Sauvegarde de l'ancien glass bleu→violet dans _private_backups/.)
   ===================================================================== */
:root {
    --mp-brand: #0071e3;          /* bleu système Apple */
    --mp-brand-2: #0071e3;
    --mp-grad: #0071e3;           /* aplat (plus de dégradé) */
    --mp-grad-hover: #0077ed;
    --mp-bg: #f5f5f7;             /* gris perlé Apple */
    --mp-card-shadow: 0 1px 3px rgba(0, 0, 0, .06), 0 8px 24px -12px rgba(0, 0, 0, .12);
    --mp-card-shadow-hover: 0 4px 10px rgba(0, 0, 0, .08), 0 18px 40px -16px rgba(0, 0, 0, .18);
}

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: -0.011em;
}

/* --- Couleurs de boutons absentes du CSS compilé (build Tailwind indisponible) --- */
.bg-red-600 { background-color: #dc2626; }
.bg-red-700 { background-color: #b91c1c; }
.bg-red-200 { background-color: #fecaca; }
.bg-green-700 { background-color: #15803d; }
button.bg-red-600:hover, a.bg-red-600:hover, .hover\:bg-red-700:hover { background-color: #b91c1c; }
button.bg-green-600:hover, a.bg-green-600:hover, .hover\:bg-green-700:hover { background-color: #15803d; }
button.bg-slate-800:hover, a.bg-slate-800:hover, .hover\:bg-slate-900:hover { background-color: #0f172a; }
.bg-amber-700 { background-color: #b45309; }
button.bg-amber-600:hover, a.bg-amber-600:hover, .hover\:bg-amber-700:hover { background-color: #b45309; }
.hover\:text-brand-600:hover { color: var(--color-brand-600, #1f48f5); }
.bg-amber-100 { background-color: #fef3c7; }
.hover\:bg-amber-100:hover { background-color: #fef3c7; }
.bg-red-50 { background-color: #fef2f2; }
.border-red-200 { border-color: #fecaca; }
.break-all { word-break: break-all; }
.mp-cron { background: #0f172a; color: #e2e8f0; }

/* Zone de glisser-déposer (upload photos) */
.mp-drop { transition: border-color .15s, background-color .15s; }
.mp-drop-over { border-color: #0071e3 !important; background-color: #eaf4fe; }

/* Utilitaires complémentaires (build Tailwind indisponible) */
.overflow-auto { overflow: auto; }
.mp-scroll-box { max-height: 12rem; }
.space-y-0\.5 > :not([hidden]) ~ :not([hidden]) { margin-top: .125rem; }

/* Visionneuse plein écran (album) — indépendante du build Tailwind */
.mp-viewer { position: fixed; inset: 0; z-index: 60; display: none; align-items: center; justify-content: center; background: rgba(0, 0, 0, .92); }
.mp-viewer.is-open { display: flex; }
.mp-viewer img { max-height: 88vh; max-width: 88vw; object-fit: contain; border-radius: 6px; box-shadow: 0 24px 70px rgba(0, 0, 0, .6); }
.mp-viewer-close { position: absolute; top: 14px; right: 20px; font-size: 1.9rem; line-height: 1; color: rgba(255, 255, 255, .85); background: none; border: 0; cursor: pointer; }
.mp-viewer-close:hover { color: #fff; }
.mp-viewer-nav { position: absolute; top: 50%; transform: translateY(-50%); font-size: 2.6rem; line-height: 1; color: rgba(255, 255, 255, .7); background: none; border: 0; cursor: pointer; padding: 10px 16px; }
.mp-viewer-nav:hover { color: #fff; }
.mp-viewer-prev { left: 6px; }
.mp-viewer-next { right: 6px; }
.mp-viewer-caption { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); background: rgba(0, 0, 0, .6); color: rgba(255, 255, 255, .92); padding: 5px 16px; border-radius: 999px; font-size: .85rem; }

/* --- Utilitaires absents du CSS compilé (incitation upgrade / x-plan-gate) --- */
.opacity-40 { opacity: .4; }
.pointer-events-none { pointer-events: none; }
.select-none { -webkit-user-select: none; user-select: none; }

h1, h2, h3 { letter-spacing: -0.022em; }
h1 { font-weight: 600; }

/* --- En-tête « Large Title » réutilisable (style iOS) --- */
.mp-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.mp-eyebrow { font-size: 13px; font-weight: 500; color: #0071e3; margin: 0 0 4px; letter-spacing: -.01em; }
.mp-largetitle { font-size: clamp(26px, 4vw, 34px); font-weight: 700; letter-spacing: -.035em; line-height: 1.02; color: #1d1d1f; margin: 0; }
.mp-largetitle-sub { font-size: 14px; color: #86868b; margin: 8px 0 0; letter-spacing: -.01em; }
.mp-pill-cta { display: inline-flex; align-items: center; gap: 7px; background: #0071e3; color: #fff; border-radius: 980px; padding: 11px 20px; font-size: 14px; font-weight: 500; letter-spacing: -.01em; text-decoration: none; white-space: nowrap; transition: background .15s ease, transform .12s ease; }
.mp-pill-cta:hover { background: #0077ed; }
.mp-pill-cta:active { transform: scale(.97); }
.mp-back { display: inline-flex; align-items: center; gap: 3px; font-size: 14px; font-weight: 500; color: #0071e3; text-decoration: none; letter-spacing: -.01em; margin-bottom: 8px; }
.mp-back:hover { text-decoration: underline; }
.mp-back i { font-size: 18px; margin-left: -4px; }
/* En-tête du chrome : titre plus discret façon barre d'outils macOS */
.mp-header h1 { font-size: 17px; font-weight: 600; letter-spacing: -.02em; }

/* --- Fond perlé Apple, aplat (plus de mesh coloré) --- */
body.bg-slate-50,
body.bg-slate-100,
body.bg-slate-200 {
    background: var(--mp-bg) !important;
    background-attachment: fixed;
}

/* --- Cartes : blanches, coins très arrondis, ombre ultra-douce, pas de bordure dure --- */
.shadow-sm { box-shadow: var(--mp-card-shadow) !important; }
.rounded-2xl { border-radius: 1.1rem; }
.rounded-xl { border-radius: .9rem; }
.bg-white.border, .rounded-2xl.border, .rounded-xl.border { border-color: rgba(0, 0, 0, .06) !important; }
/* Cartes blanches à ombre : on retire la bordure dure, l'ombre douce suffit (plus Apple). */
.bg-white.border.shadow-sm, .bg-white.shadow-sm.rounded-2xl, .bg-white.shadow-sm.rounded-xl { border-color: transparent !important; }
a.rounded-2xl, .group.rounded-2xl { transition: transform .2s cubic-bezier(.25,.46,.45,.94), box-shadow .2s ease, border-color .2s ease; }
a.rounded-2xl:hover { transform: translateY(-2px); box-shadow: var(--mp-card-shadow-hover); border-color: rgba(0, 0, 0, .08); }

/* --- Boutons primaires : aplat bleu système, forme « pill », survol doux --- */
.bg-brand-600 { background-image: none; background-color: var(--mp-grad); }
.bg-brand-700 { background-image: none; background-color: var(--mp-grad-hover); }
a.bg-brand-600, button.bg-brand-600 {
    border-radius: 980px;
    box-shadow: none;
    transition: background-color .15s ease, transform .12s ease;
}
a.bg-brand-600:hover, button.bg-brand-600:hover {
    background-color: var(--mp-grad-hover);
    transform: none;
    filter: none;
}
a.bg-brand-600:active, button.bg-brand-600:active { transform: scale(.97); }
button.bg-green-600, a.bg-green-600 { border-radius: 980px; transition: filter .15s ease; }
button.bg-green-600:hover, a.bg-green-600:hover { filter: brightness(1.04); }
button.bg-red-600, a.bg-red-600, button.bg-slate-800, a.bg-slate-800 { border-radius: 980px; }

/* --- Barre latérale : verre dépoli, item actif en aplat bleu, icônes Tabler --- */
.mp-sidebar { background: rgba(250, 250, 252, .82); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-right: .5px solid rgba(0, 0, 0, .07); }
.mp-sidebar nav a { border-radius: 9px; font-weight: 500; padding: 7px 10px; gap: 11px; color: #1d1d1f; transition: background .15s ease, color .15s ease; }
.mp-sidebar nav a:hover { background: rgba(0, 0, 0, .05); }
.mp-sidebar nav a.bg-brand-50 {
    background: var(--mp-brand) !important;
    color: #fff !important;
    box-shadow: none;
}
.mp-sidebar nav a.bg-brand-50 * { color: #fff !important; }
.mp-sidebar nav p { font-size: 11px !important; font-weight: 600; letter-spacing: .03em; color: #a1a1a6 !important; text-transform: uppercase; padding: 14px 10px 4px !important; margin: 0; }
.mp-nav-ico { display: inline-flex; align-items: center; justify-content: center; width: 22px; font-size: 18px; color: #6e6e73; flex-shrink: 0; }
/* Icônes Tabler inline (boutons, titres) : alignement vertical propre */
button .ti, a .ti, h2 .ti, h3 .ti, summary .ti, label .ti, .mp-qtitle .ti { vertical-align: -.125em; }

/* --- Hero album (vitrine cinématographique) --- */
.mp-hero { position: relative; border-radius: 22px; overflow: hidden; aspect-ratio: 16 / 6; min-height: 240px; display: flex; flex-direction: column; justify-content: space-between; background-color: #241820; background-size: cover; background-position: center; box-shadow: 0 12px 44px -14px rgba(0, 0, 0, .5); }
.mp-hero-bottom { position: relative; z-index: 2; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 0 24px 22px; }
.mp-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.30) 0%, rgba(0,0,0,0) 28%, rgba(0,0,0,.34) 62%, rgba(0,0,0,.82) 100%); }
.mp-hero-top { position: relative; z-index: 2; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 16px 18px; }
.mp-hero-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.mp-hero-pill { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.18); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); color: #fff; font-size: 12px; font-weight: 500; border-radius: 980px; padding: 5px 12px; }
.mp-hero-pill.is-pub { background: rgba(52,199,89,.92); }
.mp-hero-actions { display: flex; gap: 8px; flex-shrink: 0; flex-wrap: wrap; justify-content: flex-end; }
.mp-glass-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; background: rgba(255,255,255,.16); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 0; color: #fff; font-size: 13px; font-weight: 500; border-radius: 980px; padding: 0 16px; cursor: pointer; text-decoration: none; transition: background .15s ease, transform .12s ease; white-space: nowrap; line-height: 1; }
.mp-glass-btn:hover { background: rgba(255,255,255,.30); }
.mp-glass-btn:active { transform: scale(.96); }
.mp-glass-btn.is-icon { width: 36px; padding: 0; }
.mp-glass-btn.is-danger:hover { background: rgba(255,59,48,.9); }
.mp-hero-body { position: relative; z-index: 2; min-width: 0; flex: 1 1 auto; padding: 0; }
.mp-hero-eyebrow { margin: 0 0 6px; font-size: 13px; font-weight: 600; color: rgba(255,255,255,.78); letter-spacing: .08em; text-transform: uppercase; }
.mp-hero-title { margin: 0; font-size: clamp(24px, 4.4vw, 42px); font-weight: 700; letter-spacing: -.035em; line-height: 1.04; color: #fff; text-shadow: 0 2px 24px rgba(0,0,0,.45); overflow-wrap: anywhere; }
.mp-hero-meta { margin-top: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; color: rgba(255,255,255,.92); font-size: 14px; }
.mp-hero-meta span { display: inline-flex; align-items: center; gap: 6px; min-width: 0; max-width: 100%; }
@media (max-width: 640px) {
    .mp-hero { aspect-ratio: auto; min-height: 300px; }
    .mp-hero-bottom { padding: 0 16px 16px; gap: 10px; }
    .mp-hero-title { font-size: 23px; }
    .mp-hero-meta { margin-top: 10px; font-size: 12.5px; gap: 5px 14px; }
    .mp-glass-btn span.lbl { display: none; }
    .mp-glass-btn { padding: 0; width: 36px; }
}

/* --- Bande d'aperçu sous le hero --- */
.mp-preview-strip { margin-top: 14px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.mp-preview-tile { position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden; display: block; box-shadow: 0 1px 3px rgba(0,0,0,.06), 0 8px 20px -12px rgba(0,0,0,.25); }
.mp-preview-tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.mp-preview-tile:hover img { transform: scale(1.05); }
.mp-preview-more { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; background: #0071e3; color: #fff; text-decoration: none; font-weight: 600; transition: background .15s ease; }
.mp-preview-more:hover { background: #0077ed; }
.mp-preview-more i { font-size: 22px; }
.mp-preview-more span { font-size: 13px; }
@media (max-width: 900px) { .mp-preview-strip { grid-template-columns: repeat(3, 1fr); } }
.mp-hero-cta { margin-top: 14px; display: flex; gap: 12px; flex-wrap: wrap; }
.mp-cta-fill { flex: 1; min-width: 200px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: #0071e3; color: #fff; border: 0; border-radius: 14px; padding: 14px; font-size: 15px; font-weight: 500; cursor: pointer; text-decoration: none; transition: background .15s ease, transform .12s ease; }
.mp-cta-fill:hover { background: #0077ed; }
.mp-cta-fill:active { transform: scale(.99); }
.mp-cta-light { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: #fff; color: #1d1d1f; border: 0; border-radius: 14px; padding: 14px 22px; font-size: 15px; font-weight: 500; cursor: pointer; text-decoration: none; box-shadow: 0 1px 3px rgba(0,0,0,.08), 0 6px 16px -10px rgba(0,0,0,.3); transition: transform .12s ease; }
.mp-cta-light:active { transform: scale(.99); }

/* --- Petites puces d'action (chips) façon Apple --- */
.mp-chip { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 12px; background: #ececef; border: 0; border-radius: 980px; font-size: 12px; font-weight: 500; color: #1d1d1f; cursor: pointer; list-style: none; text-decoration: none; transition: background .15s ease, transform .12s ease; }
.mp-chip::-webkit-details-marker { display: none; }
.mp-chip::marker { content: ''; }
.mp-chip:hover { background: #e2e2e7; }
.mp-chip:active { transform: scale(.96); }
.mp-chip .ti { font-size: 14px; color: #6e6e73; }
.mp-chip.is-danger { color: #d70015; }
.mp-chip.is-danger .ti { color: #d70015; }
.mp-chip.is-danger:hover { background: #fde8e7; }
/* Rangée d'actions d'un lien : puces alignées ; une section dépliée passe en pleine largeur dessous */
.mp-link-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.mp-link-actions > details[open] { flex-basis: 100%; }

/* --- Sections repliables (details/summary) : pas d'affreux cadre de focus bleu --- */
details > summary { outline: none; }
details > summary:focus, details > summary:focus-visible { outline: none; box-shadow: none; }

/* --- Boutons de barre d'outils (secondaires, style Apple : fill gris doux) --- */
.mp-tbtn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 34px; padding: 0 14px; background: #ececef; border: 0; border-radius: 10px; font-size: 13px; font-weight: 500; color: #1d1d1f; cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .15s ease, transform .12s ease; }
.mp-tbtn:hover { background: #e2e2e7; }
.mp-tbtn:active { transform: scale(.97); }
.mp-tbtn .ti { font-size: 16px; color: #6e6e73; }
.mp-tbtn.is-danger { color: #d70015; }
.mp-tbtn.is-danger .ti { color: #d70015; }
.mp-tbtn.is-accent { background: #eaf4fe; color: #0071e3; }
.mp-tbtn.is-accent:hover { background: #dcecfd; }
.mp-tbtn.is-accent .ti { color: #0071e3; }
.mp-tbtn.is-on { background: #1d1d1f; color: #fff; }
.mp-tbtn.is-on .ti { color: #fff; }
.mp-tbtn.is-primary { background: #0071e3; color: #fff; }
.mp-tbtn.is-primary:hover { background: #0077ed; }
.mp-tbtn.is-primary .ti { color: #fff; }

/* --- Lignes de facture (saisie en colonnes, mobile-friendly) --- */
.inv-lines { margin-top: 12px; display: flex; flex-direction: column; gap: 14px; }
.inv-line {
    display: flex;
    gap: 18px;
    align-items: stretch;
    background: linear-gradient(145deg, rgba(255,255,255,.88), rgba(248,250,252,.72));
    border: 1px solid rgba(226,232,240,.95);
    border-radius: 26px;
    padding: 16px;
    box-shadow: 0 18px 48px rgba(15,23,42,.07), inset 0 1px 0 rgba(255,255,255,.9);
}
.inv-line-main { flex: 1 1 auto; min-width: 0; }
.inv-line-main .line-label { width: 100%; }
.inv-line-fields { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.inv-line-field { display: flex; flex-direction: column; }
.inv-line-field > span { font-size: 11px; font-weight: 800; letter-spacing: .04em; color: #94a3b8; margin-bottom: 5px; padding-left: 6px; }
.inv-line-field input {
    background: rgba(255,255,255,.82) !important;
    border-color: rgba(203,213,225,.82) !important;
    border-radius: 999px !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.88), 0 8px 22px rgba(15,23,42,.04) !important;
}
.inv-line-field input:focus {
    border-color: rgba(37,99,235,.55) !important;
    box-shadow: 0 0 0 4px rgba(37,99,235,.1), inset 0 1px 0 rgba(255,255,255,.9) !important;
}
.inv-line-side { display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 10px; flex-shrink: 0; min-width: 98px; }
.inv-line-total { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.15; white-space: nowrap; }
.inv-line-total .line-ttc { font-size: 18px; font-weight: 850; color: #0f172a; letter-spacing: -.02em; }
.inv-line-total .line-ht { font-size: 12px; color: #94a3b8; margin-top: 3px; }
.inv-line-del {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(248,250,252,.86);
    color: #94a3b8;
    border: 1px solid rgba(226,232,240,.9);
    cursor: pointer;
    font-size: 17px;
    box-shadow: 0 10px 24px rgba(15,23,42,.06);
    transition: background .15s, color .15s, transform .15s, box-shadow .15s;
}
.inv-line-del:hover { background: #fff1f2; color: #e11d48; transform: translateY(-1px); box-shadow: 0 12px 28px rgba(225,29,72,.12); }
@media (max-width: 760px) {
    .inv-line { flex-direction: column; }
    .inv-line-side { flex-direction: row-reverse; justify-content: space-between; align-items: center; min-width: 0; }
    .inv-line-total { align-items: flex-start; }
}

/* --- Actions de ligne (tableaux) : ghost discret, pastille grise au survol --- */
.mp-rowact { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 9px; border-radius: 8px; font-size: 12.5px; font-weight: 500; color: #494950; text-decoration: none; border: 0; background: transparent; cursor: pointer; white-space: nowrap; transition: background .15s ease, color .15s ease; }
.mp-rowact:hover { background: #ececef; color: #1d1d1f; }
.mp-rowact .ti { font-size: 15px; color: #86868b; }
.mp-rowact.is-accent { color: #0071e3; }
.mp-rowact.is-accent .ti { color: #0071e3; }
.mp-rowact.is-accent:hover { background: #eaf4fe; }
.mp-rowact.is-locked { color: #c2c2c9; cursor: default; }
.mp-rowact.is-locked:hover { background: transparent; color: #c2c2c9; }
.mp-rowact.is-danger { color: #d70015; }
.mp-rowact.is-danger .ti { color: #d70015; }
.mp-rowact.is-danger:hover { background: #fdecec; }
.mp-rowact.is-success { color: #1a8754; }
.mp-rowact.is-success .ti { color: #1a8754; }
.mp-rowact.is-success:hover { background: #e7f6ee; }

/* --- Système de boutons cohérent (formulaires) --- */
.mp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 44px; padding: 0 20px; border-radius: 12px; font-size: 15px; font-weight: 500; cursor: pointer; border: 0; text-decoration: none; white-space: nowrap; transition: background .15s ease, transform .12s ease; }
.mp-btn:active { transform: scale(.98); }
.mp-btn-primary { background: #0071e3; color: #fff; }
.mp-btn-primary:hover { background: #0077ed; }
.mp-btn-secondary { background: #ececef; color: #1d1d1f; }
.mp-btn-secondary:hover { background: #e2e2e7; }
.mp-btn-tinted { background: #eaf4fe; color: #0071e3; }
.mp-btn-tinted:hover { background: #dcecfd; }
.mp-btn-ghost { background: transparent; color: #6e6e73; }
.mp-btn-ghost:hover { background: rgba(0,0,0,.05); }
.mp-btn[disabled], .mp-btn.is-locked { opacity: .55; cursor: not-allowed; }

/* --- Case à cocher soignée --- */
.mp-check { appearance: none; -webkit-appearance: none; width: 19px; height: 19px; min-width: 19px; border: 1.5px solid #c7c7cc; border-radius: 6px; background: #fff; cursor: pointer; position: relative; flex: none; vertical-align: middle; transition: background .15s ease, border-color .15s ease; }
.mp-check:hover { border-color: #aeaeb2; }
.mp-check:checked { background: #0071e3; border-color: #0071e3; }
.mp-check:checked::after { content: ""; position: absolute; left: 6px; top: 2.5px; width: 4.5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.mp-check:focus-visible { outline: 2px solid rgba(0, 113, 227, .4); outline-offset: 1px; }

/* --- Petit menu déroulant (façon Apple) --- */
.mp-menu-wrap { position: relative; }
.mp-menu { position: absolute; top: calc(100% + 6px); right: 0; min-width: 230px; background: #fff; border: .5px solid rgba(0,0,0,.1); border-radius: 13px; box-shadow: 0 14px 34px -12px rgba(0,0,0,.35); padding: 6px; z-index: 50; display: none; }
.mp-menu.is-open { display: block; }
.mp-menu form { margin: 0; }
.mp-menu button, .mp-menu a { display: flex; align-items: center; gap: 9px; width: 100%; text-align: left; padding: 9px 11px; border-radius: 9px; font-size: 13.5px; font-weight: 500; color: #1d1d1f; background: transparent; border: 0; cursor: pointer; text-decoration: none; }
.mp-menu button:hover, .mp-menu a:hover { background: #f0f0f3; }
.mp-menu .ti { font-size: 17px; color: #6e6e73; }
/* Mobile : feuille en bas d'écran (le menu est déplacé dans <body> par MPMenuT) → jamais hors-écran. */
@media (max-width: 640px) {
    .mp-menu.is-open { position: fixed; left: 10px; right: 10px; bottom: 12px; top: auto; min-width: 0; max-width: none; width: auto; border-radius: 18px; padding: 8px; box-shadow: 0 16px 60px rgba(0, 0, 0, .4); z-index: 1000; }
    .mp-menu.is-open button, .mp-menu.is-open a { padding: 14px 14px; font-size: 15.5px; }
    .mp-menu.is-open .ti { font-size: 19px; }
}

/* --- Onglets segmentés (façon Apple) --- */
.mp-tabs { display: inline-flex; flex-wrap: wrap; gap: 3px; background: #ececef; border-radius: 12px; padding: 4px; }
.mp-tab { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 9px; font-size: 13.5px; font-weight: 500; color: #6e6e73; text-decoration: none; white-space: nowrap; transition: background .15s ease, color .15s ease; }
.mp-tab:hover { color: #1d1d1f; }
.mp-tab.is-on { background: #fff; color: #1d1d1f; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.mp-tab .ti { font-size: 16px; color: #86868b; }
.mp-tab.is-on .ti { color: #0071e3; }

/* --- Formulaire en sections groupées (façon Réglages) --- */
.mp-form-section { margin-top: 20px; }
.mp-form-section:first-child { margin-top: 0; }
.mp-form-section-title { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #86868b; margin: 0 0 9px 4px; }
.mp-form-card { background: #fff; border: .5px solid rgba(0,0,0,.07); border-radius: 16px; padding: 20px; box-shadow: 0 1px 3px rgba(0,0,0,.05), 0 8px 24px -16px rgba(0,0,0,.18); }
.mp-field-label { display: block; font-size: 13px; font-weight: 500; color: #494950; margin-bottom: 5px; }

/* --- Interrupteur iOS (toggle switch) --- */
.mp-switch { position: relative; display: inline-block; width: 44px; height: 26px; flex-shrink: 0; }
.mp-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.mp-switch .track { position: absolute; inset: 0; background: #d1d1d6; border-radius: 999px; transition: background .2s ease; pointer-events: none; }
.mp-switch .track::before { content: ''; position: absolute; top: 2px; left: 2px; width: 22px; height: 22px; background: #fff; border-radius: 50%; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .2s ease; }
.mp-switch input:checked + .track { background: #34c759; }
.mp-switch input:checked + .track::before { transform: translateX(18px); }
.mp-switch input:focus-visible + .track { box-shadow: 0 0 0 3px rgba(52,199,89,.3); }
.mp-switchrow { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; cursor: pointer; }

/* --- Modales (pop-up) --- */
.mp-modal { position: fixed; inset: 0; z-index: 80; display: none; align-items: center; justify-content: center; padding: 16px; background: rgba(0,0,0,.45); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.mp-modal.is-open { display: flex; }
.mp-modal-box { width: 100%; max-width: 580px; max-height: 90vh; display: flex; flex-direction: column; background: #fff; border-radius: 20px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.5); overflow: hidden; animation: mpModalIn .2s ease; }
@keyframes mpModalIn { from { opacity: 0; transform: translateY(10px) scale(.99); } to { opacity: 1; transform: none; } }
.mp-modal-head { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: .5px solid rgba(0,0,0,.08); }
.mp-modal-head h3 { margin: 0; font-size: 18px; font-weight: 600; letter-spacing: -.02em; color: #1d1d1f; }
.mp-modal-close { width: 30px; height: 30px; border-radius: 50%; background: #ececef; border: 0; display: inline-flex; align-items: center; justify-content: center; color: #6e6e73; cursor: pointer; font-size: 16px; transition: background .15s ease; }
.mp-modal-close:hover { background: #e2e2e7; }
.mp-modal-body { padding: 20px; overflow-y: auto; }

/* --- Actions au survol des vignettes (galeries) : cercles dépoli (style A) --- */
.mp-tile-actions { position: absolute; right: 9px; bottom: 9px; display: flex; gap: 7px; opacity: 0; transform: translateY(4px); transition: opacity .16s ease, transform .16s ease; z-index: 2; }
.group:hover .mp-tile-actions, .mp-tile:hover .mp-tile-actions { opacity: 1; transform: none; }
.mp-tile-btn { width: 44px; height: 44px; min-width: 44px; min-height: 44px; flex: 0 0 44px; aspect-ratio: 1 / 1; padding: 0; border-radius: 9999px; background: rgba(0, 0, 0, .42); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 18px; line-height: 1; border: 0; cursor: pointer; text-decoration: none; transition: background .15s ease, transform .12s ease; }
.mp-tile-btn:hover { background: rgba(0, 0, 0, .62); }
.mp-tile-btn:active { transform: scale(.92); }
.mp-tile-btn.is-danger { background: rgba(255, 59, 48, .85); }
.mp-tile-btn.is-danger:hover { background: #ff3b30; }
.mp-tile-btn.is-amber { background: rgba(245, 158, 11, .9); }
.mp-tile-btn.is-amber:hover { background: #f59e0b; }
.mp-tile-btn.is-on { background: #0071e3; }
.mp-tile-btn.is-fav { background: rgba(255, 59, 48, .92); }
.mp-tile-btn.is-fav:hover { background: #ff3b30; }
/* Léger voile bas pour la lisibilité des cercles */
.mp-tile-scrim { position: absolute; inset: auto 0 0 0; height: 64px; background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .32)); opacity: 0; transition: opacity .16s ease; pointer-events: none; border-radius: 0 0 12px 12px; }
.group:hover .mp-tile-scrim, .mp-tile:hover .mp-tile-scrim { opacity: 1; }
/* Mobile (pas de survol) : actions toujours visibles */
@media (hover: none) { .mp-tile-actions { opacity: 1; transform: none; } .mp-tile-scrim { opacity: 1; } }
.mp-sidebar .bg-brand-600 { background-image: none; background-color: var(--mp-brand); box-shadow: none; }
/* Pastilles de notification (compteurs) — atténuées sur l'item actif */
.mp-sidebar nav a.bg-brand-50 .bg-amber-500 { background: rgba(255, 255, 255, .26) !important; }
/* Pied de menu (compte / actions) */
.mp-sidebar .border-t { border-color: rgba(0, 0, 0, .06) !important; }

/* --- En-tête : verre dépoli clair, pastille "espace" en aplat bleu --- */
.mp-header { background: rgba(245, 245, 247, .8); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: .5px solid rgba(0, 0, 0, .06); }
.mp-header .bg-brand-50 { background: var(--mp-brand); }
.mp-header .bg-brand-50.text-brand-700, .mp-header .text-brand-700 { color: #fff !important; }

/* --- Champs : coins ronds + halo de focus bleu système --- */
input, select, textarea { border-radius: .6rem; }
/* iOS : les champs date/heure ont une largeur intrinsèque qui déborde → on les force à respecter leur conteneur */
input, select, textarea { max-width: 100%; box-sizing: border-box; }
input[type="date"], input[type="datetime-local"], input[type="time"], input[type="month"], input[type="week"] { min-width: 0; -webkit-appearance: none; appearance: none; }
input:focus, select:focus, textarea:focus {
    box-shadow: 0 0 0 3.5px rgba(0, 113, 227, .25) !important;
    border-color: var(--mp-brand) !important;
}
/* Bordure + fond lisibles par défaut sur les champs texte (le build Tailwind ne pose pas la bordure si la classe
   `border` manque). Faible spécificité via :where() → toute classe utilitaire (champs sombres, paddings) reste prioritaire. */
input:where(:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]):not([type="color"]):not([type="submit"]):not([type="button"]):not([type="image"]):not([type="hidden"])),
select, textarea {
    border: 1px solid #cbd5e1;
    background-color: #fff;
    padding: .5rem .7rem;
}

/* --- Tableaux : en-tête neutre, survol de ligne discret --- */
table thead { background: #fbfbfd; }
tbody tr { transition: background .12s ease; }
tbody tr:hover { background: #f5f5f7; }

/* --- Pastilles de statut un peu plus douces --- */
.rounded-full { letter-spacing: .005em; }

/* --- Apparition en douceur du contenu principal --- */
main { animation: mpFade .35s ease both; }
@keyframes mpFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* --- Pages sombres (galeries publiques, signature) --- */
body.bg-slate-950 {
    background:
        radial-gradient(1000px 600px at 100% -10%, rgba(124, 58, 237, .20), transparent 55%),
        radial-gradient(900px 520px at -10% 8%, rgba(31, 72, 245, .20), transparent 55%),
        #0a0b16;
    background-attachment: fixed;
}

/* --- Page de connexion / invité : fond perlé, carte blanche épurée --- */
body.bg-slate-100 {
    background: var(--mp-bg) !important;
    background-attachment: fixed;
}
body.bg-slate-100 .rounded-2xl, body.bg-slate-100 .rounded-xl {
    box-shadow: 0 1px 3px rgba(0, 0, 0, .06), 0 20px 50px -24px rgba(0, 0, 0, .25) !important;
    border: .5px solid rgba(0, 0, 0, .06) !important;
}

/* =====================================================================
   Kit "landing" — page d'accueil sombre, aurora + glassmorphism (2026)
   ===================================================================== */
.mp-landing { position: relative; min-height: 100vh; color: #e7e9f5; overflow: hidden;
    background:
        radial-gradient(900px 620px at 85% -8%, rgba(124, 58, 237, .38), transparent 60%),
        radial-gradient(820px 600px at 8% 4%, rgba(31, 72, 245, .34), transparent 55%),
        radial-gradient(760px 520px at 55% 108%, rgba(236, 72, 153, .18), transparent 60%),
        #07060f;
}
.mp-landing::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
    background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: 50px 50px;
    -webkit-mask-image: radial-gradient(circle at 50% -10%, #000, transparent 72%);
    mask-image: radial-gradient(circle at 50% -10%, #000, transparent 72%);
}
.mp-wrap { position: relative; z-index: 1; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.mp-nav { position: sticky; top: 0; z-index: 30; backdrop-filter: blur(14px); background: rgba(10, 9, 20, .55); border-bottom: 1px solid rgba(255, 255, 255, .07); padding-top: env(safe-area-inset-top, 0px); }
.mp-nav-inner { max-width: 1120px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mp-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.05rem; color: #fff; }
.mp-logo { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: var(--mp-grad); box-shadow: 0 8px 22px -6px rgba(124, 58, 237, .75); font-size: 1.1rem; }
.mp-grad-text { background: linear-gradient(100deg, #8ab4ff, #c4a3ff 52%, #ff9ad2); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mp-pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px; border-radius: 999px; font-size: .85rem; font-weight: 600; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); color: #c9cdf0; backdrop-filter: blur(6px); }
.mp-dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 12px #34d399; }
.mp-h1 { font-size: clamp(2.4rem, 6vw, 4.1rem); line-height: 1.04; font-weight: 800; letter-spacing: -.025em; color: #fff; margin: 0; }
.mp-sub { font-size: 1.15rem; line-height: 1.6; color: #aab0d8; }
.mp-cta { display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; border-radius: 14px; font-weight: 700; color: #fff; text-decoration: none; background: var(--mp-grad); box-shadow: 0 16px 36px -10px rgba(124, 58, 237, .8); transition: transform .15s, box-shadow .15s, filter .15s; }
.mp-cta:hover { transform: translateY(-2px); filter: brightness(1.08); box-shadow: 0 22px 46px -10px rgba(124, 58, 237, .9); }
.mp-ghost { display: inline-flex; align-items: center; gap: 8px; padding: 14px 26px; border-radius: 14px; font-weight: 600; color: #e7e9f5; text-decoration: none; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .14); transition: background .15s, border-color .15s; }
.mp-ghost:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .25); }
.mp-glass { background: rgba(255, 255, 255, .045); border: 1px solid rgba(255, 255, 255, .09); border-radius: 20px; padding: 26px; backdrop-filter: blur(10px); box-shadow: 0 24px 60px -34px rgba(0, 0, 0, .85); transition: transform .2s, border-color .2s, background .2s; }
.mp-glass:hover { transform: translateY(-4px); border-color: rgba(124, 58, 237, .45); background: rgba(255, 255, 255, .075); }
.mp-feat-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 1.4rem; background: linear-gradient(135deg, rgba(31, 72, 245, .35), rgba(124, 58, 237, .35)); border: 1px solid rgba(255, 255, 255, .12); }
.mp-grid-3 { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
.mp-grid-2 { display: grid; gap: 40px; grid-template-columns: 1.05fr .95fr; align-items: center; }
@media (max-width: 880px) { .mp-grid-3 { grid-template-columns: 1fr; } .mp-grid-2 { grid-template-columns: 1fr; } }
.mp-window { border-radius: 18px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .12); background: rgba(13, 12, 26, .7); backdrop-filter: blur(10px); box-shadow: 0 50px 100px -34px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .04); }
.mp-window-bar { display: flex; align-items: center; gap: 6px; padding: 12px 14px; background: rgba(255, 255, 255, .04); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.mp-tl { width: 11px; height: 11px; border-radius: 50%; }
.mp-shot { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; padding: 16px; }
.mp-shot i { aspect-ratio: 1; border-radius: 11px; display: block; background: linear-gradient(135deg, rgba(124, 58, 237, .55), rgba(31, 72, 245, .55)); animation: mpPulse 4s ease-in-out infinite; }
.mp-shot i:nth-child(3n) { background: linear-gradient(135deg, rgba(255, 154, 210, .45), rgba(124, 58, 237, .45)); animation-delay: .6s; }
.mp-shot i:nth-child(4n) { background: linear-gradient(135deg, rgba(52, 211, 153, .4), rgba(31, 72, 245, .5)); animation-delay: 1.2s; }
.mp-shot img { aspect-ratio: 1; width: 100%; height: 100%; object-fit: cover; border-radius: 11px; display: block; }
@keyframes mpPulse { 0%, 100% { opacity: .85; } 50% { opacity: 1; } }
.mp-cta-band { border-radius: 28px; padding: 52px 32px; text-align: center; background: var(--mp-grad); box-shadow: 0 36px 80px -28px rgba(124, 58, 237, .8); }
.mp-foot { border-top: 1px solid rgba(255, 255, 255, .08); color: #8186b3; }
.mp-stat-num { font-size: 2rem; font-weight: 800; color: #fff; }
.mp-reveal { animation: mpFade .5s ease both; }

/* --- Carte album (partagée photographe + espace client) --- */
.alb-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(240px,1fr)); gap:22px; }
.alb-card { display:block; text-decoration:none; }
.alb-cover { position:relative; aspect-ratio:4/3; border-radius:18px; overflow:hidden; background:#e8e8ed; box-shadow:0 2px 6px rgba(0,0,0,.08), 0 14px 34px -14px rgba(0,0,0,.26); transition:transform .22s cubic-bezier(.25,.46,.45,.94), box-shadow .22s ease; }
.alb-card:hover .alb-cover { transform:translateY(-3px); box-shadow:0 4px 10px rgba(0,0,0,.10), 0 22px 46px -16px rgba(0,0,0,.34); }
.alb-cover img { width:100%; height:100%; object-fit:cover; display:block; transition:transform .4s cubic-bezier(.25,.46,.45,.94); }
.alb-card:hover .alb-cover img { transform:scale(1.04); }
.alb-cover-ph { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; font-size:2rem; color:#b5b5bd; }
.alb-badge { position:absolute; top:11px; right:11px; font-size:11.5px; font-weight:600; border-radius:980px; padding:4px 11px; letter-spacing:-.01em; backdrop-filter:blur(12px); -webkit-backdrop-filter:blur(12px); }
.alb-badge.is-pub { background:rgba(255,255,255,.82); color:#1d7a33; }
.alb-count { position:absolute; bottom:11px; left:11px; display:flex; align-items:center; gap:5px; background:rgba(0,0,0,.42); backdrop-filter:blur(12px); -webkit-backdrop-filter:blur(12px); color:#fff; font-size:12px; font-weight:500; border-radius:980px; padding:4px 11px; letter-spacing:-.01em; }
.alb-count i { font-size:14px; }
.alb-info { padding:13px 4px 0; }
.alb-name { font-size:16px; font-weight:600; letter-spacing:-.022em; color:#1d1d1f; margin:0; }
.alb-loc { display:flex; align-items:center; gap:5px; margin-top:5px; font-size:13px; color:#6e6e73; letter-spacing:-.01em; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.alb-loc i { font-size:14px; color:#86868b; flex:0 0 auto; }
.alb-metarow { display:flex; align-items:center; gap:8px; margin-top:7px; min-width:0; }
.alb-datechip { display:inline-flex; align-items:center; gap:5px; flex:0 0 auto; background:#ececef; border-radius:980px; padding:3px 10px; font-size:12px; color:#494950; letter-spacing:-.01em; white-space:nowrap; }
.alb-datechip i { font-size:13px; color:#6e6e73; }
.alb-client { font-size:12.5px; color:#86868b; letter-spacing:-.01em; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

/* --- Segmented control (sélecteur photos/ligne) --- */
.mp-seg { display:inline-flex; gap:3px; background:#ececef; border-radius:10px; padding:3px; }
.mp-seg-btn { border:0; background:transparent; border-radius:7px; padding:5px 14px; font-size:13px; font-weight:500; color:#6e6e73; cursor:pointer; line-height:1.4; transition:background .15s ease, color .15s ease; }
.mp-seg-btn:hover { color:#1d1d1f; }
.mp-seg-btn.is-on { background:#fff; color:#1d1d1f; box-shadow:0 1px 3px rgba(0,0,0,.12); }
.mp-seg-dark { background:rgba(255,255,255,.12); }
.mp-seg-dark .mp-seg-btn { color:#c7c7cc; }
.mp-seg-dark .mp-seg-btn:hover { color:#fff; }
.mp-seg-dark .mp-seg-btn.is-on { background:rgba(255,255,255,.24); color:#fff; box-shadow:none; }

/* --- Pilules de filtre (compteurs admin) --- */
.mp-filter-pill { display:inline-flex; align-items:center; gap:6px; border-radius:980px; padding:7px 14px; font-size:13.5px; font-weight:500; color:#494950; background:#fff; box-shadow:inset 0 0 0 1px rgba(0,0,0,.1); text-decoration:none; transition:background .15s ease, color .15s ease, box-shadow .15s ease; }
.mp-filter-pill:hover { background:#f5f5f7; }
.mp-filter-pill.is-on { background:#0071e3; color:#fff; box-shadow:none; }
.mp-filter-pill .ti { font-size:16px; }
.mp-filter-count { border-radius:980px; padding:1px 8px; font-size:11.5px; font-weight:600; background:rgba(0,0,0,.06); color:#494950; }
.mp-filter-pill.is-on .mp-filter-count { background:rgba(255,255,255,.25); color:#fff; }

/* --- Mes photographes : mode liste (1 colonne) --- */
#pf-grid.is-list { grid-template-columns: 1fr; }
.mp-seg-btn .ti { font-size: 16px; }

/* --- Badges / pastilles : toujours en pilule, jamais en ovale (pas de retour à la ligne) --- */
.rounded-full { white-space: nowrap; }

/* --- Mobile : les tableaux défilent DANS leur carte, la page ne déborde plus --- */
@media (max-width: 767px) {
    .mp-main { overflow-x: hidden; }                 /* la page ne scrolle jamais latéralement */
    .mp-main :has(> table) { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .mp-main table { min-width: max-content; }       /* remplit si ça rentre, défile sinon */
    .mp-main th, .mp-main td { white-space: nowrap; }
}
/* Colonnes/éléments masqués sur petit écran (ex. dates secondaires dans un tableau) */
@media (max-width: 640px) {
    .mp-hide-sm { display: none !important; }
}

/* =====================================================================
   Kit "woaah" — animations landing (aurora vivante, reveal au scroll,
   halos, flottement). Respecte prefers-reduced-motion.
   ===================================================================== */
.mp-landing { background-size: 200% 200%, 200% 200%, 200% 200%, auto; animation: mpAurora 22s ease-in-out infinite; }
@keyframes mpAurora {
    0%, 100% { background-position: 85% -8%, 8% 4%, 55% 108%, 0 0; }
    50%      { background-position: 70% 6%, 22% -6%, 42% 96%, 0 0; }
}

/* Orbes lumineux flottants derrière le hero */
.mp-orb { position: absolute; border-radius: 50%; filter: blur(60px); pointer-events: none; z-index: 0; opacity: .55; }
.mp-orb-1 { width: 340px; height: 340px; top: 60px; left: -80px; background: radial-gradient(circle, rgba(31,72,245,.7), transparent 70%); animation: mpFloat 12s ease-in-out infinite; }
.mp-orb-2 { width: 300px; height: 300px; top: 180px; right: -60px; background: radial-gradient(circle, rgba(124,58,237,.7), transparent 70%); animation: mpFloat 15s ease-in-out infinite reverse; }
@keyframes mpFloat { 0%,100% { transform: translate(0,0); } 50% { transform: translate(24px,-30px); } }

/* Titre dégradé animé (shimmer) */
.mp-grad-text { background-size: 220% auto; animation: mpShimmer 6s linear infinite; }
@keyframes mpShimmer { to { background-position: 220% center; } }

/* Mockup produit qui flotte doucement */
.mp-window { animation: mpWinFloat 7s ease-in-out infinite; will-change: transform; }
@keyframes mpWinFloat { 0%,100% { transform: translateY(0) rotateX(0); } 50% { transform: translateY(-12px); } }
.mp-window:hover { animation-play-state: paused; }

/* Halo pulsé sur la bande CTA finale */
.mp-cta-band { position: relative; overflow: hidden; }
.mp-cta-band::after { content: ""; position: absolute; inset: -40%; background: radial-gradient(circle at 50% 50%, rgba(255,255,255,.16), transparent 60%); animation: mpGlow 5s ease-in-out infinite; pointer-events: none; }
@keyframes mpGlow { 0%,100% { transform: scale(.9); opacity: .5; } 50% { transform: scale(1.15); opacity: 1; } }

/* Reveal au scroll (piloté par IntersectionObserver → .is-in) */
.mp-inview { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1); will-change: opacity, transform; }
.mp-inview.is-in { opacity: 1; transform: none; }
.mp-inview.d1 { transition-delay: .08s; } .mp-inview.d2 { transition-delay: .16s; }
.mp-inview.d3 { transition-delay: .24s; } .mp-inview.d4 { transition-delay: .32s; }

/* Soulignage animé sous les titres de section au reveal */
.mp-h2-line { position: relative; display: inline-block; }
.mp-h2-line::after { content: ""; position: absolute; left: 50%; bottom: -12px; width: 0; height: 3px; border-radius: 3px; background: linear-gradient(90deg, #8ab4ff, #c4a3ff, #ff9ad2); transform: translateX(-50%); transition: width .8s ease .2s; }
.mp-inview.is-in .mp-h2-line::after, .mp-h2-line.is-in::after { width: 64px; }

@media (prefers-reduced-motion: reduce) {
    .mp-landing, .mp-orb, .mp-grad-text, .mp-window, .mp-cta-band::after { animation: none !important; }
    .mp-inview { opacity: 1 !important; transform: none !important; }
}

/* ---------- Tableau de bord « Apple » (espace photographe) ---------- */
.dsh-title { font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 700; letter-spacing: -.025em; color: #1d1d1f; line-height: 1.15; }
.dsh-sub { color: #6e6e73; font-size: .95rem; margin-top: 2px; }
.dsh-eyebrow { font-size: .74rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #6e6e73; }
.dsh-card { display: block; background: #fff; border: 1px solid rgba(0,0,0,.05); border-radius: 20px; box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 10px 28px -20px rgba(0,0,0,.25); transition: transform .18s ease, box-shadow .18s ease; }
a.dsh-card:hover, button.dsh-card:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(0,0,0,.05), 0 16px 36px -16px rgba(0,0,0,.25); }
.dsh-num { font-size: 1.85rem; font-weight: 700; letter-spacing: -.02em; color: #1d1d1f; line-height: 1.1; }
.dsh-label { font-size: .8rem; color: #6e6e73; }
.dsh-ico { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; color: #fff; font-size: 20px; flex-shrink: 0; box-shadow: 0 6px 14px -6px rgba(0,0,0,.35); }
.dsh-grad-blue   { background: linear-gradient(135deg, #0a84ff, #0055d4); }
.dsh-grad-purple { background: linear-gradient(135deg, #bf5af2, #7c3aed); }
.dsh-grad-green  { background: linear-gradient(135deg, #30d158, #1fa346); }
.dsh-grad-orange { background: linear-gradient(135deg, #ff9f0a, #f56300); }
.dsh-grad-pink   { background: linear-gradient(135deg, #ff375f, #d61f69); }
.dsh-grad-teal   { background: linear-gradient(135deg, #64d2ff, #0a84ff); }
.dsh-grad-amber  { background: linear-gradient(135deg, #ffd60a, #ff9f0a); }
.dsh-bar { height: 6px; border-radius: 9999px; background: linear-gradient(90deg, #0a84ff, #7c3aed); }
.dsh-news { background: linear-gradient(135deg, rgba(10,132,255,.06), rgba(124,58,237,.06)); }
@keyframes dshIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.dsh-in { animation: dshIn .55s cubic-bezier(.2,.7,.3,1) both; }
@media (prefers-reduced-motion: reduce) { .dsh-in { animation: none !important; } }
