/* ===================================================================
   Design system — inspiré Doctolib, palette bleu marine / bleu pétrole
   =================================================================== */

/* Police Manrope hébergée sur le site (RGPD : aucun appel à Google Fonts, donc pas d'adresse IP
   des visiteurs transmise à Google). Fontsource 5.2.8, licence SIL OFL (fonts/LICENSE-Manrope-OFL.txt).
   Police variable : toutes les graisses de 200 à 800 dans un seul fichier par jeu de caractères. */
@font-face {
    font-family: 'Manrope';
    src: url('fonts/manrope-latin.woff2') format('woff2');
    font-weight: 200 800;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Manrope';
    src: url('fonts/manrope-latin-ext.woff2') format('woff2');
    font-weight: 200 800;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
    /* Palette recommandée */
    --color-navy: #0B1F3A;      /* couleur principale */
    --color-petrol: #155E75;    /* couleur secondaire */
    --color-turquoise: #14B8A6; /* progression / objectifs / succès */
    --color-amber: #F59E0B;     /* alertes / échéances */
    --color-bg: #F4F7FA;        /* fond */
    --color-text: #1F2937;      /* texte */

    --color-surface: #FFFFFF;
    --color-text-muted: #55637A;
    --color-text-faint: #94A3B8;

    --color-accent: var(--color-navy);
    --color-accent-hover: #061428;
    --color-accent-soft: #E7ECF3;

    --color-secondary: var(--color-petrol);
    --color-secondary-hover: #0e4655;
    --color-secondary-soft: #E4F0F3;

    --color-success: var(--color-turquoise);
    --color-success-soft: #E3FBF7;

    --color-warning: var(--color-amber);
    --color-warning-soft: #FEF3E2;

    --color-border: #DDE4EC;
    --color-danger: #B91C1C;
    --color-danger-soft: #FEF2F2;
    --radius-sm: 6px;
    --radius-md: 10px;
    --font-sans: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
    font-family: var(--font-sans);
    margin: 0;
    padding: 0 24px 24px 24px;
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
    margin: 0 0 16px 0;
    font-weight: 600;
    letter-spacing: -0.01em;
}
h1 { font-size: 22px; }
h2 { font-size: 17px; color: var(--color-text); }

a {
    color: var(--color-accent);
    text-decoration: none;
    margin-right: 12px;
}
a:hover { text-decoration: underline; }

/* ---------- En-tête / topbar ---------- */
.topbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 8px 24px;
    background: var(--color-navy);
    padding: 0 24px;
    min-height: 64px;
    margin: 0 -24px 28px -24px;
}
.topbar-brand {
    color: white;
    font-weight: 800;
    font-size: 18px;
    margin: 0;
    letter-spacing: -0.01em;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.topbar-brand:hover { text-decoration: none; opacity: 0.9; }
.topbar-badge { font-size: 11px; font-weight: 800; color: var(--color-navy); background: var(--color-turquoise); border-radius: 6px; padding: 2px 8px; }
.topbar-nav { display: flex; flex-wrap: wrap; gap: 4px 28px; }
.topbar-nav a {
    color: #C9D3E1;
    font-size: 15px;
    font-weight: 600;
    margin: 0;
    padding: 20px 0 18px;
    border-bottom: 2px solid transparent;
}
.topbar-nav a:hover { color: white; text-decoration: none; }
.topbar-nav a.is-active { color: white; border-bottom-color: var(--color-turquoise); }
.topbar-count { background: var(--color-amber); color: var(--color-navy); border-radius: 999px; padding: 1px 7px; font-size: 12px; font-weight: 800; }
.topbar-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--color-petrol); color: white; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; }
.topbar-name { color: white; font-size: 14px; font-weight: 600; }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.topbar-user { font-size: 13px; color: #B9C4D6; }
.topbar-user strong { color: white; font-weight: 600; }
.topbar-link {
    color: #B9C4D6;
    font-size: 13px;
    font-weight: 500;
    margin: 0;
}
.topbar-link:hover { color: white; text-decoration: none; }
.topbar-login {
    background: var(--color-turquoise);
    color: var(--color-navy);
    padding: 7px 18px;
    border-radius: 999px;
    margin: 0;
    font-size: 13px;
    font-weight: 700;
}
.topbar-login:hover { background: #0f9c8c; text-decoration: none; }
.topbar-logout {
    background: transparent;
    color: #B9C4D6;
    border: 1px solid #2A3F5C;
    border-radius: var(--radius-sm);
    padding: 6px 14px;
    cursor: pointer;
    font-size: 13px;
    font-family: var(--font-sans);
}
.topbar-logout:hover { border-color: var(--color-danger); color: #ff9b9b; }
.inline-form { display: inline; margin: 0; }

/* ---------- Formulaires & cartes ---------- */
.search-box, .form-card {
    background: var(--color-surface);
    padding: 20px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    display: grid;
    gap: 12px;
    max-width: 480px;
}
input, select, textarea {
    font-family: var(--font-sans);
    font-size: 14px;
    padding: 9px 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-text);
    background: var(--color-surface);
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px var(--color-accent-soft);
}

button, .btn-primary {
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border-radius: var(--radius-sm);
}

/* Bouton principal : une seule action forte par étape */
.form-card button[type="submit"],
.slot-form button[type="submit"],
.reschedule-form button[type="submit"] {
    background: var(--color-accent);
    color: white;
    border: none;
    padding: 10px 18px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: background 0.15s ease;
}
.form-card button[type="submit"]:hover,
.slot-form button[type="submit"]:hover,
.reschedule-form button[type="submit"]:hover {
    background: var(--color-accent-hover);
}

.card-list {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.card {
    background: var(--color-surface);
    padding: 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
}

.login-required {
    background: var(--color-accent-soft);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    max-width: 480px;
    color: var(--color-text);
}

.nav-links { margin-bottom: 20px; }

/* ===================================================================
   Calendrier
   =================================================================== */
.calendar-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 8px;
}
.calendar-header h1 { margin: 0; }
.calendar-nav { display: flex; gap: 4px; align-items: center; }
.calendar-nav a {
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    margin: 0;
}
.calendar-nav a:hover {
    background: var(--color-surface);
    color: var(--color-text);
    text-decoration: none;
}

.calendar {
    width: 100%;
    border-collapse: separate;
    border-spacing: 6px;
    background: transparent;
}
.calendar th {
    font-size: 12px;
    font-weight: 500;
    color: var(--color-text-faint);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 8px 4px;
    text-align: left;
}
.calendar td {
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    vertical-align: top;
    padding: 10px;
    height: 130px;
    width: 14.28%;
    border-radius: var(--radius-md);
    transition: border-color 0.15s ease;
}

.day-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    border-radius: 50%;
}
.out-month { background: var(--color-bg); }
.out-month .day-num { color: var(--color-text-faint); }

/* Jour courant : mis en valeur par un disque plein */
.day-today .day-num {
    background: var(--color-accent);
    color: white;
}

/* Jours passés : grisés, sans interaction de réservation */
.day-past { background: var(--color-bg); }
.day-past .day-num { color: var(--color-text-faint); }

/* ---------- Créneaux occupés ---------- */
.busy {
    background: var(--color-danger-soft);
    border: 1px solid #FCA5A5;
    border-radius: var(--radius-sm);
    padding: 6px 8px;
    margin-bottom: 6px;
    font-size: 12px;
}
.busy-time { font-weight: 600; color: var(--color-text); }
.busy-type { color: var(--color-text-muted); font-style: italic; }
.busy-client { font-weight: 600; }
.busy-status {
    display: inline-block;
    text-transform: uppercase;
    font-size: 10px;
    letter-spacing: 0.05em;
    margin: 3px 0 5px 0;
    font-weight: 600;
}
.status-pending { color: var(--color-amber); }
.status-confirmed { color: var(--color-turquoise); }
.status-done { color: var(--color-text-faint); }

.btn-mini {
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 500;
    padding: 4px 9px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    cursor: pointer;
    margin: 2px 3px 0 0;
}
.btn-cancel { border-color: var(--color-danger); color: var(--color-danger); }
.btn-cancel:hover { background: var(--color-danger); color: white; }
.btn-reschedule { border-color: var(--color-amber); color: #92600a; display: inline-block; }
.btn-reschedule:hover { background: var(--color-amber); color: white; }
.reschedule-box { margin-top: 3px; }
.reschedule-form {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 6px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    padding: 8px;
    border-radius: var(--radius-sm);
}
.reschedule-form input { font-size: 11px; padding: 4px 6px; }

/* ---------- Créneaux libres : liste verticale, coins arrondis, survol discret ---------- */
.slots-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.slot-box { margin: 0; }
.slot {
    display: block;
    width: 100%;
    text-align: center;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 5px 8px;
    font-size: 12px;
    font-weight: 500;
    color: var(--color-text);
    cursor: pointer;
    transition: background 0.12s ease, border-color 0.12s ease;
}
.slot:hover {
    background: var(--color-accent-soft);
    border-color: var(--color-accent);
    text-decoration: none;
}
.slot.free { }

/* Confirmation en une étape, un seul bouton principal */
.confirm-box { margin-top: 4px; }
.confirm-box summary { list-style: none; cursor: pointer; }
.confirm-box summary::-webkit-details-marker { display: none; }
.confirm-panel {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 8px;
    margin-top: 4px;
    font-size: 12px;
}
.confirm-panel p { margin: 0 0 6px 0; color: var(--color-text-muted); }
.confirm-panel button {
    width: 100%;
    background: var(--color-accent);
    color: white;
    border: none;
    padding: 7px;
    font-weight: 600;
    border-radius: var(--radius-sm);
}
.confirm-panel button:hover { background: var(--color-accent-hover); }

/* ===================================================================
   Hero d'accueil (inspiré Doctolib)
   =================================================================== */
.hero {
    background: var(--color-navy);
    margin: 0 -24px 32px -24px;
    padding: 48px 40px;
    color: white;
    position: relative;
    overflow: hidden;
}
.hero-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    max-width: 1280px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}
.hero-inner { max-width: 640px; flex: 1; }
.hero-title {
    font-size: 38px;
    font-weight: 700;
    margin: 0 0 28px 0;
    letter-spacing: -0.02em;
    line-height: 1.15;
}
.hero-search {
    background: white;
    border-radius: 999px;
    display: flex;
    align-items: stretch;
    padding: 6px;
    gap: 4px;
    box-shadow: 0 16px 40px rgba(0,0,0,0.25);
    max-width: 620px;
}
.hero-search-field {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    position: relative;
}
.hero-search-field:first-child::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    bottom: 20%;
    width: 1px;
    background: var(--color-border);
}
.hero-search-icon { color: var(--color-text-faint); flex-shrink: 0; }
.hero-search input {
    border: none;
    outline: none;
    font-family: var(--font-sans);
    font-size: 14px;
    width: 100%;
    padding: 0;
    color: var(--color-text);
}
.hero-search-submit {
    background: var(--color-navy);
    color: white;
    border: none;
    border-radius: 999px;
    padding: 0 26px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}
.hero-search-submit:hover { background: var(--color-accent-hover); }
.hero-compact { padding: 20px 40px; margin-bottom: 28px; }
.hero-compact .hero-flex { justify-content: flex-start; }

/* Illustration décorative à droite (formes + pictogramme, pas de photo) */
.hero-illustration {
    flex-shrink: 0;
    width: 260px;
    height: 260px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-blob {
    position: absolute;
    border-radius: 50%;
    background: var(--color-petrol);
    opacity: 0.55;
}
.hero-blob-1 { width: 220px; height: 220px; top: -10px; right: 10px; }
.hero-blob-2 { width: 140px; height: 140px; bottom: -20px; left: 0; background: var(--color-turquoise); opacity: 0.35; }
.hero-illustration svg { position: relative; z-index: 1; }
@media (max-width: 900px) {
    .hero-illustration { display: none; }
}

/* Icônes discrètes dans les liens de la barre supérieure */
.topbar-link-icon { display: inline-flex; vertical-align: -3px; margin-right: 4px; }
.topbar-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: white;
    color: var(--color-navy);
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
}
.topbar-pill:hover { background: #e7ecf3; text-decoration: none; }

/* ===================================================================
   Fiches clients (recherche, création, consultation) — RGPD
   =================================================================== */
.booking-context {
    background: var(--color-accent-soft);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    max-width: 480px;
    font-size: 14px;
    color: var(--color-text);
}

.client-result {
    display: block;
    text-decoration: none;
    color: var(--color-text);
}
.client-result:hover {
    border-color: var(--color-accent);
    text-decoration: none;
}
.client-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 6px;
    font-size: 12px;
    color: var(--color-text-muted);
}
.client-meta-empty { font-style: italic; color: var(--color-text-faint); }

.gdpr-invite {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 18px;
    max-width: 480px;
}
.gdpr-text {
    font-size: 13px;
    color: var(--color-text-muted);
    line-height: 1.6;
}
.gdpr-notice {
    background: var(--color-accent-soft);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 16px 18px;
    max-width: 480px;
    margin-bottom: 20px;
}
.gdpr-notice strong { display: block; margin-bottom: 6px; font-size: 13px; }
.gdpr-notice p { margin: 0; font-size: 13px; color: var(--color-text-muted); line-height: 1.6; }

.btn-primary-link {
    display: inline-block;
    background: var(--color-accent);
    color: white;
    padding: 9px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    margin-top: 10px;
}
.btn-primary-link:hover { background: var(--color-accent-hover); text-decoration: none; }

.field-label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
    color: var(--color-text-muted);
}
.consent-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: var(--color-text-muted);
    line-height: 1.5;
}
.consent-label input { margin-top: 3px; }

/* ===================================================================
   Semaine type (types de rendez-vous + grille hebdomadaire)
   =================================================================== */
.hint-text { font-size: 13px; color: var(--color-text-muted); margin: -8px 0 16px 0; }

.type-card {
    display: flex;
    align-items: center;
    gap: 10px;
}
.type-swatch {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    flex-shrink: 0;
}
.type-duration { font-size: 12px; color: var(--color-text-muted); }
.type-card form { margin-left: auto; }

.week-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    margin-top: 16px;
}
.week-day-column {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 10px;
    min-height: 120px;
}
.week-day-column h3 {
    font-size: 13px;
    margin: 0 0 8px 0;
    color: var(--color-text);
}
.week-day-empty { font-size: 12px; color: var(--color-text-faint); font-style: italic; }
.week-slot {
    background: var(--color-bg);
    border-left: 3px solid var(--color-accent);
    border-radius: 4px;
    padding: 6px 8px;
    margin-bottom: 6px;
    font-size: 12px;
}
.week-slot-time { font-weight: 600; }
.week-slot-type { color: var(--color-text-muted); margin: 2px 0 4px 0; }
.week-slot-actions { display: flex; gap: 4px; }

/* ===================================================================
   En-tête de page façon tableau de bord (mois/semaine + navigation)
   =================================================================== */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 4px;
}
.page-header-title {
    display: flex;
    align-items: center;
    gap: 10px;
}
.page-header-title h1 { margin: 0; }
.page-nav-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-text-muted);
    background: var(--color-surface);
    font-size: 15px;
    margin: 0;
}
.page-nav-arrow:hover { background: var(--color-accent-soft); color: var(--color-text); text-decoration: none; }
.page-header-link {
    font-size: 13px;
    color: var(--color-secondary);
    font-weight: 500;
}
.page-header-actions { display: flex; gap: 8px; }
.page-subtitle { color: var(--color-text-muted); font-size: 14px; margin: 0 0 20px 0; }

.btn-outline {
    display: inline-flex;
    align-items: center;
    padding: 7px 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-text);
    background: var(--color-surface);
    font-size: 13px;
    font-weight: 500;
    margin: 0;
}
.btn-outline:hover { background: var(--color-accent-soft); text-decoration: none; }

/* ---------- Cartes de statistiques ---------- */
.stat-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}
.stat-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 16px 18px;
}
.stat-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-text-faint);
    margin-bottom: 6px;
}
.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-text);
}
@media (max-width: 900px) {
    .stat-cards { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Statut du jour (complet / partiel / sans rdv) ---------- */
.day-cell { position: relative; }
.day-full    { background: var(--color-success-soft) !important; }
.day-partial { background: var(--color-warning-soft) !important; }
.day-empty   { }

.quick-add {
    position: absolute;
    top: 6px;
    right: 8px;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--color-accent-soft);
    color: var(--color-accent);
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    opacity: 0.35;
    text-decoration: none;
    z-index: 2;
}
.day-cell:hover .quick-add { opacity: 1; }
.quick-add:hover { background: var(--color-accent); color: white; text-decoration: none; }

/* ---------- Légende ---------- */
.legend {
    display: flex;
    gap: 20px;
    margin-top: 16px;
    font-size: 12px;
    color: var(--color-text-muted);
}
.legend-item { display: inline-flex; align-items: center; gap: 6px; }
.legend-swatch {
    display: inline-block;
    width: 13px;
    height: 13px;
    border-radius: 3px;
    border: 1px solid var(--color-border);
}
.legend-full { background: var(--color-success-soft); border-color: var(--color-turquoise); }
.legend-partial { background: var(--color-warning-soft); border-color: var(--color-amber); }
.legend-empty { background: var(--color-surface); }

/* ---------- Connexion centrée ---------- */
.auth-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.auth-page .topbar { margin-bottom: 0; }
.auth-center {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 0 8vh 0;
}
.auth-card {
    width: 100%;
    max-width: 400px;
}
.auth-card h1 { text-align: center; margin-bottom: 4px; }
.auth-subtitle {
    text-align: center;
    color: var(--color-text-muted);
    font-size: 14px;
    margin: 0 0 20px 0;
}
.auth-card .form-card {
    max-width: none;
    margin-bottom: 14px;
    padding: 24px;
    box-shadow: 0 8px 24px rgba(11, 31, 58, 0.08);
}
.auth-card .form-card button[type="submit"] { margin-top: 6px; cursor: pointer; }
.auth-footer { text-align: center; font-size: 14px; margin: 0; }
.auth-footer a { margin-right: 0; }

/* ---------- Alertes ---------- */
.alert {
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    margin-bottom: 14px;
    border: 1px solid transparent;
}
.alert-error { background: var(--color-danger-soft); border-color: #FCA5A5; color: var(--color-danger); }
.alert-success { background: var(--color-success-soft); border-color: var(--color-turquoise); color: var(--color-text); }
.alert .hint-text { margin: 8px 0 0 0; }
.temp-password {
    display: inline-block;
    font-family: Consolas, 'Courier New', monospace;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.06em;
    background: var(--color-surface);
    border: 1px dashed var(--color-petrol);
    border-radius: var(--radius-sm);
    padding: 4px 10px;
    margin-left: 6px;
    user-select: all;
}

/* ---------- Admin : comptes et journaux ---------- */
.section-title { margin-top: 28px; }
.table-wrap {
    overflow-x: auto;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
}
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th {
    text-align: left;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-text-faint);
    padding: 10px 14px;
    border-bottom: 1px solid var(--color-border);
    white-space: nowrap;
}
.data-table td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--color-border);
    vertical-align: middle;
}
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover { background: var(--color-bg); }
.data-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.data-table .num.warn { color: #92600a; font-weight: 600; }
.data-table .actions { white-space: nowrap; text-align: right; }
.data-table .actions a { margin-right: 0; }
.data-table .empty { text-align: center; color: var(--color-text-faint); font-style: italic; }
.muted { color: var(--color-text-muted); }
.small { font-size: 12px; }

.role-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--color-accent-soft);
    color: var(--color-navy);
}
.role-admin { background: var(--color-navy); color: white; }
.role-professional { background: var(--color-secondary-soft); color: var(--color-petrol); }
.role-secretary { background: var(--color-warning-soft); color: #92600a; }

.log-action { font-weight: 500; }
.log-login { color: #0f766e; }
.log-login_failed { color: var(--color-danger); }
.log-logout { color: var(--color-text-muted); }
.log-password_reset_by_admin, .log-admin_reset_account, .log-password_reset { color: #92600a; }

.btn-danger {
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    padding: 9px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-danger);
    background: var(--color-surface);
    color: var(--color-danger);
    cursor: pointer;
}
.btn-danger:hover { background: var(--color-danger); color: white; }
.stat-text { font-size: 15px; font-weight: 500; word-break: break-all; }
.page-header-title { display: flex; align-items: center; gap: 12px; }

@media (max-width: 720px) {
    .stat-cards { grid-template-columns: 1fr; }
}

/* ===================================================================
   Écrans « zéro stress » (espace patient, agenda pro, planning
   secrétaire, vue d'ensemble admin)
   =================================================================== */
.z-wrap { max-width: 1180px; margin: 0 auto; padding-bottom: 32px; }
.z-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.z-h1 { margin: 0; font-size: 28px; font-weight: 800; color: var(--color-navy); letter-spacing: -0.02em; }
.z-sub { margin: 4px 0 0; color: var(--color-text-muted); font-size: 15px; }
.z-cols { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.z-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.z-side { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.z-half { flex: 1 1 420px; min-width: 0; }

.z-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 16px; padding: 22px; }
.z-card-accent { border: 2px solid var(--color-petrol); }
.z-card-warn { background: #FFFBF2; border-color: #F6D19A; }
.z-card-dark { background: var(--color-navy); color: white; border: none; }
.z-card-dark .z-title { color: white; }
.z-card-ok { background: var(--color-success-soft); border: 2px solid var(--color-turquoise); display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.z-title { margin: 0 0 14px; font-size: 19px; font-weight: 800; color: var(--color-navy); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.z-title small { font-size: 13px; font-weight: 700; color: var(--color-text-muted); }
.z-muted { color: var(--color-text-muted); }
.z-small { font-size: 13px; }
.z-strong { font-weight: 800; color: var(--color-navy); }
.z-link { font-size: 14px; font-weight: 700; color: var(--color-petrol); margin: 0; }

.z-btn, .z-btn-ghost, .z-btn-dark, .z-btn-warn, .z-btn-danger, .z-btn-mint, .z-btn-dashed {
    font-family: var(--font-sans); font-size: 15px; font-weight: 700; border-radius: 10px;
    min-height: 44px; padding: 0 18px; cursor: pointer; display: inline-flex; align-items: center;
    justify-content: center; gap: 8px; margin: 0; text-decoration: none; border: 1px solid transparent; line-height: 1.2;
}
.z-btn { background: var(--color-petrol); color: white; }
.z-btn:hover { background: var(--color-secondary-hover); text-decoration: none; }
.z-btn-dark { background: var(--color-navy); color: white; }
.z-btn-ghost { background: white; color: var(--color-navy); border-color: #C9D3E1; }
.z-btn-ghost:hover { border-color: var(--color-petrol); color: var(--color-petrol); text-decoration: none; }
.z-btn-warn { background: white; color: #92600A; border: 2px solid var(--color-amber); }
.z-btn-warn:hover { background: #FFFBF2; text-decoration: none; }
.z-btn-danger { background: white; color: var(--color-danger); border-color: #F1B4B4; }
.z-btn-danger:hover { background: var(--color-danger); color: white; text-decoration: none; }
.z-btn-mint { background: var(--color-turquoise); color: var(--color-navy); }
.z-btn-dashed { background: #FFFBF2; color: #92600A; border: 1px dashed #B45309; }
.z-btn-sm { min-height: 38px; padding: 0 12px; font-size: 13px; }
.z-btn-block { width: 100%; }
.z-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

.z-tag { display: inline-block; font-size: 12px; font-weight: 800; border-radius: 999px; padding: 3px 10px; background: #EEF2F6; color: var(--color-navy); }
.z-tag-purpose { background: #CFE6EC; color: #0E4655; }
.z-tag-warn { background: var(--color-warning-soft); color: #92600A; }
.z-tag-red { background: #FDE8E8; color: #A12C2C; }
.z-tag-ok { background: var(--color-success-soft); color: #0F766E; }
.z-tag-dark { background: var(--color-navy); color: white; }

.z-field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; color: var(--color-text-muted); }
.z-field input, .z-field select, .z-field textarea, .z-input {
    font-family: var(--font-sans); font-size: 16px; padding: 10px 12px; min-height: 46px;
    border: 1px solid #C9D3E1; border-radius: 10px; background: white; color: var(--color-text); width: 100%;
}
.z-field textarea { min-height: 70px; resize: vertical; }
.z-form-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.z-form-row > * { flex: 1 1 180px; }
.z-form-row > .z-btn, .z-form-row > .z-btn-dark { flex: 0 0 auto; }

/* Créneaux : boutons-pastilles (radio cachée + libellé) */
.z-slots { display: flex; flex-wrap: wrap; gap: 8px; }
.z-slot { position: relative; margin: 0; }
.z-slot input { position: absolute; opacity: 0; pointer-events: none; }
.z-slot span, a.z-slot-link {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px;
    border: 1px solid #CBD5E1; color: var(--color-navy); background: white;
    font-size: 14px; font-weight: 700; cursor: pointer; margin: 0;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06); transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.z-slot input:checked + span, .z-slot span:hover, a.z-slot-link:hover { background: #2563EB; border-color: #2563EB; color: white; text-decoration: none; }
.z-slot input:focus-visible + span { outline: 3px solid #9FD3DE; outline-offset: 2px; }
.z-daygroup { margin-bottom: 16px; }
.z-daygroup h3 { margin: 0 0 8px; font-size: 14px; font-weight: 800; color: var(--color-navy); }

/* Rendez-vous du patient */
.z-appt-card { border: 1px solid var(--color-border); border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.z-appt-card + .z-appt-card { margin-top: 12px; }
.z-appt-card.is-next { border: 2px solid var(--color-petrol); }
.z-appt-top { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.z-date { width: 80px; height: 80px; border-radius: 12px; background: var(--color-navy); color: white; display: flex; flex-direction: column; align-items: center; justify-content: center; flex: none; }
.z-date b { font-size: 32px; line-height: 1; font-weight: 800; }
.z-date small { font-size: 11px; font-weight: 800; letter-spacing: 0.08em; color: #8FE3D6; text-transform: uppercase; }
.z-date span { font-size: 12px; font-weight: 600; }
.z-date-sm { width: 60px; height: 60px; background: #EEF2F6; color: var(--color-navy); }
.z-date-sm b { font-size: 22px; }
.z-date-sm small { color: var(--color-text-muted); }
.z-appt-when { font-size: 21px; font-weight: 800; color: var(--color-navy); }
.z-check-box { background: var(--color-bg); border-radius: 12px; padding: 14px; }
.z-check-box.is-done { background: var(--color-success-soft); }
.z-check-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px; }
.z-check { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; background: white; border-radius: 10px; padding: 10px 12px; color: var(--color-navy); cursor: pointer; border: 1px solid transparent; }
.z-check.is-checked { color: #0F766E; }
.z-check.is-todo { border-color: #F6D19A; }
.z-check input { width: 18px; height: 18px; accent-color: var(--color-petrol); }
.z-check.is-auto { cursor: default; }
.z-notice { padding: 12px 14px; border-radius: 12px; font-size: 14px; }
.z-notice-warn { background: var(--color-warning-soft); border: 1px solid #F6D19A; }
.z-notice-info { background: var(--color-secondary-soft); }
.z-notice-ok { background: var(--color-success-soft); }

/* Prévention (carte sombre) */
.z-prev { background: #13304F; border-radius: 12px; padding: 14px; }
.z-prev + .z-prev { margin-top: 10px; }
.z-prev-k { font-size: 12px; font-weight: 800; letter-spacing: 0.05em; color: #8FE3D6; text-transform: uppercase; }
.z-prev-k.is-due { color: #F6C26B; }
.z-prev-t { font-weight: 800; margin: 4px 0 2px; }
.z-prev-d { font-size: 14px; color: #B9C4D6; }
.z-prev .z-actions { margin-top: 12px; }
.z-prev .z-btn-ghost { background: transparent; color: white; border-color: #3A5174; }

/* Lignes de liste simples */
.z-list-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid #EEF2F6; font-size: 14px; }
.z-list-row:last-child { border-bottom: none; }
.z-msg { display: flex; gap: 12px; padding: 12px; border-radius: 12px; background: var(--color-bg); }
.z-msg + .z-msg { margin-top: 10px; }
.z-msg.is-unread { background: var(--color-warning-soft); }
.z-msg.is-urgent { background: #FDE8E8; }
.z-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--color-amber); margin-top: 6px; flex: none; }

/* Agenda du pro : semaine + ligne du temps */
.z-week { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-bottom: 20px; }
.z-week a { display: block; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--color-border); background: white; color: var(--color-navy); margin: 0; }
.z-week a:hover { border-color: var(--color-petrol); text-decoration: none; }
.z-week a.is-active { border: 2px solid var(--color-petrol); background: var(--color-secondary-soft); }
.z-week a.is-absent { background: var(--color-warning-soft); border-color: #F6D19A; }
.z-week small { display: block; font-size: 13px; font-weight: 700; color: var(--color-text-muted); }
.z-week b { font-size: 15px; font-weight: 800; }
.z-tl-row { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid #EEF2F6; }
.z-tl-row:last-child { border-bottom: none; }
.z-tl-time { font-size: 15px; font-weight: 800; color: var(--color-navy); }
.z-tl-time small { display: block; font-size: 12px; color: #B45309; font-weight: 800; }
.z-tl-row.is-past .z-tl-time { color: var(--color-text-faint); }
.z-appt { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--color-border); display: flex; flex-direction: column; gap: 8px; background: white; }
.z-appt-line { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.z-appt-name { font-weight: 800; color: var(--color-navy); flex: 1 1 160px; font-size: 16px; }
.z-appt.is-now { background: var(--color-secondary-soft); border: 2px solid var(--color-petrol); }
.z-appt.is-past { background: var(--color-bg); opacity: 0.75; }
.z-appt-note { font-size: 14px; background: white; border-radius: 10px; padding: 10px 12px; border: 1px solid #DDE4EC; }
.z-free { text-align: left; display: flex; align-items: center; gap: 10px; padding: 12px 14px; min-height: 48px; border-radius: 12px; background: white; border: 1.5px dashed #9FB2C8; color: var(--color-petrol); font-size: 15px; font-weight: 700; margin: 0; }
.z-free:hover { background: var(--color-secondary-soft); border-color: var(--color-petrol); text-decoration: none; }
.z-free.is-picked { background: var(--color-secondary-soft); border: 2px solid var(--color-petrol); color: var(--color-navy); }
details.z-details > summary { list-style: none; cursor: pointer; }
details.z-details > summary::-webkit-details-marker { display: none; }
.z-inline-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.z-inline-form input { font-family: var(--font-sans); font-size: 14px; min-height: 40px; padding: 0 10px; border: 1px solid #C9D3E1; border-radius: 8px; }
.z-delay { display: inline-flex; align-items: center; gap: 6px; background: white; border: 1px solid var(--color-border); border-radius: 12px; padding: 4px 4px 4px 12px; }
.z-delay.is-on { border-color: var(--color-amber); background: #FFFBF2; }
.z-options { display: flex; flex-wrap: wrap; gap: 8px; }
.z-option { position: relative; margin: 0; }
.z-option input { position: absolute; opacity: 0; }
.z-option span { display: inline-flex; flex-direction: column; min-height: 44px; justify-content: center; padding: 6px 16px; border-radius: 14px; border: 1px solid #E8C48A; background: white; font-size: 14px; font-weight: 700; color: var(--color-navy); cursor: pointer; }
.z-option span small { font-size: 12px; font-weight: 600; color: var(--color-text-muted); }
.z-option input:checked + span { background: #B45309; color: white; border-color: #B45309; }
.z-option input:checked + span small { color: #FDE7C4; }
.z-quick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.z-quick button { font-family: var(--font-sans); background: white; color: var(--color-petrol); border: 1px solid var(--color-petrol); border-radius: 999px; padding: 0 12px; min-height: 38px; font-size: 13px; font-weight: 700; cursor: pointer; }
.z-quick button:hover { background: var(--color-secondary-soft); }

/* Planning secrétaire : une colonne par praticien */
.z-plan { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.z-plan-col h3 { margin: 0 0 10px; font-size: 15px; font-weight: 800; color: var(--color-navy); padding-bottom: 8px; border-bottom: 3px solid var(--color-petrol); }
.z-plan-col:nth-child(2) h3 { border-bottom-color: #7C5CC4; }
.z-plan-col:nth-child(3) h3 { border-bottom-color: #B45309; }
.z-plan-item { display: grid; grid-template-columns: 50px minmax(0, 1fr); gap: 8px; align-items: center; margin-bottom: 6px; }
.z-plan-item .t { font-size: 13px; font-weight: 800; color: var(--color-text-muted); }
.z-plan-appt { padding: 8px 10px; border-radius: 10px; background: #E3EDFC; font-size: 14px; }
.z-plan-appt strong { color: var(--color-navy); }
.z-plan-appt span { display: block; color: #1E4F9A; font-weight: 600; font-size: 13px; }
.z-plan-appt.is-urgent { background: #FDE8E8; }
.z-plan-appt.is-urgent span { color: #A12C2C; }
.z-plan-free { padding: 8px 10px; min-height: 40px; font-size: 14px; }
.z-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.z-chip { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 0 14px; min-height: 38px; font-size: 14px; font-weight: 700; border: 2px solid var(--color-navy); background: white; color: var(--color-navy); margin: 0; }
.z-chip:hover { text-decoration: none; background: var(--color-bg); }
.z-chip.is-off { border-color: #EEF2F6; background: #EEF2F6; color: var(--color-text-muted); text-decoration: line-through; }
.z-chip.is-on { background: var(--color-navy); color: white; }
.z-step { font-size: 12px; font-weight: 800; color: var(--color-text-muted); letter-spacing: 0.06em; margin: 0 0 6px; text-transform: uppercase; }
.z-patient { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; background: var(--color-bg); margin-bottom: 16px; }
.z-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--color-secondary-soft); color: var(--color-petrol); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; flex: none; }
.z-results { background: white; border: 1px solid var(--color-border); border-radius: 12px; margin: -8px 0 18px; overflow: hidden; }
.z-results a { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid #EEF2F6; margin: 0; color: var(--color-navy); }
.z-results a:hover { background: var(--color-bg); text-decoration: none; }
.z-task { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-radius: 10px; background: white; font-size: 15px; font-weight: 600; color: var(--color-navy); }
.z-task + .z-task { margin-top: 6px; }
.z-task.is-done { color: var(--color-text-faint); text-decoration: line-through; font-weight: 500; }
.z-task-toggle { width: 24px; height: 24px; border-radius: 6px; border: 2px solid #B45309; background: white; cursor: pointer; flex: none; padding: 0; display: inline-flex; align-items: center; justify-content: center; color: white; }
.z-task.is-done .z-task-toggle { background: var(--color-text-faint); border-color: var(--color-text-faint); }
.z-task-text { flex: 1; min-width: 0; }
.z-task-meta { font-size: 12px; color: var(--color-text-muted); font-weight: 600; white-space: nowrap; }
.z-task ul { margin: 6px 0 0; padding-left: 18px; font-size: 13px; font-weight: 500; color: var(--color-text); }

/* Admin : problèmes, tuiles, graphique */
.z-problem { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 0; border-top: 1px solid #EEF2F6; }
.z-cat { font-size: 11px; font-weight: 800; text-align: center; border-radius: 6px; padding: 4px 0; text-transform: uppercase; background: #DDE4EC; color: var(--color-navy); }
.z-cat-danger { background: var(--color-danger); color: white; }
.z-cat-warn { background: #F6C26B; }
.z-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin-bottom: 24px; }
.z-tile { background: white; border: 1px solid var(--color-border); border-radius: 14px; padding: 16px 18px; }
.z-tile-k { font-size: 13px; font-weight: 700; color: var(--color-text-muted); }
.z-tile-v { font-size: 30px; font-weight: 800; color: var(--color-navy); }
.z-tile-v small { font-size: 15px; color: var(--color-text-muted); font-weight: 700; }
.z-bars { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; align-items: end; height: 170px; }
.z-bar { display: flex; flex-direction: column; justify-content: flex-end; height: 100%; gap: 2px; }
.z-bar i { display: block; border-radius: 4px 4px 0 0; }
.z-bar .ok { background: var(--color-petrol); }
.z-bar .ko { background: #E8860C; }
.z-bar span { font-size: 12px; color: var(--color-text-muted); text-align: center; margin-top: 4px; }
.z-legend { display: flex; gap: 14px; font-size: 13px; color: var(--color-text-muted); margin-bottom: 14px; }
.z-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.z-table-wrap { overflow-x: auto; }
.z-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 520px; }
.z-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--color-text-muted); font-weight: 700; padding: 10px 12px; }
.z-table td { padding: 12px; border-top: 1px solid #EEF2F6; }
.z-meter { display: inline-block; width: 90px; height: 8px; background: #EEF2F6; border-radius: 4px; vertical-align: middle; margin-right: 8px; overflow: hidden; }
.z-meter i { display: block; height: 8px; background: var(--color-petrol); }
.z-seg { display: inline-flex; border: 1px solid #C9D3E1; border-radius: 10px; overflow: hidden; background: white; }
.z-seg a { padding: 0 16px; min-height: 40px; display: inline-flex; align-items: center; font-size: 14px; font-weight: 700; color: var(--color-navy); margin: 0; }
.z-seg a.is-on { background: var(--color-navy); color: white; }
.z-seg a:hover { text-decoration: none; }

/* Messages flash « C'est noté » */
.z-flash { max-width: 1180px; margin: -12px auto 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 12px; font-size: 15px; font-weight: 600; background: var(--color-success-soft); border: 1px solid var(--color-turquoise); color: var(--color-navy); position: relative; overflow: hidden; }
.z-flash > span:first-child { flex: 1 1 260px; }
.z-flash-error { background: #FDE8E8; border-color: #F1B4B4; }
.z-flash-warn { background: var(--color-warning-soft); border-color: #F6D19A; }
.z-flash-undo { font-family: var(--font-sans); background: var(--color-navy); color: white; border: none; border-radius: 8px; padding: 0 14px; min-height: 36px; font-weight: 800; cursor: pointer; }
.z-flash-close { background: transparent; border: none; font-size: 22px; line-height: 1; cursor: pointer; color: var(--color-text-muted); padding: 0 4px; }
.z-flash-timer { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--color-petrol); animation: z-timer 10s linear forwards; }
@keyframes z-timer { from { width: 100%; } to { width: 0; } }

@media (max-width: 720px) {
    .z-week { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .z-problem { grid-template-columns: 1fr; }
    .z-h1 { font-size: 24px; }
    .topbar-name { display: none; }
}

/* ===================================================================
   Cquand.com : page de présentation + assistant IA local
   =================================================================== */
.topbar-tld { color: var(--color-turquoise); font-weight: 700; }

body.page-landing { background: #F8FAFC; }
.lp { max-width: 1200px; margin: 0 auto; padding: 8px 8px 32px; }
.lp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Bandeau d'accueil */
.lp-hero { display: flex; flex-wrap: wrap; gap: 24px 40px; align-items: center; background: var(--color-navy); color: white; border-radius: 24px; padding: 40px 48px; margin-bottom: 72px; }
.lp-hero-text { flex: 999 1 560px; min-width: 0; }
.lp-hero-card { flex: 1 1 320px; min-width: 0; display: flex; justify-content: center; }
.lp-kicker { margin: 0 0 12px; color: #8FE3D6; font-weight: 700; font-size: 15px; letter-spacing: 0.02em; }
.lp-title { margin: 0 0 16px; font-size: 48px; line-height: 1.08; font-weight: 800; letter-spacing: -0.03em; color: white; }
.lp-title span { color: var(--color-turquoise); }
.lp-lead { margin: 0; font-size: 18px; line-height: 1.6; color: #D5DEEA; max-width: 620px; }

/* Recherche sur une seule ligne */
.lp-search { display: flex; align-items: stretch; background: white; border-radius: 16px; padding: 8px; box-shadow: 0 12px 32px rgba(2, 6, 23, 0.28); }
.lp-search-row { flex: 1 1 100%; min-width: 0; }
.lp-field:nth-child(1) { flex-grow: 1.4; }
.lp-field:nth-child(2) { flex-grow: 1.2; }
.lp-field { flex: 1 1 0; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 0 14px; position: relative; }
.lp-field + .lp-field::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 1px; background: #E2E8F0; }
.lp-field svg { flex: none; color: #64748B; }
.lp-field input, .lp-field select { flex: 1; min-width: 0; border: none; background: transparent; font-family: var(--font-sans); font-size: 16px; color: var(--color-navy); min-height: 52px; padding: 0; box-shadow: none; }
.lp-field input:focus, .lp-field select:focus { outline: none; box-shadow: none; }
.lp-field:focus-within { background: #F1F5F9; border-radius: 10px; }
.lp-field input::placeholder { color: #64748B; }
.lp-go { flex: none; display: inline-flex; align-items: center; gap: 8px; border: none; border-radius: 12px; background: #2563EB; color: white; font-family: var(--font-sans); font-size: 16px; font-weight: 800; padding: 0 26px; min-height: 52px; cursor: pointer; transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease; }
.lp-go:hover { background: #1D4ED8; transform: translateY(-1px); box-shadow: 0 8px 18px rgba(37, 99, 235, 0.45); }
.lp-go:focus-visible { outline: 3px solid #93C5FD; outline-offset: 2px; }
.lp-note { margin: 12px 0 0; font-size: 14px; color: #B9C4D6; }

/* « Tout est prêt » façon application mobile */
.lp-mock { background: white; color: var(--color-text); border-radius: 22px; padding: 18px; width: 100%; max-width: 350px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35); }
.lp-mock-top { display: flex; gap: 14px; align-items: center; }
.lp-ready { margin-top: 16px; background: #F8FAFC; border: 1px solid #E2E8F0; border-radius: 16px; padding: 14px; position: relative; }
.lp-ready-title { font-size: 16px; font-weight: 800; color: var(--color-navy); margin-bottom: 8px; }
.lp-ready-badge { position: absolute; top: -12px; right: 14px; background: #F59E0B; color: #1F2937; font-size: 13px; font-weight: 800; border-radius: 999px; padding: 4px 12px; box-shadow: 0 4px 10px rgba(245, 158, 11, 0.35); }
.lp-ready ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.lp-ready li { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; color: var(--color-navy); background: white; border-radius: 10px; padding: 9px 10px; }
.lp-ready li i { width: 22px; height: 22px; border-radius: 50%; flex: none; display: inline-flex; align-items: center; justify-content: center; border: 2px solid #CBD5E1; }
.lp-ready li.is-on i { background: #10B981; border-color: #10B981; }
.lp-ready li.is-on i::after { content: ""; width: 9px; height: 5px; border-left: 2px solid white; border-bottom: 2px solid white; transform: rotate(-45deg) translate(1px, -1px); }
.lp-mock-prev { margin-top: 12px; font-size: 13px; font-weight: 700; color: #92600A; background: var(--color-warning-soft); border-radius: 10px; padding: 9px 12px; }

/* Sections */
.lp-section { margin-bottom: 72px; }
.lp-h2 { margin: 0 0 12px; font-size: 32px; font-weight: 800; color: #0F172A; letter-spacing: -0.02em; text-align: center; }
.lp-intro { margin: 0 auto 36px; max-width: 640px; text-align: center; font-size: 17px; color: #475569; }

/* Cartes par profil */
.lp-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; }
.lp-card { background: white; border: 1px solid #E2E8F0; border-radius: 16px; padding: 28px; box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.05), 0 2px 4px -1px rgba(15, 23, 42, 0.03); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.lp-card:hover { transform: translateY(-4px); box-shadow: 0 12px 24px -6px rgba(15, 23, 42, 0.12); }
.lp-card-head { display: flex; align-items: center; gap: 14px; padding-bottom: 16px; margin-bottom: 18px; border-bottom: 2px solid #F1F5F9; }
.lp-card-icon { width: 48px; height: 48px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.lp-card-icon.is-patient { background: #EFF6FF; color: #2563EB; }
.lp-card-icon.is-pro { background: #ECFDF5; color: #047857; }
.lp-card-icon.is-sec { background: #F5F3FF; color: #6D28D9; }
.lp-card h3 { margin: 0; font-size: 21px; font-weight: 800; color: #0F172A; }
.lp-card ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.lp-card li { position: relative; padding-left: 30px; font-size: 15px; line-height: 1.55; color: #475569; }
.lp-card li strong { color: #0F172A; }
.lp-card li::before { content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: #D1FAE5; }
.lp-card li::after { content: ""; position: absolute; left: 6px; top: 8px; width: 8px; height: 4px; border-left: 2px solid #047857; border-bottom: 2px solid #047857; transform: rotate(-45deg); }

/* Comment ça marche : frise horizontale */
.lp-timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; position: relative; }
.lp-timeline::before { content: ""; position: absolute; top: 32px; left: 16.66%; right: 16.66%; height: 3px; background: linear-gradient(90deg, #2563EB, var(--color-turquoise)); border-radius: 3px; }
.lp-timeline li { position: relative; text-align: center; padding: 0 8px; }
.lp-timeline b { position: relative; z-index: 1; width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 800; color: white; background: #2563EB; box-shadow: 0 0 0 8px #F8FAFC; }
.lp-timeline li:nth-child(2) b { background: var(--color-petrol); }
.lp-timeline li:nth-child(3) b { background: #0F766E; }
.lp-timeline strong { display: block; font-size: 19px; font-weight: 800; color: #0F172A; margin-bottom: 8px; }
.lp-timeline span { display: block; font-size: 15px; line-height: 1.55; color: #475569; max-width: 300px; margin: 0 auto; }

/* Assistant, praticiens, appel aux cabinets, pied de page */
.lp-ai { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; background: #0E3A4A; color: #D5DEEA; border-radius: 20px; padding: 36px 40px; font-size: 16px; }
.lp-ai-icon { width: 64px; height: 64px; border-radius: 16px; background: rgba(20, 184, 166, 0.15); color: var(--color-turquoise); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.lp-ai > div { flex: 1 1 420px; }
.lp-ai h2 { margin: 0 0 10px; font-size: 26px; font-weight: 800; color: white; }
.lp-ai p { margin: 0 0 10px; max-width: 760px; line-height: 1.6; }
.lp-ai-small { font-size: 14px; color: #9FD3DE; }
.lp-pros { background: white; border: 1px solid #E2E8F0; border-radius: 16px; padding: 12px 24px; box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.05); }
.lp-pro { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid #F1F5F9; }
.lp-pro:last-child { border-bottom: none; }
.lp-cta { text-align: center; background: white; border: 1px solid #E2E8F0; border-radius: 20px; padding: 44px 24px; box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.05); }
.lp-cta .lp-h2 { margin-bottom: 8px; }
.lp-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 13px; color: #64748B; border-top: 1px solid #E2E8F0; padding-top: 20px; }

@media (max-width: 860px) {
    .lp-search { flex-direction: column; gap: 4px; }
    .lp-field + .lp-field::before { left: 14px; right: 14px; top: 0; bottom: auto; width: auto; height: 1px; }
    .lp-go { justify-content: center; }
    .lp-timeline { grid-template-columns: 1fr; gap: 32px; }
    .lp-timeline::before { display: none; }
}
@media (max-width: 720px) {
    .lp-hero { padding: 32px 20px; margin-bottom: 48px; }
    .lp-title { font-size: 34px; }
    .lp-h2 { font-size: 26px; }
    .lp-section { margin-bottom: 52px; }
    .lp-ai { padding: 28px 22px; }
}

/* Assistant IA local */
.ai-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: #C9D3E1; border: 1px solid #2A3F5C; border-radius: 999px; padding: 4px 10px; background: transparent; font-family: var(--font-sans); cursor: default; }
.ai-pill i { width: 8px; height: 8px; border-radius: 50%; background: #64748B; display: inline-block; }
.ai-pill.is-loading i { background: var(--color-amber); animation: ai-pulse 1.2s ease-in-out infinite; }
.ai-pill.is-ready i { background: var(--color-turquoise); }
.ai-pill.is-off i { background: #64748B; }
.ai-pill[hidden] { display: none; }
@keyframes ai-pulse { 50% { opacity: 0.3; } }
.ai-progress { position: fixed; left: 0; right: 0; top: 0; height: 3px; z-index: 50; pointer-events: none; }
.ai-progress i { display: block; height: 3px; width: 0; background: var(--color-turquoise); transition: width 0.4s ease; }
.ai-banner { max-width: 1180px; margin: -8px auto 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 14px 18px; border-radius: 14px; background: #0E3A4A; color: #D5DEEA; font-size: 15px; }
.ai-banner strong { color: white; }
.ai-banner > div { flex: 1 1 320px; }
.ai-box { border: 1px dashed #7FB8C6; background: #F2FAFB; border-radius: 12px; padding: 14px; margin-top: 10px; font-size: 14px; }
.ai-box[hidden] { display: none; }
.ai-box h4 { margin: 0 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--color-petrol); }
.ai-box ul { margin: 0 0 10px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.ai-box label { display: flex; gap: 8px; align-items: flex-start; font-weight: 600; color: var(--color-navy); cursor: pointer; }
.ai-box .ai-warn { font-size: 12px; color: var(--color-text-muted); margin: 8px 0 0; }
.ai-btn { font-family: var(--font-sans); display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 12px; border-radius: 10px; border: 1px solid #7FB8C6; background: white; color: var(--color-petrol); font-size: 13px; font-weight: 800; cursor: pointer; margin: 0; }
.ai-btn:hover { background: #E4F0F3; }
.ai-btn[disabled] { opacity: 0.55; cursor: progress; }
.ai-btn::before { content: "✦"; font-size: 12px; }
.ai-thinking { color: var(--color-text-muted); font-style: italic; }
[data-ai-only] { display: none; }
body.ai-available [data-ai-only] { display: revert; }

/* ===================================================================
   « Mes horaires » : types sur une ligne, semaine type glisser-déposer,
   absences sur une ligne
   =================================================================== */
.ty-head, .ty-form { display: grid; grid-template-columns: 44px minmax(140px, 1.2fr) 110px minmax(180px, 2.4fr) auto; gap: 8px; align-items: center; }
.ty-head { font-size: 12px; font-weight: 700; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 0.04em; padding: 0 0 6px; }
.ty-row { display: flex; gap: 8px; align-items: center; padding: 6px 0; border-top: 1px solid #EEF2F6; }
.ty-row .ty-form { flex: 1; min-width: 0; }
.ty-form input[type=text], .ty-form input[type=number] { font-family: var(--font-sans); font-size: 15px; min-height: 40px; padding: 0 10px; border: 1px solid #C9D3E1; border-radius: 8px; width: 100%; min-width: 0; }
.ty-form input[type=color] { width: 44px; height: 40px; padding: 2px; border: 1px solid #C9D3E1; border-radius: 8px; background: white; cursor: pointer; }
.ty-dur { display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--color-text-muted); }
.ty-dur input { width: 70px !important; }
.ty-new { margin-top: 10px; padding-top: 12px; border-top: 2px dashed #DDE4EC; }
.ab-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ab-form label { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--color-text-muted); }
.ab-form input { font-family: var(--font-sans); font-size: 15px; min-height: 40px; padding: 0 10px; border: 1px solid #C9D3E1; border-radius: 8px; }
.ab-form input[type=text] { flex: 1 1 200px; }

.wk-palette { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; position: sticky; top: 0; z-index: 3; background: white; padding: 6px 0; }
.wk-chip { font-family: var(--font-sans); display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid #CBD5E1; background: white; color: var(--color-navy); font-size: 14px; font-weight: 700; cursor: grab; }
.wk-chip i { width: 12px; height: 12px; border-radius: 4px; background: var(--c); }
.wk-chip small { font-weight: 600; color: var(--color-text-muted); }
.wk-chip:hover, .wk-chip.is-selected { border-color: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 25%, transparent); }
.wk-chip:active { cursor: grabbing; }
.wk-scroll { overflow-x: auto; border: 1px solid #E2E8F0; border-radius: 12px; }
.wk-grid { display: grid; grid-template-columns: 52px repeat(7, minmax(110px, 1fr)); min-width: 840px; }
.wk-grid.is-placing .wk-body { cursor: copy; }
.wk-hours { padding-top: 34px; border-right: 1px solid #E2E8F0; }
.wk-hours div { font-size: 11px; color: var(--color-text-muted); text-align: right; padding-right: 6px; transform: translateY(-7px); }
.wk-col { border-right: 1px solid #EEF2F6; }
.wk-col:last-child { border-right: none; }
.wk-col.is-over .wk-body { background-color: #EFF6FF; }
.wk-day { height: 34px; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; color: var(--color-navy); border-bottom: 1px solid #E2E8F0; background: #F8FAFC; }
.wk-body { position: relative; background-image: linear-gradient(#EEF2F6 1px, transparent 1px); background-size: 100% 52px; }
.wk-block { position: absolute; left: 3px; right: 3px; border-radius: 8px; background: color-mix(in srgb, var(--c) 16%, white); border: 1px solid color-mix(in srgb, var(--c) 55%, white); border-left: 4px solid var(--c); padding: 2px 6px; overflow: hidden; cursor: grab; display: flex; flex-direction: column; font-size: 12px; line-height: 1.25; color: #0F172A; }
.wk-block:focus-visible { outline: 3px solid #93C5FD; outline-offset: 1px; }
.wk-b-t { font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 36px; }
.wk-b-h { color: #334155; font-weight: 600; }
.wk-b-a { position: absolute; top: 2px; right: 2px; display: flex; gap: 2px; }
.wk-b-a button { width: 18px; height: 18px; border-radius: 5px; border: none; background: rgba(255, 255, 255, 0.9); color: #0F172A; font-weight: 800; font-size: 13px; line-height: 1; cursor: pointer; padding: 0; }
.wk-b-a button:hover { background: var(--c); color: white; }
.wk-status { font-size: 13px; font-weight: 700; color: var(--color-text-muted); }
.wk-status.is-ok { color: #0F766E; }
.wk-status.is-err { color: var(--color-danger); }
.wk-dialog { border: none; border-radius: 16px; padding: 22px; max-width: 460px; box-shadow: 0 24px 60px rgba(2, 6, 23, 0.35); }
.wk-dialog::backdrop { background: rgba(15, 23, 42, 0.45); }
.wk-dialog h3 { margin: 0 0 8px; font-size: 18px; color: var(--color-navy); }
.wk-dialog p { margin: 0 0 18px; font-size: 15px; line-height: 1.5; }
@media (max-width: 860px) {
    .ty-head { display: none; }
    .ty-form { grid-template-columns: 44px 1fr 100px; }
    .ty-form input[name=description] { grid-column: 1 / -1; }
}

/* Agenda personnel du patient */
.ag-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; border-radius: 12px; transition: box-shadow 0.3s ease; }
.ag-form input { font-family: var(--font-sans); font-size: 15px; min-height: 42px; padding: 0 10px; border: 1px solid #C9D3E1; border-radius: 8px; }
.ag-form input[name=title] { flex: 1 1 220px; }
.ag-form.is-highlight { box-shadow: 0 0 0 4px #BFDBFE; }
.ag-list { margin-top: 10px; }
.ag-day { font-size: 13px; font-weight: 800; color: var(--color-navy); text-transform: uppercase; letter-spacing: 0.04em; margin: 14px 0 6px; }
.ag-item { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: var(--color-bg); margin-bottom: 6px; font-size: 14px; }
.ag-item.is-rdv { background: var(--color-secondary-soft); }
.ag-item.is-done .ag-what { text-decoration: line-through; color: var(--color-text-faint); }
.ag-time { width: 64px; font-weight: 800; color: var(--color-navy); flex: none; }
.ag-what { flex: 1 1 180px; min-width: 0; color: var(--color-navy); }
.ag-del { background: none; border: none; font-size: 20px; line-height: 1; color: var(--color-text-muted); cursor: pointer; padding: 0 4px; }
.ag-del:hover { color: var(--color-danger); }

/* Choix de la prestation (métiers hors santé) */
.pr-list { display: flex; flex-direction: column; gap: 8px; }
.pr-item { position: relative; display: block; margin: 0; cursor: pointer; }
.pr-item input { position: absolute; opacity: 0; }
.pr-item > span { display: block; border: 1px solid #CBD5E1; border-radius: 12px; padding: 12px 14px; background: white; }
.pr-item input:checked + span { border: 2px solid #2563EB; background: #EFF6FF; padding: 11px 13px; }
.pr-item input:focus-visible + span { outline: 3px solid #93C5FD; outline-offset: 2px; }
.pr-name { display: flex; align-items: center; gap: 8px; font-weight: 800; color: var(--color-navy); }
.pr-name i { width: 12px; height: 12px; border-radius: 4px; flex: none; }
.pr-name small { font-weight: 600; color: var(--color-text-muted); }
.pr-desc { display: block; margin-top: 4px; font-size: 14px; color: #475569; }

/* Synchronisation agenda (patient) */
.sy-buttons { display: flex; flex-direction: column; gap: 8px; }
.sy-buttons .z-btn-ghost { justify-content: flex-start; }

/* Redonner rendez-vous (agenda pro) */
.rb { margin-top: 4px; }
.rb > summary { font-size: 14px; }
.rb[open] { background: #F8FAFC; border-radius: 10px; padding: 8px 10px; }
.rb-form { margin-top: 8px; }
.z-free-type { display: inline-flex; align-items: center; gap: 6px; color: var(--color-navy); }
.z-free-type i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.z-free-type small { color: var(--color-text-muted); font-weight: 600; }

/* ===== Messagerie façon Gmail (mx-*) ===== */
.mx-compose { padding: 14px 16px; margin-bottom: 16px; }
.mx-compose > summary { list-style: none; display: inline-flex; cursor: pointer; }
.mx-compose > summary::-webkit-details-marker { display: none; }
.mx-compose[open] > summary { margin-bottom: 14px; }
.mx-compose-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mx-wide { grid-column: 1 / -1; }
.mx-compose-foot { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.mx-compose-foot .z-btn { margin-left: auto; }
.mx-box { padding: 0; overflow: hidden; }
.mx-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; padding: 10px 14px; border-bottom: 1px solid var(--color-border); background: #FAFBFD; }
.mx-tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.mx-tabs button { border: 0; background: none; font: inherit; font-size: 14px; font-weight: 700; color: var(--color-text-muted); padding: 7px 12px; border-radius: 999px; cursor: pointer; }
.mx-tabs button:hover { background: var(--color-accent-soft); }
.mx-tabs button[aria-selected="true"] { background: var(--color-navy); color: white; }
.mx-count { font-weight: 800; opacity: .75; margin-left: 2px; }
.mx-search { flex: 0 1 260px; min-width: 0; border: 1px solid var(--color-border); border-radius: 999px; padding: 8px 14px; font: inherit; font-size: 14px; background: white; }
.mx-list { list-style: none; margin: 0; padding: 0; }
.mx-list > li { border-bottom: 1px solid #EDF1F5; }
.mx-list > li:last-child { border-bottom: 0; }
.mx-empty { margin: 0; padding: 28px 16px; text-align: center; color: var(--color-text-muted); }
.mx-thread > summary { list-style: none; }
.mx-thread > summary::-webkit-details-marker { display: none; }
.mx-row { display: grid; grid-template-columns: 36px minmax(120px, 210px) 1fr auto; gap: 12px; align-items: center; padding: 10px 16px; cursor: pointer; color: var(--color-text); background: white; }
.mx-row:hover { background: #F5F8FB; box-shadow: inset 3px 0 0 var(--color-petrol); }
.mx-av { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 800; color: white; background: var(--color-petrol); }
.mx-av-client { background: #0F766E; }
.mx-av-secretary { background: #7C3AED; }
.mx-av-admin { background: var(--color-navy); }
.mx-who { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.mx-who small { display: block; font-size: 12px; font-weight: 600; color: var(--color-text-faint); }
.mx-n { font-size: 12px; font-weight: 700; color: var(--color-text-muted); }
.mx-what { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--color-text-muted); }
.mx-what .z-tag { margin-right: 6px; padding: 1px 8px; vertical-align: 1px; }
.mx-subj { color: var(--color-text); font-weight: 600; }
.mx-date { font-size: 13px; color: var(--color-text-muted); white-space: nowrap; }
/* Non lu : gras, pastille */
.mx-thread.is-unread > .mx-row { background: #F2F7FF; }
.mx-thread.is-unread .mx-who, .mx-thread.is-unread .mx-subj, .mx-thread.is-unread .mx-date { font-weight: 800; color: var(--color-navy); }
.mx-thread.is-unread .mx-who::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #2563EB; margin-right: 6px; vertical-align: 1px; }
.mx-thread.is-urgent > .mx-row { box-shadow: inset 3px 0 0 var(--color-danger); }
/* Terminé : grisé */
.mx-thread.is-done > .mx-row { background: #F3F4F6; }
.mx-thread.is-done > .mx-row .mx-who, .mx-thread.is-done > .mx-row .mx-what, .mx-thread.is-done > .mx-row .mx-subj, .mx-thread.is-done > .mx-row .mx-date { color: #9CA3AF; }
.mx-thread.is-done > .mx-row .mx-av { filter: grayscale(1); opacity: .55; }
.mx-tag-done { background: #E5E7EB; color: #6B7280; }
/* Conversation ouverte */
.mx-thread[open] > .mx-row { background: #EEF4FA; box-shadow: inset 3px 0 0 var(--color-navy); }
.mx-body { padding: 4px 16px 16px 64px; background: white; }
.mx-title { margin: 8px 0 10px; font-size: 18px; color: var(--color-navy); }
.mx-conv { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.mx-msg { border: 1px solid var(--color-border); border-radius: 12px; padding: 10px 14px; background: white; }
.mx-msg.is-root { border-color: #C9D3E1; box-shadow: 0 1px 2px rgba(11, 31, 58, .05); }
.mx-msg.is-reply { margin-left: 22px; position: relative; background: #FAFBFD; }
.mx-msg.is-reply::before { content: ""; position: absolute; left: -14px; top: -11px; bottom: 50%; width: 10px; border-left: 2px solid var(--color-border); border-bottom: 2px solid var(--color-border); border-bottom-left-radius: 8px; }
.mx-msg.is-mine { background: #F0FAF8; border-color: #BDE7E0; }
.mx-msg-head { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; font-size: 13px; margin-bottom: 4px; }
.mx-msg-head strong { color: var(--color-navy); font-size: 14px; }
.mx-msg-head time { margin-left: auto; }
.mx-seen { font-size: 12px; font-weight: 700; color: #0F766E; }
.mx-text { white-space: pre-line; color: var(--color-text); line-height: 1.5; overflow-wrap: anywhere; }
.mx-reply { margin-top: 12px; margin-left: 22px; display: grid; gap: 8px; }
.mx-quick { display: flex; flex-wrap: wrap; gap: 6px; }
.mx-quick button { border: 1px solid #C9D3E1; background: white; border-radius: 999px; padding: 5px 12px; font: inherit; font-size: 13px; font-weight: 700; color: var(--color-petrol); cursor: pointer; }
.mx-quick button:hover { border-color: var(--color-petrol); background: var(--color-secondary-soft); }
.mx-reply-form textarea { width: 100%; box-sizing: border-box; border: 1px solid var(--color-border); border-radius: 10px; padding: 10px 12px; font: inherit; resize: vertical; }
.mx-reply-actions { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.mx-done-form { justify-self: end; margin-top: -44px; }
@media (max-width: 720px) {
    .mx-row { grid-template-columns: 36px 1fr auto; grid-template-areas: "av who date" "av what what"; row-gap: 2px; padding: 10px 12px; }
    .mx-av { grid-area: av; align-self: start; }
    .mx-who { grid-area: who; }
    .mx-who small { display: inline; margin-left: 6px; }
    .mx-what { grid-area: what; }
    .mx-date { grid-area: date; }
    .mx-body { padding: 4px 12px 14px; }
    .mx-msg.is-reply, .mx-reply { margin-left: 12px; }
    .mx-done-form { justify-self: start; margin-top: 0; }
    .mx-compose-form { grid-template-columns: 1fr; }
    .mx-search { flex: 1 1 100%; }
}

/* ===== Offre professionnelle : inscription (su-*) et abonnement (sb-*) ===== */
.su-hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 26px; }
.su-hero-note { color: #8FE3D6; font-weight: 700; font-size: 14px; }
.su-price { flex: 0 1 360px; background: white; color: var(--color-text); border-radius: 20px; padding: 26px 26px 22px; box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .35); }
.su-price-tag { display: flex; align-items: baseline; gap: 8px; }
.su-price-tag b { font-size: 52px; font-weight: 800; color: var(--color-navy); letter-spacing: -0.03em; line-height: 1; }
.su-price-tag span { font-weight: 700; color: var(--color-text-muted); }
.su-price-year { margin: 8px 0 16px; font-size: 15px; color: #0F766E; }
.su-price-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.su-price-list li { position: relative; padding-left: 26px; font-size: 15px; line-height: 1.45; }
.su-price-list li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 18px; height: 18px; border-radius: 50%; background: var(--color-success-soft); color: #0F766E; font-size: 12px; font-weight: 800; display: grid; place-items: center; }
.su-price-foot { margin: 16px 0 0; padding-top: 12px; border-top: 1px solid var(--color-border); font-size: 13px; color: var(--color-text-muted); }
.su-form-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 40px; align-items: start; scroll-margin-top: 80px; }
.su-steps { list-style: none; margin: 18px 0 22px; padding: 0; display: grid; gap: 14px; }
.su-steps li { display: flex; align-items: center; gap: 14px; font-size: 16px; color: #334155; }
.su-steps b { width: 36px; height: 36px; flex: none; border-radius: 50%; display: grid; place-items: center; background: #2563EB; color: white; font-weight: 800; }
.su-reassure { margin: 0; padding: 16px 18px; border-radius: 14px; background: var(--color-success-soft); color: #134E4A; line-height: 1.55; }
.su-form { display: grid; gap: 14px; padding: 26px; }
.su-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.su-err { display: block; margin-top: 4px; font-size: 13px; font-weight: 700; color: var(--color-danger); }
.su-alert { margin: 0; padding: 10px 14px; border-radius: 10px; background: var(--color-danger-soft); color: var(--color-danger); font-weight: 700; }
.su-terms { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--color-text-muted); line-height: 1.5; }
.su-terms input { margin-top: 3px; flex: none; }
.su-submit { justify-content: center; width: 100%; }
.su-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.su-faq { max-width: 760px; margin: 0 auto; display: grid; gap: 10px; }
.su-faq details { background: white; border: 1px solid #E2E8F0; border-radius: 12px; padding: 14px 18px; }
.su-faq summary { font-weight: 800; color: #0F172A; }
.su-faq summary::after { content: "+"; float: right; color: var(--color-petrol); font-weight: 800; }
.su-faq details[open] summary::after { content: "–"; }
.su-faq p { margin: 10px 0 0; color: #475569; line-height: 1.6; }
@media (max-width: 860px) {
    .su-form-wrap { grid-template-columns: 1fr; gap: 20px; }
    .su-price { flex: 1 1 100%; }
}
@media (max-width: 560px) { .su-row { grid-template-columns: 1fr; } .su-price-tag b { font-size: 42px; } }

.sb-banner { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; justify-content: center; padding: 9px 16px; font-size: 14px; text-align: center; background: var(--color-secondary-soft); color: #0E4655; border-bottom: 1px solid #CDE3E9; }
.sb-banner a { font-weight: 800; color: inherit; text-decoration: underline; }
.sb-banner-expired, .sb-banner-overdue, .sb-banner-paused { background: var(--color-warning-soft); color: #7C4A03; border-color: #F6DDB0; }
.sb-plan { display: flex; flex-wrap: wrap; gap: 20px 32px; justify-content: space-between; align-items: center; margin-bottom: 20px; border-left: 5px solid var(--color-petrol); }
.sb-plan.sb-trial { border-left-color: #2563EB; }
.sb-plan.sb-active { border-left-color: var(--color-turquoise); }
.sb-plan.sb-expired, .sb-plan.sb-overdue, .sb-plan.sb-paused { border-left-color: var(--color-amber); }
.sb-plan-main { flex: 1 1 320px; }
.sb-plan-main p { margin: 0 0 4px; }
.sb-big { font-size: 26px; font-weight: 800; color: var(--color-navy); letter-spacing: -0.02em; }
.sb-big small { font-size: 15px; color: var(--color-text-muted); font-weight: 700; }
.sb-offer { flex: 0 1 320px; background: #F8FAFC; border: 1px solid var(--color-border); border-radius: 14px; padding: 14px 16px; }
.sb-offer-row { display: flex; justify-content: space-between; align-items: baseline; padding: 6px 0; }
.sb-offer-row b { color: var(--color-navy); font-size: 18px; }
.sb-offer-row em { font-style: normal; font-size: 12px; font-weight: 800; color: #0F766E; background: var(--color-success-soft); border-radius: 999px; padding: 2px 8px; margin-left: 6px; }
.sb-offer-row.is-best { border-top: 1px dashed var(--color-border); }
.sb-rem { display: grid; gap: 10px; }
.sb-opt { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--color-border); border-radius: 12px; cursor: pointer; background: white; }
.sb-opt:hover { border-color: var(--color-petrol); }
.sb-opt:has(input:checked) { border-color: var(--color-petrol); background: var(--color-secondary-soft); }
.sb-opt input { margin-top: 4px; width: 18px; height: 18px; flex: none; accent-color: var(--color-petrol); }
.sb-opt b { display: block; color: var(--color-navy); }
.sb-opt small { display: block; color: var(--color-text-muted); font-size: 13px; margin-top: 2px; }
.sb-previews { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 18px; align-items: start; }
.sb-phone { background: #F1F5F9; border-radius: 22px; padding: 16px 14px; border: 6px solid #0F172A; }
.sb-phone-from { text-align: center; font-size: 12px; font-weight: 800; color: var(--color-text-muted); margin-bottom: 10px; }
.sb-bubble { background: white; border-radius: 16px 16px 16px 4px; padding: 10px 12px; font-size: 14px; line-height: 1.45; margin-bottom: 8px; box-shadow: 0 1px 2px rgba(0, 0, 0, .06); }
.sb-mail { border: 1px solid var(--color-border); border-radius: 12px; overflow: hidden; }
.sb-mail-subj { padding: 10px 14px; font-weight: 800; color: var(--color-navy); background: #F8FAFC; border-bottom: 1px solid var(--color-border); }
.sb-mail pre { margin: 0; padding: 12px 14px; white-space: pre-wrap; font-family: inherit; font-size: 14px; line-height: 1.5; color: var(--color-text); }
.sb-bar { height: 10px; border-radius: 999px; background: #E2E8F0; overflow: hidden; margin-top: 8px; }
.sb-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--color-turquoise), var(--color-petrol)); border-radius: 999px; }
.sb-sep { border: 0; border-top: 1px solid var(--color-border); margin: 14px 0; }
@media (max-width: 720px) { .sb-previews { grid-template-columns: 1fr; } }

/* ===== Centre d'appel (ce-*), planning des secrétaires (pl-*), poste de la secrétaire (sec-*) ===== */
.ce-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 18px; }
.ce-stat { background: white; border: 1px solid var(--color-border); border-radius: 14px; padding: 14px 16px; }
.ce-stat b { display: block; font-size: 26px; font-weight: 800; color: var(--color-navy); letter-spacing: -0.02em; }
.ce-stat span { font-size: 13px; color: var(--color-text-muted); font-weight: 600; }
.ce-stat.is-accent { background: var(--color-success-soft); border-color: #BDE7E0; }
.ce-stat.is-accent b { color: #0F766E; }
.ce-table-wrap { overflow-x: auto; }
.ce-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ce-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--color-text-muted); padding: 8px 10px; border-bottom: 2px solid var(--color-border); }
.ce-table td { padding: 10px; border-bottom: 1px solid #EDF1F5; vertical-align: top; }
.ce-row-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.ce-h3 { margin: 20px 0 10px; font-size: 15px; color: var(--color-navy); }
.ce-newbox { margin: 14px 0; padding: 12px 14px; border-radius: 12px; background: #FFFBEB; border: 1px solid #F6DDB0; }
.ce-cred { margin: 8px 0 0; padding: 10px 12px; background: white; border-radius: 8px; border: 1px dashed #E5C78A; font-size: 14px; white-space: pre-wrap; }
.ce-com-row { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid #EDF1F5; }
.ce-com-row b { color: var(--color-navy); }
.ce-com-row.is-due b { color: #0F766E; font-size: 18px; }
.ce-pay { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; font-size: 14px; }
.ce-pay small { color: var(--color-text-muted); }
.ce-pay b { color: #0F766E; white-space: nowrap; }

.pl-form { display: grid; grid-template-columns: minmax(180px, 240px) 1fr; gap: 14px 20px; align-items: start; }
.pl-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.pl-form legend { font-size: 14px; font-weight: 700; color: var(--color-navy); margin-bottom: 6px; padding: 0; }
.pl-days, .pl-pros { grid-column: 1 / -1; }
.pl-days { grid-column: auto; }
.pl-hours { display: flex; gap: 12px; }
.pl-pros { display: flex; flex-wrap: wrap; gap: 6px; }
.pl-pros legend { width: 100%; }
.pl-form .z-actions { grid-column: 1 / -1; justify-content: flex-end; }
.pl-chip { display: inline-flex; cursor: pointer; margin: 0 4px 4px 0; }
.pl-chip input { position: absolute; opacity: 0; pointer-events: none; }
.pl-chip span { padding: 6px 12px; border-radius: 999px; border: 1px solid #C9D3E1; background: white; font-size: 14px; font-weight: 700; color: var(--color-text-muted); }
.pl-chip input:checked + span { background: var(--color-petrol); border-color: var(--color-petrol); color: white; }
.pl-chip input:focus-visible + span { outline: 3px solid #93C5FD; outline-offset: 2px; }
.pl-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 12px; font-size: 13px; font-weight: 700; color: var(--color-text-muted); }
.pl-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.pl-week { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.pl-day { background: #F8FAFC; border: 1px solid var(--color-border); border-radius: 12px; padding: 10px; min-height: 120px; }
.pl-day h3 { margin: 0 0 8px; font-size: 14px; color: var(--color-navy); }
.pl-empty { margin: 0; font-size: 13px; color: var(--color-text-faint); }
.pl-shift { background: white; border: 1px solid var(--color-border); border-left: 4px solid var(--color-petrol); border-radius: 8px; padding: 7px 9px; margin-bottom: 8px; font-size: 13px; }
.pl-shift-head { display: flex; justify-content: space-between; align-items: center; }
.pl-shift-head b { color: var(--color-navy); font-size: 14px; }
.pl-del { border: 0; background: none; color: var(--color-text-faint); font-size: 18px; line-height: 1; cursor: pointer; padding: 0 2px; }
.pl-del:hover { color: var(--color-danger); }
.pl-who { font-weight: 700; color: var(--color-text); }
.pl-for { color: var(--color-text-muted); }
.pl-gap { margin: 6px 0 0; font-size: 12px; font-weight: 700; color: #92600A; }
@media (max-width: 640px) { .pl-form { grid-template-columns: 1fr; } }

.sec-shifts > summary { list-style: none; cursor: pointer; }
.sec-shifts > summary::-webkit-details-marker { display: none; }
.sec-week { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 4px; font-size: 14px; }
.sec-week li.is-today { color: #0F766E; }
.sb-invite { padding: 12px 14px; border-radius: 12px; background: var(--color-secondary-soft); margin-bottom: 12px; }
.su-invited { margin: 0; padding: 10px 14px; border-radius: 10px; background: var(--color-success-soft); color: #134E4A; }
.su-center { padding: 10px 12px; border-radius: 10px; background: var(--color-secondary-soft); }

/* ===== Mon compte (ac-*) et lien du nom en haut à droite ===== */
.topbar-account { display: inline-flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; border-radius: 999px; padding: 3px 10px 3px 3px; }
.topbar-account:hover, .topbar-account.is-active { background: rgba(255, 255, 255, .12); text-decoration: none; }
.ac-form { display: grid; gap: 14px; }
.ac-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ac-h3 { margin: 10px 0 0; font-size: 16px; color: var(--color-navy); }
.ac-h3 small { font-weight: 600; font-size: 13px; }
@media (max-width: 640px) { .ac-row { grid-template-columns: 1fr; } }

/* ===== Mes rendez-vous en calendrier (ap-*) ===== */
.ap-bar { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.ap-views { display: inline-flex; background: white; border: 1px solid var(--color-border); border-radius: 999px; padding: 3px; }
.ap-views a { padding: 7px 16px; border-radius: 999px; font-weight: 700; font-size: 14px; color: var(--color-text-muted); text-decoration: none; }
.ap-views a[aria-selected="true"] { background: var(--color-navy); color: white; }
.ap-nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ap-period { margin-left: 8px; color: var(--color-navy); font-size: 17px; }
.ap-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.ap-wday { background: white; border: 1px solid var(--color-border); border-radius: 12px; padding: 8px; min-height: 160px; display: flex; flex-direction: column; gap: 6px; }
.ap-wday.is-past { background: #F8FAFC; }
.ap-wday.is-today { border-color: var(--color-petrol); box-shadow: inset 0 3px 0 var(--color-petrol); }
.ap-wday-head { display: flex; align-items: baseline; gap: 6px; color: var(--color-text-muted); font-size: 13px; font-weight: 700; }
.ap-wday-head b { font-size: 20px; color: var(--color-navy); }
.ap-wday.is-today .ap-wday-head b { color: var(--color-petrol); }
.ap-none { color: var(--color-text-faint); font-size: 13px; }
.ap-ev { display: grid; gap: 1px; padding: 7px 8px; border-radius: 8px; background: color-mix(in srgb, var(--c) 12%, white); border-left: 4px solid var(--c); color: var(--color-text); text-decoration: none; font-size: 13px; line-height: 1.3; }
a.ap-ev:hover { background: color-mix(in srgb, var(--c) 20%, white); text-decoration: none; }
.ap-ev b { color: var(--color-navy); }
.ap-ev small { color: var(--color-text-muted); }
.ap-canceled { opacity: .55; text-decoration: line-through; }
.ap-month { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--color-border); border-radius: 12px; overflow: hidden; background: var(--color-border); gap: 1px; }
.ap-mhead { background: #F8FAFC; padding: 8px; font-size: 12px; font-weight: 800; text-transform: uppercase; color: var(--color-text-muted); text-align: center; }
.ap-mday { background: white; min-height: 92px; padding: 6px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ap-mday.is-out { background: #F8FAFC; }
.ap-mday.is-out .ap-mnum { color: var(--color-text-faint); }
.ap-mnum { font-size: 13px; font-weight: 800; color: var(--color-navy); }
.ap-mday.is-today .ap-mnum { background: var(--color-petrol); color: white; border-radius: 999px; width: 24px; height: 24px; display: grid; place-items: center; }
.ap-chip { display: block; font-size: 12px; padding: 2px 6px; border-radius: 6px; background: color-mix(in srgb, var(--c) 14%, white); border-left: 3px solid var(--c); color: var(--color-text); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
a.ap-chip:hover { background: color-mix(in srgb, var(--c) 24%, white); text-decoration: none; }
.ap-row.ap-canceled { text-decoration: none; }
@media (max-width: 860px) {
    .ap-week { grid-template-columns: 1fr; }
    .ap-wday { min-height: 0; flex-direction: row; flex-wrap: wrap; align-items: flex-start; }
    .ap-wday-head { width: 70px; flex: none; }
    .ap-wday .ap-ev { flex: 1 1 200px; }
    .ap-mday { min-height: 64px; padding: 4px; }
    .ap-chip span { display: none; }
    .ap-chip { padding: 2px 4px; }
}

/* Agendas personnels importés (Google, Apple, Outlook) */
.ap-ev.ap-ext { --c: #94A3B8; background: #F1F5F9; border-left-style: dashed; color: var(--color-text-muted); }
.ap-ev.ap-ext b { color: #475569; }
.ap-chip.ap-ext { --c: #94A3B8; background: #F1F5F9; color: #475569; border-left-style: dashed; }
.ap-cals { margin-top: 18px; }
.ap-cal-form { display: grid; grid-template-columns: minmax(140px, 220px) 1fr auto; gap: 12px; align-items: end; margin-top: 12px; }
.ap-help { margin-top: 12px; display: grid; gap: 6px; }
.ap-help details { background: #F8FAFC; border: 1px solid var(--color-border); border-radius: 10px; padding: 8px 12px; }
.ap-help summary { cursor: pointer; font-weight: 700; font-size: 14px; color: var(--color-petrol); }
.ap-help ol { margin: 8px 0 2px; padding-left: 20px; font-size: 14px; line-height: 1.55; }
@media (max-width: 720px) { .ap-cal-form { grid-template-columns: 1fr; } }
.ap-sync-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 28px; }
.ap-sync-part { min-width: 0; }
.ap-h3 { display: flex; align-items: center; gap: 8px; margin: 4px 0 8px; font-size: 16px; color: var(--color-navy); }
.ap-h3 small { font-weight: 600; font-size: 12px; }
.ap-step { width: 26px; height: 26px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 800; background: #E2E8F0; color: var(--color-text-muted); }
.ap-step.is-on { background: var(--color-turquoise); color: white; }
.ap-sync-part .ap-cal-form { grid-template-columns: 1fr; }
@media (max-width: 860px) { .ap-sync-grid { grid-template-columns: 1fr; } }

/* ===== Pages publiques (pp-*) ===== */
.pp-info { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(220px, 1fr); gap: 18px 28px; margin-bottom: 20px; }
.pp-desc { margin: 0 0 10px; line-height: 1.6; color: var(--color-text); }
.pp-facts { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0 0 12px; font-size: 14px; color: var(--color-text-muted); font-weight: 600; }
.pp-h2 { margin: 0 0 8px; font-size: 16px; color: var(--color-navy); }
.pp-hours table { width: 100%; border-collapse: collapse; font-size: 14px; }
.pp-hours th { text-align: left; font-weight: 600; color: var(--color-text-muted); padding: 3px 10px 3px 0; white-space: nowrap; }
.pp-hours td { padding: 3px 0; }
.pp-hours tr.is-today th, .pp-hours tr.is-today td { color: var(--color-petrol); font-weight: 800; }
.pp-crumbs { font-size: 13px; color: var(--color-text-muted); margin: 0 0 10px; }
.pp-crumbs a { color: var(--color-petrol); }
.pp-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.pp-card-title { margin: 0 0 2px; font-size: 18px; }
.pp-card-title a { color: var(--color-navy); }
.pp-card-desc { margin: 0 0 6px; font-size: 14px; color: var(--color-text-muted); line-height: 1.5; }
.pp-related { margin-top: 24px; }
.pp-related a { color: var(--color-petrol); font-weight: 600; }
.pl-box { margin-bottom: 20px; border-left: 5px solid var(--color-turquoise); }
@media (max-width: 760px) { .pp-info { grid-template-columns: 1fr; } }

/* ===== Page de présentation du professionnel (modèle) ===== */
.pp-hero { --c: #155E75; background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 70%, #000)); color: white; border-radius: 20px; padding: 28px; margin-bottom: 18px; }
.pp-hero-in { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.pp-avatar { width: 120px; height: 120px; flex: none; border-radius: 50%; overflow: hidden; background: rgba(255, 255, 255, .18); border: 4px solid rgba(255, 255, 255, .85); display: grid; place-items: center; }
.pp-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pp-avatar span { font-size: 40px; font-weight: 800; }
.pp-id { flex: 1 1 280px; min-width: 0; }
.pp-name { margin: 0; font-size: 32px; line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; color: white; }
.pp-job { margin: 4px 0 0; font-size: 17px; font-weight: 600; opacity: .92; }
.pp-tagline { margin: 10px 0 0; font-size: 16px; line-height: 1.5; opacity: .95; max-width: 640px; }
.pp-hero-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.pp-cta { display: inline-flex; align-items: center; min-height: 46px; padding: 0 22px; border-radius: 12px; background: white; color: var(--c); font-weight: 800; text-decoration: none; }
.pp-cta:hover { text-decoration: none; filter: brightness(.95); }
.pp-share { display: inline-flex; align-items: center; min-height: 46px; padding: 0 16px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .6); background: transparent; color: white; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; }
.pp-share:hover { background: rgba(255, 255, 255, .12); text-decoration: none; color: white; }
.pp-sections { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; margin-bottom: 8px; }
.pp-col { display: grid; gap: 16px; align-content: start; }
.pp-col .z-card { margin: 0; }
.pp-presta { list-style: none; margin: 0; padding: 0; }
.pp-presta li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid #EDF1F5; }
.pp-presta li:last-child { border-bottom: 0; }
.pp-presta b { color: var(--color-navy); white-space: nowrap; }
.pp-practical p { margin: 0 0 8px; font-size: 15px; line-height: 1.5; }
.pp-practical a { color: var(--color-petrol); font-weight: 600; }
.pp-links { display: flex; flex-wrap: wrap; gap: 6px; }
.pp-links a { padding: 4px 12px; border-radius: 999px; border: 1px solid var(--color-border); font-size: 14px; text-decoration: none; }
.pp-booking-title { margin: 22px 0 12px; font-size: 22px; color: var(--color-navy); }
@media (max-width: 760px) {
    .pp-hero { padding: 20px; border-radius: 16px; }
    .pp-hero-in { flex-direction: column; text-align: center; }
    .pp-avatar { width: 96px; height: 96px; }
    .pp-name { font-size: 26px; }
    .pp-hero-actions { justify-content: center; }
    .pp-sections { grid-template-columns: 1fr; }
}

/* ===== Écran « Ma page » (pe-*) ===== */
.pe-photo { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.pe-avatar { --c: #155E75; width: 96px; height: 96px; border-radius: 50%; overflow: hidden; background: var(--c); color: white; display: grid; place-items: center; font-size: 32px; font-weight: 800; flex: none; }
.pe-avatar img { width: 100%; height: 100%; object-fit: cover; }
.pe-form .z-card { margin-bottom: 16px; }
.pe-form .z-field { margin-bottom: 12px; }
.pe-colors { border: 0; padding: 0; margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.pe-colors legend { font-size: 14px; font-weight: 700; color: var(--color-navy); margin-bottom: 6px; padding: 0; }
.pe-colors label { display: grid; justify-items: center; gap: 3px; cursor: pointer; }
.pe-colors input { position: absolute; opacity: 0; pointer-events: none; }
.pe-colors span { width: 36px; height: 36px; border-radius: 50%; border: 3px solid white; box-shadow: 0 0 0 1px var(--color-border); }
.pe-colors input:checked + span { box-shadow: 0 0 0 3px var(--color-navy); }
.pe-colors input:focus-visible + span { outline: 3px solid #93C5FD; outline-offset: 2px; }
.pe-colors small { font-size: 11px; color: var(--color-text-muted); }
.pe-type { display: grid; grid-template-columns: minmax(150px, 1fr) 120px minmax(180px, 2fr); gap: 4px 12px; align-items: end; padding: 10px 0; border-bottom: 1px solid #EDF1F5; }
.pe-type .z-field { margin: 0; }
.pe-type-head { align-self: center; }
.pe-type-head i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; }
.pe-euro { display: flex; align-items: center; gap: 4px; }
.pe-euro input { width: 80px; }
.pe-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 14px; }
.pe-group { margin: 10px 0 4px; }
.pe-label { display: block; font-size: 14px; font-weight: 700; color: var(--color-navy); margin-bottom: 6px; }
.pe-save { display: flex; gap: 10px; flex-wrap: wrap; position: sticky; bottom: 0; background: var(--color-bg); padding: 12px 0; }
.pe-tips { margin: 0; padding-left: 18px; font-size: 14px; line-height: 1.6; color: var(--color-text-muted); }
@media (max-width: 640px) { .pe-type { grid-template-columns: 1fr; } }
.sb-pay { display: flex; flex-wrap: wrap; gap: 6px; }

/* ===== Téléphone : menu replié, cibles tactiles, éditeur de semaine ===== */
.topbar-menu { display: contents; }
.topbar-burger { display: none; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 10px; border: 1px solid #2A3F5C; background: transparent; color: white; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.topbar-burger-icon, .topbar-burger-icon::before, .topbar-burger-icon::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .2s ease; }
.topbar-burger-icon::before, .topbar-burger-icon::after { content: ""; position: absolute; left: 0; }
.topbar-burger-icon::before { top: -6px; }
.topbar-burger-icon::after { top: 6px; }
.topbar.is-open .topbar-burger-icon { background: transparent; }
.topbar.is-open .topbar-burger-icon::before { transform: translateY(6px) rotate(45deg); }
.topbar.is-open .topbar-burger-icon::after { transform: translateY(-6px) rotate(-45deg); }
.wk-block.is-moving { outline: 3px solid var(--color-navy); outline-offset: 1px; z-index: 3; }
@media (max-width: 860px) {
    body { padding: 0 16px 20px; }
    .topbar { min-height: 60px; padding: 8px 16px; margin: 0 -16px 18px -16px; flex-wrap: wrap; }
    .topbar-burger { display: inline-flex; }
    .topbar-menu { display: none; width: 100%; padding: 4px 0 12px; }
    .topbar.is-open .topbar-menu { display: block; }
    .topbar-nav { flex-direction: column; gap: 0; }
    .topbar-nav a { padding: 13px 4px; border-bottom: 1px solid #1E3352; font-size: 16px; }
    .topbar-nav a.is-active { border-bottom-color: #1E3352; box-shadow: inset 3px 0 0 var(--color-turquoise); padding-left: 12px; }
    .topbar-menu .topbar-right { justify-content: space-between; padding-top: 12px; }
    .topbar-name { display: inline; }
    .topbar-logout { min-height: 40px; }
    /* Visiteur : lien pro raccourci */
    .topbar > .topbar-right { gap: 8px; }
    .topbar-pill { font-size: 12px; padding: 6px 10px; }
    /* Bandeaux et messages flash sur toute la largeur */
    .sb-banner { margin: -18px -16px 16px; }
}
@media (max-width: 420px) {
    .topbar > .topbar-right .topbar-pill { display: none; }
}
/* Cibles tactiles confortables (44 px) */
@media (pointer: coarse) {
    .z-btn-sm, .z-btn-ghost.z-btn-sm { min-height: 40px; }
    .z-slot span, .z-slot-link { min-height: 42px; display: inline-flex; align-items: center; }
    .mx-quick button, .pl-chip span { min-height: 36px; display: inline-flex; align-items: center; }
}
@media (min-width: 861px) and (max-width: 1180px) { .topbar-nav { gap: 4px 18px; } .topbar-nav a { font-size: 14px; } .topbar-name { display: none; } }
@media (max-width: 860px) { .ap-chip { font-size: 10px; padding: 1px 2px; border-left-width: 2px; text-overflow: clip; letter-spacing: -0.02em; } .ap-mday { padding: 3px 2px; } }
@media (max-width: 420px) { .topbar-burger { padding: 0 10px; } .topbar-burger-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } .topbar-brand { font-size: 17px; gap: 6px; } }
@media (max-width: 860px) { .ce-stats { grid-template-columns: 1fr 1fr; gap: 8px; } .ce-stat { padding: 10px 12px; } .ce-stat b { font-size: 22px; } }
.tp-short { display: none; }
@media (max-width: 760px) { .pp-id { flex: none; width: 100%; } }
@media (max-width: 520px) { .tp-long { display: none; } .tp-short { display: inline; } }
@media (max-width: 420px) { .topbar > .topbar-right .topbar-pill { display: inline-flex; } }

/* ===== Pages légales (lg-*) et pied de page ===== */
.lg-nav { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0 0 14px; font-size: 14px; }
.lg-nav a { color: var(--color-petrol); font-weight: 600; }
.lg-doc { max-width: 860px; line-height: 1.65; }
.lg-doc h2 { margin: 26px 0 8px; font-size: 19px; color: var(--color-navy); }
.lg-doc ul { padding-left: 22px; }
.lg-doc li { margin-bottom: 6px; }
.lg-lead { font-size: 16px; color: var(--color-text); }
.lg-todo { background: #FEF3C7; color: #92400E; padding: 0 4px; border-radius: 4px; font-weight: 700; }
.lg-warn { background: var(--color-warning-soft); border: 1px solid #F6DDB0; border-radius: 10px; padding: 10px 14px; font-size: 14px; }
.lg-table-wrap { overflow-x: auto; }
.lg-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.lg-table th, .lg-table td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--color-border); }
.lg-table th { background: #F8FAFC; color: var(--color-navy); }
.lg-foot { margin-top: 28px; padding-top: 12px; border-top: 1px solid var(--color-border); }
.site-footer { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; align-items: center; max-width: 1200px; margin: 40px auto 0; padding: 18px 0 8px; border-top: 1px solid var(--color-border); font-size: 13px; color: var(--color-text-muted); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.site-footer a { color: var(--color-text-muted); }
.site-footer a:hover { color: var(--color-petrol); }
.ac-danger { margin-top: 14px; }
.ac-danger summary { color: var(--color-danger); cursor: pointer; font-weight: 700; }

/* Planning secrétaire : recherche du patient dans « Rendez-vous par téléphone » */
.sp-search { display: flex; gap: 8px; margin-bottom: 10px; }
.sp-search .z-field { flex: 1 1 auto; margin: 0; }
.sp-search input[type=search] { min-height: 46px; }
.sp-results { margin-bottom: 8px; }
.sp-new { margin: 4px 0 16px; padding: 10px 12px; border: 1px dashed #C9D3E1; border-radius: 10px; background: white; }
.sp-new summary { cursor: pointer; display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.sp-new-form { display: grid; gap: 10px; margin-top: 10px; }
.sp-new-form .z-field { margin: 0; }

/* ---------- Acompte / empreinte de carte, liste d'attente ---------- */
.gs-step, .gs-ok { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.gs-step p { flex: 1 1 100%; }
.gs-form { display: grid; gap: 12px; }
.gs-modes { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.gs-modes legend { font-weight: 800; margin-bottom: 6px; }
.gs-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.gs-row .z-field { margin: 0; }
.gs-notice { background: var(--color-warning-soft); border-radius: 10px; padding: 10px 12px; margin: 0 0 14px; }
.gs-notice strong { color: #92600A; }
.gs-notice p { margin: 4px 0 0; font-size: 14px; }
.gs-tag { background: #E7F0FA; color: #1E4E8C; }
.gs-late { border-left: 4px solid #D97706; }
.gs-late-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid #EEF2F6; }
.wl { margin-top: 16px; }
.wl-on { margin: 0 0 10px; color: #0F766E; font-weight: 700; }
.wl-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.wl-form .z-field { margin: 0; flex: 1 1 140px; }
@media (max-width: 600px) { .wl-form .z-btn { width: 100%; } }
.lp-pro-name { display: inline-block; color: var(--color-navy); text-decoration: none; }
.lp-pro-name:hover, .lp-pro-name:focus-visible { color: var(--color-petrol); text-decoration: underline; }
.site-credit { flex: 1 1 100%; text-align: center; font-size: 12px; }
.site-credit a { font-weight: 700; }

/* ---------- Mes options (options par métier) ---------- */
.op-card { margin-bottom: 16px; }
.op-card.is-on { border-left: 4px solid #0F766E; }
.op-top { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px; }
.op-text { flex: 1 1 320px; min-width: 0; }
.op-text .z-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.op-body { margin-top: 14px; padding-top: 14px; border-top: 1px solid #EEF2F6; }
.op-questions { margin: 0 0 12px; padding-left: 20px; display: grid; gap: 8px; }
.op-q-line { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; }
.op-q-form { display: grid; gap: 10px; margin-top: 10px; padding: 12px; background: #F8FAFC; border-radius: 10px; min-width: min(420px, 100%); }
.op-q-form .z-field { margin: 0; }
.op-kind { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.op-kind legend { margin-bottom: 4px; }
.op-q-form:has(input[value="text"]:checked) .op-choices { display: none; }
.op-add > summary { display: inline-flex; }
.op-places { display: grid; gap: 8px; }
.op-place { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid #F1F5F9; }
.op-place input { width: 80px; }
.op-more { background: #F8FAFC; }
.op-answers { margin: 6px 0 0; display: grid; gap: 2px; font-size: 14px; }
.op-answers div { display: flex; flex-wrap: wrap; gap: 4px; }
.op-answers dt { color: var(--color-text-muted); }
.op-answers dt::after { content: " :"; }
.op-answers dd { margin: 0; font-weight: 700; }
.pp-questions { display: grid; gap: 10px; margin-bottom: 14px; }
.pp-questions .z-field { margin: 0; }
.pp-places { display: block; font-size: 11px; font-weight: 700; opacity: .8; }

/* ---------- Rendez-vous par téléphone uniquement ---------- */
.ph { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.ph > .z-title, .ph > p { grid-column: 1 / -1; }
.ph-main { display: grid; gap: 8px; align-content: start; }
.ph-number { font-size: 26px; font-weight: 800; color: var(--color-navy); text-decoration: none; letter-spacing: .02em; }
.ph-status { margin: 0; padding: 8px 12px; border-radius: 10px; font-size: 15px; }
.ph-status.is-open { background: var(--color-success-soft); color: #0F766E; }
.ph-status.is-closed { background: var(--color-warning-soft); color: #92600A; }
.ph-call { min-height: 52px; font-size: 17px; justify-self: start; }
.ph-remind { background: #F8FAFC; border-radius: 12px; padding: 14px; }
.ph-remind h3 { margin: 0 0 4px; font-size: 16px; }
.ph-form .z-field { margin: 0 0 10px; }
.ph-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ph-tag { color: var(--color-navy); font-weight: 700; align-self: center; }
.op-phone { display: grid; gap: 12px; }
.op-phone .z-field { margin: 0; }
.op-days { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.op-days legend { margin-bottom: 4px; }
.op-hours { display: grid; grid-template-columns: auto auto auto auto; gap: 8px; align-items: center; justify-content: start; }
@media (max-width: 600px) { .ph-call { justify-self: stretch; } .op-hours { grid-template-columns: auto 1fr auto 1fr; } }

/* ---------- Entreprises ---------- */
.co-invite { border-left: 4px solid var(--color-petrol); margin-bottom: 16px; }
.co-member { align-items: center; }
.co-add { margin-top: 12px; }
.co-add > summary { display: inline-flex; }
.co-form { display: grid; gap: 10px; margin-top: 10px; }
.co-form .z-field { margin: 0; }
.co-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.co-pay { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.co-pay legend { font-weight: 800; margin-bottom: 6px; }
.cp-info { margin-bottom: 16px; }
.cp-any { margin-bottom: 16px; }
.cp-any .z-slot-link small { font-weight: 600; opacity: .8; }
.cp-team { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.cp-member { display: flex; flex-direction: column; align-items: flex-start; }
.cp-who { display: flex; gap: 12px; align-items: center; }
.cp-photo { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.pp-company { margin: 0 0 8px; }
.pp-rating { margin: 0 0 8px; }
.pp-rating a { text-decoration: none; color: inherit; }

/* ---------- Avis ---------- */
.rv-stars { color: #D97706; letter-spacing: 1px; }
.rv { margin-top: 16px; }
.rv-item { padding: 12px 0; border-top: 1px solid #EEF2F6; }
.rvp .rv-item { margin-bottom: 12px; border-top: 0; }
.rv-head { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; }
.rv-text { margin: 6px 0 0; }
.rv-reply { margin: 8px 0 0 16px; padding: 8px 12px; border-left: 3px solid var(--color-petrol); background: #F8FAFC; font-size: 14px; }
.rv-reply-form, .rv-report { display: grid; gap: 8px; margin-top: 10px; }
.rv-reply-form .z-field, .rv-report .z-field { margin: 0; }
.rv-ask { border-left: 4px solid #D97706; }
.rv-form-wrap { padding: 8px 0; border-top: 1px solid #EEF2F6; }
.rv-summary { cursor: pointer; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.rv-form { display: grid; gap: 10px; margin-top: 10px; }
.rv-form .z-field { margin: 0; }
.rv-rate { border: 0; padding: 0; margin: 0; display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
.rv-rate legend { width: 100%; margin-bottom: 2px; }
.rv-rate input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rv-rate label { font-size: 30px; line-height: 1; color: #CBD5E1; cursor: pointer; padding: 2px; }
.rv-rate label:hover, .rv-rate label:hover ~ label, .rv-rate input:checked ~ label { color: #D97706; }
.rv-rate input:focus-visible + label { outline: 2px solid var(--color-petrol); border-radius: 4px; }
.rv-mini { margin-top: 2px; }

/* ---------- Agenda de l'équipe ---------- */
.ta .z-plan-col.is-mine { background: #F0FDFA; border-radius: 10px; }
.ta .ta-free { cursor: default; opacity: .75; }

/* ---------- Présentation commerciale ---------- */
.pr-pains { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; max-width: 1100px; margin: 0 auto; }
.pr-pain { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 16px; padding: 18px; display: grid; gap: 10px; }
.pr-before { margin: 0; color: var(--color-text-muted); text-decoration: line-through; text-decoration-color: rgba(185, 28, 28, .45); }
.pr-before span { color: var(--color-danger); text-decoration: none; display: inline-block; }
.pr-after { margin: 0; font-weight: 700; color: var(--color-navy); }
.pr-after span { color: var(--color-turquoise); }
.pr-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; max-width: 1100px; margin: 0 auto; }
.pr-item { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 14px; padding: 14px 16px; display: grid; gap: 4px; }
.pr-item b { color: var(--color-navy); }
.pr-item span { font-size: 14px; color: var(--color-text-muted); }
.pr-options { max-width: 760px; margin: 0 auto; padding: 0; list-style: none; display: grid; gap: 10px; }
.pr-options li { background: var(--color-secondary-soft); border-radius: 12px; padding: 12px 16px; font-weight: 700; color: var(--color-petrol); }
.pr-options li::before { content: "✓ "; color: var(--color-turquoise); }
.pr-table-wrap { max-width: 760px; margin: 0 auto; overflow-x: auto; }
.pr-table { width: 100%; border-collapse: collapse; background: var(--color-surface); border-radius: 14px; overflow: hidden; }
.pr-table th, .pr-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--color-border); }
.pr-table th { background: var(--color-navy); color: #fff; font-size: 14px; }
.pr-steps { list-style: none; padding: 0; margin: 0 auto; max-width: 1000px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.pr-steps li { display: flex; gap: 12px; align-items: flex-start; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 14px; padding: 16px; }
.pr-steps b { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--color-petrol); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.pr-faq { max-width: 760px; margin: 0 auto; display: grid; gap: 8px; }
.pr-faq .z-details { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 12px; padding: 12px 16px; }
.pr-faq summary { font-weight: 700; cursor: pointer; }
.pr-faq p { margin: 8px 0 0; }
.pr-metiers { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.pr .pr-item > span, .pr .pr-item > b { border: 0; padding: 0; background: none; box-shadow: none; display: block; min-height: 0; }

.pr-indep { border-left: 4px solid var(--color-turquoise); }
.pr-examples .z-chip { cursor: default; }

/* ---------- Démonstration animée (/decouvrir) ---------- */
.dm-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; margin: 8px 0 18px; }
.dm-player { background: var(--color-navy); border-radius: 22px; padding: 22px; color: #fff; }
.dm-stage { position: relative; height: 470px; border-radius: 16px; background: radial-gradient(circle at 70% 20%, rgba(20,184,166,.25), rgba(11,31,58,0) 60%), #0E2747; overflow: hidden; }
.dm-scene { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; opacity: 0; transform: translateY(12px); transition: opacity .5s, transform .5s; pointer-events: none; }
.dm-scene.is-active { opacity: 1; transform: none; }
.dm-cursor { display: none; }
/* Téléphone et écran */
.dm-phone { width: 250px; height: 440px; border-radius: 34px; background: #050E1C; padding: 12px; box-shadow: 0 20px 50px rgba(0,0,0,.45); position: relative; }
.dm-phone-notch { position: absolute; top: 12px; left: 50%; width: 90px; height: 18px; margin-left: -45px; background: #050E1C; border-radius: 0 0 12px 12px; z-index: 2; }
.dm-phone-screen { background: #F4F7FA; color: var(--color-text); height: 100%; border-radius: 24px; padding: 34px 14px 14px; display: flex; flex-direction: column; gap: 10px; overflow: hidden; font-size: 13px; }
.dm-screen { width: min(620px, 92%); background: #F4F7FA; color: var(--color-text); border-radius: 12px; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,.45); }
.dm-screen-bar { background: #DDE4EC; padding: 8px 12px; display: flex; gap: 6px; align-items: center; font-size: 12px; font-weight: 700; color: var(--color-text-muted); }
.dm-screen-bar i { width: 10px; height: 10px; border-radius: 50%; background: #F87171; }
.dm-screen-bar i:nth-child(2) { background: #FBBF24; }
.dm-screen-bar i:nth-child(3) { background: #34D399; }
.dm-screen-bar span { margin-left: 8px; }
.dm-screen-body { padding: 16px; display: flex; flex-direction: column; gap: 10px; min-height: 300px; position: relative; font-size: 14px; }
/* Éléments d'interface */
.dm-p-head b { display: block; color: var(--color-navy); font-size: 15px; }
.dm-p-head small { color: var(--color-text-muted); }
.dm-p-label { margin: 4px 0 0; font-weight: 800; color: var(--color-navy); font-size: 12px; }
.dm-slots, .dm-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.dm-slots span, .dm-chips span { background: #fff; border: 1px solid var(--color-border); border-radius: 8px; padding: 6px 10px; font-weight: 700; color: var(--color-petrol); font-size: 13px; }
.dm-chips .dm-on { background: var(--color-petrol); color: #fff; border-color: var(--color-petrol); }
.dm-p-btn { background: #2563EB; color: #fff; text-align: center; border-radius: 10px; padding: 10px; font-weight: 800; font-size: 13px; position: relative; overflow: hidden; }
.dm-p-btn.dm-ghost { background: #fff; color: var(--color-navy); border: 1px solid var(--color-border); }
.dm-done { background: var(--color-success-soft); color: #0F766E; border-radius: 10px; padding: 10px; font-weight: 800; text-align: center; }
.dm-done small { display: block; font-weight: 600; color: var(--color-text-muted); }
.dm-row { display: flex; gap: 10px; align-items: center; }
.dm-row > span { width: 44px; color: var(--color-text-muted); font-weight: 700; font-size: 13px; }
.dm-appt, .dm-free { flex: 1; display: block; border-radius: 8px; padding: 8px 10px; font-weight: 700; font-style: normal; }
.dm-appt { background: #fff; border-left: 4px solid var(--color-petrol); color: var(--color-navy); }
.dm-free { border: 1px dashed #94A3B8; color: var(--color-text-muted); background: transparent; }
.dm-appt em { font-style: normal; font-size: 11px; background: var(--color-turquoise); color: #fff; border-radius: 6px; padding: 1px 6px; margin-left: 6px; }
.dm-cancel em { background: #B91C1C; }
.dm-toast { position: absolute; right: 14px; bottom: 14px; background: var(--color-navy); color: #fff; border-radius: 10px; padding: 9px 12px; font-weight: 700; font-size: 13px; box-shadow: 0 8px 24px rgba(0,0,0,.25); max-width: calc(100% - 28px); }
.dm-toast-1 { bottom: 60px; }
.dm-sms { background: #fff; border-radius: 14px 14px 14px 4px; padding: 10px 12px; box-shadow: 0 2px 8px rgba(0,0,0,.08); line-height: 1.4; }
.dm-mail { background: #fff; border-radius: 10px; padding: 10px 12px; border-left: 4px solid var(--color-turquoise); }
.dm-mail small { display: block; color: var(--color-text-muted); }
.dm-card { background: linear-gradient(135deg, #0B1F3A, #155E75); color: #fff; border-radius: 12px; padding: 16px 12px; }
.dm-card span { display: block; letter-spacing: 2px; font-weight: 800; }
.dm-card small { opacity: .85; }
.dm-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.dm-cols > div { display: flex; flex-direction: column; gap: 6px; }
.dm-cols b { color: var(--color-navy); }
.dm-search { background: #fff; border: 1px solid var(--color-border); border-radius: 22px; padding: 9px 16px; color: var(--color-text-muted); }
.dm-result { background: #fff; border-radius: 10px; padding: 12px; display: grid; gap: 3px; }
.dm-result small { color: #15803D; }
.dm-result b { color: #1A0DAB; font-size: 16px; }
.dm-stars { color: #D97706; letter-spacing: 1px; }
.dm-r-btn { justify-self: start; margin-top: 6px; background: #2563EB; color: #fff; border-radius: 8px; padding: 6px 12px; font-weight: 800; }
.dm-ring { align-self: flex-start; background: #FEF3E2; color: #92600A; border-radius: 20px; padding: 6px 12px; font-weight: 800; }
.dm-input { background: #fff; border: 1px solid var(--color-border); border-radius: 10px; padding: 9px 12px; min-height: 40px; display: flex; flex-direction: column; }
.dm-input small { color: var(--color-text-muted); font-size: 11px; }
.dm-type { display: inline-block; overflow: hidden; white-space: nowrap; border-right: 2px solid var(--color-petrol); font-weight: 700; max-width: 0; align-self: flex-start; padding-right: 2px; }
.dm-found { background: #fff; border-radius: 10px; padding: 10px 12px; border-left: 4px solid var(--color-turquoise); }
.dm-found b { color: var(--color-navy); }
.dm-found small { display: block; color: var(--color-text-muted); }
.dm-task { background: #fff; border-radius: 10px; padding: 10px 12px; font-weight: 700; color: var(--color-navy); }
.dm-check { display: flex; justify-content: space-between; background: #fff; border-radius: 10px; padding: 10px 12px; font-weight: 700; }
.dm-check em { font-style: normal; color: #0F766E; }
/* Légende et commandes */
.dm-caption { position: relative; min-height: 78px; margin-top: 16px; }
.dm-cap { position: absolute; inset: 0; opacity: 0; transition: opacity .4s; }
.dm-cap.is-active { opacity: 1; position: relative; }
.dm-cap b { font-size: 19px; }
.dm-cap p { margin: 4px 0 0; color: #C9D6E4; }
.dm-controls { display: flex; align-items: center; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.dm-btn { width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 18px; cursor: pointer; }
.dm-btn:hover, .dm-btn:focus-visible { background: rgba(255,255,255,.25); }
.dm-dots { display: flex; gap: 6px; flex: 1; min-width: 180px; }
.dm-dot { flex: 1; height: 6px; border: 0; padding: 0; border-radius: 3px; background: rgba(255,255,255,.2); cursor: pointer; overflow: hidden; }
.dm-dot i { display: block; height: 100%; width: 0; background: var(--color-turquoise); }
.dm-dot.is-active i { animation: dm-progress 7s linear forwards; }
.dm-note { margin: 10px 0 0; font-size: 12px; color: #8FA3B8; }
@keyframes dm-progress { to { width: 100%; } }
/* Enchaînement des scènes (les délais rythment chaque scène de 7 s) */
@keyframes dm-in { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes dm-pick { 50% { transform: scale(1.12); } 100% { background: var(--color-petrol); color: #fff; border-color: var(--color-petrol); } }
@keyframes dm-press { 40% { transform: scale(.94); filter: brightness(.85); } }
@keyframes dm-type { from { max-width: 0; } to { max-width: 20ch; } }
@keyframes dm-strike { to { text-decoration: line-through; opacity: .55; } }
@keyframes dm-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(20,184,166,.6); } 50% { box-shadow: 0 0 0 8px rgba(20,184,166,0); } }
@keyframes dm-ring { 20%, 60% { transform: rotate(-4deg); } 40%, 80% { transform: rotate(4deg); } }
.dm-scene .dm-done, .dm-scene .dm-toast, .dm-scene .dm-mail, .dm-scene .dm-found, .dm-scene .dm-task, .dm-scene .dm-refill, .dm-scene .dm-result, .dm-scene .dm-sms, .dm-scene .dm-check em { opacity: 0; }
.dm-scene.is-active .dm-pick { animation: dm-pick .6s ease 1.2s forwards; }
.dm-scene.is-active .dm-press { animation: dm-press .5s ease 2.6s; }
.dm-scene.is-active .dm-done { animation: dm-in .5s ease 3.3s both; }
.dm-scene.is-active .dm-new { animation: dm-in .6s ease 1s both, dm-pulse 1.4s ease 1.8s 2; }
.dm-scene.is-active .dm-toast { animation: dm-in .5s ease 2.4s both; }
.dm-scene.is-active .dm-toast-1 { animation-delay: 2s; }
.dm-scene.is-active .dm-sms { animation: dm-in .5s ease .8s both; }
.dm-scene.is-active .dm-mail { animation: dm-in .5s ease 2.6s both; }
.dm-scene.is-active .dm-cancel { animation: dm-strike .4s ease 1s forwards; }
.dm-scene.is-active .dm-refill { animation: dm-in .6s ease 3.8s both; }
.dm-scene.is-active .dm-refill .dm-new { animation: dm-pulse 1.4s ease 4.3s 2; }
.dm-scene.is-active .dm-type { animation: dm-type 1.4s steps(14) .6s both; }
.dm-scene.is-active .dm-type-2 { animation-delay: 2s; }
.dm-scene.is-active .dm-found { animation: dm-in .5s ease 2s both; }
.dm-scene.is-active .dm-ring { animation: dm-ring .5s ease 0s 3; }
.dm-scene.is-active .dm-task { animation: dm-in .5s ease 1.8s both; }
.dm-scene.is-active .dm-task-2 { animation-delay: 3.4s; }
.dm-scene.is-active .dm-check em { animation: dm-in .4s ease 1s both; }
.dm-scene.is-active .dm-check-2 em { animation-delay: 2s; }
.dm-scene.is-active .dm-check-3 em { animation-delay: 3s; }
.dm-scene.is-active .dm-result { animation: dm-in .6s ease 1.2s both; }
.dm.is-paused .dm-scene *, .dm.is-paused .dm-dot i { animation-play-state: paused !important; }
@media (max-width: 640px) {
    .dm-player { padding: 14px; border-radius: 16px; }
    .dm-stage { height: 480px; }
    .dm-screen-body { padding: 12px; font-size: 13px; min-height: 0; }
    .dm-cap b { font-size: 16px; }
}
/* Animations réduites (réglage du système) : tout est visible et immobile, jusqu'à ce que le visiteur lance la démo */
@media (prefers-reduced-motion: reduce) {
    .dm:not(.dm-motion-ok) .dm-scene *, .dm:not(.dm-motion-ok) .dm-dot i { animation: none !important; }
    .dm:not(.dm-motion-ok) .dm-scene .dm-done, .dm:not(.dm-motion-ok) .dm-scene .dm-toast, .dm:not(.dm-motion-ok) .dm-scene .dm-mail, .dm:not(.dm-motion-ok) .dm-scene .dm-found,
    .dm:not(.dm-motion-ok) .dm-scene .dm-task, .dm:not(.dm-motion-ok) .dm-scene .dm-refill, .dm:not(.dm-motion-ok) .dm-scene .dm-result, .dm:not(.dm-motion-ok) .dm-scene .dm-sms,
    .dm:not(.dm-motion-ok) .dm-scene .dm-check em { opacity: 1; }
    .dm:not(.dm-motion-ok) .dm-type { max-width: none; border-right: 0; }
}
.dm-start { position: absolute; inset: 0; z-index: 5; display: none; align-items: center; justify-content: center; background: rgba(11,31,58,.55); border: 0; cursor: pointer; color: #fff; font: inherit; }
.dm-start span { background: var(--color-turquoise); color: var(--color-navy); font-weight: 800; font-size: 18px; border-radius: 40px; padding: 14px 26px; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.dm.is-waiting .dm-start { display: flex; }

.pr-demo-link { display: inline-block; margin-top: 10px; color: var(--color-turquoise); font-weight: 800; text-decoration: none; }
.pr-demo-link:hover { text-decoration: underline; }

/* ---------- Démonstration : mode vidéo (tournage des films, ?video=h ou ?video=v) ---------- */
.dm-render { background: #0B1F3A; margin: 0; overflow: hidden; }
.dm-render .topbar, .dm-render .site-footer, .dm-render .dm-head, .dm-render .dm-controls, .dm-render .lp-cta, .dm-render .z-flash, .dm-render .dm-start { display: none !important; }
.dm-render .dm { max-width: none; width: 100vw; height: 100vh; padding: 0; margin: 0; }
.dm-render .dm-player { position: fixed; inset: 0; width: auto; height: auto; border-radius: 0; display: flex; flex-direction: column; box-sizing: border-box; }
.dm-render .dm-stage { flex: 1; height: auto; border-radius: 22px; }
.dm-render .dm-scene, .dm-render .dm-cap { transition: none; }
.dm-render .dm-caption { min-height: 0; }
.dm-render .dm-note { position: absolute; color: #6F86A0; }
.dm-vbrand { position: absolute; display: flex; align-items: center; gap: 10px; font-weight: 800; color: #fff; z-index: 6; }
.dm-vbrand span { color: var(--color-turquoise); }
.dm-vbrand img { border-radius: 10px; }
.dm-vprogress { position: absolute; left: 0; right: 0; bottom: 0; height: 8px; background: rgba(255,255,255,.1); }
.dm-vprogress i { display: block; height: 100%; width: 0; background: var(--color-turquoise); }
.dm-intro, .dm-outro { display: flex; flex-direction: column; align-items: center; text-align: center; color: #fff; gap: 14px; }
.dm-intro img, .dm-outro img { border-radius: 28px; box-shadow: 0 20px 60px rgba(20,184,166,.35); }
.dm-intro b { font-weight: 800; letter-spacing: -1px; }
.dm-intro b span { color: var(--color-turquoise); }
.dm-intro p, .dm-outro p { margin: 0; color: #C9D6E4; }
.dm-outro b { font-weight: 800; }
.dm-outro-url { background: var(--color-turquoise); color: var(--color-navy); font-weight: 800; border-radius: 60px; }
@keyframes dm-pop { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }
.dm-scene.is-active .dm-intro > *, .dm-scene.is-active .dm-outro > * { animation: dm-pop .7s ease both; }
.dm-scene.is-active .dm-intro > :nth-child(2), .dm-scene.is-active .dm-outro > :nth-child(2) { animation-delay: .35s; }
.dm-scene.is-active .dm-intro > :nth-child(3), .dm-scene.is-active .dm-outro > :nth-child(3) { animation-delay: .7s; }
.dm-scene.is-active .dm-outro > :nth-child(4) { animation-delay: 1.1s; }
/* 16:9 — 1920 × 1080 */
.dm-render-h .dm-player { padding: 90px 64px 56px; }
.dm-render-h .dm-phone { zoom: 1.72; }
.dm-render-h .dm-screen { zoom: 1.85; width: 620px; }
.dm-render-h .dm-caption { margin-top: 26px; }
.dm-render-h .dm-cap b { font-size: 44px; }
.dm-render-h .dm-cap p { font-size: 28px; margin-top: 8px; }
.dm-render-h .dm-vbrand { top: 26px; left: 64px; font-size: 30px; }
.dm-render-h .dm-vbrand img { width: 44px; height: 44px; }
.dm-render-h .dm-note { top: 36px; right: 64px; font-size: 18px; margin: 0; }
.dm-render-h .dm-intro img, .dm-render-h .dm-outro img { width: 170px; height: 170px; }
.dm-render-h .dm-intro b { font-size: 96px; }
.dm-render-h .dm-intro p, .dm-render-h .dm-outro p { font-size: 34px; }
.dm-render-h .dm-outro b { font-size: 76px; }
.dm-render-h .dm-outro-url { font-size: 44px; padding: 14px 44px; }
/* 9:16 — 1080 × 1920 */
.dm-render-v .dm-player { padding: 150px 40px 110px; }
.dm-render-v .dm-phone { zoom: 2.4; }
.dm-render-v .dm-screen { zoom: 2.05; width: 470px; }
.dm-render-v .dm-screen-body { min-height: 380px; }
.dm-render-v .dm-cols { grid-template-columns: 1fr; }
.dm-render-v .dm-caption { margin-top: 40px; }
.dm-render-v .dm-cap b { font-size: 58px; line-height: 1.15; }
.dm-render-v .dm-cap p { font-size: 38px; margin-top: 14px; line-height: 1.35; }
.dm-render-v .dm-vbrand { top: 50px; left: 40px; font-size: 40px; }
.dm-render-v .dm-vbrand img { width: 60px; height: 60px; }
.dm-render-v .dm-note { bottom: 40px; left: 40px; font-size: 24px; margin: 0; }
.dm-render-v .dm-intro img, .dm-render-v .dm-outro img { width: 240px; height: 240px; }
.dm-render-v .dm-intro b { font-size: 110px; }
.dm-render-v .dm-intro p, .dm-render-v .dm-outro p { font-size: 44px; padding: 0 30px; }
.dm-render-v .dm-outro b { font-size: 84px; padding: 0 20px; }
.dm-render-v .dm-outro-url { font-size: 56px; padding: 18px 56px; }

/* ---------- Visites du site (admin) ---------- */
.vs-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 4px 0 16px; }
.vs-kpis div { background: var(--color-bg); border-radius: 12px; padding: 12px 14px; }
.vs-kpis b { display: block; font-size: 24px; color: var(--color-navy); }
.vs-kpis span { font-size: 13px; color: var(--color-text-muted); }
.vs-bars .vs-views { background: #9CC9D6; }
.vs-lists { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: 16px; }
.vs-lists h3 { margin: 0 0 8px; font-size: 15px; color: var(--color-navy); }
.vs-row { display: grid; grid-template-columns: 1fr auto 70px; gap: 10px; align-items: baseline; padding: 6px 0; border-bottom: 1px solid var(--color-border); font-size: 14px; }
.vs-row span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vs-row small { color: var(--color-text-muted); text-align: right; }

/* ---------- Agenda : bouton Jour / Semaine et vue semaine ---------- */
.aw-switch { display: inline-flex; border: 1px solid var(--color-border); border-radius: 999px; overflow: hidden; background: white; }
.aw-switch a { padding: 6px 14px; font-size: 14px; font-weight: 700; color: var(--color-text-muted); margin: 0; }
.aw-switch a:hover { text-decoration: none; color: var(--color-petrol); }
.aw-switch a.is-on { background: var(--color-petrol); color: white; }
.aw-scroll { overflow-x: auto; background: white; border: 1px solid var(--color-border); border-radius: 14px; padding: 8px 8px 12px 0; }
.aw-grid { display: grid; grid-template-columns: 52px repeat(var(--aw-cols), minmax(118px, 1fr)); min-width: calc(52px + var(--aw-cols) * 118px); }
.aw-corner { position: sticky; top: 0; }
.aw-dayhead { display: flex; flex-direction: column; align-items: center; padding: 6px 4px 8px; margin: 0; color: var(--color-navy); border-bottom: 1px solid var(--color-border); font-weight: 800; }
.aw-dayhead small { font-weight: 600; color: var(--color-text-muted); font-size: 12px; }
.aw-dayhead:hover { text-decoration: none; color: var(--color-petrol); }
.aw-dayhead.is-today { color: var(--color-petrol); box-shadow: inset 0 -3px 0 var(--color-petrol); }
.aw-hours { position: relative; }
.aw-hours span { position: absolute; right: 8px; transform: translateY(-50%); font-size: 11px; color: var(--color-text-faint); }
.aw-hours span:first-child { transform: none; }
.aw-col { position: relative; border-left: 1px solid var(--color-border); background-image: linear-gradient(to bottom, var(--color-border) 1px, transparent 1px); }
.aw-col.is-today { background-color: #F7FBFC; }
.aw-col.is-past { background-color: #FAFBFC; }
.aw-appt, .aw-free, .aw-abs { position: absolute; left: 3px; right: 3px; border-radius: 6px; overflow: hidden; font-size: 12px; line-height: 1.25; margin: 0; }
.aw-appt { background: var(--color-secondary-soft); border-left: 4px solid var(--color-petrol); color: var(--color-navy); padding: 3px 6px; z-index: 2; box-shadow: 0 1px 2px rgba(11, 31, 58, .08); }
.aw-appt:hover { text-decoration: none; filter: brightness(.97); z-index: 3; }
.aw-appt small { display: block; color: var(--color-text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aw-appt.is-past { opacity: .55; }
.aw-appt.is-now { box-shadow: 0 0 0 2px var(--color-turquoise); }
.aw-free { border: 1px dashed #9CC3CF; color: var(--color-petrol); padding: 2px 6px; font-weight: 700; z-index: 1; background: rgba(255, 255, 255, .7); }
.aw-free:hover { text-decoration: none; background: var(--color-secondary-soft); }
.aw-abs { left: 0; right: 0; border-radius: 0; background: repeating-linear-gradient(45deg, var(--color-warning-soft), var(--color-warning-soft) 6px, #FDE7C3 6px, #FDE7C3 12px); color: #92400E; padding: 2px 6px; font-weight: 700; }
.aw-now { position: absolute; left: 0; right: 0; height: 2px; background: var(--color-danger); z-index: 4; }
.aw-now::before { content: ""; position: absolute; left: -4px; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--color-danger); }
.z-msg { position: relative; }
.msg-lu { position: absolute; top: 8px; right: 8px; margin: 0; }
.z-msg > div { padding-right: 60px; }
/* Vue semaine : fenêtre d'un rendez-vous, colonne d'outils sous la grille */
.aw-dialog { border: none; border-radius: 14px; padding: 0; width: min(640px, calc(100vw - 32px)); max-height: calc(100vh - 48px); box-shadow: 0 20px 60px rgba(11, 31, 58, .25); }
.aw-dialog::backdrop { background: rgba(11, 31, 58, .45); }
.aw-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--color-border); position: sticky; top: 0; background: white; z-index: 1; }
.aw-dialog .z-appt { margin: 0; border: none; border-radius: 0; padding: 14px 16px 18px; }
.aw-side { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin-top: 20px; align-items: start; }
.aw-side > .z-card { margin: 0; }
/* Vue semaine : en-tête en deux moitiés, bandeaux qui défilent */
.aw-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; margin-bottom: 16px; }
.aw-top .z-head { flex-wrap: wrap; gap: 10px; }
.aw-top .z-actions { flex-wrap: wrap; }
@media (max-width: 1000px) { .aw-top { grid-template-columns: 1fr; } }
.aw-ticker { display: flex; align-items: center; gap: 10px; background: white; border: 1px solid var(--color-border); border-radius: 999px; padding: 4px 6px 4px 12px; min-height: 40px; overflow: hidden; }
.aw-ticker-cb { border-color: #F6D19A; background: var(--color-warning-soft); }
.aw-ticker-label { flex: 0 0 auto; font-weight: 800; font-size: 13px; color: var(--color-navy); white-space: nowrap; margin: 0; }
a.aw-ticker-label:hover { text-decoration: none; color: var(--color-petrol); }
.aw-ticker-view { flex: 1; min-width: 0; overflow: hidden; position: relative; -webkit-mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent); mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent); }
.aw-ticker-empty { font-size: 13px; color: var(--color-text-muted); white-space: nowrap; padding-left: 8px; }
.aw-ticker-track { display: inline-flex; gap: 28px; white-space: nowrap; padding-left: 100%; animation: aw-defile var(--aw-speed, 16s) linear infinite; }
.aw-ticker:hover .aw-ticker-track, .aw-ticker:focus-within .aw-ticker-track { animation-play-state: paused; }
@keyframes aw-defile { from { transform: translateX(0); } to { transform: translateX(-100%); } }
/* Animations réduites (réglage Windows) : le bandeau défile quand même, deux fois plus lentement */
@media (prefers-reduced-motion: reduce) { .aw-ticker-track { animation-duration: calc(var(--aw-speed, 16s) * 2); } }
.aw-ticker-item { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--color-navy); }
.aw-ticker-item a { margin: 0; color: var(--color-navy); }
.aw-ticker-item em { color: #B45309; font-style: normal; font-weight: 700; }
.aw-ticker-item.is-unread strong { color: var(--color-petrol); }
.aw-ticker-item.is-urgent strong { color: var(--color-danger); }
.aw-mini { border: 1px solid var(--color-border); background: white; border-radius: 999px; padding: 2px 9px; font-size: 12px; font-weight: 700; color: var(--color-text-muted); cursor: pointer; line-height: 1.4; }
.aw-mini:hover { border-color: var(--color-petrol); color: var(--color-petrol); }
.aw-mini-ok { background: var(--color-petrol); border-color: var(--color-petrol); color: white; }
.aw-mini-ok:hover { color: white; filter: brightness(1.1); }
.aw-msgs { display: grid; gap: 8px; background: white; border: 1px solid var(--color-border); border-radius: 14px; padding: 10px; }
.aw-msgs .aw-ticker { border: none; padding: 0; border-radius: 0; min-height: 32px; }
.aw-msg-form { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.aw-msg-form select { flex: 0 1 180px; min-width: 0; }
.aw-msg-form input[type="text"] { flex: 1 1 180px; min-width: 0; }
/* L'encadré Messages occupe toute la hauteur de la moitié gauche (jusqu'à la semaine) */
.aw-top { align-items: stretch; }
.aw-msgs { display: flex; flex-direction: column; gap: 10px; }
.aw-msgs .aw-ticker { flex: 1; align-items: center; }
.aw-msgs .aw-msg-form { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--color-border); }
@media (max-width: 1000px) { .aw-msgs .aw-ticker { flex: 0 0 auto; } }
/* Retard + empêchement : un seul bloc compact, sur une ligne */
.ag-tools { display: inline-flex; align-items: center; gap: 6px; flex-wrap: nowrap; white-space: nowrap; }
.ag-tools .z-delay { padding: 2px 2px 2px 10px; border-radius: 10px; gap: 4px; }
.ag-tools .z-delay .z-btn-sm, .ag-tools .z-btn-sm { min-height: 32px; padding: 0 10px; font-size: 12.5px; }
.ag-tools .z-btn-warn { border-width: 1.5px; }
/* Vue semaine : boutons sur une ligne, messages en liste */
.aw-top .z-head > .z-actions { flex-wrap: nowrap; gap: 6px; }
.aw-top .aw-switch a { padding: 5px 12px; font-size: 13px; }
.aw-top .z-head .z-btn-ghost.z-btn-sm, .aw-rdv { min-height: 32px; padding: 0 12px; font-size: 13px; white-space: nowrap; }
.aw-msg-head { display: flex; justify-content: space-between; align-items: center; font-size: 14px; }
.aw-msg-head a { margin: 0; color: var(--color-navy); }
.aw-msg-list { list-style: none; margin: 0; padding: 0; flex: 1; min-height: 0; overflow-y: auto; display: grid; align-content: start; gap: 4px; }
.aw-msgs .aw-msg-list { max-height: 9.5em; }
.aw-msg-list li { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 5px 8px; border-radius: 8px; background: var(--color-bg); }
.aw-msg-list li.is-unread { background: var(--color-secondary-soft); }
.aw-msg-list li.is-urgent { background: var(--color-danger-soft); }
.aw-msg-list li strong { white-space: nowrap; color: var(--color-navy); }
.aw-msg-list li.is-urgent strong { color: var(--color-danger); }
.aw-msg-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--color-navy); margin: 0; }
.aw-msg-list .z-small { white-space: nowrap; }
.aw-msg-empty { color: var(--color-text-muted); background: none !important; }
.aw-msg-list { overflow-x: hidden; grid-template-columns: minmax(0, 1fr); }
.aw-msg-list li { min-width: 0; }
.aw-top-right { min-width: 0; }
.aw-top { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
@media (max-width: 1000px) { .aw-top { grid-template-columns: 1fr; } .aw-top .z-head > .z-actions { flex-wrap: wrap; } }
.aw-msg-form { flex-wrap: nowrap; }
.aw-msg-form select { flex: 0 1 140px; }
.aw-msg-form input[type="text"] { flex: 1 1 120px; }
.aw-msg-form label { white-space: nowrap; }
@media (max-width: 600px) { .aw-msg-form { flex-wrap: wrap; } }
/* Durée d'un rendez-vous : « Durée 30 min [−][+] » */
.ag-dur { display: inline-flex; align-items: center; border: 1px solid var(--color-border); border-radius: 999px; background: white; overflow: hidden; height: 34px; }
.ag-dur-label { padding: 0 8px 0 12px; font-size: 13px; color: var(--color-text-muted); white-space: nowrap; }
.ag-dur-label b { color: var(--color-navy); }
.ag-dur form { margin: 0; display: flex; height: 100%; }
.ag-dur button { border: none; border-left: 1px solid var(--color-border); background: white; width: 34px; height: 100%; font-size: 18px; font-weight: 800; color: var(--color-petrol); cursor: pointer; line-height: 1; }
.ag-dur button:hover:not(:disabled) { background: var(--color-secondary-soft); }
.ag-dur button:disabled { color: var(--color-text-faint); cursor: default; }
/* Secrétariat, vue semaine : choix du praticien */
.sw-pros { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.sw-pros a { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--color-border); background: white; font-weight: 700; font-size: 14px; color: var(--color-navy); margin: 0; }
.sw-pros a:hover { border-color: var(--color-petrol); text-decoration: none; }
.sw-pros a.is-on { background: var(--color-petrol); border-color: var(--color-petrol); color: white; }

.aw-msg-quick { margin: 0; gap: 6px; }
.aw-msg-quick button { font-size: 12px; padding: 4px 10px; min-height: 0; }
.aw-msg-sent { border-top: 1px solid var(--color-border); padding-top: 6px; }
.aw-msg-sent li { background: transparent; }

/* Secrétariat : messages en bandeau, « Mes tâches » en petit encadré sous « À rappeler » */
.aw-msgs .aw-ticker-msg { border: 1px solid var(--color-border); border-radius: 999px; padding: 4px 6px; background: var(--color-bg); }
.sw-top .aw-top-right { display: grid; gap: 10px; }
.sw-tasks { padding: 10px 12px; gap: 6px; }
.sw-tasks-title { font-size: 14px; font-weight: 800; color: var(--color-navy); margin: 0; }
.sw-tasks-title small { font-weight: 600; color: var(--color-text-muted); }
.sw-tasks-form { display: flex; gap: 6px; align-items: center; }
.sw-tasks-form .z-field { margin: 0; }
.sw-tasks-form input { min-height: 34px; padding: 4px 10px; font-size: 13px; }
.sw-tasks-list { max-height: 9em; overflow-y: auto; display: grid; gap: 2px; }
.sw-tasks .z-task { padding: 4px 0; font-size: 13px; }
.aw-msgs .aw-ticker-msg { flex: 0 0 auto; }
.sw-top .aw-msgs { align-self: start; }
