/* ============================================================
   contact-coquin.css — Page Contact Camping-Car Coquin
   À uploader dans : /wp-content/themes/[votre-theme]/
   Et à enqueuer via functions.php (voir instructions)
   ============================================================ */

/* ─── Variables palette camping-car-coquin.fr ─────────────── */
:root {
    --ccc-rose:         #c2185b;   /* Rose profond (primaire)   */
    --ccc-rose-light:   #f8bbd0;   /* Rose clair                */
    --ccc-rose-hover:   #ad1457;   /* Rose foncé hover          */
    --ccc-violet:       #7b1fa2;   /* Violet (accent)           */
    --ccc-violet-light: #e1bee7;   /* Violet clair              */
    --ccc-bordeaux:     #880e4f;   /* Bordeaux/ruby (titres)    */
    --ccc-bg:           #fdf5f8;   /* Fond rose très léger      */
    --ccc-white:        #ffffff;
    --ccc-gray-text:    #555555;
    --ccc-gray-border:  #e0d0d8;
    --ccc-gray-light:   #f9f2f5;
    --ccc-shadow:       0 4px 20px rgba(194, 24, 91, 0.10);
    --ccc-radius:       12px;
    --ccc-radius-sm:    8px;
    --ccc-font:         'Helvetica Neue', Arial, sans-serif;
}

/* ─── Wrapper global ───────────────────────────────────────── */
.ccc-contact-wrap {
    background: var(--ccc-bg);
    min-height: 70vh;
    padding: 48px 16px 64px;
    font-family: var(--ccc-font);
}

/* ─── Conteneur centré ─────────────────────────────────────── */
.ccc-contact-container {
    max-width: 1080px;
    margin: 0 auto;
}

/* ─── En-tête ──────────────────────────────────────────────── */
.ccc-contact-header {
    text-align: center;
    margin-bottom: 40px;
}

.ccc-contact-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--ccc-bordeaux);
    margin: 0 0 10px;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.ccc-icon-enveloppe {
    font-size: 1.6rem;
    color: var(--ccc-rose);
}

.ccc-contact-subtitle {
    font-size: 1rem;
    color: var(--ccc-gray-text);
    margin: 0;
    line-height: 1.6;
}

/* ─── Corps : 2 colonnes ───────────────────────────────────── */
.ccc-contact-body {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 32px;
    align-items: start;
}

/* ─── Colonne formulaire ───────────────────────────────────── */
.ccc-contact-form-col {
    background: var(--ccc-white);
    border-radius: var(--ccc-radius);
    box-shadow: var(--ccc-shadow);
    padding: 36px 40px;
    border-top: 4px solid var(--ccc-rose);
}

/* ─── Champs du formulaire ─────────────────────────────────── */
.ccc-field-group {
    margin-bottom: 22px;
}

.ccc-label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--ccc-bordeaux);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.ccc-required {
    color: var(--ccc-rose);
    margin-left: 2px;
}

.ccc-input {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--ccc-gray-border);
    border-radius: var(--ccc-radius-sm);
    font-size: 0.97rem;
    color: #333;
    background: var(--ccc-white);
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    font-family: var(--ccc-font);
}

.ccc-input:focus {
    outline: none;
    border-color: var(--ccc-rose);
    box-shadow: 0 0 0 3px rgba(194, 24, 91, 0.12);
}

.ccc-input-error {
    border-color: #e53935 !important;
}

.ccc-input::placeholder {
    color: #bbb;
    font-style: italic;
}

.ccc-select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23c2185b' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
    cursor: pointer;
}

.ccc-textarea {
    resize: vertical;
    min-height: 140px;
}

.ccc-char-count {
    display: block;
    font-size: 0.75rem;
    color: #aaa;
    text-align: right;
    margin-top: 4px;
}

/* ─── Honeypot (invisible) ─────────────────────────────────── */
.ccc-hp-field {
    position: absolute;
    left: -9999px;
    top: -9999px;
    opacity: 0;
    pointer-events: none;
    height: 0;
    overflow: hidden;
}

/* ─── Notice RGPD ──────────────────────────────────────────── */
.ccc-rgpd-notice {
    font-size: 0.78rem;
    color: #999;
    margin: 0 0 20px;
    line-height: 1.5;
}

.ccc-rgpd-notice a {
    color: var(--ccc-violet);
    text-decoration: underline;
}

/* ─── Bouton envoi ─────────────────────────────────────────── */
.ccc-btn-submit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--ccc-rose) 0%, var(--ccc-violet) 100%);
    color: var(--ccc-white);
    border: none;
    border-radius: 30px;
    padding: 13px 32px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
    box-shadow: 0 4px 14px rgba(194, 24, 91, 0.30);
    letter-spacing: 0.3px;
}

.ccc-btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(194, 24, 91, 0.40);
    opacity: 0.93;
}

.ccc-btn-submit:active {
    transform: translateY(0);
}

.ccc-btn-icon {
    font-size: 1.1rem;
}

/* ─── Alertes ──────────────────────────────────────────────── */
.ccc-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 18px;
    border-radius: var(--ccc-radius-sm);
    font-size: 0.95rem;
    margin-bottom: 24px;
    line-height: 1.5;
}

.ccc-alert-success {
    background: #e8f5e9;
    border-left: 4px solid #43a047;
    color: #2e7d32;
}

.ccc-alert-error {
    background: #fce4ec;
    border-left: 4px solid var(--ccc-rose);
    color: var(--ccc-bordeaux);
}

.ccc-alert-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 1px;
}

/* ─── Colonne infos droite ─────────────────────────────────── */
.ccc-contact-info-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ccc-info-card {
    background: var(--ccc-white);
    border-radius: var(--ccc-radius);
    box-shadow: var(--ccc-shadow);
    padding: 20px 22px;
    border-left: 3px solid var(--ccc-rose-light);
    transition: border-color 0.2s;
}

.ccc-info-card:hover {
    border-left-color: var(--ccc-rose);
}

.ccc-info-icon {
    font-size: 1.5rem;
    margin-bottom: 6px;
}

.ccc-info-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--ccc-bordeaux);
    margin: 0 0 6px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.ccc-info-text {
    font-size: 0.88rem;
    color: var(--ccc-gray-text);
    margin: 0 0 10px;
    line-height: 1.55;
}

.ccc-info-text:last-child {
    margin-bottom: 0;
}

.ccc-email-link {
    color: var(--ccc-rose);
    font-weight: 600;
    text-decoration: none;
    word-break: break-all;
}

.ccc-email-link:hover {
    text-decoration: underline;
    color: var(--ccc-rose-hover);
}

.ccc-info-text a {
    color: var(--ccc-violet);
    text-decoration: underline;
}

/* ─── Bouton "Voir les membres" ────────────────────────────── */
.ccc-btn-community {
    display: inline-block;
    background: var(--ccc-gray-light);
    border: 1.5px solid var(--ccc-rose-light);
    color: var(--ccc-bordeaux);
    border-radius: 20px;
    padding: 7px 18px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    margin-top: 4px;
}

.ccc-btn-community:hover {
    background: var(--ccc-rose-light);
    border-color: var(--ccc-rose);
    color: var(--ccc-bordeaux);
}

/* ─── Responsive mobile ────────────────────────────────────── */
@media (max-width: 768px) {
    .ccc-contact-wrap {
        padding: 28px 12px 48px;
    }

    .ccc-contact-body {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    /* Infos pratiques passe en dessous sur mobile */
    .ccc-contact-info-col {
        order: 2;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 12px;
    }

    .ccc-info-card {
        flex: 1 1 calc(50% - 6px);
        min-width: 140px;
    }

    .ccc-contact-form-col {
        order: 1;
        padding: 24px 20px;
    }

    .ccc-contact-title {
        font-size: 1.5rem;
    }

    .ccc-btn-submit {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .ccc-contact-info-col {
        flex-direction: column;
    }

    .ccc-info-card {
        flex: 1 1 100%;
    }

    .ccc-contact-title {
        font-size: 1.3rem;
        flex-direction: column;
        gap: 4px;
    }
}
