/* === PAGE GESTION === */

.page-gestion {
    padding: 3rem 0;
}

/* Section principale */
.gestion-header-page {
    display: flex;
	justify-content: space-between;
    gap: 3rem;
    margin-bottom: 3rem;
    padding: 0 1rem;
}

.gestion-content-page {
    flex: 1;
    max-width: 600px;
}

.gestion-content-page h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #333;
}

.gestion-content-page p {
    margin-bottom: 1.2rem;
    line-height: 1.8;
    color: #555;
}

.gestion-content-page h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 2rem;
    color: #2c3e50;
}

.gestion-image-page {
    flex: 0 0 40%;
    max-width: 500px;
}

.gestion-image-page img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Formulaire */
.form-gestion-container-page {
    margin: 0 auto;
    padding: 0 1rem;
}

.form-contact-agency-page {
    background: #f8f9fa;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.form-contact-agency-page>p {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    color: #666;
}

.form-sections-page {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.form-section-page h5 {
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #333;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #01236a;
}

.form-group-page {
    margin-bottom: 1.5rem;
}

.form-input-custom-page,
.form-textarea-custom-page {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    transition: all 0.3s ease;
    background: white;
}

.form-input-custom-page:focus,
.form-textarea-custom-page:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.form-textarea-custom-page {
    resize: vertical;
    min-height: 150px;
    font-family: inherit;
    line-height: 1.6;
}

/* Bouton */
.form-actions-page {
    text-align: center;
    margin-top: 2rem;
}

.btn-main-page {
    padding: 1.2rem 3.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-main--primary-page {
    background: #01236a;
    color: white;
}

.btn-main--primary-page:hover {
    background: #b3a183;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

/* Mentions légales */
.form-legal-page {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #ddd;
}

.form-legal-page small {
    display: block;
    color: #666;
    line-height: 1.8;
    margin-bottom: 0.8rem;
}

/* Recaptcha */
.recaptcha-container-page {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

/* Champs cachés */
.hidden,
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.username-css {
    display: none;
}

/* Alerts */
.alert-page {
    position: fixed;
    top: 20px;
    right: 20px;
    max-width: 450px;
    padding: 1.8rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    animation: slideIn 0.3s ease;
    font-size: 1.05rem;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.alert-success-page {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.alert-danger-page {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.alert-page .close {
    float: right;
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1;
    color: inherit;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-left: 1rem;
}

.alert-page i {
    margin-right: 0.5rem;
    vertical-align: middle;
}

.alert-page p {
    margin: 0;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 992px) {
    .gestion-image-page {
        display: none;
    }

    .gestion-header-page {
        justify-content: center;
    }

    .gestion-content-page {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .form-sections-page {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .form-contact-agency-page {
        padding: 2rem;
    }

    .gestion-content-page h2 {
        font-size: 2rem;
    }

    .btn-main-page {
        width: 100%;
        padding: 1rem 2rem;
    }

    .alert-page {
        left: 20px;
        right: 20px;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .page-gestion {
        padding: 1.5rem 0;
    }

    .form-contact-agency-page {
        padding: 1.5rem;
    }

    .gestion-header-page {
        padding: 0 0.5rem;
    }

    .gestion-content-page h2 {
        font-size: 1.8rem;
    }

    .form-section-page h5 {
        font-size: 1.2rem;
    }

    .form-input-custom-page,
    .form-textarea-custom-page {
        font-size: 1rem;
        padding: 0.9rem 1rem;
    }
}