/* ============================================================
   pages.css — maisonguerin.com
   Styles shared by all inner pages (legal, contact, brand, 404)
============================================================ */

/* ============================================================
   Page Hero (inner pages)
============================================================ */
.page-hero {
    background: var(--off-white);
    padding: 80px 0 56px;
    border-bottom: 1px solid var(--grey-light);
}

.page-hero .section-label {
    display: block;
    margin-bottom: 12px;
}

.page-hero-title {
    font-family: var(--playfair);
    font-size: clamp(2.2rem, 4vw, 3.6rem);
    font-weight: 600;
    color: var(--dark);
    line-height: 1.1;
    margin-bottom: 20px;
}

.page-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.page-breadcrumb .breadcrumb-item {
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    color: var(--grey);
    text-decoration: none;
    transition: color var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.page-breadcrumb .breadcrumb-item:not(.active)::after {
    content: '/';
    color: var(--grey-light);
    font-size: 0.7rem;
}

.page-breadcrumb .breadcrumb-item:not(.active):hover {
    color: var(--bordeaux);
}

.page-breadcrumb .breadcrumb-item.active {
    font-size: 0.75rem;
    color: var(--bordeaux);
    font-weight: 500;
}

/* ============================================================
   Section padding utility for inner pages
============================================================ */
.section-pad {
    padding: 100px 0;
}

/* ============================================================
   Legal pages
============================================================ */
.legal-section {
    padding: 80px 0 100px;
    background: var(--white);
}

/* Full-width prose — WordPress editor will write h2/p/ul directly here */
.legal-prose {
    max-width: 100%;
}

.legal-prose h2 {
    font-family: var(--playfair);
    font-size: 1.45rem;
    font-weight: 600;
    color: var(--dark);
    margin-top: 48px;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--bordeaux);
    display: inline-block;
}

.legal-prose h2:first-child { margin-top: 0; }

.legal-prose p {
    font-size: 0.93rem;
    line-height: 1.95;
    color: var(--grey);
    margin-bottom: 14px;
}

.legal-prose p:last-child { margin-bottom: 0; }

.legal-prose ul {
    padding-left: 20px;
    margin-bottom: 14px;
}

.legal-prose ul li {
    font-size: 0.93rem;
    line-height: 1.9;
    color: var(--grey);
    margin-bottom: 4px;
}

.legal-prose a {
    color: var(--bordeaux);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color var(--transition);
}

.legal-prose a:hover { border-color: var(--bordeaux); }

.legal-prose em { color: rgba(107,107,107,0.7); font-size: 0.85rem; }

.legal-block {
    margin-bottom: 52px;
    padding-bottom: 52px;
    border-bottom: 1px solid var(--grey-light);
}

.legal-block:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.legal-block h2 {
    font-family: var(--playfair);
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--bordeaux);
    display: inline-block;
}

.legal-block p {
    font-size: 0.92rem;
    line-height: 1.95;
    color: var(--grey);
    margin-bottom: 14px;
}

.legal-block p:last-child { margin-bottom: 0; }

.legal-block ul {
    padding-left: 20px;
    margin-bottom: 14px;
}

.legal-block ul li {
    font-size: 0.92rem;
    line-height: 1.9;
    color: var(--grey);
    margin-bottom: 4px;
}

.legal-block a {
    color: var(--bordeaux);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color var(--transition);
}

.legal-block a:hover {
    border-color: var(--bordeaux);
}

/* ============================================================
   Contact page
============================================================ */
.contact-section {
    padding: 80px 0 100px;
    background: var(--white);
}

.contact-info-block {
    margin-bottom: 40px;
}

.contact-info-block h3 {
    font-family: var(--playfair);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 12px;
}

.contact-info-block p {
    font-size: 0.9rem;
    line-height: 1.85;
    color: var(--grey);
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 0;
    border-bottom: 1px solid var(--grey-light);
    font-size: 0.88rem;
    line-height: 1.7;
    color: var(--grey);
}

.contact-info-item:last-of-type {
    border-bottom: none;
}

.contact-info-item a {
    color: var(--bordeaux);
    text-decoration: none;
    transition: opacity var(--transition);
}

.contact-info-item a:hover { opacity: 0.75; }

.contact-info-icon {
    width: 40px;
    height: 40px;
    background: var(--bordeaux);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
}

.contact-info-item strong {
    display: block;
    color: var(--dark);
    font-size: 0.72rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 3px;
}

/* Contact form */
.contact-form-wrap {
    background: var(--off-white);
    padding: 48px 40px;
}

.form-label-mg {
    display: block;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--dark);
    margin-bottom: 8px;
}

.form-input-mg {
    width: 100%;
    background: var(--white);
    border: 1px solid var(--grey-light);
    border-radius: 0;
    font-family: var(--inter);
    font-size: 0.88rem;
    font-weight: 300;
    color: var(--dark);
    padding: 12px 16px;
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}

.form-input-mg:focus {
    border-color: var(--bordeaux);
    box-shadow: 0 0 0 3px rgba(76,28,40,0.08);
}

.form-input-mg::placeholder { color: rgba(107,107,107,0.5); }

textarea.form-input-mg { resize: vertical; min-height: 130px; }

select.form-input-mg {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%236b6b6b' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 14px;
    padding-right: 40px;
}

.contact-rgpd {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.8rem;
    color: var(--grey);
    line-height: 1.6;
}

.contact-rgpd input[type="checkbox"] {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin-top: 2px;
    accent-color: var(--bordeaux);
    cursor: pointer;
}

.contact-rgpd a {
    color: var(--bordeaux);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color var(--transition);
}

.contact-rgpd a:hover { border-color: var(--bordeaux); }

/* ============================================================
   Brand / La Marque page
============================================================ */
.brand-intro {
    background: var(--white);
}

.brand-main-img {
    width: 100%;
    height: 560px;
    object-fit: cover;
    display: block;
}

.brand-img-wrap {
    position: relative;
}

.brand-img-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--bordeaux);
    color: white;
    padding: 20px 28px;
    text-align: center;
}

.badge-year {
    display: block;
    font-family: var(--playfair);
    font-size: 2rem;
    font-weight: 600;
    line-height: 1;
}

.badge-label {
    display: block;
    font-size: 0.65rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    opacity: 0.8;
    margin-top: 4px;
}

.brand-text,
.brand-histoire-content p {
    font-size: 0.95rem;
    line-height: 2;
    color: var(--grey);
    margin-bottom: 16px;
}

/* Timeline */
.brand-timeline {
    padding: 100px 0;
    background: var(--off-white);
}

.timeline {
    position: relative;
    padding-left: 80px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 36px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: var(--grey-light);
}

.timeline-item {
    position: relative;
    display: flex;
    gap: 40px;
    align-items: flex-start;
    margin-bottom: 52px;
}

.timeline-item:last-child { margin-bottom: 0; }

.timeline-item::before {
    content: '';
    position: absolute;
    left: -48px;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--bordeaux);
    border: 3px solid var(--off-white);
    box-shadow: 0 0 0 2px var(--bordeaux);
}

.timeline-year {
    font-family: var(--playfair);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--bordeaux);
    min-width: 70px;
    line-height: 1.2;
}

.timeline-content h4 {
    font-family: var(--playfair);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 6px;
}

.timeline-content p {
    font-size: 0.88rem;
    line-height: 1.8;
    color: var(--grey);
    margin: 0;
}

/* Stats band — dark version (kept for reference) */
.brand-stats {
    padding: 80px 0;
    background: var(--dark);
}

.brand-stat-num {
    font-family: var(--playfair);
    font-size: 2.8rem;
    font-weight: 600;
    color: var(--white);
    line-height: 1;
    margin-bottom: 8px;
}

.brand-stat-lbl {
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
}

/* Stats band — light version (off-white bg, bordeaux numbers) */
.brand-stats-light {
    background: var(--off-white) !important;
    border-top: 1px solid var(--grey-light);
    border-bottom: 1px solid var(--grey-light);
}

.brand-stats-light .brand-stat-num {
    color: var(--bordeaux);
}

.brand-stats-light .brand-stat-lbl {
    color: var(--grey);
}

/* ============================================================
   404 page
============================================================ */
.page-404 {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    background: var(--off-white);
    padding: 80px 0;
}

.error-num {
    font-family: var(--playfair);
    font-size: clamp(8rem, 18vw, 16rem);
    font-weight: 600;
    color: var(--bordeaux);
    line-height: 1;
    opacity: 0.12;
    margin-bottom: -30px;
    position: relative;
    z-index: 0;
    user-select: none;
}

.error-title {
    font-family: var(--playfair);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.error-text {
    font-size: 1rem;
    color: var(--grey);
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

/* ============================================================
   Responsive — inner pages
============================================================ */
@media (max-width: 991px) {
    .brand-img-badge {
        right: 8px;
        bottom: -12px;
    }

    .brand-main-img { height: 380px; }

    .timeline { padding-left: 60px; }
}

@media (max-width: 767px) {
    .page-hero { padding: 60px 0 40px; }
    .contact-form-wrap { padding: 32px 24px; }
    .timeline { padding-left: 48px; }
    .timeline-item { flex-direction: column; gap: 8px; }
    .brand-main-img { height: 280px; }
}

@media (max-width: 575px) {
    .error-num { font-size: 8rem; }
    .timeline { padding-left: 36px; }
    .timeline::before { left: 6px; }
    .timeline-item::before { left: -30px; }
}
