/*
 * Shared styles of the secondary pages (shop.php, order.php): nav, mobile menu, page header, footer,
 * page layout. Taken from privacy.php, whose inline <style> blocks still
 * carry their own copies. Design tokens (--primary, --radius...) come from the theme
 * stylesheet (css/theme-*.css) loaded before this file.
 */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', sans-serif; color: var(--dark); background: var(--white); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; }

/* ── NAV ── */
nav {
    position: sticky; top: 0; z-index: 100;
    background: var(--nav-bg); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border); height: 68px;
}
.nav-logo { position: absolute; left: 24px; top: 50%; transform: translateY(-50%); }
.nav-right { position: absolute; right: 24px; top: 50%; transform: translateY(-50%); display: flex; align-items: center; gap: 12px; }
.nav-inner { max-width: 1100px; margin: 0 auto; height: 68px; display: flex; align-items: center; justify-content: center; }
.nav-links { display: flex; gap: 32px; list-style: none; font-size: 0.95rem; font-weight: 500; }
.nav-links a { color: var(--muted); transition: color .2s; }
.nav-links a:hover { color: var(--dark); }
.logo { font-size: 1.5rem; font-weight: 800; color: #999999; letter-spacing: -0.5px; }
.logo span { color: #111111; }
.nav-cta {
    background: var(--primary); color: var(--white) !important;
    padding: 10px 22px; border-radius: 50px; font-weight: 600; font-size: 0.9rem;
    transition: background .2s, transform .15s;
}
.nav-cta:hover { background: var(--primary-dark) !important; transform: translateY(-1px); }
.nav-icon-btn {
    display: flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border-radius: 50%;
    border: 1px solid var(--border); background: transparent;
    cursor: pointer; color: var(--dark); transition: background .2s; text-decoration: none;
}
.nav-icon-btn:hover { background: var(--light); }
.nav-lang {
    display: flex; align-items: center; gap: 4px; font-size: 0.85rem; font-weight: 600;
    color: var(--muted); cursor: pointer; border: 1px solid var(--border);
    border-radius: 50px; padding: 6px 12px; background: transparent; transition: background .2s;
}
.nav-lang:hover { background: var(--light); color: var(--dark); }
.nav-burger {
    display: none; position: absolute; right: 24px; top: 50%; transform: translateY(-50%);
    flex-direction: column; justify-content: center; gap: 5px;
    width: 38px; height: 38px; background: transparent; border: none; cursor: pointer; padding: 6px; z-index: 101;
}
.nav-burger span { display: block; width: 100%; height: 2px; background: var(--dark); border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu {
    display: none; position: fixed; top: 68px; left: 0; right: 0;
    background: rgba(255,255,255,0.98); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border); padding: 24px;
    flex-direction: column; gap: 0; z-index: 99;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { display: block; padding: 14px 0; font-size: 1rem; font-weight: 500; color: var(--dark); border-bottom: 1px solid var(--border); }
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu .mobile-cta { margin-top: 16px; background: var(--primary); color: var(--white); text-align: center; padding: 12px 24px; border-radius: 50px; font-weight: 600; border-bottom: none; }

/* ── PAGE ── */
.page-header {
    background: var(--light);
    border-bottom: 1px solid var(--border);
    padding: 56px 24px 48px;
    text-align: center;
}
.page-header h1 { font-size: 2.2rem; font-weight: 800; letter-spacing: -0.5px; margin-bottom: 12px; }
.page-header p { color: var(--muted); font-size: 1rem; }

/* ── FOOTER ── */
footer { background: var(--dark); color: rgba(255,255,255,0.6); padding: 64px 24px 32px; }
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand .logo { margin-bottom: 16px; color: rgba(255,255,255,0.6); }
.footer-brand .logo span { color: var(--white); }
.footer-brand p { font-size: 0.9rem; line-height: 1.7; max-width: 280px; }
.footer-col h4 { color: var(--white); font-size: 0.9rem; font-weight: 600; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.5px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { font-size: 0.9rem; color: rgba(255,255,255,0.55); transition: color .2s; }
.footer-col ul li a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem; }

@media (max-width: 768px) {
    .nav-links { display: none; } .nav-right { display: none; } .nav-burger { display: flex; }
    .footer-top { grid-template-columns: 1fr 1fr; }
    .page-header h1 { font-size: 1.7rem; }
}
@media (max-width: 480px) {
    .footer-top { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
}

/* ── SHOP ── */
.shop-body { max-width: 1100px; margin: 0 auto; padding: 64px 24px 80px; }
.shop-note { text-align: center; color: var(--muted); font-size: 0.95rem; margin-top: 40px; }
.shop-note a { color: var(--primary); text-decoration: underline; }

/* ── ORDER (order.php) ── */
.order-body { max-width: 640px; margin: 0 auto; padding: 56px 24px 80px; }
.order-form { display: flex; flex-direction: column; gap: 20px; }
/* One .order-row per line of the form: "Nom, Prénom" side by side, then "E-mail". */
.order-row { display: flex; gap: 20px; }
.order-field { flex: 1; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.order-field label { font-weight: 600; font-size: 0.95rem; }
.order-field input {
    font: inherit; padding: 12px 14px; border: 1px solid var(--border);
    border-radius: var(--radius-sm, 8px); background: var(--white); color: var(--dark);
}
.order-field input:focus { outline: 2px solid var(--primary); outline-offset: 1px; border-color: var(--primary); }
.order-field input[aria-invalid="true"] { border-color: #c0392b; }
.order-field-error { color: #c0392b; font-size: 0.85rem; }
.order-error { color: #c0392b; margin-bottom: 20px; }
.order-error a, .order-back a { color: var(--primary); text-decoration: underline; }
/* Anti-spam field: out of sight, but not display:none, which some bots detect. */
.order-honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.order-message { font-size: 1.1rem; text-align: center; }
.order-back { text-align: center; margin-top: 32px; }

@media (max-width: 480px) {
    .order-row { flex-direction: column; }
}
/* Offer end date, highlighted under the plan reminder. */
.page-header .order-note {
    display: inline-block; margin-top: 14px; padding: 8px 16px;
    background: var(--primary-light); color: var(--primary-dark);
    border: 1px solid var(--primary); border-radius: var(--radius-sm, 8px);
    font-size: 1rem; font-weight: 700;
}
/* The anti-spam sum: a short answer, the field needs no full width. */
.order-field input.order-captcha { max-width: 120px; }
