/* CSS Optimisé pour écrans mobiles 350x616px */

/* Reset et styles généraux */
@media screen and (max-width: 480px) {
    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }
    
    body {
        font-size: 14px;
        line-height: 1.4;
        padding-top: 60px; /* Espace pour l'en-tête fixe */
    }
    
    .container {
        padding: 0 8px;
        width: 100%;
    }

    h1 {
        font-size: 1.4rem;
        line-height: 1.3;
    }

    h2 {
        font-size: 1.3rem;
        line-height: 1.3;
    }

    h3 {
        font-size: 1.1rem;
        line-height: 1.3;
    }

    p {
        font-size: 0.85rem;
        margin-bottom: 0.8rem;
    }

    section {
        padding: 20px 0 !important;
        scroll-margin-top: 70px;
    }

    /* Header */
    .header {
        box-shadow: 0 1px 5px rgba(0,0,0,0.1);
        position: fixed !important;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1000;
        background-color: white;
        height: 60px; /* Hauteur fixe */
    }

    .header-content {
        padding: 10px 0;
        height: 60px;
        display: flex;
        align-items: center;
    }

    .logo-text {
        font-size: 1.1rem;
    }

    .mobile-menu div {
        width: 20px;
        height: 2px;
        margin: 3px 0;
    }

    .nav.active {
        top: 60px; /* Correspondre à la hauteur du header */
    }

    .nav ul li {
        margin: 5px 15px;
    }

    .nav ul li a {
        font-size: 0.9rem;
    }

    /* Hero Section */
    .hero {
        padding: 25px 0 20px !important;
        background: linear-gradient(135deg, var(--tertiary) 0%, #f2e1c9 100%);
        margin-top: 0 !important;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .hero-text h1 {
        font-size: 1.3rem !important;
        margin-bottom: 8px;
    }

    .hero-text p {
        font-size: 0.85rem !important;
        margin-bottom: 12px;
    }

    .hero-buttons {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    .btn {
        padding: 8px 12px !important;
        font-size: 0.8rem !important;
        width: 100%;
        margin-bottom: 8px;
        text-align: center;
    }

    .hero-image {
        margin-top: 15px !important;
    }

    .hero-image img {
        max-height: 130px !important;
        object-fit: cover;
        width: 100%;
    }

    /* Section Titles */
    .section-title {
        margin-bottom: 15px;
    }

    .section-title h2 {
        font-size: 1.2rem !important;
    }

    .section-title p {
        font-size: 0.75rem;
        letter-spacing: 1px;
    }

    .section-title::after {
        bottom: -8px;
        width: 60px;
        height: 2px;
    }

    /* About Section */
    .about-content {
        gap: 20px;
    }

    .about-image img {
        max-height: 120px !important;
        object-fit: cover;
    }

    .about-text p {
        font-size: 0.85rem;
        margin-bottom: 8px;
    }

    /* Services Section */
    .services-bg {
        padding: 20px 0;
    }

    .services-container {
        gap: 15px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 5px;
        display: grid;
        grid-template-columns: 1fr;
    }

    .service-card {
        margin-bottom: 15px;
        box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
    }

    .service-card:hover {
        transform: translateY(-5px);
    }

    .service-card img {
        height: 120px !important;
    }

    .service-content {
        padding: 15px 12px;
    }

    .service-content h3 {
        font-size: 1.1rem;
        margin-bottom: 8px;
    }

    .service-content ul {
        padding-left: 15px;
        margin-bottom: 12px;
    }

    .service-content ul li {
        margin-bottom: 4px;
        font-size: 0.8rem;
    }

    .service-price {
        font-size: 1.3rem;
        margin-bottom: 12px;
    }

    .service-price small {
        font-size: 0.8rem;
    }

    /* Features Section */
    .features-container {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 12px;
        overflow-x: auto;
        padding: 5px 0 15px;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
    }

    .feature-card {
        flex: 0 0 190px !important;
        padding: 12px 10px;
        min-height: 180px;
        scroll-snap-align: start;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }

    .feature-icon {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
        margin: 0 auto 8px;
    }

    .feature-card h3 {
        font-size: 0.95rem;
        margin-bottom: 6px;
    }

    .feature-card p {
        font-size: 0.75rem;
        line-height: 1.3;
    }

    /* Testimonials Section */
    .testimonials-bg {
        padding: 20px 0;
    }

    .testimonials-container {
        gap: 15px;
    }

    .testimonial-card {
        padding: 15px 12px 12px;
    }

    .testimonial-card::before {
        font-size: 3rem;
        top: 5px;
        left: 5px;
    }

    .testimonial-content p {
        font-size: 0.8rem;
        margin-bottom: 10px;
    }

    .testimonial-author img {
        width: 35px;
        height: 35px;
    }

    .author-info h4 {
        font-size: 0.9rem;
    }

    .author-info p {
        font-size: 0.75rem;
    }

    /* FAQ Section */
    .faq-container {
        max-width: 100%;
    }

    .faq-item {
        margin-bottom: 8px;
    }

    .faq-question {
        padding: 10px 12px;
        font-size: 0.85rem;
    }

    .faq-item.active .faq-answer {
        padding: 10px 12px;
        max-height: 150px;
    }

    .faq-answer p {
        font-size: 0.8rem;
    }

    /* Contact Section */
    .contact-bg {
        padding: 20px 0;
    }

    .contact-container {
        gap: 20px;
    }

    .contact-info img {
        max-height: 110px;
        object-fit: cover;
    }

    .contact-form {
        padding: 15px 12px;
    }

    .contact-form h3 {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }

    .form-group {
        margin-bottom: 8px;
    }

    .form-group label {
        font-size: 0.85rem;
        margin-bottom: 4px;
    }

    .form-control {
        padding: 8px;
        font-size: 0.85rem;
    }

    .form-check {
        margin-bottom: 8px;
    }

    .form-check input {
        margin-top: 3px;
        margin-right: 6px;
    }

    .form-check label {
        font-size: 0.75rem;
    }

    /* Footer */
    .footer {
        padding: 30px 0 15px;
        margin-top: 30px;
    }

    .footer-grid {
        gap: 20px;
    }

    .footer .logo {
        margin-bottom: 10px;
    }

    .company-description {
        font-size: 0.8rem;
        margin-bottom: 10px;
    }

    .footer h3 {
        font-size: 1rem;
        margin-bottom: 10px;
    }

    .footer h3::after {
        bottom: -4px;
        width: 40px;
        height: 2px;
    }

    .footer ul li {
        margin-bottom: 6px;
    }

    .footer ul li a {
        font-size: 0.8rem;
    }

    .footer-contact p {
        margin-bottom: 6px;
        font-size: 0.8rem;
    }

    .footer-bottom {
        margin-top: 20px;
        padding-top: 15px;
        font-size: 0.7rem;
    }
    
    /* Cookie Popup */
    #cookie-popup {
        padding: 15px;
        max-width: 300px;
        bottom: 10px;
    }
    
    #cookie-popup h3 {
        font-size: 1rem;
    }
    
    #cookie-popup p {
        font-size: 0.8rem;
        margin-bottom: 15px;
    }
    
    #cookie-accept {
        padding: 8px 15px;
        font-size: 0.8rem;
    }
}

/* Ajustement pour les écrans courts (hauteur 616px) */
@media screen and (max-height: 616px) {
    section {
        padding: 15px 0 !important;
    }
    
    .hero {
        padding: 20px 0 15px !important;
    }
    
    .hero-image img, 
    .about-image img,
    .contact-info img {
        max-height: 100px !important;
    }
    
    .service-card img {
        height: 100px !important;
    }
    
    .feature-card {
        min-height: 160px;
    }
    
    .feature-icon {
        margin-bottom: 5px;
    }
    
    .feature-card h3 {
        margin-bottom: 5px;
    }
    
    .footer {
        padding: 25px 0 10px;
        margin-top: 20px;
    }
}

/* Ajustements spécifiques pour écrans 350px */
@media screen and (max-width: 350px) {
    .container {
        padding: 0 6px;
    }
    
    .hero-text h1 {
        font-size: 1.2rem !important;
    }
    
    .feature-card {
        flex: 0 0 170px !important;
    }
} 