:root {
    --primary: #2178d0;
    --primary-light: #2178d0;
    --secondary: #e74c3c;
    --accent: #d05649;
    --light: #ecf0f1;
    --dark: #2178d0;
    --text-light: #7f8c8d;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.12);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.16);
    --shadow-lg: 0 10px 20px rgba(0,0,0,0.19);
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    /* --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%); */
    --gradient-primary: linear-gradient(135deg, #2178d0 0%, #033363 100%);

}

/* Base Styles */
body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-color);
    overflow-x: hidden;
    background-color: var(--light);
}


/* ------ Style amélioré pour le Service Header ------ */
.service-header {
    background: linear-gradient(135deg, #2178d0 0%, #06203b 100%);
    color: white;
    padding: 1rem 2rem; 
    position: relative;
    box-shadow: var(--shadow-lg);
    margin-bottom: 2rem;
    min-height: 400px; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    transition: all var(--transition-normal);
}

/* Animation d'entrée */
.service-header.animate__animated {
    animation-duration: 0.8s;
}

/* Effet de lumière animé */
.service-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(255,255,255,0.15) 0%, transparent 60%);
    animation: lightRotation 15s infinite linear;
    z-index: 0;
}

.service-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    font-weight: 800;
    margin: 0 0 1rem 0;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    line-height: 1.2;
    letter-spacing: -0.5px;
    animation: fadeIn 0.8s ease-out both;
}

.service-icon {
    font-size: 2.5rem; 
    color: #d05649;
    margin-right: 1rem;
    vertical-align: middle;
    display: inline-block;
    transform: scale(0);
    animation: iconPop 0.6s 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.service-subtitle {
    font-weight: 400;
    font-size: 1.2rem; 
    opacity: 0.9;
    max-width: 800px;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
    line-height: 1.6;
    transform: translateY(20px);
    opacity: 0;
    animation: fadeInUp 0.6s 0.4s ease-out forwards;
}

.service-badge {
    display: inline-block;
    background-color: var(--accent);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-top: 1rem;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
    transform: scale(0);
    animation: badgePop 0.5s 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    text-transform: uppercase;
    letter-spacing: 0.0625rem;
}

/* Effet de particules */
.service-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h20v20H0z' fill='none'/%3E%3Cpath d='M10 10a3 3 0 1 0 0-6 3 3 0 0 0 0 6z' fill='rgba(255,255,255,0.1)'/%3E%3C/svg%3E");
    opacity: 0.3;
    z-index: 0;
}


/* Animations personnalisées */
@keyframes lightRotation {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes titleReveal {
    to { 
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes iconPop {
    0% { transform: scale(0); }
    80% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

@keyframes badgePop {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

@keyframes fadeInUp {
    from { 
        opacity: 0;
        transform: translateY(20px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

/* Version mobile */
@media (max-width: 768px) {
    .service-header {
        padding: 3rem 1.5rem;
        min-height: 180px;
        text-align: center;
    }
    
    .service-title {
        font-size: 2rem;
    }
    
    .service-subtitle {
        font-size: 1rem;
    }
    
    .service-icon {
        font-size: 2rem;
    }
    
    .service-badge {
        margin: 1rem auto 0;
    }
}

.customization-panel {
    background-color: white;
    border-radius: 0 0 8px 8px;
    box-shadow: var(--shadow-lg);
    padding: 2rem;
    margin-bottom: 2rem;
}

/* Tab System - Version corrigée */
.tab-container {
    display: inline-flex;
    background: #f5f5f5;
    border-radius: 50px;
    padding: 6px;
    margin-left: 35%;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
    position: relative;
    border: 1px solid #e0e0e0;
}

.tab {
    padding: 0.8rem 1.8rem;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-light);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    text-align: center;
    border-radius: 50px;
    margin: 0;
    min-width: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tab:hover {
    color: var(--primary);
}

.tab.active {
    color: white;
    background: var(--gradient-primary);
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(44, 62, 80, 0.2);
}

.tab i {
    margin-right: 0.7rem;
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.tab.active i {
    transform: scale(1.1);
    color: var(--accent);
}

/* Animation pour le contenu des onglets */
.tab-content {
    display: none;
    animation: fadeIn 0.4s ease forwards;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Version mobile */
@media (max-width: 768px) {
    .tab-container {
        width: 100%;
        display: flex;
    }
    
    .tab {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
        min-width: auto;
        flex: 1;
    }
    
    .tab i {
        margin-right: 0.5rem;
        font-size: 1rem;
    }
}
/* Dans votre CSS */
.gallery-item.selected {
    position: relative;
    border: 3px solid var(--primary);
}

.gallery-item.selected::after {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary);
    color: white;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}
/* Gallery Section - Version améliorée */
.gallery-section {
    padding: 3rem 0;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.gallery-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(231, 76, 60, 0.05) 0%, transparent 70%);
    z-index: -1;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #2178d0;
    margin-bottom: 1rem;
    text-align: center;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
    text-transform: uppercase;
    letter-spacing: 0.0625rem;
    animation: titleReveal 0.8s ease-out forwards;
}

.section-title i {
    color: var(--secondary);
    margin-right: 15px;
    font-size: 1.8rem;
    vertical-align: middle;
    animation: iconBounce 2s infinite ease-in-out;
}

.section-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto 2.5rem;
    text-align: center;
    padding: 0 1rem;
    position: relative;
    opacity: 0;
    animation: fadeInUp 0.6s 0.3s ease-out forwards;
}

.section-description::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    margin: 1.5rem auto 0;
    border-radius: 2px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.gallery-item {
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: none;
    aspect-ratio: 1/1;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    animation: itemAppear 0.6s forwards;
}

.gallery-item:nth-child(1) { animation-delay: 0.1s; }
.gallery-item:nth-child(2) { animation-delay: 0.2s; }
.gallery-item:nth-child(3) { animation-delay: 0.3s; }
.gallery-item:nth-child(4) { animation-delay: 0.4s; }
.gallery-item:nth-child(5) { animation-delay: 0.5s; }
.gallery-item:nth-child(6) { animation-delay: 0.6s; }
.gallery-item:nth-child(7) { animation-delay: 0.7s; }
.gallery-item:nth-child(8) { animation-delay: 0.8s; }

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(44,62,80,0.3) 0%, rgba(0,0,0,0) 60%);
    z-index: 1;
    transition: all 0.4s ease;
}

.gallery-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.gallery-item:hover::before {
    background: linear-gradient(135deg, rgba(44,62,80,0.1) 0%, rgba(0,0,0,0) 60%);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease, filter 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
    filter: brightness(1.05);
}

/* Animations */
@keyframes titleReveal {
    from {
        opacity: 0;
        transform: translate(-50%, 20px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

@keyframes iconBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes itemAppear {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Badge pour les nouveaux designs */
.new-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--secondary);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.0625rem;
    z-index: 2;
    animation: pulse 2s infinite;
}

/* Effet au survol amélioré */
.gallery-item:hover .new-badge {
    animation: bounce 0.5s;
}

@keyframes bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* Version mobile */
@media (max-width: 768px) {
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-description {
        font-size: 1rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1.2rem;
    }
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
    animation: fadeIn 0.3s;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-img {
    max-height: 80vh;
    max-width: 90vw;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.lightbox-nav:hover {
    background: rgba(0,0,0,0.8);
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

.lightbox-counter {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1.2rem;
    background: rgba(0,0,0,0.5);
    padding: 5px 15px;
    border-radius: 20px;
}
.select-btn {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--secondary);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    z-index: 1001;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.close-btn {
    position: absolute;
    bottom: 70px; /* Positionné au-dessus du bouton Sélectionner */
    left: 50%;
    transform: translateX(-50%);
    background: #f41a02;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    z-index: 10;
}

.close-btn:hover {
    background: #5a6268;
    transform: translateX(-50%) scale(1.05);
}

.close-btn i {
    font-size: 1rem;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
    }
    
    .lightbox-nav {
        width: 50px;
        height: 50px;
        font-size: 8rem;
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
}

/* Upload Section */
.upload-section {
    padding: 1.5rem 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 2rem;
}

.upload-area {
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-normal);
    margin-bottom: 1.5rem;
    background-color: #f9f9f9;
}

.upload-area:hover {
    border-color: var(--primary);
    background-color: #f0f0f0;
}

.upload-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.upload-area h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.upload-area p {
    color: var(--accent);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.cta-button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.cta-button:hover {
    background: var(--primary-light);
}
/* Preview Section - Version Premium */
.preview-section {
    margin: 3rem 0;
    padding: 2.5rem;
    background: linear-gradient(135deg, #f9f9f9 0%, #ffffff 100%);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.4s ease;
}

.preview-section:hover {
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
    transform: translateY(-5px);
}

.preview-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary), var(--accent));
}

.preview-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 1rem;
    text-align: center;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.preview-title i {
    color: var(--secondary);
    margin-right: 12px;
    font-size: 1.6rem;
    vertical-align: middle;
    animation: iconPulse 3s infinite ease-in-out;
}

.preview-container {
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
    margin: 1.5rem 0;
}

.preview-box {
    width: 380px;
    height: 380px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform-style: preserve-3d;
    border: 1px solid rgba(0,0,0,0.05);
}

.preview-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(44,62,80,0.03) 0%, transparent 100%);
    z-index: 1;
}

.preview-box:hover {
    transform: translateY(-8px) rotateX(5deg);
    box-shadow: 0 15px 50px rgba(0,0,0,0.2);
}

.preview-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    transition: all 0.6s ease;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.1));
    z-index: 2;
}

.preview-box:hover .preview-image {
    transform: scale(1.03);
    filter: drop-shadow(0 8px 20px rgba(0,0,0,0.15));
}

/* Placeholder stylé */
.preview-image[src*="placeholder"] {
    opacity: 0.7;
    filter: grayscale(30%) contrast(1.1);
}




/* Animation des éléments */
@keyframes iconPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

@keyframes previewAppear {
    from { 
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }
    to { 
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Effet de chargement */
.preview-loading {
    position: absolute;
    width: 60px;
    height: 60px;
    border: 4px solid rgba(44,62,80,0.1);
    border-top-color: var(--secondary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 2;
    display: none;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Version mobile */
@media (max-width: 768px) {
    .preview-section {
        padding: 1.8rem 1.2rem;
        margin: 2rem 0;
    }
    
    .preview-title {
        font-size: 1.5rem;
    }
    
    .preview-box {
        width: 280px;
        height: 280px;
    }
    
}






































/* CSS spécifique pour la section de personnalisation */
.customization-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
    padding: 2.5rem;
    background: linear-gradient(135deg, #f9f9ff 0%, #ffffff 100%);
    border-radius: 16px;
    box-shadow: 
        0 15px 35px rgba(0,0,0,0.1),
        0 5px 15px rgba(0,0,0,0.07);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(5px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
}

.customization-section:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 20px 40px rgba(0,0,0,0.15),
        0 10px 20px rgba(0,0,0,0.1);
}

.customization-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, 
        var(--dark) 30%, 
        var(--primary) 100%);
    background-size: 200% auto;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.customization-section::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, 
        rgba(255,255,255,0.15) 0%, 
        rgba(255,255,255,0) 70%);
    pointer-events: none;
    animation: float 8s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(5%, 5%); }
    50% { transform: translate(10%, 0); }
    75% { transform: translate(5%, -5%); }
}

.customization-intro {
    grid-column: 1 / -1;
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    position: relative;
}

.customization-intro::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 25%;
    width: 50%;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--dark) 50%, 
        transparent 100%);
}

.customization-intro h3 {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(150deg, #2178d0);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.125rem;
    position: relative;
    display: inline-block;
    padding: 0 20px;
}

.customization-intro h3::before{
    content: '✧';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent);
    font-size: 1.2rem;
    opacity: 0.7;
}

.customization-intro h3::after {
    content: '✧';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #2178d0;
    font-size: 1.2rem;
    opacity: 0.7;
}

.customization-intro h3::before {
    left: -10px;
}

.customization-intro h3::after {
    right: -10px;
}

.customization-intro p {
    color: var(--text-light);
    font-size: 1rem;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.option-group {
    margin-bottom: 10px;
    padding: 1rem;
    background: rgba(255,255,255,0.7);
    border-radius: 12px;
    box-shadow: 
        0 5px 15px rgba(0,0,0,0.03),
        inset 0 1px 0 rgba(255,255,255,0.8);
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
}

.option-group:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 8px 25px rgba(0,0,0,0.08),
        inset 0 1px 0 rgba(255,255,255,0.8);
    border-color: rgba(0,0,0,0.1);
}

.option-group::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--secondary), var(--accent));
}

.option-label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 700;
    color: #2178d0;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.option-label i {
    color: var(--secondary);
    margin-right: 0.8rem;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.option-select, 
.option-input, 
.option-textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.4s ease;
    background: rgba(255,255,255,0.8);
    font-size: 1rem;
    box-shadow: 
        0 2px 10px rgba(0,0,0,0.03),
        inset 0 1px 1px rgba(255,255,255,0.9);
}

.option-select:focus, 
.option-input:focus, 
.option-textarea:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 
        0 0 0 3px rgba(44, 62, 80, 0.1),
        0 5px 20px rgba(0,0,0,0.1);
    transform: translateY(-3px);
    background: white;
}

.option-textarea {
    resize: vertical;
    min-height: 120px;
}

.color-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 0.8rem;
}

.color-option {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid white;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 
        0 3px 8px rgba(0,0,0,0.1),
        0 2px 4px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

.color-option::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: inherit;
    border-radius: 50%;
    filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.color-option:hover {
    transform: scale(1.15);
    box-shadow: 
        0 5px 15px rgba(0,0,0,0.2),
        0 4px 8px rgba(0,0,0,0.1);
}

.color-option:hover::before {
    opacity: 0.3;
}

.color-option.selected {
    border: 3px solid white;
    transform: scale(1.2);
    box-shadow: 
        0 0 0 2px white,
        0 0 0 5px var(--primary),
        0 5px 20px rgba(0,0,0,0.2);
    animation: pulse 1.5s infinite;
}

.selected-colors-display {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
    min-height: 40px;
    align-items: center;
}

.selected-colors-display .selected-color {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
    position: relative;
    transition: all 0.3s ease;
}

.selected-colors-display .selected-color:hover {
    transform: scale(1.1);
}

.selected-colors-display .selected-color::after {
    content: '×';
    position: absolute;
    top: -10px;
    right: -10px;
    background: #e74c3c;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    cursor: pointer;
    opacity: 0;
    transition: all 0.2s ease;
    transform: scale(0.8);
}

.selected-colors-display .selected-color:hover::after {
    opacity: 1;
    transform: scale(1);
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(var(--primary-rgb), 0); }
    100% { box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0); }
}

.select-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.0625rem;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    box-shadow: 
        0 5px 15px rgba(0,0,0,0.1),
        0 3px 8px rgba(0,0,0,0.05);
    margin-top: 1rem;
    z-index: 1;
}

.select-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
}



@media (max-width: 768px) {
    .customization-section {
        grid-template-columns: 1fr;
        padding: 1.8rem;
    }
    
    .option-group {
        margin-bottom: 1.5rem;
    }
    
    .customization-intro h3 {
        font-size: 2rem;
    }
}
































/* ------ Style amélioré pour Aperçu général ------ */
.summary-section {
    /* background: linear-gradient(135deg, #d4d5d7 0%, #d0cdcd 100%); */
    border-radius: 16px;
    padding: 2.5rem;
    margin: 3rem auto;
    box-shadow: var(--shadow-lg);
    border: none;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
    border: 1px solid rgba(0,0,0,0.05);
}

.summary-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.summary-section::before {
    content: '';
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--secondary), var(--accent));
}

.summary-header {
    text-align: center;
    margin-bottom: 2rem;
    animation: fadeIn 0.6s ease-out;
}

.summary-header h3 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.summary-header h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--secondary);
    border-radius: 3px;
}

.summary-header p {
    color: var(--text-light);
    font-size: 1rem;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.summary-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 2rem 0;
}

.design-preview {
    flex: 1;
    background: white;
    padding: 1rem;
    box-shadow: var(--shadow-sm);
    border-left: 5px solid var(--secondary);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    animation: itemAppear 0.6s forwards;
    animation-delay: 0.1s;
}

.design-preview:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.design-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.03) 0%, transparent 100%);
    z-index: 0;
}

.preview-box {
    text-align: center;
    z-index: 1;
    width: 700px;
    height: 200px;
}

.preview-box img {
    max-width: 100%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.preview-box:hover img {
    transform: scale(1.02);
}


.summary-item p {
    white-space: pre-wrap; /* Conserve les espaces et sauts de ligne */
    word-break: break-word; /* Évite les débordements */
}
.summary-details {
    flex: 2;
    min-width: 300px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.summary-item {
    background: white;
    padding: 1.8rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border-left: 5px solid var(--secondary);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    opacity: 0;
    margin: auto;
    transform: translateY(20px);
    animation: itemAppear 0.6s forwards;
}

.summary-item:nth-child(1) { animation-delay: 0.2s; }
.summary-item:nth-child(2) { animation-delay: 0.3s; }
.summary-item:nth-child(3) { animation-delay: 0.4s; }
.summary-item:nth-child(4) { animation-delay: 0.5s; }

.summary-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.summary-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.03) 0%, transparent 100%);
    z-index: 0;
}

.summary-item h4 {
    margin: 0 0 1rem 0;
    color: var(--primary);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
}

.summary-item h4 i {
    margin-right: 0.8rem;
    color: var(--secondary);
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.summary-item:hover h4 i {
    transform: scale(1.2) rotate(10deg);
}

.summary-item p {
    margin: 0.5rem 0;
    font-size: 0.95rem;
    color: var(--text-light);
    position: relative;
    z-index: 1;
    line-height: 1.6;
}

.summary-item .highlight {
    color: var(--primary);
    font-weight: 600;
}

.color-swatch {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: middle;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}


.summary-item:hover .color-swatch {
    transform: scale(1.2);
}

.summary-actions {
    text-align: center;
    margin-top: 3rem;
    animation: fadeInUp 0.6s 0.6s ease-out forwards;
    opacity: 0;
}

.summary-btn {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: 0 8px 25px rgba(44, 62, 80, 0.2);
    display: inline-flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.summary-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 100%);
    transition: all var(--transition-normal);
}

.summary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(44, 62, 80, 0.3);
}

.summary-btn:hover::after {
    transform: translateX(100%);
}

.summary-btn i {
    margin-right: 0.8rem;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.summary-btn:hover i {
    transform: translateX(5px);
}

/* Animations */
@keyframes itemAppear {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Version mobile */
@media (max-width: 768px) {
    .summary-section {
        padding: 1.5rem;
        margin: 2rem 0;
    }
    
    .summary-header h3 {
        font-size: 1.6rem;
    }
    
    .design-preview,
    .summary-details {
        min-width: 100%;
    }
    
    .summary-details {
        grid-template-columns: 1fr;
    }
    
    .summary-item {
        padding: 1.5rem;
    }
    
    .summary-btn {
        padding: 0.8rem 1.8rem;
        font-size: 0.95rem;
    }
}




/* Styles pour le formulaire */
.contact-form-section {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.form-container {
    background: rgb(229, 226, 226);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    padding: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.form-title {
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-subtitle {
    color: var(--text-light);
    margin-bottom: 30px;
    font-size: 1rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-control {
    border: 2px solid rgb(215, 211, 211) !important;
    border-radius: 5px;
    padding: 12px 15px;

}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem rgb(233, 149, 157);
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.submit-btn, .reset-btn {
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.submit-btn {
    background-color: var(--primary);
    border-color: var(--primary);
}

.submit-btn:hover {
    background-color: #e05a00;
    border-color: #e05a00;
    transform: translateY(-2px);
}

.reset-btn:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
}

/* Modal styles */
.modal-content {
    border-radius: 10px;
}

.modal-header {
    border-bottom: 1px solid #eee;
    padding: 20px;
}

.modal-title {
    font-weight: 700;
    color: var(--primary);
}

.modal-body {
    padding: 20px;
}

.modal-body h6 {
    font-weight: 600;
    margin-top: 20px;
    color: var(--text-dark);
}

.modal-body p {
    color: var(--text-light);
    margin-bottom: 15px;
}

.modal-footer {
    border-top: 1px solid #eee;
    padding: 15px 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .form-container {
        padding: 20px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .submit-btn, .reset-btn {
        width: 100%;
    }
}

.show-form-container {
    text-align: center;
    margin: 40px 0;
}

#show-form-btn {
    padding: 15px 30px;
    font-size: 1.1rem;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

#show-form-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.preview-btn a{
    color: white;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 8px;
    padding: 10px; 
    background: #2178d0;

}