
/* Contact Form Modal Styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    animation: fadeIn 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

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

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.modal-close svg {
    width: 24px;
    height: 24px;
    stroke: white;
    stroke-width: 2;
}

.form-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-header {
    background: linear-gradient(135deg, #00D9A3 0%, #00b386 100%);
    padding: 40px 30px;
    text-align: center;
    color: white;
    position: relative;
}

.form-header h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
}

.form-header p {
    font-size: 17px;
    opacity: 0.95;
}

.progress-bar {
    height: 6px;
    background: rgba(0, 217, 163, 0.1);
    position: relative;
}

.progress-fill {
    height: 100%;
    background: #00D9A3;
    transition: width 0.4s ease;
    width: 10%;
}

.form-body {
    padding: 40px;
}

.step {
    display: none;
    animation: fadeInStep 0.5s ease;
}

.step.active {
    display: block;
}

@keyframes fadeInStep {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-title {
    font-size: 28px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 10px;
}

.step-subtitle {
    font-size: 17px;
    color: #718096;
    margin-bottom: 35px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.service-card {
    background: #f7fafc;
    border: 3px solid #e2e8f0;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 217, 163, 0.2);
}

.service-card.selected {
    border-color: #00D9A3;
    background: linear-gradient(135deg, rgba(0, 217, 163, 0.1) 0%, rgba(0, 179, 134, 0.1) 100%);
}

.service-card .icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 15px;
}

.service-card .icon svg {
    width: 100%;
    height: 100%;
    stroke: #4a5568;
    fill: none;
    stroke-width: 2;
    transition: all 0.3s ease;
}

.service-card:hover .icon svg,
.service-card.selected .icon svg {
    stroke: #00D9A3;
}

.service-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 5px;
}

.service-card p {
    font-size: 13px;
    color: #718096;
}

.checkmark {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    background: #00D9A3;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.service-card.selected .checkmark {
    display: flex;
}

.website-type-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.website-card {
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.website-card:hover {
    transform: translateY(-3px);
    border-color: #00D9A3;
}

.website-card.selected {
    border-color: #00D9A3;
    background: rgba(0, 217, 163, 0.05);
}

.website-card .icon {
    width: 40px;
    height: 40px;
    margin-bottom: 12px;
}

.website-card .icon svg {
    width: 100%;
    height: 100%;
    stroke: #4a5568;
    fill: none;
    stroke-width: 2;
}

.website-card.selected .icon svg {
    stroke: #00D9A3;
}

.website-card h4 {
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 5px;
}

.website-card p {
    font-size: 12px;
    color: #718096;
}

.domain-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.domain-card {
    background: #f7fafc;
    border: 3px solid #e2e8f0;
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.domain-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 217, 163, 0.2);
}

.domain-card.selected {
    border-color: #00D9A3;
    background: linear-gradient(135deg, rgba(0, 217, 163, 0.1) 0%, rgba(0, 179, 134, 0.1) 100%);
}

.domain-icon {
    font-size: 36px;
    margin-bottom: 15px;
}

.domain-card h3 {
    font-size: 24px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 8px;
}

.domain-card .subtitle {
    font-size: 14px;
    color: #718096;
    margin-bottom: 15px;
}

.domain-card .price {
    font-size: 14px;
    color: #718096;
    text-decoration: line-through;
    margin-bottom: 5px;
}

.domain-card .free {
    font-size: 18px;
    font-weight: 700;
    color: #00D9A3;
}

.palette-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.palette-card {
    background: #f7fafc;
    border: 3px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.palette-card.selected {
    border-color: #00D9A3;
    background: rgba(0, 217, 163, 0.05);
}

.palette-colors {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    justify-content: center;
}

.color-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.palette-card h4 {
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 5px;
    text-align: center;
}

.palette-card p {
    font-size: 13px;
    color: #718096;
    text-align: center;
}

.custom-palette-card {
    grid-column: 1 / -1;
}

.custom-colors-wrapper {
    display: none;
    margin-top: 20px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    border: 2px solid #00D9A3;
}

.custom-colors-wrapper.active {
    display: block;
}

.color-picker-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 15px;
}

.color-picker-item {
    text-align: center;
}

.color-picker-item label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 8px;
}

.color-picker-item input[type="color"] {
    width: 100%;
    height: 50px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
}

.budget-slider {
    margin: 30px 0;
}

.slider {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: #e2e8f0;
    outline: none;
    margin: 20px 0;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #00D9A3;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 217, 163, 0.5);
}

.slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #00D9A3;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 217, 163, 0.5);
}

.budget-value {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    color: #00D9A3;
    margin: 20px 0;
}

.timing-options {
    display: grid;
    gap: 15px;
}

.timing-option {
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 15px;
}

.timing-option:hover {
    border-color: #00D9A3;
    transform: translateX(5px);
}

.timing-option.selected {
    border-color: #00D9A3;
    background: rgba(0, 217, 163, 0.05);
}

.timing-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.timing-icon svg {
    width: 100%;
    height: 100%;
    stroke: #4a5568;
    fill: none;
    stroke-width: 2;
}

.timing-option.selected .timing-icon svg {
    stroke: #00D9A3;
}

.timing-content h4 {
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 5px;
}

.timing-content p {
    font-size: 14px;
    color: #718096;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 10px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #f7fafc;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #00D9A3;
    background: white;
    box-shadow: 0 0 0 3px rgba(0, 217, 163, 0.1);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.info-box {
    background: linear-gradient(135deg, rgba(0, 217, 163, 0.08) 0%, rgba(0, 179, 134, 0.08) 100%);
    border: 2px solid #00D9A3;
    border-radius: 15px;
    padding: 20px;
    margin-top: 30px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.info-box-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.info-box-icon svg {
    width: 100%;
    height: 100%;
    stroke: #00D9A3;
    fill: none;
    stroke-width: 2;
}

.info-box-content h4 {
    font-size: 17px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 8px;
}

.info-box-content p {
    font-size: 15px;
    color: #4a5568;
    line-height: 1.6;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 35px;
}

.form-actions.single {
    flex-direction: column;
}

.btn {
    padding: 18px 30px;
    border: none;
    border-radius: 12px;
    font-family: 'Manrope', sans-serif;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    position: relative;
}

.btn-secondary {
    background: #e2e8f0;
    color: #2d3748;
}

.btn-secondary:hover {
    background: #cbd5e0;
}

.btn-primary {
    background: linear-gradient(135deg, #00D9A3 0%, #00b386 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 217, 163, 0.3);
}

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

.btn-outline {
    background: white;
    color: #00D9A3;
    border: 2px solid #00D9A3;
}

.btn-outline:hover {
    background: rgba(0, 217, 163, 0.05);
}

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

.btn.loading {
    pointer-events: none;
}

.btn.loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spinner 0.6s linear infinite;
}

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

.summary-card {
    background: #f7fafc;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #e2e8f0;
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-label {
    font-weight: 600;
    color: #4a5568;
}

.summary-value {
    color: #2d3748;
    text-align: right;
}

.success-animation {
    text-align: center;
    padding: 40px;
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    animation: scaleIn 0.5s ease;
}

.success-icon svg {
    width: 100%;
    height: 100%;
    stroke: #00D9A3;
    fill: none;
    stroke-width: 2;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

.success-animation h2 {
    font-size: 28px;
    color: #2d3748;
    margin: 20px 0 10px;
}

.success-animation p {
    font-size: 16px;
    color: #718096;
    line-height: 1.6;
}

.error-message {
    background: #FEE2E2;
    border: 2px solid #EF4444;
    color: #991B1B;
    padding: 15px;
    border-radius: 10px;
    margin-top: 20px;
    display: none;
}

.error-message.show {
    display: block;
}

@media (max-width: 640px) {
    .modal-overlay.active {
        padding: 10px;
    }

    .form-container {
        max-height: 95vh;
    }

    .form-header {
        padding: 30px 20px;
    }

    .form-header h1 {
        font-size: 26px;
    }

    .form-header p {
        font-size: 15px;
    }

    .form-body {
        padding: 30px 20px;
    }

    .step-title {
        font-size: 24px;
    }

    .step-subtitle {
        font-size: 15px;
    }

    .service-grid,
    .website-type-grid,
    .domain-grid,
    .palette-grid {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column;
    }

    .btn {
        padding: 16px 24px;
        font-size: 16px;
    }

    .color-picker-group {
        grid-template-columns: 1fr;
    }

    .info-box {
        padding: 15px;
    }

    .info-box-content h4 {
        font-size: 15px;
    }

    .info-box-content p {
        font-size: 14px;
    }
}

/* Desktop: formulaire plus large */
@media (min-width: 1024px) {
    #contactModal .form-container {
        max-width: 1200px !important;  /* essaie 1000 / 1100 / 1200 jusqu'à ce que ça te plaise */
        width: 100%;
    }
}

/* CORRECTIONS CSS - À ajouter à votre fichier CSS existant */

.custom-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.85);
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 40px 16px;
    box-sizing: border-box;
    z-index: 999999; /* En dessous du cookie banner mais au-dessus de tout le reste */
    overflow-y: auto; /* Permet le scroll DANS l'overlay */
}

.custom-modal-overlay.active {
    display: flex;
}

.custom-modal-content {
    width: 100%;
    max-width: 960px;
    border-radius: 24px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative; /* Important ! */
    background: white; /* S'assurer qu'il y a un fond */
}

/* CRITIQUE: Bloquer le scroll du body */
body.modal-open {
    overflow: hidden !important;
    /* ⭐ PLUS DE position: fixed ! */
}

/* Footer et cookie banner ne sont plus masqués par défaut lorsque le modal est ouvert */
/* Fix 4: Style pour empêcher sélection lors du double-click */
.service-card,
.website-card,
.domain-card,
.palette-card,
.timing-option {
    user-select: none;
}

/* Fix 5: Améliorer la scrollbar du modal */
.custom-modal-content::-webkit-scrollbar {
    width: 8px;
}

.custom-modal-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.custom-modal-content::-webkit-scrollbar-thumb {
    background: #00D9A3;
    border-radius: 10px;
}

.custom-modal-content::-webkit-scrollbar-thumb:hover {
    background: #00B88A;
}

