/* =========================================================
   CONTACT / SUPPORT / ENTREPRISE / SIGNALEMENT
   ========================================================= */

/* --------- Section Contact principale --------- */
.contact-section {
    padding: 60px 0 80px;
    background: #f9fafb;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: flex-start;
}

/* --------- Cartes Contact / Info --------- */
.contact-form-container,
.contact-info,
.enterprise-form-container,
.report-form-container {
    background: #ffffff;
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.06);
}

/* Titres dans les cartes */
.contact-form-container h2,
.contact-info h2,
.enterprise-form-container h2,
.report-form-container h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #1f2937;
}

/* Ajustement spécifique entreprise */
.enterprise-form-container h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

/* --------- Formulaire Contact / Entreprise / Report --------- */
.contact-form,
.enterprise-form,
.report-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #374151;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group small {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
}

/* --------- Checkbox custom --------- */
.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.875rem;
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
    margin-top: 2px;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: #2563eb;
    border-color: #2563eb;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    color: #ffffff;
    font-size: 12px;
    font-weight: bold;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

/* --------- Boutons --------- */
/* CTA principal (contact / support / signalement) aligné avec hero/newsletter */
.submit-btn {
    background: #2563eb;
    color: #ffffff;
    border: none;
    padding: 0.85rem 1.8rem;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    white-space: nowrap;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.25);
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.submit-btn:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 16px 40px rgba(37, 99, 235, 0.3);
}

.submit-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* Variante entreprise (garde .submit-btn + cette classe) */
.enterprise-submit {
    background: #7c3aed;
    font-size: 1.05rem;
    padding: 0.95rem 2.4rem;
    box-shadow: 0 10px 25px rgba(124, 58, 237, 0.28);
}
.enterprise-submit:hover {
    background: #6d28d9;
    box-shadow: 0 16px 40px rgba(124, 58, 237, 0.34);
}

/* Bouton secondaire (annuler, retour, etc.) */
.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

.btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn-secondary:hover {
    background: #e5e7eb;
    border-color: #cbd5e1;
    color: #111827;
}

/* --------- Bloc Infos Contact --------- */
.contact-info {
    height: fit-content;
}

.contact-info h2 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-icon {
    color: #2563eb;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.contact-details h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1f2937;
}

.contact-details p {
    color: #6b7280;
    margin-bottom: 0.25rem;
}

.contact-hours {
    font-size: 0.875rem;
    font-style: italic;
    color: #6b7280;
}

/* Réseaux dans la carte contact */
.social-links {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

.social-links h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1f2937;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: #f3f4f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    text-decoration: none;
    transition: all 0.2s ease;
}

.social-icon:hover {
    background: #2563eb;
    color: #ffffff;
    transform: translateY(-2px);
}

/* =========================================================
   FAQ
   ========================================================= */
.faq-section {
    padding: 80px 0;
    background: #f9fafb;
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: #ffffff;
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 1.25rem 1.5rem;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
    color: #1f2937;
    transition: background 0.2s ease;
}

.faq-question:hover {
    background: #f9fafb;
}

.faq-question svg {
    transition: transform 0.2s ease;
    color: #6b7280;
}

.faq-question.active {
    background: #eff6ff;
}

.faq-question.active svg {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer.active {
    max-height: 600px; /* permet des réponses plus longues */
}

.faq-answer p {
    padding: 0 1.5rem 1.5rem;
    color: #6b7280;
    line-height: 1.6;
}

/* =========================================================
   ENTREPRISE / ÉTABLISSEMENTS
   ========================================================= */
.enterprise-section {
    padding: 60px 0 80px;
    background: #ffffff;
}

.enterprise-intro {
    text-align: center;
    margin-bottom: 4rem;
}

.enterprise-intro h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1f2937;
}

.enterprise-intro p {
    font-size: 1.25rem;
    color: #6b7280;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.enterprise-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.benefit-item {
    background: #ffffff;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.benefit-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12);
    border-color: #bfdbfe;
}

.benefit-icon {
    color: #2563eb;
    margin-bottom: 1rem;
}

.benefit-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1f2937;
}

.benefit-item p {
    color: #6b7280;
    line-height: 1.5;
}

/* Blocs de formulaire structuré */
.form-section {
    padding: 1.5rem;
    background: #f9fafb;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
}

.form-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #1f2937;
}

/* =========================================================
   REPORT / SIGNALER UN PROBLÈME
   ========================================================= */
.report-section {
    padding: 60px 0 80px;
    background: #f9fafb;
}

.report-types {
    margin-bottom: 3rem;
}

.report-types h2 {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    color: #1f2937;
}

.report-type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.report-type-card {
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.report-type-card:hover {
    border-color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.report-type-card.selected {
    border-color: #2563eb;
    background: #f0f9ff;
}

.report-icon {
    color: #2563eb;
    margin-bottom: 1rem;
}

.report-type-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1f2937;
}

.report-type-card p {
    color: #6b7280;
    font-size: 0.875rem;
    line-height: 1.4;
}

/* =========================================================
   URGENCES
   ========================================================= */
.emergency-section {
    padding: 40px 0 60px;
    background: #fef2f2;
}

.emergency-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: #ffffff;
    border: 2px solid #fecaca;
    border-radius: 12px;
    padding: 2rem;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 4px 12px rgba(248, 113, 113, 0.18);
}

.emergency-icon {
    color: #dc2626;
    flex-shrink: 0;
}

.emergency-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #dc2626;
}

.emergency-content p {
    color: #6b7280;
    margin-bottom: 1rem;
}

.emergency-contacts {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* CTA urgence, stylé comme les autres boutons mais en rouge */
.emergency-link {
    background: #dc2626;
    color: #ffffff;
    text-decoration: none;
    padding: 0.6rem 1.4rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 10px 24px rgba(220, 38, 38, 0.3);
}

.emergency-link:hover {
    background: #b91c1c;
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(220, 38, 38, 0.4);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .enterprise-benefits {
        grid-template-columns: 1fr;
    }

    .report-type-grid {
        grid-template-columns: 1fr;
    }

    .emergency-card {
        flex-direction: column;
        text-align: center;
    }

    .emergency-contacts {
        justify-content: center;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions button {
        width: 100%;
    }

    .social-icons {
        justify-content: center;
    }
}