/* =========================================================
   VIVIEN VERHAEGHE PÂTISSERIE
   Les couleurs du logo : orange et noir, sur fond ivoire chaud.
   Boutons arrondis, grandes photos, navigation simple.
========================================================= */

:root {
    --orange: #CA6A0E;        /* orange du logo */
    --orange-hover: #DE8122;
    --orange-deep: #A9510A;   /* petits textes sur fond clair */
    --ink: #130D07;           /* noir du logo */
    --ink-soft: #5B4A3D;
    --ivory: #FBF5EA;
    --peach: #F4E2C8;

    --line: rgba(19, 13, 7, 0.14);

    --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
    --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

    --head-h: 76px;
    --gutter: clamp(18px, 5vw, 56px);
    --radius: 28px;
}


/* ---------- Base ---------- */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--head-h) + 12px);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--ivory);
    color: var(--ink);
    font: 400 1.0625rem/1.7 var(--sans);
    -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, p, figure, ul {
    margin: 0;
}

h1, h2 {
    font-family: var(--serif);
    font-weight: 700;
    letter-spacing: -0.01em;
}

h2 {
    font-size: clamp(2.2rem, 4.6vw, 3.4rem);
    line-height: 1.08;
}

:focus-visible {
    outline: 3px solid var(--ink);
    outline-offset: 3px;
    box-shadow: 0 0 0 6px var(--ivory);
}

.hero :focus-visible,
.footer :focus-visible,
.community :focus-visible {
    outline-color: var(--orange-hover);
    box-shadow: none;
}

.wrap {
    width: min(100% - 2 * var(--gutter), 1180px);
    margin-inline: auto;
}

.skip {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 60;
    padding: 10px 16px;
    border-radius: 999px;
    background: var(--ink);
    color: var(--ivory);
}

.skip:focus {
    top: 12px;
}


/* ---------- Boutons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 0 32px;
    border: 2px solid transparent;
    border-radius: 999px;
    font: 600 1rem/1 var(--sans);
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease,
                background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

/* Orange avec texte noir : comme le logo */
.btn-primary {
    background: var(--orange);
    color: var(--ink);
}

.btn-primary:hover {
    background: var(--orange-hover);
    box-shadow: 0 10px 24px rgba(202, 106, 14, 0.35);
}

.btn-dark {
    background: var(--ink);
    color: var(--ivory);
}

.btn-dark:hover {
    background: var(--ivory);
    color: var(--ink);
}

.btn-outline {
    border-color: var(--ink);
    color: var(--ink);
}

.btn-outline:hover {
    background: var(--ink);
    color: var(--ivory);
}

.btn-outline-light {
    border-color: rgba(251, 245, 234, 0.7);
    color: var(--ivory);
}

.btn-outline-light:hover {
    background: var(--ivory);
    color: var(--ink);
}

.btn-small {
    min-height: 46px;
    padding: 0 24px;
    font-size: 0.9375rem;
}

.cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.cta-center {
    justify-content: center;
    margin-top: clamp(32px, 5vw, 52px);
}


/* ---------- En-tête ---------- */

.header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: var(--orange);
    color: var(--ink);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    height: var(--head-h);
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-mark {
    height: 44px;
    width: auto;
}

.brand-text {
    display: grid;
    line-height: 1.05;
}

.brand-text strong {
    font-family: var(--serif);
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.brand-text small {
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.34em;
    text-transform: uppercase;
}

.nav {
    display: flex;
    gap: clamp(20px, 3vw, 40px);
    margin-left: auto;
    margin-right: 8px;
}

.nav a {
    padding: 8px 0;
    border-bottom: 2px solid transparent;
    font-size: 0.9375rem;
    font-weight: 600;
    transition: border-color 0.2s ease;
}

.nav a:hover {
    border-color: var(--ink);
}

@media (max-width: 760px) {
    :root {
        --head-h: 66px;
    }

    .nav {
        display: none;
    }

    .brand-mark {
        height: 40px;
    }
}

/* Sur très petit écran : monogramme seul */
@media (max-width: 440px) {
    .brand-text {
        display: none;
    }
}


/* ---------- Accueil ---------- */

.hero {
    background: var(--ink);
    color: var(--ivory);
}

.hero-grid {
    display: grid;
    align-items: center;
    gap: clamp(36px, 6vw, 80px);
    padding-block: clamp(40px, 7vw, 96px);
}

.badge {
    display: inline-block;
    padding: 8px 18px;
    border: 1px solid var(--orange);
    border-radius: 999px;
    color: var(--orange-hover);
    font-size: 0.9375rem;
    font-weight: 600;
}

.hero h1 {
    max-width: 14ch;
    margin: 22px 0;
    font-size: clamp(2.9rem, 6.4vw, 5.2rem);
    line-height: 1.02;
}

.lead {
    max-width: 40ch;
    margin-bottom: 34px;
    color: rgba(251, 245, 234, 0.82);
    font-size: 1.1875rem;
}

.hero-chef {
    width: 100%;
    max-width: 460px;
}

.hero-chef img {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    background: #1d1610;
}

.hero-chef figcaption {
    margin-top: 12px;
    color: rgba(251, 245, 234, 0.7);
    font-family: var(--serif);
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

@media (min-width: 861px) {
    .hero-grid {
        grid-template-columns: 1.1fr 0.9fr;
    }

    .hero-chef {
        justify-self: end;
    }
}

/* Une seule entrée animée, au chargement */
.hero-copy > * {
    animation: rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-copy > :nth-child(2) { animation-delay: 0.06s; }
.hero-copy > :nth-child(3) { animation-delay: 0.12s; }
.hero-copy > :nth-child(4) { animation-delay: 0.18s; }

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
}


/* ---------- Créations ---------- */

.creations {
    padding-block: clamp(64px, 9vw, 112px);
}

.section-head {
    margin-bottom: clamp(28px, 4vw, 48px);
    text-align: center;
}

.section-head p {
    margin-top: 10px;
    color: var(--ink-soft);
}

.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    padding: 0;
    list-style: none;
}

.gallery li {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: 22px;
    background: var(--peach);
    overflow: hidden;
}

/* La photo verticale (fraisier) occupe deux rangées */
.gallery .g-tall {
    grid-row: span 2;
    aspect-ratio: auto;
}

.thumb {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: none;
    cursor: zoom-in;
}

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

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

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

    .gallery li {
        border-radius: 18px;
    }
}


/* ---------- Événements ---------- */

.events {
    padding-block: clamp(64px, 9vw, 112px);
    background: var(--peach);
}

.events-grid {
    display: grid;
    align-items: center;
    gap: clamp(28px, 5vw, 72px);
}

.events-photo {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: var(--radius);
    background: var(--ivory);
}

.events-copy p {
    max-width: 40ch;
    margin: 16px 0 24px;
    color: var(--ink-soft);
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 32px;
    padding: 0;
    list-style: none;
}

.chips li {
    padding: 8px 18px;
    border: 1.5px solid var(--ink);
    border-radius: 999px;
    font-size: 0.9375rem;
    font-weight: 500;
}

@media (min-width: 861px) {
    .events-grid {
        grid-template-columns: 0.9fr 1.1fr;
    }
}


/* ---------- Communauté ---------- */

.community-wrap {
    padding-block: clamp(48px, 7vw, 88px) 0;
}

.community {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px 40px;
    padding: clamp(28px, 4vw, 48px);
    border-radius: var(--radius);
    background: var(--ink);
    color: var(--ivory);
}

.community h2 {
    font-size: clamp(1.9rem, 3.4vw, 2.6rem);
}

.community p {
    max-width: 44ch;
    margin-top: 8px;
    color: rgba(251, 245, 234, 0.8);
}


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

.contact {
    padding-block: clamp(64px, 9vw, 112px);
}

.info-grid {
    display: grid;
    gap: 14px;
    margin-bottom: 14px;
}

@media (min-width: 761px) {
    .info-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.info-card {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #fff;
}

.info-card h3 {
    margin-bottom: 10px;
    color: var(--orange-deep);
    font: 600 0.9375rem/1.4 var(--sans);
}

.info-card p {
    overflow-wrap: anywhere;
}

.big-link,
.text-link {
    display: inline-block;
    padding: 4px 0;
    border-bottom: 2px solid var(--orange);
    font-weight: 600;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.text-link {
    margin-top: 12px;
    color: var(--orange-deep);
}

.big-link:hover,
.text-link:hover {
    border-color: var(--ink);
}

.map {
    position: relative;
    display: grid;
    min-height: 380px;
    border-radius: var(--radius);
    background: var(--peach);
    overflow: hidden;
}

.map iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.map-facade {
    display: grid;
    gap: 18px;
    justify-items: center;
    place-self: center;
    padding: 24px;
    text-align: center;
}

.map-facade p {
    color: var(--ink-soft);
}


/* ---------- Pied de page ---------- */

.footer {
    padding-block: clamp(40px, 6vw, 64px);
    background: var(--ink);
    color: rgba(251, 245, 234, 0.75);
    font-size: 0.9375rem;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 28px 40px;
}

.footer-logo {
    width: 200px;
    height: auto;
}

.footer-meta {
    display: grid;
    gap: 10px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 24px;
}

.footer-links a {
    padding: 6px 0;
}

.footer-links a:hover {
    color: #fff;
}


/* ---------- Photo agrandie ---------- */

.lightbox {
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
}

.lightbox::backdrop {
    background: rgba(19, 13, 7, 0.95);
}

.lightbox[open] {
    display: grid;
    place-items: center;
}

.lightbox img {
    max-width: min(92vw, 900px);
    max-height: 86vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 16px;
}

.lb-btn {
    position: absolute;
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    font-size: 1.7rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease;
}

.lb-btn:hover {
    background: var(--orange);
    color: var(--ink);
}

.lb-close {
    top: 16px;
    right: 16px;
}

.lb-prev,
.lb-next {
    top: 50%;
    transform: translateY(-50%);
}

.lb-prev { left: 12px; }
.lb-next { right: 12px; }

@media (max-width: 760px) {
    .lb-prev { left: 6px; }
    .lb-next { right: 6px; }
}


/* ---------- Accessibilité : mouvement réduit ---------- */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}


/* ---------- Pages légales ---------- */

.legal.wrap {
    width: min(100% - 2 * var(--gutter), 760px);
    padding-block: clamp(48px, 8vw, 96px);
}

.legal h1 {
    margin-bottom: 8px;
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    line-height: 1.05;
}

.legal .updated {
    margin-bottom: 36px;
    color: var(--ink-soft);
    font-size: 0.9375rem;
}

.legal h2 {
    margin: 44px 0 12px;
    font-size: clamp(1.6rem, 2.8vw, 2rem);
    line-height: 1.15;
}

.legal p,
.legal li {
    margin-bottom: 12px;
}

.legal ul {
    margin: 0 0 12px;
    padding-left: 1.2em;
}

.legal p a,
.legal li a,
.legal dd a {
    border-bottom: 2px solid var(--orange);
    font-weight: 600;
}

.legal p a:hover,
.legal li a:hover,
.legal dd a:hover {
    border-color: var(--ink);
}

.legal dl {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 10px 28px;
    margin: 0 0 12px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
}

.legal dt {
    font-weight: 600;
}

.legal dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.legal .back {
    display: inline-block;
    margin-bottom: 28px;
    padding: 6px 0;
    border-bottom: 2px solid var(--orange);
    font-weight: 600;
}

/* Informations à compléter : surlignées en jaune */
.todo {
    padding: 1px 6px;
    border-radius: 4px;
    background: #FFE08A;
    color: var(--ink);
    font-weight: 600;
}

@media (max-width: 560px) {
    .legal dl {
        grid-template-columns: 1fr;
        gap: 2px;
    }

    .legal dd {
        margin-bottom: 14px;
    }
}
