/* Feuille principale du site public. S'appuie sur variables.css. */
*, *::before, *::after { box-sizing: border-box; }
body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
}
h1, h2, h3 { font-family: var(--font-title); line-height: 1.2; }
a { color: var(--brand-dark); }

.container { width: min(100% - 2rem, var(--container)); margin-inline: auto; }

/* --- Header / nav --- */
.site-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 20;
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem 0; }
.brand { text-decoration: none; color: var(--text); display: flex; flex-direction: column; }
.brand__name { font-family: var(--font-title); font-size: 1.4rem; font-weight: 700; color: var(--brand-dark); }
.brand__tagline { font-size: .78rem; color: var(--text-muted); }
.site-nav { display: flex; align-items: center; gap: 1.2rem; }
.site-nav a { text-decoration: none; color: var(--text); font-weight: 500; }
.site-nav a:hover { color: var(--brand); }
.nav-cta {
    background: var(--brand); color: #fff !important; padding: .45rem .9rem;
    border-radius: var(--radius-sm);
}
.nav-toggle { display: none; background: none; border: 0; font-size: 1.5rem; cursor: pointer; }

/* --- Hero --- */
.hero {
    background: linear-gradient(135deg, var(--brand-light), var(--bg));
    padding: 4rem 0;
}
.hero__title { font-size: clamp(2.2rem, 5vw, 3.4rem); margin: 0; color: var(--brand-dark); }
.hero__tagline { font-size: 1.3rem; color: var(--accent); margin: .3rem 0 1rem; }
.hero__lead { max-width: 46ch; color: var(--text-muted); font-size: 1.1rem; }
.hero__actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.6rem; }

/* --- Buttons --- */
.btn {
    display: inline-block; padding: .7rem 1.3rem; border-radius: var(--radius-sm);
    text-decoration: none; font-weight: 600; border: 2px solid transparent; cursor: pointer;
}
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-dark); }
.btn--ghost { background: transparent; border-color: var(--brand); color: var(--brand-dark); }

/* --- Features --- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; padding: 3.5rem 0; }
.feature {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow);
}
.feature h2 { margin-top: 0; color: var(--brand-dark); }
.feature a { font-weight: 600; text-decoration: none; }

/* --- Generic page --- */
.page { padding: 2.5rem 0 4rem; max-width: 800px; }
.page--center { text-align: center; }

/* --- Forms --- */
.form { display: grid; gap: 1rem; max-width: 480px; }
.form label { display: grid; gap: .35rem; font-weight: 600; }
.form input, .form textarea, .form select {
    padding: .6rem .7rem; border: 1px solid var(--border); border-radius: var(--radius-sm);
    font: inherit; background: var(--surface);
}
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 2.5rem; align-items: start; }

/* --- Alerts --- */
.alert { padding: .9rem 1.1rem; border-radius: var(--radius-sm); margin: 1.5rem 0; }
.alert--success { background: var(--success-bg); color: var(--success); }
.alert--danger { background: var(--danger-bg); color: var(--danger); }

/* --- Menu / carte --- */
.page__intro { color: var(--text-muted); margin-bottom: 2rem; }
.menu-section { margin-bottom: 3rem; }
.menu-section__title {
    color: var(--brand-dark); border-bottom: 3px solid var(--brand-light);
    padding-bottom: .4rem; margin-bottom: 1.4rem;
}
.menu-category { margin-bottom: 1.8rem; }
.menu-category h3 { color: var(--accent); margin: 0 0 .3rem; display: flex; align-items: center; gap: .5rem; }
.menu-category__icon { font-size: 1.3rem; }
.menu-category__img { width: 34px; height: 34px; object-fit: cover; border-radius: 8px; }
.menu-item__icon { font-size: 1.4rem; width: 1.8rem; text-align: center; }
.menu-item__img { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; }
.menu-category__desc { color: var(--text-muted); font-style: italic; margin: 0 0 .6rem; }
.menu-list { list-style: none; padding: 0; margin: 0; }
.menu-item {
    display: flex; justify-content: space-between; gap: 1rem; align-items: baseline;
    padding: .5rem 0; border-bottom: 1px dotted var(--border);
}
.menu-item__main { flex: 1; }
.menu-item__name { font-weight: 600; }
.menu-item__desc { display: block; color: var(--text-muted); font-size: .9rem; }
.menu-item__price { font-weight: 700; color: var(--brand-dark); white-space: nowrap; }
.formula-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.2rem; }
.formula { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.2rem; }
.formula__price { float: right; color: var(--brand-dark); }
.menu-cta { text-align: center; margin-top: 2rem; }

/* --- Agenda public --- */
.market-list, .event-list { list-style: none; padding: 0; margin: 0 0 2rem; }
.market, .event { display: flex; flex-wrap: wrap; align-items: baseline; gap: .8rem; padding: .7rem 0; border-bottom: 1px dotted var(--border); }
.market__day, .event__date { font-weight: 700; color: var(--brand-dark); min-width: 170px; }
.market__place, .event__title { flex: 1; }
.market__time { color: var(--text-muted); }
.event__place { color: var(--text-muted); font-weight: 400; }

/* --- Devis (panier) --- */
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 1.6rem; height: 1.6rem; background: var(--brand); color: #fff; border-radius: 50%; font-size: .95rem; margin-right: .5rem; }
.quote-step--date { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.2rem 1.4rem; margin-bottom: 1.5rem; box-shadow: var(--shadow); }
.quote-step--date h2 { margin-top: 0; }
.quote-step--date label { display: grid; gap: .3rem; font-weight: 600; }
.date-layout { display: grid; grid-template-columns: minmax(280px, 360px) 1fr; gap: 2rem; align-items: start; }
.date-side { display: grid; gap: 1rem; align-content: start; }

/* Calendrier */
.calendar { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: .8rem; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .6rem; }
.cal-title { font-weight: 700; color: var(--brand-dark); }
.cal-nav { width: 34px; height: 34px; border: 1px solid var(--border); background: var(--surface); border-radius: 8px; font-size: 1.2rem; cursor: pointer; line-height: 1; }
.cal-nav:hover:not(:disabled) { background: var(--brand-light); }
.cal-nav:disabled { opacity: .35; cursor: not-allowed; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.cal-dow { text-align: center; font-size: .72rem; color: var(--text-muted); font-weight: 700; padding: .3rem 0; }
.cal-cell { aspect-ratio: 1; border: 0; background: var(--surface); border-radius: 8px; cursor: pointer; font: inherit; font-size: .92rem; color: var(--text); transition: background .12s; }
.cal-cell:hover:not(:disabled) { background: var(--brand-light); color: var(--brand-dark); }
.cal-cell--empty { background: transparent; cursor: default; }
.cal-cell.is-disabled { color: #cbbfb2; background: transparent; cursor: not-allowed; text-decoration: line-through; }
.cal-cell.is-selected { background: var(--brand); color: #fff; font-weight: 700; }

/* Créneaux */
.slot-picker { display: grid; gap: .5rem; }
.slot-picker__title { font-weight: 700; }
.slot-opt { display: flex; align-items: center; gap: .5rem; font-weight: 500; padding: .5rem .7rem; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); cursor: pointer; }
.slot-opt:has(input:checked) { border-color: var(--brand); background: #fff7f0; }
.slot-opt.is-disabled { opacity: .4; cursor: not-allowed; text-decoration: line-through; }
.slot-hint { color: var(--text-muted); font-size: .85rem; margin: 0; }
.slot-free { display: grid; gap: .3rem; font-weight: 600; }
.slot-free input { padding: .6rem .7rem; border: 1px solid var(--border); border-radius: var(--radius-sm); font: inherit; }
.summary-date { font-weight: 700; color: var(--brand-dark); margin: 0 0 .4rem; }
.quote-locked-msg { display: none; background: var(--brand-light); color: var(--brand-dark); padding: .7rem .9rem; border-radius: var(--radius-sm); margin-bottom: 1rem; }
.quote-grid.is-locked .quote-locked-msg { display: block; }
.quote-grid.is-locked .quote-catalog .catalog-row { opacity: .45; pointer-events: none; filter: grayscale(.4); }
.quote-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: start; }
.quote-section { color: var(--brand-dark); border-bottom: 2px solid var(--brand-light); padding-bottom: .3rem; margin: 1.5rem 0 .8rem; }
.catalog-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .6rem .8rem; border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: .5rem; background: var(--surface); transition: border-color .15s; }
.catalog-row.is-selected { border-color: var(--brand); background: #fff7f0; }
.catalog-row__name { font-weight: 600; display: block; }
.catalog-row__price { color: var(--brand-dark); font-weight: 700; }
.qty { display: flex; align-items: center; gap: .6rem; }
.qty__btn { width: 32px; height: 32px; border: 1px solid var(--border); background: var(--bg); border-radius: 50%; font-size: 1.1rem; cursor: pointer; line-height: 1; }
.qty__btn:hover { background: var(--brand-light); }
.qty__val { min-width: 1.2rem; text-align: center; font-weight: 700; }
.quote-side { position: sticky; top: 90px; display: grid; gap: .7rem; }
.quote-side h2 { font-size: 1.1rem; margin: .8rem 0 .2rem; }
.quote-side label { display: grid; gap: .3rem; font-weight: 600; font-size: .92rem; }
.quote-side input, .quote-side textarea { padding: .55rem .7rem; border: 1px solid var(--border); border-radius: var(--radius-sm); font: inherit; }
.quote-summary { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.2rem; }
.cart-summary { list-style: none; padding: 0; margin: .5rem 0; }
.cart-line { display: flex; justify-content: space-between; padding: .25rem 0; border-bottom: 1px dotted var(--border); font-size: .92rem; }
.cart-empty { color: var(--text-muted); font-style: italic; }
.cart-total { display: flex; justify-content: space-between; font-size: 1.1rem; margin-top: .5rem; }
.btn--block { width: 100%; text-align: center; }
.date-feedback { font-size: .9rem; margin: .2rem 0 0; min-height: 1.1em; }
.date-feedback--ok { color: var(--success); }
.date-feedback--ko { color: var(--danger); }

/* --- Footer --- */
.site-footer { background: var(--brand-dark); color: #fff; margin-top: 4rem; }
.site-footer__inner { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; padding: 2.5rem 0; }
.site-footer a { color: var(--brand-light); }
.site-footer__credit { width: 100%; font-size: .85rem; opacity: .8; }

/* --- Responsive --- */
@media (max-width: 820px) {
    .features { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .quote-grid { grid-template-columns: 1fr; }
    .date-layout { grid-template-columns: 1fr; }
    .quote-side { position: static; }
    .nav-toggle { display: block; }
    .site-nav {
        display: none; position: absolute; top: 100%; left: 0; right: 0;
        flex-direction: column; align-items: stretch; background: var(--surface);
        padding: 1rem; gap: .6rem; border-bottom: 1px solid var(--border);
    }
    body.nav-open .site-nav { display: flex; }
}

/* ============================================================================
   REFONTE FRONT — sections page d'accueil (maquette client)
   Ces règles, en fin de fichier, prévalent sur les versions précédentes.
   ============================================================================ */

/* Header sable */
.site-header { background: var(--sand); border-bottom: 1px solid var(--border); }
.brand__name { font-family: var(--font-title); color: var(--brand-dark); }
.site-nav a { color: var(--text); }
.site-nav a:hover { color: var(--brand-dark); }
.nav-cta { background: var(--brand); color: #fff !important; }
.nav-cta:hover { background: var(--brand-dark); }

/* HERO */
.hero {
    position: relative; padding: 0; overflow: hidden;
    background: linear-gradient(120deg, #b6552e 0%, #8a3c1e 100%);
}
.hero__overlay {
    position: absolute; inset: 0;
    background:
        linear-gradient(90deg, rgba(40,18,8,.62) 0%, rgba(40,18,8,.30) 55%, rgba(40,18,8,.10) 100%),
        radial-gradient(circle at 80% 20%, rgba(255,225,190,.12), transparent 40%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Ccircle cx='20' cy='20' r='1.5' fill='%23ffffff' opacity='0.06'/%3E%3C/svg%3E");
}
.hero__inner { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 2.5rem; align-items: center; padding: 4.5rem 0; }
.hero__content { color: #fff; }
.hero__title { font-size: clamp(2rem, 4.5vw, 3.2rem); margin: 0 0 1rem; color: #fff; line-height: 1.15; text-shadow: 0 2px 10px rgba(0,0,0,.45); }
.hero__lead { font-size: 1.2rem; max-width: 46ch; color: #fff; margin: 0 0 1.8rem; line-height: 1.55; text-shadow: 0 1px 6px rgba(0,0,0,.5); }
.hero__actions { display: flex; gap: .8rem; flex-wrap: wrap; }
.hero__gallery { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.hero__gallery img { width: 100%; height: 130px; object-fit: cover; border-radius: var(--radius-sm); box-shadow: var(--shadow); }

.btn--ghost { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.7); color: #fff; }
.welcome .btn--ghost, .home-gallery .btn--ghost, .page .btn--ghost { background: transparent; border-color: var(--brand); color: var(--brand-dark); }

/* Sections génériques */
.section-title { text-align: center; font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--brand-dark); margin: 0 0 2rem; }
.center { text-align: center; margin-top: 1.5rem; }

/* BIENVENUE */
.welcome { padding: 4rem 0; }
.welcome__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.welcome__text h2 { font-size: 2rem; color: var(--brand-dark); margin-top: 0; }
.welcome__text p { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 1.5rem; }
.welcome__img img { width: 100%; height: 320px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }

/* SPÉCIALITÉS */
.specialties { padding: 4rem 0; background: var(--sand); }
.specialty-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.specialty { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem 1.5rem; text-align: center; box-shadow: var(--shadow); }
.specialty__icon { width: 76px; height: 76px; margin: 0 auto 1rem; border-radius: 50%; background: var(--brand-light); display: grid; place-items: center; font-size: 2rem; overflow: hidden; }
.specialty__icon img { width: 100%; height: 100%; object-fit: cover; }
.specialty h3 { color: var(--brand-dark); margin: .3rem 0 .6rem; }
.specialty p { color: var(--text-muted); margin: 0; }

/* GALERIE */
.home-gallery { padding: 4rem 0; }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.gallery-cell { margin: 0; border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow); background: var(--surface); }
.gallery-cell img { width: 100%; height: 200px; object-fit: cover; display: block; transition: transform .3s; }
.gallery-cell:hover img { transform: scale(1.05); }
.gallery-cell figcaption { padding: .5rem .7rem; font-size: .85rem; color: var(--text-muted); }

/* OÙ NOUS TROUVER */
.find-us { padding: 4rem 0; background: var(--sand); }
.find-us__inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2.5rem; align-items: center; }
.find-us__map iframe { width: 100%; height: 340px; border: 0; border-radius: var(--radius); box-shadow: var(--shadow); }
.find-us__info h2 { color: var(--brand-dark); margin-top: 0; }
.schedule { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); overflow: hidden; margin-bottom: 1.5rem; box-shadow: var(--shadow); }
.schedule th, .schedule td { padding: .7rem 1rem; text-align: left; border-bottom: 1px solid var(--border); }
.schedule th { background: var(--brand-dark); color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }
.schedule tr:last-child td { border-bottom: 0; }

/* FOOTER */
.site-footer { background: var(--ink); color: #e9ddca; margin-top: 0; }
.site-footer__inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; padding: 3rem 0 2rem; }
.site-footer__brand { font-family: var(--font-title); font-size: 1.3rem; color: #fff; }
.site-footer h4 { color: #fff; margin: 0 0 .6rem; font-size: 1rem; }
.site-footer a { color: var(--brand-light); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.socials { display: flex; gap: .7rem; margin-bottom: 1rem; }
.social { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.1); display: grid; place-items: center; color: #fff; transition: background .2s; }
.social:hover { background: var(--brand); }
.site-footer__credit { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.12); padding-top: 1.2rem; font-size: .85rem; opacity: .75; text-align: center; }

/* Responsive front */
@media (max-width: 880px) {
    .hero__inner, .welcome__inner, .find-us__inner { grid-template-columns: 1fr; }
    .hero__gallery { grid-template-columns: 1fr 1fr; }
    .specialty-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: 1fr 1fr; }
    .site-footer__inner { grid-template-columns: 1fr; }
}

/* Accessibilité + cookies */
.skip-link { position: absolute; left: -999px; top: 0; background: var(--brand-dark); color: #fff; padding: .6rem 1rem; z-index: 100; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; }
.cookie-banner {
    position: fixed; bottom: 1rem; left: 1rem; right: 1rem; max-width: 720px; margin: 0 auto;
    background: var(--ink); color: #f3e9d8; padding: 1rem 1.2rem; border-radius: var(--radius);
    box-shadow: 0 8px 30px rgba(0,0,0,.3); display: flex; gap: 1rem; align-items: center;
    flex-wrap: wrap; justify-content: space-between; z-index: 90;
}
.cookie-banner p { margin: 0; font-size: .9rem; }
.cookie-banner a { color: var(--brand-light); }
.cookie-banner button { background: var(--brand); color: #fff; border: 0; padding: .55rem 1.1rem; border-radius: var(--radius-sm); font-weight: 600; cursor: pointer; }
