/* ============================================================
   Le Fournil du Bourg — styles
   Design artisanal chaleureux : terre / or / crème
   ============================================================ */

:root {
    --bg: #FBF7F0;
    --bg-alt: #F3EADC;
    --bg-dark: #2C1810;
    --bg-dark-alt: #3D2419;
    --accent: #B8743D;
    --accent-dark: #9A5F30;
    --gold: #D4A574;
    --text: #3D2817;
    --text-soft: #6B5544;
    --text-light: #F5E9D7;
    --border: rgba(61, 40, 23, 0.12);
    --shadow-sm: 0 2px 8px rgba(61, 40, 23, 0.08);
    --shadow-md: 0 12px 32px rgba(61, 40, 23, 0.12);
    --shadow-lg: 0 24px 60px rgba(61, 40, 23, 0.18);

    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;

    --max-width: 1200px;
    --section-py: clamp(4rem, 10vw, 8rem);
}

/* ---------- Reset / base ---------- */

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

h1, h2, h3 {
    font-family: var(--font-serif);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.35rem; }

p { color: var(--text-soft); }

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

.eyebrow {
    font-family: var(--font-sans);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 1rem;
}

.eyebrow-light { color: var(--gold); }

/* ---------- Header ---------- */

.site-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    padding: 1.5rem 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.brand {
    display: flex;
    flex-direction: column;
    line-height: 1;
    color: var(--text-light);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.brand-main {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-style: italic;
    font-weight: 700;
}

.brand-sub {
    font-size: 0.72rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    margin-top: 0.25rem;
    opacity: 0.9;
}

.site-nav {
    display: flex;
    gap: clamp(1rem, 3vw, 2.5rem);
}

.site-nav a {
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-light);
    padding: 0.5rem 0;
    position: relative;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    transition: color 0.25s ease;
}

.site-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.3s ease;
}

.site-nav a:hover {
    color: var(--gold);
}

.site-nav a:hover::after {
    width: 100%;
}

@media (max-width: 560px) {
    .site-nav { gap: 1rem; }
    .site-nav a { font-size: 0.75rem; letter-spacing: 0.06em; }
    .brand-main { font-size: 1.25rem; }
}

/* ---------- Hero ---------- */

.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: var(--text-light);
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    animation: heroZoom 18s ease-out forwards;
}

@keyframes heroZoom {
    from { transform: scale(1.08); }
    to   { transform: scale(1); }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 75% 90% at 28% 55%, rgba(44, 24, 16, 0.88) 0%, rgba(44, 24, 16, 0.7) 30%, rgba(44, 24, 16, 0.4) 60%, rgba(44, 24, 16, 0.25) 100%),
        linear-gradient(to bottom, rgba(44, 24, 16, 0.35) 0%, rgba(44, 24, 16, 0.15) 40%, rgba(44, 24, 16, 0.75) 100%);
    z-index: 1;
}

@media (max-width: 820px) {
    .hero-overlay {
        background:
            linear-gradient(to bottom, rgba(44, 24, 16, 0.65) 0%, rgba(44, 24, 16, 0.55) 50%, rgba(44, 24, 16, 0.82) 100%);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 6rem;
    padding-bottom: 4rem;
    max-width: 900px;
}

.hero .eyebrow {
    color: var(--gold);
}

.hero h1 {
    color: var(--text-light);
    font-weight: 700;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    margin-bottom: 1rem;
}

.hero-tagline {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    color: var(--text-light);
    font-weight: 400;
    margin-bottom: 2.5rem;
    opacity: 0.92;
}

.hero-tagline .amp {
    color: var(--gold);
    font-weight: 700;
    margin: 0 0.25rem;
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* ---------- Buttons ---------- */

.btn {
    display: inline-block;
    padding: 0.95rem 2rem;
    font-size: 0.92rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 999px;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 8px 24px rgba(184, 116, 61, 0.4);
}

.btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(184, 116, 61, 0.5);
}

.btn-ghost {
    background: transparent;
    color: var(--text-light);
    border-color: rgba(245, 233, 215, 0.5);
}

.btn-ghost:hover {
    background: rgba(245, 233, 215, 0.12);
    border-color: var(--gold);
    color: var(--gold);
}

/* ---------- Présentation ---------- */

.presentation {
    padding: var(--section-py) 0;
    background: var(--bg);
}

.presentation-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 6vw, 5rem);
    align-items: center;
}

.presentation-text h2 {
    margin-bottom: 1.5rem;
}

.presentation-text p + p {
    margin-top: 1rem;
}

.presentation-figure img {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    aspect-ratio: 4 / 5;
    object-fit: cover;
    width: 100%;
}

@media (max-width: 820px) {
    .presentation-grid {
        grid-template-columns: 1fr;
    }
    .presentation-figure img {
        aspect-ratio: 16 / 10;
    }
}

/* ---------- Section head ---------- */

.section-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto clamp(3rem, 6vw, 4.5rem);
}

.section-head h2 {
    margin-bottom: 1rem;
}

.section-intro {
    font-size: 1.05rem;
    color: var(--text-soft);
}

/* ---------- Boulangerie ---------- */

.boulangerie {
    padding: var(--section-py) 0;
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.75rem;
    margin-bottom: 3rem;
}

.card {
    background: #fff;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.card-media {
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.card:hover .card-media img {
    transform: scale(1.05);
}

.card-body {
    padding: 1.5rem 1.5rem 1.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-body h3 {
    margin-bottom: 0.6rem;
    color: var(--text);
}

.card-body p {
    font-size: 0.95rem;
    flex: 1;
}

.card-link {
    display: inline-block;
    margin-top: 1.25rem;
    font-weight: 500;
    color: var(--accent);
    letter-spacing: 0.02em;
    transition: color 0.25s ease, transform 0.25s ease;
}

.card-link:hover {
    color: var(--accent-dark);
    transform: translateX(4px);
}

/* ---------- Gallery strip ---------- */

.gallery-strip {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.75rem;
    margin-top: 2rem;
}

.gallery-strip img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: var(--radius-sm);
    transition: transform 0.4s ease, filter 0.4s ease;
    filter: saturate(0.95);
}

.gallery-strip img:hover {
    transform: scale(1.03);
    filter: saturate(1.1);
}

@media (max-width: 900px) {
    .gallery-strip { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 480px) {
    .gallery-strip { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Pizzeria ---------- */

.pizzeria {
    padding: var(--section-py) 0;
    background: var(--bg-dark);
    color: var(--text-light);
    position: relative;
    overflow: hidden;
}

.pizzeria::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 20%, rgba(212, 165, 116, 0.10) 0%, transparent 45%),
        radial-gradient(circle at 85% 80%, rgba(184, 116, 61, 0.12) 0%, transparent 50%);
    pointer-events: none;
}

.pizzeria .container { position: relative; }

.pizzeria .section-head h2 {
    color: var(--text-light);
}

.pizzeria .section-intro {
    color: rgba(245, 233, 215, 0.78);
}

.pizza-mosaic {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 180px;
    gap: 0.9rem;
    grid-template-areas:
        "a a b c"
        "a a d e"
        "f g g e";
}

.pm {
    overflow: hidden;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    position: relative;
}

.pm img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.pm:hover img {
    transform: scale(1.05);
}

.pm-1 { grid-area: a; }
.pm-2 { grid-area: b; }
.pm-3 { grid-area: c; }
.pm-4 { grid-area: d; }
.pm-5 { grid-area: e; }
.pm-6 { grid-area: f; }
.pm-7 { grid-area: g; }

@media (max-width: 900px) {
    .pizza-mosaic {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 200px;
        grid-template-areas:
            "a a"
            "b c"
            "d e"
            "f g";
    }
}

@media (max-width: 520px) {
    .pizza-mosaic {
        grid-template-columns: 1fr;
        grid-auto-rows: 220px;
        grid-template-areas:
            "a"
            "b"
            "c"
            "d"
            "e"
            "f"
            "g";
    }
}

/* ---------- Contact ---------- */

.contact {
    padding: var(--section-py) 0;
    background: var(--bg-alt);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
}

.contact-info h2 {
    margin-bottom: 2rem;
}

.contact-block {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

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

.contact-block h3 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-family: var(--font-sans);
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.contact-block p { color: var(--text); }

.tel-link {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--text);
    font-weight: 600;
    border-bottom: 2px solid var(--accent);
    transition: color 0.25s ease, border-color 0.25s ease;
}

.tel-link:hover {
    color: var(--accent);
    border-color: var(--accent-dark);
}

.hours {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.hours th,
.hours td {
    padding: 0.55rem 0;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-weight: 400;
}

.hours th {
    color: var(--text-soft);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.8rem;
    font-weight: 500;
}

.hours td {
    text-align: right;
    color: var(--text);
    font-variant-numeric: tabular-nums;
}

.hours tr:last-child th,
.hours tr:last-child td {
    border-bottom: none;
}

.contact-map {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    aspect-ratio: 4 / 5;
    min-height: 420px;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

@media (max-width: 820px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .contact-map {
        aspect-ratio: 4 / 3;
        min-height: 320px;
    }
}

/* ---------- Footer ---------- */

.site-footer {
    background: var(--bg-dark);
    color: var(--text-light);
    padding: 3rem 0 2.5rem;
    text-align: center;
}

.footer-brand {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: var(--gold);
}

.footer-meta {
    color: rgba(245, 233, 215, 0.75);
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
}

.footer-copy {
    color: rgba(245, 233, 215, 0.5);
    font-size: 0.8rem;
    letter-spacing: 0.04em;
}

/* ---------- Scroll reveal ---------- */

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.9s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.9s cubic-bezier(0.22, 0.61, 0.36, 1);
    will-change: opacity, transform;
}

.reveal.revealed {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.001s !important;
        transition-duration: 0.001s !important;
    }
    .reveal {
        opacity: 1;
        transform: none;
    }
    .hero-bg { animation: none; }
    html { scroll-behavior: auto; }
}

/* ---------- Focus visible ---------- */

a:focus-visible,
.btn:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 4px;
    border-radius: 4px;
}
