/* ==========================================================================
   CSS Responsive - Hébergement Touristique
   Adaptation mobile, tablette et desktop
   ========================================================================== */

/* Breakpoints */
/* Mobile: 320px - 768px */
/* Tablette: 768px - 1024px */
/* Desktop: 1024px+ */

/* ==========================================================================
   TABLETTE (768px - 1024px)
   ========================================================================== */

@media screen and (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .section {
        padding: 40px 0;
    }
    
    .content-section {
        padding: 2rem;
    }
    
    .grid-4 {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

/* ==========================================================================
   MOBILE (max-width: 768px)
   ========================================================================== */

@media screen and (max-width: 768px) {
    /* Navigation mobile */
    .nav-menu {
        position: fixed;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-white);
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow-medium);
        transform: translateY(-100%);
        transition: var(--transition);
        z-index: 999;
    }
    
    .nav-menu.active {
        transform: translateY(0);
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .language-selector {
        order: -1;
        margin-bottom: 1rem;
    }
    
    /* Hero responsive */
    .hero {
        height: 70vh;
        padding: 0 20px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }
    
    /* Typographie mobile */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.25rem; }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    /* Layout mobile */
    .section {
        padding: 30px 0;
    }
    
    .content-section {
        margin: 1rem 0;
        padding: 1.5rem;
    }
    
    /* Grilles responsive */
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Cards mobile */
    .card-image {
        height: 180px;
    }
    
    .card-content {
        padding: 1rem;
    }
    
    /* Footer mobile */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .social-links {
        justify-content: center;
    }
    
    /* Boutons mobile */
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    /* Formulaires mobile */
    .form-input,
    .form-textarea {
        padding: 0.75rem;
    }
    
    /* Header mobile */
    .header-content {
        padding: 0.75rem 0;
    }
    
    .logo {
        font-size: 1.5rem;
    }
}

/* ==========================================================================
   TRÈS PETIT MOBILE (max-width: 480px)
   ========================================================================== */

@media screen and (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .content-section {
        padding: 1rem;
    }
    
    .section-title h2 {
        font-size: 1.75rem;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
    
    .card-image {
        height: 150px;
    }
    
    .footer {
        padding: 2rem 0 1rem;
    }
}

/* ==========================================================================
   GRAND ÉCRAN (min-width: 1400px)
   ========================================================================== */

@media screen and (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-content h1 {
        font-size: 4rem;
    }
    
    .section {
        padding: 80px 0;
    }
    
    .content-section {
        padding: 4rem;
    }
}

/* ==========================================================================
   ORIENTATION PAYSAGE MOBILE
   ========================================================================== */

@media screen and (max-height: 500px) and (orientation: landscape) {
    .hero {
        height: 100vh;
    }
    
    .hero-content h1 {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-content p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
}

/* ==========================================================================
   ACCESSIBILITÉ ET PRÉFÉRENCES UTILISATEUR
   ========================================================================== */

/* Respect des préférences de mouvement réduit */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Mode sombre (si supporté par le navigateur) */
@media (prefers-color-scheme: dark) {
    :root {
        --color-beige: #1a1a1a;
        --color-white: #2d2d2d;
        --color-neutral-light: #3a3a3a;
        --color-neutral-dark: #e0e0e0;
        --color-neutral: #b0b0b0;
    }
    
    .header {
        background: rgba(45, 45, 45, 0.95);
    }
    
    .hero {
        background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
                    url('../images/hero-landscape.jpg') center/cover no-repeat;
    }
}

/* ==========================================================================
   OPTIMISATIONS TACTILES
   ========================================================================== */

/* Amélioration des zones tactiles */
@media (pointer: coarse) {
    .btn,
    .nav-menu a,
    .language-btn,
    .language-dropdown a {
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .social-links a {
        width: 48px;
        height: 48px;
        line-height: 48px;
    }
}

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */

@media print {
    .header,
    .footer,
    .mobile-menu-btn,
    .language-selector,
    .btn {
        display: none !important;
    }
    
    .hero {
        height: auto;
        background: none;
        color: var(--color-neutral-dark);
        padding: 2rem 0;
    }
    
    .hero-content h1 {
        color: var(--color-primary);
        text-shadow: none;
    }
    
    .content-section {
        box-shadow: none;
        border: 1px solid var(--color-neutral-light);
        margin: 1rem 0;
        page-break-inside: avoid;
    }
    
    a {
        text-decoration: underline;
    }
    
    .grid {
        display: block;
    }
    
    .card {
        margin-bottom: 1rem;
        page-break-inside: avoid;
    }
}

