/* ========================================
   RESPONSIVE HOME PAGE - 5 BREAKPOINTS
   Mobile First Architecture
   ======================================== */

/* ========================================
   BREAKPOINT 1: Very Small Phones (≤375px)
   iPhone SE, Galaxy Fold
   ======================================== */
@media (max-width: 375px) {
    /* Navigation */
    .nav__logo-img {
        max-width: 35px;
        height: auto;
    }
    
    .logo-text {
        font-size: 0.875rem;
    }
    
    /* Nav actions/cart supprimés — gérés par home-redesign.css */

    /* Hero */
    
    /* Hero Section */
    .hero {
        min-height: 500px;
        padding: 4rem 0 3rem;
    }
    
    .hero__content h1 {
        font-size: 1.75rem;
        line-height: 1.2;
        margin-bottom: 0.75rem;
    }
    
    .hero__content p {
        font-size: 0.9375rem;
        margin-bottom: 1.25rem;
    }
    
    .hero__buttons {
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
    }
    
    .hero__buttons .btn {
        width: 100%;
        justify-content: center;
        padding: 0.875rem 1rem;
        font-size: 0.9375rem;
    }
    
    /* Services Grid */
    .services__grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .service-card {
        padding: 1.25rem;
    }
    
    .service-card__icon {
        font-size: 2rem;
        width: 60px;
        height: 60px;
    }
    
    .service-card__title {
        font-size: 1.125rem;
    }
    
    .service-card__description {
        font-size: 0.875rem;
    }
    
    /* Stats */
    .stats__grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1.25rem;
    }
    
    .stat-card__number {
        font-size: 2rem;
    }
    
    .stat-card__label {
        font-size: 0.875rem;
    }
    
    /* Pricing */
    .pricing__grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .pricing-card {
        padding: 1.5rem;
    }
    
    .pricing-card__price {
        font-size: 2rem;
    }
    
    /* Gallery */
    .gallery__grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    /* Testimonials */
    .testimonial-card {
        padding: 1.25rem;
    }
    
    /* Contact Form */
    .contact__form {
        padding: 1.25rem;
    }
    
    .form-group input,
    .form-group textarea {
        font-size: 0.9375rem;
        padding: 0.75rem;
    }
    
    /* Footer */
    .footer__grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Page-level contact overrides to ensure correct cascade */
.contact { background: var(--lux-bg); padding: 3rem 0; }
.contact .section__title { text-align: center !important; color: var(--lux-surface); margin-bottom: 0.5rem; }
.contact__description { text-align: center; color: var(--lux-muted); margin-bottom: 1.5rem; }

.contact__details {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2.25rem;
    padding: 1rem 2rem;
}

.contact__item {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 240px;
    max-width: 360px;
    color: var(--lux-contrast);
}

.contact__icon {
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.06);
    border-radius: 12px;
    color: var(--lux-muted) !important;
    font-size: 1.25rem;
}

.contact__item h4 { margin: 0; font-size: 1rem; color: var(--lux-surface); }
.contact__item p { margin: 0; color: var(--lux-muted); font-size: 0.95rem; }

.contact__social { text-align: center; margin-top: 1.25rem; }
.contact__social h4 { color: var(--lux-surface); margin-bottom: 0.5rem; }
.social-links a { display: inline-flex; align-items: center; justify-content: center; width:44px; height:44px; margin: 0 .4rem; background: rgba(255,255,255,0.04); border-radius: 8px; color: var(--lux-muted) !important; }

/* also color any <i> used for icons */
.contact__icon i,
.social-links a i { color: var(--lux-muted) !important; }

@media (max-width: 1000px) {
    .contact__details { flex-direction: column; align-items: stretch; }
    .contact__item { width: 100%; }
}

/* Strong ID-scoped overrides to ensure contact colors and title centering */
#contact .section__title { text-align: center !important; color: var(--lux-surface) !important; }
#contact .contact__item h4 { color: #3f3f3f !important; }
#contact .contact__item p { color: #6b6b6b !important; }
#contact .contact__icon, #contact .social-links a { color: #333333 !important; }
#contact .contact__icon i, #contact .social-links a i { color: #333333 !important; }



/* ========================================
   BREAKPOINT 2: Small Phones (376px - 640px)
   iPhone 12/13/14, Most Android Phones
   ======================================== */
@media (min-width: 376px) and (max-width: 640px) {
    /* Container */
    .container {
        padding: 0 1.25rem;
        max-width: 100%;
    }
    
    /* Navigation — gérée par home-redesign.css (.header--home) */
    .nav__logo-img {
        max-width: 40px;
    }
    
    .logo-text {
        font-size: 1rem;
    }
    
    /* Hero */
    .hero {
        min-height: 550px;
        padding: 5rem 0 3rem;
    }
    
    .hero__content {
        text-align: center;
    }
    
    .hero__content h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .hero__content p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero__buttons {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }
    
    .hero__buttons .btn {
        width: 100%;
        padding: 1rem 1.5rem;
    }
    
    /* Services */
    .services__grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .service-card {
        padding: 1.5rem;
        text-align: center;
    }
    
    .service-card__icon {
        font-size: 2.5rem;
        width: 70px;
        height: 70px;
        margin: 0 auto 1rem;
    }
    
    /* Stats */
    .stats__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1.5rem;
    }
    
    .stat-card__number {
        font-size: 2.25rem;
    }
    
    /* Pricing */
    .pricing__grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .pricing-card {
        padding: 1.75rem;
    }
    
    /* Gallery */
    .gallery__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.875rem;
    }
    
    .gallery__item {
        aspect-ratio: 1;
    }
    
    /* Testimonials */
    .testimonials__grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .testimonial-card {
        padding: 1.5rem;
    }
    
    /* Contact */
    .contact__container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact__form {
        padding: 1.5rem;
    }
    
    /* Footer */
    .footer__grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer__social {
        justify-content: center;
    }
}

/* ========================================
   BREAKPOINT 3: Large Phones / Small Tablets (641px - 768px)
   iPhone Plus, iPad Mini Portrait
   ======================================== */
@media (min-width: 641px) and (max-width: 768px) {
    /* Container */
    .container {
        padding: 0 2rem;
        max-width: 100%;
    }
    
    /* Navigation — gérée par home-redesign.css (.header--home) */
    .nav {
        padding: 1rem 2rem;
    }
    
    /* Hero */
    .hero {
        min-height: 600px;
        padding: 6rem 0 4rem;
    }
    
    .hero__content h1 {
        font-size: 2.5rem;
        margin-bottom: 1.25rem;
    }
    
    .hero__content p {
        font-size: 1.125rem;
        margin-bottom: 2rem;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero__buttons {
        flex-direction: row;
        gap: 1rem;
        justify-content: center;
    }

    /* Quick override to ensure services stack when using .services-stack */
    .services__grid.services-stack {
        --stack-overlap: 44px !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
    }

    .services__grid.services-stack .service-card {
        display: block !important;
        width: 100% !important;
        margin-top: calc(var(--stack-overlap) * -1) !important;
    }

    .services__grid.services-stack .service-card:first-child {
        margin-top: 0 !important;
    }
    
    .hero__buttons .btn {
        padding: 1rem 2rem;
    }
    
    /* Services */
    .services__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .service-card {
        padding: 2rem;
    }
    
    .service-card__icon {
        font-size: 3rem;
        width: 80px;
        height: 80px;
    }
    
    /* Stats */
    .stats__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
    
    .stat-card {
        padding: 2rem;
    }
    
    .stat-card__number {
        font-size: 2.5rem;
    }
    
    /* Pricing */
    .pricing__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .pricing-card {
        padding: 2rem;
    }
    
    /* Gallery */
    .gallery__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    
    /* Testimonials */
    .testimonials__grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Contact */
    .contact__container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .contact__info {
        text-align: center;
    }
    
    .contact__form {
        padding: 2rem;
    }
    
    /* Footer */
    .footer__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

/* ========================================
   BREAKPOINT 4: Tablets (769px - 1024px)
   iPad Portrait, Android Tablets
   ======================================== */
@media (min-width: 769px) and (max-width: 1024px) {
    /* Container */
    .container {
        padding: 0 2.5rem;
        max-width: 960px;
        margin: 0 auto;
    }
    
    /* Navigation — gérée par home-redesign.css (.header--home) */
    .nav {
        padding: 1rem 2.5rem;
    }
    
    /* Hero */
    .hero {
        min-height: 650px;
        padding: 8rem 0 5rem;
    }
    
    .hero__content {
        max-width: 700px;
        margin: 0 auto;
        text-align: center;
    }
    
    .hero__content h1 {
        font-size: 3rem;
        margin-bottom: 1.5rem;
    }
    
    .hero__content p {
        font-size: 1.25rem;
        margin-bottom: 2.5rem;
    }
    
    .hero__buttons {
        flex-direction: row;
        gap: 1.5rem;
        justify-content: center;
    }
    
    /* Services */
    .services__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
    
    .service-card {
        padding: 2rem;
    }
    
    .service-card__icon {
        font-size: 3rem;
        width: 90px;
        height: 90px;
    }
    
    /* Stats */
    .stats__grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }
    
    .stat-card {
        padding: 2rem;
    }
    
    .stat-card__number {
        font-size: 2.75rem;
    }
    
    /* Pricing */
    .pricing__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
    
    .pricing-card {
        padding: 2rem;
    }
    
    /* Gallery */
    .gallery__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }
    
    /* Testimonials */
    .testimonials__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    /* Contact */
    .contact__container {
        grid-template-columns: 1fr 1.5fr;
        gap: 3rem;
        align-items: start;
    }
    
    .contact__form {
        padding: 2.5rem;
    }
    
    /* Footer */
    .footer__grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }
}

/* ========================================
   BREAKPOINT 5: Desktop (>1024px)
   Laptops, Desktop Screens
   ======================================== */
@media (min-width: 1025px) {
    /* Container */
    .container {
        padding: 0 3rem;
        max-width: 1200px;
        margin: 0 auto;
    }
    
    /* Navigation — gérée par home-redesign.css (.header--home) */
    .nav {
        padding: 1rem 3rem;
    }
    
    /* Hero */
    .hero {
        min-height: 700px;
        padding: 10rem 0 6rem;
    }
    
    .hero__content {
        max-width: 800px;
        margin: 0 auto;
        text-align: center;
    }
    
    .hero__content h1 {
        font-size: 3.5rem;
        margin-bottom: 1.75rem;
        line-height: 1.2;
    }
    
    .hero__content p {
        font-size: 1.375rem;
        margin-bottom: 3rem;
        line-height: 1.6;
    }
    
    .hero__buttons {
        flex-direction: row;
        gap: 2rem;
        justify-content: center;
    }
    
    .hero__buttons .btn {
        padding: 1.125rem 2.5rem;
        font-size: 1.0625rem;
    }
    
    /* Services */
    .services {
        padding: 5rem 0;
    }
    
    .services__grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }
    
    .service-card {
        padding: 2.5rem 2rem;
        transition: transform 0.3s, box-shadow 0.3s;
    }
    
    .service-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    }
    
    .service-card__icon {
        font-size: 3.5rem;
        width: 100px;
        height: 100px;
    }
    
    /* Stats */
    .stats__grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }
    
    .stat-card {
        padding: 2.5rem;
    }
    
    .stat-card__number {
        font-size: 3rem;
    }
    
    .stat-card__label {
        font-size: 1rem;
    }
    
    /* Pricing */
    .pricing {
        padding: 5rem 0;
    }
    
    .pricing__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
    }
    
    .pricing-card {
        padding: 2.5rem;
        transition: transform 0.3s, box-shadow 0.3s;
    }
    
    .pricing-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    }
    
    .pricing-card.featured {
        transform: scale(1.05);
    }
    
    .pricing-card.featured:hover {
        transform: scale(1.05) translateY(-8px);
    }
    
    /* Gallery */
    .gallery {
        padding: 5rem 0;
    }
    
    .gallery__grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }
    
    .gallery__item {
        overflow: hidden;
        border-radius: 12px;
    }
    
    .gallery__item img {
        transition: transform 0.4s;
    }
    
    .gallery__item:hover img {
        transform: scale(1.1);
    }
    
    /* Testimonials */
    .testimonials {
        padding: 5rem 0;
    }
    
    .testimonials__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
    }
    
    .testimonial-card {
        padding: 2.5rem;
        transition: transform 0.3s, box-shadow 0.3s;
    }
    
    .testimonial-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
    }
    
    /* Contact */
    .contact {
        padding: 5rem 0;
    }
    
    .contact__container {
        grid-template-columns: 1fr 1.75fr;
        gap: 4rem;
        align-items: start;
    }
    
    .contact__form {
        padding: 3rem;
    }
    
    /* Footer */
    .footer {
        padding: 4rem 0 2rem;
    }
    
    .footer__grid {
        grid-template-columns: 2fr repeat(3, 1fr);
        gap: 3rem;
    }
}

/* ========================================
   LANDSCAPE ORIENTATION FIXES
   Handle horizontal orientation on phones/tablets
   ======================================== */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: 400px;
        padding: 3rem 0 2rem;
    }
    
    .hero__content h1 {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }
    
    .hero__content p {
        font-size: 0.9375rem;
        margin-bottom: 1rem;
    }
    
    .hero__buttons {
        flex-direction: row;
        gap: 1rem;
    }
    
    .hero__buttons .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9375rem;
    }
}

/* ========================================
   UTILITY CLASSES FOR ALL BREAKPOINTS
   ======================================== */

/* Hide on mobile */
@media (max-width: 768px) {
    .hide-mobile {
        display: none !important;
    }
}

/* Hide on tablet */
@media (min-width: 769px) and (max-width: 1024px) {
    .hide-tablet {
        display: none !important;
    }
}

/* Hide on desktop */
@media (min-width: 1025px) {
    .hide-desktop {
        display: none !important;
    }
}

/* Show only on mobile */
@media (min-width: 769px) {
    .show-mobile-only {
        display: none !important;
    }
}

/* Touch optimization for mobile/tablet */
@media (hover: none) and (pointer: coarse) {
    .btn,
    .service-card,
    .pricing-card {
        -webkit-tap-highlight-color: transparent;
    }
    
    /* Larger tap targets */
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
}

/* ========================================
   HOME - LUXURY THEME OVERRIDES
   Loaded last on the home page to ensure precedence
   Palette: gris / noir / blanc
   ======================================== */

:root {
    --lux-bg: #2f2b28; /* dark taupe */
    --lux-surface: #ffffff;
    --lux-muted: #9da3a8;
    --lux-contrast: #f6f7f8;
    --lux-border: rgba(0,0,0,0.06);
}

/* Hero */
.hero {
    background-color: var(--lux-bg) !important;
    color: var(--lux-contrast) !important;
}

.hero__overlay {
    background: linear-gradient(180deg, rgba(15,17,18,0.55), rgba(15,17,18,0.65)) !important;
}

.hero__title {
    color: var(--lux-contrast) !important;
    font-weight: 700 !important;
    letter-spacing: 0.6px !important;
    text-shadow: 0 6px 18px rgba(0,0,0,0.45) !important;
}

.hero__description { color: var(--lux-muted) !important; }

/* Buttons */
.btn-primary { background: #0b0c0d !important; color: #fff !important; border-radius: 10px !important; }
.btn-secondary { background: transparent !important; color: var(--lux-contrast) !important; border: 1px solid rgba(255,255,255,0.08) !important; }

/* Section header */
.section__header { text-align:center !important; }
.section__subtitle { color: var(--lux-muted) !important; text-transform:uppercase; letter-spacing:1px; font-weight:600; }

/* Services cards */
.service-card { background: linear-gradient(180deg, var(--lux-surface), #f8f9fa) !important; border-radius: 12px !important; box-shadow: 0 12px 36px rgba(9,10,11,0.06) !important; border:1px solid var(--lux-border) !important; }
.service-card__icon { background:#111 !important; color:#fff !important; width:64px !important; height:64px !important; border-radius:50% !important; display:flex !important; align-items:center; justify-content:center; }
.service-card__icon .icon { width: 34px; height: 34px; }
.service-card__title { color:#111 !important; font-weight:700 !important; }
.service-card__description { color:#6b7176 !important; }

/* Product card subtle tweak */
.product-card { border-radius:12px !important; border:1px solid var(--lux-border) !important; }

/* Divider */
.section-divider { height:1px; background: linear-gradient(90deg, rgba(0,0,0,0.04), rgba(0,0,0,0.02)); margin:2.5rem 0; }

/* Mobile adjustments for luxury look */
@media (max-width: 640px) {
    .hero__title { font-size: 1.75rem !important; }
    .service-card { padding: 1.25rem !important; border-radius: 10px !important; }
    .hero__buttons .btn { width: 100% !important; }
}

/* NAV - Contact link styling */
.nav__contact-link {
    display: inline-block;
    padding: 0.45rem 0.9rem;
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
    border: 1px solid rgba(255,255,255,0.06);
    color: var(--lux-contrast) !important;
    font-weight: 600;
}

/* Gallery: support images and looping short videos */
.gallery__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.gallery-card { border-radius: 12px; overflow: hidden; position: relative; }
.gallery-card__image img,
.gallery-card__video {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
}

.gallery-card__video {
    background: #000;
}

.gallery-card__overlay {
    position: absolute; inset: 0; display:flex; align-items:center; justify-content:center; color: rgba(255,255,255,0.9); font-size: 1.25rem; pointer-events:none;
}

@media (max-width: 900px) {
    .gallery__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .gallery__grid { grid-template-columns: 1fr; }
    .gallery-card__image img,
    .gallery-card__video { height: 200px; }
}

/* Helper: make video autoplay/loop muted via markup; ensure mobile plays inline */
video.gallery-loop { width:100%; height:100%; object-fit:cover; display:block; }

/* Desktop override: render services as grid on large screens */
@media (min-width: 1001px) {
    .services__grid.services-stack {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.5rem !important;
        --stack-overlap: 0 !important;
    }

    .services__grid.services-stack .service-card {
        display: block !important;
        width: auto !important;
        margin-top: 0 !important;
        padding: 1.25rem !important;
        min-height: 120px !important;
        box-shadow: 0 10px 28px rgba(0,0,0,0.06) !important;
    }
}


