/**
 * ================================================================
 * FICHIER : Nous_contacter.css
 * EMPLACEMENT : pages/Nous_contacter/
 * SHORT_DESC : Styles de la page « Nous contacter ».
 * DESCRIPTION : Hero, formulaire en étapes (tuiles de motifs, identité,
 *               message, bascule de rappel), colonne de réassurance,
 *               panneau de confirmation. Variables du thème + mode clair.
 *
 * SOMMAIRE :
 *   - [CTRL+D] HERO
 *   - [CTRL+D] LAYOUT
 *   - [CTRL+D] ETAPES_MOTIFS
 *   - [CTRL+D] CHAMPS
 *   - [CTRL+D] IDENTITE_CONNECTEE
 *   - [CTRL+D] RAPPEL
 *   - [CTRL+D] ACTIONS_MESSAGES
 *   - [CTRL+D] CONFIRMATION
 *   - [CTRL+D] ASIDE
 *   - [CTRL+D] BRIGHT_MODE
 *   - [CTRL+D] RESPONSIVE
 *
 * MODIFICATIONS :
 *   - 06/10/2026 17:55 : Création initiale — A VALIDER PAR JaxX
 *   - 07/10/2026 14:05 : Tuiles de motifs — icône sur la même ligne que le titre (grille) — A VALIDER PAR JaxX
 *   - 07/10/2026 14:20 : Responsive des tuiles (titre sécable, une colonne sous 480px) — A VALIDER PAR JaxX
 *
 * ================================================================
 */

/* [CTRL+D] HERO ============================================================= */
.page_nous_contacter
{
    padding-bottom: 4rem;
}

.contact_hero_section
{
    text-align: center;
    max-width: 760px;
    margin: 1.5rem auto 2.5rem;
}

.contact_badge_pill
{
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.95rem;
    border-radius: 50px;
    background: rgba(6, 182, 212, 0.12);
    border: 1px solid rgba(6, 182, 212, 0.35);
    color: var(--cyan-400);
    font-size: 0.82rem;
    font-weight: 600;
}

.contact_badge_pill .material-symbols-outlined
{
    font-size: 1.05rem;
}

.contact_hero_title
{
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    color: var(--text_heading);
    margin: 1rem 0 0.75rem;
}

.contact_hero_title .highlight
{
    color: var(--cyan-accent);
}

.contact_hero_subtitle
{
    color: var(--text_secondary);
    font-size: 1.02rem;
    line-height: 1.65;
}

/* [CTRL+D] LAYOUT =========================================================== */
.contact_layout
{
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 1.75rem;
    align-items: start;
}

.contact_form_card
{
    background: var(--surface_card);
    border: 1px solid var(--border_subtle);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--box-shadow-card);
}

/* [CTRL+D] ETAPES_MOTIFS ==================================================== */
.contact_step_title
{
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--text_heading);
    margin: 1.9rem 0 1rem;
}

.contact_step_title:first-of-type
{
    margin-top: 0;
}

.contact_step_num
{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.8rem;
    height: 1.8rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    color: #ffffff;
    font-size: 0.88rem;
    font-weight: 800;
}

.contact_motif_grid
{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 0.7rem;
}

.contact_motif_tile
{
    position: relative;
    cursor: pointer;
}

.contact_motif_radio
{
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.contact_motif_inner
{
    /* Icône et titre sur la même ligne, description en dessous sur toute la largeur */
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    align-content: start;
    gap: 0.25rem 0.5rem;
    height: 100%;
    padding: 0.85rem 0.9rem;
    border-radius: 14px;
    border: 1px solid var(--border_subtle);
    background: var(--surface_input);
    transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.contact_motif_tile:hover .contact_motif_inner
{
    border-color: rgba(6, 182, 212, 0.45);
    transform: translateY(-2px);
}

.contact_motif_radio:checked + .contact_motif_inner
{
    border-color: var(--cyan-accent);
    background: rgba(6, 182, 212, 0.12);
    box-shadow: 0 0 0 1px var(--cyan-accent) inset;
}

.contact_motif_radio:focus-visible + .contact_motif_inner
{
    outline: 2px solid var(--cyan-accent);
    outline-offset: 2px;
}

.contact_motif_icon
{
    color: var(--cyan-400);
    font-size: 1.35rem;
    line-height: 1;
}

.contact_motif_label
{
    min-width: 0;
    overflow-wrap: anywhere;
    hyphens: auto;
    color: var(--text_primary);
    font-weight: 700;
    font-size: 0.9rem;
    line-height: 1.25;
}

.contact_motif_desc
{
    grid-column: 1 / -1;
    color: var(--text_muted);
    font-size: 0.76rem;
    line-height: 1.3;
}

/* [CTRL+D] CHAMPS =========================================================== */
.contact_form_grid
{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem 1rem;
}

.contact_field
{
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 0.9rem;
}

.contact_form_grid .contact_field
{
    margin-bottom: 0;
}

.contact_field label
{
    color: var(--text_secondary);
    font-size: 0.85rem;
    font-weight: 600;
}

.contact_required
{
    color: #f59e0b;
}

.contact_optional
{
    color: var(--text_muted);
    font-weight: 400;
}

.contact_input
{
    width: 100%;
    padding: 0.75rem 0.9rem;
    border-radius: 12px;
    border: 1px solid var(--border_subtle);
    background: var(--surface_input);
    color: var(--text_primary);
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
    box-sizing: border-box;
}

.contact_input:focus
{
    outline: none;
    border-color: var(--border_focus);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.15);
}

.contact_textarea
{
    resize: vertical;
    min-height: 160px;
    line-height: 1.55;
}

.contact_select option
{
    background: var(--slate-900);
    color: var(--text_primary);
}

.contact_char_counter
{
    align-self: flex-end;
    color: var(--text_muted);
    font-size: 0.75rem;
}

.contact_hp_field
{
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* [CTRL+D] IDENTITE_CONNECTEE =============================================== */
.contact_identity_card
{
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 1rem 1.15rem;
    border-radius: 14px;
    background: rgba(6, 182, 212, 0.08);
    border: 1px solid rgba(6, 182, 212, 0.3);
}

.contact_identity_icon
{
    font-size: 2rem;
    color: var(--cyan-400);
}

.contact_identity_texts
{
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.contact_identity_caption
{
    color: var(--text_muted);
    font-size: 0.75rem;
}

.contact_identity_name
{
    color: var(--text_heading);
    font-size: 1rem;
}

.contact_identity_meta
{
    color: var(--text_secondary);
    font-size: 0.83rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.contact_identity_badge
{
    padding: 0.3rem 0.75rem;
    border-radius: 50px;
    background: rgba(6, 182, 212, 0.18);
    color: var(--cyan-400);
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
}

.contact_identity_hint
{
    color: var(--text_muted);
    font-size: 0.8rem;
    margin: 0.55rem 0 0;
}

/* [CTRL+D] RAPPEL =========================================================== */
.contact_callback_box
{
    margin: 0.4rem 0 1.2rem;
    padding: 1rem 1.15rem;
    border-radius: 14px;
    border: 1px dashed rgba(245, 158, 11, 0.4);
    background: rgba(245, 158, 11, 0.05);
    transition: border-color 0.18s ease, background 0.18s ease;
}

.contact_callback_box.is_active
{
    border-style: solid;
    border-color: rgba(245, 158, 11, 0.65);
    background: rgba(245, 158, 11, 0.09);
}

.contact_switch_row
{
    display: flex;
    align-items: center;
    gap: 0.9rem;
    cursor: pointer;
}

.contact_switch_input
{
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.contact_switch_slider
{
    position: relative;
    flex-shrink: 0;
    width: 46px;
    height: 26px;
    border-radius: 50px;
    background: var(--slate-700);
    transition: background 0.2s ease;
}

.contact_switch_slider::after
{
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ffffff;
    transition: transform 0.2s ease;
}

.contact_switch_input:checked + .contact_switch_slider
{
    background: #f59e0b;
}

.contact_switch_input:checked + .contact_switch_slider::after
{
    transform: translateX(20px);
}

.contact_switch_input:focus-visible + .contact_switch_slider
{
    outline: 2px solid #f59e0b;
    outline-offset: 2px;
}

.contact_switch_texts
{
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.contact_switch_texts strong
{
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--text_heading);
    font-size: 0.95rem;
}

.contact_switch_texts strong .material-symbols-outlined
{
    color: #f59e0b;
    font-size: 1.15rem;
}

.contact_switch_texts > span
{
    color: var(--text_muted);
    font-size: 0.8rem;
}

.contact_callback_fields
{
    margin-top: 1rem;
}

/* [CTRL+D] ACTIONS_MESSAGES ================================================= */
.contact_rgpd_row
{
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    color: var(--text_secondary);
    font-size: 0.82rem;
    line-height: 1.5;
    cursor: pointer;
}

.contact_rgpd_row input
{
    margin-top: 0.2rem;
    accent-color: var(--cyan-accent);
    flex-shrink: 0;
}

.contact_rgpd_row a
{
    color: var(--cyan-400);
}

.contact_form_message
{
    margin-top: 1rem;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 600;
}

.contact_form_message.is_error
{
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fca5a5;
}

.contact_form_message.is_success
{
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #6ee7b7;
}

.contact_actions_bar
{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border_subtle);
}

.contact_mandatory_hint
{
    color: var(--text_muted);
    font-size: 0.78rem;
}

.btn_contact_submit
{
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.7rem;
    border: none;
    border-radius: 50px;
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    color: #ffffff;
    font-family: inherit;
    font-size: 0.98rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(6, 182, 212, 0.3);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.btn_contact_submit:hover
{
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(6, 182, 212, 0.42);
}

.btn_contact_submit:disabled
{
    opacity: 0.6;
    cursor: wait;
}

.contact_form_spinner
{
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--cyan-400);
    font-weight: 600;
    font-size: 0.92rem;
}

.contact_spinner_ring
{
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 3px solid rgba(6, 182, 212, 0.25);
    border-top-color: var(--cyan-accent);
    animation: contact_spin 0.8s linear infinite;
}

@keyframes contact_spin
{
    to
    {
        transform: rotate(360deg);
    }
}

/* [CTRL+D] CONFIRMATION ===================================================== */
.contact_success_panel
{
    text-align: center;
    padding: 2rem 1rem;
}

.contact_success_icon
{
    font-size: 3.6rem;
    color: #10b981;
}

.contact_success_title
{
    color: var(--text_heading);
    font-size: 1.5rem;
    margin: 0.6rem 0;
}

.contact_success_text
{
    color: var(--text_secondary);
    line-height: 1.6;
    max-width: 520px;
    margin: 0 auto 1rem;
}

.contact_success_text strong
{
    color: var(--cyan-400);
}

.contact_success_callback
{
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 1rem;
    border-radius: 50px;
    background: rgba(245, 158, 11, 0.12);
    color: #fbbf24;
    font-size: 0.86rem;
    font-weight: 600;
}

.btn_contact_secondary
{
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 1.4rem;
    padding: 0.7rem 1.4rem;
    border-radius: 50px;
    border: 1px solid var(--border_subtle);
    background: var(--surface_input);
    color: var(--text_primary);
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
}

.btn_contact_secondary:hover
{
    border-color: var(--cyan-accent);
}

/* [CTRL+D] ASIDE ============================================================ */
.contact_aside
{
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: sticky;
    top: 110px;
}

.contact_aside_card
{
    padding: 1.2rem 1.25rem;
    border-radius: 18px;
    background: var(--surface_card);
    border: 1px solid var(--border_subtle);
}

.contact_aside_icon
{
    color: var(--cyan-400);
    font-size: 1.7rem;
}

.contact_aside_card h3
{
    color: var(--text_heading);
    font-size: 1rem;
    margin: 0.45rem 0 0.35rem;
}

.contact_aside_card p
{
    color: var(--text_secondary);
    font-size: 0.86rem;
    line-height: 1.55;
    margin: 0;
}

.contact_aside_mail
{
    color: var(--cyan-400);
    font-weight: 600;
    word-break: break-all;
}

.contact_aside_links
{
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-top: 0.4rem;
}

.contact_aside_link
{
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--text_primary);
    font-size: 0.88rem;
    text-decoration: none;
}

.contact_aside_link .material-symbols-outlined
{
    color: var(--cyan-400);
    font-size: 1.1rem;
}

.contact_aside_link:hover
{
    color: var(--cyan-400);
}

/* [CTRL+D] BRIGHT_MODE ====================================================== */
html.bright_mode .contact_form_card,
html.bright_mode .contact_aside_card
{
    background: #ffffff;
    border-color: rgba(15, 23, 42, 0.1);
}

html.bright_mode .contact_motif_inner,
html.bright_mode .contact_input,
html.bright_mode .btn_contact_secondary
{
    background: #f8fafc;
    border-color: rgba(15, 23, 42, 0.14);
}

html.bright_mode .contact_motif_radio:checked + .contact_motif_inner
{
    background: rgba(6, 182, 212, 0.1);
    border-color: #0891b2;
}

html.bright_mode .contact_motif_icon,
html.bright_mode .contact_identity_icon,
html.bright_mode .contact_aside_icon,
html.bright_mode .contact_aside_link .material-symbols-outlined,
html.bright_mode .contact_badge_pill,
html.bright_mode .contact_identity_badge,
html.bright_mode .contact_success_text strong,
html.bright_mode .contact_aside_mail,
html.bright_mode .contact_rgpd_row a
{
    color: #0891b2;
}

html.bright_mode .contact_select option
{
    background: #ffffff;
    color: #0f172a;
}

html.bright_mode .contact_switch_slider
{
    background: #cbd5e1;
}

html.bright_mode .contact_form_message.is_error
{
    color: #b91c1c;
}

html.bright_mode .contact_form_message.is_success
{
    color: #047857;
}

html.bright_mode .contact_success_callback
{
    color: #b45309;
}

/* [CTRL+D] RESPONSIVE ======================================================= */
@media (max-width: 900px)
{
    .contact_layout
    {
        grid-template-columns: 1fr;
    }

    .contact_aside
    {
        position: static;
    }
}

@media (max-width: 600px)
{
    .contact_form_card
    {
        padding: 1.25rem;
    }

    .contact_motif_grid
    {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .contact_form_grid
    {
        grid-template-columns: 1fr;
    }

    .contact_identity_card
    {
        flex-wrap: wrap;
    }

    .contact_actions_bar
    {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .btn_contact_submit
    {
        justify-content: center;
    }
}

/* Petits mobiles : une tuile par ligne (icône + titre en ligne lisibles, aucun débordement) */
@media (max-width: 480px)
{
    .contact_motif_grid
    {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .contact_motif_inner
    {
        padding: 0.7rem 0.85rem;
    }

    .contact_motif_tile:hover .contact_motif_inner
    {
        transform: none;
    }
}
