/* =========================================================
   DZMARKET - STYLE PRINCIPAL
   VERSION SOBRE / PROFESSIONNELLE
   ========================================================= */


/* =========================================================
   RESET
   ========================================================= */

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

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f6f7f8;
    color: #252525;
    line-height: 1.5;
}

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

button,
input,
select,
textarea {
    font-family: inherit;
}


/* =========================================================
   HEADER
   ========================================================= */

.header {
    background: #ffffff;
    border-bottom: 1px solid #e7e9eb;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    min-height: 70px;
    padding: 0 20px;

    display: flex;
    align-items: center;
    gap: 22px;
}


/* ---------- LOGO ---------- */

.logo {
    font-size: 27px;
    font-weight: 800;
    color: #2f7d5a;
    white-space: nowrap;
}

.logo span {
    color: #252525;
}


/* ---------- HEADER SEARCH ---------- */

.header-search {
    flex: 1;
}

.header-search input {
    width: 100%;
    height: 40px;

    padding: 0 14px;

    border: 1px solid #dfe2e5;
    border-radius: 7px;

    outline: none;
    font-size: 14px;

    background: #f8f9fa;
    color: #333;

    transition: border-color 0.15s ease,
                background 0.15s ease;
}

.header-search input:focus {
    border-color: #9bb9aa;
    background: #ffffff;
}


/* =========================================================
   HEADER BUTTONS
   ========================================================= */

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

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

    min-height: 38px;
    padding: 0 13px;

    border-radius: 7px;

    font-size: 13px;
    font-weight: 600;

    transition: background 0.15s ease,
                border-color 0.15s ease,
                color 0.15s ease;
}

.btn-login {
    color: #326b52;
    border: 1px solid #cfded6;
    background: #ffffff;
}

.btn-login:hover {
    background: #f2f7f4;
    border-color: #b9cec2;
}

.btn-post {
    color: #ffffff;
    background: #39785a;
}

.btn-post:hover {
    background: #30684e;
}


/* =========================================================
   NAVIGATION
   ========================================================= */

.nav {
    background: #ffffff;
    border-bottom: 1px solid #e7e9eb;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;

    min-height: 46px;

    display: flex;
    align-items: center;
    gap: 25px;

    overflow-x: auto;
}

.nav-container a {
    font-size: 13px;
    color: #555;
    white-space: nowrap;
    padding: 13px 0;

    transition: color 0.15s ease;
}

.nav-container a:hover {
    color: #39785a;
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
    background: #39785a;
    color: #ffffff;
    padding: 52px 20px;
}

.hero-container {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.hero h1 {
    font-size: 35px;
    margin-bottom: 8px;
}

.hero p {
    font-size: 16px;
    opacity: 0.92;
    margin-bottom: 27px;
}


/* =========================================================
   SEARCH BOX
   ========================================================= */

.search-box {
    max-width: 1050px;
    margin: 0 auto;

    background: #ffffff;
    padding: 9px;

    border-radius: 9px;

    display: flex;
    gap: 8px;

    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.09);
}

.search-box input,
.search-box select {
    height: 43px;

    border: 1px solid #dfe2e5;
    border-radius: 7px;

    padding: 0 12px;

    outline: none;

    background: #ffffff;
    color: #333;

    font-size: 14px;
}

.search-box input {
    flex: 2;
}

.search-box select {
    flex: 1;
}

.search-box input:focus,
.search-box select:focus {
    border-color: #9bb9aa;
}

.search-btn {
    height: 43px;

    padding: 0 22px;

    border: none;
    border-radius: 7px;

    background: #343a3f;
    color: #ffffff;

    font-size: 13px;
    font-weight: 700;

    cursor: pointer;

    transition: background 0.15s ease;
}

.search-btn:hover {
    background: #292e32;
}


/* =========================================================
   MAIN CONTAINER
   ========================================================= */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 42px 20px;
}


/* =========================================================
   SECTION TITLE
   ========================================================= */

.section-title {
    font-size: 23px;
    margin-bottom: 21px;
    color: #292d30;
}


/* =========================================================
   CATEGORIES
   ========================================================= */

.categories {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
    margin-bottom: 48px;
}

.category {
    background: #ffffff;

    border: 1px solid #e3e6e8;
    border-radius: 9px;

    padding: 20px 10px;

    text-align: center;

    transition: border-color 0.15s ease,
                box-shadow 0.15s ease,
                transform 0.15s ease;

    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.025);
}

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

    border-color: #b9cec2;

    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.055);
}

.category-icon {
    font-size: 32px;
    margin-bottom: 7px;
}

.category-name {
    font-size: 14px;
    font-weight: 600;
}


/* =========================================================
   ANNONCES
   ========================================================= */

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


/* ---------- CARTE ANNONCE ---------- */

.ad-card {
    display: block;

    background: #ffffff;

    border: 1px solid #e1e4e6;
    border-radius: 9px;

    overflow: hidden;

    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.035);

    transition: transform 0.15s ease,
                box-shadow 0.15s ease;
}

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

    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.075);
}


/* =========================================================
   IMAGE / ZONE SANS IMAGE
   ========================================================= */

.ad-image {
    width: 100%;
    height: 220px;

    background: #e9ebed;

    overflow: hidden;

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

.ad-image img {
    width: 100%;
    height: 100%;

    object-fit: contain;

    display: block;

    background: #e9ebed;
}


/* =========================================================
   CONTENU ANNONCE
   ========================================================= */

.ad-content {
    padding: 14px;
}

.ad-title {
    font-size: 16px;
    font-weight: 700;

    margin-bottom: 7px;

    color: #292d30;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;

    overflow: hidden;

    min-height: 48px;
}

.ad-price {
    color: #39785a;

    font-size: 17px;
    font-weight: 800;

    margin-bottom: 7px;
}

.ad-location {
    font-size: 13px;
    color: #70757a;

    margin-bottom: 7px;
}

.ad-category {
    display: inline-block;

    font-size: 12px;

    color: #39785a;
    background: #edf5f1;

    padding: 4px 8px;

    border-radius: 5px;
}


/* =========================================================
   FOOTER
   ========================================================= */

.footer {
    margin-top: 40px;

    background: #303438;
    color: #ffffff;

    padding: 38px 20px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;

    text-align: center;
}

.footer h3 {
    font-size: 21px;
    margin-bottom: 8px;
}

.footer p {
    color: #c1c5c8;
    font-size: 14px;
}


/* =========================================================
   BOUTONS GÉNÉRAUX DES PAGES UTILISATEUR
   ========================================================= */

.edit-btn,
.view-btn,
.delete-btn,
.cancel-btn {
    display: inline-flex;

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

    min-height: 36px;

    padding: 0 12px;

    border-radius: 6px;

    font-size: 13px;
    font-weight: 600;

    cursor: pointer;

    transition: background 0.15s ease,
                border-color 0.15s ease,
                color 0.15s ease;
}


/* ---------- MODIFIER ---------- */

.edit-btn {
    background: #f1f5f3;
    color: #356b52;
    border: 1px solid #cbdcd2;
}

.edit-btn:hover {
    background: #e7f0eb;
    border-color: #b6cdbf;
}


/* ---------- VOIR ---------- */

.view-btn {
    background: #f3f5f6;
    color: #50575c;
    border: 1px solid #d8dde0;
}

.view-btn:hover {
    background: #e9edef;
    border-color: #c7cdd1;
}


/* ---------- SUPPRIMER ---------- */

.delete-btn {
    background: #fbf2f2;
    color: #a44a4a;
    border: 1px solid #ead0d0;
}

.delete-btn:hover {
    background: #f7e7e7;
    border-color: #dfbbbb;
}


/* ---------- ANNULER ---------- */

.cancel-btn {
    background: #f5f6f7;
    color: #555d62;
    border: 1px solid #d9dde0;
}

.cancel-btn:hover {
    background: #eceff1;
}


/* =========================================================
   STATUTS
   ========================================================= */

.status-approved,
.status-pending,
.status-rejected {
    display: inline-flex;

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

    padding: 4px 9px;

    border-radius: 5px;

    font-size: 12px;
    font-weight: 600;
}


/* ---------- APPROUVÉ ---------- */

.status-approved {
    color: #39785a;
    background: #edf5f1;
    border: 1px solid #d3e5db;
}


/* ---------- EN ATTENTE ---------- */

.status-pending {
    color: #8a6a35;
    background: #faf5e9;
    border: 1px solid #eadfca;
}


/* ---------- REFUSÉ ---------- */

.status-rejected {
    color: #a44a4a;
    background: #fbf2f2;
    border: 1px solid #ead0d0;
}


/* =========================================================
   FORMULAIRES
   ========================================================= */

.form-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 35px 20px 60px;
}

.form-card {
    background: #ffffff;

    border: 1px solid #e1e4e6;
    border-radius: 11px;

    padding: 32px;

    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.045);
}

.form-card h1 {
    font-size: 29px;
    margin-bottom: 8px;
}

.form-intro {
    color: #777d81;
    margin-bottom: 28px;
}

.form-group {
    margin-bottom: 19px;
}

.form-group label {
    display: block;

    font-size: 13px;
    font-weight: 700;

    margin-bottom: 7px;

    color: #404548;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;

    border: 1px solid #d9dde0;
    border-radius: 7px;

    padding: 10px 12px;

    font-size: 14px;

    outline: none;

    background: #ffffff;
    color: #333;

    transition: border-color 0.15s ease,
                box-shadow 0.15s ease;
}

.form-group input,
.form-group select {
    height: 42px;
}

.form-group textarea {
    resize: vertical;
    min-height: 130px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #9bb9aa;

    box-shadow: 0 0 0 2px rgba(57, 120, 90, 0.08);
}

.form-help {
    display: block;

    margin-top: 6px;

    color: #888e92;

    font-size: 12px;
}


/* =========================================================
   MESSAGES FORMULAIRES
   ========================================================= */

.form-message {
    padding: 12px 14px;

    border-radius: 7px;

    margin-bottom: 22px;

    font-size: 13px;
}

.form-message.success {
    background: #edf5f1;
    color: #39785a;
    border: 1px solid #d3e5db;
}

.form-message.error {
    background: #fbf2f2;
    color: #a44a4a;
    border: 1px solid #ead0d0;
}


/* =========================================================
   BOUTON PRINCIPAL FORMULAIRE
   ========================================================= */

.submit-btn {
    width: 100%;

    min-height: 46px;

    border: none;
    border-radius: 7px;

    background: #39785a;
    color: #ffffff;

    font-size: 14px;
    font-weight: 700;

    cursor: pointer;

    transition: background 0.15s ease;
}

.submit-btn:hover {
    background: #30684e;
}

.submit-btn:active {
    transform: translateY(1px);
}


/* =========================================================
   APERÇU DES PHOTOS
   ========================================================= */

.image-preview {
    display: grid;

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

    gap: 14px;

    margin-top: 16px;
}

.image-preview-item {
    background: #f6f7f8;

    border: 1px solid #dde1e3;

    border-radius: 8px;

    overflow: hidden;
}

.image-preview-item img {
    width: 100%;
    height: 155px;

    object-fit: cover;

    display: block;

    background: #e8eaec;
}

.image-preview-controls {
    display: flex;

    align-items: center;

    gap: 8px;

    padding: 9px;

    font-size: 13px;
}

.image-preview-controls input {
    width: auto;
}

.image-preview-controls label {
    margin: 0;

    cursor: pointer;

    font-weight: 600;
}


/* =========================================================
   INSCRIPTION / CONNEXION
   ========================================================= */

.form-bottom-text {
    text-align: center;

    margin-top: 20px;

    color: #777d81;

    font-size: 14px;
}

.form-bottom-text a {
    color: #39785a;
    font-weight: 700;
}

.form-bottom-text a:hover {
    text-decoration: underline;
}


/* =========================================================
   PAGE DETAIL ANNONCE
   ========================================================= */

.detail-container {
    max-width: 1200px;
    margin: 0 auto;

    padding: 35px 20px 60px;
}

.back-link {
    display: inline-block;

    margin-bottom: 23px;

    color: #39785a;

    font-size: 14px;
    font-weight: 600;
}

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

.detail-layout {
    display: grid;

    grid-template-columns: 1.2fr 1fr;

    gap: 28px;

    align-items: start;
}

.detail-gallery {
    background: #ffffff;

    border: 1px solid #e1e4e6;

    border-radius: 11px;

    overflow: hidden;
}

.detail-main-image {
    width: 100%;
    height: 500px;

    background: #e8eaec;

    display: flex;

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

    overflow: hidden;
}

.detail-main-image img {
    width: 100%;
    height: 100%;

    object-fit: contain;

    display: block;
}

.detail-no-image {
    width: 100%;
    height: 500px;

    background: #e8eaec;

    display: flex;

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

    color: #888e92;

    font-size: 18px;
}

.detail-thumbnails {
    display: flex;

    gap: 9px;

    padding: 11px;

    overflow-x: auto;
}

.detail-thumbnail {
    width: 88px;
    height: 68px;

    flex: 0 0 auto;

    border: 1px solid #d9dde0;

    border-radius: 6px;

    overflow: hidden;

    background: #e8eaec;
}

.detail-thumbnail img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;
}

.detail-info {
    background: #ffffff;

    border: 1px solid #e1e4e6;

    border-radius: 11px;

    padding: 28px;
}

.detail-category {
    display: inline-block;

    color: #39785a;

    background: #edf5f1;

    padding: 5px 9px;

    border-radius: 5px;

    font-size: 12px;
    font-weight: 600;

    margin-bottom: 14px;
}

.detail-title {
    font-size: 29px;

    line-height: 1.25;

    margin-bottom: 17px;

    color: #292d30;
}

.detail-price {
    font-size: 27px;

    font-weight: 800;

    color: #39785a;

    margin-bottom: 14px;
}

.detail-location {
    color: #70757a;

    font-size: 14px;
}

.detail-separator {
    height: 1px;

    background: #e5e7e9;

    margin: 23px 0;
}

.detail-info h2 {
    font-size: 18px;

    margin-bottom: 11px;

    color: #292d30;
}

.detail-description {
    color: #4f5559;

    font-size: 15px;

    line-height: 1.7;

    margin-bottom: 28px;
}

.seller-box {
    background: #f6f7f8;

    border-radius: 8px;

    padding: 17px;

    margin-bottom: 19px;
}

.seller-box h2 {
    margin-bottom: 11px;
}

.seller-box p {
    margin-bottom: 6px;

    color: #5c6266;
}

.seller-box p:last-child {
    margin-bottom: 0;
}

.detail-date {
    color: #888e92;

    font-size: 13px;

    margin-bottom: 17px;
}


/* =========================================================
   BOUTON CONTACT
   ========================================================= */

.contact-btn {
    display: flex;

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

    width: 100%;

    min-height: 46px;

    background: #39785a;

    color: #ffffff;

    border-radius: 7px;

    font-size: 14px;

    font-weight: 700;

    transition: background 0.15s ease;
}

.contact-btn:hover {
    background: #30684e;
}


/* =========================================================
   LIEN CARTE ANNONCE
   ========================================================= */

.ad-card {
    display: block;
    color: inherit;
}


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

@media (max-width: 1000px) {

    .categories {
        grid-template-columns: repeat(3, 1fr);
    }

    .ads {
        grid-template-columns: repeat(3, 1fr);
    }

    .search-box {
        flex-wrap: wrap;
    }

    .search-box input,
    .search-box select {
        flex: 1 1 30%;
    }

    .search-btn {
        flex: 1 1 100%;
    }
}


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

@media (max-width: 900px) {

    .detail-layout {
        grid-template-columns: 1fr;
    }

    .detail-main-image,
    .detail-no-image {
        height: 420px;
    }
}


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

@media (max-width: 700px) {

    .header-container {
        flex-wrap: wrap;

        padding-top: 12px;
        padding-bottom: 12px;

        gap: 11px;
    }

    .logo {
        font-size: 24px;
    }

    .header-search {
        order: 3;
        flex-basis: 100%;
    }

    .header-actions {
        margin-left: auto;
    }

    .btn-login,
    .btn-post {
        padding: 0 9px;
        font-size: 12px;
    }

    .hero {
        padding: 40px 15px;
    }

    .hero h1 {
        font-size: 28px;
    }

    .hero p {
        font-size: 15px;
    }

    .search-box {
        flex-direction: column;
    }

    .search-box input,
    .search-box select,
    .search-btn {
        width: 100%;
        flex: none;
    }

    .container {
        padding: 34px 15px;
    }

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

    .ads {
        grid-template-columns: repeat(2, 1fr);

        gap: 12px;
    }

    .ad-image {
        height: 180px;
    }

    .form-container {
        padding: 25px 15px 45px;
    }

    .form-card {
        padding: 22px;
    }

    .form-card h1 {
        font-size: 24px;
    }

    .image-preview {
        grid-template-columns: repeat(2, 1fr);
    }

    .detail-container {
        padding: 25px 15px 45px;
    }

    .detail-info {
        padding: 20px;
    }

    .detail-title {
        font-size: 24px;
    }

    .detail-price {
        font-size: 24px;
    }

    .detail-main-image,
    .detail-no-image {
        height: 320px;
    }
}


/* =========================================================
   PETIT MOBILE
   ========================================================= */

@media (max-width: 450px) {

    .header-actions {
        width: 100%;
    }

    .btn-login,
    .btn-post {
        flex: 1;
    }

    .categories {
        grid-template-columns: 1fr 1fr;

        gap: 10px;
    }

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

    .ad-image {
        height: 220px;
    }

    .image-preview {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   DZMARKET - FORMULAIRE DE RECHERCHE COMPACT
   ========================================================= */

.annonces-search,
.advanced-search,
.search-filters {
    max-width: 100%;
    padding: 18px;
    margin: 0 auto 25px;
    background: #fff;
    border: 1px solid #e5e7e9;
    border-radius: 10px;
}

/* Disposition compacte des champs */
.annonces-search form,
.advanced-search form,
.search-filters form {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    align-items: end;
}

/* Champs de recherche */
.annonces-search input,
.annonces-search select,
.advanced-search input,
.advanced-search select,
.search-filters input,
.search-filters select {
    width: 100%;
    min-width: 0;
    height: 38px;
    padding: 0 10px;
    font-size: 13px;
    color: #45494c;
    background: #fafbfb;
    border: 1px solid #d9dddf;
    border-radius: 6px;
    outline: none;
    box-shadow: none;
}

/* Focus discret */
.annonces-search input:focus,
.annonces-search select:focus,
.advanced-search input:focus,
.advanced-search select:focus,
.search-filters input:focus,
.search-filters select:focus {
    border-color: #9ab9a7;
    background: #fff;
    box-shadow: 0 0 0 2px rgba(90, 130, 105, 0.08);
}

/* Libellés */
.annonces-search label,
.advanced-search label,
.search-filters label {
    display: block;
    margin-bottom: 5px;
    color: #62696d;
    font-size: 12px;
    font-weight: 600;
}

/* Boutons */
.annonces-search button,
.advanced-search button,
.search-filters button {
    min-height: 36px;
    padding: 0 16px;
    color: #fff;
    background: #668b74;
    border: 1px solid #668b74;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
}

.annonces-search button:hover,
.advanced-search button:hover,
.search-filters button:hover {
    background: #557761;
}

/* Bouton Réinitialiser */
.annonces-search a,
.advanced-search a,
.search-filters a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 14px;
    color: #62696d;
    background: #f2f3f3;
    border: 1px solid #e0e2e2;
    border-radius: 6px;
    font-size: 13px;
}

/* Tablette */
@media (max-width: 800px) {
    .annonces-search form,
    .advanced-search form,
    .search-filters form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Téléphone */
@media (max-width: 500px) {
    .annonces-search,
    .advanced-search,
    .search-filters {
        padding: 12px;
    }

    .annonces-search form,
    .advanced-search form,
    .search-filters form {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

/* =========================================================
   DZMARKET - FORMULAIRE DE RECHERCHE COMPACT
   Ciblé sur le formulaire de annonces.php
   ========================================================= */

main.container > form.form-card {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px 16px;

    padding: 20px;
    margin-bottom: 28px !important;

    background: #fff;
    border: 1px solid #e2e6e4;
    border-radius: 9px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.025);
}

/* Espacement réduit entre les champs */
main.container > form.form-card .form-group {
    min-width: 0;
    margin-bottom: 0;
}

/* Libellés */
main.container > form.form-card .form-group label {
    margin-bottom: 5px;
    color: #62696d;
    font-size: 12px;
    font-weight: 600;
}

/* Champs plus compacts */
main.container > form.form-card .form-group input,
main.container > form.form-card .form-group select {
    width: 100%;
    min-width: 0;
    height: 36px;
    padding: 0 9px;

    font-size: 13px;
    color: #45494c;
    background: #fafbfb;

    border: 1px solid #d9dddf;
    border-radius: 6px;
    box-shadow: none;
}

/* Focus discret */
main.container > form.form-card .form-group input:focus,
main.container > form.form-card .form-group select:focus {
    border-color: #9ab9a7;
    background: #fff;
    outline: none;
    box-shadow: 0 0 0 2px rgba(90, 130, 105, 0.08);
}

/* Zone des boutons */
main.container > form.form-card > div:last-child {
    display: flex !important;
    align-items: end;
    align-self: end;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 0 !important;
}

/* Bouton Rechercher */
main.container > form.form-card .submit-btn {
    width: auto;
    min-height: 36px;
    padding: 0 16px;
    font-size: 13px;
    font-weight: 600;
    background: #668b74;
    border-radius: 6px;
}

main.container > form.form-card .submit-btn:hover {
    background: #557761;
}

/* Bouton Réinitialiser */
main.container > form.form-card .cancel-btn {
    min-height: 36px;
    padding: 0 12px;
    font-size: 13px;
    border-radius: 6px;
}

/* Tablette */
@media (max-width: 800px) {
    main.container > form.form-card {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 16px;
    }
}

/* Téléphone */
@media (max-width: 500px) {
    main.container > form.form-card {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 14px;
    }

    main.container > form.form-card > div:last-child {
        align-items: stretch;
    }

    main.container > form.form-card .submit-btn,
    main.container > form.form-card .cancel-btn {
        flex: 1;
        justify-content: center;
    }
}


/* Compteur des champs de description */
.description-counter {
    margin-top: 7px;
    text-align: right;
    color: #64748b;
    font-size: 13px;
}
.description-counter.limit-reached {
    color: #b91c1c;
    font-weight: 700;
}
