/* ========================================
   RESPONSIVE STYLES - DAFANI
   Mobile First & Expert Responsive Design
   ======================================== */

/* ========================================
   SLIDER ACTUALITÉS - RESPONSIVE
   ======================================== */

/* Desktop (3 cartes visibles) - Par défaut */
.actualites-slider .product-card {
    min-width: calc((100vw - 8rem) / 3);
    max-width: calc((100vw - 8rem) / 3);
    flex-shrink: 0;
}

/* Tablette (2 cartes visibles) - seulement en dessous de 900px */
@media (max-width: 900px) {
    .actualites-slider .product-card {
        min-width: calc((100vw - 6rem) / 2);
        max-width: calc((100vw - 6rem) / 2);
    }

    .actualites-slider-container {
        padding: 0 1.5rem;
    }

    .actualites-slider {
        gap: 1.5rem;
    }
}

/* Mobile (1 carte visible) */
@media (max-width: 640px) {
    .actualites-slider .product-card {
        min-width: calc(100vw - 4rem);
        max-width: calc(100vw - 4rem);
    }

    .actualites-slider-container {
        padding: 0 1rem;
    }

    .actualites-slider {
        gap: 1rem;
    }

    .actu-card {
        min-height: 400px;
    }

    .actu-overlay {
        height: 200px;
    }
}

/* ========================================
   EXPÉRIENCES SECTION - RESPONSIVE
   ======================================== */

/* Tablette (2 colonnes) - seulement en dessous de 900px */
@media (max-width: 900px) {
    .experiences-section .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .experiences-section .testimonial-avatar {
        width: 130px;
        height: 130px;
        border: 5px solid #FF6B00;
    }
}

/* Mobile (1 colonne) */
@media (max-width: 640px) {
    .experiences-section .products-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .experiences-section .testimonial-avatar {
        width: 140px;
        height: 140px;
        border: 6px solid #FF6B00;
    }

    .experiences-section {
        padding: 4rem 5% !important;
    }
}

/* ========================================
   NAVIGATION - RESPONSIVE
   ======================================== */

/* Mobile Menu */
.mobile-menu {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #FF8C00;
    transition: transform 0.3s;
}

.mobile-menu:hover {
    transform: scale(1.1);
}

/* Tablet & Mobile Breakpoint */
@media (max-width: 900px) {
    /* Navigation */
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 2rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        gap: 1.5rem;
        transform: none;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        color: #2D2D2D !important;
    }

    .mobile-menu {
        display: block;
    }

    .cta-nav {
        padding: 0.6rem 1.5rem;
        font-size: 0.85rem;
    }
}

/* ========================================
   HERO SECTION - RESPONSIVE
   ======================================== */

@media (max-width: 1200px) {
    .hero h1 {
        font-size: 3.5rem;
    }

    .hero p {
        font-size: 1.3rem;
    }
}

@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        padding: 8rem 5% 5rem;
        min-height: 100vh;
    }

    .hero-waves {
        height: 200px;
    }

    .hero-content {
        padding-right: 0;
        text-align: center;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .hero p {
        font-size: 1.1rem;
        max-width: 100%;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-select {
        max-width: 100%;
    }

    .hero-image {
        height: 500px;
        margin-top: 3rem;
    }

    .hero-main-shape {
        width: 450px;
        height: 450px;
        right: -20%;
    }

    .hero-secondary-shape {
        width: 400px;
        height: 400px;
    }

    .hero-person {
        width: 350px;
        height: 450px;
        right: 0;
    }

    .badge-top,
    .badge-bottom {
        display: none;
    }
}

@media (max-width: 640px) {
    nav {
        padding: 1rem 5%;
    }

    .logo-image {
        height: 50px;
    }

    .nav-links {
        padding: 1.5rem;
    }

    .hero {
        padding: 6rem 5% 4rem;
        min-height: 90vh;
    }

    .hero-waves {
        height: 150px;
    }

    .hero h1 {
        font-size: 2.2rem;
        line-height: 1.2;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .hero-select {
        padding: 0.9rem 1.2rem;
        font-size: 0.95rem;
    }

    .btn-hero {
        padding: 0.9rem 2rem;
        font-size: 0.95rem;
    }

    .hero-main-shape {
        width: 350px;
        height: 350px;
        right: -25%;
    }

    .hero-secondary-shape {
        width: 300px;
        height: 300px;
    }

    .hero-person {
        width: 280px;
        height: 380px;
    }

    .person-placeholder {
        font-size: 9rem;
    }

    .deco-triangle {
        border-left: 50px solid transparent;
        border-right: 50px solid transparent;
        border-bottom: 90px solid #FFB800;
    }
}

@media (max-width: 400px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .hero-main-shape {
        width: 300px;
        height: 300px;
    }

    .hero-person {
        width: 240px;
        height: 340px;
    }
}

/* ========================================
   PRODUCTS SECTION - RESPONSIVE
   ======================================== */

@media (max-width: 1200px) {
    .products-seamless-grid {
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .product-seamless-icon {
        max-width: 350px;
    }

    .product-seamless-name {
        font-size: 1rem;
    }

    .product-seamless-desc {
        font-size: 0.8rem;
    }

    .btn-read-more {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
    }
}

/* Tablette (2 colonnes) - seulement en dessous de 900px */
@media (max-width: 900px) {
    .products {
        padding-bottom: 5rem;
    }

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

    .section-subtitle {
        font-size: 1rem;
    }

    /* Products Seamless Grid - Tablette (2 colonnes) */
    .products-seamless-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .product-seamless-icon {
        max-width: 100%;
    }

    .product-seamless-name {
        font-size: 1.1rem;
    }

    .product-seamless-desc {
        font-size: 0.85rem;
    }

    .product-info-inline {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }

    .product-seamless-desc {
        white-space: normal;
        text-align: center;
    }

    .btn-read-more {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }

    /* Products Grid - Homepage */
    .products-grid-home {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    .product-image-home {
        height: 180px;
    }

    .product-icon-large {
        font-size: 5.5rem;
    }

    .product-name {
        font-size: 1.3rem;
    }

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

    .price-value {
        font-size: 1.3rem;
    }

    .btn-add-cart-home {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 640px) {
    .products {
        padding-bottom: 4rem;
    }

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

    .products-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .product-card {
        padding: 2rem 1.5rem;
    }

    .product-icon {
        font-size: 4rem;
    }

    .product-card h3 {
        font-size: 1.5rem;
    }

    .product-card p {
        font-size: 0.95rem;
    }

    /* Products Seamless Grid - Mobile (1 colonne) */
    .products-seamless-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding: 0 1rem;
    }

    .product-seamless-icon {
        max-width: 100%;
    }

    .product-seamless-name {
        font-size: 1.3rem;
    }

    .product-seamless-desc {
        font-size: 0.95rem;
        max-width: 100%;
    }

    .btn-read-more {
        font-size: 0.9rem;
        padding: 0.6rem 1.2rem;
    }

    /* Products Grid - Homepage Mobile */
    .products-grid-home {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .product-image-home {
        height: 200px;
    }

    .product-icon-large {
        font-size: 6rem;
    }

    .product-content-home {
        padding: 1.2rem;
    }

    .product-footer-home {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .btn-add-cart-home {
        width: 100%;
        justify-content: center;
    }

    .btn-view-all {
        padding: 0.9rem 2rem;
        font-size: 1rem;
    }
}

@media (max-width: 400px) {
    .section-title {
        font-size: 1.6rem;
    }

    .product-card {
        padding: 1.5rem 1rem;
    }
}

/* ========================================
   STORY SECTION - RESPONSIVE
   ======================================== */

@media (max-width: 900px) {
    .story {
        padding: 4rem 5%;
        padding-bottom: 8rem;
    }

    .story-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .story-text h2 {
        font-size: 2rem;
        text-align: center;
    }

    .story-text p {
        font-size: 1rem;
        text-align: center;
    }

    .story-text {
        text-align: center;
    }

    .story-image {
        height: 400px;
    }

    .story-img {
        max-width: 120%;
        transform: scale(1.2);
    }
}

@media (max-width: 640px) {
    .story {
        padding: 3rem 5%;
        padding-bottom: 6rem;
    }

    .story-text h2 {
        font-size: 1.7rem;
        margin-bottom: 1rem;
    }

    .story-text p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .btn-white {
        padding: 0.9rem 2rem;
        font-size: 1rem;
    }

    .story-image {
        height: 300px;
    }

    .story-img {
        max-width: 100%;
        transform: scale(1);
    }
}

@media (max-width: 400px) {
    .story-text h2 {
        font-size: 1.5rem;
    }

    .story-image {
        height: 250px;
    }
}

/* ========================================
   ACTUALITÉS SECTION - RESPONSIVE
   ======================================== */

@media (max-width: 900px) {
    .actualites-section {
        padding: 4rem 0 !important;
    }

    .actualites-section .section-title {
        font-size: 2rem;
        padding: 0 1.5rem;
    }
}

@media (max-width: 640px) {
    .actualites-section {
        padding: 3rem 0 !important;
    }

    .actualites-section .section-title {
        font-size: 1.8rem;
    }

    .actu-content h3 {
        font-size: 1.2rem !important;
    }

    .actu-content p {
        font-size: 0.9rem !important;
    }
}

/* ========================================
   NEWSLETTER - RESPONSIVE
   ======================================== */

@media (max-width: 900px) {
    .newsletter {
        padding: 4rem 5%;
    }

    .newsletter h2 {
        font-size: 2rem;
    }

    .newsletter p {
        font-size: 1.1rem;
    }
}

@media (max-width: 640px) {
    .newsletter {
        padding: 3rem 5%;
    }

    .newsletter h2 {
        font-size: 1.6rem;
        margin-bottom: 0.8rem;
    }

    .newsletter p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .newsletter-form {
        flex-direction: column;
        gap: 1rem;
    }

    .newsletter-form input {
        min-width: 100%;
        padding: 1rem 1.5rem;
        font-size: 0.95rem;
    }

    .newsletter-form button {
        padding: 1rem 2rem;
        font-size: 1rem;
        width: 100%;
    }
}

@media (max-width: 400px) {
    .newsletter h2 {
        font-size: 1.4rem;
    }
}

/* ========================================
   FOOTER - RESPONSIVE
   ======================================== */

@media (max-width: 1100px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 640px) {
    footer {
        padding: 8rem 5% 2rem;
    }

    .footer-content {
        margin-bottom: 3rem;
    }

    .footer-section h3 {
        font-size: 1.3rem;
        margin-bottom: 1.5rem;
    }

    .footer-section p,
    .footer-section ul li {
        font-size: 0.95rem;
    }

    .social-icons {
        justify-content: center;
    }

    .footer-bottom {
        font-size: 0.9rem;
        padding-top: 2rem;
    }
}

/* ========================================
   WAVES - RESPONSIVE
   ======================================== */

@media (max-width: 900px) {
    .products-waves,
    .products-bottom-waves,
    .story-bottom-waves,
    .actualites-waves-bottom {
        height: 200px;
    }

    .footer-waves {
        height: 200px;
    }
}

@media (max-width: 640px) {
    .products-waves,
    .products-bottom-waves,
    .story-bottom-waves,
    .actualites-waves-bottom {
        height: 150px;
    }

    .footer-waves {
        height: 150px;
    }
}

/* ========================================
   GENERAL GRID - RESPONSIVE
   ======================================== */

@media (max-width: 900px) {
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 2rem;
    }
}

@media (max-width: 640px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   BUTTONS - RESPONSIVE
   ======================================== */

@media (max-width: 640px) {
    .btn-hero,
    .btn-white,
    .btn-view-all {
        width: auto;
        display: inline-flex;
        justify-content: center;
    }
}

/* ========================================
   UTILITIES - RESPONSIVE
   ======================================== */

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

/* ========================================
   ANIMATIONS - OPTIMISATION MOBILE
   ======================================== */

@media (max-width: 640px) {
    /* Réduire les animations pour améliorer les performances mobiles */
    * {
        animation-duration: 0.5s !important;
    }

    .actualites-slider {
        animation-duration: 40s !important;
    }
}

/* ========================================
   LANDSCAPE MOBILE - RESPONSIVE
   ======================================== */

@media (max-width: 900px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 5rem 5% 3rem;
    }

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

    .hero-waves {
        height: 120px;
    }
}

/* ========================================
   ACCESSIBILITY - TOUCH TARGETS
   ======================================== */

@media (max-width: 640px) {
    /* Augmenter la taille des zones de clic pour mobile */
    nav a,
    .btn-hero,
    .btn-white,
    .btn-link,
    .btn-read-more,
    .social-icon {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

/* ========================================
   STORY CONTENT GRID - RESPONSIVE
   ======================================== */

@media (max-width: 968px) {
    .story-content {
        grid-template-columns: 1fr !important;
        gap: 2rem;
    }

    .story-image {
        height: auto !important;
        min-height: 400px;
    }

    .story-img {
        transform: scale(1) !important;
        max-width: 100% !important;
    }

    .story-img-large {
        transform: scale(1) !important;
    }
}

/* ========================================
   IMAGES DÉCORATIVES - RESPONSIVE
   ======================================== */

/* Tablette - Réduire la taille des images décoratives */
@media (max-width: 900px) {
    .deco-citron-story,
    .deco-ananas-products,
    .deco-orange-actualites,
    .deco-mangue-story,
    .deco-orange-actualites-marque,
    .deco-citron-contact,
    .deco-citron-map,
    .deco-ananas-top,
    .deco-ananas-middle,
    .deco-citron,
    .deco-orange,
    .deco-orange-info,
    .deco-citron-info {
        width: 300px !important;
        opacity: 0.6 !important;
    }
}

/* Mobile - Masquer les images décoratives */
@media (max-width: 640px) {
    .deco-citron-story,
    .deco-ananas-products,
    .deco-orange-actualites,
    .deco-mangue-story,
    .deco-orange-actualites-marque,
    .deco-citron-contact,
    .deco-citron-map,
    .deco-ananas-top,
    .deco-ananas-middle,
    .deco-citron,
    .deco-orange,
    .deco-orange-info,
    .deco-citron-info {
        display: none !important;
    }
}

/* ========================================
   CONTACT PAGE - RESPONSIVE
   ======================================== */

@media (max-width: 968px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-form-wrapper,
    .contact-info-wrapper {
        padding: 1.5rem;
    }

    .contact-form-wrapper h3,
    .contact-info-wrapper h3 {
        font-size: 1.5rem;
    }

    .map-controls {
        flex-direction: column;
        align-items: flex-start;
    }

    .city-filter {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }

    .city-filter select {
        width: 100%;
    }

    .btn-reset {
        width: 100%;
    }

    #map {
        height: 350px;
    }
}

@media (max-width: 640px) {
    .contact-form-wrapper,
    .contact-info-wrapper {
        padding: 1rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.8rem 1rem;
        font-size: 0.95rem;
    }

    .info-card-header {
        margin-top: 1.5rem;
    }

    .info-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .info-card h4 {
        font-size: 1.1rem;
    }

    .info-card p {
        margin-left: 56px;
        font-size: 0.9rem;
    }

    #map {
        height: 300px;
    }
}

/* ========================================
   EXPERIENCES PAGE - RESPONSIVE
   ======================================== */

@media (max-width: 968px) {
    .experiences-section .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .experiences-section .product-card {
        padding: 1.5rem;
    }

    .experiences-section .testimonial-avatar {
        width: 100px;
        height: 100px;
        border-width: 4px;
    }

    .review-form {
        padding: 1.5rem;
        margin: 2rem auto 0;
    }

    .review-form h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 640px) {
    .experiences-section .products-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .experiences-section .product-card {
        padding: 2rem 1.5rem;
    }

    .experiences-section .testimonial-avatar {
        width: 120px;
        height: 120px;
        border-width: 5px;
    }

    .review-form {
        padding: 1.2rem;
    }

    .rating-input {
        font-size: 1.5rem;
        justify-content: center;
    }
}

/* ========================================
   MARQUE PAGE - RESPONSIVE
   ======================================== */

@media (max-width: 968px) {
    .timeline-year {
        font-size: 2.5rem;
    }

    .value-card {
        min-height: 280px;
        padding: 2.5rem 2rem;
        border-radius: 50% 30% 40% 60% / 40% 50% 30% 60%;
    }

    .value-icon {
        font-size: 3rem;
    }

    .value-card h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 640px) {
    .values-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .value-card {
        min-height: 250px;
        padding: 2rem 1.5rem;
        border-radius: 40% 60% 30% 70% / 60% 30% 70% 40%;
    }

    .timeline-year {
        font-size: 2rem;
    }
}

/* ========================================
   ACTUALITES PAGE - RESPONSIVE
   ======================================== */

@media (max-width: 968px) {
    .story-actualites .story-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .story-actualites h1 {
        font-size: 2.5rem !important;
    }
}

@media (max-width: 640px) {
    .story-actualites .story-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .story-actualites h1 {
        font-size: 2rem !important;
    }

    .news-featured {
        grid-template-columns: 1fr;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   DETAIL PRODUIT PAGE - RESPONSIVE
   ======================================== */

@media (max-width: 900px) {
    .product-detail-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .product-main-image {
        transform: scale(1.5);
        max-height: 600px;
    }

    .product-title {
        font-size: 2.5rem;
    }

    .product-info {
        padding: 1rem;
    }
}

@media (max-width: 640px) {
    .product-detail-section {
        padding: 6rem 5% 3rem;
    }

    .product-main-image {
        transform: scale(1.2);
        max-height: 400px;
    }

    .product-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .product-info h2 {
        font-size: 1.3rem;
    }

    .product-features li {
        padding: 0.7rem 0;
        font-size: 0.95rem;
    }

    .similar-products h2 {
        font-size: 1.8rem;
    }
}

/* ========================================
   HERO RESPONSIVE IMPROVEMENTS
   ======================================== */

@media (max-width: 640px) {
    .hero.hero-contact .hero-content {
        padding-top: 4rem;
    }

    .hero.hero-contact .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero.hero-contact .hero-content h1 span {
        font-size: 1.8rem;
    }
}

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

@media print {
    nav,
    .mobile-menu,
    .hero-waves,
    .products-waves,
    .products-bottom-waves,
    .story-bottom-waves,
    .actualites-waves-bottom,
    .footer-waves,
    .newsletter,
    footer {
        display: none;
    }

    .hero,
    .products,
    .story,
    .actualites-section,
    .experiences-section {
        page-break-inside: avoid;
    }
}
