/* Formulaires - Charte graphique moderne et chaleureuse - Accent caramel #a67c52 */
@font-face {
    font-family: 'ThirstyScriptExtraBoldDemo';
    src: url('../fonts/ThirstyScriptExtraBoldDemo.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

.form-section {
    padding: 6rem 1.5rem;
    min-height: calc(100vh - var(--header-height) - 250px); /* Hauteur minimale pour centrer visuellement le contenu */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #fdf6f0;
    position: relative;
    overflow: hidden;
}

.form-section::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(166, 124, 82, 0.1) 0%, rgba(166, 124, 82, 0) 70%);
    z-index: 1;
}

.form-section::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(166, 124, 82, 0.08) 0%, rgba(166, 124, 82, 0) 70%);
    z-index: 1;
}

.form-section h2 {
    font-family: 'ThirstyScriptExtraBoldDemo', cursive;
    color: #1e1e1e;
    font-size: 3rem;
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
    z-index: 2;
}

.form-section h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, #a67c52, #e8d8c3);
    margin: 0.8rem auto 0;
    border-radius: 2px;
    box-shadow: 0 2px 4px rgba(166, 124, 82, 0.2);
}

.form-block {
    background-color: #ffffff;
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 500px;
    position: relative;
    z-index: 2;
    border-left: 4px solid #a67c52;
    transition: all 0.3s ease;
}

.form-block:hover {
    box-shadow: 0 15px 35px rgba(166, 124, 82, 0.15);
}

.form-block label {
    display: block;
    font-family: 'Rubik', 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    color: #1e1e1e;
    margin-bottom: 1.5rem;
}

.form-block input[type="text"],
.form-block input[type="email"],
.form-block input[type="password"],
.form-block input[type="tel"],
.form-block textarea,
.form-block select {
    display: block;
    width: 100%;
    padding: 0.9rem 1.1rem;
    margin-top: 0.5rem;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    font-family: 'Rubik', 'Inter', sans-serif;
    font-size: 1rem;
    color: #1e1e1e;
    background-color: #f9f9f9;
    transition: all 0.3s ease;
}

.form-block input:focus,
.form-block textarea:focus,
.form-block select:focus {
    outline: none;
    border-color: #a67c52;
    box-shadow: 0 0 0 3px rgba(166, 124, 82, 0.15);
    background-color: #ffffff;
}

.form-block button[type="submit"] {
    display: block;
    width: 100%;
    padding: 1rem 1.5rem;
    background-color: #a67c52;
    color: #ffffff;
    font-family: 'Rubik', 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    border-radius: 5px;
    text-align: center;
    border: none;
    cursor: pointer;
    margin-top: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.form-block button[type="submit"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.7s ease;
    z-index: -1;
}

.form-block button[type="submit"]:hover {
    background-color: #8a6642;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.form-block button[type="submit"]:hover::before {
    left: 120%;
}

.form-block button[type="submit"]:active {
    transform: translateY(1px);
    box-shadow: 0 2px 8px rgba(166, 124, 82, 0.3);
}

.error-msg {
    background-color: #ffeded;
    color: #d43131;
    padding: 1rem 1.5rem;
    border-radius: 5px;
    border-left: 3px solid #d43131;
    margin-bottom: 2rem;
    font-family: 'Rubik', 'Inter', sans-serif;
    width: 100%;
    max-width: 500px;
    text-align: center;
}

.success-msg {
    background-color: #edf9ed;
    color: #2d7a2d;
    padding: 1rem 1.5rem;
    border-radius: 5px;
    border-left: 3px solid #2d7a2d;
    margin-bottom: 2rem;
    font-family: 'Rubik', 'Inter', sans-serif;
    width: 100%;
    max-width: 500px;
    text-align: center;
}

.success-msg a {
    color: #2d7a2d;
    font-weight: 600;
    text-decoration: underline;
}

.form-link {
    margin-top: 1.5rem;
    font-family: 'Rubik', 'Inter', sans-serif;
    font-size: 0.95rem;
    color: #666;
    text-align: center;
}

.form-link a {
    color: #a67c52;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.form-link a:hover {
    color: #8a6642;
    text-decoration: underline;
}

/* Media Queries */
@media (max-width: 768px) {
    .form-section {
        padding: 4rem 1.5rem;
    }
    
    .form-section h2 {
        font-size: 2.5rem;
    }
    
    .form-block {
        padding: 2rem;
    }
}

@media (max-width: 576px) {
    .form-section {
        padding: 3rem 1rem;
    }
    
    .form-section h2 {
        font-size: 2.2rem;
    }
    
    .form-block {
        padding: 1.5rem;
    }
    
    .form-block label {
        font-size: 0.95rem;
        margin-bottom: 1.2rem;
    }
}
