body {
    font-family: "Poppins", sans-serif;
    background-color: #fbfbfb;
    margin: 0;
    color: #333;
}

/* === HEADER === */
.account-dashboard {
    max-width: 1200px;
    margin: auto;
    padding: 40px 20px;
}

.account-user {
    display: flex;
    align-items: center;
    gap: 20px;
}

.account-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.account-user h1 {
    color: #346E68;
    margin: 0;
    font-size: 1.8rem;
}

.account-user p {
    color: #666;
    margin: 5px 0 0;
}

/* === LAYOUT PRINCIPAL === */
.account-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    margin-top: 40px;
}

/* === CARTE GLOBALE === */
.account-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    padding: 25px 30px;
    transition: all 0.3s ease;
}

.account-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08);
}

.account-card h2,
.account-card h3 {
    color: #346E68;
    font-weight: 600;
}

/* === BLOC INFOS PERSONNELLES === */
.account-infos {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.info-line {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 12px 0;
}

.info-main {
    display: flex;
    flex-direction: column;
}

.label {
    font-weight: 600;
    color: #346E68;
    font-size: 0.95rem;
}

.value {
    font-size: 0.95rem;
    color: #333;
    margin-top: 4px;
}

.sub-value {
    font-size: 0.85rem;
    color: #777;
}

.edit-btn {
    background: transparent;
    border: none;
    color: #FF9F2E;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
    font-size: 1rem;
}

.edit-btn:hover {
    color: #346E68;
    transform: scale(1.15);
}

/* === BLOC DROIT (4 CARTES) === */
.account-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.account-grid-right {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.center-card {
    text-align: center;
}

.icon-lg {
    font-size: 2rem;
    color: #346E68;
    background-color: rgba(52, 110, 104, 0.1);
    border-radius: 50%;
    padding: 15px;
    margin-bottom: 10px;
}

.btn-primary {
    display: inline-block;
    background-color: #FF9F2E;
    color: white;
    padding: 10px 24px;
    margin-top: 20px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s;
}

    .btn-primary:hover {
        background-color: #e68b1b;
        color: white;
    }

/* === MODALES === */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(6px);
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

.modal-card {
    background: rgba(255, 255, 255);
    border-radius: 20px;
    padding: 30px;
    width: 400px;
    max-width: 90%;
    font-size: 1.2rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    text-align: center;
    animation: slideUp 0.35s ease;
}

.modal-card h3 {
    color: #346E68;
    margin-bottom: 20px;
    font-weight: 600;
    text-align: center;
}

.modal-card input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ccc;
    border-radius: 10px;
    font-size: 0.95rem;
    color: #333;
    background-color: rgba(255, 255, 255, 0.85);
    transition: border-color 0.2s ease;
}

.modal-card input:focus {
    border-color: #346E68;
    outline: none;
}

.modal-actions {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.btn-save {
    background-color: #FF9F2E;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 10px 18px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-save:hover {
    background-color: #e68b1b;
}

.btn-cancel {
    background: #346E68;
    color: white;
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 10px 18px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-cancel:hover {
    background-color: #f0f0f0;
}

.modal-field-group {
    margin-bottom: 15px;
    text-align: left;
}

.modal-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #346E68;
    margin-bottom: 6px;
}

.modal-card input[type="password"] {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ccc;
    border-radius: 10px;
    font-size: 0.95rem;
    color: #333;
    background-color: rgba(255, 255, 255, 0.85);
    transition: border-color 0.2s ease;
}

.modal-card input[type="password"]:focus {
    border-color: #346E68;
    outline: none;
}

.edit-radio {
    display: flex;
    align-items: center;
    gap: 12px 20px;
    flex-wrap: wrap;
}

.edit-radio .radio {
    margin-right: 4px;
}

.edit-radio label {
    font-weight: 500;
    cursor: pointer;
    color: #333;
}

input[type="text"],
input[type="date"] {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ccc;
    border-radius: 10px;
    font-size: 0.95rem;
    color: #333;
    background-color: rgba(255, 255, 255, 0.85);
    transition: border-color 0.2s ease;
}

input[type="text"]:focus,
input[type="date"]:focus {
    border-color: #346E68;
    outline: none;
}

.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-wrapper input {
    width: 100%;
    padding-right: 40px;
}

.toggle-password {
    position: absolute;
    right: 10px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #999;
    font-size: 1rem;
    transition: color 0.2s ease, transform 0.2s ease;
}

.toggle-password:hover {
    color: #346E68;
    transform: scale(1.1);
}

/* Icône Font Awesome visible */
.toggle-password i {
    pointer-events: none;
}

.toast {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: #346E68;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    font-weight: 500;
    z-index: 99999;
    animation: fadeInOut 3s ease forwards;
}

.toast-message {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: #346E68;
    color: white;
    padding: 12px 20px;
    border-radius: 10px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 9999;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.toast-message.show {
    opacity: 1;
    transform: translateY(0);
}

/* Champs d'erreur */
input.input-error {
    border-color: #d9534f !important;
    background-color: #fff5f5;
}

.modal-label.label-error {
    color: #d9534f;
}

.error-msg {
    color: #d9534f;
    font-size: 0.85rem;
    margin-top: 5px;
    display: none;
}

/* Spinner sur bouton Enregistrer */
.btn-save.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.btn-save.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 16px;
    width: 16px;
    height: 16px;
    border: 2px solid white;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    transform: translateY(-50%);
}

/* === ANIMATIONS === */
@keyframes spin {
    to {
        transform: translateY(-50%) rotate(360deg);
    }
}

@keyframes fadeInOut {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    10% {
        opacity: 1;
        transform: translateY(0);
    }

    90% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translateY(20px);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-4px);
    }

    50% {
        transform: translateX(4px);
    }

    75% {
        transform: translateX(-2px);
    }
}

.shake {
    animation: shake 0.4s ease;
    border-color: #ff4b4b;
}

/* === RESPONSIVE === */
@media (max-width: 992px) {
    .account-layout {
        grid-template-columns: 1fr;
    }

    .account-grid-right {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .account-grid-right {
        grid-template-columns: 1fr;
    }

    .info-line {
        flex-direction: column;
        align-items: flex-start;
    }

    .edit-btn {
        align-self: flex-end;
        margin-top: 5px;
    }

    .value {
        text-align: left;
        margin-top: 5px;
    }

    .account-avatar {
        width: 60px;
        height: 60px;
    }

    .account-user {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (min-width: 480px) {
    .edit-radio {
        flex-wrap: nowrap;
        justify-content: flex-start;
    }
}

/* === MENU HORIZONTAL === */

/* === SOUS-MENU (base) === */
.account-menu {
    background: #fff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
    border-radius: 14px;
    margin: 25px auto;
    max-width: 1100px;
    padding: 14px 30px;
    position: relative;
    z-index: 10;
}

.account-menu ul {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 36px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.account-menu li {
    position: relative;
}

.account-menu a {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #346E68;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s ease, transform 0.2s ease;
}

.account-menu a i {
    font-size: 1rem;
    color: #049397;
}

.account-menu a:hover {
    color: #ff9f2e;
    transform: translateY(-2px);
}

.account-menu a:hover i {
    color: #ff9f2e;
}

/* ===== SOUS-MENU (commun desktop + mobile) ===== */
.dropdown {
    position: relative;
}

.submenu {
    display: none !important; /* force la fermeture initiale */
    flex-direction: column;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    padding: 8px 0;
    min-width: 230px;
    z-index: 100;
}

.dropdown.open > .submenu {
    display: flex !important; /* s'ouvre uniquement si .open */
}

.submenu li {
    width: 100%;
}

.submenu li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: #346E68;
    font-weight: 500;
    font-size: 0.9rem;
    transition: background 0.25s ease, color 0.25s ease;
}

.submenu li a:hover {
    background: #f7f7f7;
    color: #ff9f2e;
}

/* Flèche animée */
.dropdown > a .caret {
    font-size: 0.7rem;
    transition: transform 0.25s ease;
}

.dropdown.open > a .caret {
    transform: rotate(180deg);
}

/* === TITRE === */
.section-header {
    text-align: center;
    margin-bottom: 30px;
}

.section-header h1 {
    margin-top: 3rem;
    font-size: 1.8rem;
    color: #346E68;
}

.section-header p {
    color: #555;
    font-size: 0.95rem;
    font-style: italic;
}

/* === PROJETS === */
.projects-section {
    max-width: 1100px;
    margin: 0 auto 60px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.project-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
    padding: 22px;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.project-title {
    color: #346E68;
    font-size: 1.2rem;
    font-weight: 700;
}

.project-ref {
    font-size: 0.9rem;
    color: #777;
}

.status {
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status.ongoing {
    background: #fff7e5;
    color: #ff9f2e;
}

.status.confirmed {
    background: #e8f5f3;
    color: #2b7a2b;
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    font-size: 0.9rem;
    color: #333;
    margin-bottom: 15px;
}

.project-meta i {
    color: #049397;
}

/* ====== Bloc offres distinct ====== */
.offers-wrapper {
    margin-top: 16px;
    padding: 12px 14px 14px;
    border-radius: 14px;
    background: #f7f7f7;
    border: 1px solid #eee;
    transition: all 0.3s ease;
}

    /* En mode fermé */
    .offers-wrapper.collapsed {
        background: #fbfbfb;
    }

/* Header cliquable */
.offers-toggle {
    width: 100%;
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 2px 10px;
    cursor: pointer;
}

.offers-toggle-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.offers-chip {
    background: #346E68;
    color: #fff;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 0.8rem;
    font-weight: 600;
}

.offers-toggle-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #346E68;
}

.offers-toggle-right {
    display: flex;
    align-items: center;
    gap: 6px;
}

.offers-toggle-hint {
    font-size: 0.78rem;
    color: #888;
}

.offers-toggle i {
    font-size: 0.9rem;
    color: #346E68;
    transition: transform 0.25s ease;
}

/* En mode ouvert */
.offers-wrapper:not(.collapsed) .offers-toggle i {
    transform: rotate(180deg);
}

/* ====== Conteneur des offres ====== */
.offers-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Centrage horizontal */
    gap: 25px;
    margin-top: 20px;
}

/* Masquer au chargement */
.offers-section.collapsed {
    max-height: 0;
    opacity: 0;
    pointer-events: none;
}

/* Quand ouvert */
.offers-wrapper:not(.collapsed) .offers-section {
    max-height: 1200px; /* hauteur ajustable */
    opacity: 1;
    pointer-events: all;
}

/* ====== Carte d’offre ====== */
.offer-card {
    flex: 0 1 calc(33.333% - 25px); /* max 3 par ligne */
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
    max-width: 340px; /* Taille fixe pour homogénéité */
    min-width: 280px;
}

.offer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

/* Image compacte */
.offer-img {
    position: relative;
    height: 160px;
    overflow: hidden;
}

.offer-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Rubans */
.offer-ribbon {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ff9f2e;
    color: #fff;
    font-weight: bold;
    font-size: 0.8rem;
    padding: 4px 10px;
    border-radius: 20px;
}

.offer-ribbon.best {
    background: linear-gradient(45deg, #ff6b00, #ffb200);
}

.offer-ribbon.new {
    background: linear-gradient(45deg, #049397, #05b1a1);
}

/* Corps */
.offer-body {
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

.offer-info {
    flex: 1;
}

.offer-title {
    font-size: 1.05rem;
    color: #346E68;
    margin-bottom: 8px;
    font-weight: 700;
}

.offer-details {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.9rem;
    color: #444;
}

.offer-details li {
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.offer-details i {
    color: #049397;
    min-width: 16px;
}

.validity {
    color: #ff9f2e;
    font-weight: 600;
}

.expired {
    color: #d9534f;
    font-weight: 600;
}

/* Actions */
.offer-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 12px;
    border-top: 1px solid #f0f0f0;
    padding-top: 10px;
}

.offer-price-badge {
    text-align: center;
    margin-bottom: 10px;
}

.price-label {
    display: block;
    font-size: 0.85rem;
    color: #888;
}

.price-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: #ff9f2e;
}

.offer-cta {
    display: inline-block;
    background: #346E68;
    color: #fff;
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s ease;
}

.offer-cta:hover {
    background: #ff9f2e;
}

/* Pagination */
.pagination {
    list-style: none;
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-top: 20px;
}

.pagination li a {
    background: #f3efe2;
    color: #346E68;
    padding: 6px 12px;
    border-radius: 999px;
    text-decoration: none;
}

.pagination li.active a {
    background: #346E68;
    color: white;
}

/* ======== PAGE RESERVATIONS ======== */
.reservation-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    margin: 25px auto;
    padding: 25px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    max-width: 1000px;
}

.reservation-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.reservation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f2f2f2;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.reservation-title {
    font-size: 1.3rem;
    color: #2d5954;
    font-weight: 700;
}

.reservation-ref {
    font-size: 0.9rem;
    color: #666;
}

.status.confirmed {
    background: #e8f6ef;
    color: #049397;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
}

.reservation-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 10px 20px;
    font-size: 0.95rem;
    color: #333;
    margin-bottom: 20px;
}

.reservation-meta i {
    color: #049397;
    margin-right: 6px;
}

.reservation-actions {
    display: flex;
    justify-content: flex-end;
}

.btn-details {
    background: #049397;
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease;
}

.btn-details:hover {
    background: #ff9f2e;
}

.no-reservation {
    text-align: center;
    font-size: 1rem;
    color: #888;
    padding: 40px 0;
}

/* ======== Message aucune réservation ======== */
.no-reservation-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px 30px;
    max-width: 600px;
    margin: 60px auto;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid #f1f1f1;
    animation: fadeIn 0.5s ease;
}

.no-reservation-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #049397, #04b1a1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    color: #fff;
    font-size: 2rem;
    box-shadow: 0 4px 12px rgba(4, 147, 151, 0.3);
}

.no-reservation-icon.travel {
    background: linear-gradient(135deg, #ff9f2e, #ffc46a);
    box-shadow: 0 4px 12px rgba(255, 159, 46, 0.3);
}

.no-reservation-icon.travel i {
    transform: rotate(-10deg);
}

.no-reservation-card h3 {
    color: #346E68;
    font-size: 1.4rem;
    margin-bottom: 8px;
    font-weight: 700;
}

.no-reservation-card p {
    color: #555;
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.no-reservation-card .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ff9f2e;
    color: white;
    padding: 10px 20px;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.2s ease;
}

.no-reservation-card .btn-primary:hover {
    background: #e68b1b;
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
    .reservation-meta {
        grid-template-columns: 1fr;
    }

    .reservation-actions {
        justify-content: center;
    }

    .no-reservation-card {
        padding: 30px 20px;
        margin: 40px 15px;
    }

    .no-reservation-icon {
        width: 60px;
        height: 60px;
        font-size: 1.6rem;
    }
}

/* ======== Rubans de statut voyage ======== */
.reservation-ribbon {
    position: absolute;
    top: 15px;
    right: -25px;
    transform: rotate(45deg);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 5px 40px;
    text-align: center;
    z-index: 2;
}

.reservation-card {
    position: relative;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    margin: 25px auto;
    padding: 25px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    max-width: 1000px;
}

.reservation-ribbon.upcoming {
    background: #00b894; /* vert doux */
}

.reservation-ribbon.active {
    background: #ff9f2e; /* orange actif */
}

.reservation-ribbon.finished {
    background: #b2bec3; /* gris neutre */
}

/* ======== PAGE HISTORIQUE ======== */
.history-card {
    position: relative;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    margin: 25px auto;
    padding: 25px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    max-width: 1000px;
}

.history-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f2f2f2;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.history-title {
    font-size: 1.3rem;
    color: #2d5954;
    font-weight: 700;
}

.history-ref {
    font-size: 0.9rem;
    color: #666;
}

.history-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 10px 20px;
    font-size: 0.95rem;
    color: #333;
}

.history-meta i {
    color: #049397;
    margin-right: 6px;
}

/* ======== RUBANS ======== */
.history-ribbon {
    position: absolute;
    top: 15px;
    right: -25px;
    transform: rotate(45deg);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 5px 40px;
    text-align: center;
    z-index: 2;
}

.history-ribbon.canceled {
    background: #d63031; /* Rouge pour annulé */
}

.history-ribbon.expired {
    background: #ff9f2e; /* Orange pour expiré */
}

.history-ribbon.closed {
    background: #b2bec3; /* Gris neutre */
}

/* ======== BARRE DE TRI ======== */
.filter-bar {
    max-width: 1000px;
    margin: 0 auto 20px auto;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    background: #fff;
    padding: 12px 20px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.filter-bar form {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-bar label {
    font-weight: 600;
    color: #346E68;
    display: flex;
    align-items: center;
    gap: 6px;
}

.filter-bar i {
    color: #049397;
}

.filter-bar select {
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
    background: #f9f9f9;
    font-weight: 500;
    color: #333;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.filter-bar select:hover,
.filter-bar select:focus {
    border-color: #049397;
    background: #fff;
}

/* Responsive */
@media (max-width: 768px) {
    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }

        .filter-bar form {
            justify-content: center;
        }
}

/* ======== PAGINATION ======== */
/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    list-style: none;
    margin-top: 25px;
}

.page-link {
    color: #089398;
    text-decoration: none;
    border-radius: 50%;
    padding: 8px 13px;
    transition: background 0.3s ease, color 0.3s ease;
}

.page-link:hover {
    background: #089398;
    color: #fff;
}

.page-item.active .page-link {
    background: #089398;
    color: #fff;
}

/* === SECTION RECOMMANDATION === */
.recommend-section {
    text-align: center;
    padding: 60px 20px 100px;
    position: relative;
    overflow: hidden;
}

.recommend-header h1 {
    font-size: 2rem;
    color: #2a6b68;
    margin-bottom: 8px;
}

.recommend-header p {
    color: #555;
    margin-bottom: 30px;
    font-size: 1rem;
}

.recommend-image {
    max-width: 800px;
    margin: 0 auto 30px;
    position: relative;
}

    .recommend-image img {
        width: 100%;
        height: auto;
        border-radius: 12px;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    }

/* === Boutons d’action === */
.recommend-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 20px;
}

.btn {
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    padding: 12px 26px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    color: #fff;
}

.btn-facebook {
    background: #1877f2;
}

.btn-whatsapp {
    background: #25D366;
}

.btn-copy {
    background: #ff9f2e;
}

.btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

/* === Responsive === */
@media (max-width: 768px) {
    .recommend-actions {
        flex-direction: column;
        gap: 12px;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ======== AVANTAGES ======== */

.highlight-block {
    background: linear-gradient(135deg, #f7fdfd 0%, #ffffff 100%);
    border-radius: 18px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    padding: 24px 30px;
    text-align: center;
    max-width: 800px;
    margin: 30px auto 40px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(4, 147, 151, 0.1);
}

.highlight-block:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.highlight-block p {
    font-size: 1rem;
    color: #2a6b68;
    line-height: 1.6;
    margin: 0;
}

.highlight-block strong {
    color: #049397;
    font-weight: 700;
}

.advantages-section {
    max-width: 1100px;
    margin: 60px auto 80px;
    padding: 0 20px 40px;
}

.advantages-intro {
    text-align: center;
    margin-bottom: 30px;
}

.account-pill {
    text-align: center;
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    background: #e3f3f1;
    color: #346E68;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 10px;
}

.advantages-intro h2 {
    font-size: 1.6rem;
    color: #2a6b68;
    margin-bottom: 8px;
}

.advantages-intro p {
    color: #555;
    max-width: 600px;
    margin: 0 auto;
    font-size: 0.95rem;
}

/* Grille des cartes */
.advantages-grid {
    display: grid;
    grid-template-columns: 2fr 1.4fr;
    gap: 22px;
    margin-top: 30px;
}

    .advantages-grid > article:nth-child(2),
    .advantages-grid > article:nth-child(3) {
        grid-column: span 1;
    }

/* Carte générique */
.adv-card {
    background: #fff;
    border-radius: 16px;
    padding: 22px 20px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    overflow: hidden;
}

.adv-card-primary {
    grid-row: span 2;
}

.adv-card-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.adv-card h3 {
    font-size: 1.1rem;
    color: #2a6b68;
    margin: 0 0 4px;
}

.adv-card-header p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
}

/* Icone circulaire */
.adv-icon {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: #049397;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

    .adv-icon.soft {
        background: #e3f3f1;
        color: #049397;
    }

/* Badge "Bientôt" */
.adv-tag {
    position: absolute;
    top: 14px;
    right: 16px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 4px 10px;
    border-radius: 999px;
    background: #fff4e3;
    color: #ff9f2e;
    font-weight: 600;
}

/* Valeur principale */
.adv-main-value {
    margin-top: 16px;
    margin-bottom: 12px;
}

.adv-value {
    font-size: 2.4rem;
    font-weight: 700;
    color: #346E68;
    line-height: 1;
    display: block;
}

.adv-label {
    font-size: 0.9rem;
    color: #777;
}

.adv-note {
    font-size: 0.9rem;
    color: #555;
    margin: 0;
}

.adv-text {
    font-size: 0.9rem;
    color: #555;
    margin: 4px 0 0;
}

/* Hover */
.adv-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.25s ease;
}

/* Responsive */
@media (max-width: 900px) {
    .advantages-grid {
        grid-template-columns: 1fr;
    }

    .adv-card-primary {
        grid-row: auto;
    }
}

/* ======== BADGES STATUT ======== */
.status-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: capitalize;
    min-width: 100px;
    text-align: center;
}

.status-confirmed {
    background: #e8f6ef;
    color: #2b7a2b;
}

.status-pending {
    background: #fff4e3;
    color: #ff9f2e;
}

.status-cancelled {
    background: #fde8e8;
    color: #d9534f;
}

.status-default {
    background: #f0f0f0;
    color: #666;
}

/* ======== BOUTON ANNULATION ======== */
.btn-cancel-res {
    display: inline-block;
    background: #d9534f;
    color: #fff;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease, transform 0.2s ease;
}

    .btn-cancel-res:hover {
        background: #b52d2d;
        transform: translateY(-2px);
    }

/* ======== RESPONSIVE OFFERS ======== */
@media (max-width: 1024px) {
    .offer-card {
        flex: 0 1 calc(50% - 25px);
    }
}

@media (max-width: 700px) {
    .offer-card {
        flex: 0 1 100%;
        max-width: 100%;
    }
}

@media (max-width: 850px) {
    .offer-card {
        flex-direction: column;
    }

    .offer-img {
        width: 100%;
        height: 160px;
    }

    .offer-body {
        flex-direction: column;
        align-items: flex-start;
    }

    .offer-actions {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        margin-top: 10px;
    }
}

@media (max-width: 480px) {
    .offers-section {
        grid-template-columns: 1fr;
    }
}

/* ===== Desktop : hover ===== */
@media (max-width: 768px) {
    .account-menu ul {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .submenu {
        position: static;
        box-shadow: none;
        background: #fbfbfb;
        border-radius: 8px;
        padding-left: 20px;
        margin-top: 6px;
    }
}