/* Site public CMS Restaurant — paramétrable via :root (couleur, police) */
* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
    --primaire: #9A1B2F;
    --police-titres: 'Inter', system-ui, sans-serif;
    --police-h1: var(--police-titres);
    --police-h2: var(--police-titres);
    --police-texte: 'Inter', system-ui, sans-serif;
    --taille-h1: 40px;
    --taille-h2: 26px;
    --taille-texte: 16px;
    --police-desc: var(--police-texte);
    --taille-desc: 14px;
    --ink: #1E2026;
    --muted: #5A5C66;
    --line: #ECEAE8;
    --paper: #FFFFFF;
    --paper-soft: #F7F6F4;
}
body {
    font-family: var(--police-texte);
    color: var(--ink);
    font-size: var(--taille-texte);
    line-height: 1.65;
    background: var(--paper);
}
h1, h2, h3 { font-family: var(--police-titres); color: var(--ink); letter-spacing: -0.01em; }
h1 { font-family: var(--police-h1); font-size: var(--taille-h1); }
h2 { font-family: var(--police-h2); font-size: var(--taille-h2); }
a { color: var(--primaire); }

/* ---------- Header ---------- */
.site-header {
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 14px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--ink);
}
.brand-logo { height: 44px; width: auto; border-radius: 8px; }
.brand-text { font-family: var(--police-titres); font-size: 21px; font-weight: 700; }
.mainnav { display: flex; gap: 4px; flex-wrap: wrap; }
.mainnav a {
    padding: 9px 14px;
    text-decoration: none;
    color: var(--muted);
    font-weight: 500;
    font-size: 15px;
    border-radius: 9px;
}
.mainnav a:hover { color: var(--ink); background: var(--paper-soft); }

/* ---------- Menu hamburger (mobile) ---------- */
.burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: none;
    border: 1px solid var(--line);
    border-radius: 9px;
    cursor: pointer;
}
.burger span {
    display: block;
    height: 2.5px;
    width: 100%;
    background: var(--ink);
    border-radius: 2px;
    transition: transform .25s, opacity .2s;
}
.burger.ouvert span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger.ouvert span:nth-child(2) { opacity: 0; }
.burger.ouvert span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

@media (max-width: 700px) {
    .burger { display: flex; }
    .mainnav {
        display: none;
        flex-direction: column;
        width: 100%;
        background: var(--paper);
        border-top: 1px solid var(--line);
        padding: 8px 22px 14px;
    }
    .mainnav.ouvert { display: flex; }
    .mainnav a {
        padding: 13px 10px;
        font-size: 16px;
        border-radius: 9px;
        border-left: 3px solid transparent;
    }
    .mainnav a:hover { border-left-color: var(--primaire); background: var(--paper-soft); }
    .header-inner { padding-bottom: 6px; }
}

/* ---------- Pictos services ---------- */
.picto-img { width: 34px; height: 34px; object-fit: contain; display: block; }
.picto-rs { width: 18px; height: 18px; object-fit: contain; vertical-align: -4px; margin-right: 7px; border-radius: 50%; }

/* ---------- Contenu ---------- */
.page-contenu { min-height: 60vh; }
.section { max-width: 1100px; margin: 0 auto; padding: 46px 22px; }
.section-titre { font-size: var(--taille-h2); margin-bottom: 8px; }
.section-sous { color: var(--muted); margin-bottom: 28px; }

.bandeau {
    background: linear-gradient(135deg, var(--primaire) 0%, #5c101d 100%);
    color: #fff;
    padding: 70px 22px;
    text-align: center;
}
.bandeau-image {
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 120px 22px;
    min-height: 380px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: #241d18;
}
.bandeau-image::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(20,16,14,.45) 0%, rgba(20,16,14,.55) 100%);
}
.bandeau-image > * { position: relative; }
.bandeau h1 { color: #fff; font-size: clamp(calc(var(--taille-h1) * .75), 5vw, var(--taille-h1)); margin-bottom: 12px; }
.bandeau p { font-size: clamp(15px, 2vw, 18px); opacity: .92; max-width: 640px; margin: 0 auto; }
.bandeau-slogan {
    font-family: var(--police-h2);
    font-size: calc(var(--taille-h2) * .92) !important;
    margin-bottom: 4px !important;
}
.accueil-bienvenue {
    font-family: var(--police-texte);
    font-size: var(--taille-texte);
    color: var(--muted);
    line-height: 1.75;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 10px;
    background: var(--primaire);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    border: none;
    font: inherit;
    cursor: pointer;
}
.btn:hover { filter: brightness(1.12); }
.btn-blanc { background: var(--paper); color: var(--ink); border: 1.5px solid var(--line); }

/* ---------- Accueil ---------- */
.accueil-stats {
    display: flex;
    gap: 26px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 34px 0;
}
.stat-picto {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 92px;
    text-align: center;
    font-size: 13.5px;
    color: var(--muted);
}
.stat-picto .rond {
    width: 56px; height: 56px;
    border: 1.5px solid var(--muted);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

/* ---------- Menu du jour ---------- */
.menu-jour {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 22px;
    margin-top: 10px;
    text-align: left;
}
.menu-jour-bloc {
    background: var(--paper-soft);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 20px 22px;
}
.menu-jour-bloc h3 {
    font-family: var(--police-h2);
    font-size: calc(var(--taille-h2) * .8);
    color: var(--primaire);
    margin-bottom: 12px;
}
.menu-jour-bloc h3 small { color: var(--muted); font-weight: 400; font-size: 13px; }
.menu-jour-prix { color: var(--primaire); font-size: calc(var(--taille-h2) * .7); }
.menu-jour-bloc ul { list-style: none; }
.menu-jour-bloc li { padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 15.5px; }
.menu-jour-bloc li:last-child { border-bottom: none; }
.menu-jour-desc { color: var(--muted); font-family: var(--police-desc); font-size: var(--taille-desc); }
.menu-jour-img { width: 100%; height: 130px; object-fit: cover; border-radius: 9px; margin-bottom: 7px; display: block; }

/* ---------- L'equipe ---------- */
.equipe-liste {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 22px;
    margin-top: 10px;
}
.equipe-carte {
    background: var(--paper-soft);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 24px;
    text-align: center;
}
.equipe-photo {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 14px;
    margin-bottom: 12px;
    border: 1px solid var(--line);
}
.equipe-photo-vide {
    display: flex; align-items: center; justify-content: center;
    font-size: 64px;
    background: var(--paper);
    margin: 0 auto 12px;
    color: var(--muted);
    box-sizing: border-box;
    width: 100%;
    height: 260px;
    border-radius: 14px;
    border: 1px solid var(--line);
}
.equipe-fonction {
    display: block;
    color: var(--primaire);
    font-size: 13.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 2px;
}
.equipe-nom { font-size: 18px; display: block; margin-bottom: 6px; }
.equipe-bio { color: var(--muted); font-family: var(--police-desc); font-size: var(--taille-desc); line-height: 1.55; }

/* Vins : liste a gauche + illustration a droite */
.vins-avec-illus.a-illustration {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 34px;
    align-items: start;
}
.vins-illustration { position: sticky; top: 90px; }
.vins-illustration img {
    width: 400px;
    height: 400px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(30,32,38,.16);
}
.vins-illus-legende {
    text-align: center;
    color: var(--muted);
    font-size: 13.5px;
    font-style: italic;
    margin-top: 8px;
}
@media (max-width: 860px) {
    .vins-avec-illus.a-illustration { grid-template-columns: 1fr; }
    .vins-illustration { position: static; text-align: center; }
    .vins-illustration img { width: 100%; max-width: 400px; }
}

/* ---------- Menus de fetes ---------- */
.fetes-liste { display: grid; gap: 22px; max-width: 760px; }
.fete-carte {
    background: var(--paper-soft);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 22px 24px;
}
.fete-entete { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.fete-titre { font-family: var(--police-h2); font-size: calc(var(--taille-h2) * .85); color: var(--ink); }
.fete-prix { color: var(--primaire); font-weight: 700; font-size: 20px; white-space: nowrap; }
.fete-prix small { font-weight: 400; color: var(--muted); font-size: 13px; }
.fete-desc { color: var(--muted); font-family: var(--police-desc); font-size: var(--taille-desc); margin: 8px 0 4px; }
.fete-periode { color: var(--muted); font-size: 13.5px; font-style: italic; }
.fete-plats { list-style: none; margin-top: 10px; }
.fete-plats li { padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.fete-plats li:last-child { border-bottom: none; }
.fete-resa { margin-top: 12px; font-size: 14.5px; }

/* ---------- Contact ---------- */
.contact-resa {
    background: var(--paper-soft);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 22px;
}
.contact-tel { font-size: 19px; font-weight: 700; color: var(--primaire); text-decoration: none; }
.form-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .form-2col { grid-template-columns: 1fr; } }

/* ---------- Carte des vins ---------- */
.vins-bloc { margin-top: 26px; }
.vins-rubrique {
    font-family: var(--police-h2);
    font-size: var(--taille-h2);
    color: var(--primaire);
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--primaire);
}
.vin-ligne {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 9px 0;
    border-bottom: 1px dashed var(--line);
}
.vin-ligne:last-child { border-bottom: none; }
.vin-nom { font-weight: 600; font-size: 15.5px; }
.vin-millesime { font-weight: 400; color: var(--muted); margin-left: 6px; }
.vin-region { color: var(--muted); font-size: 13.5px; margin-left: 8px; font-style: italic; }
.vin-desc { display: block; color: var(--muted); font-family: var(--police-desc); font-size: var(--taille-desc); }
.vin-prix { text-align: right; white-space: nowrap; }
.vin-prix-item { color: var(--primaire); font-weight: 700; margin-left: 14px; }
.vin-prix-item small { color: var(--muted); font-weight: 400; font-size: 12px; display: block; }

/* ---------- Carte ---------- */
.carte-categories { display: grid; gap: 34px; }
.carte-cat h2 {
    font-size: calc(var(--taille-h2) * .85);
    color: var(--primaire);
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primaire);
    margin-bottom: 18px;
}
.plat { display: flex; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.plat img { width: 86px; height: 86px; object-fit: cover; border-radius: 10px; flex-shrink: 0; }
.plat-infos { flex: 1; }
.plat-nom { font-weight: 600; font-size: 16.5px; }
.plat-prix { font-weight: 700; color: var(--primaire); white-space: nowrap; }
.plat-desc { color: var(--muted); font-family: var(--police-desc); font-size: var(--taille-desc); }
.plat-badges { font-size: 14px; }
.plat-indisponible { opacity: .5; }
.plat-indisponible .plat-nom::after { content: " (épuisé)"; font-size: 13px; color: var(--muted); }

/* ---------- Horaires ---------- */
.horaires-table { width: 100%; border-collapse: collapse; max-width: 520px; }
.horaires-table td { padding: 10px 6px; border-bottom: 1px solid var(--line); }
.horaires-table td:last-child { text-align: right; font-weight: 600; }
.badge-ouvert { display: inline-block; background: #E3F2E8; color: #1F7A44; padding: 4px 14px; border-radius: 999px; font-weight: 600; font-size: 14px; }
.badge-ferme { display: inline-block; background: #F1F1F3; color: var(--muted); padding: 4px 14px; border-radius: 999px; font-weight: 600; font-size: 14px; }

/* ---------- Albums ---------- */
.galeries { display: grid; gap: 40px; }
.galerie-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.galerie-grid img { width: 100%; height: 170px; object-fit: cover; border-radius: 12px; }

/* ---------- Réservation ---------- */
.form-resa { max-width: 560px; display: grid; gap: 14px; }
.form-resa label { font-weight: 600; font-size: 14px; display: block; margin-bottom: 4px; }
.form-resa input, .form-resa select, .form-resa textarea {
    width: 100%;
    padding: 11px 13px;
    border: 1.5px solid var(--line);
    border-radius: 10px;
    font: inherit;
}
.form-resa input:focus, .form-resa textarea:focus { outline: none; border-color: var(--primaire); }
.alert-ok { background: #E3F2E8; color: #1F7A44; padding: 14px 16px; border-radius: 10px; margin-bottom: 18px; }
.alert-err { background: #F7ECEE; color: var(--primaire); padding: 14px 16px; border-radius: 10px; margin-bottom: 18px; }

/* ---------- Templates ---------- */

/* Classique : elegant, serif, encadres, ombres douces */
body.tpl-classique .bandeau { padding: 80px 22px; }
body.tpl-classique .section { max-width: 860px; }
body.tpl-classique .section-titre { text-align: center; }
body.tpl-classique .section-sous { text-align: center; }
body.tpl-classique .carte-cat {
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 26px 28px;
    background: var(--paper);
    box-shadow: 0 4px 18px rgba(30,32,38,.06);
}
body.tpl-classique .carte-cat h2 {
    text-align: center;
    border-bottom: 2px double var(--primaire);
    padding-bottom: 10px;
}
body.tpl-classique .plat img { border-radius: 4px; }
body.tpl-classique .btn { border-radius: 4px; box-shadow: 0 3px 8px rgba(30,32,38,.12); }
body.tpl-classique .menu-jour-bloc { border-radius: 4px; box-shadow: 0 4px 18px rgba(30,32,38,.07); }
body.tpl-classique .equipe-carte { border-radius: 4px; }
body.tpl-classique .fete-carte { border-radius: 4px; }
body.tpl-classique .mainnav a { border-radius: 0; font-variant: small-caps; letter-spacing: .05em; }

/* Moderne : epure, plein ecran, coins tres ronds, beaucoup d'air */
body.tpl-moderne {
    --line: #EEEFF1;
    --paper-soft: #F4F5F7;
}
body.tpl-moderne .section { max-width: 1180px; padding: 64px 26px; }
body.tpl-moderne .section-titre,
body.tpl-moderne .bandeau h1 { font-weight: 300; letter-spacing: -0.01em; }
body.tpl-moderne .brand-text { font-weight: 300; letter-spacing: 0.02em; }
body.tpl-moderne .bandeau { padding: 110px 22px; }
body.tpl-moderne .bandeau-image { min-height: 480px; }
body.tpl-moderne .carte-categories { gap: 56px; }
body.tpl-moderne .carte-cat h2 {
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: .22em;
    font-size: calc(var(--taille-h2) * .72);
    border-bottom: none;
    color: var(--muted);
    padding-bottom: 0;
}
body.tpl-moderne .plat { padding: 20px 0; border-bottom: none; }
body.tpl-moderne .plat img { border-radius: 16px; width: 108px; height: 108px; }
body.tpl-moderne .plat-nom { font-weight: 400; font-size: 18px; }
body.tpl-moderne .btn { border-radius: 999px; padding: 14px 32px; font-weight: 400; }
body.tpl-moderne .menu-jour { gap: 28px; }
body.tpl-moderne .menu-jour-bloc { border: none; box-shadow: 0 10px 34px rgba(30,32,38,.08); border-radius: 20px; }
body.tpl-moderne .equipe-carte { border: none; box-shadow: 0 10px 34px rgba(30,32,38,.08); border-radius: 20px; }
body.tpl-moderne .fete-carte { border: none; box-shadow: 0 10px 34px rgba(30,32,38,.08); border-radius: 20px; }
body.tpl-moderne .fete-carte { border: none; box-shadow: 0 10px 34px rgba(30,32,38,.08); border-radius: 20px; }
body.tpl-moderne .vins-rubrique { font-weight: 300; letter-spacing: .1em; }
body.tpl-moderne .mainnav a { border-radius: 999px; font-weight: 400; }
body.tpl-moderne .site-header { box-shadow: none; border-bottom: none; position: sticky; backdrop-filter: blur(8px); background: rgba(255,255,255,.82); }

/* Bistrot : chaleureux, tons creme/ardoise, bordures rustiques */
body.tpl-bistrot {
    background: #F4EFE8;
    --line: #E2D9CC;
    --paper-soft: #EDE6DA;
    --ink: #2E2418;
    --muted: #6B5D4A;
}
body.tpl-bistrot .bandeau { padding: 76px 22px; }
body.tpl-bistrot .section-titre::before { content: "— "; color: var(--primaire); }
body.tpl-bistrot .section-titre::after { content: " —"; color: var(--primaire); }
body.tpl-bistrot .carte-cat {
    background: #3A3226;
    border: 6px solid #554732;
    border-radius: 10px;
    padding: 28px 30px;
    box-shadow: 4px 4px 0 #554732;
}
body.tpl-bistrot .carte-cat h2 {
    color: #F4EFE8;
    font-family: 'Dancing Script', cursive;
    border-bottom: 1px dashed rgba(244,239,232,.3);
    text-align: center;
    font-size: calc(var(--taille-h2) * 1.05);
}
body.tpl-bistrot .carte-cat .plat-nom,
body.tpl-bistrot .carte-cat .plat-desc,
body.tpl-bistrot .carte-cat .plat-prix { color: #EDE6DA; }
body.tpl-bistrot .carte-cat .plat-prix { color: #E8B84B; }
body.tpl-bistrot .carte-cat .plat { border-bottom: 1px dashed rgba(244,239,232,.2); }
body.tpl-bistrot .btn { border-radius: 6px; box-shadow: 3px 3px 0 rgba(46,36,24,.35); }
body.tpl-bistrot .btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 rgba(46,36,24,.35); }
body.tpl-bistrot .menu-jour-bloc { background: #3A3226; border: 4px solid #554732; border-radius: 10px; box-shadow: 4px 4px 0 #554732; }
body.tpl-bistrot .menu-jour-bloc h3 { color: #E8B84B; }
body.tpl-bistrot .menu-jour-bloc li, body.tpl-bistrot .menu-jour-desc { color: #D8CDBB; }
body.tpl-bistrot .mainnav a { border-radius: 0; }
body.tpl-bistrot .site-header { background: #F4EFE8; border-bottom: 3px double #554732; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #C9CCD1; margin-top: 60px; }
.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 38px 22px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 30px;
}
.footer-bloc strong { display: block; margin-bottom: 10px; color: #fff; }
.footer-bloc p { margin-bottom: 6px; font-size: 14.5px; }
.footer-bloc a { color: #C9CCD1; }
.footer-copy { text-align: center; padding: 16px; font-size: 13px; color: #9ba0a3; border-top: 1px solid rgba(255,255,255,.08); }

@media (max-width: 700px) {
    .plat img { width: 64px; height: 64px; }
    .section { padding: 30px 16px; }
}
