/* ========== RESET & BASE ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    /* Dégradé 3 tons : blanc cassé chaud -> grège -> touche de vert extrêmement discret */
    background: linear-gradient(145deg, #f3efe9 0%, #ece6dd 50%, #e5ede4 100%);
    color: #2b2b2b;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    line-height: 1.5;
    position: relative;
    overflow-x: hidden;
}

/* Logo en arrière-plan (filigrane) */
body::after {
    content: '';
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background-image: url('../assets/logo.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.04;
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 640px;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    border-radius: 24px;
    padding: clamp(32px, 6vw, 48px);
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.06), 0 4px 12px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.04);
    animation: fadeSlideUp 0.5s ease-out;
    position: relative;
    z-index: 1;
}

@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ========== LOGO & DRAPEAU ========== */
.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}
.logo img {
    width: 60px;
    height: auto;
}
.flag {
    width: 32px;
    height: auto;
    margin-left: 6px;
}
.logo-text {
    font-size: clamp(1.5rem, 4vw, 1.9rem);
    font-weight: 700;
    color: #2E7D32;
    letter-spacing: 0.5px;
}

/* ========== TYPOGRAPHIE ========== */
.hero p {
    margin-bottom: 18px;
    font-size: 1rem;
    color: #4a4a4a;
}
.hero p strong {
    color: #2E7D32;
}

/* ========== BOUTONS ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    min-width: 130px;
    letter-spacing: 0.3px;
}
.btn:active { transform: scale(0.96); }
.btn-primary {
    background: #D4A843;
    color: #ffffff;
    box-shadow: 0 8px 16px rgba(212, 168, 67, 0.2);
}
.btn-primary:hover {
    background: #c29735;
    box-shadow: 0 12px 24px rgba(212, 168, 67, 0.3);
    transform: translateY(-1px);
}
.btn-next {
    background: #2E7D32;
    color: white;
}
.btn-next:hover { background: #256b29; }
.btn-prev {
    background: transparent;
    color: #2E7D32;
    border: 1px solid #2E7D32;
}
.btn-prev:hover { background: rgba(46, 125, 50, 0.05); }

/* ========== FORMULAIRES ========== */
fieldset {
    border: none;
    display: none;
    flex-direction: column;
}
fieldset.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

legend {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #2E7D32;
}

label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #3a3a3a;
    font-size: 0.95rem;
}

input[type="text"],
input[type="tel"],
input[type="email"],
select {
    width: 100%;
    padding: 14px 16px;
    margin-bottom: 20px;
    background: #ffffff;
    border: 1px solid #d1d1d1;
    border-radius: 10px;
    color: #2b2b2b;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}
input:focus, select:focus {
    border-color: #D4A843;
    box-shadow: 0 0 0 3px rgba(212, 168, 67, 0.1);
    outline: none;
}

select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%232E7D32' viewBox='0 0 16 16'%3E%3Cpath d='M8 11.5l-6-6 1.5-1.5L8 8.5l4.5-4.5L14 5.5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 12px;
    padding-right: 40px;
}

small {
    display: block;
    margin-top: -12px;
    margin-bottom: 18px;
    color: #6f6f6f;
    font-size: 0.85rem;
}

/* ========== UPLOAD PHOTO CUSTOM ========== */
.file-upload {
    margin-bottom: 20px;
}
.file-upload input[type="file"] {
    display: none;
}
.file-upload label.btn-upload {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #f0f0f0;
    border: 1px dashed #aaa;
    border-radius: 10px;
    cursor: pointer;
    color: #2b2b2b;
    transition: border-color 0.2s, background 0.2s;
}
.file-upload label.btn-upload:hover {
    border-color: #D4A843;
    background: #f9f9f9;
}
.file-name {
    margin-top: 8px;
    font-size: 0.9rem;
    color: #6f6f6f;
}

/* ========== CASE DE CONFIRMATION ========== */
.confirmation-box {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 16px;
    margin: 20px 0 24px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.confirmation-box input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #2E7D32;
    flex-shrink: 0;
    margin-top: 2px;
}
.confirmation-box label {
    margin: 0;
    color: #3a3a3a;
    font-weight: 400;
}

/* ========== BARRE DE PROGRESSION ========== */
.progress-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    margin-top: 32px;
    position: relative;
}
.progress-bar::before {
    content: '';
    position: absolute;
    top: 17px;
    left: 30px;
    right: 30px;
    height: 3px;
    background: #e0e0e0;
    z-index: 0;
}
.step-indicator {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #6f6f6f;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}
.step-indicator.active {
    background: #2E7D32;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 0 12px rgba(46, 125, 50, 0.3);
}
.step-indicator.completed {
    background: #D4A843;
    color: #ffffff;
    box-shadow: 0 0 12px rgba(212, 168, 67, 0.3);
}

/* ========== PAGE DE REMERCIEMENT ========== */
.thanks-message {
    text-align: center;
}
.thanks-message h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    color: #2E7D32;
}
.thanks-message p {
    margin-bottom: 16px;
    color: #4a4a4a;
    font-size: 1.05rem;
}
.thanks-message strong {
    color: #2b2b2b;
}

/* ========== FOOTER ========== */
.site-footer {
    width: 100%;
    max-width: 640px;
    margin: 32px auto 0;
    padding: 20px 0;
    border-top: 1px solid #e0e0e0;
    text-align: center;
    color: #6f6f6f;
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}
.footer-message {
    margin-bottom: 12px;
    color: #3a3a3a;
    font-weight: 500;
}
.contacts {
    display: flex;
    justify-content: center;
    gap: 28px;
    flex-wrap: wrap;
}
.contacts a {
    color: #2E7D32;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s;
    font-weight: 500;
    font-size: 0.95rem;
}
.contacts a:hover {
    color: #1b5e20;
    text-decoration: underline;
}
.contacts svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}
.copyright {
    margin-top: 14px;
    color: #9e9e9e;
    font-size: 0.8rem;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 480px) {
    body {
        padding: 12px;
        justify-content: flex-start;
        padding-top: 40px;
    }
    .container {
        padding: 20px 16px;
        border-radius: 20px;
    }
    .progress-bar {
        gap: 30px;
    }
    .btn {
        padding: 12px 20px;
        font-size: 0.95rem;
    }
}