@import "swiper-bundle.min-9e1DRyM.css";
@import "../css/main-UbkacE-.css";
@import "../css/color-xHslw_y.css";
@import "../css/fonts-mOOuTSU.css";
@import "../css/markdown-R39pyIl.css";

@import url("https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Raleway:ital,wght@0,100..900;1,100..900&display=swap");

/********* Structure globale **********/

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

p,
a {
    font-family: "Open Sans", sans-serif;
}

a{
    text-decoration: none;
}

.btn {
    border-radius: 50px;
}

.btn-orange {
    background-color: var(--color-secondary);
    color: white;
    border-width: 2px;
    font-weight: bold;
}

.btn-orange:hover {
    background-color: transparent;
    color: var(--color-secondary) !important;
    border-color: var(--color-secondary);
    border-width: 2px;
    font-weight: bold;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Raleway", "sans-serif";
}

.bg-gris {
    background-color: var(--color-bg-gris) !important;
}

/********* Sections **********/

/**** Header ****/

header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition:
        background-color 0.4s ease,
        box-shadow 0.4s ease;
}

nav {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

nav a {
    color: var(--color-primary);
    transition: color 0.4s ease;
    font-weight: bold;
}

nav .btn-orange {
    color: white !important;
}

nav ul a, .account-nav ul a {
    display: inline-block;
    transition: transform 0.2s ease;
}

nav ul a:hover, .account-nav ul a:hover {
    transform: translateY(3px);
    text-decoration: underline !important;
    text-underline-offset: 3px;
}

nav .btn-orange:hover {
    color: var(--color-secondary) !important;
}

#hero-header {
    background: linear-gradient(90deg, #ffffff, var(--color-primary));
}

body:not(.home-page) {
    padding-top: var(--header-height, 80px);
}

/*Menu secondaire 'mon espace'*/
.account-nav {
    background-color: var(--color-secondary);
}

.account-nav ul{
    width: 50%;
    justify-content: space-around;
}

@media (max-width: 991px) {
    .account-nav ul {
        width: 100%;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
}

/* Menu Dropdown */
.nav-dropdown {
    position: relative;
}

.dropdown-menu-custom {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border-radius: 6px;
    list-style: none;
    padding: 6px 0;
    min-width: 200px;
    z-index: 1000;
}

.nav-dropdown:hover .dropdown-menu-custom {
    display: block;
}

.dropdown-item-custom {
    position: relative;
}

.dropdown-item-custom a {
    display: block;
    padding: 8px 16px;
    text-decoration: none;
}

.dropdown-item-custom a:hover {
    background: #f5f5f5;
}

/* Sous-menu */
.has-sub > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.has-sub > a::after {
    content: '›';
}

.dropdown-submenu {
    display: none;
    position: absolute;
    top: 0;
    left: 100%;
    background: rgb(255, 252, 249);
    border-radius: 6px;
    list-style: none;
    padding: 6px 0;
    min-width: 200px;
    z-index: 1001;
}

.has-sub:hover .dropdown-submenu {
    display: block;
}


/**** Carousel ****/

.carousel-container {
    overflow: hidden;
    width: 100%;
    padding: 40px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    -webkit-mask-image: linear-gradient(
        to right,
        transparent,
        black 15%,
        black 85%,
        transparent
    );
    mask-image: linear-gradient(
        to right,
        transparent,
        black 15%,
        black 85%,
        transparent
    );
}

.mySwiper {
    overflow: visible !important;
    width: 100% !important;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 0 40px;
}

.mySwiper .swiper-pagination {
    bottom: 10px !important;
}

.collection {
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 0;
    width: 100%;
}

.swiper-slide {
    width: 18rem !important;
    transition:
        opacity 0.3s ease,
        transform 0.3s ease;
}

.collection .content {
    height: 24rem;
    width: 18rem;
    background-color: white;
    border: 0.1rem solid rgba(245, 245, 245, 0.1);
    border-radius: 1rem;
    overflow: hidden;
}

.content img {
    width: 100%;
    height: 50%;
}

.text-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 0.2rem;
}

.text-content h3 {
    font-size: 1.7rem;
    font-weight: 500;
    padding: 0.2rem;
}

.text-content p {
    max-width: 22rem;
    font-size: 0.8rem;
    font-weight: 400;
    text-align: center;
    padding: 0.2rem;
}

.text-content .btn {
    background-color: var(--color-secondary);
    color: white;
    padding: 0.5rem 1.5rem;
    border: 2px solid var(--color-secondary);
    transition:
        background-color 0.3s ease,
        color 0.3s ease;
}

.text-content .btn:hover {
    background-color: transparent;
    color: var(--color-secondary);
}

.swiper-pagination-bullet {
    background-color: var(--color-bg-gris);
    opacity: 0.4;
}

.swiper-pagination-bullet-active {
    background-color: var(--color-secondary);
    opacity: 1;
}

/**** A propos ****/

#qui-sommes-nous {
    background-color: white;
}

/**** Chiffres clés ****/

#chiffres-cles {
    background-color: var(--color-bg-gris);
    color: var(--color-primary);
    position: relative;
    overflow: hidden;
}

#chiffres-cles::before {
    content: '';
    position: absolute;
    right: 10px;
    top: 30%;
    transform: translateY(-20%);
    width: 300px;
    height: 300px;
    background: url("../svg/logo_badge-0CbouG0.svg") no-repeat center;
    background-size: contain;
    opacity: 0.06;
    pointer-events: none;
}

#a-propos {
    background-color: white;
}

/**** Contact ****/

#contact {
    min-height: 50vh;
    align-items: center;
}

#contact input,
#contact textarea {
    background-color: var(--color-bg-beige);
    color: var(--color-primary);
}

/**** Footer ****/

footer {
    background-color: var(--color-primary);
}

footer h6 {
    color: var(--color-secondary);
}

/********* Affichage des annonces **********/

/* ── Barre titre + actions ── */
.page-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 28px;
}

.page-bar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* ── Grille masonry (Masonry.js) ── */
.bento-grid {
    display: block;
    position: relative;
}

.bento-item {
    width: calc(33.333% - 10px);
    margin-bottom: 14px;
    box-sizing: border-box;
}

.bento-item:nth-child(3n) {
    margin-right: 0;
}

.bento-grid::after {
    content: '';
    display: block;
    clear: both;
}

@media (max-width: 900px) {
    .bento-item { width: calc(50% - 7px); }
}

@media (max-width: 540px) {
    .bento-item { width: 100%; }
    .page-bar {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ── Carte ── */
.bento-item-inner {
    border: 1px solid #e5e7eb;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

.bento-item-inner:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* ── Overlay au survol ── */
.bento-overlay {
    position: absolute;
    inset: 0;
    background-color: var(--color-secondary);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    opacity: 0;
    transition: opacity 0.25s ease;
    z-index: 2;
}

.bento-item-inner:hover .bento-overlay {
    opacity: 1;
}

.overlay-link {
    color: white !important;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: underline;
    transition: opacity 0.15s;
}

.overlay-actions {
    display: flex;
    gap: 1rem;
}

.overlay-action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.overlay-action-item small {
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
}

.btn-action-overlay {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    text-decoration: none;
    color: white !important;
    transition: transform 0.15s;
}

.btn-action-overlay:hover {
    transform: scale(1.3);
}

/* ── Contenu de la carte ── */
.bento-card {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.user-info {
    margin-bottom: 0.75rem;
}

.card-title {
    margin-bottom: 0.4rem;
}

.card-description {
    margin-bottom: 0.75rem;
}

/* Header utilisateur */
.user-info {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    overflow: hidden;
}

.user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #d1d5db;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #6b7280;
    font-size: 14px;
}

.user-meta {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
    overflow: hidden;
    flex: 1;
}

.user-name {
    font-weight: 600;
    font-size: 0.83rem;
    color: #111;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-sub {
    font-size: 0.76rem;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    flex-wrap: wrap;
}

/* Titre */
.card-title {
    font-weight: 700;
    font-size: 0.82rem;
    color: var(--color-primary);
    line-height: 1.35;
}

/* Description */
.card-description {
    font-size: 0.82rem;
    color: #374151;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 7;
    line-clamp: 7;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-description p { margin: 0; }
.card-description ul,
.card-description ol { margin: 0; padding-left: 1rem; }

/* Image sous la description */
.bento-card-image {
    border-radius: 10px;
    overflow: hidden;
    line-height: 0;
}

.bento-card-image img {
    width: 100%;
    display: block;
    object-fit: cover;
    max-height: 300px;
    border-radius: 10px;
}

/********* Formulaire poster une annonce **********/

.announce-page {
    min-height: calc(100vh - 120px);
}

.announce-hero,
.announce-shell,
.announce-card-section {
    background: #ffffff;
    border: 1px solid #f0e4d7;
    border-radius: 24px;
}

.announce-hero {
    padding: 2rem;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
    align-items: start;
}

.announce-hero h1,
.announce-shell h2,
.announce-hero-tips h2,
.announce-side-note h3 {
    color: var(--color-primary);
}

.announce-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    background: rgba(230, 127, 60, 0.12);
    color: var(--color-secondary);
    font-weight: 700;
    font-size: 0.85rem;
}

.announce-hero-tips {
    background: #fff7ef;
    border-radius: 18px;
    padding: 1.25rem;
}

.announce-hero-tips ul,
.announce-side-note ul {
    padding-left: 1.2rem;
}

.announce-shell {
    padding: 2rem;
}

.announce-shell-header {
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #f3ece5;
}

.announce-card-section {
    padding: 1.25rem;
}

.announce-form label,
.announce-group-title {
    display: block;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.65rem;
}

.announce-form .form-control,
.announce-form .form-select {
    border-radius: 16px;
    border: 1px solid #e8ddd1;
    padding: 0.9rem 1rem;
    box-shadow: none;
}

.announce-form .form-control:focus,
.announce-form .form-select:focus {
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 0.2rem rgba(230, 127, 60, 0.15);
}

.announce-help {
    margin-top: 0.6rem;
    font-size: 0.9rem;
    color: #6b7280;
}

.announce-side-note {
    background: #fffaf5;
}

.announce-choice-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
}

.announce-choice-grid--compact {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.announce-choice-card {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.9rem 1rem;
    border: 1px solid #ecdccc;
    border-radius: 16px;
    background: #fff;
    cursor: pointer;
    transition:
        transform 0.15s ease,
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

.announce-choice-card:hover {
    transform: translateY(-2px);
    border-color: var(--color-secondary);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
}

.announce-choice-card input {
    accent-color: var(--color-secondary);
    margin: 0;
}

.announce-choice-card span {
    font-weight: 600;
    color: #374151;
}

.announce-form label[for$="imageFiles"] {
    margin-bottom: 0.75rem;
}

.announce-alert {
    border-radius: 16px;
}

@media (max-width: 991px) {
    .announce-hero {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 575px) {
    .announce-hero,
    .announce-shell {
        padding: 1.25rem;
    }

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

    .announce-actions {
        flex-direction: column;
    }

    .announce-actions .btn {
        width: 100%;
    }
}

.studyfield-dropdown {
    position: relative;
}

.studyfield-dropdown-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.95rem 1rem;
    border: 1px solid #e8ddd1;
    border-radius: 16px;
    background: #fff;
    color: #374151;
    font-weight: 500;
    cursor: pointer;
    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

.studyfield-dropdown-toggle:hover,
.studyfield-dropdown-toggle:focus {
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 0.2rem rgba(230, 127, 60, 0.15);
    outline: none;
}

.studyfield-dropdown-arrow {
    font-size: 0.9rem;
    transition: transform 0.2s ease;
}

.studyfield-dropdown.open .studyfield-dropdown-arrow {
    transform: rotate(180deg);
}

.studyfield-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    width: 100%;
    z-index: 20;
    background: #fff;
    border: 1px solid #ecdccc;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    padding: 0.75rem;
}

.studyfield-dropdown.open .studyfield-dropdown-menu {
    display: block;
}

.studyfield-dropdown-list {
    max-height: 260px;
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
}

.studyfield-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.75rem 0.85rem;
    border: 1px solid
        color-mix(in srgb, var(--dept-color, #f0e4d7) 30%, transparent);
    border-radius: 12px;
    background: #fffaf5;
    cursor: pointer;
    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease,
        background-color 0.15s ease,
        transform 0.15s ease;
}

.studyfield-dropdown-item:hover {
    border-color: var(--dept-color, var(--color-secondary));
    box-shadow: 0 6px 18px
        color-mix(in srgb, var(--dept-color, #000) 15%, transparent);
    transform: translateY(-1px);
}

.studyfield-dropdown-item:has(input:checked) {
    background-color: color-mix(
        in srgb,
        var(--dept-color, var(--color-secondary)) 10%,
        white
    );
    border-color: var(--dept-color, var(--color-secondary));
}

.studyfield-dropdown-item input {
    margin: 0;
    accent-color: var(--dept-color, var(--color-secondary));
    flex-shrink: 0;
}

.studyfield-dropdown-item span {
    color: #374151;
    line-height: 1.3;
    font-weight: 500;
}

@media (max-width: 767px) {
    .studyfield-dropdown-list {
        grid-template-columns: 1fr;
    }
}

/** CSS des catégories **/

.category-dropdown {
    position: relative;
}

.category-dropdown-toggle {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    background: white;
    cursor: pointer;
    text-align: left;
}

.category-dropdown-menu {
    display: none;
    position: absolute;
    z-index: 100;
    width: 100%;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-height: 300px;
    overflow-y: auto;
}

.category-dropdown.open .category-dropdown-menu {
    display: block;
}

.category-group-title {
    padding: 0.5rem 1rem;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.category-item {
    display: block;
    padding: 0.4rem 1.9rem;
    font-weight: 400;
    cursor: pointer;
    transition:
        background 0.15s,
        color 0.15s;
    font-size: 0.8rem;
    margin: 0;
}

.category-item:hover {
    background-color: color-mix(in srgb, var(--cat-color) 15%, white);
    color: var(--cat-color);
}

.category-item:has(.category-radio:checked) {
    background-color: color-mix(in srgb, var(--cat-color) 25%, white);
    font-weight: 600;
    color: var(--cat-color);
}

/** CSS des filières **/

.studyfield-type-group {
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 8px;
}

.studyfield-type-label {
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-primary);
    padding: 8px 12px 4px;
    background-color: #f0f4ff;
    border-radius: 6px;
    margin: 6px 0 4px;
}

.studyfield-department-group {
    padding-left: 8px;
    margin-bottom: 4px;
}

.studyfield-department-label {
    font-weight: 600;
    font-size: 0.78rem;
    color: #6b7280;
    padding: 4px 12px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.studyfield-type-toggle {
    width: 100%;
    background: none;
    border: none;
    padding: 10px 12px;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-primary);
    background-color: #f0f4ff;
}

.studyfield-type-toggle:hover {
    background-color: #e0e7ff;
}

.studyfield-type-arrow {
    transition: transform 0.2s;
}

.studyfield-type-group.open .studyfield-type-arrow {
    transform: rotate(180deg);
}

.studyfield-type-content {
    display: none;
    padding: 4px 0;
}

.studyfield-type-group.open .studyfield-type-content {
    display: block;
}

/********* Page d'affichage d'une annonce – Galerie **********/

.fb-gallery {
    border-radius: 12px;
    overflow: hidden;
}

.fb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: filter 0.2s;
    display: block;
}

.fb-img:hover {
    filter: brightness(0.88);
}

.fb-gallery-single .fb-img {
    max-height: 600px;
    width: 100%;
    height: auto;
    object-fit: contain;
    background: #f3f4f6;
    border-radius: 12px;
}

.fb-gallery-two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3px;
    height: 400px;
}

.fb-gallery-three {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3px;
    height: 400px;
    overflow: hidden;
    border-radius: 12px;
}

.fb-main {
    grid-row: span 2;
    overflow: hidden;
}

.fb-side {
    display: flex;
    flex-direction: column;
    gap: 3px;
    height: 400px;
    overflow: hidden;
}

.fb-side-top,
.fb-side-bottom {
    flex: 1;
    position: relative;
    overflow: hidden;
    min-height: 0;
    max-height: 198px;
}

.fb-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    font-size: 1.6rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}
.fb-overlay:hover {
    background: rgba(0, 0, 0, 0.6);
}

/* ── Lightbox ── */
.lb-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.92);
    align-items: center;
    justify-content: center;
}
.lb-backdrop.active {
    display: flex;
}

.lb-content {
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.lb-content img {
    max-width: 90vw;
    max-height: 82vh;
    object-fit: contain;
    border-radius: 6px;
}

.lb-counter {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.lb-close {
    position: fixed;
    top: 18px;
    right: 24px;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 10000;
    opacity: 0.8;
    transition: opacity 0.2s;
}
.lb-close:hover {
    opacity: 1;
}

.lb-prev,
.lb-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    font-size: 3rem;
    cursor: pointer;
    padding: 0.2rem 1rem;
    border-radius: 6px;
    transition: background 0.2s;
    z-index: 10000;
    line-height: 1;
}
.lb-prev { left: 16px; }
.lb-next { right: 16px; }
.lb-prev:hover,
.lb-next:hover {
    background: rgba(255, 255, 255, 0.3);
}

.dropdown-item:active {
    background-color: var(--color-primary);
}
.dropdown-menu {
    min-width: 200px;
}

/********* Pagination **********/

.pagination {
    gap: 3rem;
}

.pagination .page-item {
    margin: 0 4px;
}

.pagination .page-link {
    border: none;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    padding: 0;
    transition: all 0.2s;
}

.pagination .pagination-number {
    background-color: white;
    color: #374151 !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.pagination .pagination-number:hover {
    background-color: var(--color-secondary);
    color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.pagination .pagination-active {
    background-color: var(--color-secondary);
    color: white;
    box-shadow: 0 4px 12px rgba(255, 140, 0, 0.4);
    transform: scale(1.15);
}

.pagination .pagination-arrow {
    background-color: white;
    color: #374151 !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    font-size: 0.85rem;
}

.pagination .pagination-arrow:hover:not(.disabled) {
    background-color: #f3f4f6;
}

.pagination .pagination-arrow.disabled {
    opacity: 0.4;
    cursor: default;
    pointer-events: none;
}


/********* Cartes en statut "brouillion/draft" **********/

/* ── Bouton "Enregistrer en brouillon" dans le formulaire ── */
.btn-draft {
    background-color: #6b7280;
    color: white;
    border: 2px solid #6b7280;
    font-weight: bold;
}

.btn-draft:hover {
    background-color: transparent;
    color: #6b7280;
    border-color: #6b7280;
}

/* ── Onglets de la page index ── */
.card-tabs-bar {
    display: flex;
    gap: 0.5rem;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 1.5rem;
}

.card-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1.2rem;
    font-weight: 600;
    font-size: 0.88rem;
    color: #6b7280;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    border-radius: 6px 6px 0 0;
    transition: color 0.15s, border-color 0.15s;
}

.card-tab:hover {
    color: var(--color-primary);
}

.card-tab--active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
    background-color: rgba(34, 51, 130, 0.04);
}

/* Compteur de brouillons dans l'onglet */
.draft-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #6b7280;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 999px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
}

.card-tab--active .draft-badge {
    background-color: var(--color-primary);
}

/* ── Carte brouillon : fond grisé ── */
.bento-item-draft .bento-item-inner,
.bento-item-draft {
    background: #f3f4f6 !important;
    border-color: #d1d5db !important;
}

.bento-item-draft .card-title {
    color: #6b7280;
}

.bento-item-draft .user-name {
    color: #6b7280;
}

.bento-item-draft .card-description {
    color: #9ca3af;
}

/* ── Overlay brouillon : fond gris au lieu d'orange ── */
.bento-overlay-draft {
    background-color: #4b5563 !important;
    flex-direction: column;
    gap: 0.75rem;
}

.draft-overlay-label {
    color: white;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    opacity: 0.9;
}

/* ── Badge "Brouillon" affiché sur la carte ── */
.draft-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.72rem;
    font-weight: 700;
    color: #6b7280;
    background: #e5e7eb;
    border-radius: 999px;
    padding: 0.2rem 0.65rem;
    margin-bottom: 0.5rem;
    width: fit-content;
}

/* RESPONSIVE NAVBAR – hamburger & mobile menu */

.nav-hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    position: relative;
    z-index: 1001;
}

.nav-hamburger span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: white;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.4s ease;
}

header.scrolled .nav-hamburger span {
    background-color: var(--color-primary);
}

.nav-hamburger.open {
    opacity: 0;
    pointer-events: none;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-primary);
    z-index: 999;
    padding: 5rem 2rem 2rem;
    overflow-y: auto;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.mobile-menu.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

@media (min-width: 992px) {
    .mobile-menu { display: none !important; }
}

.mobile-menu-close {
    position: absolute;
    top: 1.25rem;
    right: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: white;
    font-size: 1.5rem;
    line-height: 1;
    padding: 0;
}

.mobile-menu > ul > li {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.mobile-menu a {
    color: white;
    font-weight: bold;
    text-decoration: none;
    font-size: 1.1rem;
}

.mobile-sub-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    color: white;
    font-weight: bold;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    width: 100%;
}

.mobile-subnav {
    display: none;
    padding: 0.5rem 0 0 1rem;
}

.mobile-subnav.open {
    display: block;
}

.mobile-subnav li {
    padding: 0.4rem 0;
}

.mobile-subnav a {
    font-size: 1rem;
    opacity: 0.85;
}

body.mobile-menu-open {
    overflow: hidden;
}

/* RESPONSIVE HERO */

/* Compense le header fixe pour les ancres */
html {
    scroll-padding-top: var(--header-height, 80px);
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--color-primary);
    font-size: 1.75rem;
    text-decoration: none;
    animation: bounce 2s infinite;
    -webkit-text-stroke: 0.8px var(--color-primary);
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(8px); }
}

@media (max-width: 991px) {
    #hero-header {
        height: auto;
        min-height: 100svh;
        background: linear-gradient(170deg, #ffffff 45%, var(--color-primary) 100%);
        padding-bottom: 3rem;
    }
}

@media (max-width: 575px) {
    #hero-header .col-lg-5 {
        display: none;
    }
}

@media (max-width: 991px) {
    /* Footer */
    footer .col-lg-5,
    footer .col-lg-4,
    footer .col-lg-2 {
        text-align: center;
    }

    footer .col-lg-5 a.d-flex {
        justify-content: center;
    }

    footer .col-lg-2 p.d-flex {
        justify-content: center;
    }

    #contact .col-lg-5 {
        text-align: center;
    }

    #contact .col-lg-5 ul {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    #contact .col-12:last-child {
        text-align: center;
    }

    #hero-header .col-lg-7 {
        text-align: center;
    }
}