
:root {
    --cypres-green: #123c32;
    --cypres-gold: #b9954f;
    --cypres-cream: #f7f5ef;
    --cypres-border: #ded8ca;
    --cypres-text: #302f2b;
    --cypres-muted: #716d64;
    --cypres-error: #a52b2b;
    --cypres-success: #176443;
    --cypres-white: #ffffff;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 125px;
}

body {
    margin: 0;
    background: var(--cypres-cream);
    color: var(--cypres-text);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.55;
}

/* ========================================
   EN-TÊTE FIXE ET LOGO
   ======================================== */

.agent-header {
    position: sticky;
    top: 0;
    z-index: 1000;

    width: 100%;
    min-height: 108px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;

    padding: 18px max(32px, calc((100% - 1180px) / 2));

    background: var(--cypres-white);
    color: var(--cypres-text);
    border-bottom: 2px solid var(--cypres-gold);
    box-shadow: 0 4px 16px rgb(0 0 0 / 5%);
}

.agent-header .brand {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    min-width: 0;
    flex-shrink: 0;

    color: var(--cypres-text);
    text-decoration: none;
}

.agent-header .brand-mark {
    display: grid;
    place-items: center;
    width: 59px;
    height: 59px;
    flex: 0 0 59px;
    overflow: hidden;

    border: 1px solid var(--cypres-gold);
    border-radius: 14px;
    background: var(--cypres-cream);
    color: var(--cypres-text);
}

.agent-header .brand-mark svg {
    display: block;
    width: 43px;
    height: 43px;
}

.agent-header .brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.agent-header .brand-name {
    color: white;
    font-size: 26px;
    font-weight: 850;
    letter-spacing: 3px;
}

.agent-header .brand-subtitle {
    margin-top: 3px;
    color: #96763c;
    font-size: 11px;
    font-weight: 750;
    letter-spacing: 5.2px;
}

.agent-header .brand-slogan {
    margin-top: 7px;
    color: var(--cypres-muted);
    font-size: 11px;
    letter-spacing: 0.1px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 12px 18px;

    border: 1px solid var(--cypres-border);
    border-radius: 8px;
    background: black;
    color: var(--cypres-text);

    font-size: 13px;
    font-weight: 700;
    text-decoration: none;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}

.back-link:hover {
    background: #f5f0e5;
    border-color: var(--cypres-gold);
    color: black;
}

/* ========================================
   CONTENU PRINCIPAL
   ======================================== */

.agent-main {
    width: min(900px, 92%);
    margin: 38px auto 60px;
}

.form-intro {
    margin-bottom: 25px;
}

.eyebrow {
    margin: 0 0 7px;
    color: #96763c;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
}

.form-intro h1 {
    margin: 0 0 12px;
    color: var(--cypres-text);
    font-size: clamp(28px, 4vw, 38px);
    line-height: 1.2;
}

.form-intro > p {
    max-width: 720px;
}

/* Encadré d'information */

.notice {
    padding: 12px 15px;
    border-left: 4px solid var(--cypres-gold);
    border-radius: 4px;
    background: #fffdf8;
    color: #514a3e;
}

/* ========================================
   FORMULAIRE
   ======================================== */

.listing-form {
    padding: clamp(18px, 4vw, 34px);
    border: 1px solid var(--cypres-border);
    border-radius: 16px;
    background: var(--cypres-white);
    box-shadow: 0 10px 30px rgb(50 43 30 / 5%);
}

.form-section {
    padding: 0 0 28px;
    margin: 0 0 28px;
    border-bottom: 1px solid #ece8df;
}

.form-section:last-of-type {
    margin-bottom: 22px;
}

.form-section h2 {
    margin: 0 0 22px;
    color: var(--cypres-text);
    font-size: 21px;
}

.field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.field {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.field:last-child {
    margin-bottom: 0;
}

.field label,
.security-field legend {
    color: #3e3a33;
    font-size: 14px;
    font-weight: 700;
}

input:not([type="checkbox"]):not([type="file"]),
select,
textarea {
    width: 100%;
    min-height: 46px;
    padding: 11px 12px;
    border: 1px solid #d5d0c5;
    border-radius: 8px;
    background: var(--cypres-white);
    color: var(--cypres-text);
    font: inherit;
}

textarea {
    min-height: 95px;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    outline: 3px solid rgb(185 149 79 / 20%);
    border-color: var(--cypres-gold);
}

input[type="file"] {
    display: block;
    width: 100%;
    padding: 12px;
    border: 1px dashed #c5b58f;
    border-radius: 8px;
    background: #fcfbf7;
    color: var(--cypres-text);
    font: inherit;
}

.field-help {
    margin: 0;
    color: var(--cypres-muted);
    font-size: 12px;
}

/* ========================================
   SÉCURITÉ ET CASES À COCHER
   ======================================== */

.security-field {
    display: grid;
    gap: 12px;
    min-width: 0;
    padding: 16px;
    margin: 0 0 20px;
    border: 1px solid var(--cypres-border);
    border-radius: 10px;
}

.security-field legend {
    padding: 0 6px;
}

.check-option,
.consent-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.check-option input,
.consent-option input {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    margin-top: 3px;
    accent-color: var(--cypres-gold);
}

.check-option span {
    font-size: 14px;
}

/* ========================================
   APERÇU DE LA COMMISSION
   ======================================== */

.commission-preview {
    padding: 17px;
    border: 1px solid #e4d5b4;
    border-radius: 10px;
    background: #fffaf0;
}

.commission-preview span {
    display: block;
    color: #554c3b;
    font-size: 13px;
}

.commission-preview strong {
    display: block;
    margin-top: 5px;
    color: var(--cypres-text);
    font-size: 23px;
}

.commission-preview p {
    margin: 7px 0 0;
    color: var(--cypres-muted);
    font-size: 12px;
}

/* ========================================
   FICHIERS SÉLECTIONNÉS
   ======================================== */

.selected-files {
    color: var(--cypres-muted);
    font-size: 13px;
    overflow-wrap: anywhere;
}

.selected-files ul {
    padding-left: 20px;
}

.selected-files li {
    margin-bottom: 5px;
}

/* ========================================
   CONSENTEMENTS
   ======================================== */

.agreement-section {
    display: grid;
    gap: 18px;
}

.agreement-section h2 {
    margin-bottom: 0;
}

.consent-option {
    font-size: 14px;
}

.consent-option span {
    flex: 1;
}

/* ========================================
   MESSAGES DU FORMULAIRE
   ======================================== */

.form-message {
    display: none;
    white-space: pre-line;
    padding: 13px 15px;
    margin: 0 0 18px;
    border-radius: 8px;
    font-size: 14px;
}

.form-message.error,
.form-message.success {
    display: block;
}

.form-message.error {
    border: 1px solid #e8b9b9;
    background: #fff1f1;
    color: var(--cypres-error);
}

.form-message.success {
    border: 1px solid #c9b98f;
    background: #fbf7eb;
    color: #62502b;
}

/* ========================================
   BOUTON D'ENVOI
   ======================================== */

.submit-button {
    width: 100%;
    min-height: 50px;
    padding: 13px 20px;
    border: 1px solid #a98b4f;
    border-radius: 9px;
    background: #e4cf9f;
    color: white;

    font-size: 15px;
    font-weight: 700;
    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.submit-button:hover:not(:disabled) {
    background: #d7bd82;
    transform: translateY(-1px);
}

.submit-button:focus-visible,
.back-link:focus-visible {
    outline: 3px solid rgb(185 149 79 / 40%);
    outline-offset: 3px;
}

.submit-button:disabled {
    cursor: wait;
    opacity: 0.65;
}

.form-footer {
    margin: 14px 0 0;
    color: var(--cypres-muted);
    font-size: 12px;
    text-align: center;
}

/* ========================================
   PIED DE PAGE
   ======================================== */

.agent-footer {
    padding: 22px 15px;
    border-top: 1px solid var(--cypres-border);
    background: #eeeae0;
    color: #5c564b;
    font-size: 12px;
    text-align: center;
}

.agent-footer p {
    margin: 0;
}

/* ========================================
   TABLETTES ET MOBILES
   ======================================== */

@media (max-width: 650px) {
    html {
        scroll-padding-top: 105px;
    }

    .agent-header {
        min-height: 92px;
        gap: 12px;
        padding: 14px 18px;
    }

    .agent-header .brand {
        min-width: 0;
        gap: 9px;
    }

    .agent-header .brand-mark {
        width: 46px;
        height: 46px;
        flex-basis: 46px;
        border-radius: 12px;
    }

    .agent-header .brand-mark svg {
        width: 34px;
        height: 34px;
    }

    .agent-header .brand-name {
        font-size: 20px;
        letter-spacing: 2px;
    }

    .agent-header .brand-subtitle {
        font-size: 9px;
        letter-spacing: 4px;
    }

    .agent-header .brand-slogan {
        max-width: 180px;
        font-size: 9px;
    }

    .back-link {
        padding: 9px 10px;
        font-size: 11px;
        text-align: center;
    }

    .agent-main {
        width: 94%;
        margin-top: 25px;
    }

    .field-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .listing-form {
        padding: 19px 15px;
    }

    .form-section h2 {
        font-size: 19px;
    }
}

/* Petits téléphones */

@media (max-width: 380px) {
    .agent-header {
        gap: 8px;
        padding-right: 10px;
        padding-left: 10px;
    }

    .agent-header .brand {
        gap: 7px;
    }

    .agent-header .brand-mark {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
        border-radius: 10px;
    }

    .agent-header .brand-mark svg {
        width: 30px;
        height: 30px;
    }

    .agent-header .brand-name {
        font-size: 17px;
        letter-spacing: 1.5px;
    }

    .agent-header .brand-subtitle {
        font-size: 8px;
        letter-spacing: 3px;
    }

    .agent-header .brand-slogan {
        max-width: 150px;
        font-size: 8px;
    }

    .back-link {
        max-width: 100px;
        padding: 8px;
        font-size: 10px;
    }
}

/* Réduction des animations si demandée par le système */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}


.agent-dashboard {
    margin: 0 auto 32px;
    padding: 24px;
    max-width: 1000px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-sizing: border-box;
}

.dashboard-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.dashboard-heading h2,
.dashboard-section h2 {
    margin-top: 0;
}

.agent-profile {
    margin: 20px 0;
    padding: 16px;
    background: #f7f8f5;
    border-radius: 10px;
    overflow-wrap: anywhere;
}

.agent-profile p {
    margin: 8px 0;
}

.dashboard-section {
    margin-top: 28px;
}

.agent-card-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: 16px;
}

.agent-card {
    min-width: 0;
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow-wrap: anywhere;
}

.agent-card h3 {
    margin-top: 0;
}

.status-label {
    font-weight: 700;
}

.empty-state {
    padding: 16px;
    background: #f7f8f5;
    border-radius: 8px;
}

@media (max-width: 600px) {
    .agent-dashboard {
        padding: 16px;
        margin-left: 12px;
        margin-right: 12px;
    }

    .dashboard-heading .submit-button {
        width: 100%;
    }
}


/* =========================================
   CYPRES IMMOBILIER — NAVIGATION AGENT
   ========================================= */

:root {
    --agent-green: #123d32;
    --agent-green-light: #e7f0eb;
    --agent-gold: #d8b66a;
    --agent-text: #24352f;
    --agent-muted: #718078;
    --agent-bg: #f4f7f5;
    --agent-border: #e1e8e3;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    background: var(--agent-bg);
    color: var(--agent-text);
}

/* En-tête de marque */

.agent-header {
    background: var(--agent-green);
    color: #fff;
    padding: 18px clamp(16px, 4vw, 48px);
    border-bottom: 3px solid var(--agent-gold);
}

.agent-header .brand {
    color: #fff;
}

.agent-header .back-link {
    color: #fff;
}

/* Menu horizontal */

.agent-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px clamp(12px, 4vw, 48px);
    background: #fff;
    border-bottom: 1px solid var(--agent-border);
    box-shadow: 0 4px 16px rgb(18 61 50 / 5%);
    overflow-x: auto;
    scrollbar-width: thin;
}

.agent-nav-link {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 16px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: #53645b;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}

.agent-nav-link:hover {
    background: var(--agent-green-light);
    color: var(--agent-green);
}

.agent-nav-link.active {
    background: var(--agent-green);
    color: #fff;
}

.agent-nav-link:focus-visible {
    outline: 3px solid var(--agent-gold);
    outline-offset: 2px;
}

.agent-nav-logout {
    margin-left: auto;
    border-color: var(--agent-border);
    color: #8a3b36;
}

.agent-nav-logout:hover {
    background: #fff0ef;
    color: #8a3b36;
}

/* Contenu général */

.agent-main {
    width: min(1180px, calc(100% - 32px));
    margin: 32px auto;
}

.form-intro {
    margin-bottom: 26px;
}

.form-intro h1 {
    color: var(--agent-green);
    letter-spacing: -.035em;
}

.agent-dashboard,
.listing-form {
    background: #fff;
    border: 1px solid var(--agent-border);
    border-radius: 16px;
    box-shadow: 0 8px 30px rgb(18 61 50 / 4%);
}

.agent-dashboard {
    max-width: none;
    margin: 0 0 30px;
    padding: clamp(20px, 3vw, 32px);
}

.dashboard-heading {
    padding-bottom: 20px;
    border-bottom: 1px solid var(--agent-border);
}

.dashboard-heading h2,
.dashboard-section h2 {
    color: var(--agent-green);
    letter-spacing: -.02em;
}

.agent-profile {
    background: #f7f9f7;
    border: 1px solid var(--agent-border);
}

.agent-card {
    background: #fff;
    border-color: var(--agent-border);
    box-shadow: 0 3px 12px rgb(18 61 50 / 3%);
    transition: transform .2s ease, box-shadow .2s ease;
}

.agent-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgb(18 61 50 / 8%);
}

.status-label {
    display: inline-block;
    padding: 6px 10px;
    background: var(--agent-green-light);
    color: var(--agent-green);
    border-radius: 6px;
}

.listing-form {
    padding: clamp(18px, 3vw, 32px);
}

.form-section {
    padding-bottom: 24px;
    margin-bottom: 24px;
    border-bottom: 1px solid #edf0ed;
}

.form-section h2 {
    color: var(--agent-green);
}

.field input,
.field select,
.field textarea {
    border-color: #d8e0da;
    border-radius: 8px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--agent-green);
    outline: 2px solid rgb(18 61 50 / 12%);
}

.submit-button {
    background: var(--agent-green);
    border-radius: 8px;
    transition: background .2s ease;
}

.submit-button:hover {
    background: #1b5948;
}

.agent-footer {
    color: var(--agent-muted);
}

/* Téléphones et petits écrans */

@media (max-width: 650px) {
    .agent-header {
        gap: 12px;
        flex-wrap: wrap;
    }

    .agent-nav {
        gap: 4px;
        padding: 8px 10px;
    }

    .agent-nav-link {
        min-height: 40px;
        padding: 9px 12px;
        font-size: 13px;
    }

    .agent-nav-logout {
        margin-left: 0;
    }

    .agent-main {
        width: calc(100% - 20px);
        margin: 20px auto;
    }

    .dashboard-heading {
        align-items: stretch;
    }

    .agent-dashboard,
    .listing-form {
        border-radius: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .agent-card,
    .agent-nav-link {
        transition: none;
    }
}


/* CYPRES IMMOBILIER — MENU VERTICAL PROFESSIONNEL */

.agent-nav {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 200;
    width: 250px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 8px;
    padding: 24px 16px;
    overflow-x: hidden;
    overflow-y: auto;
    background: #123d32;
    border-right: 3px solid #d8b66a;
    box-shadow: 4px 0 20px rgb(0 0 0 / 8%);
}

.sidebar-brand {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px 12px 28px;
    margin-bottom: 14px;
    border-bottom: 1px solid rgb(255 255 255 / 16%);
}

.sidebar-brand-name {
    color: #fff;
    font-size: 27px;
    font-weight: 800;
    letter-spacing: 3px;
}

.sidebar-brand-subtitle {
    color: #d8b66a;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 5px;
}

.sidebar-brand-slogan {
    margin-top: 8px;
    color: #d8e5de;
    font-size: 11px;
    line-height: 1.5;
}

.sidebar-label {
    padding: 0 12px;
    margin: 8px 0;
    color: #b4c9be;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.agent-nav .agent-nav-link {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    width: 100%;
    min-height: 46px;
    box-sizing: border-box;
    padding: 12px;
    border: 1px solid transparent;
    border-radius: 9px;
    background: transparent;
    color: #e4eee8;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    text-align: left;
    text-decoration: none;
    white-space: normal;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}

.agent-nav .agent-nav-link:hover {
    background: rgb(255 255 255 / 9%);
    color: #fff;
}

.agent-nav .agent-nav-link.active {
    background: #d8b66a;
    color: #123d32;
    font-weight: 800;
}

.nav-icon {
    display: inline-flex;
    flex: 0 0 24px;
    align-items: center;
    justify-content: center;
    font-size: 21px;
    line-height: 1;
}

.sidebar-bottom {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid rgb(255 255 255 / 16%);
}

.agent-nav .agent-nav-logout {
    color: #ffe0d8;
}

.agent-nav .agent-nav-logout:hover {
    background: rgb(255 255 255 / 10%);
    color: #fff;
}

/* Décaler la zone de travail à droite du menu */

.agent-header {
    margin-left: 250px;
}

.agent-main {
    width: auto;
    max-width: 1180px;
    margin: 32px 30px 32px 280px;
}

.agent-footer {
    margin-left: 250px;
}

/* Adaptation aux téléphones */

@media (max-width: 760px) {
    .agent-nav {
        position: sticky;
        top: 0;
        bottom: auto;
        width: 100%;
        max-height: none;
        flex-direction: row;
        align-items: center;
        gap: 6px;
        padding: 8px;
        border-right: 0;
        border-bottom: 3px solid #d8b66a;
    }

    .sidebar-brand,
    .sidebar-label,
    .sidebar-bottom {
        display: none;
    }

    .agent-nav .agent-nav-link {
        width: auto;
        min-width: max-content;
        min-height: 42px;
        padding: 10px;
        font-size: 12px;
    }

    .agent-nav .agent-nav-logout {
        margin-left: 0;
    }

    .agent-header,
    .agent-footer {
        margin-left: 0;
    }

    .agent-main {
        width: auto;
        margin: 20px 12px;
    }
}



/* Indicateurs du tableau de bord CYPRES IMMOBILIER */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    width: 100%;
    max-width: 900px;
    margin: 22px 0;
    box-sizing: border-box;
}

.dashboard-stat-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    min-width: 0;
    padding: 18px 16px;
    background: #ffffff;
    border: 1px solid #e2eae5;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgb(18 61 50 / 5%);
    box-sizing: border-box;
}

.dashboard-stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #e8f2ed;
    color: #123d32;
    font-size: 21px;
    font-weight: 700;
}

.dashboard-stat-number {
    color: #123d32;
    font-size: 27px;
    line-height: 1.2;
    font-weight: 750;
}

.dashboard-stat-title {
    color: #66756d;
    font-size: 12px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

@media (max-width: 900px) {
    .dashboard-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 420px) {
    .dashboard-stats {
        gap: 9px;
    }

    .dashboard-stat-card {
        padding: 13px 11px;
    }

    .dashboard-stat-number {
        font-size: 23px;
    }
}



/* =========================================================
   MESSAGERIE AGENT CYPRES IMMOBILIER
========================================================= */

#section-messagerie {
    scroll-margin-top: 25px;
}

#section-messagerie > p {
    color: #66756d;
    line-height: 1.5;
}

#messages-agent {
    display: flex;
    flex-direction: column;
    gap: 13px;
    min-height: 180px;
    max-height: 430px;
    margin: 18px 0;
    padding: 18px;
    overflow-y: auto;
    background: #ffffff;
    border: 1px solid #e2eae5;
    border-radius: 10px;
}

#messages-agent .message-bulle {
    max-width: 78%;
    padding: 12px 15px;
    border-radius: 10px;
    overflow-wrap: anywhere;
}

#messages-agent .message-bulle strong {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
}

#messages-agent .message-bulle p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    white-space: pre-wrap;
}

#messages-agent .message-bulle small {
    display: block;
    margin-top: 8px;
    font-size: 10px;
    opacity: 0.75;
}

#messages-agent .message-utilisateur {
    align-self: flex-end;
    background: #e8f2ed;
    color: #123d32;
}

#messages-agent .message-admin {
    align-self: flex-start;
    background: #285c3b;
    color: #ffffff;
}

#formulaire-messagerie-agent {
    padding: 18px;
    background: #f8faf8;
    border: 1px solid #e2eae5;
    border-radius: 10px;
}

#formulaire-messagerie-agent textarea {
    display: block;
    width: 100%;
    min-height: 100px;
    padding: 12px;
    border: 1px solid #d6dcd7;
    border-radius: 8px;
    font: inherit;
    resize: vertical;
    box-sizing: border-box;
}

#formulaire-messagerie-agent textarea:focus {
    outline: 2px solid #8eae96;
    border-color: #285c3b;
}

#formulaire-messagerie-agent button:disabled {
    opacity: 0.6;
    cursor: wait;
}

#message-statut-agent {
    margin-top: 12px;
    color: #285c3b;
    font-size: 13px;
    line-height: 1.5;
}

#badge-messagerie-agent {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    margin-left: auto;
    padding: 0 5px;
    border-radius: 20px;
    background: #285c3b;
    color: #ffffff;
    font-size: 11px;
}

@media (max-width: 600px) {
    #messages-agent .message-bulle {
        max-width: 92%;
    }

    #formulaire-messagerie-agent {
        padding: 12px;
    }
}






