/* Styles mobiles pour la page Visites */

/* Media query pour les appareils mobiles */
@media screen and (max-width: 768px) {
    /* Hero Section */
    .hero {
        height: 70vh !important;
        min-height: 500px !important;
        padding: 0 !important;
    }

    .hero__content {
       padding: inherit !important;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
        height: 100%;
    }

    .hero__content h1,
    .hero-title {
        font-size: 3rem !important;
        line-height: 1.2;
        margin-bottom: 2rem;
        text-align: center;
        letter-spacing: inherit !important;
    }

    .hero__content p {
        font-size: 1.5rem !important;
        line-height: 1.4;
        text-align: center;
        font-style: italic;
    }

    .hero__content .display-3 {
        font-size: 2rem !important;
        line-height: 1.2;
        margin-bottom: 1rem;
    }

    .hero__content .lead {
        font-size: 1rem !important;
        line-height: 1.4;
        margin-bottom: 1.5rem;
        padding: 0 10px;
    }

    /* Styles des titres */
    .hero-section h1,
    .section-title h1,
    .visite-title,
    h1 {
        font-size: 3rem !important;
        margin-bottom: 1.5rem;
        line-height: 1.2;
    }

    .hero-section p,
    .visite-description {
        font-size: 1.1rem;
        line-height: 1.6;
    }

    /* Sections Générales */
    .section {
        padding: 3rem 0;
    }

    .text-center.mb-5 {
        margin-top: 3rem;
    }

    .subtitle {
        font-size: 0.8rem;
        padding: 5px 10px;
        letter-spacing: 1px;
        margin: 0 0 0.5rem 0;
        display: inline-block;
    }

    .section-title {
        font-size: 2.2rem !important;
        margin: 0.5rem 0 1rem;
        text-align: center;
        font-weight: 600;
    }

    h2.section-title {
        font-size: 2.2rem !important;
    }

    .section h2, 
    .section-title,
    .display-4 {
        font-size: 2.2rem !important;
    }

    .section-description {
        font-size: 0.95rem;
        line-height: 1.5;
        padding: 0 15px;
        margin-bottom: 2rem;
        text-align: center;
    }

    /* Galerie et Filtres */
    .filters {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        margin-bottom: 2rem;
        padding: 0 15px;
    }

    .btn-filter {
        font-size: 0.9rem;
        padding: 8px 16px;
        min-width: auto;
    }

    .gallery-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 20px;
    }

    .gallery-item {
        height: 400px;
    }

    .gallery-card {
        height: 100%;
        position: relative;
        overflow: hidden;
        border-radius: 20px;
    }

    .gallery-card img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.3s ease;
    }

    .gallery-card:hover img {
        transform: scale(1.1);
    }

    .gallery-card__overlay {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
        padding: 20px;
        color: white;
        transition: all 0.3s ease;
    }

    .gallery-card__overlay h3 {
        margin: 0;
        font-size: 1.5rem;
        margin-bottom: 8px;
    }

    .gallery-card__overlay p {
        margin: 0;
        font-size: 1rem;
        opacity: 0.9;
    }

    .filters {
        margin-bottom: 30px;
    }

    .btn-filter {
        padding: 8px 20px;
        margin: 5px;
        border: none;
        background: transparent;
        color: var(--text-color);
        font-weight: 500;
        transition: all 0.3s ease;
        border-radius: 20px;
    }

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

    .btn-filter:hover {
        background-color: var(--primary-color);
        color: white;
    }

    .gallery-card {
        height: 100%;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }

    .gallery-card img {
      
        object-fit: cover;
        width: 100%;
    }

    .gallery-card__overlay {
        padding: 15px;
        background: rgba(0, 0, 0, 0.7);
    }

    .gallery-card__title {
        font-size: 1.3rem;
        margin-bottom: 8px;
    }

    .gallery-card__description {
        font-size: 0.9rem;
        line-height: 1.4;
        margin-bottom: 12px;
    }

    .gallery-card__link {
        font-size: 0.9rem;
        padding: 8px 16px;
    }

    /* Modal de la galerie */
    .modal-gallery .modal-content {
        margin: 15px;
        border-radius: 12px;
    }

    .modal-gallery .modal-header {
        padding: 15px;
    }

    .modal-gallery .modal-title {
        font-size: 1.3rem;
    }

    .modal-gallery .modal-body {
        padding: 15px;
    }

    .modal-gallery .modal-body img {
        border-radius: 8px;
        margin-bottom: 15px;
    }

    .modal-gallery .modal-description {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    /* Grille des visites */
    .visits-grid {
        display: flex;
        flex-direction: column;
        gap: 20px;
        padding: 0 15px;
    }

    .visit-card {
        width: 100%;
        margin: 0;
    }

    .visit-card .card-img-top {
        height: 200px;
    }

    .visit-card .card-body {
        padding: 20px;
    }

    .visit-card .card-title {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }

    .visit-card .card-text {
        font-size: 1rem;
        margin-bottom: 15px;
    }

    /* Section Conseils */
    .conseils-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2rem;
        margin-bottom: 100px;
        padding: 0 1rem;
    }

    .conseil-item {
        padding: 1.5rem;
    }

    .conseil-icon {
        width: 50px;
        height: 50px;
    }

    .conseil-icon i {
        font-size: 1.2rem;
    }

    .conseil-content h3 {
        font-size: 1.3rem;
        margin-bottom: 0.8rem;
    }

    .conseil-content p {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }

    .conseil-details li {
        padding: 0.6rem;
        font-size: 0.9rem;
    }

    .circuit-duration{
        right: 0.5rem;
    }

    /* Footer */
    .footer {
        padding: 60px 0 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-section {
        text-align: center;
    }

    .footer-section h3 {
        text-align: center;
    }

    .footer-section h3::after {
        left: 50% !important;
        transform: translateX(-50%) !important;
    }

    .footer-section:hover h3::after {
        width: 50px;
        left: 50% !important;
        transform: translateX(-50%) !important;
    }

    .newsletter-form .input-group {
        flex-direction: column;
    }

    .btn-subscribe {
        width: 100%;
        margin-top: 10px;
    }

    .social-links {
        justify-content: center;
        gap: 15px;
        margin-top: 20px;
    }

    .contact-info {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .contact-info p {
        justify-content: center;
        text-align: center;
    }
}

/* Très petits écrans */
@media screen and (max-width: 480px) {
    .hero__content .display-3 {
        font-size: 1.8rem !important;
    }

    .hero__content .lead {
        font-size: 0.9rem !important;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .subtitle {
        font-size: 0.75rem;
    }

    .section-description {
        font-size: 0.9rem;
    }
}
