/**
 * Styles principaux - Mobile First
 * Landing Page Organisateur de Cuisine - Marché Algérien
 */

/* ==================== Variables CSS ==================== */
:root {
    /* Couleurs principales */
    --color-primary: #10b981;      /* Vert - confiance, nature */
    --color-primary-dark: #059669;
    --color-primary-light: #d1fae5;

    --color-secondary: #f59e0b;    /* Orange - urgence, appel à l'action */
    --color-secondary-dark: #d97706;

    --color-danger: #ef4444;
    --color-success: #10b981;
    --color-warning: #f59e0b;

    /* Couleurs de texte */
    --color-text-primary: #1f2937;
    --color-text-secondary: #6b7280;
    --color-text-light: #9ca3af;

    /* Couleurs de fond */
    --color-bg-primary: #ffffff;
    --color-bg-secondary: #f9fafb;
    --color-bg-accent: #f0fdf4;

    /* Bordures */
    --color-border: #e5e7eb;
    --color-border-light: #f3f4f6;

    /* Espacements */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;

    /* Tailles de police */
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;

    /* Border radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-full: 9999px;

    /* Ombres */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Z-index */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal: 1040;
    --z-tooltip: 1050;
}

/* ==================== Reset & Base ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', 'Tajawal', 'Arial', 'Helvetica', sans-serif;
    font-size: var(--font-size-base);
    font-weight: 600;
    line-height: 1.6;
    color: var(--color-text-primary);
    background-color: var(--color-bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==================== Typography ==================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    color: var(--color-text-primary);
    font-family: 'Cairo', 'Tajawal', 'Arial', 'Helvetica', sans-serif;
}

h1 { font-size: var(--font-size-3xl); }
h2 { font-size: var(--font-size-2xl); }
h3 { font-size: var(--font-size-xl); }
h4 { font-size: var(--font-size-lg); }
h5, h6 { font-size: var(--font-size-base); }

p {
    margin-bottom: var(--spacing-md);
    line-height: 1.7;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-primary-dark);
}

/* ==================== Container & Layout ==================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section {
    padding: var(--spacing-2xl) 0;
}

.section-sm {
    padding: var(--spacing-xl) 0;
}

.section-lg {
    padding: var(--spacing-3xl) 0;
}

/* ==================== Buttons ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: var(--font-size-base);
    font-weight: 600;
    text-align: center;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: var(--color-secondary);
    color: white;
}

.btn-secondary:hover {
    background-color: var(--color-secondary-dark);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-outline:hover {
    background-color: var(--color-primary);
    color: white;
}

.btn-lg {
    padding: var(--spacing-lg) var(--spacing-2xl);
    font-size: var(--font-size-lg);
}

.btn-sm {
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: var(--font-size-sm);
}

.btn-block {
    width: 100%;
    display: flex;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ==================== Hero Section ==================== */
.hero {
    background: linear-gradient(135deg, var(--color-bg-accent) 0%, var(--color-bg-primary) 100%);
    padding: var(--spacing-2xl) 0;
    text-align: center;
}

.hero-content {
    max-width: 600px;
    margin: 0 auto;
}

/* Badge Hero avec Blob */
.hero-badge-container {
    position: relative;
    display: inline-block;
    margin-bottom: var(--spacing-lg);
}

.hero-badge-blob {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1.8);
    width: 200px;
    height: 60px;
    z-index: 0;
    opacity: 0.15;
    animation: blob-float 6s ease-in-out infinite;
}

@keyframes blob-float {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1.8) rotate(0deg);
    }
    33% {
        transform: translate(-50%, -52%) scale(1.85) rotate(2deg);
    }
    66% {
        transform: translate(-50%, -48%) scale(1.75) rotate(-2deg);
    }
}

.hero-badge-content {
    position: relative;
    z-index: 1;
    display: inline-block;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: var(--spacing-sm) var(--spacing-xl);
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
    transition: all 0.3s ease;
}

.hero-badge-content:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.35);
}

.hero-title {
    font-size: var(--font-size-3xl);
    margin-bottom: var(--spacing-md);
    color: var(--color-text-primary);
}

.hero-subtitle {
    font-size: var(--font-size-lg);
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-xl);
}

/* Hero Carousel */
.hero-carousel {
    width: 100%;
    max-width: 500px;
    margin: var(--spacing-xl) auto;
}

.carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
}

.carousel-slides {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Boutons navigation */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--color-text-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

.carousel-btn:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.carousel-btn:active {
    transform: translateY(-50%) scale(0.95);
    background: white;
}

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 10px;
}

.carousel-btn span {
    line-height: 1;
    font-weight: 700;
}

/* Indicateurs */
.carousel-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

.carousel-dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.carousel-dot:active {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1);
}

.carousel-dot.active {
    background: white;
    width: 24px;
    border-radius: 5px;
}

/* Responsive mobile */
@media (max-width: 640px) {
    .carousel-btn {
        width: 36px;
        height: 36px;
        font-size: 20px;
    }

    .carousel-prev {
        left: 5px;
    }

    .carousel-next {
        right: 5px;
    }

    .carousel-indicators {
        bottom: 10px;
    }

    .carousel-dot {
        width: 8px;
        height: 8px;
    }

    .carousel-dot.active {
        width: 20px;
    }
}

/* Fix RTL carousel buttons */
html[dir="rtl"] .carousel-prev {
    left: auto;
    right: 10px;
}

html[dir="rtl"] .carousel-next {
    right: auto;
    left: 10px;
}

html[dir="rtl"] .carousel-prev:hover {
    transform: translateY(-50%) scale(1.1);
}

html[dir="rtl"] .carousel-next:hover {
    transform: translateY(-50%) scale(1.1);
}

@media (max-width: 640px) {
    html[dir="rtl"] .carousel-prev {
        left: auto;
        right: 5px;
    }

    html[dir="rtl"] .carousel-next {
        right: auto;
        left: 5px;
    }
}

/* Lightbox styles */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    animation: lightbox-fadein 0.3s ease;
}

.lightbox.active {
    display: flex;
}

@keyframes lightbox-fadein {
    from { opacity: 0; }
    to { opacity: 1; }
}

.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    cursor: pointer;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    z-index: 1;
    animation: lightbox-zoom 0.3s ease;
    padding-bottom: 90px;
}

@keyframes lightbox-zoom {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.lightbox-image {
    max-width: 100%;
    max-height: calc(90vh - 100px);
    object-fit: contain;
    display: block;
    border-radius: 8px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
    transform-origin: center;
    will-change: transform, opacity;
}

.lightbox-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
    transition: background 0.2s ease;
    color: #1f2937;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

.lightbox-close:hover {
    background: white;
}

.lightbox-close:active {
    background: rgba(255, 255, 255, 0.95);
    transform: scale(0.95);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev:active,
.lightbox-next:active {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-50%) scale(1);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

/* Fix RTL lightbox buttons */
html[dir="rtl"] .lightbox-prev {
    left: auto;
    right: 20px;
}

html[dir="rtl"] .lightbox-next {
    right: auto;
    left: 20px;
}

html[dir="rtl"] .lightbox-close {
    right: auto;
    left: 10px;
}

/* Mobile lightbox */
@media (max-width: 640px) {
    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    html[dir="rtl"] .lightbox-prev {
        left: auto;
        right: 10px;
    }

    html[dir="rtl"] .lightbox-next {
        right: auto;
        left: 10px;
    }

    html[dir="rtl"] .lightbox-close {
        right: auto;
        left: 10px;
    }
}

/* ==================== Lightbox Enhancements ==================== */

/* Compteur d'images */
.lightbox-counter {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 3;
    pointer-events: none;
}

/* Boutons actions */
.lightbox-fullscreen,
.lightbox-share,
.lightbox-download {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    z-index: 3;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    outline: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.lightbox-fullscreen {
    top: 20px;
    right: 70px;
}

.lightbox-share {
    top: 20px;
    right: 120px;
}

.lightbox-download {
    top: 20px;
    right: 170px;
}

.lightbox-fullscreen:hover,
.lightbox-share:hover,
.lightbox-download:hover {
    background: white;
    transform: scale(1.1);
}

.lightbox-fullscreen:active,
.lightbox-share:active,
.lightbox-download:active {
    background: rgba(255, 255, 255, 0.95);
    transform: scale(1);
}

/* Bande de miniatures */
.lightbox-thumbnails {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px;
    border-radius: 12px;
    max-width: 90vw;
    overflow-x: auto;
    z-index: 3;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

.lightbox-thumbnails::-webkit-scrollbar {
    height: 4px;
}

.lightbox-thumbnails::-webkit-scrollbar-track {
    background: transparent;
}

.lightbox-thumbnails::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

.lightbox-thumb {
    width: 60px;
    height: 60px;
    border: 3px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    background: none;
    flex-shrink: 0;
}

.lightbox-thumb.active {
    border-color: var(--color-primary);
    transform: scale(1.1);
}

.lightbox-thumb:hover {
    border-color: rgba(16, 185, 129, 0.5);
}

.lightbox-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* RTL support pour nouveaux boutons */
html[dir="rtl"] .lightbox-fullscreen {
    right: auto;
    left: 70px;
}

html[dir="rtl"] .lightbox-share {
    right: auto;
    left: 120px;
}

html[dir="rtl"] .lightbox-download {
    right: auto;
    left: 170px;
}

/* Mobile responsive - Portrait */
@media (max-width: 640px) and (orientation: portrait) {
    .lightbox-counter {
        top: 65px;
        left: 50%;
        transform: translateX(-50%);
        font-size: 0.8rem;
        padding: 0.35rem 0.7rem;
    }

    .lightbox-content {
        padding-bottom: 80px;
    }

    .lightbox-image {
        max-height: calc(90vh - 180px);
    }

    /* Tous les boutons à la même taille et même hauteur */
    .lightbox-close,
    .lightbox-fullscreen,
    .lightbox-share,
    .lightbox-download {
        width: 38px;
        height: 38px;
        font-size: 16px;
        top: 15px;
    }

    /* Disposer tous les boutons en ligne horizontale en haut à droite */
    .lightbox-close {
        right: 10px;
    }

    .lightbox-download {
        right: 58px;
    }

    .lightbox-share {
        right: 106px;
    }

    .lightbox-fullscreen {
        right: 154px;
    }

    /* RTL : disposer en haut à gauche */
    html[dir="rtl"] .lightbox-close {
        right: auto;
        left: 10px;
    }

    html[dir="rtl"] .lightbox-download {
        right: auto;
        left: 58px;
    }

    html[dir="rtl"] .lightbox-share {
        right: auto;
        left: 106px;
    }

    html[dir="rtl"] .lightbox-fullscreen {
        right: auto;
        left: 154px;
    }

    .lightbox-thumbnails {
        bottom: 10px;
        padding: 8px;
        gap: 8px;
    }

    .lightbox-thumb {
        width: 50px;
        height: 50px;
    }

    /* Augmenter la taille des boutons de navigation */
    .lightbox-prev,
    .lightbox-next {
        width: 44px;
        height: 44px;
        font-size: 26px;
    }
}

/* Mobile responsive - Paysage (horizontal) */
@media (max-width: 950px) and (orientation: landscape) {
    .lightbox-counter {
        top: 10px;
        left: 50%;
        transform: translateX(-50%);
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }

    /* En mode paysage, pas de padding-bottom - les miniatures se superposent */
    .lightbox-content {
        padding-bottom: 0;
    }

    .lightbox-image {
        max-height: 85vh;
    }

    /* Boutons plus compacts en mode paysage */
    .lightbox-close,
    .lightbox-fullscreen,
    .lightbox-share,
    .lightbox-download {
        width: 34px;
        height: 34px;
        font-size: 14px;
        top: 10px;
    }

    .lightbox-close {
        right: 10px;
    }

    .lightbox-download {
        right: 52px;
    }

    .lightbox-share {
        right: 94px;
    }

    .lightbox-fullscreen {
        right: 136px;
    }

    html[dir="rtl"] .lightbox-close {
        right: auto;
        left: 10px;
    }

    html[dir="rtl"] .lightbox-download {
        right: auto;
        left: 52px;
    }

    html[dir="rtl"] .lightbox-share {
        right: auto;
        left: 94px;
    }

    html[dir="rtl"] .lightbox-fullscreen {
        right: auto;
        left: 136px;
    }

    /* Miniatures plus compactes et transparentes en mode paysage */
    .lightbox-thumbnails {
        bottom: 8px;
        padding: 6px;
        gap: 6px;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0.7;
        transition: opacity 0.3s ease;
    }

    .lightbox-thumbnails:hover {
        opacity: 1;
    }

    .lightbox-thumb {
        width: 40px;
        height: 40px;
    }

    /* Boutons de navigation compacts */
    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 22px;
    }
}

/* Cursor pointer sur images carousel */
.carousel-slide img {
    cursor: pointer;
}

/* ==================== Submission Overlay ==================== */

.submission-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.98);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.submission-card {
    text-align: center;
    max-width: 400px;
    padding: 2rem;
}

.success-checkmark {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
}

.success-checkmark svg {
    width: 100%;
    height: 100%;
}

.checkmark-circle {
    stroke: #10b981;
    stroke-width: 2;
    fill: none;
    stroke-dasharray: 157;
    stroke-dashoffset: 157;
    animation: circle-draw 0.6s ease forwards;
}

@keyframes circle-draw {
    to { stroke-dashoffset: 0; }
}

.checkmark-check {
    stroke: #10b981;
    stroke-width: 3;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: check-draw 0.3s 0.6s ease forwards;
}

@keyframes check-draw {
    to { stroke-dashoffset: 0; }
}

.submission-title {
    font-size: 1.5rem;
    font-weight: 900;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.submission-subtitle {
    font-size: 1rem;
    font-weight: 700;
    color: #6b7280;
    margin-bottom: 1.5rem;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, #10b981, #059669);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (max-width: 640px) {
    .submission-card {
        padding: 1.5rem;
    }

    .submission-title {
        font-size: 1.25rem;
    }

    .submission-subtitle {
        font-size: 0.9rem;
    }
}

/* ==================== Optimisations Above-the-Fold ==================== */

/* Cacher le badge paiement du hero (info déjà dans trust bar) */
.hero-badge-container {
    display: none;
}

/* Hero - réduire padding vertical */
.hero {
    padding: 1.5rem 0 !important;
}

/* Titre hero - plus compact */
.hero-title {
    font-size: 1.5rem !important;
    margin-bottom: 0.5rem !important;
    line-height: 1.3;
}

/* Sous-titre hero - plus compact */
.hero-subtitle {
    font-size: 1rem !important;
    margin-bottom: 1rem !important;
    line-height: 1.5;
}

/* Carousel - réduire espacement */
.hero-carousel {
    margin: 0.5rem auto !important;
}

/* Mobile - ajustements supplémentaires */
@media (max-width: 768px) {
    .hero {
        padding: 1rem 0 !important;
    }

    .hero-title {
        font-size: 1.35rem !important;
    }

    .hero-subtitle {
        font-size: 0.95rem !important;
    }
}

/* Tablette - compromis */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-title {
        font-size: 1.6rem !important;
    }

    .hero-subtitle {
        font-size: 1.05rem !important;
    }
}

/* Section Prix avec Blob */
.price-section {
    position: relative;
    padding: var(--spacing-md) var(--spacing-lg);
    margin: 0 0;
}

.price-blob {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 500px;
    height: auto;
    z-index: 0;
    opacity: 0.8;
    animation: blob-pulse 8s ease-in-out infinite;
}

@keyframes blob-pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
        opacity: 0.8;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.05) rotate(5deg);
        opacity: 1;
    }
}

.price-container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-lg);
}

/* Badge Offre Spéciale */
.price-badge-special {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    padding: var(--spacing-xs) var(--spacing-lg);
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
    animation: badge-bounce 2s ease-in-out infinite;
    margin-bottom: 0.75rem;
}

@keyframes badge-bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-4px);
    }
}

.badge-icon {
    font-size: 1.2em;
    animation: icon-rotate 3s linear infinite;
}

@keyframes icon-rotate {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-10deg); }
    75% { transform: rotate(10deg); }
}

/* Affichage des prix */
.price-display {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    justify-content: center;
    margin: 0.75rem 0;
}

.price-old {
    font-size: var(--font-size-2xl);
    color: var(--color-text-light);
    text-decoration: line-through;
    opacity: 0.6;
}

.price-current {
    display: flex;
    align-items: baseline;
    gap: var(--spacing-xs);
    font-size: var(--font-size-4xl);
    font-weight: 900;
    color: var(--color-primary);
    text-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
}

.price-current .currency {
    font-size: 0.5em;
    font-weight: 700;
}

.price-current .amount {
    letter-spacing: -0.02em;
}

/* Boutons CTA */
.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    width: 100%;
    max-width: 400px;
    margin-top: 1rem;
}

.btn-order,
.btn-limited {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
}

.btn-primary {
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.btn-secondary {
    background: white;
    color: var(--color-text-primary);
    border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
    background: var(--color-bg-accent);
    transform: translateY(-2px);
    color: var(--color-text-primary);
}

.btn-icon {
    font-size: 1.2em;
}

.icon-fire {
    animation: fire-flicker 1.5s ease-in-out infinite;
}

@keyframes fire-flicker {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.1); }
}

/* Countdown timer */
.countdown {
    background-color: var(--color-secondary);
    color: white;
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--radius-lg);
    margin: var(--spacing-lg) 0;
    display: inline-block;
}

.countdown-timer {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    margin-top: var(--spacing-sm);
}

.countdown-item {
    text-align: center;
}

.countdown-value {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    display: block;
}

.countdown-label {
    font-size: var(--font-size-xs);
    opacity: 0.9;
}

/* ==================== Trust Bar ==================== */
.trust-bar {
    background-color: var(--color-bg-secondary);
    padding: var(--spacing-lg) 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.trust-items {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
    text-align: center;
}

.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
}

.trust-icon {
    font-size: var(--font-size-3xl);
    color: var(--color-primary);
}

.trust-text {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--color-text-primary);
}

/* ==================== Product Details ==================== */
.product-gallery {
    display: flex;
    overflow-x: auto;
    gap: var(--spacing-md);
    padding: var(--spacing-md) 0;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.product-gallery::-webkit-scrollbar {
    height: 4px;
}

.product-gallery::-webkit-scrollbar-track {
    background: var(--color-bg-secondary);
}

.product-gallery::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: var(--radius-full);
}

.gallery-item {
    flex: 0 0 85%;
    scroll-snap-align: center;
}

.gallery-item img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.product-info {
    margin-top: var(--spacing-xl);
}

.product-description {
    font-size: var(--font-size-base);
    line-height: 1.8;
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-lg);
}

.product-features {
    list-style: none;
    padding: 0;
}

.product-features li {
    padding: var(--spacing-sm) 0;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.product-features li::before {
    content: "✓";
    color: var(--color-primary);
    font-weight: 700;
    font-size: var(--font-size-lg);
}

.stock-indicator {
    background-color: var(--color-warning);
    color: white;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    display: inline-block;
    font-size: var(--font-size-sm);
    font-weight: 600;
    margin-top: var(--spacing-md);
}

/* ==================== Ramadan Benefits ==================== */
.benefits {
    background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-bg-primary) 100%);
}

.benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.benefit-card {
    background-color: white;
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: transform var(--transition-base);
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.benefit-icon {
    font-size: var(--font-size-4xl);
    margin-bottom: var(--spacing-md);
}

.benefit-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.benefit-description {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
}

/* ==================== Social Proof / Testimonials ==================== */
.testimonials {
    background-color: var(--color-bg-secondary);
}

.section-title {
    text-align: center;
    font-size: var(--font-size-3xl);
    margin-bottom: var(--spacing-sm);
}

.section-subtitle {
    text-align: center;
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-2xl);
}

.social-proof-count {
    text-align: center;
    background-color: var(--color-primary-light);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-2xl);
}

.social-count {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    color: var(--color-primary);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
}

.testimonial-card {
    background-color: white;
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-full);
    object-fit: cover;
}

.testimonial-info {
    flex: 1;
}

.testimonial-name {
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}

.testimonial-location {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
}

.testimonial-rating {
    color: var(--color-secondary);
    font-size: var(--font-size-sm);
}

.testimonial-comment {
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--color-text-secondary);
}

/* ==================== How It Works ==================== */
.steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
}

.step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background-color: var(--color-primary);
    color: white;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-2xl);
    font-weight: 700;
    margin: 0 auto var(--spacing-md);
}

.step-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.step-description {
    color: var(--color-text-secondary);
}

/* ==================== Order Form ==================== */
.order-form-section {
    background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-bg-primary) 100%);
}

.form-container {
    max-width: 500px;
    margin: 0 auto;
    background-color: white;
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
}

.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-primary);
}

.form-input {
    width: 100%;
    padding: var(--spacing-md);
    font-size: var(--font-size-base);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: border-color var(--transition-fast);
}

.form-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-light);
}

.form-input.error {
    border-color: var(--color-danger);
}

.form-error {
    color: var(--color-danger);
    font-size: var(--font-size-sm);
    margin-top: var(--spacing-xs);
    display: none;
}

.form-input.error + .form-error {
    display: block;
}

.quantity-control {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
}

.quantity-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    border: 2px solid var(--color-primary);
    background-color: white;
    color: var(--color-primary);
    font-size: var(--font-size-xl);
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.quantity-btn:hover {
    background-color: var(--color-primary);
    color: white;
}

.quantity-display {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    min-width: 60px;
    text-align: center;
}

.order-summary {
    background-color: var(--color-bg-accent);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-lg);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-sm);
}

.summary-label {
    color: var(--color-text-secondary);
}

.summary-value {
    font-weight: 600;
}

.summary-total {
    padding-top: var(--spacing-md);
    border-top: 2px solid var(--color-border);
    margin-top: var(--spacing-md);
}

.summary-total .summary-value {
    font-size: var(--font-size-2xl);
    color: var(--color-primary);
}

/* ==================== FAQ ==================== */
.faq {
    background-color: var(--color-bg-secondary);
}

.faq-list {
    max-width: 700px;
    margin: 0 auto;
}

.faq-item {
    background-color: white;
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.faq-question {
    width: 100%;
    padding: var(--spacing-lg);
    background-color: white;
    border: none;
    text-align: right;
    font-size: var(--font-size-base);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color var(--transition-fast);
}

.faq-question:hover {
    background-color: var(--color-bg-secondary);
}

.faq-icon {
    font-size: var(--font-size-xl);
    color: var(--color-primary);
    transition: transform var(--transition-base);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 var(--spacing-lg);
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-base), padding var(--transition-base);
}

.faq-item.active .faq-answer {
    padding: 0 var(--spacing-lg) var(--spacing-lg);
    max-height: 500px;
}

.faq-answer p {
    color: var(--color-text-secondary);
    line-height: 1.7;
}

/* ==================== Contact Section ==================== */
.contact-methods {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    margin-top: var(--spacing-xl);
}

.contact-card {
    background-color: var(--color-bg-secondary);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    text-align: center;
}

.contact-icon {
    font-size: var(--font-size-3xl);
    color: var(--color-primary);
    margin-bottom: var(--spacing-sm);
}

.contact-title {
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.contact-value {
    color: var(--color-text-secondary);
    font-size: var(--font-size-sm);
    margin-bottom: var(--spacing-md);
    text-align: center;
}

#phoneNumber {
    direction: ltr;
    unicode-bidi: embed;
    font-weight: 600;
    font-size: var(--font-size-lg);
    color: var(--color-text);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.social-link {
    width: 50px;
    height: 50px;
    background-color: var(--color-primary);
    color: white;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-xl);
    transition: all var(--transition-base);
}

.social-link:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-3px);
}

/* ==================== Footer ==================== */
.footer {
    background-color: var(--color-text-primary);
    color: white;
    padding: var(--spacing-2xl) 0 var(--spacing-lg);
}

.footer-content {
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    flex-wrap: wrap;
}

.footer-link {
    color: white;
    font-size: var(--font-size-sm);
    opacity: 0.8;
    transition: opacity var(--transition-fast);
}

.footer-link:hover {
    opacity: 1;
}

.footer-copyright {
    font-size: var(--font-size-sm);
    opacity: 0.6;
    text-align: center;
    width: 100%;
}

/* ==================== Sticky WhatsApp Button ==================== */
.whatsapp-sticky {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: var(--z-fixed);
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-3xl);
    box-shadow: var(--shadow-xl);
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
}

.whatsapp-sticky:hover {
    transform: scale(1.1);
    background-color: #128c7e;
}

.whatsapp-sticky::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #25d366;
    border-radius: var(--radius-full);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.3);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 0;
    }
}

/* ==================== Utilities ==================== */
.text-center { text-align: center; }
.text-primary { color: var(--color-primary); }
.text-secondary { color: var(--color-text-secondary); }

.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }
.mt-xl { margin-top: var(--spacing-xl); }

.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }
.mb-xl { margin-bottom: var(--spacing-xl); }

.hidden { display: none; }
.visible { display: block; }

/* ==================== Loading Spinner ==================== */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--color-border);
    border-top-color: var(--color-primary);
    border-radius: var(--radius-full);
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==================== Responsive: Mobile Adjustments ==================== */
@media (max-width: 767px) {
    .price-section {
        padding: var(--spacing-sm) var(--spacing-md);
        margin: 0 0;
    }

    .price-blob {
        max-width: 350px;
    }

    .price-display {
        flex-direction: column;
        gap: var(--spacing-sm);
        margin: 0.5rem 0;
    }

    .price-current {
        font-size: var(--font-size-3xl);
    }

    .cta-buttons {
        max-width: 100%;
    }
}

/* ==================== Responsive: Tablet (768px+) ==================== */
@media (min-width: 768px) {
    :root {
        --font-size-3xl: 2.25rem;
        --font-size-4xl: 3rem;
    }

    .hero-title {
        font-size: var(--font-size-4xl);
    }

    .trust-items {
        grid-template-columns: repeat(4, 1fr);
    }

    .gallery-item {
        flex: 0 0 45%;
    }

    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps {
        grid-template-columns: repeat(3, 1fr);
    }

    .contact-methods {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==================== Responsive: Desktop (1024px+) ==================== */
@media (min-width: 1024px) {
    .section {
        padding: var(--spacing-3xl) 0;
    }

    .hero {
        padding: var(--spacing-3xl) 0;
    }

    .gallery-item {
        flex: 0 0 30%;
    }

    .benefits-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ==================== Print Styles ==================== */
@media print {
    .whatsapp-sticky,
    .countdown,
    .btn {
        display: none;
    }
}
