/* 
 * responsive.css - Styles responsifs pour Guide Voyage PDF
 * Ce fichier contient les styles spécifiques pour l'affichage sur tablettes et mobiles
 * Créé le 29/03/2025
 */

/* Variables globales */
:root {
    --primary-color: #2A2B2E;
    --secondary-color: #4A90E2;
    --accent-color: #ff6b6b;
    --text-color: #2C3E50;
    --white: #ffffff;
    --light-gray: #f5f7fa;
    --dark-gray: #555;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Styles pour le bandeau promo */
.mobile-promo {
    display: none;
}

.close-promo {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 1rem;
    cursor: pointer;
    padding: 5px;
    display: none;
    z-index: 10;
}

.close-promo:hover {
    color: var(--accent-color);
}

/* ===== TABLETTES (768px - 991px) ===== */
@media screen and (max-width: 991px) {
    /* Header et bannière promo */
    .promo-banner {
        padding: 0.8rem 1rem;
        flex-direction: column;
        gap: 0.5rem;
        position: relative;
    }
    
    .desktop-promo {
        display: none;
    }
    
    .mobile-promo {
        display: block;
        font-size: 0.9rem;
        text-align: center;
    }
    
    .close-promo {
        display: block;
        top: 10px;
        right: 10px;
        transform: none;
    }
    
    .promo-banner p {
        font-size: 0.9rem;
        text-align: center;
        margin-top: 0.5rem;
    }
    
    .promo-banner-tel {
        display: block;
        background: var(--gradient-accent);
        color: black;
        background-size: 200% 200%;
        text-align: center;
        padding: 12px;
        font-weight: 700;
        position: fixed;
        top: 0;
        overflow: hidden;
        z-index: 1000;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        left: 0;
        width: 100%;
        animation: gradientMove 8s ease infinite;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 3rem;
    }
    
    .promo-banner-tel p {
        margin: 0;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 0.3rem;
    }

    .promo-banner {
        display: none;
    }
    
    .promo-banner-tel {
        flex-direction: row;
        padding: 0.6rem 1rem;
        gap: 1rem;
    }

    .promo-banner-tel p {
        font-size: 0.9rem;
    }

    .promo-cta {
        font-size: 0.8rem;
        padding: 3px 10px;
    }

    .hero-section {
        height: 80vh;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        max-width: 90%;
    }
    
    /* Destinations populaires */
    .destinations-carousel {
        padding: 0;
    }
    
    .destination-card {
        min-width: 280px;
        margin-right: 15px;
    }
    
    .destination-content h3 {
        font-size: 1.3rem;
    }
    
    .destination-content p {
        font-size: 0.9rem;
    }
    
    /* Comment ça marche */
    .steps-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    /* Tarification */
    .pricing-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    /* Témoignages */
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
        overflow: visible;
    }
    
    /* Galerie d'images */
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* Notre approche */
    .approche-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Section B2B */
    .b2b-section {
        padding: 4rem 2rem;
    }
    
    .b2b-content {
        max-width: 90%;
    }
    
    /* CTA Principal */
    .cta-main {
        padding: 3rem 2rem;
    }
    
    .cta-main .cta-button {
        max-width: 80%;
        margin: 0 auto;
        display: block;
    }
    
    /* Boutons CTA côté à côté */
    .pdf-preview .cta-2-buttons,
    .cta-2-buttons {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
        text-align: center;
    }
    
    .pdf-preview .cta-2-buttons .cta-button,
    .cta-2-buttons .cta-button {
        width: 100%;
        margin: 0 auto;
    }
}

/* ===== MOBILES (jusqu'à 767px) ===== */
@media screen and (max-width: 767px) {
    /* Header et bannière promo */
    .promo-banner {
        padding: 0.6rem 0.8rem 1rem;
    }
    
    .mobile-promo {
        font-size: 0.8rem;
        line-height: 1.3;
    }
    
    .promo-banner p {
        font-size: 0.8rem;
        line-height: 1.3;
        padding-right: 20px;
    }
    
    .promo-cta {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .hero-section {
        height: 90vh;
    }
    
    .hero-content {
        padding: 0 1rem;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
        margin-bottom: 0.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        max-width: 100%;
    }
    
    .cta-button {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Citation */
    .quote {
        padding: 3rem 1rem;
    }
    
    .quote blockquote {
        font-size: 1.4rem;
    }
    
    /* Destinations populaires */
    .popular-destinations h2 {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }
    
    .destination-card {
        min-width: 260px;
        height: 380px;
    }
    
    .carousel-button {
        width: 35px;
        height: 35px;
    }
    
    /* Comment ça marche */
    .how-it-works h2 {
        font-size: 1.8rem;
    }
    
    .steps-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .step {
        padding: 1.5rem;
    }
    
    /* Tarification */
    .pricing h2 {
        font-size: 1.8rem;
    }
    
    .pricing-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .price-card {
        padding: 1.5rem;
    }

    .key-figures{
        display: none;
    }
    
    /* Témoignages */
    .testimonials h2 {
        font-size: 1.8rem;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        overflow: visible;
    }
    
    .testimonial {
        padding: 1.5rem;
    }
    
    /* Galerie d'images */
    .mood-gallery h3 {
        font-size: 1.5rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    .gallery-item {
        height: 180px;
    }
    
    /* Notre approche */
    .notre-approche h2 {
        font-size: 1.8rem;
    }
    
    .approche-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .approche-item {
        padding: 1.5rem;
    }
    
    /* Section B2B */
    .b2b-section {
        padding: 3rem 1rem;
    }
    
    .b2b-content h2 {
        font-size: 1.8rem;
    }
    
    .b2b-cta {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    /* CTA Principal */
    .cta-main {
        margin: 0 0 2.5rem;
        padding: 0;
    }
    
    .cta-main .cta-button {
        max-width: 90%;
        margin: 0 auto;
        display: block;
        font-size: 1rem;
        padding: 1rem 1.5rem;
    }

    .service-intro {
        padding: 0;
    }
    .mood-gallery {
        padding: 0;
    }
}

/* ===== PETITS MOBILES (jusqu'à 479px) ===== */
@media screen and (max-width: 479px) {
    /* Header et bannière promo */
    .promo-banner p {
        font-size: 0.75rem;
    }
    
    .mobile-promo {
        font-size: 0.75rem;
    }
    
    .hero-content h1 {
        font-size: 1.6rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    /* Citation */
    .quote blockquote {
        font-size: 1.2rem;
    }
    
    .quote cite {
        font-size: 0.9rem;
    }
    
    /* Destinations populaires */
    .destination-card {
        min-width: 240px;
        height: 350px;
    }
    
    .destination-content {
        padding: 1rem;
    }
    
    .destination-content h3 {
        font-size: 1.2rem;
    }
    
    .destination-content p {
        font-size: 0.85rem;
    }
    
    .destination-cta {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    /* Galerie d'images - n'afficher que 2 images sur mobile */
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }
    /*
    .gallery-item:nth-child(n+3) {
        display: none;
    }
    */
    
    .gallery-item {
        height: 160px;
        margin: 0 auto;
        width: 100%;
    }
    
    .gallery-item img {
        object-fit: cover;
        width: 100%;
        height: 100%;
    }
    
    /* Ajustements généraux */
    section {
        padding: 3rem 1rem;
    }
    
    h2 {
        font-size: 1.6rem !important;
    }
    
    h3 {
        font-size: 1.3rem !important;
    }
    
    p {
        font-size: 0.9rem;
    }
    
    /* CTA Principal */
    .cta-main {
        padding: 2rem 1rem;
    }
    
    .cta-main .cta-button {
        max-width: 100%;
        font-size: 0.95rem;
        padding: 0.9rem 1.2rem;
    }
}

/* Ajustements pour l'orientation paysage sur mobile */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        height: auto;
        min-height: 100vh;
        padding: 6rem 0;
    }
    
    .hero-content {
        padding-top: 2rem;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
}

/* Ajustements pour les tablettes en orientation portrait */
@media screen and (min-width: 768px) and (max-width: 991px) and (orientation: portrait) {
    .hero-section {
        height: 60vh;
    }
    
    .steps-container, 
    .pricing-container {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
}

/* Testimonials responsive */
@media screen and (max-width: 1200px) {
    .testimonials-grid {
        display: flex;
        gap: 1.5rem;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding: 1rem;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE and Edge */
    }

    .testimonials-grid::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Opera */
    }

    .testimonial {
        flex: 0 0 calc(50% - 0.75rem); /* 2 cartes avec gap de 1.5rem */
        scroll-snap-align: start;
        min-width: 0; /* Empêche le débordement */
    }

    .testimonials-nav {
        display: flex;
        justify-content: center;
        gap: 1rem;
        margin-top: 2rem;
        position: relative;
    }

    .testimonial-btn {
        background: var(--white);
        border: none;
        width: 3rem;
        height: 3rem;
        border-radius: 50%;
        cursor: pointer;
        box-shadow: var(--card-shadow);
        transition: var(--transition);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .testimonial-btn:hover {
        background: var(--secondary-color);
        color: var(--white);
    }
}

@media screen and (max-width: 768px) {
    .testimonial {
        flex: 0 0 calc(100% - 2rem); /* 1 carte avec padding */
    }
}


/* Testimonials responsive */
@media screen and (max-width: 520px) {
    .testimonials {
        padding: 0rem 0rem 4rem;
    }

    .testimonials h2 {
        font-size: 1.5rem;
        color: #2a2b2e;
    }
}