/* Habillage 2026. Les règles ciblées gagnent sur l'ancien CSS des pages non encore refaites. */

body {
    min-width: 0 !important;
}

a,
a:hover,
a:focus,
a:active {
    text-decoration: none !important;
}

body.charte-moderne {
    margin: 0;
    background: #f3f4f6;
    color: #3f3f46;
    font-family: Manrope, Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.55;
}

body.charte-moderne *,
body.charte-moderne *::before,
body.charte-moderne *::after {
    box-sizing: border-box;
}

body.charte-moderne img {
    max-width: 100%;
    height: auto;
}

.cadre-categorie {
    display: block;
    height: 10rem;
    overflow: hidden;
    background: #f4f4f5;
}

body.charte-moderne img.visuel-categorie {
    display: block;
    height: 10rem !important;
    width: 100% !important;
    max-width: 100% !important;
    object-fit: cover;
}

body.charte-moderne img.vignette-categorie {
    display: block;
    width: 100% !important;
    height: 4.75rem !important;
    max-width: 100% !important;
    object-fit: cover;
}

.article-corps p {
    margin: 0 0 1rem;
}

.article-corps img {
    border-radius: 1rem;
}

.article-corps a {
    color: #ff6e18;
    font-weight: 600;
}

.article-corps ul,
.article-corps ol {
    margin: 0 0 1rem 1.25rem;
}

.vignette-actu {
    width: 3.25rem !important;
    height: 3.25rem !important;
    max-width: 3.25rem !important;
    flex-shrink: 0;
    object-fit: cover;
    border-radius: 0.75rem;
}

.pastille-ve {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    flex-shrink: 0;
    border-radius: 0.75rem;
    background: linear-gradient(145deg, #ff861d 0%, #ff6e18 42%, #1a1a1a 100%);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1;
}

.pastille-ve-lg {
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 1rem;
    font-size: 1.05rem;
}

.bandeau-vide {
    display: flex;
    align-items: center;
    gap: 1rem;
    height: 7rem;
    margin-top: 1.5rem;
    padding: 0 1.5rem;
    border-radius: 1.5rem;
    background:
        radial-gradient(circle at 92% 18%, rgba(255, 134, 29, 0.7), transparent 26%),
        linear-gradient(135deg, #161616 0%, #2c2c2c 62%, #ff6e18 145%);
    color: #fff;
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.espace-client table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 0.85rem;
}

.espace-client td {
    vertical-align: middle;
}

.espace-client td:first-child {
    width: 11rem;
    padding-right: 0.75rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: #3f3f46;
}

.espace-client input[type="text"],
.espace-client input[type="email"],
.espace-client input[type="password"],
.espace-client input[type="file"],
.espace-client select,
.espace-client textarea {
    width: 100%;
    border: 1px solid #e4e4e7;
    border-radius: 0.9rem;
    background: #fafafa;
    padding: 0.7rem 0.9rem;
    font: inherit;
    color: #18181b;
}

.espace-client input[type="text"]:focus,
.espace-client input[type="email"]:focus,
.espace-client select:focus,
.espace-client textarea:focus {
    outline: none;
    border-color: #ff6e18;
    background: #fff;
}

.espace-client .bouton_mp,
.espace-client input.bouton_mp {
    display: inline-flex;
    align-items: center;
    margin: 0.35rem 0.35rem 0 0;
    border: 0;
    border-radius: 999px;
    background: #ff6e18;
    color: #fff;
    padding: 0.7rem 1.1rem;
    font-weight: 700;
    cursor: pointer;
}

.espace-client h3,
.espace-client h4 {
    margin: 1.25rem 0 0.25rem;
    font-size: 1.05rem;
    font-weight: 800;
    color: #18181b;
}

.espace-client hr {
    border: 0;
    border-top: 1px solid #f4f4f5;
    margin: 1rem 0;
}

.fiche-client {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.95rem 1.05rem;
    border: 1px solid #e4e4e7;
    border-radius: 1rem;
    background: #fafafa;
    color: #18181b !important;
    cursor: pointer;
}

.fiche-client:hover,
.fiche-client.est-ouverte {
    border-color: #ff6e18;
    background: #fff;
}

.fiche-client-nom {
    display: block;
    font-weight: 800;
}

.fiche-client-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.75rem;
    margin-top: 0.15rem;
    color: #71717a;
    font-size: 0.8rem;
}

.fiche-client-attente {
    flex: none;
    color: #a1a1aa;
    font-size: 0.75rem;
    font-weight: 700;
}

#carte_compte {
    width: 100%;
    height: 24rem;
    margin-top: 1rem;
    border-radius: 1rem;
    overflow: hidden;
}

.espace-admin #carte_compte {
    height: 18rem;
    min-height: 18rem;
    margin-top: 0;
}

body:not(.charte-moderne) .site-corps {
    overflow-x: auto;
}

header.site-header {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 40 !important;
    float: none !important;
    background: #111111 !important;
    color: #fff !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

header.site-header::after {
    content: "";
    display: block;
    height: 3px;
    background: linear-gradient(90deg, #ff6e18 0%, #ffb703 55%, transparent 100%);
}

header.site-header nav {
    float: none !important;
    margin: 0 !important;
    width: auto !important;
    position: static !important;
}

header.site-header a,
footer.site-footer a {
    text-decoration: none !important;
}

header.site-header img.logo-ve,
header.site-header img {
    position: static !important;
    float: none !important;
    left: auto !important;
    display: block !important;
    height: 5.5rem !important;
    width: auto !important;
    max-width: none !important;
    background: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
}

.menu-ve-toggle {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    border: 0 !important;
    appearance: none !important;
}

.menu-desktop {
    display: none;
    align-items: center;
}

.menu-mobile {
    display: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: #161616;
}

.menu-burger {
    display: inline-flex;
    width: 44px;
    height: 44px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    cursor: pointer;
}

.menu-burger span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 99px;
    background: #fff;
}

#menu-ve:checked ~ .menu-mobile {
    display: block;
}

header.site-header .menu-lien {
    color: rgba(255, 255, 255, 0.72) !important;
}

header.site-header .menu-lien.bg-white\/10,
header.site-header .menu-lien:hover {
    color: #fff !important;
}

.btn-orange,
.btn-ghost,
.btn-orange-block {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 999px !important;
    padding: 0.55rem 1.05rem !important;
    font-family: Manrope, Arial, sans-serif !important;
    font-size: 0.875rem !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn-orange,
.btn-orange-block {
    border: 0 !important;
    background: #ff6e18 !important;
    color: #fff !important;
    box-shadow: 0 8px 18px rgba(255, 110, 24, 0.28);
}

.btn-orange:hover,
.btn-orange-block:hover {
    background: #ff8519 !important;
    color: #fff !important;
    transform: translateY(-1px);
}

.btn-ghost {
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    background: transparent !important;
    color: #fff !important;
}

.btn-ghost:hover {
    border-color: #fff !important;
    color: #fff !important;
}

.btn-orange-block {
    width: 100%;
}

.champ {
    width: 100%;
    border-radius: 0.9rem;
    border: 1px solid #e4e4e7;
    background: #fff;
    padding: 0.8rem 0.95rem;
    color: #18181b;
    font: 500 0.95rem/1.3 Manrope, Arial, sans-serif;
}

.champ:focus {
    outline: 2px solid rgba(255, 110, 24, 0.35);
    border-color: #ff6e18;
}

.champ-ligne {
    width: 11rem;
    border: 1px solid #d4d4d4;
    border-radius: 0.25rem;
    background: #fff;
    padding: 0.25rem 0.5rem;
    color: #363636;
    font: 400 0.875rem/1.3 Manrope, Arial, sans-serif;
    text-transform: none;
}

label > .champ-ligne {
    margin-left: 0.5rem;
}

.champ-ligne-court {
    width: 7rem;
}

.champ-motdepasse {
    position: relative;
    display: block;
}

.champ-motdepasse .champ {
    padding-right: 2.75rem;
}

.oeil-motdepasse {
    position: absolute;
    top: 50%;
    right: 0.7rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    background: transparent;
    color: #71717a;
    transform: translateY(-50%);
    cursor: pointer;
}

.oeil-motdepasse:hover,
.oeil-motdepasse:focus {
    color: #ff6e18;
}

.oeil-motdepasse .oeil-barre {
    display: none;
}

.oeil-motdepasse.est-visible .oeil-ouvert {
    display: none;
}

.oeil-motdepasse.est-visible .oeil-barre {
    display: block;
}

@media (min-width: 1024px) {
    .menu-desktop {
        display: flex !important;
    }

    .menu-burger,
    .menu-mobile,
    #menu-ve:checked ~ .menu-mobile {
        display: none !important;
    }

    header.site-header img.logo-ve,
    header.site-header img {
        height: 6.75rem !important;
    }
}

footer.site-footer {
    width: 100% !important;
    margin: 0 !important;
    float: none !important;
    clear: both;
    background: #111111 !important;
    color: #fff !important;
}

footer.site-footer img.logo-pied {
    display: block !important;
    width: 100% !important;
    max-width: 20.25rem !important;
    height: auto !important;
    background: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
}

footer.site-footer a {
    color: rgba(255, 255, 255, 0.78) !important;
}

footer.site-footer a:hover {
    color: #ff861d !important;
}

.site-corps {
    min-height: 50vh;
}

.espace-admin #voir,
.espace-admin #liste_photos {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    background: #fff;
}

.espace-admin #voir th,
.espace-admin #liste_photos th,
.espace-admin table.dataTable thead th {
    padding: 0.75rem;
    background: #fafafa;
    color: #18181b;
    font-size: 0.75rem;
    font-weight: 700;
    text-align: left;
    border-bottom: 1px solid #e4e4e7;
}

.espace-admin #voir td,
.espace-admin #liste_photos td {
    padding: 0.75rem;
    border-bottom: 1px solid #f4f4f5;
    vertical-align: top;
    font-size: 0.875rem;
    color: #3f3f46;
}

.espace-admin #voir tr.ligne_paire td {
    background: #fafafa;
}

.espace-admin #voir a.lien_entete,
.espace-admin .menu-admin a {
    text-decoration: none !important;
}

.espace-admin .action-admin {
    white-space: nowrap;
}

.espace-admin .action-admin a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.85rem;
    height: 1.85rem;
    margin-right: 0.25rem;
    border-radius: 999px;
    background: #f4f4f5;
    text-decoration: none !important;
}

.espace-admin .action-supprimer {
    color: #b91c1c !important;
}

.espace-admin .action-modifier {
    color: #ff6e18 !important;
}

.espace-admin .dataTables_wrapper .dataTables_filter input,
.espace-admin .dataTables_wrapper .dataTables_length select {
    margin-left: 0.35rem;
    border: 1px solid #e4e4e7;
    border-radius: 0.7rem;
    padding: 0.3rem 0.55rem;
    background: #fff;
}

.espace-admin .dataTables_wrapper .dataTables_info,
.espace-admin .dataTables_wrapper .dataTables_length,
.espace-admin .dataTables_wrapper .dataTables_filter,
.espace-admin .dataTables_wrapper .dataTables_paginate {
    font-size: 0.8rem;
    color: #52525b;
}

.espace-admin .dataTables_wrapper .dataTables_paginate .paginate_button.current,
.espace-admin .dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    background: #ff6e18 !important;
    border-color: #ff6e18 !important;
    color: #fff !important;
    border-radius: 999px;
}

.icone-bloc-admin {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.9rem;
    background: #fff4ee;
    color: #ff6e18;
    font-size: 1rem;
}

.icone-bloc-admin-sombre {
    background: rgba(255, 255, 255, 0.08);
    color: #ff861d;
}

.pastille-validation {
    display: inline-flex;
    margin-left: 0.45rem;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    background: #ff6e18;
    color: #fff !important;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1.4;
    vertical-align: middle;
    text-decoration: none !important;
}

.pastille-validation.est-vide {
    background: #e4e4e7;
    color: #3f3f46 !important;
}

.voile-envoi {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 80;
    align-items: center;
    justify-content: center;
    background: rgba(17, 17, 17, 0.45);
}

.voile-envoi.est-visible {
    display: flex;
}

.apercu-photo-zone {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.apercu-photo-ligne,
body.charte-moderne .espace-admin img.apercu-photo-admin {
    display: block;
    width: 4.5rem !important;
    height: 3rem !important;
    max-width: 4.5rem !important;
    object-fit: cover;
    border-radius: 0.5rem;
    flex: 0 0 auto;
}

#carte_fiche {
    width: 100%;
    height: 13rem;
    border-radius: 1rem;
    overflow: hidden;
}

button.photo-fiche {
    display: block;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
}

.carousel-photos {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4.5rem 5.5rem 3.5rem;
    background: rgba(17, 17, 17, 0.88);
}

.carousel-photos[hidden] {
    display: none !important;
}

.carousel-photos figure {
    display: flex;
    max-width: 100%;
    max-height: 100%;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.carousel-photos img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: calc(100vh - 8rem);
    object-fit: contain;
    border-radius: 0.75rem;
    background: #fff;
}

.carousel-photos figcaption {
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
}

.carousel-fermer,
.carousel-nav {
    position: absolute;
    border: 0;
    background: #fff;
    color: #363636;
    cursor: pointer;
    font-weight: 800;
}

.carousel-fermer {
    top: 1rem;
    right: 1rem;
    border-radius: 999px;
    padding: 0.55rem 1rem;
}

.carousel-nav {
    top: 50%;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 999px;
    font-size: 1.8rem;
    line-height: 1;
    transform: translateY(-50%);
}

.carousel-precedent {
    left: 1rem;
}

.carousel-suivant {
    right: 1rem;
}

body.charte-moderne .espace-admin img.apercu-admin {
    display: block;
    width: 100% !important;
    height: 9rem !important;
    max-width: 100% !important;
    object-fit: cover;
}

.espace-admin #rech_form,
.espace-admin #form_upload,
.espace-admin #ins_form,
.espace-admin #consignes_saisie {
    border-radius: 1.5rem;
    background: #fff;
    padding: 1.25rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.espace-admin #ins_form input[type="text"],
.espace-admin #ins_form textarea,
.espace-admin #ins_form select,
.espace-admin #form_upload input[type="file"] {
    width: 100%;
    border: 1px solid #e4e4e7;
    border-radius: 0.9rem;
    background: #fafafa;
    padding: 0.7rem 0.9rem;
    color: #18181b;
    font: inherit;
}

.espace-admin #rech_form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.espace-admin #rech_form input[type="text"],
.espace-admin #rech_form select {
    width: auto;
    flex: 1 1 12rem;
    min-width: 10rem;
    border: 1px solid #e4e4e7;
    border-radius: 0.9rem;
    background: #fafafa;
    padding: 0.7rem 0.9rem;
    color: #18181b;
    font: inherit;
}

.espace-admin #rech_form .bouton {
    margin-top: 0;
}

.espace-admin #ins_form textarea {
    min-height: 9rem;
}

.espace-admin #ins_form input[type="radio"],
.espace-admin #ins_form input[type="checkbox"] {
    accent-color: #ff6e18;
}

.espace-admin .bouton,
.espace-admin input.bouton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.5rem;
    border: 0;
    border-radius: 999px;
    background: #ff6e18;
    padding: 0.7rem 1.2rem;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.espace-admin .bouton-compact {
    margin-top: 0;
    padding: 0.28rem 0.65rem;
    font-size: 0.75rem;
    line-height: 1.2;
}

.espace-admin .statut-en-ligne {
    color: #15803d;
    font-size: 0.75rem;
    font-weight: 700;
}

.espace-admin table.index,
.espace-admin table[width="100%"] {
    width: 100%;
    margin: 0.75rem 0;
}
