﻿/* Page Contact - D.A. alignee sur blog-article et a-propos */

/* ===== BANNER ===== */
.banner-section {
    max-width: 1280px;
    margin: 0 auto;
}

/* ===== CONTAINER PRINCIPAL ===== */
.main-contact {
    background-color: var(--white);
}

.contact-container {
    max-width: 1280px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 100px 100px 0 0;
    position: relative;
    z-index: 2;
    top: -50px;
    padding: 0 60px 60px 60px;
    box-shadow: 0 -100px 99px #0000001A;
}

/* Breadcrumb : 60px container + 40px breadcrumb = 100px du bord (aligne /blog, /a-propos, /blog-article) */
.contact-container > .breadcrumb {
    padding-inline: 0;
    padding-left: 40px;
}

/* ===== HEADER ===== */
/* Hero - meme pattern que /blog : bar orange+gris sous le titre */
.contact-header {
    padding: 56px 0 40px 0;
    margin-bottom: 40px;
}

.contact-title {
    font-family: var(--font-head);
    font-size: 3.75rem;
    line-height: 1.05;
    margin: 0 0 28px 0;
    padding-bottom: 20px;
    color: var(--purple);
    position: relative;
    border-bottom: 1px solid rgba(47, 21, 108, 0.12);
}

.contact-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 64px;
    height: 3px;
    background: var(--orange);
    border-radius: 2px;
    transform: translateY(50%);
}

.contact-lede {
    color: var(--purple);
    opacity: 0.85;
    font-size: 1.125rem;
    margin: 0;
    line-height: 1.65;
    max-width: 760px;
}

.contact-lede strong {
    color: var(--orange);
    font-weight: 700;
    opacity: 1;
}

/* ===== GRID 2 COLONNES ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
    align-items: start;
    padding: 0;
}

/* ===== SECTION TITLES (pattern a-propos : orange body 800, signature orange bar) ===== */
.contact-section-title {
    font-family: var(--font-body);
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 22px 0;
    color: var(--orange);
    display: flex;
    align-items: center;
    gap: 14px;
}

.contact-section-title::before {
    content: '';
    flex: 0 0 32px;
    height: 2px;
    background: var(--orange);
    border-radius: 1px;
}

/* ===== FORMULAIRE ===== */
.contact-form-wrap {
    /* Card legere - editorial, pas de shadow lourd */
    background: rgba(47, 21, 108, 0.02);
    border: 1px solid rgba(47, 21, 108, 0.08);
    border-radius: 16px;
    padding: 32px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
}

#subcategory-wrapper {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--purple);
    letter-spacing: 0.02em;
}

.form-icon {
    color: var(--orange);
    flex-shrink: 0;
}

.required {
    color: var(--orange);
    font-size: 1rem;
    font-weight: 700;
}

/* Inputs - border subtle purple, rectangle arrondi 12px */
.form-group input[type="text"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
    font-family: var(--font-body);
    font-size: 1rem;
    padding: 14px 16px;
    border: 2px solid rgba(47, 21, 108, 0.12);
    border-radius: 12px;
    background: #fff;
    color: var(--purple);
    transition: all 0.2s ease;
    outline: none;
    width: 100%;
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
    border-color: rgba(47, 21, 108, 0.25);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 4px rgba(255, 128, 0, 0.12);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(47, 21, 108, 0.4);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23FF8000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 3rem;
}

.form-group select:disabled {
    cursor: not-allowed;
    opacity: 0.6;
    background-color: #f5f5f5;
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
    line-height: 1.6;
}

/* Checkbox RGPD - case orange custom (pattern catalog), card light autour */
.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    background: rgba(47, 21, 108, 0.03);
    border-radius: 12px;
    margin-top: 4px;
}

.form-checkbox input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    margin: 2px 0 0 0;
    cursor: pointer;
    background: transparent;
    border: 2px solid var(--orange);
    border-radius: 7px;
    position: relative;
    flex-shrink: 0;
    transition: background 0.15s ease;
}

.form-checkbox input[type="checkbox"]:checked {
    background: var(--orange);
}

.form-checkbox input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 1px;
    left: 6px;
    width: 4px;
    height: 9px;
    border: solid var(--white);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.form-checkbox input[type="checkbox"]:focus-visible {
    outline: 2px solid var(--orange);
    outline-offset: 2px;
}

.form-checkbox label {
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: var(--purple);
    line-height: 1.55;
    cursor: pointer;
}

.form-checkbox label a {
    color: var(--orange);
    text-decoration: underline;
    font-weight: 600;
}

.form-checkbox label a:hover {
    opacity: 0.8;
}

/* Bouton submit - meme pattern que .btn-add-to-cart (BananaChips pill site-wide) */
.submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    align-self: flex-start;
    padding: 5px 25px 5px 20px;
    background: var(--orange);
    color: var(--white);
    border: 2px solid var(--orange);
    border-radius: 9999px;
    font-family: var(--font-head);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
    margin-top: 8px;
}

.submit-btn svg {
    transition: transform 0.2s ease;
}

.submit-btn:hover:not(:disabled) {
    background: transparent;
    color: var(--orange);
}

.submit-btn:hover:not(:disabled) svg {
    transform: translateX(4px);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: wait;
}

/* ===== SIDEBAR ===== */
.contact-sidebar {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: rgba(47, 21, 108, 0.03);
    border: 1px solid rgba(47, 21, 108, 0.06);
    border-radius: 14px;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.contact-card:hover {
    background: rgba(47, 21, 108, 0.05);
    border-color: rgba(255, 128, 0, 0.25);
}

.contact-card-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 128, 0, 0.12);
    color: var(--orange);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-card-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.contact-card-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--purple);
    opacity: 0.55;
}

.contact-card-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--purple);
    text-decoration: none;
    word-break: break-word;
}

a.contact-card-value:hover {
    color: var(--orange);
    text-decoration: underline;
}

/* Ordinal "er" plus petit, colle en haut (exposant style) */
.ordinal {
    font-size: 0.7em;
    vertical-align: super;
    line-height: 0;
}

/* Encart "Avant de nous ecrire" - bg violet, liste a puces */
.contact-help-card {
    padding: 24px;
    background: linear-gradient(135deg, var(--purple) 0%, var(--light-purple) 100%);
    border-radius: 16px;
    color: var(--white);
    margin-top: 8px;
}

.contact-help-title {
    font-family: var(--font-head);
    font-size: 1.875rem;
    font-weight: 400;
    line-height: 1;
    margin: 0 0 10px 0;
    color: var(--green);
}

.contact-help-text {
    font-size: 0.875rem;
    line-height: 1.5;
    margin: 0 0 16px 0;
    color: var(--white);
    opacity: 0.85;
}

.contact-help-links {
    list-style: disc;
    list-style-position: outside;
    margin: 0;
    padding: 0 0 0 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.contact-help-links li {
    padding-left: 4px;
}

.contact-help-links li::marker {
    color: var(--orange);
    font-size: 1rem;
}

.contact-help-links a {
    color: var(--white);
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.contact-help-links a:hover {
    color: var(--orange);
    text-decoration: underline;
}

/* Reseaux sociaux - titre via .contact-section-title (harmonise avec form + coordonnees) */
.contact-socials {
    margin-top: 16px;
}

.contact-socials-icons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.contact-socials-icons a {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--orange);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: transform 0.2s ease, opacity 0.3s ease;
}

.contact-socials-icons a:hover {
    transform: scale(1.1);
    opacity: 0.9;
}

.contact-socials-icons a svg {
    width: 100%;
    height: 100%;
    mix-blend-mode: multiply;
    pointer-events: none;
}

/* ===== RESPONSIVE ===== */

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

    .contact-sidebar {
        order: 2;
    }

    .contact-form-wrap {
        order: 1;
    }
}

@media (max-width: 768px) {
    .contact-container {
        padding: 0 24px 40px 24px;
        border-radius: 60px 60px 0 0;
    }

    .contact-container > .breadcrumb {
        padding-left: 0;
    }

    .contact-header {
        padding: 20px 0 28px 0;
        margin-bottom: 24px;
    }

    .contact-header::after { left: 0; }

    .contact-title { font-size: 2.75rem; }

    .contact-lede { font-size: 1rem; }

    .contact-grid {
        padding: 0;
    }

    .contact-form-wrap {
        padding: 24px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .contact-container {
        padding: 0 16px 30px 16px;
        border-radius: 24px 24px 0 0;
        top: -30px;
    }

    .contact-title {
        font-size: 2.25rem;
    }

    .contact-lede {
        font-size: 0.95rem;
    }

    .contact-form-wrap {
        padding: 20px;
        border-radius: 16px;
    }
}
