/* =========================================================
   MÂAD — APPLICATION
   Feuille de style principale
   ========================================================= */


/* =========================================================
   1. POLICES
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;600;700&family=Playfair+Display:wght@500;600;700&display=swap');


/* =========================================================
   2. VARIABLES
   ========================================================= */

:root {
    --violet-profond: #2a004a;
    --violet-signature: #4a0a6e;
    --violet-lumiere: #7a209b;

    --blanc-casse: #f6f1ff;
    --blanc-pur: #ffffff;

    --texte: #3a2a4a;
    --gris-secondaire: #666666;
    --gris-clair: #999999;

    --bordure: rgba(74, 10, 110, 0.13);

    --largeur-contenu: 1180px;

    --rayon: 14px;
    --rayon-grand: 20px;

    --transition: 0.22s ease;
}


/* =========================================================
   3. RESET
   ========================================================= */

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;

    background: #faf9fc;
    color: var(--texte);

    font-family: "Lato", sans-serif;
    font-size: 16px;
    line-height: 1.7;

    overflow-x: hidden;
}

a {
    color: inherit;
}

button,
input,
textarea {
    font: inherit;
}


/* =========================================================
   4. HEADER
   ========================================================= */

.app-header {
    position: sticky;
    top: 0;
    z-index: 1000;

    width: 100%;
    height: 76px;

    background: var(--violet-profond);

    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.app-header-inner {
    width: 100%;
    height: 76px;

    display: flex;
    align-items: center;

    padding: 0 34px;
}


/* =========================================================
   5. LOGO
   ========================================================= */

.app-logo {
    width: 190px;

    display: flex;
    align-items: center;

    text-decoration: none;
}

.app-logo-image {
    display: block;

    width: auto;
    height: 62px;

    object-fit: contain;
    object-position: left center;
}


/* Compatibilité avec l'ancien logo provisoire */

.app-logo-mark {
    color: #ffffff;
    font-size: 1.6rem;
}

.app-logo-text {
    margin-left: 8px;

    color: #ffffff;

    font-family: "Playfair Display", serif;
    font-size: 1.15rem;
}


/* =========================================================
   6. NAVIGATION DU HEADER
   ========================================================= */

.app-nav {
    flex: 1;

    display: flex;
    justify-content: center;
    align-items: center;

    gap: 34px;
}

.app-nav a {
    position: relative;

    color: rgba(255,255,255,0.68);

    font-size: 0.84rem;
    font-weight: 600;

    text-decoration: none;

    transition: color var(--transition);
}

.app-nav a:hover,
.app-nav a.active {
    color: #ffffff;
}

.app-nav a.active::after {
    content: "";

    position: absolute;
    left: 50%;
    bottom: -10px;

    width: 18px;
    height: 2px;

    transform: translateX(-50%);

    background: rgba(255,255,255,0.85);

    border-radius: 10px;
}


/* =========================================================
   7. UTILISATEUR
   ========================================================= */

.app-user {
    width: 190px;

    display: flex;
    justify-content: flex-end;
    align-items: center;

    gap: 9px;

    color: rgba(255,255,255,0.82);

    font-size: 0.82rem;
    font-weight: 600;
}

.user-avatar {
    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: rgba(255,255,255,0.12);
    color: #ffffff;

    font-weight: 700;
}


/* =========================================================
   8. STRUCTURE DE L'APPLICATION
   ========================================================= */

.app-shell {
    display: flex;

    min-height: calc(100vh - 76px);
}


/* =========================================================
   9. SIDEBAR
   ========================================================= */

.app-sidebar {
    position: sticky;
    top: 76px;

    width: 265px;
    min-width: 265px;
    height: calc(100vh - 76px);

    padding: 28px 18px 40px;

    background: #ffffff;

    border-right: 1px solid var(--bordure);

    overflow-y: auto;
}

.sidebar-title {
    margin: 0 10px 18px;

    color: var(--violet-profond);

    font-family: "Playfair Display", serif;
    font-size: 1.05rem;
    font-weight: 600;
}


/* =========================================================
   10. NAVIGATION DES 11 SECTIONS
   ========================================================= */

.section-nav {
    display: flex;
    flex-direction: column;

    gap: 4px;
}

.section-nav-item {
    display: flex;
    align-items: flex-start;

    gap: 11px;

    padding: 10px;

    border-radius: 10px;

    color: var(--texte);

    text-decoration: none;

    transition:
        background var(--transition),
        transform var(--transition);
}

a.section-nav-item {
    cursor: pointer;
}

a.section-nav-item:hover {
    background: rgba(122,32,155,0.055);
}

.section-nav-item.active {
    background: rgba(122,32,155,0.08);
}

.section-number {
    flex: 0 0 27px;

    color: var(--violet-lumiere);

    font-size: 0.70rem;
    font-weight: 700;

    letter-spacing: 0.05em;
}

.section-nav-name {
    display: block;

    color: var(--violet-profond);

    font-size: 0.78rem;
    font-weight: 600;

    line-height: 1.3;
}

.section-nav-status {
    display: block;

    margin-top: 2px;

    color: #a5a5a5;

    font-size: 0.66rem;
}

.section-nav-status.status-progress {
    color: var(--violet-lumiere);
    font-weight: 700;
}

.section-nav-status.status-complete {
    color: #638f6b;
    font-weight: 700;
}


/* =========================================================
   11. CONTENU PRINCIPAL
   ========================================================= */

.app-main {
    flex: 1;
    min-width: 0;
}

.app-content {
    width: min(100% - 70px, var(--largeur-contenu));

    margin: 0 auto;
    padding: 58px 0 80px;
}


/* =========================================================
   12. TYPOGRAPHIE
   ========================================================= */

.eyebrow {
    display: block;

    margin-bottom: 6px;

    color: var(--violet-lumiere);

    font-size: 0.68rem;
    font-weight: 700;

    letter-spacing: 0.20em;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    color: var(--violet-profond);
}

h1,
h2 {
    font-family: "Playfair Display", serif;
}

h1 {
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1.15;
}

h2 {
    font-size: 1.75rem;
    line-height: 1.25;
}

.dashboard-intro {
    max-width: 720px;

    margin-top: 16px;

    color: var(--gris-secondaire);

    font-size: 1rem;
    line-height: 1.7;
}


/* =========================================================
   13. TABLEAU DE BORD — INTRODUCTION
   ========================================================= */

.dashboard-header {
    margin-bottom: 34px;
}

.autosave-note {
    display: inline-block;

    margin-top: 18px;
    padding: 7px 13px;

    border-radius: 20px;

    background: rgba(122,32,155,0.06);

    color: var(--violet-signature);

    font-size: 0.76rem;
}


/* =========================================================
   14. PROGRESSION
   ========================================================= */

.progress-summary {
    margin-bottom: 26px;
    padding: 22px 24px;

    background: #ffffff;

    border: 1px solid var(--bordure);
    border-radius: var(--rayon);
}

.progress-title {
    display: flex;
    justify-content: space-between;

    margin-bottom: 12px;

    color: var(--violet-profond);

    font-size: 0.84rem;
}

.progress-line {
    height: 7px;

    overflow: hidden;

    background: #eee9f1;

    border-radius: 10px;
}

.progress-line span {
    display: block;

    width: 0%;
    height: 100%;

    background: var(--violet-lumiere);

    border-radius: inherit;

    transition: width 0.4s ease;
}


/* =========================================================
   15. CARTE REPRENDRE
   ========================================================= */

.resume-card {
    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 30px;

    margin-bottom: 46px;
    padding: 25px 28px;

    border-radius: var(--rayon-grand);

    background:
        linear-gradient(
            135deg,
            var(--violet-profond),
            var(--violet-signature)
        );

    color: #ffffff;
}

.resume-card h3 {
    margin-bottom: 4px;

    color: #ffffff;

    font-family: "Playfair Display", serif;
    font-size: 1.25rem;
}

.resume-card p {
    color: rgba(255,255,255,0.70);

    font-size: 0.85rem;
}


/* =========================================================
   16. BOUTONS
   ========================================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 44px;

    padding: 11px 22px;

    border: 1px solid transparent;
    border-radius: 24px;

    background: var(--violet-signature);
    color: #ffffff;

    font-family: "Lato", sans-serif;
    font-size: 0.80rem;
    font-weight: 700;

    text-decoration: none;

    cursor: pointer;

    transition:
        transform var(--transition),
        background var(--transition),
        box-shadow var(--transition);
}

.btn:hover {
    transform: translateY(-1px);

    background: var(--violet-lumiere);

    box-shadow: 0 6px 18px rgba(74,10,110,0.15);
}

.resume-card .btn {
    background: #ffffff;
    color: var(--violet-profond);
}

.resume-card .btn:hover {
    background: var(--blanc-casse);
}


/* =========================================================
   17. GRILLE DES 11 SECTIONS
   ========================================================= */

.sections-grid {
    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 16px;
}

.section-card {
    min-height: 255px;

    display: flex;
    flex-direction: column;

    padding: 23px;

    background: #ffffff;

    border: 1px solid var(--bordure);
    border-radius: var(--rayon);

    transition:
        transform var(--transition),
        box-shadow var(--transition),
        border-color var(--transition);
}

.section-card:hover {
    transform: translateY(-3px);

    border-color: rgba(122,32,155,0.28);

    box-shadow: 0 10px 26px rgba(74,10,110,0.06);
}

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-bottom: 14px;
}

.card-number {
    color: var(--violet-lumiere);

    font-size: 0.64rem;
    font-weight: 700;

    letter-spacing: 0.14em;
}

.card-private {
    color: #999999;

    font-size: 0.66rem;
}

.section-card h3 {
    margin-bottom: 9px;

    font-family: "Playfair Display", serif;
    font-size: 1.15rem;
    line-height: 1.3;
}

.section-card p {
    margin-bottom: 18px;

    color: #777777;

    font-size: 0.80rem;
    line-height: 1.55;
}

.card-status {
    margin-top: auto;
    margin-bottom: 10px;

    color: #999999;

    font-size: 0.72rem;
}

.card-status.status-progress {
    color: var(--violet-lumiere);
    font-weight: 700;
}

.card-status.status-complete {
    color: #638f6b;
    font-weight: 700;
}

.card-action {
    color: var(--violet-lumiere);

    font-size: 0.75rem;
    font-weight: 700;

    text-decoration: none;
}

a.card-action:hover {
    text-decoration: underline;
}


/* =========================================================
   18. ENCADRÉ "RIEN N'EST FIGÉ"
   ========================================================= */

.evolving-box {
    display: flex;
    align-items: flex-start;

    gap: 14px;

    margin-top: 38px;
    padding: 20px 22px;

    background: rgba(122,32,155,0.045);

    border-radius: var(--rayon);
}

.evolving-icon {
    color: var(--violet-lumiere);
}

.evolving-box strong {
    color: var(--violet-profond);

    font-size: 0.86rem;
}

.evolving-box p {
    margin-top: 3px;

    color: #777777;

    font-size: 0.80rem;
}


/* =========================================================
   19. MON INTENTION — CONTENEUR
   ========================================================= */

.intention-content {
    max-width: 920px;

    margin: 0 auto;

    padding-bottom: 70px;
}

.back-link {
    display: inline-block;

    margin-bottom: 30px;

    color: var(--violet-lumiere);

    font-size: 0.84rem;
    font-weight: 600;

    text-decoration: none;
}

.back-link:hover {
    text-decoration: underline;
}

.intention-header {
    margin-bottom: 38px;
}

.intention-header h1 {
    margin: 8px 0 14px;
}

.intention-reassurance {
    display: inline-block;

    margin-top: 14px;
    padding: 9px 15px;

    border-radius: 20px;

    background: rgba(122,32,155,0.07);

    color: var(--violet-signature);

    font-size: 0.85rem;
    font-style: italic;
}


/* =========================================================
   20. FORMULAIRE
   ========================================================= */

.form-card {
    display: flex;

    gap: 22px;

    margin-bottom: 24px;
    padding: 30px;

    background: #ffffff;

    border: 1px solid var(--bordure);
    border-radius: 18px;

    box-shadow: 0 8px 28px rgba(74,10,110,0.035);
}

.form-step {
    flex: 0 0 38px;

    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: var(--violet-profond);
    color: #ffffff;

    font-size: 0.80rem;
    font-weight: 700;
}

.form-card-content {
    flex: 1;

    min-width: 0;
}

.form-card h2 {
    margin: 2px 0 8px;

    font-size: 1.5rem;
}

.field-help {
    max-width: 700px;

    margin: 0 0 22px;

    color: #666666;

    font-size: 0.88rem;
    line-height: 1.65;
}


/* =========================================================
   21. CARTES DE CHOIX
   ========================================================= */

.choice-grid {
    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 12px;
}

.choice-card {
    position: relative;

    display: block;
}

.choice-card input {
    position: absolute;

    opacity: 0;
    pointer-events: none;
}

.choice-box {
    display: block;

    height: 100%;

    padding: 18px;

    background: #ffffff;

    border: 1px solid rgba(74,10,110,0.14);
    border-radius: 12px;

    cursor: pointer;

    transition:
        transform var(--transition),
        border-color var(--transition),
        background var(--transition),
        box-shadow var(--transition);
}

.choice-box:hover {
    transform: translateY(-2px);

    border-color: var(--violet-lumiere);

    box-shadow: 0 6px 18px rgba(74,10,110,0.07);
}

.choice-box strong {
    display: block;

    margin-bottom: 5px;

    color: var(--violet-profond);

    font-size: 0.90rem;
}

.choice-box small {
    display: block;

    color: #777777;

    font-size: 0.78rem;
    line-height: 1.45;
}

.choice-card input:checked + .choice-box {
    border-color: var(--violet-lumiere);

    background:
        linear-gradient(
            135deg,
            rgba(122,32,155,0.09),
            #ffffff
        );

    box-shadow:
        inset 0 0 0 1px rgba(122,32,155,0.10);
}

.choice-card input:checked + .choice-box::before {
    content: "✓";

    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 20px;
    height: 20px;

    margin-right: 7px;
    margin-bottom: 7px;

    border-radius: 50%;

    background: var(--violet-lumiere);
    color: #ffffff;

    font-size: 0.68rem;
    font-weight: 700;
}


/* =========================================================
   22. AUTRE RAISON
   ========================================================= */

.other-reason-wrap {
    display: none;

    margin-top: 20px;
}

.other-reason-wrap.visible {
    display: block;

    animation: maadFadeIn 0.22s ease;
}

.other-reason-wrap label {
    display: block;

    margin-bottom: 8px;

    color: var(--violet-profond);

    font-size: 0.84rem;
    font-weight: 600;
}

@keyframes maadFadeIn {

    from {
        opacity: 0;
        transform: translateY(-4px);
    }

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

}


/* =========================================================
   23. TEXTAREAS
   ========================================================= */

.form-card textarea {
    width: 100%;

    padding: 16px 18px;

    border: 1px solid rgba(74,10,110,0.18);
    border-radius: 12px;

    outline: none;

    background: #ffffff;
    color: #333333;

    font-family: "Lato", sans-serif;
    font-size: 0.91rem;
    line-height: 1.65;

    resize: vertical;

    transition:
        border-color var(--transition),
        box-shadow var(--transition);
}

.form-card textarea:focus {
    border-color: var(--violet-lumiere);

    box-shadow:
        0 0 0 3px rgba(122,32,155,0.08);
}

.form-card textarea::placeholder {
    color: #aaaaaa;
}

.large-textarea {
    min-height: 160px;
}

.intention-textarea {
    min-height: 210px;
}

.field-footer {
    display: flex;
    justify-content: space-between;

    gap: 20px;

    margin-top: 7px;

    color: #999999;

    font-size: 0.72rem;
}


/* =========================================================
   24. MOTS / ÉTAT D'ESPRIT
   ========================================================= */

.tag-choices {
    display: flex;
    flex-wrap: wrap;

    gap: 10px;
}

.tag-choice {
    position: relative;
}

.tag-choice input {
    position: absolute;

    opacity: 0;
    pointer-events: none;
}

.tag-choice span {
    display: inline-block;

    padding: 9px 16px;

    border: 1px solid rgba(74,10,110,0.18);
    border-radius: 30px;

    background: #ffffff;
    color: var(--violet-signature);

    font-size: 0.82rem;
    font-weight: 600;

    cursor: pointer;

    transition:
        background var(--transition),
        color var(--transition),
        border-color var(--transition),
        transform var(--transition);
}

.tag-choice span:hover {
    transform: translateY(-1px);

    border-color: var(--violet-lumiere);
}

.tag-choice input:checked + span {
    background: var(--violet-profond);
    border-color: var(--violet-profond);
    color: #ffffff;
}


/* =========================================================
   25. ENCADRÉ INTENTION
   ========================================================= */

.reflection-box {
    display: flex;
    align-items: flex-start;

    gap: 12px;

    margin-bottom: 18px;
    padding: 14px 16px;

    border-radius: 12px;

    background: rgba(122,32,155,0.06);
}

.reflection-mark {
    color: var(--violet-lumiere);
}

.reflection-box p {
    margin: 0;

    color: #666666;

    font-size: 0.80rem;
    line-height: 1.55;
}

.final-intention-card {
    border-color: rgba(122,32,155,0.22);

    background:
        linear-gradient(
            135deg,
            #ffffff,
            rgba(122,32,155,0.025)
        );
}


/* =========================================================
   26. ACTIONS DU FORMULAIRE
   ========================================================= */

.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 25px;

    margin: 32px 0;
    padding: 26px 0 0;

    border-top: 1px solid rgba(74,10,110,0.10);
}

.save-state {
    display: flex;
    align-items: center;

    gap: 8px;

    color: #888888;

    font-size: 0.75rem;
}

.save-dot {
    width: 8px;
    height: 8px;

    flex: 0 0 8px;

    border-radius: 50%;

    background: #cfcfcf;

    transition: background var(--transition);
}

.save-dot.saved {
    background: #66976f;
}

.form-buttons {
    display: flex;
    align-items: center;

    gap: 10px;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 44px;

    padding: 11px 21px;

    border: 1px solid var(--violet-lumiere);
    border-radius: 24px;

    background: #ffffff;
    color: var(--violet-signature);

    font-family: "Lato", sans-serif;
    font-size: 0.80rem;
    font-weight: 700;

    cursor: pointer;

    transition:
        background var(--transition),
        transform var(--transition);
}

.btn-secondary:hover {
    transform: translateY(-1px);

    background: rgba(122,32,155,0.06);
}


/* =========================================================
   27. RESPONSIVE
   On le garde propre, même si on peaufinera le mobile après.
   ========================================================= */

@media (max-width: 1100px) {

    .sections-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .app-nav {
        gap: 18px;
    }

}


@media (max-width: 850px) {

    .app-sidebar {
        display: none;
    }

    .app-logo {
        width: auto;
    }

    .app-user {
        width: auto;
    }

    .app-user > span:last-child {
        display: none;
    }

    .app-nav {
        display: none;
    }

    .app-header-inner {
        justify-content: space-between;
    }

    .app-content {
        width: min(100% - 36px, var(--largeur-contenu));

        padding-top: 38px;
    }

    .choice-grid {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 620px) {

    .sections-grid {
        grid-template-columns: 1fr;
    }

    .resume-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .form-card {
        display: block;

        padding: 22px;
    }

    .form-step {
        margin-bottom: 15px;
    }

    .form-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .form-buttons {
        flex-direction: column;

        width: 100%;
    }

    .form-buttons .btn,
    .form-buttons .btn-secondary {
        width: 100%;
    }

    .field-footer {
        align-items: flex-start;
        flex-direction: column;

        gap: 2px;
    }

}
/* =========================================================
   SECTION 02 — MES INFORMATIONS ESSENTIELLES
   ========================================================= */


/* ---------------------------------------------------------
   GRILLE DES CHAMPS
   --------------------------------------------------------- */

.maad-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 26px;
    margin-top: 28px;
}

.maad-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.maad-field-full {
    grid-column: 1 / -1;
}


/* ---------------------------------------------------------
   LABELS
   --------------------------------------------------------- */

.maad-field label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--violet-profond);
    line-height: 1.4;
}


/* ---------------------------------------------------------
   INPUTS / SELECT / TEXTAREA
   --------------------------------------------------------- */

.maad-field input[type="text"],
.maad-field input[type="email"],
.maad-field input[type="tel"],
.maad-field input[type="date"],
.maad-field select,
.maad-field textarea {
    width: 100%;
    box-sizing: border-box;

    padding: 13px 15px;

    border: 1px solid rgba(74, 10, 110, 0.20);
    border-radius: 10px;

    background: #ffffff;

    color: var(--texte);
    font-family: "Lato", sans-serif;
    font-size: 15px;
    line-height: 1.5;

    outline: none;

    transition:
        border-color var(--transition),
        box-shadow var(--transition),
        background var(--transition);
}


/* Placeholder */

.maad-field input::placeholder,
.maad-field textarea::placeholder {
    color: #aaa0af;
}


/* Focus */

.maad-field input:focus,
.maad-field select:focus,
.maad-field textarea:focus {
    border-color: var(--violet-lumiere);

    box-shadow:
        0 0 0 3px rgba(122, 32, 155, 0.09);

    background: #fff;
}


/* Textarea */

.maad-field textarea {
    resize: vertical;
    min-height: 90px;
}


/* Select */

.maad-field select {
    cursor: pointer;
}


/* ---------------------------------------------------------
   SOUS-FORMULAIRES
   --------------------------------------------------------- */

.maad-subform {
    margin-top: 26px;
    padding: 24px;

    background: rgba(246, 241, 255, 0.55);

    border: 1px solid rgba(74, 10, 110, 0.10);
    border-radius: 14px;
}

.maad-subform .maad-form-grid {
    margin-top: 0;
}


/* ---------------------------------------------------------
   CASE À COCHER
   --------------------------------------------------------- */

.maad-checkbox-line {
    display: flex;
    align-items: center;
    gap: 10px;

    margin: 20px 0;

    font-size: 14px;
    color: var(--texte);

    cursor: pointer;
}

.maad-checkbox-line input {
    width: 18px;
    height: 18px;

    accent-color: var(--violet-signature);

    cursor: pointer;
}


/* ---------------------------------------------------------
   BOUTONS SECONDAIRES DANS LA SECTION
   --------------------------------------------------------- */

.maad-subform .btn-secondary,
.maad-accordion-content .btn-secondary {
    margin-top: 18px;
}


/* ---------------------------------------------------------
   ACCORDÉON PROFESSIONNELS
   --------------------------------------------------------- */

.maad-accordion {
    margin-top: 24px;

    border: 1px solid rgba(74, 10, 110, 0.12);
    border-radius: 14px;

    background: rgba(246, 241, 255, 0.35);

    overflow: hidden;
}

.maad-accordion summary {
    padding: 18px 20px;

    color: var(--violet-signature);
    font-size: 14px;
    font-weight: 700;

    cursor: pointer;

    list-style-position: inside;
}

.maad-accordion summary:hover {
    background: rgba(74, 10, 110, 0.04);
}

.maad-accordion-content {
    padding: 4px 22px 24px;
}

.maad-accordion-content .maad-form-grid {
    margin-top: 15px;
}


/* ---------------------------------------------------------
   AVERTISSEMENT
   --------------------------------------------------------- */

.maad-warning {
    display: block;

    margin-top: 3px;

    color: #786c7e;
    font-size: 12px;
    line-height: 1.5;
}


/* ---------------------------------------------------------
   ÉLÉMENTS ENREGISTRÉS
   personnes / documents / professionnels
   --------------------------------------------------------- */

.saved-item-card {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;

    margin: 16px 0;
    padding: 18px 20px;

    background: #ffffff;

    border: 1px solid rgba(74, 10, 110, 0.13);
    border-radius: 12px;
}

.saved-item-content {
    flex: 1;
    min-width: 0;
}

.saved-item-title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;

    margin-bottom: 5px;

    color: var(--violet-profond);
    font-weight: 700;
    font-size: 15px;
}

.saved-item-badge {
    display: inline-flex;

    padding: 4px 9px;

    border-radius: 999px;

    background: rgba(122, 32, 155, 0.09);

    color: var(--violet-lumiere);

    font-size: 11px;
    font-weight: 700;
}

.saved-item-meta {
    margin-bottom: 5px;

    color: var(--violet-signature);
    font-size: 13px;
    font-weight: 700;
}

.saved-item-detail {
    margin-top: 3px;

    color: var(--gris-secondaire);
    font-size: 13px;
}

.saved-item-note {
    margin-top: 9px;

    color: var(--gris-secondaire);
    font-size: 13px;
    line-height: 1.5;
}


/* Supprimer */

.remove-item {
    flex-shrink: 0;

    padding: 7px 10px;

    border: 0;
    background: transparent;

    color: #8a718f;

    font-family: "Lato", sans-serif;
    font-size: 12px;

    cursor: pointer;

    border-radius: 8px;
}

.remove-item:hover {
    background: rgba(74, 10, 110, 0.06);
    color: var(--violet-signature);
}


/* ---------------------------------------------------------
   LISTES
   --------------------------------------------------------- */

#contactsList:not(:empty),
#documentsList:not(:empty),
#professionalsList:not(:empty) {
    margin-top: 22px;
    margin-bottom: 22px;
}


/* ---------------------------------------------------------
   BLOC SÉCURITÉ
   --------------------------------------------------------- */

.maad-security-box {
    margin: 8px 0 28px;
}

.maad-security-box p {
    margin: 0;
    line-height: 1.6;
}


/* ---------------------------------------------------------
   BOUTON RETOUR DANS LES ACTIONS
   --------------------------------------------------------- */

.form-buttons a.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    text-decoration: none;
}


/* ---------------------------------------------------------
   PETIT AJUSTEMENT DES CARTES DE LA SECTION 02
   --------------------------------------------------------- */

#informationsForm .form-card-content {
    width: 100%;
    min-width: 0;
}

#informationsForm .form-card {
    align-items: flex-start;
}


/* ---------------------------------------------------------
   MOBILE — base seulement
   --------------------------------------------------------- */

@media (max-width: 760px) {

    .maad-form-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .maad-field-full {
        grid-column: auto;
    }

    .maad-subform {
        padding: 18px;
    }

    .saved-item-card {
        flex-direction: column;
    }

    .remove-item {
        align-self: flex-start;
    }
}

/* ===== TABLEAU DE BORD v2 : offres, statuts, section future ===== */
[hidden]{display:none!important}
.dash-meta{margin:14px 0 0;font-size:.88rem;color:var(--gris-secondaire)}
.dash-legend{display:flex;flex-wrap:wrap;gap:6px 24px;margin:0 0 18px;font-size:.85rem;color:var(--gris-secondaire)}
.card-tag{font-size:.74rem;letter-spacing:0;text-transform:none;color:var(--violet-lumiere)}
.section-card.is-solemn{border-color:var(--violet-lumiere)}
.section-card.is-wait,.section-card.is-locked{border-style:dashed}
.section-card.is-locked{background:#faf8fd}
.section-card.is-locked h3,.section-card.is-locked p{color:var(--gris-secondaire)}
.section-nav-item.is-wait,.section-nav-item.is-locked{opacity:.55}
