/* ============================================
   FAMILY CUSTOM - Optimisations Mobile
   ============================================ */

/* ===== VARIABLES MOBILE ===== */
:root {
    --mobile-padding: 1rem;
    --mobile-header-height: 60px;
}

/* ===== BLOQUER LE SCROLL QUAND MENU OUVERT ===== */
body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* Masquer le contenu derrière le menu mobile */
body.menu-open main,
body.menu-open .gift-card-page,
body.menu-open .gift-card-container,
body.menu-open .checkout-page,
body.menu-open .tracking-page,
body.menu-open .success-page {
    filter: blur(5px) brightness(0.3);
    pointer-events: none;
}

/* ===== AMÉLIORATIONS TACTILES ===== */
@media (max-width: 768px) {
    /* Tous les éléments cliquables doivent avoir une taille minimum de 44px */
    button,
    .btn,
    a.btn,
    input[type="submit"],
    input[type="button"],
    .nav-link,
    .cart-icon,
    .menu-toggle {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Empêcher le zoom sur les inputs sur iOS */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    input[type="password"],
    textarea,
    select {
        font-size: 16px !important;
    }
}

/* ===== HEADER MOBILE ===== */
@media (max-width: 900px) {
    /* ===== HERO MOBILE - Fond stylisé + texte néon ===== */
    .overlay-bg {
        display: none !important;
    }
    
    .hero-overlay {
        background: 
            radial-gradient(ellipse at 50% 0%, rgba(255, 45, 117, 0.15) 0%, transparent 50%),
            radial-gradient(ellipse at 80% 80%, rgba(224, 122, 95, 0.1) 0%, transparent 40%),
            radial-gradient(ellipse at 20% 60%, rgba(255, 45, 117, 0.08) 0%, transparent 35%),
            linear-gradient(180deg, #0a0a0a 0%, #111 50%, #0a0a0a 100%) !important;
    }
    
    /* Grille rétro en fond */
    .hero-overlay::before {
        content: '';
        position: absolute;
        inset: 0;
        background-image: 
            linear-gradient(rgba(255, 45, 117, 0.03) 1px, transparent 1px),
            linear-gradient(90deg, rgba(255, 45, 117, 0.03) 1px, transparent 1px);
        background-size: 50px 50px;
        z-index: 1;
    }
    
    /* Lueur en bas */
    .hero-overlay::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 40%;
        background: linear-gradient(to top, rgba(224, 122, 95, 0.1), transparent);
        z-index: 1;
    }
    
    .dark-overlay {
        background: transparent !important;
    }
    
    /* Texte néon mobile */
    .mobile-neon-text {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        position: absolute;
        inset: 0;
        z-index: 10;
        gap: 0.3rem;
    }
    
    .mobile-neon-text .neon-line {
        font-family: 'Playfair Display', serif;
        font-size: 3.2rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.15em;
        color: #ff2d75;
        text-shadow: 
            0 0 5px #ff2d75,
            0 0 10px #ff2d75,
            0 0 20px #ff2d75,
            0 0 40px #ff2d75,
            0 0 80px #ff2d75,
            0 0 120px #ff2d75;
        position: relative;
        display: flex;
    }
    
    /* Animation lettre par lettre */
    .mobile-neon-text .neon-letter {
        opacity: 0;
        animation: neonLetterOn 0.5s ease forwards;
    }
    
    /* Délais pour chaque lettre de "Family" */
    .mobile-neon-text .neon-line:first-child .neon-letter:nth-child(1) { animation-delay: 0.1s; }
    .mobile-neon-text .neon-line:first-child .neon-letter:nth-child(2) { animation-delay: 0.2s; }
    .mobile-neon-text .neon-line:first-child .neon-letter:nth-child(3) { animation-delay: 0.3s; }
    .mobile-neon-text .neon-line:first-child .neon-letter:nth-child(4) { animation-delay: 0.4s; }
    .mobile-neon-text .neon-line:first-child .neon-letter:nth-child(5) { animation-delay: 0.5s; }
    .mobile-neon-text .neon-line:first-child .neon-letter:nth-child(6) { animation-delay: 0.6s; }
    
    /* Délais pour chaque lettre de "Custom" */
    .mobile-neon-text .neon-line:nth-child(2) .neon-letter:nth-child(1) { animation-delay: 0.8s; }
    .mobile-neon-text .neon-line:nth-child(2) .neon-letter:nth-child(2) { animation-delay: 0.9s; }
    .mobile-neon-text .neon-line:nth-child(2) .neon-letter:nth-child(3) { animation-delay: 1.0s; }
    .mobile-neon-text .neon-line:nth-child(2) .neon-letter:nth-child(4) { animation-delay: 1.1s; }
    .mobile-neon-text .neon-line:nth-child(2) .neon-letter:nth-child(5) { animation-delay: 1.2s; }
    .mobile-neon-text .neon-line:nth-child(2) .neon-letter:nth-child(6) { animation-delay: 1.3s; }
    
    @keyframes neonLetterOn {
        0% {
            opacity: 0;
            text-shadow: none;
        }
        50% {
            opacity: 0.5;
            text-shadow: 
                0 0 2px currentColor,
                0 0 5px currentColor;
        }
        100% {
            opacity: 1;
            text-shadow: 
                0 0 5px currentColor,
                0 0 10px currentColor,
                0 0 20px currentColor,
                0 0 40px currentColor,
                0 0 80px currentColor;
        }
    }
    
    /* Reflet sous le texte */
    .mobile-neon-text .neon-line::after {
        content: attr(data-text);
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        transform: scaleY(-0.3) translateY(-10px);
        opacity: 0.3;
        filter: blur(3px);
        background: linear-gradient(to bottom, rgba(255,255,255,0.3), transparent);
        -webkit-background-clip: text;
        background-clip: text;
    }
    
    .mobile-neon-text .neon-line:nth-child(2) {
        font-size: 3.8rem;
        color: #e07a5f;
        text-shadow: 
            0 0 5px #e07a5f,
            0 0 10px #e07a5f,
            0 0 20px #e07a5f,
            0 0 40px #e07a5f,
            0 0 80px #e07a5f,
            0 0 120px #e07a5f;
    }
    
    /* Sous-titre animé */
    .mobile-neon-text .neon-subtitle {
        font-family: 'Inter', sans-serif;
        font-size: 1rem;
        font-weight: 300;
        letter-spacing: 0.3em;
        text-transform: uppercase;
        color: rgba(255, 255, 255, 0.8);
        margin-top: 1.5rem;
        opacity: 0;
        transform: translateY(10px);
        animation: subtitleFadeIn 1s ease forwards;
        animation-delay: 1.8s;
    }
    
    @keyframes subtitleFadeIn {
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    @keyframes neonFlicker {
        0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
            opacity: 1;
            text-shadow: 
                0 0 5px currentColor,
                0 0 10px currentColor,
                0 0 20px currentColor,
                0 0 40px currentColor,
                0 0 80px currentColor;
        }
        20%, 24%, 55% {
            opacity: 0.85;
            text-shadow: 
                0 0 2px currentColor,
                0 0 5px currentColor,
                0 0 10px currentColor;
        }
    }
    
    .header {
        padding: 0.5rem 1rem;
    }
    
    .header-inner {
        padding: 0;
        display: -webkit-flex;
        display: flex;
        -webkit-justify-content: space-between;
        justify-content: space-between;
        -webkit-align-items: center;
        align-items: center;
    }
    
    .logo-img {
        height: 40px;
    }
    
    .logo-text {
        font-size: 1rem;
    }
    
    /* CACHER la recherche sur mobile */
    .search-container {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        width: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
    }
    
    /* Menu hamburger toujours visible */
    .menu-toggle {
        display: -webkit-flex !important;
        display: flex !important;
        -webkit-flex-direction: column;
        flex-direction: column;
        -webkit-justify-content: center;
        justify-content: center;
        -webkit-align-items: center;
        align-items: center;
        width: 44px;
        height: 44px;
        background: transparent !important;
        background-color: transparent !important;
        border: none !important;
        cursor: pointer;
        padding: 8px;
        z-index: 1002;
        -webkit-appearance: none;
        appearance: none;
    }
    
    .menu-toggle span {
        display: block !important;
        width: 26px;
        height: 3px;
        background: #f5f5f5 !important;
        background-color: #f5f5f5 !important;
        margin: 4px 0;
        -webkit-transition: 0.3s ease;
        transition: 0.3s ease;
        border-radius: 2px;
    }
    
    .menu-toggle.active span:nth-child(1) {
        -webkit-transform: rotate(45deg) translate(6px, 6px);
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        -webkit-transform: rotate(-45deg) translate(7px, -7px);
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    /* Nav container */
    .nav {
        display: -webkit-flex;
        display: flex;
        -webkit-align-items: center;
        align-items: center;
    }
    
    /* Cacher le CTA sur mobile */
    .nav-cta {
        display: none !important;
    }
    
    /* Navigation mobile fullscreen */
    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(20, 20, 20, 0.98);
        -webkit-backdrop-filter: blur(20px);
        backdrop-filter: blur(20px);
        display: none;
        -webkit-flex-direction: column;
        flex-direction: column;
        -webkit-justify-content: center;
        justify-content: center;
        -webkit-align-items: center;
        align-items: center;
        gap: 2rem;
        z-index: 1001;
        padding: 2rem;
    }
    
    .nav-links.mobile-visible {
        display: -webkit-flex !important;
        display: flex !important;
    }
    
    .nav-links li {
        list-style: none;
    }
    
    .nav-link {
        font-size: 1.4rem;
        padding: 0.75rem 2rem;
        text-align: center;
        color: #f5f5f5;
        display: block;
    }
    
    .nav-link:hover {
        color: #D4AF37;
    }
    
    /* Barre de recherche dans le menu mobile */
    .mobile-search-container {
        width: 100%;
        max-width: 300px;
        margin-bottom: 1rem;
    }
    
    .mobile-search-container .search-box {
        background: rgba(255,255,255,0.1);
        border-radius: 25px;
        padding: 0.75rem 1.25rem;
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }
    
    .mobile-search-container input {
        background: none;
        border: none;
        color: #f5f5f5;
        font-size: 1rem;
        width: 100%;
        outline: none;
    }
    
    .mobile-search-container input::placeholder {
        color: #999;
    }
    
    .mobile-search-container .search-icon {
        color: #D4AF37;
    }
    
    /* Cacher les icônes séparées sur mobile */
    .header-icons {
        display: none !important;
    }
    
    /* Badge panier mobile */
    .cart-badge-mobile {
        background: #D4AF37;
        color: #1a1a1a;
        font-size: 0.75rem;
        padding: 2px 8px;
        border-radius: 10px;
        margin-left: 8px;
        font-weight: 600;
    }
    
    /* Recherche dans menu mobile */
    .mobile-search-container {
        display: block !important;
    }
}

/* Sur desktop, cacher la recherche mobile et montrer les icônes */
@media (min-width: 901px) {
    .mobile-search-container {
        display: none !important;
    }
    
    .cart-badge-mobile {
        display: none;
    }
    
    .header-icons {
        display: flex;
        align-items: center;
        gap: 1rem;
    }
    
    .header-icon {
        color: #f5f5f5;
        font-size: 1.1rem;
        padding: 0.5rem;
        transition: color 0.3s ease;
        position: relative;
    }
    
    .header-icon:hover {
        color: #D4AF37;
    }
    
    .cart-badge {
        position: absolute;
        top: -5px;
        right: -5px;
        background: #D4AF37;
        color: #1a1a1a;
        font-size: 0.7rem;
        padding: 2px 6px;
        border-radius: 10px;
        font-weight: 600;
    }
    
    /* Cacher le menu toggle sur desktop */
    .menu-toggle {
        display: none !important;
    }
}

/* ===== HERO MOBILE ===== */
@media (max-width: 768px) {
    .hero-section {
        min-height: calc(100vh - var(--mobile-header-height));
        padding-top: var(--mobile-header-height);
    }
    
    .hero-split {
        flex-direction: column;
        min-height: auto;
    }
    
    .hero-split-content,
    .hero-split-image {
        width: 100%;
        min-height: 50vh;
    }
    
    .hero-split-content {
        padding: 2rem 1.5rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-cta-group {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-cta {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.6rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
}

/* ===== CATÉGORIES CARROUSEL MOBILE ===== */
@media (max-width: 768px) {
    .categories-section {
        padding: 3rem 0;
    }
    
    .categories-section .section-title {
        font-size: 1.6rem;
        padding: 0 1rem;
    }
    
    .categories-section .section-subtitle {
        font-size: 0.95rem;
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    /* Categories handled in categories.css */
}

/* ===== SECTION "C'EST POUR QUI" MOBILE ===== */
@media (max-width: 768px) {
    .pour-qui-section {
        padding: 3rem 1rem;
    }
    
    .pour-qui-section .section-title {
        font-size: 1.5rem;
    }
    
    .pour-qui-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
    
    .pour-qui-card {
        aspect-ratio: 1;
    }
    
    .pour-qui-content {
        padding: 1rem;
    }
    
    .pour-qui-content h3 {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .pour-qui-grid {
        grid-template-columns: 1fr;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .pour-qui-card {
        aspect-ratio: 4/3;
    }
}

/* ===== PRODUITS MOBILE ===== */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .product-card {
        border-radius: 12px;
    }
    
    .product-card-image {
        height: 150px;
    }
    
    .product-card-content {
        padding: 0.75rem;
    }
    
    .product-card-title {
        font-size: 0.9rem;
    }
    
    .product-card-price {
        font-size: 0.85rem;
    }
}

@media (max-width: 400px) {
    .products-grid {
        grid-template-columns: 1fr;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .product-card-image {
        height: 180px;
    }
}

/* ===== PAGE PERSONNALISER MOBILE ===== */
@media (max-width: 900px) {
    .personalizer-container {
        flex-direction: column;
        padding: 1rem;
        gap: 1.5rem;
    }
    
    .personalizer-preview {
        width: 100%;
        order: 1;
        position: sticky;
        top: 70px;
        z-index: 10;
        max-height: 250px;
    }
    
    .personalizer-options {
        width: 100%;
        order: 2;
    }
    
    .preview-canvas-container {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .option-group {
        padding: 1rem;
    }
    
    .option-label {
        font-size: 0.9rem;
    }
    
    .color-option,
    .font-option,
    .size-option {
        min-width: 44px;
        min-height: 44px;
    }
    
    .size-selector {
        flex-wrap: wrap;
    }
    
    .size-option {
        flex: 1 1 calc(33% - 0.5rem);
    }
}

/* ===== PANIER MOBILE ===== */
@media (max-width: 768px) {
    .cart-container {
        flex-direction: column;
        padding: 1rem;
    }
    
    .cart-items {
        width: 100%;
    }
    
    .cart-summary {
        width: 100%;
        position: sticky;
        bottom: 70px;
        background: #1a1a1a;
        border-radius: 16px 16px 0 0;
        margin: 0 -1rem;
        padding: 1.5rem;
        box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
    }
    
    .cart-item {
        flex-direction: row;
        gap: 1rem;
        padding: 1rem;
    }
    
    .cart-item-image {
        width: 80px;
        height: 80px;
        flex-shrink: 0;
    }
    
    .cart-item-details {
        flex: 1;
    }
    
    .cart-item-title {
        font-size: 0.95rem;
    }
    
    .quantity-controls {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }
    
    .quantity-btn {
        width: 32px;
        height: 32px;
    }
}

/* ===== CHECKOUT MOBILE ===== */
@media (max-width: 900px) {
    .checkout-container {
        flex-direction: column;
        padding: 1rem;
        gap: 1.5rem;
    }
    
    .checkout-form,
    .checkout-summary {
        width: 100%;
    }
    
    .checkout-summary {
        order: -1;
        position: relative;
    }
    
    .form-row {
        flex-direction: column;
        gap: 1rem;
    }
    
    .form-group {
        width: 100%;
    }
    
    .form-input,
    .form-select {
        padding: 1rem;
        font-size: 16px;
    }
}

/* ===== FOOTER MOBILE ===== */
@media (max-width: 768px) {
    .footer {
        padding: 2rem 1rem 5rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-section {
        align-items: center;
    }
    
    .footer-socials {
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-legal {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* ===== POPUPS & MODALS MOBILE ===== */
@media (max-width: 768px) {
    .popup,
    .modal {
        padding: 1rem;
    }
    
    .popup-content,
    .modal-content {
        width: 100%;
        max-width: 100%;
        max-height: 90vh;
        border-radius: 16px 16px 0 0;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        margin: 0;
        transform: translateY(100%);
        transition: transform 0.3s ease;
    }
    
    .popup.active .popup-content,
    .modal.active .modal-content {
        transform: translateY(0);
    }
    
    .popup-header,
    .modal-header {
        padding: 1.25rem;
        position: sticky;
        top: 0;
        background: inherit;
        z-index: 1;
    }
    
    .popup-body,
    .modal-body {
        padding: 1rem;
        max-height: calc(90vh - 120px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .popup-close,
    .modal-close {
        width: 44px;
        height: 44px;
    }
}

/* ===== CARTE CADEAU MOBILE ===== */
@media (max-width: 768px) {
    .gift-card-container {
        flex-direction: column;
        padding: 1rem;
    }
    
    .gift-card-preview,
    .gift-card-options {
        width: 100%;
    }
    
    .gift-card-preview {
        order: 1;
    }
    
    .gift-card-options {
        order: 2;
    }
    
    .amount-options {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }
    
    .amount-option {
        padding: 1rem 0.5rem;
        font-size: 1rem;
    }
}

/* ===== COMPTE CLIENT MOBILE ===== */
@media (max-width: 768px) {
    .account-container {
        flex-direction: column;
        padding: 1rem;
    }
    
    .account-sidebar {
        width: 100%;
        position: sticky;
        top: 60px;
        background: #1a1a1a;
        z-index: 10;
        border-radius: 12px;
        margin-bottom: 1rem;
    }
    
    .account-menu {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        gap: 0.5rem;
        padding: 0.5rem;
        -webkit-overflow-scrolling: touch;
    }
    
    .account-menu-item {
        white-space: nowrap;
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .account-content {
        width: 100%;
    }
}

/* ===== SUIVI COMMANDE MOBILE ===== */
@media (max-width: 768px) {
    .tracking-container {
        padding: 1rem;
    }
    
    .tracking-timeline {
        padding-left: 2rem;
    }
    
    .timeline-step {
        padding-bottom: 2rem;
    }
    
    .timeline-step::before {
        left: -2rem;
    }
    
    .timeline-content {
        padding: 1rem;
    }
}

/* ===== FEATURES SECTION MOBILE ===== */
@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .feature-card {
        padding: 1.25rem;
    }
    
    .feature-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .feature-title {
        font-size: 0.95rem;
    }
    
    .feature-description {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .features-grid {
        grid-template-columns: 1fr;
        max-width: 320px;
        margin: 0 auto;
    }
}

/* ===== CHAT WIDGET MOBILE ===== */
@media (max-width: 768px) {
    .chat-widget {
        bottom: 80px;
        right: 1rem;
    }
    
    .chat-window {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: 70vh;
        max-height: 70vh;
        border-radius: 16px 16px 0 0;
    }
    
    .chat-toggle {
        width: 56px;
        height: 56px;
    }
}

/* ===== ANIMATIONS RÉDUITES SUR MOBILE ===== */
@media (max-width: 768px), (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.2s !important;
        transition-duration: 0.2s !important;
    }
    
    .category-tile:hover,
    .product-card:hover,
    .pour-qui-card:hover {
        transform: none;
    }
}

/* ===== IMAGES LAZY LOADING ===== */
img[loading="lazy"] {
    background: linear-gradient(110deg, #2d2d2d 8%, #3a3a3a 18%, #2d2d2d 33%);
    background-size: 200% 100%;
    animation: shimmer 1.5s linear infinite;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* ===== SAFE AREA (iPhone X+) ===== */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .header-actions,
    body {
        padding-bottom: calc(70px + env(safe-area-inset-bottom));
    }
    
    .footer {
        padding-bottom: calc(5rem + env(safe-area-inset-bottom));
    }
}

/* ===== ORIENTATION LANDSCAPE MOBILE ===== */
@media (max-width: 900px) and (orientation: landscape) {
    .hero-split {
        flex-direction: row;
        min-height: 100vh;
    }
    
    .hero-split-content,
    .hero-split-image {
        width: 50%;
        min-height: 100vh;
    }
    
    .nav {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .nav-link {
        font-size: 1.1rem;
        padding: 0.75rem 1.5rem;
    }
}

/* ===== AMÉLIORATION FORMULAIRES MOBILE ===== */
@media (max-width: 768px) {
    /* Labels plus lisibles */
    label,
    .form-label {
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
        display: block;
    }
    
    /* Inputs plus grands */
    input,
    textarea,
    select {
        padding: 0.9rem 1rem;
        border-radius: 10px;
    }
    
    /* Erreurs de validation visibles */
    .form-error,
    .error-message {
        font-size: 0.85rem;
        margin-top: 0.5rem;
    }
    
    /* Boutons pleine largeur */
    .form-submit,
    .btn-primary {
        width: 100%;
        padding: 1rem;
        font-size: 1rem;
    }
}

/* ===== STRIPE ELEMENTS MOBILE ===== */
@media (max-width: 768px) {
    #card-element {
        padding: 1rem;
    }
    
    .StripeElement {
        padding: 1rem;
    }
}

/* ===== FIX POUR LE SCROLL HORIZONTAL ACCIDENTEL ===== */
html, body {
    overflow-x: hidden;
    width: 100%;
}

/* ===== LOADING STATES MOBILE ===== */
@media (max-width: 768px) {
    .loading-spinner {
        width: 40px;
        height: 40px;
    }
    
    .skeleton {
        border-radius: 8px;
    }
}

/* ===== AMÉLIORATION DES TOASTS MOBILE ===== */
@media (max-width: 768px) {
    .toast,
    .notification {
        left: 1rem;
        right: 1rem;
        bottom: 90px;
        width: auto;
        max-width: none;
    }
}

@media (max-width: 900px) {
    body.menu-open .gift-card-page,
    body.menu-open main,
    body.menu-open .gift-card-container {
        filter: blur(8px) brightness(0.5);
        pointer-events: none;
        user-select: none;
    }
}
