/* =========================================================
   VARIABLES
========================================================= */

:root {

    --bg: #fafafa;
    --card: #ffffff;
    --muted: #e8e8e8;

    --text: #1c1c1c;
    --text-dim: #6b6b6b;

    --brand: #4c6ef5;
    /* soft blue */
    --brand-weak: #edf2ff;
    --accent: #15aabf;
    /* light cyan */
    --bg-sidebar1: #0E2747;
    --bg-sidebar2: #60a3bc;

    --ok: #40c057;
    --warn: #fab005;
    --bad: #fa5252;
    --orange: #fc5d00;

    /* Nouveaux Tokens Sémantiques */
    --input-bg: #f8fafc;
    --input-border: #e2e8f0;
    --input-focus: #ffffff;
    --border-light: #cbd5e1;

    --brand-primary: #2c7be5;
    --brand-secondary: #4f8cff;
    --brand-hover: #e0e7ff;
    --brand-light: #eef2ff;

    --accent-orange: #ff7a18;

    /* Statuts du module commercial : couleurs de l'entonnoir commercial */
    --statut-brouillon: #e2e8f0;
    --statut-opportunite: #f4b183;
    --statut-amont: #a9d08e;
    --statut-etude: #ffffff;
    --statut-grill: #ffd966;
    --statut-out: #bfbfbf;
    --statut-perdu: #595959;
    --statut-gagne: #9dc3e6;

    --text-dark: #334155;
    --text-muted: #64748b;

    --white: #ffffff;
    --white-short: #fff;

}

/* =========================================================
   RESET
========================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: "Inter", "Segoe UI", Roboto, system-ui, -apple-system, sans-serif;
}

a {
    text-decoration: inherit;
    color: inherit;
}

/* =========================================================
   LAYOUT
========================================================= */
.app {
    display: flex;
    min-height: 100vh;
}

/* SIDEBAR */
.sidebar {
    position: fixed;
    /* Rend la sidebar fixe */
    top: 0;
    /* Collée en haut */
    left: 0;
    /* Collée à gauche */
    height: 100vh;
    /* Prend toute la hauteur de l'écran */
    width: 220px;
    background-color: var(--bg-sidebar1);
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    transition: width 0.3s ease;
    overflow-y: auto;
    /* Scroll interne si contenu trop grand */
}

.sidebar h1 {
    color: var(--white);
    font-size: 20px;
    text-align: center;
}

.menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-bottom: 30px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    color: #cbd5f5;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
}

.menu-item:hover {
    background-color: #0a3d62;
    color: var(--white);
}

.menu-item .active {
    background-color: var(--accent-orange);
    color: var(--white);
}

.menu-item span {
    font-size: 15px;
}

/* MAIN */
.main {
    position: relative;
    margin-left: 220px;
    /* largeur de la sidebar */
    height: 100vh;
    /* prend toute la hauteur écran */
    width: calc(100% - 230px);
    /* prend le reste de la largeur */
    display: flex;
    flex-direction: column;
    overflow-y: hidden;
    /* scroll uniquement dans le main */
}

/* TOPBAR */
.topbar {
    height: 60px;
    background-color: var(--white);
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    flex-shrink: 0;
}

.topbar h2 {
    font-size: 18px;
    font-weight: 600;
}

.topbar .actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* CONTENT */
.content {
    padding: 24px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    overflow-y: auto;
}

.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    text-align: center;
    margin-left: auto;
    background-color: #3b82f6;
}

/* ITEM AVEC SOUS-MENU */
.has-submenu {
    flex-direction: column;
    align-items: stretch;
}

/* ligne icône + texte */
.menu-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: -10px;
}

/* sous-menu caché */
.submenu {
    max-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    margin-left: 28px;
    transition: max-height 0.4s ease-in-out;
}

/* hover */
.has-submenu:hover .submenu {
    max-height: 800px;
}

/* ouvert si page active */
.has-submenu.open .submenu {
    max-height: 800px;
}

/* liens */
.submenu a {
    padding: 8px 12px;
    font-size: 14px;
    color: #cbd5f5;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
}

.submenu a:hover {
    background-color: var(--accent-orange);
    color: var(--white);
}

/* =========================================================
   CARD
========================================================= */

.card {
    background-color: var(--white);
    border-radius: 14px;
    padding: 20px;
    min-height: 140px;
    height: 100%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.card h3 {
    margin-bottom: 12px;
    font-size: 16px;
}

.menu-toggle {
    display: none;
    font-size: 20px;
}

/* LAYOUT */
.login-wrapper {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 8%;
}

/* LOGIN CARD */
.login-card {
    width: 100%;
    max-width: 420px;
    background-color: var(--white);
    border-radius: 16px;
    padding: 36px 32px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.login-card h1 {
    font-size: 24px;
    margin-bottom: 8px;
}

.login-card p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 32px;
}

/* =========================================================
   FORM MODERNE (BLEU)
========================================================= */
.image-upload-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .8rem;
    padding: 1rem;
    background: var(--card);
    border: 1px solid var(--muted);
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Image preview */
.image-preview {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid var(--muted);
    background: var(--muted);
    box-shadow: 0 2px 6px rgba(0, 0, 0, .07);
}

/* Bouton custom */
.upload-btn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .55rem 1rem;
    background: var(--brand);
    color: var(--white);
    border-radius: 8px;
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s ease;
}

.upload-btn:hover {
    background: color-mix(in oklab, var(--brand), #000 12%);
}

.upload-btn svg {
    stroke: currentColor;
}

.form-container {
    background: var(--white);
    padding: 32px;
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    max-width: 100%;
    grid-column: 1 / -1;
    width: 100%;
    box-sizing: border-box;
}

.dossier-page-container {
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
}

.dossier-page-container>.info-card {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 5px 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    margin-bottom: 6px;
    font-weight: 600;
    color: var(--brand-primary);
}

.form-group input:not([type="checkbox"]):not([type="radio"]),
.form-group select,
.form-group textarea {
    display: block;
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--input-border);
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.2s ease;
    background: var(--input-bg);
}


.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent-orange);
    background: var(--white);
    outline: none;
    box-shadow: 0 0 0 4px rgba(224, 155, 59, 0.15);
}

.form-group input:disabled,
.form-group select:disabled,
.form-group textarea:disabled {
    background-color: #e9ecef;
    color: #9ca3af;
    cursor: not-allowed;
    border-color: var(--border-light);
}

.form-actions {
    margin-top: 25px;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

.btn-primary {
    padding: 12px 20px;
    background: var(--brand);
    color: var(--white);
    border-radius: 10px;
    cursor: pointer;
    border: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(79, 70, 229, 0.25);
    background: color-mix(in oklab, var(--brand), #000 12%);
}

.btn-secondary {
    background: var(--brand-light);
    color: var(--brand-primary);
    border: none;
    padding: 12px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-primary:focus,
.btn-secondary:focus,
.btn-cancel:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(76, 110, 245, 0.2);
}

.btn-secondary:hover {
    background: var(--brand-hover);
}

.span-2 {
    grid-column: span 2;
}

.span-3 {
    grid-column: span 3;
}


.checkbox-group {
    display: flex;
    margin-top: auto;
}

label.checkbox-wrapper {
    display: flex !important;
    align-items: center;
    gap: 12px;
    height: 44px;
    /* même hauteur que tes inputs */
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    cursor: pointer;
    margin-bottom: 0 !important;
}

.checkbox-wrapper input {
    display: none;
}

.custom-checkbox {
    display: inline-block;
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: 6px;
    border: 2px solid var(--border-light);
    background: var(--input-bg);
    transition: all 0.2s ease;
    position: relative;
}

/* Hover */
.checkbox-wrapper:hover .custom-checkbox {
    border-color: #6366f1;
}

/* État coché */
.checkbox-wrapper input:checked+.custom-checkbox {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-hover));
    border-color: var(--brand-hover);
}

/* Check animé */
.custom-checkbox::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: translate(-50%, -60%) rotate(45deg) scale(0);
    transition: transform 0.15s ease;
}

.checkbox-wrapper input:checked+.custom-checkbox::after {
    transform: translate(-50%, -60%) rotate(45deg) scale(1);
}

.autocomplete-wrapper {
    position: relative;
    display: inline-block;
    /* important */
    width: 100%;
    /* ou supprime si tu veux largeur auto */
}

.autocomplete-wrapper input {
    width: 100%;
    /* prend la largeur du wrapper */
    box-sizing: border-box;
}

.autocomplete-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border: 1px solid var(--input-border);
    border-radius: 12px;
    margin-top: 6px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    max-height: 240px;
    overflow-y: auto;
    display: none;
    z-index: 1000;
}

.autocomplete-item {
    padding: 12px 16px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.15s ease;
}

.autocomplete-item:hover,
.autocomplete-item.active {
    background: var(--brand-light);
}

.autocomplete-code {
    font-weight: 600;
    color: var(--brand-primary);
}

.autocomplete-address {
    display: block;
    font-size: 13px;
    color: #64748b;
}

.file-upload {
    display: flex;
    align-items: center;
    gap: 15px;
}

.file-upload input[type="file"] {
    display: none;
}

.file-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: 10px;
    background: var(--brand-light);
    color: #0E2747;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.file-label:hover {
    background: var(--brand-hover);
    transform: translateY(-1px);
}

.file-name {
    font-size: 14px;
    color: #475569;
}

.article-select {
    width: 100% !important;
    max-width: 100%;
    box-sizing: border-box;
}

.article-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 130px 130px 42px;
    gap: 10px;
    align-items: center;
    margin-bottom: 20px;
    width: 100%;
}

.remove-article {
    height: 42px;
    width: 42px;
    border-radius: 10px;
    border: none;
    background: #fee2e2;
    color: #dc2626;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s ease;
}

.remove-article:hover {
    background: #fecaca;
}

.article-row .select2-container {
    width: 100% !important;
}

.article-row .select2-selection--single {
    width: 100% !important;
    overflow: hidden;
}

/* ===== SELECT2 UNIFORMISÉ ===== */

.select2-container {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    font-size: 14px;
}

/* Boîte principale */
.select2-container .select2-selection--single {
    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;

    display: flex !important;
    align-items: center !important;

    border: 1px solid var(--input-border) !important;
    border-radius: 10px !important;
    padding: 0 14px !important;

    background-color: var(--input-bg) !important;
    transition: all 0.2s ease;
}

.select2-container:hover .select2-selection--single {
    background-color: var(--white) !important;
}

/* Texte affiché */
.select2-container .select2-selection__rendered {
    padding: 0 !important;
    margin: 0 !important;

    width: 100%;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;

    line-height: normal !important;
}

.select2-selection__placeholder,
.select2-selection__rendered {
    max-width: 100%;
}

/* Icône flèche */
.select2-container .select2-selection__arrow {
    height: 42px !important;
    display: flex;
    align-items: center;
}

/* Focus cohérent avec tes inputs */
.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: var(--accent-orange) !important;
    background-color: var(--white) !important;
    box-shadow: 0 0 0 4px rgba(224, 155, 59, 0.15) !important;
}

.select2-results__option {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* =========================================================
   DATATABLE (MODULE ISOLÉ)
========================================================= */
.datatable {
    width: 100%;
    min-height: 0;
    grid-column: 1 / -1;
    max-width: none;
    /* était 1200px : on retire la contrainte */
    margin: 0;
    /* supprime l'auto-centering et l'espace autour */
    border-radius: 12px;
    /* garde un léger arrondi si tu veux l’aspect "carte" */
    box-shadow: none;
    /* optionnel : supprime l’ombre si tu veux à plat */
}

/* Le wrapper scrollable conserve toute la largeur et hauteur utile */
.datatable__tablewrap {
    width: 100%;
    max-height: none;
    /* laisse le parent gérer la hauteur; enlève le cap si tu veux */
    overflow: auto;
    min-height: 0;
}

/* Header (barre de titre/recherche) : s'ajuste en petit écran aussi */
.datatable__header {
    display: flex;
    gap: .75rem;
    padding: 1rem 1.25rem;
    flex-wrap: wrap;
    /* la recherche passe dessous si pas assez de place */
}

.datatable__header {
    border-bottom: 1px solid var(--muted);
}

.datatable__footer {
    border-top: 1px solid var(--muted);
    color: var(--text-dim);
    justify-content: space-between;
}

.datatable__header h2 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--brand);
}

/* ===== SEARCH ===== */
.datatable__search {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    background: var(--brand-weak);
    border: 1px solid color-mix(in oklab, var(--brand), #000 0%);
    border-radius: 999px;
    min-width: 240px;
}

.datatable__search input {
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    width: 100%;
    font-size: .95rem;
}

.datatable__search svg {
    width: 18px;
    height: 18px;
    color: var(--brand);
}

/* ===== TABLE ===== */
.datatable__tablewrap {
    max-height: 75vh;
    overflow: auto;
    /* toujours actif, même avant injection JS */
    display: block;
    /* garantit que le tbody ne peut PAS pousser le parent */
}



/* La table elle-même s’étire à 100% */
.datatable__table {
    width: 100%;
    height: 300px;
    min-width: 0;
    /* important si le parent a un layout flex/grid */
    border-collapse: separate;
    border-spacing: 0;
}

.datatable__table tbody {
    display: table-row-group;
    /* comportement normal */
    overflow: visible;
}


.datatable__table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
}

thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: linear-gradient(180deg, color-mix(in oklab, var(--brand-weak), #000 2%), var(--brand-weak));
    color: var(--text-dim);
    text-align: left;
    font-weight: 600;
    padding: .9rem 1rem;
    border-bottom: 1px solid var(--muted);
    backdrop-filter: blur(6px);
}

tbody td {
    padding: .85rem 1rem;
    border-bottom: 1px solid var(--muted);
    color: var(--text);
}

/* Hover & focus sobres, avec une touche d’accent */
tbody tr:hover {
    background: color-mix(in oklab, var(--accent), transparent 92%);
}

tbody tr:focus-within {
    outline: 2px solid color-mix(in oklab, var(--accent), var(--white) 30%);
    outline-offset: -2px;
}

/* ===== TRI ===== */
.sort-btn {
    all: unset;
    display: inline-flex;
    vertical-align: middle;
    margin-left: .35rem;
    width: 1rem;
    height: 1rem;
    cursor: pointer;
    color: var(--text-dim);
    position: relative;
}

.sort-btn::before,
.sort-btn::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
}

.sort-btn::before {
    top: 0px;
    border-bottom: 6px solid currentColor;
    opacity: .45;
}

.sort-btn::after {
    bottom: 0px;
    border-top: 6px solid currentColor;
    opacity: .45;
}

th[aria-sort="ascending"] .sort-btn::before {
    opacity: 1;
    color: var(--brand);
}

th[aria-sort="ascending"] .sort-btn::after {
    opacity: .25;
}

th[aria-sort="descending"] .sort-btn::after {
    opacity: 1;
    color: var(--brand);
}

th[aria-sort="descending"] .sort-btn::before {
    opacity: .25;
}

/* ===== STATUTS ===== */
.status {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .25rem .55rem;
    border-radius: 999px;
    font-size: .85rem;
    line-height: 1;
    font-weight: 600;
    border: 1px solid var(--muted);
}

.status--active {
    color: var(--ok);
    background: color-mix(in oklab, var(--ok), transparent 88%) !important;
}

.status--pending {
    color: var(--warn);
    background: color-mix(in oklab, var(--warn), transparent 88%) !important;
}

.status--st {
    color: var(--accent);
    background: color-mix(in oklab, var(--accent), transparent 88%) !important;
}

.status--utilisateur {
    color: var(--brand);
    background: color-mix(in oklab, var(--brand), transparent 88%) !important;
}

.status--blocked {
    color: var(--bad);
    background: color-mix(in oklab, var(--bad), transparent 88%) !important;
}

.status--greenhard {
    color: #1f8d49;
    background: color-mix(in oklab, #1f8d49, transparent 88%) !important;
}

/* Statuts du module commercial (pages/commercial/statut_commercial.php) :
   couleurs reprises de l'entonnoir commercial, à plat et non en transparence. */
.status--brouillon {
    color: #475569;
    background: var(--statut-brouillon) !important;
    border-color: color-mix(in oklab, var(--statut-brouillon), black 25%);
}

.status--opportunite {
    color: #7a3e12;
    background: var(--statut-opportunite) !important;
    border-color: color-mix(in oklab, var(--statut-opportunite), black 25%);
}

.status--amont {
    color: #375623;
    background: var(--statut-amont) !important;
    border-color: color-mix(in oklab, var(--statut-amont), black 25%);
}

.status--etude {
    color: #334155;
    background: var(--statut-etude) !important;
    border-color: color-mix(in oklab, var(--statut-etude), black 25%);
}

.status--grill {
    color: #7f6000;
    background: var(--statut-grill) !important;
    border-color: color-mix(in oklab, var(--statut-grill), black 25%);
}

.status--out {
    color: #262626;
    background: var(--statut-out) !important;
    border-color: color-mix(in oklab, var(--statut-out), black 25%);
}

.status--perdu {
    color: #ffffff;
    background: var(--statut-perdu) !important;
    border-color: color-mix(in oklab, var(--statut-perdu), black 25%);
}

.status--gagne {
    color: #1f3864;
    background: var(--statut-gagne) !important;
    border-color: color-mix(in oklab, var(--statut-gagne), black 25%);
}

/* Groupe de boutons ancré à droite d'un .section-title (vues commerciales) */
.btn-action-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* A11y helper */
.sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.datatable-wrapper {
    background: var(--white);
    padding: 20px;
    font-size: 14px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    overflow-x: auto;
}

/* Header */
.modern-table thead th {
    background-color: #f8f9fb;
    border-bottom: 1px solid #e5e7eb;
    font-weight: 600;
    font-size: 14px;
    position: static !important;
}

/* Filtres */
.modern-table thead tr.filters input {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #dcdcdc;
    border-radius: 6px;
    font-size: 13px;
    box-sizing: border-box;
    height: 32px;
    font-family: inherit;
    color: inherit;
}

/* Lignes */
.modern-table tbody tr {
    transition: background 0.2s ease;
}

.modern-table tbody tr:hover {
    background-color: #f3f4f6;
}

/* Pagination */
.dataTables_wrapper .dataTables_paginate .paginate_button {
    border-radius: 6px !important;
    padding: 5px 10px !important;
}

.datatable-column-selector {
    position: relative;
    display: inline-block;
    margin-bottom: 10px;
}

#toggleColumnsBtn {
    background: #f8f9fb;
    border: 1px solid #dcdcdc;
    border-radius: 8px;
    padding: 6px 12px;
    cursor: pointer;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--white);
    min-width: 180px;
    border: 1px solid #dcdcdc;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.dropdown-content label {
    display: block;
    margin: 4px 0;
    cursor: pointer;
}

/* === OVERLAY === */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: none;
    justify-content: center;
    align-items: flex-start;
    padding-top: 6vh;
    z-index: 9999;
}

/* visible */
.modal-overlay.active {
    display: flex;
}


/* =========================================================
   MODAL POP-UP
========================================================= */
.modal {
    width: 100%;
    max-width: 560px;
    /* un peu plus large que 500, confortable */
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    background: var(--card);
    border: 1px solid var(--muted);
    border-radius: 16px;
    /* arrondi plus premium */
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.18);
    overflow: hidden;
    /* important pour que la bannière épouse l'arrondi */
}

/* ====== BANNIÈRE DE TITRE ====== */
.modal-banner {
    position: relative;
    padding: 18px 20px;
    background: linear-gradient(135deg,
    color-mix(in oklab, var(--brand), transparent 0%),
    color-mix(in oklab, var(--accent), transparent 30%));
    border-bottom: 1px solid color-mix(in oklab, var(--brand), #000 20%);
    color: var(--white);
}

/* Décor subtil (vague) */
.modal-banner__bg {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    pointer-events: none;
}

/* Bannière — grille 3 colonnes : icône | titres | close */
.modal-banner__content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    align-items: center;
}


/* Icône circulaire */
.modal-banner__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: color-mix(in oklab, var(--white), transparent 80%);
    color: var(--white);
    border: 1px solid color-mix(in oklab, var(--white), transparent 70%);
    backdrop-filter: blur(2px);
}

/* Titres */
.modal-banner__titles h3 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 800;
    /* plus “marqué” */
    letter-spacing: .2px;
    color: var(--white);
}

.modal-subtitle {
    margin: 2px 0 0;
    font-size: .9rem;
    color: color-mix(in oklab, var(--white), transparent 35%);
}

/* Badge action (Ajouter / Modifier) */
.modal-banner__badge {
    justify-self: end;
    padding: .35rem .65rem;
    font-size: .8rem;
    font-weight: 700;
    color: var(--brand);
    background: var(--white);
    border-radius: 999px;
    border: 1px solid color-mix(in oklab, var(--brand), #000 10%);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

/* HEADER */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--brand);
}

/* Bouton de fermeture */
.modal-close {
    position: static;
    top: 10px;
    right: 12px;
    all: unset;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--white);
    background: color-mix(in oklab, #000, transparent 75%);
    border: 1px solid color-mix(in oklab, var(--white), transparent 80%);
}

/* Bouton fermer dans la bannière (à droite) */
.modal-close--inbanner {
    all: unset;
    justify-self: end;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    cursor: pointer;
    color: var(--white);
    background: color-mix(in oklab, #000, transparent 75%);
    border: 1px solid color-mix(in oklab, var(--white), transparent 80%);
    transition: background .15s ease;
}

.modal-close--inbanner:hover {
    background: color-mix(in oklab, #000, transparent 65%);
}

.modal-close--inbanner:focus-visible {
    outline: 2px solid color-mix(in oklab, var(--white), transparent 65%);
    outline-offset: 2px;
}

/* BODY */
.modal-body {
    overflow-y: auto;
    padding: 1.2rem 1.5rem 1.4rem;
}

/* FORM */
.form-group {
    display: flex;
    flex-direction: column;
}

/* FOOTER */
.modal-footer {
    margin-top: 1.2rem;
    display: flex;
    justify-content: flex-end;
    gap: .75rem;
}

.btn-cancel {
    padding: 12px 20px;
    background: var(--muted);
    color: var(--text);
    border-radius: 10px;
    cursor: pointer;
    border: none;
    font-weight: 600;
    transition: all 0.2s ease;
}


.section-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 20px;
    padding: 0 0 12px 18px;
    border-bottom: 1px solid var(--input-border);
    position: relative;
}

.section-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 2px;
    height: 70%;
    width: 4px;
    background: linear-gradient(180deg, var(--accent-orange), var(--accent-orange));
    border-radius: 4px;
}



/* =========================================================
   PLANNING (HARMONISÉ BLEU MODERNE)
========================================================= */
#planning {
    background: var(--white);
    border-radius: 10px;
    padding: 10px;
}

/* Harmonisation FullCalendar */
.fc {
    font-family: inherit;
    font-size: 13px;
}

.fc-toolbar {
    margin-bottom: 8px !important;
}

.fc-toolbar-title {
    font-size: 18px;
    font-weight: 600;
}

.fc-button {
    background-color: var(--brand) !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 5px 10px !important;
}

/* Réduction hauteur événement */
.fc-event {
    padding: 2px 4px !important;
    font-size: 12px;
    border-radius: 6px;
    overflow: hidden;
}

.fc-event-title,
.fc-event-main {
    overflow: hidden;
}

.fc-event .fc-event-title,
.fc-event div {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.fc-button:hover {
    background-color: var(--brand) !important;
}

.fc-timegrid-slot {
    height: 30px !important;
}

/* Réduction hauteur en-tête jours */
.fc-col-header-cell {
    padding: 6px 0 !important;
    font-size: 13px;
}


.preview-event {
    background-color: var(--brand) !important;
    border: 2px dashed var(--brand) !important;
    opacity: 0.65;
    transition: all 0.2s ease-in-out;
}

/* Effet hover */
.preview-event:hover {
    opacity: 0.85;
    transform: scale(1.01);
}

/* Animation d’apparition */
.fc-event.preview-event {
    animation: fadePreview 0.2s ease-in-out;
}

/* Conteneur */
.dossier-toolbar {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

/* Bouton */
.filter-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    height: 42px;
    padding: 0 18px;

    border-radius: 8px;
    border: 1px solid #dcdcdc;
    background: var(--white);
    cursor: pointer;

    font-size: 14px;
    font-weight: 500;
    color: #333;

    transition: all 0.2s ease;
}

/* Hover */
.filter-btn:hover {
    background: #f5f7fa;
    border-color: #c6d4e1;
}

/* Actif */
.filter-btn.active {
    background: #e7f1ff;
    border-color: #007bff;
    color: #007bff;
}

/* Compteur */
.filter-count {
    background: rgba(0, 0, 0, 0.08);
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 12px;
}

.filter-btn.active .filter-count {
    background: rgba(255, 255, 255, 0.2);
}


@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

.current-event {
    font-weight: bold;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.current-event::before {
    content: "";
    position: absolute;
    left: 80%;
    top: 10%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-image: url('../image/icon/pin.svg');
    background-size: contain;
    background-repeat: no-repeat;
}

.current-event.blinking {
    animation: blink 2s infinite;
}


.info-card {
    background: white;
    border-radius: 10px;
    margin-bottom: 20px;
}

.info-section-title,
.info-card h3 {
    font-size: 15px;
    font-weight: 600;
    color: #475569;
    padding-bottom: 5px;
    border-bottom: 2px solid var(--input-border);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 15px 0;
    border-left: none;
    padding-left: 0;
}

.info-section-title {
    grid-column: 1 / -1;
    margin-top: 15px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.info-grid5 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
}

.info-item {
    display: flex;
    flex-direction: column;
}

.info-item label {
    font-size: 12px;
    color: var(--brand-primary);
    margin-bottom: 5px;
}

.info-item input,
.info-item select,
.info-item textarea {
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #f9fafc;
    box-sizing: border-box;
    width: 100%;
}

.info-item input,
.info-item select {
    height: 44px;
}

.field-readonly {
    display: flex;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    padding: 0 10px;
    background-color: #e9ecef !important;
    color: var(--text-muted) !important;
    border: 1px solid var(--border-light) !important;
    border-radius: 6px;
    border-color: var(--border-light) !important;
    cursor: not-allowed;
    height: 44px;
}

.span-2 {
    grid-column: span 2;
}

.span-3 {
    grid-column: span 3;
}

.span-4 {
    grid-column: span 4;
}

.switch-item {
    justify-content: flex-end;
}

/* SWITCH */

.switch {
    position: relative;
    display: inline-block;
    width: 42px;
    height: 22px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    inset: 0;
    background: var(--input-border);
    border-radius: 30px;
}

.slider:before {
    content: "";
    position: absolute;
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}



/* actif */

.switch input:checked+.slider {
    background: var(--brand-secondary);
}

.switch input:checked+.slider:before {
    transform: translateX(20px);
}

/* mode readonly */

.switch-readonly {
    pointer-events: none;
    opacity: 0.85;
}

/* =========================
TIMELINE COMMENTAIRES
=========================*/

.comments-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 10px;
}

.comment-card {
    background: #f9fafc;
    border-radius: 8px;
    padding: 12px 14px;
    border-left: 4px solid var(--brand-secondary);
    display: flex;
    flex-direction: column;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.comment-author {
    font-weight: 600;
    font-size: 13px;
}

.comment-date {
    font-size: 12px;
    color: #777;
}

/* TEXTE */

.comment-body {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 8px;
    white-space: pre-line;
}

/* ZOOM PHOTO */

.photo-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.photo-modal img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
}

/* TIMELINE BASE */

.timeline {
    position: relative;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.timeline:before {
    content: "";
    position: absolute;
    left: 6px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--input-border);
}

.timeline-item {
    position: relative;
}

/* GROUPE */

.timeline-item-group {
    position: relative;
}

.timeline-dot {
    width: 12px;
    height: 12px;
    background: var(--brand-secondary);
    border-radius: 50%;
    position: absolute;
    left: -1px;
    top: 13px;
}

/* TYPES */

.timeline-event.type-etat {
    border-color: var(--brand-secondary);
}

.timeline-event.type-commentaire {
    border-color: #f59e0b;
}

.timeline-event.type-intervention {
    border-color: #10b981;
}

/* CARD */

.timeline-content {
    background: #f9fafc;
    padding: 10px 12px;
    border-radius: 8px;
    transition: 0.2s;
}


/* HEADER DATE */

.timeline-header {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
}


.timeline-badge {
    font-weight: 600;
}

.timeline-body {
    font-size: 13px;
}

/* PHOTOS */

.timeline-photos {
    margin-top: 5px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.timeline-photos img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.15s;
}

.timeline-photos img:hover {
    transform: scale(1.08);
}

/* Conteneur des photos */
.timeline-photos.comment-photos {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.timeline-photos.comment-photos .photo-item {
    position: relative;
    /* très important pour que l’icône soit positionnée par rapport à la photo */
    display: inline-block;
}

.timeline-photos.comment-photos img {
    display: block;
    width: 100px;
    height: 100px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.timeline-photos.comment-photos .hide-photo-checkbox {
    display: none;
}

.timeline-photos.comment-photos .eye-icon {
    position: absolute;
    /* positionné par rapport à photo-item */
    top: 0px;
    right: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.timeline-photos.comment-photos .eye-icon svg {
    display: block;
    fill: #406cc0;
    /* couleur par défaut */
}

/* Masquer la checkbox classique */
.hide-photo-checkbox {
    display: none;
}

/* Icône SVG */
.eye-icon svg {
    fill: #406cc0;
    /* bleu par défaut */
    transition: fill 0.2s;
}

/* Si la checkbox juste avant est cochée, passer au rouge */
.hide-photo-checkbox:checked+.eye-icon svg {
    fill: red;
}

/* EVENTS */

.timeline-event {
    background: white;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 13px;
    border-left: 3px solid transparent;
}

.timeline-event {
    background: white;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 13px;
    border-left: 3px solid transparent;
}

/* SUB TEXT */

.timeline-event .sub {
    font-size: 12px;
    color: #777;
}

/* COMMENT */

.timeline-comment {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px dashed var(--input-border);
}

.comment-content {
    position: relative;
    padding-right: 80px;
    /* pour laisser de la place aux boutons */
}

.comment-edit {
    width: 100%;
    box-sizing: border-box;
    font-size: 13px;
    border-radius: 4px;
    border: 1px solid #ccc;
    padding: 4px;
    resize: vertical;
}

.edit-comment-btn,
.save-comment-btn,
.cancel-comment-btn {
    margin-left: 4px;
    cursor: pointer;
    background: none;
    border: none;
    font-size: 14px;
}

.edit-comment-btn:hover,
.save-comment-btn:hover,
.cancel-comment-btn:hover {
    color: #10b981;
    /* vert */
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media(max-width:1200px) {    .info-grid {
    grid-template-columns: repeat(2, 1fr);
}

}

@media (max-width: 900px) {
    .sidebar {
        width: 72px;
    }

    .sidebar h1 {
        display: none;
    }

    .menu-item span {
        display: none;
    }

    .login-wrapper {
        justify-content: center;
        padding-left: 0;
    }}

@media (max-width: 768px) {


    .filter-btn {
        flex: 1 1 auto;
        justify-content: center;
    }
}


@media (max-width: 600px) {
    .sidebar {
        position: fixed;
        left: -260px;
        top: 0;
        height: 100%;
        z-index: 10;
    }

    .sidebar.open {
        left: 0;
    }

    .menu-toggle {
        display: block;
        cursor: pointer;
    }
}

@media (max-width: 480px) {
    .login-card {
        margin: 16px;
        padding: 28px 24px;
    }}

@keyframes modalFade {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadePreview {
    from {
        opacity: 0;
        transform: scale(0.98);
    }

    to {
        opacity: 0.65;
        transform: scale(1);
    }
}

input[type="file"] {
    width: auto !important;
    max-width: max-content;
    cursor: pointer;
}

.timeline-photos.comment-photos .rotate-icon {
    position: absolute;
    bottom: 2px;
    left: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    padding: 2px;
}

.timeline-photos.comment-photos .rotate-icon svg {
    display: block;
    fill: #406cc0;
}

/* Flèche horaire : à droite de la miniature pour ne pas recouvrir l'antihoraire */
.timeline-photos.comment-photos .rotate-icon[data-sens="1"] {
    left: auto;
    right: 5px;
}

.rotate-modal-icon[data-sens="-1"] {
    right: 90px;
}

.rotate-modal-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    padding: 10px;
    z-index: 10000;
    transition: background 0.2s;
}

.rotate-modal-icon:hover {
    background: rgba(0, 0, 0, 0.8);
}
/* ============================================
   ARGOS GUIDE INTERACTIF - STYLES GLOBAUX
   ============================================ */
.guide-overlay { position: fixed; inset: 0; z-index: 99990; display: none; pointer-events: none; }
.guide-overlay.active { display: block; }

.guide-spotlight { position: fixed; inset: 0; z-index: 99991; pointer-events: none; opacity: 0; transition: opacity 0.3s; }

.guide-highlight-ring { position: fixed; z-index: 99992; pointer-events: none; border-radius: 10px; opacity: 0; transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1); box-shadow: 0 0 0 4px rgba(245, 130, 32, 0.4); }
.guide-highlight-ring.active { opacity: 1; }

.guide-tooltip {
    position: fixed; z-index: 99995; width: 400px; max-width: 90vw;
    background: #ffffff; border-radius: 12px; box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    opacity: 0; transform: translateY(10px); transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    pointer-events: none; font-family: 'Inter', sans-serif;
}
.guide-tooltip.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }

.guide-tooltip-header { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px 10px; }
.guide-tooltip-step { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: #f58220; text-transform: uppercase; letter-spacing: 0.5px; }
.step-dot { width: 8px; height: 8px; background: #f58220; border-radius: 50%; box-shadow: 0 0 0 3px rgba(245, 130, 32, 0.2); }
.guide-close-btn { background: none; border: none; color: #94a3b8; cursor: pointer; display: flex; padding: 4px; border-radius: 6px; transition: all 0.2s; }
.guide-close-btn:hover { background: #f1f5f9; color: #ef4444; }

.guide-tooltip-title { font-size: 18px; font-weight: 800; color: #2b3648; margin: 0 0 8px; padding: 0 20px; }
.guide-tooltip-text { font-size: 14px; color: #475569; line-height: 1.6; padding: 0 20px 16px; }
.guide-tooltip-text strong { color: #2b3648; }

.guide-tip-box { margin: 0 20px 16px; background: #ffedd5; border-left: 3px solid #f58220; padding: 10px 14px; font-size: 13px; color: #c2410c; border-radius: 4px; font-weight: 500; }
.guide-keyboard-hint { padding: 0 20px 16px; font-size: 11px; color: #94a3b8; text-align: center; }
.guide-keyboard-hint .kbd { background: #f1f5f9; border: 1px solid #e2e8f0; border-radius: 4px; padding: 2px 6px; font-family: monospace; font-weight: bold; color: #475569; margin: 0 2px; }

.guide-tooltip-footer { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-top: 1px solid #f1f5f9; background: #fafbfc; border-radius: 0 0 12px 12px; }
.guide-steps-mini { display: flex; gap: 6px; }
.guide-dot { width: 8px; height: 8px; border-radius: 50%; background: #e2e8f0; border: none; cursor: pointer; transition: all 0.2s; padding: 0; }
.guide-dot:hover { background: #cbd5e1; transform: scale(1.2); }
.guide-dot.done { background: #f58220; opacity: 0.4; }
.guide-dot.active { background: #f58220; transform: scale(1.3); }

.guide-tooltip-actions { display: flex; gap: 8px; }
.guide-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 6px; font-size: 13px; font-weight: 600; cursor: pointer; border: none; transition: all 0.2s; font-family: inherit; }
.guide-btn-prev { background: transparent; color: #64748b; }
.guide-btn-prev:hover { background: #e2e8f0; color: #0f172a; }
.guide-btn-next { background: #2b3648; color: #fff; }
.guide-btn-next:hover { background: #1e293b; box-shadow: 0 4px 12px rgba(43,54,72,0.2); }
.guide-btn-finish { background: #10b981; color: #fff; }
.guide-btn-finish:hover { background: #059669; box-shadow: 0 4px 12px rgba(16,185,129,0.2); }

.guide-tooltip-arrow { position: absolute; width: 16px; height: 16px; background: #ffffff; transform: rotate(45deg); pointer-events: none; transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1); }
.arrow-top { top: -8px; border-top: 1px solid #f1f5f9; border-left: 1px solid #f1f5f9; }
.arrow-bottom { bottom: -8px; border-bottom: 1px solid #e2e8f0; border-right: 1px solid #e2e8f0; background: #fafbfc; }
.arrow-left { left: -8px; border-bottom: 1px solid #f1f5f9; border-left: 1px solid #f1f5f9; }
.arrow-right { right: -8px; border-top: 1px solid #f1f5f9; border-right: 1px solid #f1f5f9; }
.guide-tooltip-arrow.hidden { display: none; }

/* TOAST DE FÉLICITATIONS */
.guide-toast {
    position: fixed; bottom: 24px; right: 24px; z-index: 99999;
    background: #fff; border-radius: 12px; box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    display: flex; align-items: center; gap: 16px; padding: 16px 20px;
    border-left: 4px solid #10b981;
    transform: translateX(120%); opacity: 0; transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}
.guide-toast.visible { transform: translateX(0); opacity: 1; }
.guide-toast-icon { font-size: 24px; }
.guide-toast-title { font-size: 14px; font-weight: 800; color: #2b3648; }
.guide-toast-sub { font-size: 12px; color: #64748b; }
.guide-toast-close { background: none; border: none; font-size: 20px; color: #94a3b8; cursor: pointer; padding: 0; margin-left: 8px; }

/* Modale de bienvenue et boutons cachés par défaut */
.guide-welcome-overlay { position: fixed; inset: 0; z-index: 99999; background: rgba(15,23,42,0.8); display: none; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s; }
.guide-welcome-overlay.active { display: flex; opacity: 1; }
.guide-fab, .guide-picker { display: none; }