/* ==============================================
   GENERAL STYLES & FONT IMPORTS
   ============================================== */

@font-face {
    font-family: 'Letteris Regular';
    font-style: normal;
    font-weight: normal;
    src: local('Letteris Regular'), url('fonts/Letteris-7BWaE.woff') format('woff');
    font-display: swap; /* Améliore les performances de chargement */
}

/* Reset CSS global */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Variables CSS pour une meilleure maintenance */
:root {
    --primary-color: #007BFF;
    --primary-hover: #5400b3;
    --text-light: #a7a7a7;
    --text-white: #ffffff;
    --text-dark: #666666;
    --border-color: #ddd;
    --shadow-light: rgba(0, 0, 0, 0.2);
    --shadow-purple: rgba(93, 22, 134, 0.5);
    --gradient-bg: linear-gradient(90deg, rgba(1,1,45,1) 0%, rgba(9,9,121,1) 35%, rgba(130,53,218,1) 100%);
    
    /* Spacing variables */
    --spacing-xs: 5px;
    --spacing-sm: 10px;
    --spacing-md: 15px;
    --spacing-lg: 20px;
    --spacing-xl: 30px;
    
    /* Border radius */
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 15px;
    
    /* Font sizes */
    --font-xs: 12px;
    --font-sm: 14px;
    --font-md: 15px;
    --font-lg: 16px;
    --font-xl: 30px;
    --font-xxl: 50px;
}

html, body {
    height: 100vh;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    font-family: 'Poppins', sans-serif;
    background: var(--gradient-bg);
    color: var(--text-white);
}

body {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

main {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding-top: 120px;
    padding-bottom: 80px;
    box-sizing: border-box;
}

/* ==============================================
   HEADER STYLES
   ============================================== */

.header {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%; 
    height: auto;
    z-index: 1000;
    padding: var(--spacing-xs) 0;
    background: var(--gradient-bg);
    box-shadow: 0 0 8px var(--shadow-purple);
}

.logo {
    font-family: 'Letteris Regular', serif;
    font-weight: normal;
    font-size: var(--font-xxl);
    color: transparent;
    -webkit-text-stroke: 1.5px var(--text-white);
}

.sb {
    color: var(--text-white);
    font-family: 'Poppins', sans-serif;
    font-size: var(--font-md);
}

/* ==============================================
   HERO SECTION STYLES
   ============================================== */

.hero {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 200px);
    width: 100%;
    padding: var(--spacing-xs) var(--spacing-md);
}

/* ==============================================
   BUTTON STYLES
   ============================================== */

button {
    border: none;
    font-size: var(--font-lg);
    font-family: inherit;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: block; /* Assure que c'est un élément de bloc */
    margin: 0 auto; /* Centre horizontalement */
    text-align: center; /* Centre le texte à l'intérieur */
    /* From https://css.glass */
    background: rgba(255, 255, 255, 0.151);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

button:hover{
    background-color: var(--primary-hover);
    transform: translateY(-1px);
}

button:active {
    transform: translateY(0);
}

.btn button {
    width: auto;
    color: white;
    cursor: pointer;
    font-size: var(--font-lg);
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
    padding: var(--spacing-xs) var(--spacing-xl);
    background: rgba(255, 255, 255, 0.151);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

/* Boutons pour pages stickers/forms */
.btn {
    width: 100%;
    padding: var(--spacing-sm);
    background: rgba(255, 255, 255, 0.151);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    font-size: var(--font-lg);
}

.btn:hover {
    background-color: var(--primary-color);
    transform: translateY(-1px);
}


.btn:hover {
    transform: scale(1.2);
    transition: all 0.3s ease;
}

.btn a {
    cursor: pointer;
}

.btn_choice {
    display: flex;
    flex-direction: row;
    gap: var(--spacing-xl);
    justify-content: center;
    align-items: center;
    padding: var(--spacing-lg) var(--spacing-md);
    margin-bottom: var(--spacing-md); /* Espace avant le footer */
}

a {
    text-decoration: none;
    color: var(--text-dark);
    transition: color 0.3s ease;
}

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


   /* Animations et effets modernes */
   @keyframes float {
       0%, 100% { transform: translateY(0px); }
       50% { transform: translateY(-20px); }
   }
   
   @keyframes glow {
       0%, 100% { box-shadow: 0 0 20px rgba(255, 107, 107, 0.5); }
       50% { box-shadow: 0 0 40px rgba(255, 107, 107, 0.8); }
   }
   
   @keyframes slideIn {
       from { opacity: 0; transform: translateY(50px); }
       to { opacity: 1; transform: translateY(0); }
   }

   .hero {
       background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
       min-height: 60vh;
       display: flex;
       flex-direction: column;
       justify-content: center;
       align-items: center;
       position: relative;
       overflow: hidden;
   }

   .hero::before {
       content: '';
       position: absolute;
       top: 0;
       left: 0;
       right: 0;
       bottom: 0;
       background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
       animation: float 6s ease-in-out infinite;
   }

   .slogan {
       font-size: clamp(2.5rem, 5vw, 4rem);
       color: white;
       text-align: center;
       margin: 2rem 0;
       font-weight: 700;
       text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
       animation: slideIn 1s ease-out;
       position: relative;
       z-index: 2;
   }

   .subtitle {
       font-size: 1.2rem;
       color: rgba(255,255,255,0.9);
       text-align: center;
       margin-bottom: 3rem;
       animation: slideIn 1s ease-out 0.3s both;
       position: relative;
       z-index: 2;
   }

   /* Cards des services */
   .services-grid {
       display: grid;
       grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
       gap: 2rem;
       max-width: 1200px;
       margin: 0 auto;
       padding: 4rem 2rem;
   }

   .service-card {
       background: linear-gradient(145deg, #ffffff, #f0f0f0);
       border-radius: 20px;
       padding: 2rem;
       text-align: center;
       box-shadow: 0 10px 30px rgba(0,0,0,0.1);
       transition: all 0.3s ease;
       position: relative;
       overflow: hidden;
       animation: slideIn 1s ease-out;
   }

   .service-card:nth-child(1) { animation-delay: 0.2s; }
   .service-card:nth-child(2) { animation-delay: 0.4s; }
   .service-card:nth-child(3) { animation-delay: 0.6s; }

   .service-card::before {
       content: '';
       position: absolute;
       top: 0;
       left: -100%;
       width: 100%;
       height: 100%;
       background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
       transition: left 0.5s ease;
   }

   .service-card:hover::before {
       left: 100%;
   }

   .service-card:hover {
       transform: translateY(-10px) scale(1.02);
       box-shadow: 0 20px 40px rgba(0,0,0,0.2);
   }

   .service-icon {
       font-size: 4rem;
       margin-bottom: 1rem;
       display: block;
       animation: float 3s ease-in-out infinite;
   }

   .sticker-card .service-icon { animation-delay: 0s; }
   .polaroid-card .service-icon { animation-delay: 1s; }
   .photostrip-card .service-icon { animation-delay: 2s; }

   .service-title {
       font-size: 1.6rem;
       font-weight: 700;
       margin-bottom: 1rem;
       background: linear-gradient(45deg, #667eea, #764ba2);
       -webkit-background-clip: text;
       -webkit-text-fill-color: transparent;
       background-clip: text;
   }

   .service-desc {
       color: #666;
       line-height: 1.6;
       margin-bottom: 2rem;
   }

   .cta-button {
       background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
       color: white;
       border: none;
       padding: 1rem 2rem;
       border-radius: 50px;
       font-size: 1.1rem;
       font-weight: 600;
       cursor: pointer;
       transition: all 0.3s ease;
       text-decoration: none;
       display: inline-block;
       position: relative;
       overflow: hidden;
   }

   .cta-button::before {
       content: '';
       position: absolute;
       top: 50%;
       left: 50%;
       width: 0;
       height: 0;
       border-radius: 50%;
       background: rgba(255,255,255,0.3);
       transition: all 0.3s ease;
       transform: translate(-50%, -50%);
   }

   .cta-button:hover::before {
       width: 300px;
       height: 300px;
   }

   .cta-button:hover {
       transform: translateY(-2px);
       box-shadow: 0 10px 20px rgba(255,107,107,0.4);
   }

   .features {
       background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
       padding: 4rem 2rem;
       color: var(--shadow-light);
   }

   .features-title {
       text-align: center;
       font-size: 3rem;
       color: #333;
       margin-bottom: 3rem;
       animation: slideIn 1s ease-out;
   }

   .features-grid {
       display: grid;
       grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
       gap: 2rem;
       max-width: 1000px;
       margin: 0 auto;
   }

   .feature-item {
       text-align: center;
       padding: 2rem;
       color: #333;
       background: white;
       border-radius: 15px;
       box-shadow: 0 5px 15px rgba(0,0,0,0.1);
       transition: transform 0.3s ease;
       animation: slideIn 1s ease-out;
   }

   .feature-emoji{
    font-size: 30px;
   }

   .feature-item:nth-child(1) { animation-delay: 0.3s; }
   .feature-item:nth-child(2) { animation-delay: 0.5s; }
   .feature-item:nth-child(3) { animation-delay: 0.7s; }
   .feature-item:nth-child(4) { animation-delay: 0.9s; }

   .feature-item:hover {
       transform: translateY(-5px);
   }

/* ==============================================
   STYLES SPÉCIFIQUES POUR LA PAGE STICKERS
   ============================================== */

.header-nav {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-sm);
    flex-wrap: wrap;
    justify-content: center;
}

.nav-home {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.151);
    border-radius: 6px;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    font-size: var(--font-sm);
}

.nav-home:hover {
    background-color: var(--primary-color);
    transform: translateY(-1px);
    color: white;
}

.cart-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.151);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    font-size: var(--font-md);
    color: white;
}

.cart-header:hover {
    background-color: var(--primary-color);
    transform: translateY(-1px);
    color: white;
    
}

.cart-count {
    background: #ff4444;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 10px;
    font-weight: bold;
    min-width: 18px;
    text-align: center;
}




/* Nouvelle galerie moderne */
.gallery-modern {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
    padding: var(--spacing-lg);
    max-width: none;
    margin: 0;
    width: 100%;
}

.product-card-modern {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    min-height: 520px;
    width: 100%;
}

.product-card-modern:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.product-image {
    position: relative;
    overflow: hidden;
    height: 340px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card-modern:hover .product-image img {
    transform: scale(1.1);
}

.product-info-modern {
    padding: var(--spacing-xl);
    text-align: center;
}

/* .product-info-modern h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    color: var(--text-dark);
} */

.product-info-modern p {
    color: var(--text-light);
    margin-bottom: var(--spacing-lg);
    line-height: 1.6;
    font-size: 1rem;
}

.product-info-modern .price {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: var(--spacing-xl);
    text-shadow: 0 0 10px rgba(0, 123, 255, 0.5);
}

.btn-modern {
    background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.btn-modern::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transition: all 0.3s ease;
    transform: translate(-50%, -50%);
}

.btn-modern:hover::before {
    width: 300px;
    height: 300px;
}

.btn-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255,107,107,0.4);
}

.tabs {
    display: flex;
    justify-content: center;
    gap: var(--spacing-lg);
    padding: var(--spacing-lg);
    flex-wrap: wrap;
    width: 100%;
}

.tab {
    padding: 12px 25px;
    background: rgba(255, 255, 255, 0.151);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    color: var(--text-white);
}

.tab.active,
.tab:hover {
    background-color: var(--primary-color);
    transform: translateY(-1px);
}

.content {
    display: none;
    padding: var(--spacing-lg);
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    min-height: calc(100vh - 200px);
}

.content.active {
    display: block;
    animation: slideIn 0.5s ease-out;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
    justify-items: center;
    width: 100%;
}

.product-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    transition: all 0.3s ease;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 10px var(--shadow-light);
    max-width: 280px;
    width: 100%;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px var(--shadow-light);
}

.product-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.product-info {
    padding: var(--spacing-md);
}

.product-info h3 {
    margin-bottom: 8px;
    color: var(--text-white);
}

.product-info p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-sm);
}

.price {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
}

.upload-area {
    background: rgba(255, 255, 255, 0.05);
    border: 2px dashed var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 40px 20px;
    text-align: center;
    margin: var(--spacing-lg) auto;
    max-width: 500px;
    transition: all 0.3s ease;
    cursor: pointer;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.upload-area:hover {
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.1);
}

.upload-area i {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
    color: var(--primary-color);
}

/* Galerie d'images personnalisées */
.custom-gallery {
    margin-top: var(--spacing-xl);
}

.custom-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.custom-image-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.custom-image-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.custom-image-wrapper {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.custom-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.custom-image-card:hover .custom-image-wrapper img {
    transform: scale(1.05);
}

.remove-custom-image {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff4444;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    opacity: 0;
    transform: scale(0.8);
}

.custom-image-card:hover .remove-custom-image {
    opacity: 1;
    transform: scale(1);
}

.remove-custom-image:hover {
    background: #ff4444;
    color: white;
    transform: scale(1.1);
}

.custom-image-info {
    padding: var(--spacing-lg);
    text-align: center;
}

.custom-image-info h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.custom-image-info p {
    color: var(--text-light);
    margin-bottom: var(--spacing-sm);
    font-size: 0.9rem;
}

.custom-image-price {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
}

/* Responsive pour les images personnalisées */
@media (max-width: 768px) {
    .custom-images-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: var(--spacing-md);
    }
    
    .custom-image-wrapper {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .custom-images-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .custom-image-wrapper {
        height: 220px;
    }
}

/* ==============================================
   STYLES POLAROID PAGE
   ============================================== */

.polaroid-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-lg);
}

.upload-section {
    margin-bottom: var(--spacing-xl);
}

.polaroid-gallery {
    margin-top: var(--spacing-xl);
}

.polaroid-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.polaroid-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: var(--spacing-lg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.polaroid-card:hover {
    transform: translateY(-8px) rotate(-1deg);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.polaroid-frame {
    background: white;
    border-radius: 10px;
    padding: 15px 15px 20px 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: var(--spacing-md);
    position: relative;
}

.polaroid-image {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    border-radius: 5px;
    margin-bottom: 15px;
}

.polaroid-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.polaroid-card:hover .polaroid-image img {
    transform: scale(1.05);
}

.remove-polaroid {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff4444;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    opacity: 0;
    transform: scale(0.8);
    z-index: 10;
}

.polaroid-card:hover .remove-polaroid {
    opacity: 1;
    transform: scale(1);
}

.remove-polaroid:hover {
    background: #ff4444;
    color: white;
    transform: scale(1.1);
}

.polaroid-message-area {
    position: relative;
    height: 80px;
}

.polaroid-message-input {
    width: 100%;
    height: 60px;
    border: none;
    background: transparent;
    font-family: 'Caveat', cursive;
    font-size: 1.1rem;
    color: #333;
    resize: none;
    outline: none;
    padding: 5px;
    text-align: center;
    line-height: 1.3;
}

.polaroid-message-input::placeholder {
    color: #999;
    font-style: italic;
}

.char-counter {
    position: absolute;
    bottom: 2px;
    right: 5px;
    font-size: 0.8rem;
    color: #666;
    font-family: 'Poppins', sans-serif;
}

.polaroid-info {
    text-align: center;
}

.polaroid-info h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.polaroid-actions {
    margin-top: var(--spacing-sm);
}

.order-summary {
    margin-top: var(--spacing-xl);
    display: flex;
    justify-content: center;
}

.summary-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: var(--spacing-xl);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-align: center;
    max-width: 400px;
    width: 100%;
}

.summary-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: var(--spacing-lg);
    color: #333;
}

.summary-details {
    margin-bottom: var(--spacing-lg);
}

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

.summary-item.total {
    border-top: 2px solid #eee;
    padding-top: var(--spacing-sm);
    margin-top: var(--spacing-md);
    font-size: 1.1rem;
    color: #333;
}

/* Responsive polaroid */
@media (max-width: 768px) {
    .polaroid-container {
        padding: var(--spacing-md);
    }
    
    .polaroid-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: var(--spacing-lg);
    }
    
    .polaroid-image {
        height: 200px;
    }
    
    .summary-card {
        padding: var(--spacing-lg);
    }
}

@media (max-width: 480px) {
    .polaroid-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .polaroid-card {
        padding: var(--spacing-md);
    }
    
    .polaroid-image {
        height: 180px;
    }
}

.form-container {
    max-width: 500px;
    margin: var(--spacing-xl) auto var(--spacing-xl) auto;
    background: rgba(255, 255, 255, 0.05);
    padding: var(--spacing-xl);
    border-radius: var(--border-radius-md);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 10px var(--shadow-light);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-white);
    font-size: var(--font-md);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: var(--spacing-md);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    font-size: var(--font-sm);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.form-group input::placeholder {
    color: var(--text-light);
}

.price-info {
    background: rgba(0, 123, 255, 0.1);
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius-md);
    padding: var(--spacing-md);
    margin: var(--spacing-md) 0;
    text-align: center;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.cart {
    background: rgba(255, 255, 255, 0.05);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-md);
    margin-top: var(--spacing-lg);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 0 10px var(--shadow-light);
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.cart-total {
    font-size: 1.3rem;
    font-weight: bold;
    text-align: right;
    margin-top: var(--spacing-md);
    color: var(--primary-color);
}

.remove-btn {
    background: #dc2626;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.remove-btn:hover {
    background: #b91c1c;
    transform: scale(1.15);
}
    
/* ==============================================
   FOOTER STYLES
   ============================================== */

footer {
    text-align: center;
    font-size: 0.9em;
    color: var(--text-dark);
    width: 100%;
    padding: var(--spacing-xs) 0;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 999;
    flex-shrink: 0;
}

footer p {
    margin: 3px;
}

/* ==============================================
   RESPONSIVE DESIGN - MOBILE FIRST
   ============================================== */

/* Mobile (≤ 768px) */
@media screen and (max-width: 768px) {
    main {
        padding-top: 100px;
        padding-bottom: 60px;
    }
    
    .logo {
        font-size: 40px;
        -webkit-text-stroke: 2px var(--text-white);
    }
    
    .sb {
        font-size: var(--font-xs);
    }
    
    .hero {
        min-height: calc(100vh - 160px);
        padding: 2rem 1rem;
    }
    
    .hero h1 {
        font-size: 18px;
        text-align: center;
    }

    .slogan {
        font-size: 2rem;
    }

    .swiper {
        width: 90%;
    }

    .swiper-slide {
        width: 200px;
        height: 200px;
    }

    .polaroid {
        width: 80%;
        font-size: var(--font-xs);
    }

    button {
        width: 80%;
        font-size: var(--font-sm);
    }

    .btn_choice {
        flex-direction: column;
        gap: var(--spacing-sm);
        width: 90%;
        margin: 0 auto;
    }

    .btn_choice .btn button {
        width: 100%;
        min-width: 250px;
        font-size: var(--font-sm);
    }

    .services-grid {
        grid-template-columns: 1fr;
        padding: 2rem 1rem;
    }

    /* Stickers page responsive */
    .header-nav {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .gallery-modern {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
        padding: var(--spacing-md);
    }
    
    .product-image {
        height: 200px;
    }
    
    .tabs { 
        flex-direction: column; 
        align-items: center;
        gap: var(--spacing-md);
    }
    
    .gallery { 
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .content {
        padding: var(--spacing-md);
        min-height: calc(100vh - 160px);
    }
    
    .form-container {
        margin: var(--spacing-lg) auto var(--spacing-lg) auto;
        padding: var(--spacing-lg);
    }

    footer {
        font-size: 0.8em;
        padding: 6px 0;
    }
}

/* Tablette Portrait (769px - 1024px) */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .logo {
        font-size: 50px;
    }
    
    .sb {
        font-size: var(--font-sm);
    }

    .hero h1 {
        font-size: 20px;
    }

    .swiper {
        width: 85%;
    }

    .swiper-slide {
        width: 200px;
        height: 200px;
    }

    .btn_choice {
        flex-direction: row;
        flex-wrap: wrap;
        gap: var(--spacing-md);
        justify-content: center;
    }

    .btn_choice .btn button {
        min-width: 180px;
        font-size: var(--font-sm);
    }
    
    .gallery-modern {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: var(--spacing-lg);
        padding: var(--spacing-lg);
    }
    
    .product-image {
        height: 220px;
    }
}

/* Desktop (> 1024px) */
@media screen and (min-width: 1025px) {
    .swiper {
        width: 60%;
    }

    .swiper-slide {
        width: 250px;
        height: 250px;
    }

    .polaroid {
        width: 50%;
    }
}

/* ========================================== */
/* SYSTÈME E-COMMERCE - PANIER ET MODAL */
/* ========================================== */

.add-to-cart-btn {
    background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
    width: 100%;
    margin-top: 10px;
}

.add-to-cart-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transition: all 0.3s ease;
    transform: translate(-50%, -50%);
}

.add-to-cart-btn:hover::before {
    width: 300px;
    height: 300px;
}

.add-to-cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255,107,107,0.4);
}

.product-price {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--primary-color);
    margin: 10px 0;
    text-shadow: 0 0 10px rgba(0, 123, 255, 0.5);
}

/* Modal du panier */
.cart-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.cart-modal-content {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.8));
    margin: 5% auto;
    padding: 30px;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close:hover {
    color: #000;
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    gap: 15px;
}

.cart-item-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.cart-item-info {
    flex-grow: 1;
}

.cart-item-name {
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.cart-item-price {
    color: var(--primary-color);
    font-weight: bold;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
}

.quantity-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.quantity-btn:hover {
    background: var(--primary-hover);
    transform: scale(1.1);
}

.quantity {
    font-weight: bold;
    min-width: 30px;
    text-align: center;
}

.remove-btn {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
}

.remove-btn:hover {
    background: #c82333;
    transform: scale(1.05);
}

.cart-total {
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
    margin: 20px 0;
    color: var(--primary-color);
    padding: 15px;
    background: rgba(0, 123, 255, 0.1);
    border-radius: 10px;
}

.checkout-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(45deg, #28a745, #20c997);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.checkout-btn:hover {
    background: linear-gradient(45deg, #20c997, #28a745);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
}

.empty-cart {
    text-align: center;
    padding: 40px;
    color: #666;
}

.empty-cart i {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

/* Responsive pour la galerie moderne */
@media (max-width: 1200px) {
    .gallery-modern {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }
    
    .product-card-modern {
        min-height: 480px;
    }
    
    .product-image {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .gallery-modern {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-sm);
        padding: var(--spacing-md);
    }
    
    .product-image {
        height: 250px;
    }
    
    .product-card-modern {
        min-height: 420px;
    }
    
    .product-info-modern h3 {
        font-size: 1.3rem;
    }
    
    .product-info-modern .price {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .gallery-modern {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
        padding: var(--spacing-sm);
    }
    
    .product-card-modern {
        min-height: 450px;
    }
    
    .product-image {
        height: 280px;
    }
    
    .product-info-modern {
        padding: var(--spacing-lg);
    }
    
    .cart-modal-content {
        width: 95%;
        padding: 20px;
        margin: 10% auto;
    }
}

/* ==============================================
   PHOTOSTRIP STYLES
   ============================================== */

.photostrip-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.photostrip-gallery {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-lg);
    padding: 30px;
    margin-top: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.photostrip-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.photostrip-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.photostrip-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.2);
}

.photostrip-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    position: relative;
}

.remove-photostrip {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 0, 0, 0.8);
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.remove-photostrip:hover {
    background: rgba(255, 0, 0, 1);
}

.photostrip-info {
    padding: 15px;
    text-align: center;
}

.photostrip-info h4 {
    color: #333;
    margin: 0;
    font-size: 0.9rem;
}

/* Configuration du photostrip */
.photostrip-config {
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--border-radius-lg);
    padding: 30px;
    margin-top: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.config-section {
    margin-bottom: 30px;
}

.config-section h4 {
    color: var(--text-white);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Options de format */
.format-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.format-option {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius-md);
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.format-option:hover,
.format-option.selected {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.3);
}

.format-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 10px;
}

.format-text {
    display: block;
    font-weight: bold;
    color: var(--text-white);
    margin-bottom: 5px;
}

.format-desc {
    display: block;
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Options d'orientation */
.orientation-option {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius-md);
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-white);
}

.orientation-option:hover,
.orientation-option.selected {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* Options de style */
.style-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.style-option {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius-md);
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-white);
}

.style-option:hover,
.style-option.selected {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* Aperçu du photostrip */
.photostrip-preview {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-md);
    border: 2px dashed rgba(255, 255, 255, 0.3);
    margin: 20px 0;
}

.preview-strip {
    background: white;
    border-radius: 8px;
    padding: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.preview-strip.horizontal {
    display: flex;
    flex-direction: row;
    gap: 5px;
}

.preview-strip.vertical {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.preview-photo {
    border-radius: 4px;
    object-fit: cover;
    transition: all 0.3s ease;
    cursor: move;
    border: none;
}

.preview-photo:hover {
    border-color: var(--primary-color);
    transform: scale(1.02);
    border: 0.5px solid var(--primary-color);
}

.preview-photo.dragging {
    opacity: 0.5;
    transform: rotate(5deg);
}

.preview-photo.drag-over {
    border: 1px solid #28a745;
    border-style: solid;
}

.preview-strip.horizontal .preview-photo {
    width: 250px;
    height: 200px;
}

.preview-strip.vertical .preview-photo {
    width: 200px;
    height: 250px;
}

.preview-photo.noir-blanc {
    filter: grayscale(100%);
}

.preview-placeholder {
    color: var(--text-light);
    text-align: center;
    padding: 20px;
}

/* Pricing du photostrip */
.photostrip-pricing {
    text-align: center;
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.price-display {
    margin-bottom: 20px;
}

.price-label {
    color: var(--text-light);
    font-size: 1.1rem;
}

.price-value {
    color: var(--text-white);
    font-size: 1.5rem;
    font-weight: bold;
    margin-left: 10px;
}

/* Responsive pour photostrip */
@media (max-width: 768px) {
    .photostrip-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .format-options {
        grid-template-columns: 1fr;
    }
    
    .style-options {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .photostrip-config {
        padding: 20px;
    }
}

/* ====== FORM PAGE STYLES ====== */
.checkout-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Très grands écrans */
@media (min-width: 1400px) {
    .checkout-container {
        max-width: 1400px;
        gap: 60px;
        padding: 30px;
    }
    
    .checkout-form,
    .order-summary {
        padding: 40px;
    }
    
    .form-header h2 {
        font-size: 1.7rem;
    }
    
    .form-group input {
        padding: 18px;
        font-size: 1.1rem;
    }
    
    .submit-btn {
        padding: 20px 35px;
        font-size: 1.2rem;
    }
    
    .summary-header h3 {
        font-size: 1.5rem;
    }
    
    .cart-item {
        padding: 20px;
    }
    
    .item-info h4 {
        font-size: 1.2rem;
    }
}

@media (min-width: 1200px) and (max-width: 1399px) {
    .checkout-container {
        gap: 50px;
        padding: 25px;
    }
    
    .checkout-form,
    .order-summary {
        padding: 35px;
    }
}

.checkout-form {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    height: fit-content;
}

.form-header {
    text-align: center;
    margin-bottom: 30px;
}

.form-header h2 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.form-header i {
    margin-right: 10px;
}

.form-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

.delivery-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group label i {
    color: var(--primary-color);
    width: 16px;
}

.form-group input {
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.submit-btn {
    margin-top: 20px;
    padding: 18px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
}

.submit-btn:hover {
    background: linear-gradient(135deg, #0056b3, var(--primary-color));
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 123, 255, 0.3);
}

.order-summary {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    height: fit-content;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 20px;
}

.summary-header {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.summary-header h3 {
    color: var(--primary-color);
    margin: 0;
    font-size: 1.3rem;
}

.summary-header i {
    margin-right: 10px;
}

.cart-summary-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cart-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.cart-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.item-main {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
}

.item-info {
    flex: 1;
}

.item-info h4 {
    margin: 0 0 8px 0;
    color: var(--text-light);
    font-size: 1.1rem;
}

.item-description {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 5px 0;
    line-height: 1.4;
}

.item-price {
    font-weight: bold;
    color: var(--primary-color);
    font-size: 1.1rem;
    margin: 8px 0 0 0;
}

.remove-item {
    background: rgba(220, 53, 69, 0.2);
    border: 1px solid rgba(220, 53, 69, 0.3);
    color: #dc3545;
    border-radius: 8px;
    padding: 8px 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    align-self: flex-end;
    flex-shrink: 0;
    height: fit-content;
    margin-left: auto; 
    /* Place à l'extrême droite */
}

.remove-item:hover {
    background: rgba(220, 53, 69, 0.3);
    transform: scale(1.05);
}

.item-photos {
    margin-top: 0;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.photos-preview {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.cart-photo-mini {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.more-photos {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.cart-total-section {
    border-top: 2px solid rgba(255, 255, 255, 0.2);
    padding-top: 20px;
    margin-top: 10px;
}

.total-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 10px 0;
    font-size: 1rem;
    color: var(--text-light);
}

.total-line .free {
    color: var(--success-color);
    font-weight: 500;
}

.total-line .delivery-fee {
    color: #ffc107;
    font-weight: 500;
}

.final-total {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.empty-cart {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.empty-cart i {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--text-muted);
}

.empty-cart h3 {
    color: var(--text-light);
    margin-bottom: 10px;
}

.empty-cart p {
    margin-bottom: 25px;
    line-height: 1.5;
}

@media (max-width: 968px) {
    .checkout-container {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 20px 15px;
    }
    
    .order-summary {
        position: static;
        order: 1;
    }
    
    .checkout-form {
        order: 2;
    }
}

@media (max-width: 768px) {
    .checkout-container {
        padding: 15px 10px;
        gap: 25px;
    }
    
    .checkout-form,
    .order-summary {
        padding: 20px 15px;
        border-radius: 12px;
    }
    
    .form-header h2 {
        font-size: 1.3rem;
    }
    
    .form-group input {
        padding: 12px;
        font-size: 0.95rem;
    }
    
    .submit-btn {
        padding: 15px 25px;
        font-size: 1rem;
    }
    
    .item-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .remove-item {
        align-self: flex-end;
        margin-top: -10px;
    }
    
    .photos-preview {
        flex-wrap: wrap;
    }
    
    .summary-header h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .checkout-container {
        padding: 10px 5px;
        gap: 20px;
    }
    
    .checkout-form,
    .order-summary {
        padding: 15px 12px;
        border-radius: 10px;
    }
    
    .form-header {
        text-align: center;
        margin-bottom: 20px;
    }
    
    .form-header h2 {
        font-size: 1.2rem;
    }
    
    .form-subtitle {
        font-size: 0.9rem;
    }
    
    .form-group {
        gap: 6px;
    }
    
    .form-group label {
        font-size: 0.9rem;
    }
    
    .form-group input {
        padding: 10px;
        font-size: 0.9rem;
    }
    
    .submit-btn {
        padding: 12px 20px;
        font-size: 0.95rem;
    }
    
    .cart-item {
        padding: 12px;
    }
    
    .item-info h4 {
        font-size: 1rem;
    }
    
    .item-description {
        font-size: 0.8rem;
    }
    
    .item-price {
        font-size: 1rem;
    }
    
    .cart-photo-mini {
        width: 35px;
        height: 35px;
    }
    
    .more-photos {
        width: 35px;
        height: 35px;
        font-size: 0.65rem;
    }
    
    .total-line {
        font-size: 0.9rem;
    }
    
    .final-total {
        font-size: 1rem;
    }
    
    .summary-header h3 {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .checkout-container {
        padding: 8px 3px;
        gap: 15px;
    }
    
    .checkout-form,
    .order-summary {
        padding: 12px 10px;
    }
    
    .form-header h2 {
        font-size: 1.1rem;
    }
    
    .form-group input {
        padding: 8px;
    }
    
    .submit-btn {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    .cart-item {
        padding: 10px;
    }
    
    .item-header {
        gap: 8px;
    }
    
    .remove-item {
        padding: 6px 8px;
        font-size: 0.8rem;
    }
    
    .cart-photo-mini {
        width: 30px;
        height: 30px;
    }
    
    .more-photos {
        width: 30px;
        height: 30px;
        font-size: 0.6rem;
    }
    
    .cart-total-section {
        padding-top: 15px;
    }
    
    .total-line {
        font-size: 0.85rem;
    }
    
    .final-total {
        font-size: 0.95rem;
    }
}

@media (max-width: 360px) {
    .checkout-container {
        padding: 5px 2px;
        gap: 12px;
    }
    
    .checkout-form,
    .order-summary {
        padding: 10px 8px;
    }
    
    .form-header {
        margin-bottom: 15px;
    }
    
    .form-header h2 {
        font-size: 1rem;
    }
    
    .form-subtitle {
        font-size: 0.8rem;
    }
    
    .form-group label {
        font-size: 0.85rem;
    }
    
    .form-group input {
        padding: 6px;
        font-size: 0.85rem;
    }
    
    .submit-btn {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
    
    .cart-item {
        padding: 8px;
    }
    
    .item-info h4 {
        font-size: 0.9rem;
    }
    
    .item-description {
        font-size: 0.75rem;
    }
    
    .item-price {
        font-size: 0.9rem;
    }
    
    .remove-item {
        padding: 4px 6px;
        font-size: 0.75rem;
    }
    
    .cart-photo-mini {
        width: 25px;
        height: 25px;
    }
    
    .more-photos {
        width: 25px;
        height: 25px;
        font-size: 0.55rem;
    }
    
    .summary-header h3 {
        font-size: 1rem;
    }
    
    .total-line {
        font-size: 0.8rem;
    }
    
    .final-total {
        font-size: 0.9rem;
    }
}

/* Orientation paysage pour mobiles */
@media (max-height: 500px) and (orientation: landscape) {
    .checkout-container {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        padding: 10px;
    }
    
    .order-summary {
        position: static;
        order: 2;
    }
    
    .checkout-form {
        order: 1;
    }
    
    .form-header {
        margin-bottom: 15px;
    }
    
    .form-group {
        gap: 4px;
    }
    
    .cart-item {
        padding: 8px;
    }
}

/* ====== CONFIRMATION PAGE STYLES ====== */
.confirmation-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 20px;
}

.success-icon {
    font-size: 4rem;
    color: var(--success-color);
    margin: 20px 0;
}

.confirmation-message {
    font-size: 1.1rem;
    color: var(--text-light);
    margin: 20px 0;
    line-height: 1.6;
}

.order-summary {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    margin: 30px 0;
    text-align: left;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.order-details h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.order-info {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
}

.order-item {
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    background: rgba(255, 255, 255, 0.05);
}

.order-photo {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    margin: 5px;
}

.photo-name {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 5px 0;
}

.order-total {
    text-align: center;
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-top: 20px;
    padding: 20px;
    background: rgba(0, 123, 255, 0.1);
    border-radius: 8px;
    border: 2px solid var(--primary-color);
}

.order-pricing {
    background: rgba(0, 123, 255, 0.1);
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
    border: 1px solid rgba(0, 123, 255, 0.3);
}

.pricing-line {
    display: flex;
    justify-content: space-between;
    margin: 8px 0;
    color: var(--text-light);
}

.pricing-line.total-line {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 1.1rem;
    color: var(--primary-color);
}

.next-steps {
    background: rgba(40, 167, 69, 0.1);
    border-radius: 12px;
    padding: 20px;
    margin: 30px 0;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.next-steps h3 {
    color: var(--success-color);
    margin-bottom: 15px;
}

.next-steps ul {
    list-style: none;
    padding: 0;
}

.next-steps li {
    margin: 10px 0;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.next-steps i {
    color: var(--success-color);
    margin-right: 10px;
    width: 20px;
}

.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 30px 0;
    flex-wrap: wrap;
}

.cta-button.secondary {
    background: rgba(108, 117, 125, 0.2);
    border: 1px solid rgba(108, 117, 125, 0.5);
    color: var(--text-light);
}

.cta-button.secondary:hover {
    background: rgba(108, 117, 125, 0.3);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .cart-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .photos-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .confirmation-container {
        padding: 10px;
    }
}
