:root {
    --primary-color: #13b0bb;
    --primary-light: rgba(19, 176, 187, 0.1);
    --text-dark: #17181a;
    --text-light: #3b4249;
    --background: #ffffff;
    --gray-light: #f6f6f6;
}

html {
    font-size: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    color: var(--text-light);
    font-family: "Montserrat", sans-serif;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.6;
    letter-spacing: -0.01em;
    background: var(--background);
}

.header {
    z-index: 1000;
    top: 0;
    position: sticky;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(237, 237, 237, 0.8);
    /*padding: 0.8rem 2rem;*/
    padding: 5px 0 !important;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

/* Sélecteur de langue */
.language-selector {
    display: flex;
    gap: 8px;
    align-items: center;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border: 2px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: "Montserrat", sans-serif;
}

.lang-btn:hover {
    background: var(--primary-light);
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

.lang-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.flag-icon {
    width: 20px;
    height: 15px;
    border-radius: 2px;
    object-fit: cover;
}

/* Responsive pour mobile */
@media screen and (max-width: 768px) {
    .language-selector {
        gap: 4px;
    }

    .lang-btn {
        padding: 6px 8px;
        font-size: 0.8rem;
    }

    .flag-icon {
        width: 16px;
        height: 12px;
    }
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.header:hover {
    background: rgba(246, 246, 246, 1);
}

.fa {
    color: #13b0bb;
    transition: transform 0.3s ease;
}

.fa:hover {
    transform: scale(1.1);
}

.header-img-wrapper {
    padding: 0;
}

.header-img {
    margin: 0;
    padding: 0;
    height: 450px;
    max-width: 100%;
    object-fit: cover;
    margin-bottom: 80px;
}

.site-branding {
    display: flex;
    gap: 0;
    align-items: center;
    padding: 0 !important;
}

.site-branding a {
    transition: all 0.3s ease;
}

.site-branding a {
    transition: opacity 0.3s ease, transform 0.3s ease;
    will-change: opacity, transform;
}

.site-branding img {
    display: block;
    max-width: 80px;
    border-radius: 0;
    transition: all 0.3s ease;
}

.site-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-dark);
    margin: 16px 16px;
    letter-spacing: -0.5px;
    padding: 0 25px;
    line-height: 40px;
    transition: font-size 0.3s ease, margin 0.3s ease, line-height 0.3s ease, padding 0.3s ease;
    will-change: font-size, line-height;
    white-space: nowrap;
}

.site-title span {
    transition: all 0.3s ease;
}

/* Harmonisation (suppression du doublon contradictoire) */
body {
    margin: 0;
    padding: 0;
    color: var(--text-light);
    font-family: "Montserrat", sans-serif;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.6;
    letter-spacing: -0.01em;
    background: var(--background);
    touch-action: pan-y pan-x;
}

.container {
    background: var(--background);
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
    background: #fbfbfb;
}

.elements {
    width: 90%;
    margin: 80px auto;
    padding: 40px;
    background: linear-gradient(145deg, var(--gray-light), #ffffff);
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.elements h2 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-light);
    margin-top: 16px;
    opacity: 0.9;
}

.elements .row {
    margin-bottom: 50px;
}

.elements .col-3, .elements .col-4 {
    padding: 25px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.elements .col-3:hover, .elements .col-4:hover {
    transform: translateY(-8px);
}

.elements h1 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.elements i.fa {
    font-size: 2.5rem;
    background: var(--primary-light);
    padding: 1.5rem;
    border-radius: 16px;
    transition: all 0.4s ease;
}

.elements .col-3:hover i.fa, .elements .col-4:hover i.fa {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1) rotate(5deg);
}

.elements .col-3, .elements .col-4 {
    text-align: center;
    padding: 20px;
    transition: transform 0.3s ease;
}

.elements .col-3:hover, .elements .col-4:hover {
    transform: translateY(-5px);
}

.elements h1 {
    color: #13b0bb;
}

.images-carousel {
    height: 700px;
    width: 95%;
    max-width: 1400px;
    margin: 60px auto;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    position: relative;
}

.carousel-item {
    height: 700px;
    width: 100%;
    background-color: var(--gray-light);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

/* Sélecteur de langue */
.language-selector {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-right: 10px;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border: 2px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: "Montserrat", sans-serif;
    touch-action: manipulation;
}

.lang-btn:hover {
    background: var(--primary-light);
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

.lang-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Responsive pour mobile */
@media screen and (max-width: 768px) {
    .language-selector {
        gap: 4px;
        margin-right: 5px;
    }

    .lang-btn {
        padding: 6px 8px;
        font-size: 0.8rem;
    }
}

@media screen and (max-width: 480px) {
    .header {
        flex-direction: column;
        gap: 15px;
        padding: 1rem;
    }

    .language-selector {
        align-self: flex-end;
    }
}

.carousel-img {
    height: 700px;
    width: 100%;
    object-fit: cover;
    transition: all 0.8s ease;
    filter: brightness(0.95);
}

.carousel-item:hover .carousel-img {
    transform: scale(1.05);
    filter: brightness(1);
}

.carousel-caption {
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
    padding: 40px 30px;
    border-radius: 0 0 30px 30px;
}

.carousel-caption p {
    font-weight: 700;
    font-size: 1.6rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
    margin: 0;
    letter-spacing: 0.5px;
}

.carousel-control-prev, .carousel-control-next {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: all 0.3s ease;
}

.carousel:hover .carousel-control-prev,
.carousel:hover .carousel-control-next {
    opacity: 1;
}

.carousel-control-prev-icon, .carousel-control-next-icon {
    filter: invert(1) brightness(0.5);
}

.carousel-indicators {
    margin-bottom: 30px;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 6px;
    background-color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.carousel-indicators button.active {
    background-color: white;
    transform: scale(1.2);
}

.carousel-caption {
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 100%);
    padding: 30px 20px;
    border-radius: 0 0 15px 15px;
}

.carousel-caption p {
    font-weight: 600;
    font-size: 1.4rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin: 0;
}

/* Curseur pour indiquer le zoom */
.carousel-img {
    cursor: zoom-in;
}

/* Lightbox plein écran */
.lightbox-modal .modal-content {
    background: rgba(0, 0, 0, 0.96);
    border: none;
}

.lightbox-close {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 1057;
}

.lightbox-stage {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5vh 0;
}

.lightbox-modal img {
    max-width: 95vw;
    max-height: 90vh;
    object-fit: contain;
}

.lightbox-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 3rem;
    font-weight: 300;
    padding: 20px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1056;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-control:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 2rem;
    text-align: center;
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    padding: 0 2rem;
}

/* Bouton scroll to top */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    /*background: var(--secondary-color, #0ea5e9);*/
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.scroll-to-top:active {
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
}

/* Styles pour le calendrier de disponibilités */
.availability-calendar {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-bottom: 60px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.calendar-header h3 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
}

.month-nav {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
}

.month-nav:hover:not(:disabled) {
    background: #0e9aa4;
    transform: scale(1.1);
}

.month-nav:active:not(:disabled) {
    background: var(--primary-color);
    transform: scale(1.05);
}

.month-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    background: #d7eff1;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    margin-bottom: 20px;
}

.day-header {
    padding: 15px 5px;
    text-align: center;
    font-weight: 700;
    color: var(--text-dark);
    background: var(--gray-light);
    font-size: 0.9rem;
}

.day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s ease;
    position: relative;
    min-height: 40px;
    touch-action: manipulation;
}

.day.empty {
    cursor: default;
}

.day.available {
    background: #e8f5e8;
    color: #2d5a2d;
    border: 2px solid transparent;
}

.day.available:hover {
    background: #d4edda;
    transform: scale(1.05);
}

.day.occupied {
    background: #f8d7da;
    color: #721c24;
    cursor: not-allowed;
}

.day.selected {
    background: var(--primary-color);
    color: white;
}

.day.passed {
    background: #f6f6f6;
    color: #999;
    cursor: not-allowed;
}

.legend {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

.legend-color.available {
    background: #e8f5e8;
    border: 1px solid #2d5a2d;
}

.legend-color.occupied {
    background: #f8d7da;
    border: 1px solid #721c24;
}

.legend-color.selected {
    background: var(--primary-color);
}

.booking-info {
    text-align: center;
    margin-top: 20px;
}

.booking-info p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 20px;
}

.booking-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.booking-btn:hover {
    background: #0ea5e9;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.booking-btn i {
    margin-right: 8px;
}

/* Responsive pour le calendrier */
@media (max-width: 768px) {
    .availability-calendar {
        padding: 20px;
        margin: 0 10px 40px 10px;
    }

    .calendar-header h3 {
        font-size: 1.4rem;
    }

    .month-nav {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .day {
        min-height: 35px;
        font-size: 0.9rem;
    }

    .legend {
        gap: 15px;
    }

    .legend-item {
        font-size: 0.8rem;
    }
}

/* Sites touristiques */
.sites_touristiques {
    text-align: center;
    margin: 80px 0 60px 0;
}

.sites_touristiques h1 {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.sites_touristiques h2 {
    font-size: 1.3rem;
    color: var(--text-light);
    font-weight: 500;
    margin-bottom: 0;
    opacity: 0.8;
}

.tourism-site {
    margin-bottom: 40px;
    padding: 30px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.tourism-site::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), #0ea5e9);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.tourism-site:hover::before {
    transform: translateX(0);
}

.tourism-site:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.tourism-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 25px;
    transition: all 0.4s ease;
}

.tourism-site:hover .tourism-img {
    transform: scale(1.02);
    filter: brightness(1.1);
}

.tourism-site h4 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
    line-height: 1.3;
}

.tourism-site h5 {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.tourism-site p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-light);
    margin-bottom: 15px;
    text-align: justify;
}

.rating {
    margin: 15px 0;
}

.rating i {
    font-size: 1.2rem;
    margin: 0 2px;
    color: #ffc107;
}

/* Supprimé - doublon qui masquait les boutons */

/* Footer */
.footer {
    background: var(--gray-light);
    padding: 40px 0;
    margin-top: 80px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    width: 100%;
}

.footer .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer .row {
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Elements dans modal */
.elements--in-modal {
    width: 100%;
    margin: 0;
    padding: 20px;
    background: transparent;
    box-shadow: none;
    border-radius: 12px;
}

/* Responsive général */
@media (max-width: 1200px) {
    .container {
        padding: 0 2rem;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 1rem;
        flex-direction: column;
        gap: 15px;
    }

    .header.scrolled {
        padding: 0.5rem;
        gap: 8px;
        flex-direction: row;
        justify-content: space-between;
    }

    .header.scrolled .site-branding {
        flex-direction: row;
        width: auto;
    }

    .header.scrolled .site-branding a,
    .header.scrolled .site-branding img {
        display: none;
    }

    .header.scrolled .site-title {
        font-size: 1.2rem;
        margin: 8px;
        padding: 0 10px;
        line-height: 24px;
    }

    .header.scrolled .site-branding {
        flex-direction: row;
        width: auto;
    }

    .header.scrolled .site-branding a,
    .header.scrolled .site-branding img {
        display: none;
    }

    .header:not(.compact) .site-branding img {
        mask-image: linear-gradient(to right, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 60%, rgba(0,0,0,0) 100%);
        -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 60%, rgba(0,0,0,0) 100%);
    }

    .header.scrolled .site-title {
        font-size: 1.2rem;
        margin: 8px;
        padding: 0 10px;
        line-height: 24px;
    }

    .site-title {
        font-size: 2rem;
        font-weight: 800;
        color: var(--text-dark);
        margin: 16px 16px;
        letter-spacing: -0.5px;
        padding: 0 25px;
        line-height: 40px;
    }

    .header-img {
        height: 300px;
        margin-bottom: 40px;
    }

    .elements {
        width: 95%;
        margin: 40px auto;
        padding: 25px;
    }

    .elements .col-3, .elements .col-4 {
        margin-bottom: 30px;
    }

    .images-carousel {
        height: 400px;
        width: 98%;
        margin: 40px auto;
        border-radius: 20px;
    }

    .carousel-item {
        height: 400px;
    }

    .carousel-img {
        height: 400px;
    }

    .sites_touristiques h1 {
        font-size: 2.2rem;
    }

    .sites_touristiques h2 {
        font-size: 1.1rem;
    }

    .tourism-site {
        margin-bottom: 30px;
        padding: 20px;
    }

    .tourism-img {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .header {
        padding: 0.8rem;
    }

    .site-title {
        font-size: 2rem;
        font-weight: 800;
        color: var(--text-dark);
        margin: 16px 16px;
        letter-spacing: -0.5px;
        padding: 0 25px;
        line-height: 40px;
    }

    .elements h1 {
        font-size: 2rem;
    }

    .elements i.fa {
        font-size: 2rem;
        padding: 1rem;
    }

    .sites_touristiques h1 {
        font-size: 1.8rem;
    }

    .tourism-site h4 {
        font-size: 1.2rem;
    }
}

.lightbox-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.85);
    color: #111;
    font-size: 2rem;
    cursor: pointer;
    z-index: 1056;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-control:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.05);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    padding: 0 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

@media screen and (max-width: 768px) {
    .gallery-cta {
        margin: -10px auto 30px;
    }

    .btn-gallery {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .images-carousel {
        height: 400px;
        width: 95%;
        margin: 20px auto;
    }

    .carousel-item {
        height: 400px;
        width: 100%;
    }

    .carousel-img {
        height: 400px;
        width: 100%;
        object-fit: cover;
    }

    .carousel-caption p {
        font-weight: 500;
        font-size: 1.1rem;
    }

    .elements {
        width: 100%;
        padding: 15px;
    }

    .elements .col-3, .elements .col-4 {
        padding: 10px;
    }

    h1 {
        font-size: 1.3rem;
    }

    h2 {
        font-size: 0.9rem;
        margin-bottom: 30px;
    }
}

@media screen and (max-width: 375px) {
    .images-carousel {
        height: 300px;
        width: 100%;
        margin: 15px auto;
    }

    .carousel-item {
        height: 300px;
    }

    .carousel-img {
        height: 300px;
    }

    .header {
        padding: 0.8rem;
    }

    .site-title {
        font-size: 2rem;
        font-weight: 800;
        color: var(--text-dark);
        margin: 16px 16px;
        letter-spacing: -0.5px;
        padding: 0 25px;
        line-height: 40px;
    }

    .elements h2 {
        font-size: 0.8rem;
    }
}

h1 {
    text-align: center;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-dark);
    letter-spacing: -0.02em;
    font-size: 2rem;
    margin: 0;
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

h1:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

h2 {
    text-align: center;
    font-weight: 500;
    font-size: 1.5rem;
    margin: 20px 0 60px 0;
    color: var(--text-light);
    opacity: 0.9;
}

.sites_touristiques {
    margin-top: 0px;
    margin-bottom: 40px;
}

.header-img {
    margin: 0;
    padding: 0;
    height: 600px;
    width: 100%;
    object-fit: cover;
    margin-bottom: 100px;
    border-radius: 0;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

h4 {
    font-weight: 600;
    line-height: 1.48;
    letter-spacing: -.03em;
    font-size: 1rem;
    text-align: left;
}

h5 {
    font-weight: 400;
    margin: 5px 0;
    font-size: 12px;
    text-align: left;
    line-height: 1.8;
    color: #3b4249;
}

.body {
    margin: 0 70px;
}


@media screen and (max-width: 768px) {
    .body {
        margin: 20px;
    }
}

.tourism-site {
    margin: 0 0 30px 0;
    background: #fff;
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    height: 100%;
    cursor: pointer;
    position: relative; /* nécessaire pour positionner le lien */
    touch-action: manipulation;
}

.tourism-site:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

.tourism-site p {
    margin: 0 0 16px 0;
    font-size: 0.95rem;
    text-align: left;
    line-height: 1.8;
    color: var(--text-light);
    display: -webkit-box;
    -webkit-line-clamp: 2; /* 2 lignes visibles */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tourism-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 12px;
    margin: 0 0 16px 0;
}

.rating {
    text-align: left;
}

.fa-star {
    color: #13b0bb;
    font-size: 11px;
}

/* Lien pour agrandir la carte (ouvre la popup) */
.tourism-expand {
    position: absolute;
    right: 14px;
    bottom: 14px;
    background: linear-gradient(135deg, #13b0bb, #0e9aa4);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 8px 12px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 6px 16px rgba(19, 176, 187, 0.35);
    z-index: 3;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: all 0.3s ease;
    overflow: visible;
}


.tourism-expand:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(19, 176, 187, 0.45);
}

.tourism-expand i {
    font-size: 0.9rem;
    animation: infoBlink 1.5s infinite ease-in-out;
}

@keyframes infoBlink {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.35;
        transform: scale(0.98);
    }
}

.tourism-expand:hover {
    color: #fff;
    transform: translateY(-1px);
}

.footer {
    font-weight: 500;
}

/* Agenda de disponibilités */
.availability-calendar {
    max-width: 600px;
    margin: 0 auto 60px auto;
    background: #fff;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.calendar-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
    color: #17181a;
}

.month-nav {
    background: #13b0bb;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.month-nav:hover {
    background: #0e9aa4;
    transform: scale(1.1);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    margin-bottom: 20px;
}

.day-header {
    text-align: center;
    font-weight: 600;
    padding: 10px 0;
    color: #13b0bb;
    font-size: 0.9rem;
}

.day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.day.empty {
    cursor: default;
}

.day.available {
    background: rgba(19, 176, 187, 0.1);
    border: 2px solid #13b0bb;
    color: #13b0bb;
}

.day.available:hover {
    background: #13b0bb;
    color: white;
    transform: scale(1.1);
}

.day.occupied {
    background: rgba(220, 53, 69, 0.1);
    border: 2px solid #dc3545;
    color: #dc3545;
    cursor: not-allowed;
}

.day.selected {
    background: #13b0bb;
    color: white;
    border: 2px solid #0e9aa4;
    transform: scale(1.05);
}

/* Jours passés (désactivés) */
.day.passed {
    background: #f2f4f5;
    border: 2px solid #e5e9ef;
    color: #9aa0a6;
    cursor: not-allowed;
    text-decoration: line-through;
    pointer-events: none;
}

/* État disabled sur la nav des mois */
.month-nav:disabled {
    background: #d7eff1;
    color: #7aa8ac;
    cursor: not-allowed;
    opacity: 0.7;
    transform: none;
}

.legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #3b4249;
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 2px solid;
}

.legend-color.available {
    background: rgba(19, 176, 187, 0.1);
    border-color: #13b0bb;
}

.legend-color.occupied {
    background: rgba(220, 53, 69, 0.1);
    border-color: #dc3545;
}

.legend-color.selected {
    background: #13b0bb;
    border-color: #0e9aa4;
}

.booking-info {
    text-align: center;
}

.booking-info p {
    margin-bottom: 15px;
    color: #3b4249;
    font-size: 0.9rem;
}

.booking-btn {
    background: linear-gradient(135deg, #13b0bb, #0e9aa4);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.booking-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(19, 176, 187, 0.4);
}

/* Styles pour la synchronisation */
.availability-calendar.loading {
    opacity: 0.7;
    pointer-events: none;
}

.calendar-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    color: #13b0bb;
    font-weight: 600;
    z-index: 100;
}

.calendar-error {
    background: #fee;
    border: 1px solid #fcc;
    color: #c66;
    padding: 10px;
    border-radius: 5px;
    margin: 10px 0;
    text-align: center;
}

.calendar-success {
    background: #e8f5e8;
    border: 1px solid #4caf50;
    color: #2e7d32;
    padding: 10px;
    border-radius: 5px;
    margin: 10px 0;
    text-align: center;
    font-weight: 500;
}

.sync-info {
    text-align: center;
    margin: 15px 0;
    color: #666;
    font-size: 0.8rem;
}

.sync-btn {
    background: none;
    border: none;
    color: #13b0bb;
    cursor: pointer;
    margin-left: 10px;
    transition: all 0.3s ease;
}

.sync-btn:hover {
    color: #0e9aa4;
    transform: rotate(180deg);
}

/* Style du titre de la popup (modal) */
#tourismModal .modal-title {
    font-weight: 700;
    font-size: 1.35rem; /* un peu plus grand */
    color: var(--text-dark);
    letter-spacing: -0.01em;
}

/* Popup Éléments: hauteur réduite et contenu scrollable */
#elementsModal .modal-dialog {
    max-width: 1000px;
}

#elementsModal .modal-content {
    border: none;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

#elementsModal .modal-body {
    max-height: 70vh;
    overflow-y: auto;
    padding: 0;
}

/* Style du titre de la popup (modal) */
#elementsModal .modal-title {
    font-weight: 700;
    font-size: 1.35rem; /* un peu plus grand */
    color: var(--text-dark);
    letter-spacing: -0.01em;
}

/* Bloc éléments compact dans la modale */
.elements--in-modal {
    width: 100%;
    margin: 0;
    padding: 20px;
    background: transparent;
    box-shadow: none;
    border-radius: 12px;
}

/* Bouton scroll to top */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #13b0bb;
    color: white;
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: #0ea5e9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.scroll-to-top:active {
    transform: translateY(0);
}

/* Masquer le bouton quand une modal (lightbox) est ouverte */
body.modal-open .scroll-to-top {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none;
}

/* Version de debug - toujours visible pour test */
.scroll-to-top.debug {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    background: red !important;
}

/* Responsive */
@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
}

/* Indicateur de scroll pour la modal elementsModal */
#elementsModal .modal-body {
    position: relative;
}

/* Dégradé en bas pour indiquer qu'il y a plus de contenu */
#elementsModal.has-scroll .modal-body::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.95));
    pointer-events: none;
    z-index: 10;
}

/* Flèche animée pour indiquer le scroll */
#elementsModal.has-scroll .modal-body::before {
    content: '⬇';
    position: absolute;
    bottom: 8px;
    right: 50%;
    transform: translateX(50%);
    color: var(--primary-color);
    font-size: 1.4rem;
    font-weight: bold;
    animation: scrollBounceElements 2s infinite;
    z-index: 11;
    pointer-events: none;
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.8);
}

@keyframes scrollBounceElements {
    0%, 100% {
        transform: translateX(50%) translateY(0);
        opacity: 0.7;
    }
    50% {
        transform: translateX(50%) translateY(-6px);
        opacity: 1;
    }
}

/* Styles pour le modal des éléments */
#elementsModal .modal-dialog {
    max-width: 900px;
}

.elements--in-modal .row {
    margin-bottom: 24px;
}

/* Bouton pour ouvrir la galerie sous le carousel */
.gallery-cta {
    width: 100%;
    max-width: 1400px;
    margin: -20px auto 40px;
    text-align: center;
}

.btn-gallery {
    background: linear-gradient(135deg, var(--primary-color), #0e9aa4);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: .2px;
    box-shadow: 0 10px 20px rgba(19, 176, 187, 0.25);
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    touch-action: manipulation;
}

.btn-gallery:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(19, 176, 187, 0.35);
    background: linear-gradient(135deg, #0e9aa4, var(--primary-color));
}

.btn-gallery:active {
    transform: translateY(0);
}

.btn-gallery i {
    font-size: 1.1rem;
}

/* Bouton pour ouvrir la popup des éléments après le carrousel */
.elements-cta {
    width: 100%;
    max-width: 1400px;
    margin: 10px auto 40px;
    text-align: center;
}

.elements-cta .btn {
    background: linear-gradient(135deg, var(--primary-color), #0e9aa4);
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: .2px;
    box-shadow: 0 10px 20px rgba(19, 176, 187, 0.25);
}

.elements-cta .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(19, 176, 187, 0.35);
}

@media screen and (max-width: 768px) {
    .availability-calendar {
        margin: 0 20px 40px 20px;
        padding: 20px;
        position: relative;
    }

    .calendar-header h3 {
        font-size: 1.1rem;
    }

    .month-nav {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .day-header {
        font-size: 0.8rem;
        padding: 8px 0;
    }

    .legend {
        gap: 15px;
    }

    .legend-item {
        font-size: 0.8rem;
    }

    .booking-btn {
        padding: 10px 20px;
        font-size: 1.5rem;
        margin: -18px 0 12px 45px;
    }

    .sync-info {
        font-size: 0.7rem;
    }

    /* Header image plus compact pour laisser apparaître le titre */
    .header-img {
        height: 280px;
        margin-bottom: 32px;
        border-radius: 0;
    }
}

@media screen and (max-width: 375px) {
    /* Encore plus compact sur très petits écrans */
    .header-img {
        height: 200px;
        margin-bottom: 24px;
        border-radius: 0;
    }
}

