/* =============================================================================
   CONTACT PAGE — Styles for the contact form and info layout
   Loaded conditionally (contact page only) via functions.php
   ============================================================================= */

:root { --ap-primary: #f98c1f; }

/* ── Page wrapper ── */
.ap-contact-page {
    max-width: 1280px;
    margin: 0 auto;
    padding: 4rem 1.5rem 6rem;
}

/* ── Hero ── */
.ap-hero { margin-bottom: 4rem; }
.ap-hero h2 {
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    margin: 0 0 1.25rem;
}
.ap-hero h2 .ap-primary { color: var(--ap-primary); }
.ap-hero p {
    font-size: 1.1rem;
    color: #64748b;
    max-width: 42rem;
    font-weight: 500;
    line-height: 1.75;
    margin: 0;
}

/* ── Grille 2 colonnes ── */
.ap-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
}
@media (min-width: 1024px) {
    .ap-grid { grid-template-columns: 1fr 1fr; gap: 6rem; }
}

/* ── Infos de contact ── */
.ap-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2.5rem;
}
@media (max-width: 600px) { .ap-info-grid { grid-template-columns: 1fr; } }

.ap-info-label {
    display: block;
    color: var(--ap-primary);
    font-weight: 700;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 0.4rem;
}
.ap-info-value {
    font-size: 1rem;
    font-weight: 700;
    color: inherit;
    text-decoration: none;
    line-height: 1.45;
    transition: color 0.2s;
}
.ap-info-value:hover { color: var(--ap-primary); }

/* ── Horaires ── */
.ap-hours {
    padding-top: 2.5rem;
    border-top: 1px solid #e2e8f0;
    margin-bottom: 2.5rem;
}
.ap-hours-title {
    font-size: 1rem;
    font-weight: 900;
    text-transform: uppercase;
    margin: 0 0 1.25rem;
}
.ap-hours-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.95rem;
}
.ap-hours-row .day  { font-weight: 500; }
.ap-hours-row .time { font-weight: 700; }
.ap-hours-row.sunday { color: var(--ap-primary); }
.ap-hours-row.sunday .day { font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }

/* ── Formulaire ── */
.ap-form-section { padding-top: 2.5rem; }
.ap-form-title { font-size: 1rem; font-weight: 900; text-transform: uppercase; margin: 0 0 1.75rem; }

.ap-form .ap-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}
@media (max-width: 600px) { .ap-form .ap-row { grid-template-columns: 1fr; } }

.ap-form .ap-group { margin-bottom: 1.25rem; }
.ap-form label {
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #94a3b8;
    margin-bottom: 0.5rem;
}
.ap-form input,
.ap-form select,
.ap-form textarea {
    width: 100%;
    background: transparent;
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-family: inherit;
    color: inherit;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.ap-form input:focus,
.ap-form select:focus,
.ap-form textarea:focus {
    outline: none;
    border-color: var(--ap-primary);
    box-shadow: 0 0 0 3px rgba(249,140,31,0.15);
}
.ap-form .ap-btn-submit {
    width: 100%;
    background: var(--ap-primary);
    color: #fff;
    border: none;
    border-radius: 0.5rem;
    padding: 1rem;
    font-size: 0.875rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    cursor: pointer;
    font-family: inherit;
    box-shadow: 0 10px 25px rgba(249,140,31,0.2);
    transition: background 0.2s;
    margin-top: 0.5rem;
}
.ap-form .ap-btn-submit:hover { background: #e07a10; }

/* Alertes */
.ap-alert { padding: 0.9rem 1.25rem; border-radius: 0.5rem; margin-bottom: 1.5rem; font-weight: 600; font-size: 0.9rem; }
.ap-alert-success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.ap-alert-danger  { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }

/* ── Colonne carte ── */
.ap-map-col {
    position: sticky;
    top: 8rem;
    height: fit-content;
}
.ap-map-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    height: 480px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.12);
    margin-bottom: 1.5rem;
}
.ap-map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: 0;
    filter: grayscale(1) contrast(1.2) opacity(0.85);
}
.ap-map-card {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    right: 1.5rem;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(8px);
    padding: 1.1rem 1.25rem;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
}
.ap-map-card-icon {
    background: rgba(249,140,31,0.1);
    padding: 0.65rem;
    border-radius: 0.5rem;
    flex-shrink: 0;
    font-size: 1.25rem;
    line-height: 1;
}
.ap-map-card-text h4 { margin: 0 0 0.2rem; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; }
.ap-map-card-text p  { margin: 0; font-size: 0.65rem; color: #94a3b8; text-transform: uppercase; font-weight: 600; letter-spacing: 0.05em; }
.ap-map-card-btn {
    margin-left: auto;
    flex-shrink: 0;
    background: #0f172a;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.6rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s;
}
.ap-map-card-btn:hover { background: var(--ap-primary); color: #fff; }

/* ── Image de marque ── */
.ap-brand-img {
    position: relative;
    border-radius: 0.75rem;
    overflow: hidden;
    height: 260px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}
.ap-brand-img img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.ap-brand-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    display: flex;
    align-items: flex-end;
    padding: 2rem;
}
.ap-brand-overlay p { margin: 0; color: #fff; font-size: 1.5rem; font-weight: 900; text-transform: uppercase; letter-spacing: -0.03em; line-height: 1.2; }
.ap-brand-overlay p span { color: var(--ap-primary); text-decoration: underline; }
