/* Pages publiques : cartes, details, reservation et responsive. */

/* base commune */

.section-title {
    font-weight: 800;
    color: var(--text-color);
    margin: 0 0 0.3rem;
}

.section-subtitle {
    color: var(--muted-color);
    font-size: 1.05rem;
}

.ui-card {
    border: 0;
    border-radius: 0;
    box-shadow: var(--shadow);
    background: #fff;
}

.ui-cover {
    width: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0;
}

/* boutons projet */

.ui-btn,
.detail-btn,
.grid-btn,
.res-btn {
    font-size: 0.84rem;
    padding: 7px 14px;
    border-radius: var(--btn-radius);
    border-width: 1px;
    font-weight: 800;
    line-height: 1.2;
    transition: 0.15s ease;
}

.ui-btn-primary,
.btn-success.detail-btn,
.btn-success.grid-btn {
    background: rgba(254, 185, 20, 0.14);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.ui-btn-primary:hover,
.btn-success.detail-btn:hover,
.btn-success.grid-btn:hover {
    background: var(--primary-color);
    color: #fff;
}

.ui-btn-outline,
.btn-outline-primary.detail-btn,
.btn-outline-primary.grid-btn {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.ui-btn-outline:hover,
.btn-outline-primary.detail-btn:hover,
.btn-outline-primary.grid-btn:hover {
    background: rgba(254, 185, 20, 0.08);
    color: var(--primary-color);
}

/* modales auth */

.auth-card {
    display: flex;
    min-height: 480px;
    background: #fff;
}

.auth-form {
    width: 60%;
    padding: 45px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-form h2 {
    font-size: 34px;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--secondary-color);
}

.auth-form form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.auth-form input {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 15px;
    outline: none;
    transition: 0.2s ease;
}

.auth-form input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(242, 166, 91, 0.18);
}

.auth-form .btn-primary {
    border: none;
    border-radius: 12px;
    padding: 12px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), #FEB914);
}

.auth-form .btn-primary:hover {
    opacity: 0.95;
}

.auth-link,
.switch-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
}

.auth-link:hover,
.switch-link a:hover {
    text-decoration: underline;
}

.switch-link {
    margin-bottom: 0;
    color: #666;
}

.divider {
    color: #999;
    font-size: 13px;
    font-weight: 700;
    position: relative;
}

.divider::before,
.divider::after {
    content: "";
    display: inline-block;
    width: 70px;
    height: 1px;
    background: #ddd;
    vertical-align: middle;
    margin: 0 10px;
}

.social-buttons .btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-buttons .btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.auth-logo {
    width: 40%;
    background: linear-gradient(135deg, var(--primary-color), #FEB914);
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-logo img {
    max-width: 160px;
    height: auto;
}

/* pages dÃ©tails */

.detail-wrap {
    max-width: 700px;
}

.detail-card {
    border: 0;
    border-radius: 0;
    box-shadow: var(--shadow);
    background: #fff;
}

.detail-body {
    padding: 22px 24px;
}

.detail-sub {
    font-size: 0.95rem;
    color: var(--muted-color);
}

.detail-list {
    display: grid;
    gap: 8px;
    margin: 14px 0 16px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    background: var(--bg-light);
    font-size: 0.95rem;
}

.detail-label {
    color: var(--muted-color);
    font-weight: 700;
}

.detail-value {
    color: var(--primary-color);
    font-weight: 800;
    font-size: 1.05rem;
}

.detail-desc {
    margin: 12px 0 16px;
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--text-color);
}

.detail-desc img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    margin: 14px auto;
}

.detail-desc figure {
    max-width: 100%;
    margin: 14px auto;
}

.detail-img {
    width: 100%;
    max-height: 380px;
    object-fit: cover;
    display: block;
    margin: 10px 0 14px;
    border-radius: 0;
}

.detail-actions {
    margin-top: 16px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.detail-badge {
    padding: 2px 8px;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 0;
    border: 1px solid currentColor;
}

.detail-badge.is-open {
    color: var(--secondary-color);
}

.detail-badge.is-closed {
    color: #e11d48;
}

/* grille offres destinations voyages */

.grid-card {
    border: 0;
    border-radius: 0;
    box-shadow: var(--shadow);
    background: #fff;
    transition: 0.2s ease;
}

.grid-card:hover {
    transform: translateY(-2px);
}

.grid-media {
    position: relative;
    overflow: hidden;
}

.grid-img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    display: block;
    border-radius: 0;
}

.grid-noimg {
    height: 190px;
}

.grid-title-overlay {
    position: absolute;
    top: 10px;
    left: 12px;
    right: 12px;
    color: #fff;
    font-weight: 800;
    font-size: 0.95rem;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
}

.grid-price-badge {
    position: absolute;
    right: 0;
    bottom: 0;
    padding: 8px 18px;
    background: linear-gradient(135deg, var(--primary-color), #FEB914);
    color: #fff;
    font-weight: 800;
    font-size: 1rem;
    line-height: 1;
    border-radius: 0;
    border: 0;
    box-shadow: 0 8px 18px rgba(254, 185, 20, 0.24);
}

.grid-body {
    padding: 14px;
}

.grid-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.grid-actions .grid-btn {
    min-width: 128px;
}

/* triangle promotion */

.grid-sale {
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    z-index: 3;
    border-top: 90px solid #e11d48;
    border-left: 90px solid transparent;
}

.grid-sale::after {
    content: attr(data-sale);
    position: absolute;
    top: -68px;
    right: 8px;
    color: #fff;
    font-weight: 800;
    font-size: 0.95rem;
    line-height: 1;
    transform: rotate(45deg);
    transform-origin: top right;
    white-space: nowrap;
    pointer-events: none;
}

/* rÃ©servation */

.res-wrap {
    align-items: stretch;
}

.res-card {
    height: 100%;
    border: 0;
    border-radius: 0;
    box-shadow: var(--shadow);
    background: #fff;
}

.res-right {
    max-width: 560px;
}

.res-media {
    position: relative;
    display: block;
}

.res-img {
    width: 100%;
    min-height: 420px;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0;
}

.res-noimg {
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    color: var(--muted-color);
}

.res-title-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
    margin: 0;
    color: var(--primary-color);
    pointer-events: none;
}

.res-back-overlay {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.res-back-overlay .btn-outline-primary {
    font-size: 0.78rem;
    padding: 4px 10px;
    border-radius: var(--btn-radius);
    border-width: 1px;
    font-weight: 600;
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.res-back-overlay .btn-outline-primary:hover {
    opacity: 0.9;
}

.res-cta {
    background: var(--primary-color);
    border: 1px solid var(--primary-color);
    color: #fff;
    font-weight: 800;
    padding: 10px 16px;
    border-radius: var(--btn-radius);
}

.res-cta:hover {
    background: #fff;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.res-card .form-control {
    border-radius: 0;
    border: 1px solid var(--border-color);
}

.res-card .form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.15rem rgba(10, 75, 129, 0.15);
}

/* responsive auth */

@media (max-width: 768px) {
    .auth-card {
        flex-direction: column;
        min-height: auto;
    }

    .auth-form {
        width: 100%;
        padding: 35px 25px;
    }

    .auth-logo {
        width: 100%;
        padding: 25px;
    }

    .divider::before,
    .divider::after {
        width: 45px;
    }
}

/* responsive carousel */

@media (max-width: 991px) {
    .carousel-image {
        height: 420px;
    }
}

@media (max-width: 767px) {
    .carousel-image {
        height: 300px;
    }

    #offresCarousel .offer-media {
        height: 240px;
    }

    #mainCarousel .row.g-0 {
        position: relative;
    }

    #mainCarousel .col-md-9 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    #mainCarousel .col-md-3 {
        position: absolute;
        inset: 0;
        flex: 0 0 100%;
        max-width: 100%;
        background: transparent !important;
        display: flex;
        align-items: center;
        justify-content: center;
        pointer-events: none;
    }

    #mainCarousel .voyage-link {
        pointer-events: auto;
        background: rgba(0, 0, 0, 0.35);
        padding: 18px 20px;
    }

    #mainCarousel .carousel-caption {
        position: static;
        width: auto;
        margin: 0;
    }
}

/* responsive dÃ©tails */

@media (max-width: 576px) {
    .detail-body {
        padding: 18px;
    }

    .detail-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .detail-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .detail-btn {
        width: 100%;
    }
}

/* responsive grille */

@media (max-width: 767px) {
    .grid-img,
    .grid-noimg {
        height: 160px;
    }

    .grid-title-overlay {
        font-size: 0.9rem;
    }
}

/* responsive rÃ©servation */

@media (min-width: 992px) {
    .res-right {
        margin-left: auto;
    }
}

@media (max-width: 991px) {
    .res-img,
    .res-noimg {
        min-height: 320px;
    }
}




.table.table-bordered.admin-table td.admin-date-danger,
.admin-table td.admin-date-danger {
    color: #dc3545 !important;
    font-weight: 800;
}
