/* ============================================================
   Flying Fries — Base
   Reset, typography, body, links, shared page structure.
   Extracted from the former styles.css.
   ============================================================ */

@font-face {
    font-family: 'Futura';
    src: url('../fonts/FuturaPTMedium.otf') format('opentype');
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    background-color: var(--ff-dark);
}

body {
    background-color: var(--ff-bg);
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    color: var(--ff-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Typography --- */

h1, h2, h3 {
    font-family: 'Futura', 'Trebuchet MS', sans-serif;
    color: var(--ff-text);
    line-height: 1.2;
}

h1 {
    font-size: 2rem;
    font-weight: 700;
    text-transform: uppercase;
    padding-top: 20px;
    padding-bottom: 10px;
}

h2 {
    font-size: calc(1rem + 0.9vw);
    font-weight: 700;
    color: var(--ff-text-muted);
    padding-top: 20px;
    padding-bottom: 10px;
}

h3 {
    font-size: calc(0.8rem + 0.7vw);
    font-weight: 700;
    color: var(--ff-text-muted);
    padding-top: 20px;
    padding-bottom: 10px;
}

p {
    overflow-wrap: break-word;
}

a {
    color: var(--ff-blue);
    transition: color var(--ff-transition-fast);
}

a:hover {
    color: var(--ff-gold);
}

.page-content p + p {
    margin-top: 14px;
}

ul, ol {
    margin: 16px 0;
    padding-left: 28px;
}

li {
    margin-bottom: 8px;
    line-height: 1.7;
}

/* --- Blockquote / Callout --- */

blockquote {
    margin: 20px 0;
    padding: 20px 24px;
    background: var(--ff-bg-warm);
    border: 1px solid var(--ff-border);
    border-left: 3px solid var(--ff-gold);
    border-radius: var(--ff-radius-lg);
}

blockquote p:first-child {
    margin-top: 0;
}

blockquote p:last-child {
    margin-bottom: 0;
}

/* --- Tables --- */

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 14px;
}

th, td {
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1px solid var(--ff-border);
}

th {
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--ff-text-muted);
}

tr:hover td {
    background: var(--ff-bg-warm);
}

.compat-yes {
    color: var(--ff-green);
    font-weight: 600;
}

.compat-no {
    color: var(--ff-red);
    font-weight: 600;
}

/* --- Utility classes --- */

.futura {
    font-family: 'Futura', 'Trebuchet MS', sans-serif;
}

.nowrap {
    white-space: nowrap;
}

.text-paragraph {
    text-indent: 15px;
}

/* --- Main page wrapper --- */

.page-wrapper {
    position: relative;
    padding: 20px 30px;
    padding-top: 80px; /* space for fixed header */
}

.page-content {
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
}

/* Home page: no top padding (hero is full-bleed) */
body.is-home .page-wrapper {
    padding-top: 0;
}

/* --- Responsive --- */

@media screen and (max-width: 768px) {
    table {
        font-size: 12px;
    }

    th, td {
        padding: 8px 10px;
    }

    th {
        font-size: 10px;
    }
}


/* =========================
   LIGHTBOX (partage entre produits et articles)
   ========================= */

.lightbox {
    position: fixed;
    inset: 0;
    z-index: var(--ff-z-lightbox-bg);
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: none;
    border: none;
    color: #fff;
    font-size: 36px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity var(--ff-transition-fast);
    z-index: 2;
}

.lightbox-close:hover { opacity: 1; }

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #fff;
    font-size: 48px;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity var(--ff-transition-fast);
    z-index: 2;
    padding: 0 16px;
}

.lightbox-prev { left: 0; }
.lightbox-next { right: 0; }
.lightbox-prev:hover,
.lightbox-next:hover { opacity: 1; }

.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
}
