/* Styles pour la page Contact */

/* Variables */
:root {
    --form-bg: #f9fafc;
    --input-bg: white;
    --input-border: #e2e8f0;
    --input-focus-border: #0077FF;
    --input-focus-shadow: rgba(0, 119, 255, 0.15);
    --label-color: #4a5568;
    --placeholder-color: #a0aec0;
    --btn-bg: #FF6B35;
    --btn-hover-bg: #E24E00;
    --info-icon-bg: #0455BF;
    --info-icon-hover: #0077FF;
}

/* Layout principal de la page contact */
.contact-main {
    padding: 4rem 0;
    background-color: white;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
}

@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* Section infos de contact */
.contact-info {
    background-color: var(--form-bg);
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.contact-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: linear-gradient(to right, var(--info-icon-bg), var(--info-icon-hover));
}

.contact-info h2 {
    margin-bottom: 1.5rem;
    color: var(--info-icon-bg);
    font-size: 1.8rem;
}

.info-item {
    display: flex;
    margin-bottom: 1.8rem;
    align-items: flex-start;
    transition: transform 0.3s ease;
}

.info-item:hover {
    transform: translateX(5px);
}

.info-icon {
    width: 54px;
    height: 54px;
    background-color: var(--info-icon-bg);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.2rem;
    font-size: 1.3rem;
    flex-shrink: 0;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 10px rgba(4, 85, 191, 0.2);
}

.info-item:hover .info-icon {
    background-color: var(--info-icon-hover);
    transform: scale(1.1);
}

.info-content h3 {
    margin-bottom: 0.3rem;
    color: #323D4D;
    font-size: 1.2rem;
}

.info-content p, .info-content a {
    color: #4A5568;
    transition: color 0.3s ease;
}

.info-content a:hover {
    color: var(--info-icon-hover);
}

.contact-person {
    display: flex;
    align-items: center;
    margin-top: 2.5rem;
    background-color: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-person:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.contact-person::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, var(--btn-bg), var(--btn-hover-bg));
}

.person-image {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 1.2rem;
    flex-shrink: 0;
    border: 3px solid white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.person-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.person-info h3 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    color: #323D4D;
}

.person-info p {
    margin-bottom: 0.5rem;
}

.person-info p strong {
    color: var(--info-icon-bg);
}

/* Section formulaire */
.contact-form-container {
    background-color: white;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.07);
    position: relative;
    overflow: hidden;
}

.contact-form-container::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 8px;
    background: linear-gradient(to right, var(--btn-bg), #ff9b76);
}

.contact-form-container h2 {
    margin-bottom: 1.2rem;
    color: var(--btn-bg);
    font-size: 1.8rem;
}

.contact-form-container p {
    margin-bottom: 2rem;
    color: #4A5568;
}

#contact-form {
    background-color: var(--form-bg);
    padding: 2rem;
    border-radius: 10px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

.form-group {
    margin-bottom: 1.8rem;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--label-color);
    transition: color 0.3s ease;
}

.form-group.focus label {
    color: var(--input-focus-border);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.2rem;
    font-size: 1rem;
    border: 2px solid var(--input-border);
    border-radius: 8px;
    background-color: var(--input-bg);
    color: #323D4D;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--placeholder-color);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--input-focus-border);
    box-shadow: 0 0 0 4px var(--input-focus-shadow);
    outline: none;
}

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

/* Styles pour la case à cocher */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.checkbox-group input[type="checkbox"] {
    position: absolute;
    opacity: 0;
}

.checkbox-group label {
    position: relative;
    padding-left: 2.2rem;
    cursor: pointer;
    font-size: 0.95rem;
    line-height: 1.4;
    color: #4A5568;
}

.checkbox-group label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 1.2rem;
    height: 1.2rem;
    border: 2px solid var(--input-border);
    border-radius: 4px;
    background-color: var(--input-bg);
    transition: all 0.3s ease;
}

.checkbox-group input[type="checkbox"]:checked + label::before {
    border-color: var(--input-focus-border);
    background-color: var(--input-focus-border);
}

.checkbox-group input[type="checkbox"]:focus + label::before {
    box-shadow: 0 0 0 3px var(--input-focus-shadow);
}

.checkbox-group input[type="checkbox"]:checked + label::after {
    content: '✓';
    position: absolute;
    left: 0.35rem;
    top: -0.05rem;
    color: white;
    font-size: 0.9rem;
    font-weight: bold;
}

.form-actions {
    text-align: right;
    margin-top: 2rem;
}

.form-actions button {
    padding: 0.8rem 2rem;
    font-size: 1rem;
    background-color: var(--btn-bg);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(255, 107, 53, 0.3);
}

.form-actions button:hover {
    background-color: var(--btn-hover-bg);
    box-shadow: 0 6px 15px rgba(255, 107, 53, 0.4);
    transform: translateY(-3px);
}

.form-note {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: #718096;
    text-align: center;
}

/* Styles pour la section carte */
.map-section {
    padding: 4rem 0;
    background-color: #f1f5f9;
}

.map-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    height: 450px;
}

/* Styles pour la FAQ */
.faq-section {
    padding: 5rem 0;
    background-color: white;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transform: translateY(-3px);
}

.faq-question {
    padding: 1.2rem 1.5rem;
    background-color: #f9fafc;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.faq-question h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #323D4D;
}

.faq-toggle {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--info-icon-bg);
    transition: transform 0.3s ease;
}

.faq-question.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 1.5rem;
    height: 0;
    overflow: hidden;
    transition: padding 0.3s ease, height 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 1.5rem;
    height: auto;
}

.faq-answer p {
    margin: 0;
    color: #4A5568;
    line-height: 1.7;
}

/* Page de succès */
.success-message {
    padding: 6rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
}

.success-content {
    max-width: 600px;
    text-align: center;
    padding: 3rem;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.success-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: linear-gradient(to right, #10B981, #059669);
}

.success-icon {
    font-size: 5rem;
    color: #10B981;
    margin-bottom: 1.5rem;
    animation: pulse 2s infinite;
}

.success-content h1 {
    color: #323D4D;
    margin-bottom: 1.5rem;
}

.success-content p {
    color: #4A5568;
    margin-bottom: 1.5rem;
}

.success-content p strong {
    color: var(--info-icon-bg);
}

.success-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* Animations du formulaire */
@keyframes slideInFromBottom {
    0% {
        transform: translateY(30px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.contact-form-container {
    animation: slideInFromBottom 0.6s ease forwards;
}

.form-group {
    opacity: 0;
    transform: translateY(20px);
    animation: slideInFromBottom 0.4s ease forwards;
}

.form-group:nth-child(1) { animation-delay: 0.1s; }
.form-group:nth-child(2) { animation-delay: 0.2s; }
.form-group:nth-child(3) { animation-delay: 0.3s; }
.form-group:nth-child(4) { animation-delay: 0.4s; }
.form-group:nth-child(5) { animation-delay: 0.5s; }
.form-group:nth-child(6) { animation-delay: 0.6s; }
.form-actions { animation-delay: 0.7s; }
