/* Reset et base */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #FBC54A;
    --neutral-900: #111827;
    --neutral-800: #1f2937;
    --neutral-700: #374151;
    --neutral-100: #f3f4f6;
    --success: #059669;
    --warning: #d97706;
    --danger: #dc2626;
}

* {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--neutral-800);
    line-height: 1.6;
}

/* En-tête moderne */
header {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

header li a {
    text-transform: uppercase;
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.025em;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

header li a:hover {
    background: var(--neutral-100);
    color: var(--primary);
}

header li a i {
    color: var(--secondary);
}

/* Boutons modernes */
.btn-primary {
    background: var(--primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.1), 0 2px 4px -1px rgba(37, 99, 235, 0.06);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.2), 0 4px 6px -2px rgba(37, 99, 235, 0.1);
}

.btn-outline {
    border: 2px solid white;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Cards modernes */
.card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

#dynamic-form {
    z-index: 9999;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Sections */
section {
    position: relative;
    overflow: hidden;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
}

.section-title span {
    color: var(--primary);
}

/* Hero section avec vidéo */
.hero-video {
    height: 100vh;
    position: relative;
}


.hero-video video {
    object-fit: cover;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.hero-overlay {
    background: linear-gradient(to bottom, rgba(0,0,0,0.7), rgba(0,0,0,0.4));
    position: absolute;
    inset: 0;
}

/* Grille moderne */
.grid-modern {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Formulaires modernes */
.form-control {
    background: white;
    border: 2px solid var(--neutral-100);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    outline: none;
}

/* Footer moderne */
footer {
    background: var(--neutral-900);
    color: white;
    padding: 4rem 0;
}

footer a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

footer a:hover {
    color: white;
}

/* Utilitaires */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    .section-title {
        font-size: 1.875rem;
    }

    .btn-primary, .btn-outline {
        width: 100%;
        text-align: center;
    }

    header {
        padding: 1rem 0;
    }
}

/* Améliorations visuelles */
.glass-effect {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.shadow-soft {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.04), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
}

/* Animations de chargement */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transform: translateX(-100%);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    100% {
        transform: translateX(100%);
    }
}

/* Tooltips modernes */
[data-tooltip] {
    position: relative;
}

[data-tooltip]::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem 1rem;
    background: var(--neutral-800);
    color: white;
    font-size: 0.875rem;
    border-radius: 0.375rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

[data-tooltip]:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-5px);
}

/* Scrollbar personnalisée */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--neutral-100);
}

::-webkit-scrollbar-thumb {
    background: var(--neutral-700);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--neutral-800);
}

.custom-swal-container {
    z-index: 9999;
}
.custom-swal-popup {
    font-family: 'Arial', sans-serif;
    border-radius: 15px;
}
.custom-swal-content {
    padding: 1.5rem;
}
.swal2-icon {
    border-color: #4CAF50;
    color: #4CAF50;
}
.swal2-confirm {
    background-color: #4CAF50 !important;
}
@media (max-width: 640px) {
    #form-steps .step {
        display: none;
    }
    #form-steps .step-number {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 30px;
        height: 30px;
        border-radius: 50%;
        background-color: #D1D5DB;
        color: #4B5563;
        font-weight: bold;
    }
    #form-steps .step.active .step-number {
        background-color: #10B981;
        color: white;
    }
}

.bg-blue-100 span {
    color:white !important;
}

.bg-pink-100 span {
    color:white !important;
}

.bg-pink-100 {
    background-color: #d95877 !important;
}

@media (max-width: 768px) {
    footer {
        text-align: center;
    }
    
    /* Centrer les icônes sociales */
    footer .flex.space-x-4 {
        justify-content: center;
    }
    
    /* Centrer les éléments de navigation */
    footer .space-y-2 a {
        justify-content: center;
    }
    
    /* Centrer les informations de contact */
    footer .space-y-3 p {
        justify-content: center;
    }
    
    /* Centrer les certifications et moyens de paiement */
    footer .flex.space-x-4 {
        justify-content: center;
    }
    
    /* Ajuster l'espacement des icônes dans les liens */
    footer .group i.fa-chevron-right {
        display: none;
    }
    
    /* Centrer les éléments de copyright et mentions légales */
    footer .flex.flex-col.md\:flex-row {
        text-align: center;
    }
    
    footer .flex.flex-wrap {
        justify-content: center;
    }
}

header li a {
    text-transform: uppercase;
    font-weight: 600;
}

.rounded-full {
    font-weight: bold;
}

.bg-blue-600  {
    background-color: #fbc54a !important;
}

/* Animations de transition */
.transition-all {
    transition: all 0.3s ease-in-out;
}

/* Améliorations des boutons */
button, 
a.btn,
.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

button:hover, 
a.btn:hover,
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Animation de hover pour les cartes */
.card {
    transition: all 0.3s ease;
    backface-visibility: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

/* Amélioration des inputs */
input, 
textarea, 
select {
    transition: all 0.3s ease;
    border: 2px solid #e5e7eb !important; /* Gris clair par défaut */
    border-radius: 0.5rem;
}

input:focus, 
textarea:focus, 
select:focus {
    outline: none !important;
    border-color: #fbc54a !important; /* Couleur jaune de votre thème */
    box-shadow: 0 0 0 4px rgba(251, 197, 74, 0.2) !important; /* Glow jaune transparent */
}

/* Style spécifique pour les conteneurs de fichiers */
.border-dashed {
    border: 2px dashed #e5e7eb !important;
}

.border-dashed:hover {
    border-color: #fbc54a !important;
    background-color: rgba(251, 197, 74, 0.05) !important;
}

/* Style pour les textarea */
textarea {
    min-height: 100px;
    resize: vertical;
}

/* Style pour les inputs disabled */
input:disabled,
textarea:disabled,
select:disabled {
    background-color: #f3f4f6;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Style pour les inputs readonly */
input:read-only,
textarea:read-only {
    background-color: #f3f4f6;
    cursor: default;
}

/* Style pour les inputs invalid */
input:invalid,
textarea:invalid {
    border-color: #ef4444 !important;
}

input:invalid:focus,
textarea:invalid:focus {
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.2) !important;
}

/* Animations de chargement */
.loading {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: .5;
    }
}

/* Amélioration des tooltips */
[data-tooltip] {
    position: relative;
}

[data-tooltip]:before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 5px 10px;
    background: #333;
    color: white;
    border-radius: 4px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

[data-tooltip]:hover:before {
    opacity: 1;
    visibility: visible;
}

/* Amélioration du focus pour l'accessibilité */
:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Amélioration du contraste pour la lisibilité */
.text-gray-600 {
    color: #4B5563;
}

/* Animations des icônes */
.icon {
    transition: transform 0.3s ease;
}

.icon:hover {
    transform: scale(1.1);
}

/* Style mobile amélioré */
@media (max-width: 768px) {
    /* Augmenter la taille des zones de clic sur mobile */
    button,
    a.btn,
    .btn {
        padding: 12px 24px;
        min-height: 44px;
    }
    
    /* Améliorer l'espacement sur mobile */
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    /* Centrer les éléments sur mobile */
    .mobile-center {
        text-align: center;
        justify-content: center;
        align-items: center;
    }
    
    /* Ajuster la taille des textes sur mobile */
    h1 {
        font-size: 2rem !important;
    }
    
    h2 {
        font-size: 1.75rem !important;
    }
    
    h3 {
        font-size: 1.5rem !important;
    }
}

/* Amélioration des formulaires */
.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-group label {
    position: absolute;
    left: 12px;
    top: 0;
    transform: translateY(-50%);
    background: white;
    padding: 0 4px;
    font-size: 0.875rem;
    color: #6B7280;
    transition: all 0.3s ease;
}

.form-group input:focus + label,
.form-group textarea:focus + label {
    color: #3b82f6;
}

/* Amélioration des messages d'erreur */
.error-message {
    color: #DC2626;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.error-message:before {
    content: '⚠️';
}

/* Amélioration des états de succès */
.success-message {
    color: #059669;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.success-message:before {
    content: '✓';
}

/* Amélioration des modales */
.modal {
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.modal-content {
    transform: scale(0.95);
    opacity: 0;
    transition: all 0.3s ease;
}

.modal.active .modal-content {
    transform: scale(1);
    opacity: 1;
}


#mobile-menu {
    padding: 0px 20px;
}

.bg-blue-600 i {
    color:white;
}

/* Ajouter ces styles */
.service-selected {
    border-color: #fbc54a !important;
    background-color: rgba(251, 197, 74, 0.1) !important;
}

.service-selected i {
    color: #fbc54a !important;
}

.rounded-full {
    width: 32px !important; /* Taille fixe pour les points */
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
}

/* Styles pour la galerie de photos */
.photo-preview-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.photo-preview-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 0.5rem;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
}

.photo-preview-item:hover {
    border-color: var(--secondary);
    transform: scale(1.05);
}

.photo-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-preview-item .remove-photo {
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    background: rgba(239, 68, 68, 0.9);
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.photo-preview-item .remove-photo:hover {
    background: rgb(239, 68, 68);
    transform: scale(1.1);
}

/* Modal pour l'aperçu grand format */
.photo-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.photo-modal.active {
    display: flex;
}

.photo-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
}

.photo-modal-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 0.5rem;
}

.photo-modal-close {
    position: absolute;
    top: -1.5rem;
    right: -1.5rem;
    background: white;
    color: black;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.photo-modal-close:hover {
    background: #f3f4f6;
    transform: scale(1.1);
}

.summary-photo-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.summary-photo-item:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.summary-photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Styles pour la nouvelle barre de progression */
.progress-bar-container {
    width: 100%;
    height: 8px;
    background-color: #e5e7eb;
    border-radius: 9999px;
    overflow: hidden;
    position: relative;
}

.progress-bar {
    height: 100%;
    width: 0;
    background-color: #fbc54a;
    border-radius: 9999px;
    transition: width 0.5s ease-in-out;
    position: relative;
}

/* Animation de "pulse" pour la barre active */
.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.3) 50%, 
        transparent 100%
    );
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}