/* ============================================= */
/* RESET & BASE STYLES                          */
/* ============================================= */
body {
    font-family: Arial, sans-serif;
    padding-top: 66px;
    margin: 0;
}

@media (max-width: 767.98px) {
    body {
        padding-bottom: 70px;
    }
}

/* ============================================= */
/* LAYOUT & CONTAINERS                          */
/* ============================================= */
.main-container {
    padding: 0;
}

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

/* ============================================= */
/* NAVBAR & HEADER                              */
/* ============================================= */
.custom-navbar {
    position: fixed !important;
    top: 0 !important;
    left: 0;
    right: 0;
    background-color: #1a1a1a;
    padding: 0.5rem 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 1030;
    width: 100%;
    box-sizing: border-box;
    transform: none !important;
    transition: none !important;
}

.navbar-brand {
    color: #ffffff !important;
    font-weight: 600;
    font-size: 1.2rem;
}

.nav-link {
    color: #cccccc !important;
    margin: 0 0.75rem;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link:hover {
    color: #ffffff !important;
}

.special-link::after {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-left: 5px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23FFD700"><path d="M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"/></svg>');
    background-repeat: no-repeat;
    background-size: contain;
    vertical-align: middle;
}

.firework-link {
    position: relative;
    padding-right: 20px;
    color: #FFD700 !important;
}

.firework-link::after {
    content: "";
    position: absolute;
    top: -2px;
    right: -8px;
    width: 20px;
    height: 20px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23FFD700" stroke-width="1.5"><circle cx="12" cy="12" r="1"/><path d="M12 2v3M12 20v3M5 12H2M22 12h-3M18.36 5.64l-2.83 2.83M6.47 18.37l-2.83-2.83M18.36 18.37l-2.83-2.83M6.47 5.64l2.83 2.83M19 12h-2M5 12h2"/></svg>');
    background-repeat: no-repeat;
    background-size: contain;
}

.bouton-menu {
    margin-right: 10px;
    border: none;
    background: transparent;
    padding: 0.5rem;
}

.bouton-menu .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3e%3cpath stroke='rgba(255, 255, 255, 0.7)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.offcanvas {
    width: 250px;
    background-color: #343a40;
    color: white;
}

.offcanvas-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#accountOffcanvas {
    background-color: #ffffff;
    color: var(--color-services-text);
}

#accountOffcanvas .offcanvas-header {
    border-bottom: 1px solid var(--color-services-light);
}

#accountOffcanvas .offcanvas-title {
    color: var(--color-services-text);
}

#accountOffcanvas .btn-close {
    filter: none;
}

.offcanvas-body .nav-link {
    color: white;
    padding: 0.5rem 1rem;
}

.offcanvas-body .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* ============================================= */
/* SEARCH FORM & BUTTONS                        */
/* ============================================= */
.search-form {
    flex-grow: 1;
    max-width: 800px;
    margin: 0 2rem;
}

.search-form .form-control {
    background-color: #2a2a2a;
    border-color: #444;
    color: #ffffff;
    border-radius: 25px 0 0 25px;
    padding: 0.5rem 1rem;
}

.search-form .form-control::placeholder {
    color: #adb5bd;
}

.search-form .btn {
    background-color: #dc3545;
    border-color: #dc3545;
    border-radius: 0 25px 25px 0;
    color: #ffffff;
    padding: 0.5rem 1rem;
    white-space: nowrap;
    min-width: fit-content;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-subscribe {
    background-color: #dc3545;
    border-color: #dc3545;
    color: #ffffff;
    margin-right: 0.5rem;
    font-weight: 500;
}

.btn-login {
    background-color: transparent;
    border-color: #666;
    color: #cccccc;
    font-weight: 500;
}

@media (max-width: 991.98px) {
    .navbar-collapse.d-lg-flex {
        display: none !important;
    }
}

.mobile-menu-button {
    margin-left: auto;
}

.mobile-menu-button .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3e%3cpath stroke='rgba(255, 255, 255, 0.7)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

#mobileOffcanvasNav {
    background-color: #343a40;
    color: white;
}

#mobileOffcanvasNav .offcanvas-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#mobileOffcanvasNav .nav-link {
    color: white;
    padding: 0.5rem 1rem;
    margin: 0.25rem 0;
}

#mobileOffcanvasNav .menu-section-title {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    padding-left: 0 !important;
}

#mobileOffcanvasNav .form-control {
    background-color: #2a2a2a;
    border-color: #444;
    color: #ffffff;
    border-radius: 5px;
}

#mobileOffcanvasNav .btn-search {
    background-color: #dc3545;
    border-color: #dc3545;
    color: white;
    border-radius: 5px;
}

/* ============================================= */
/* SITE FOOTER                                  */
/* ============================================= */
.site-footer {
    background-color: #111;
    color: #999;
    font-size: 0.8rem;
    text-align: center;
    padding: 0.75rem 1rem;
}

.site-footer-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.site-footer a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.2s;
}

.site-footer a:hover {
    color: #fff;
}

.site-footer-sep {
    color: #555;
}

/* Sur mobile, le footer doit rester au-dessus de la barre de nav fixe */
@media (max-width: 767.98px) {
    .site-footer {
        margin-bottom: 70px;
    }
}

/* ============================================= */
/* MOBILE BOTTOM NAVIGATION                     */
/* ============================================= */
.mobile-bottom-nav {
    position: fixed !important;
    bottom: 0 !important;
    left: 0;
    right: 0;
    display: none;
    background-color: #1a1a1a;
    border-top: 1px solid #ddd;
    padding: 0.5rem 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    width: 100%;
    transform: none !important;
    transition: none !important;
}

@media (max-width: 767.98px) {
    .mobile-bottom-nav {
        display: flex;
        justify-content: space-around;
        align-items: center;
    }
}

.mobile-bottom-nav .nav-button {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: #999;
    font-size: 0.50rem;
    padding: 0.2rem;
    cursor: pointer;
    transition: color 0.3s;
}

.mobile-bottom-nav .nav-button:hover,
.mobile-bottom-nav .nav-button:active {
    color: #dc3545;
}

.mobile-bottom-nav .nav-button i {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

/* ============================================= */
/* HERO SECTION                                 */
/* ============================================= */
.hero-section {
    background-image: url('https://www.tourisme-espaces.com/imgbqe/6203');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 500px;
    position: relative;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2rem;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hero-buttons {
    justify-content: center;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-btn {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 0.5rem 1.25rem;
    border-radius: 25px;
    font-weight: 500;
    transition: background-color 0.3s;
}

.hero-btn:hover {
    background-color: #bb2d3b;
}

/* Boutons filtre métiers /videos */
.metier-btn {
    background: #fff;
    color: #444;
    border: 1.5px solid #dee2e6;
    padding: 0.4rem 1rem;
    border-radius: 25px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.metier-btn:hover {
    border-color: #dc3545;
    color: #dc3545;
    background: #fff5f6;
}
.metier-btn.active {
    background: #dc3545;
    border-color: #dc3545;
    color: #fff;
}
.metier-btn .badge {
    font-size: 0.7rem;
}

.hero-text {
    max-width: 100%;
    margin: 0 20%;
    margin-bottom: 2rem;
    align-self: center;
    text-align: left;
}

.hero-text h2 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.hero-text p {
    font-size: 1.1rem;
    line-height: 1.6;
}

@media (max-width: 767px) {
    .limited-text {
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

.read-more-btn {
    background-color: transparent;
    color: #ffffff;
    border: 1px solid #ffffff;
    padding: 0.375rem 1rem;
    border-radius: 20px;
    font-weight: 500;
    margin-top: 1rem;
    transition: all 0.3s;
}

.read-more-btn:hover {
    background-color: #dc3545;
    color: white;
}

/* ============================================= */
/* INFO SECTION (2 COLUMNS LAYOUT)              */
/* ============================================= */
.info-header {
    width: 100%;
    margin-top: 30px;
    margin-bottom: 20px;
}

.info-title {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 0px;
    color: #000;
}

.info-subtitle {
    font-size: 16px;
    color: #666;
    margin-bottom: 10px;
}

.info-title-all {
    color: #dc3545;
    float: right;
    margin-top: 8px;
}

.info-grid {
    display: flex;
    gap: 20px;
}

.info-col1 {
    flex: 1;
}

.info-main-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.info-main-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
}

.info-main-title {
    font-size: 20px;
    font-weight: bold;
    padding: 15px 15px 5px;
    margin: 0;
}

.info-main-subtitle {
    font-size: 14px;
    color: #666;
    padding: 0 15px 15px;
    margin: 0;
}

.info-col2 {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.info-row {
    display: flex;
    gap: 15px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    padding: 10px;
}

.info-row-image {
    flex: 0 0 30%;
}

.info-row-img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.info-row-content {
    flex: 1;
    padding: 5px 0;
}

.info-row-title {
    font-size: 16px;
    font-weight: bold;
    margin: 0 0 5px;
}

.info-row-desc {
    font-size: 14px;
    color: #666;
    margin: 0 0 8px;
}

.info-row-link {
    color: #007bff;
    text-decoration: none;
    font-size: 14px;
}

.info-row-link:hover {
    text-decoration: underline;
}

/* ============================================= */
/* CARDS (GENERIC)                              */
/* ============================================= */
.card {
    overflow: hidden;
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
}

.card-hover {
    position: relative;
}

.card-hover-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.card-hover:hover .card-hover-content {
    transform: translateY(0);
}

/* ============================================= */
/* NEWSLETTER SECTION                           */
/* ============================================= */
.newsletter-container {
    background-color: #2c2c2c;
    padding: 40px;
    border-radius: 10px;
    margin: 30px 0;
    color: white;
}

.newsletter-row {
    min-height: 300px;
}

.newsletter-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
}

.newsletter-text h3 {
    color: #f8f9fa;
    margin-bottom: 20px;
    font-weight: 600;
}

.newsletter-text p {
    color: #adb5bd;
    margin-bottom: 25px;
    line-height: 1.6;
}

.newsletter-form .form-control {
    background-color: #343a40;
    border: 1px solid #495057;
    color: white;
    padding: 12px;
    border-radius: 5px;
    margin-bottom: 15px;
}

.newsletter-form .form-control::placeholder {
    color: #adb5bd;
}

.newsletter-form .btn {
    background-color: #dc3545;
    border-color: #dc3545;
    padding: 12px 30px;
    font-weight: 500;
    width: 100%;
    border-radius: 5px;
}

.newsletter-form .btn:hover {
    background-color: #e35d6a;
    border-color: #e35d6a;
}

.newsletter-image {
    background-image: url('../img/Img-enveloppe.png');
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    opacity: 0.8;
    position: relative;
}

.newsletter-image:hover {
    opacity: 1;
}

/* ============================================= */
/* PROCHAINEMENT SECTION                        */
/* ============================================= */
.prochainement-container {
    background-color: #2c2c2c;
    padding: 40px;
    border-radius: 10px;
    margin: 30px 0;
    color: white;
}

.prochainement-row {
    min-height: 300px;
}

.prochainement-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
}

.prochainement-text h3 {
    color: #f8f9fa;
    margin-bottom: 20px;
    font-weight: 600;
}

.prochainement-text p {
    color: #adb5bd;
    margin-bottom: 25px;
    line-height: 1.6;
}

.prochainement-image {
    background-image: url('https://www.tourisme-espaces.com/imgbqe/9612');
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    opacity: 0.8;
    position: relative;
}

.prochainement-image:hover {
    opacity: 1;
}

/* ============================================= */
/* CLAUDINE SECTION                             */
/* ============================================= */
.claudine-container {
    background-color: #2c2c2c;
    padding: 40px;
    border-radius: 10px;
    margin: 30px 0;
    color: white;
}

.claudine-row {
    min-height: 300px;
}

.claudine-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
}

.claudine-text h3 {
    color: #f8f9fa;
    margin-bottom: 20px;
    font-weight: 600;
}

.claudine-text p {
    color: #adb5bd;
    margin-bottom: 25px;
    line-height: 1.6;
}

.claudine-image {
    background-image: url('https://www.tourisme-espaces.com/imgbqe/1614');
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    opacity: 0.8;
    position: relative;
}

.claudine-image:hover {
    opacity: 1;
}

/* ============================================= */
/* MARCHES SECTION                              */
/* ============================================= */
.liste-marches {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
    overflow: hidden;
}

.liste-marches-couverture {
    float: left;
    width: 80px;
}

.liste-marches-couverture img {
    width: 80px;
    border-radius: 4px;
}

.liste-marches-texte {
    margin-left: 95px;
}

@media (min-width: 768px) {
    .liste-marches-couverture {
        width: 110px;
    }
    .liste-marches-couverture img {
        width: 110px;
    }
    .liste-marches-texte {
        margin-left: 125px;
    }
}

.liste-marches-texte h3 {
    color: #222222;
    font-size: 1.2em;
    line-height: 22px;
    margin-bottom: 4px;
}

.liste-marches-texte h3 a {
    color: #222222;
    text-decoration: none;
}

.liste-marches-texte h3 a:hover {
    text-decoration: underline;
}

.liste-marches-descriptif {
    /*font-size: 0.85em;*/
    color: #666666;
    line-height: 1.45;
}

.liste-marches-descriptif-fin {
    color: #e61933;
    font-size: 0.70em;
    text-transform: uppercase;
    font-weight: bold;
    margin-top: 4px;
}

.liste-marches-descriptif-fin a {
    color: #e61933;
}

.color-red {
    color: #e61933;
    font-size: 0.70em;
    text-transform: uppercase;
    font-weight: bold;
    margin-top: 4px;
}

/* ============================================= */
/* EMPLOIS SECTION                              */
/* ============================================= */
.liste-emplois {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
    overflow: hidden;
}

.liste-emplois-couverture {
    float: left;
    width: 80px;
}

.liste-emplois-couverture img {
    width: 80px;
    border-radius: 4px;
}

.liste-emplois-texte {
    margin-left: 95px;
}

@media (min-width: 768px) {
    .liste-emplois-couverture {
        width: 110px;
    }
    .liste-emplois-couverture img {
        width: 110px;
    }
    .liste-emplois-texte {
        margin-left: 125px;
    }
}

.liste-emplois-texte h3 {
    color: #222222;
    font-size: 1.2em;
    line-height: 22px;
    margin-bottom: 4px;
}

.liste-emplois-texte h3 a {
    color: #222222;
    text-decoration: none;
}

.liste-emplois-texte h3 a:hover {
    text-decoration: underline;
}

.liste-emplois-descriptif-fin {
    color: #e61933;
    font-size: 0.70em;
    text-transform: uppercase;
    font-weight: bold;
    margin-top: 4px;
}

.liste-emplois-descriptif-fin a {
    color: #e61933;
}

/* ============================================= */
/* EMPLOIS CARDS v2 (ec-card)                   */
/* ============================================= */
.ec-card {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 10px;
    transition: box-shadow 0.18s ease, border-color 0.18s ease;
    cursor: pointer;
}
 
.ec-card:hover {
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
    border-color: #ccc;
}

.ec-card--visibilite {
    background: #f8f5f0;
    border-color: #e0dbd3;
    border-left: 3px solid #dc3545;
}

.ec-card--visibilite:hover {
    border-left-color: #dc3545;
    border-color: #c8c3bb;
}

.ec-card:hover .ec-card__title {
    text-decoration: underline;
}

/* Lien invisible couvrant toute la carte */
.ec-card__link {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    z-index: 1;
    border-radius: 8px;
}

/* Logo */
.ec-card__logo {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    border: 1px solid #ebebeb;
    border-radius: 6px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.ec-card__logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
}

.ec-card__logo-placeholder {
    font-size: 26px;
    color: #ccc;
}

/* Corps */
.ec-card__body {
    flex: 1;
    min-width: 0;
}

/* Ligne du haut : badges */
.ec-card__top {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
}

.ec-card__badge-contrat {
    display: inline-block;
    font-size: 0.70em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #555;
    background: #f0f0f0;
    border-radius: 4px;
    padding: 2px 8px;
}

.ec-card__badge-new {
    display: inline-block;
    font-size: 0.70em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #fff;
    background: #e61933;
    border-radius: 4px;
    padding: 2px 8px;
}

/* Badge date limite (marchés publics) */
.ec-card__badge-deadline {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.70em;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: #664d03;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 4px;
    padding: 2px 8px;
}

.ec-card__badge-deadline--urgent {
    color: #842029;
    background: #f8d7da;
    border-color: #f5c2c7;
}

.ec-card__badge-deadline--expired {
    color: #888;
    background: #f5f5f5;
    border-color: #ddd;
}

/* Titre */
.ec-card__title {
    font-size: 1.05em;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 5px 0;
    line-height: 1.35;
}

/* Accroche */
.ec-card__accroche {
    font-size: 0.875em;
    color: #555;
    margin: 0 0 10px 0;
    line-height: 1.45;
}

/* Ligne méta */
.ec-card__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.ec-card__meta-item {
    font-size: 0.80em;
    color: #777;
    display: flex;
    align-items: center;
    gap: 4px;
}

.ec-card__meta-item i {
    color: #aaa;
    font-size: 0.90em;
}

/* CTA */
.ec-card__cta {
    margin-left: auto;
    font-size: 0.80em;
    font-weight: 600;
    color: var(--color-services);
    display: flex;
    align-items: center;
    gap: 4px;
    position: relative;
    z-index: 2;
    white-space: nowrap;
}

/* Portrait variant */
.ec-card--portrait .ec-card__logo {
    width: 90px;
    height: 90px;
    border: none;
    border-radius: 10px;
}
.ec-card--portrait .ec-card__logo img {
    object-fit: cover;
    padding: 0;
}

/* Mobile */
@media (max-width: 575px) {
    .ec-card {
        gap: 12px;
        padding: 12px;
    }
    .ec-card__logo {
        width: 56px;
        height: 56px;
    }
    .ec-card--portrait .ec-card__logo {
        width: 70px;
        height: 70px;
    }
    .ec-card__cta {
        display: none;
    }
}

/* ============================================= */
/* PORTRAITS SECTION                            */
/* ============================================= */
.liste-portraits {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
    overflow: hidden;
}

.liste-portraits-couverture {
    float: left;
    width: 88px;
}

.liste-portraits-couverture img {
    width: 88px;
    border-radius: 4px;
}

.liste-portraits-texte {
    margin-left: 103px;
}

@media (min-width: 768px) {
    .liste-portraits-couverture {
        width: 116px;
    }
    .liste-portraits-couverture img {
        width: 116px;
    }
    .liste-portraits-texte {
        margin-left: 131px;
    }
}

.liste-portraits-texte h3 {
    color: #222222;
    font-size: 1.2em;
    line-height: 22px;
    margin-bottom: 4px;
}

.liste-portraits-texte h3 a {
    color: #222222;
    text-decoration: none;
}

.liste-portraits-texte h3 a:hover {
    text-decoration: underline;
}

.liste-portraits-fonction {
    font-size: 0.85em;
    font-weight: bold;
    color: #333333;
    margin-bottom: 4px;
}

.liste-portraits-chapo {
    font-size: 0.85em;
    color: #777777;
    line-height: 1.45;
    margin-bottom: 4px;
}

@media (max-width: 575.98px) {
    .liste-portraits-chapo {
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}

.liste-portraits-descriptif-fin {
    color: #e61933;
    font-size: 0.70em;
    text-transform: uppercase;
    font-weight: bold;
}

.liste-portraits-descriptif-fin a {
    color: #e61933;
}

/* ============================================= */
/* OFFCANVAS CUSTOM HEIGHT                      */
/* ============================================= */
.offcanvas-custom-height {
    height: auto !important;
    max-height: 90vh;
    top: 10px;
    bottom: auto !important;
    border-radius: 0.5rem;
    overflow-y: auto;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    width: 700px !important;
}

.offcanvas-custom-height .offcanvas-body {
    padding: 1rem;
}

.offcanvas-custom-height .offcanvas-header {
    padding: 1rem 1rem 0.5rem;
}

/* ============================================= */
/* RESPONSIVE DESIGN                            */
/* ============================================= */
@media (max-width: 991.98px) {
    .search-form {
        margin: 0.5rem 0;
        max-width: none;
    }

    .navbar-collapse {
        background-color: #1a1a1a;
        padding: 1rem;
        border-radius: 0.5rem;
        margin-top: 0.5rem;
    }

    .hero-section {
        height: auto;
        padding: 1.5rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-text {
        margin-top: 1.5rem;
        margin-left: 0;
        margin-right: 0;
    }
}

@media (max-width: 768px) {
    .info-grid {
        flex-direction: column;
    }

    .info-row {
        flex-direction: row;
    }

    .info-row-image {
        flex: 0 0 30%;
    }

    .info-row-content {
        flex: 1;
    }
}

/* ============================================= */
/* NOMINATIONS SECTION                          */
/* ============================================= */
.nomination-header {
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
}

.nomination-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.nomination-carousel {
    position: relative;
}

.carousel-container {
    overflow: hidden;
}

.carousel-inner {
    scroll-behavior: smooth;
}

.nomination-card {
    min-width: 180px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.nomination-card:hover {
    transform: translateY(-4px);
}

.nomination-card-image {
    overflow: hidden;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.nomination-card-image img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.nomination-card-body {
    padding: 0.75rem;
}

.nomination-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.nomination-card-role {
    font-size: 0.875rem;
    color: #666;
    margin: 0;
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s;
}

.carousel-control:hover {
    background: rgba(0, 0, 0, 0.8);
}

.carousel-control.prev {
    left: -20px;
}

.carousel-control.next {
    right: -20px;
}

/* ============================================= */
/* VIDEOS PAGE                                  */
/* ============================================= */

/* Vignette vidéo : ratio 16:9 garanti cross-browser + mobile */
.videos-thumb-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #222;
    overflow: hidden;
}

.videos-thumb-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.2s;
}

a:hover .videos-thumb-img {
    opacity: 0.85;
}

.videos-thumb-overlay {
    position: absolute;
    bottom: 0.5rem;
    left: 0.5rem;
    display: flex;
    gap: 0.3rem;
    flex-wrap: wrap;
}

.videos-thumb-duree {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    background: rgba(0,0,0,0.7);
    color: #fff;
    font-size: 0.75rem;
    padding: 2px 7px;
    border-radius: 20px;
}

/* --- Section titles (legacy, conservé pour compatibilité) --- */
.videos-section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid #dc3545;
    display: inline-block;
}

/* --- Une éditoriale --- */
.videos-une-col-img {
    min-height: 200px; /* hauteur mini sur mobile */
}

.videos-une-img-link {
    display: block;
    position: absolute;
    inset: 0;
}

.videos-une-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.25s;
}

.videos-une-img-link:hover .videos-une-img {
    opacity: 0.85;
}

.videos-une-titre {
    font-size: 1.35rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

@media (min-width: 768px) {
    .videos-une-titre { font-size: 1.5rem; }
}

.videos-une-resume {
    font-size: 0.95rem;
    color: #495057;
    line-height: 1.6;
    margin-bottom: 0;
}

.videos-une-metiers {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.75rem;
}

.videos-une-badge-metier {
    background: rgba(220, 53, 69, 0.08);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.3);
    font-size: 0.7rem;
    padding: 2px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

/* --- Tuiles métiers --- */
.videos-metiers-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

@media (min-width: 576px) {
    .videos-metiers-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 992px) {
    .videos-metiers-grid {
        grid-template-columns: repeat(7, 1fr);
    }
}

.videos-metier-tile {
    background: #e9ecef;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 0.75rem 0.5rem;
    cursor: pointer;
    text-align: center;
    transition: border-color 0.2s, background 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.videos-metier-tile:hover {
    border-color: #dc3545;
    background: #fff5f6;
}

.videos-metier-tile.active {
    border-color: #dc3545;
    background: #dc3545;
    color: #fff;
}

.videos-metier-tile.active .videos-metier-count {
    color: rgba(255, 255, 255, 0.85);
}

.videos-metier-tile.active .videos-metier-bar {
    background: rgba(255, 255, 255, 0.5);
}

.videos-metier-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: capitalize;
    line-height: 1.2;
}

.videos-metier-count {
    font-size: 1.1rem;
    font-weight: 700;
    color: #dc3545;
}

.videos-metier-bar-wrap {
    width: 100%;
    height: 4px;
    background: #dee2e6;
    border-radius: 2px;
    overflow: hidden;
    margin-top: 0.25rem;
}

.videos-metier-bar {
    height: 100%;
    background: #dc3545;
    border-radius: 2px;
    transition: width 0.4s ease;
}

/* --- Cartes vidéo --- */
.videos-card {
    color: #333;
    background: #fff;
    transition: box-shadow 0.2s, transform 0.2s;
}

.videos-card:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-3px);
}

.videos-card-duree {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    font-size: 0.75rem;
    padding: 2px 7px;
    border-radius: 4px;
}

.videos-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.4rem;
    line-height: 1.3;
}

.videos-card-text {
    font-size: 0.85rem;
    color: #555;
    line-height: 1.4;
    margin-bottom: 0.4rem;
}

.videos-card-metiers {
    font-size: 0.75rem;
    color: #dc3545;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

/* --- Parcours de formation --- */
.videos-parcours-st-btn {
    font-size: 0.9rem;
    background: #e9ecef;
}

.videos-parcours-item {
    font-size: 0.875rem;
    color: #333;
}

.videos-parcours-item:hover {
    background: #fff5f6;
    color: #dc3545;
}

.videos-parcours-meta {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* --- Cartes home : overlay titre au hover --- */
.videos-home-card {
    background: #fff;
}

.videos-home-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(30, 30, 30, 0.78);
    color: #fff;
    padding: 0.75rem 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.videos-home-overlay .videos-card-title {
    color: #fff;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.videos-home-overlay .videos-card-text {
    color: rgba(255,255,255,0.8);
    font-size: 0.8rem;
    margin: 0;
}

a:hover .videos-home-overlay {
    transform: translateY(0);
}

/* --- Cartes home agenda : overlay titre au hover --- */
.agenda-card {
    background: #fff;
    transition: box-shadow 0.2s, transform 0.2s;
}

.agenda-card:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-3px);
}

.agenda-thumb-wrap {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #222;
}

.agenda-thumb-img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: opacity 0.2s;
}

a:hover .agenda-thumb-img {
    opacity: 0.85;
}

.agenda-home-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(30, 30, 30, 0.78);
    color: #fff;
    padding: 0.75rem 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.agenda-home-overlay .agenda-card-title {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.agenda-home-overlay .agenda-card-text {
    color: rgba(255,255,255,0.8);
    font-size: 0.8rem;
    margin: 0;
    line-height: 1.4;
}

a:hover .agenda-home-overlay {
    transform: translateY(0);
}

/* ============================================= */
/* BREADCRUMB                                   */
/* ============================================= */

.breadcrumb {
    font-size: 0.85em;
}

.breadcrumb-item a {
    color: #555;
    text-decoration: none;
    font-weight: bold;
}

.breadcrumb-item a:hover {
    color: #333;
    text-decoration: underline;
}

.breadcrumb-item.active {
    font-weight: normal;
}

/* --- HTMX loading indicator --- */
.htmx-indicator {
    display: none;
}
.htmx-request .htmx-indicator {
    display: block;
}

/* ============================================= */
/* RUBRIQUE SERVICES — TOKENS & COMPOSANTS      */
/* ============================================= */

/* Liens "Voir toutes les offres / marchés / agenda" */
.section-link {
    color: var(--color-services);
    font-weight: 500;
    text-decoration: none;
}
.section-link:hover {
    color: var(--color-services-hover);
    text-decoration: underline;
}

/* Boutons outline rubrique Services */
.btn-outline-services {
    background: transparent;
    border: 0.5px solid var(--color-services);
    color: var(--color-services);
    border-radius: 8px;
    padding: 7px 14px;
    font-size: 13px;
    cursor: pointer;
    transition: background-color .15s;
    text-decoration: none;
    display: inline-block;
}
.btn-outline-services:hover {
    background-color: var(--color-services-light);
    color: var(--color-services);
    text-decoration: none;
}

/* ============================================= */
/* LISTING PAGES — BANDEAU CONTEXTE             */
/* ============================================= */

.listing-context-bar {
    border-left: 3px solid var(--color-services);
    padding: 16px 20px;
    margin-bottom: 28px;
    background: var(--color-services-light);
    border-radius: 0 8px 8px 0;
}
.listing-title {
    font-size: 20px;
    font-weight: 500;
    color: var(--color-services-text);
    margin: 6px 0 4px;
}
.listing-subtitle {
    font-size: 13px;
    color: var(--color-services-mid);
    margin: 0;
}
.listing-breadcrumb {
    font-size: 12px;
    color: var(--color-services-mid);
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
}
.listing-breadcrumb a {
    color: var(--color-services-mid);
    text-decoration: none;
}
.listing-breadcrumb a:hover {
    color: var(--color-services);
}

/* Lien "Voir l'offre →" dans les items de listing */
.item-link {
    color: var(--color-services);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
}
.item-link:hover {
    color: var(--color-services-hover);
    text-decoration: underline;
}

/* Badges de type (tags) */
.badge-type {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    background: var(--color-services-light);
    color: var(--color-services-text);
    border: 0.5px solid var(--color-services-mid);
}

/* ============================================= */
/* FICHES — SECTION TITLE                       */
/* ============================================= */

.section-title {
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--color-services-mid);
    margin-bottom: 10px;
}

/* ============================================= */
/* HERO SOUS-RUBRIQUES                          */
/* ============================================= */

.hero-rubrique .container { position: relative; }
.hero-rubrique__accent {
    width: 40px;
    height: 3px;
    background: #C8102E;
    border-radius: 2px;
    margin-bottom: 12px;
}

.hero-rubrique {
    width: 100%;
    min-height: 170px;
    background: var(--color-services);
    position: relative;
    overflow: hidden;
    color: #fff;
    padding: 36px 0 28px;
}
.hero-rubrique::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 80% 0%, rgba(200,16,46,.35) 0%, transparent 60%);
    pointer-events: none;
}
.hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    position: relative;
}
.hero-eyebrow {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: rgba(255,255,255,.6);
    margin: 0 0 10px;
}
.hero-rubrique h1 {
    color: #fff;
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 8px;
}
.hero-rubrique__subtitle {
    color: rgba(255,255,255,.72);
    font-size: 0.95rem;
    margin: 0 0 10px;
}
.hero-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
}

/* ============================================= */
/* BREADCRUMB BAR                               */
/* ============================================= */

.breadcrumb-bar {
    width: 100%;
    background: var(--color-services-light);
    border-bottom: 0.5px solid var(--color-services-mid);
}
.breadcrumb-inner {
    width: 100%;
    margin-right: auto;
    margin-left: auto;
    padding: 10px calc(var(--bs-gutter-x, 1.5rem) * .5);
}
@media (min-width: 576px)  { .breadcrumb-inner { max-width: 540px;  } }
@media (min-width: 768px)  { .breadcrumb-inner { max-width: 720px;  } }
@media (min-width: 992px)  { .breadcrumb-inner { max-width: 960px;  } }
@media (min-width: 1200px) { .breadcrumb-inner { max-width: 1140px; } }
@media (min-width: 1400px) { .breadcrumb-inner { max-width: 1320px; } }
.breadcrumb-bar nav.breadcrumb {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 12px;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
    background: none;
}
.breadcrumb-bar nav.breadcrumb a {
    color: var(--color-services-mid);
    text-decoration: none;
    font-weight: 500;
    transition: color .15s;
}
.breadcrumb-bar nav.breadcrumb a:hover {
    color: var(--color-services);
    text-decoration: none;
}
.breadcrumb-bar nav.breadcrumb span[aria-hidden] {
    color: var(--color-services-mid);
    opacity: 0.5;
}
.breadcrumb-current {
    color: var(--color-services-text);
    font-weight: 500;
}

@media (max-width: 768px) {
    .breadcrumb-bar nav.breadcrumb a:not(:nth-last-child(-n+3)),
    .breadcrumb-bar nav.breadcrumb span[aria-hidden]:not(:nth-last-child(-n+3)) {
        display: none;
    }
}

/* ============================================= */
/* INFO — HERO & BREADCRUMB                    */
/* ============================================= */

.info-hero .container { position: relative; }
.info-hero__accent {
    width: 40px;
    height: 3px;
    background: #C8102E;
    border-radius: 2px;
    margin-bottom: 12px;
}

.info-hero {
    width: 100%;
    min-height: 170px;
    background: var(--color-services);
    position: relative;
    overflow: hidden;
    color: #fff;
    padding: 36px 0 28px;
}
.info-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 80% 0%, rgba(200,16,46,.35) 0%, transparent 60%);
    pointer-events: none;
}
.info-hero h1 {
    color: #fff;
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 8px;
}
.info-hero__subtitle {
    color: rgba(255,255,255,.72);
    font-size: 0.95rem;
    margin: 0;
}

.info-breadcrumb-bar {
    width: 100%;
    background: var(--color-info-light);
    border-bottom: 0.5px solid var(--color-info-mid);
}
.info-breadcrumb-bar nav.breadcrumb {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 12px;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
    background: none;
}
.info-breadcrumb-bar nav.breadcrumb a {
    color: var(--color-info-mid);
    text-decoration: none;
    font-weight: 500;
    transition: color .15s;
}
.info-breadcrumb-bar nav.breadcrumb a:hover {
    color: var(--color-info);
    text-decoration: none;
}
.info-breadcrumb-bar nav.breadcrumb span[aria-hidden] {
    color: var(--color-info-mid);
    opacity: 0.5;
}
.info-breadcrumb-bar .breadcrumb-current {
    color: var(--color-info-text);
    font-weight: 500;
}

@media (max-width: 768px) {
    .info-breadcrumb-bar nav.breadcrumb a:not(:nth-last-child(-n+3)),
    .info-breadcrumb-bar nav.breadcrumb span[aria-hidden]:not(:nth-last-child(-n+3)) {
        display: none;
    }
}

/* ============================================= */
/* PUBLICATIONS — HERO                          */
/* ============================================= */

.publications-hero .container { position: relative; }
.publications-hero__accent {
    width: 40px;
    height: 3px;
    background: #C8102E;
    border-radius: 2px;
    margin-bottom: 12px;
}

.publications-hero {
    width: 100%;
    min-height: 170px;
    background: var(--color-services);
    position: relative;
    overflow: hidden;
    color: #fff;
    padding: 36px 0 28px;
}
.publications-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 80% 0%, rgba(200,16,46,.35) 0%, transparent 60%);
    pointer-events: none;
}
.publications-hero h1 {
    color: #fff;
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 8px;
}
.publications-hero__subtitle {
    color: rgba(255,255,255,.72);
    font-size: 0.95rem;
    margin: 0 0 10px;
}

/* ============================================= */
/* PUBLICATIONS — BREADCRUMB BAR               */
/* ============================================= */

.publications-breadcrumb-bar {
    width: 100%;
    background: var(--color-publications-light);
    border-bottom: 0.5px solid var(--color-publications-mid);
}
.publications-breadcrumb-bar nav.breadcrumb {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 12px;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
    background: none;
}
.publications-breadcrumb-bar nav.breadcrumb a {
    color: var(--color-publications-mid);
    text-decoration: none;
    font-weight: 500;
    transition: color .15s;
}
.publications-breadcrumb-bar nav.breadcrumb a:hover {
    color: var(--color-publications);
    text-decoration: none;
}
.publications-breadcrumb-bar nav.breadcrumb span[aria-hidden] {
    color: var(--color-publications-mid);
    opacity: 0.5;
}
.publications-breadcrumb-bar .breadcrumb-current {
    color: var(--color-publications-text);
    font-weight: 500;
}

@media (max-width: 768px) {
    .publications-breadcrumb-bar nav.breadcrumb a:not(:nth-last-child(-n+3)),
    .publications-breadcrumb-bar nav.breadcrumb span[aria-hidden]:not(:nth-last-child(-n+3)) {
        display: none;
    }
}

/* =========================================================
   Espace compte
   ========================================================= */

.account-layout {
    display: flex;
    min-height: calc(100vh - 56px);
}

.account-sidebar {
    width: 220px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    border-right: 0.5px solid var(--color-services-mid);
    padding-bottom: 24px;
}

.account-sidebar-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px 16px 16px;
    background: var(--color-services-light);
    border-bottom: 0.5px solid var(--color-services-mid);
    margin-bottom: 8px;
}

.account-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--color-services);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 500;
    flex-shrink: 0;
}

.account-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-services-text);
    margin: 0;
}

.account-role {
    font-size: 12px;
    color: var(--color-services-mid);
    margin: 0;
}

.account-nav {
    flex: 1;
    padding: 0 8px;
}

.account-nav-group {
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--color-services-mid);
    padding: 16px 8px 6px;
    margin: 0;
}

.account-nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 14px;
    color: var(--color-services-text);
    text-decoration: none;
    transition: background-color .15s, color .15s;
    margin-bottom: 2px;
}

.account-nav-item:hover {
    background: var(--color-services-light);
    color: var(--color-services);
    text-decoration: none;
}

.account-nav-item.active {
    background: var(--color-services-light);
    color: var(--color-services);
    font-weight: 500;
    border-left: 3px solid var(--color-services);
    padding-left: 7px;
}

.account-nav-sub {
    padding-left: 18px;
    font-size: 13px;
}

.account-nav-sub.active {
    padding-left: 15px;
}

.account-sidebar-footer {
    padding: 16px 8px 0;
    border-top: 0.5px solid var(--color-services-mid);
    margin: 0 8px;
}

.account-signout {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 13px;
    color: var(--color-services-mid);
    text-decoration: none;
    transition: background-color .15s, color .15s;
}

.account-signout:hover {
    background: var(--color-services-light);
    color: var(--color-services);
    text-decoration: none;
}

.account-main {
    flex: 1;
    min-width: 0;
    padding: 28px 32px;
}

/* Tableau de bord */
.account-dashboard {
    max-width: 800px;
}

.account-page-title {
    font-size: 22px;
    font-weight: 500;
    color: var(--color-services-text);
    margin-bottom: 4px;
}

.account-page-subtitle {
    font-size: 14px;
    color: var(--color-services-mid);
    margin-bottom: 28px;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 36px;
}

.dashboard-stat-card {
    background: var(--color-services-light);
    border-radius: 10px;
    padding: 18px 16px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: background-color .15s;
    border: 0.5px solid transparent;
}

.dashboard-stat-card:hover {
    border-color: var(--color-services-mid);
    text-decoration: none;
}

.stat-value {
    font-size: 28px;
    font-weight: 500;
    color: var(--color-services);
    line-height: 1;
}

.stat-label {
    font-size: 12px;
    color: var(--color-services-mid);
}

.account-section-title {
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--color-services-mid);
    margin-bottom: 12px;
}

.dashboard-actions-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.dashboard-action-btn {
    padding: 9px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    background: var(--color-services);
    color: #ffffff;
    transition: background-color .15s;
}

.dashboard-action-btn:hover {
    background: var(--color-services-hover);
    color: #ffffff;
    text-decoration: none;
}

.dashboard-action-btn--outline {
    background: transparent;
    color: var(--color-services);
    border: 0.5px solid var(--color-services);
}

.dashboard-action-btn--outline:hover {
    background: var(--color-services-light);
    color: var(--color-services);
}

/* Mobile */
@media (max-width: 768px) {
    .account-layout {
        flex-direction: column;
    }

    .account-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 0.5px solid var(--color-services-mid);
        padding-bottom: 0;
    }

    .account-sidebar.is-drawer {
        position: fixed;
        top: 56px;
        left: 0;
        height: calc(100vh - 56px);
        width: 280px;
        background: #ffffff;
        transform: translateX(-100%);
        transition: transform .2s ease;
        z-index: 200;
        box-shadow: 2px 0 12px rgba(26, 26, 46, 0.12);
        overflow-y: auto;
        padding-bottom: 24px;
    }

    .account-sidebar.is-drawer.is-open {
        transform: translateX(0);
    }

    .account-main {
        padding: 20px 16px;
    }
}


