/* ============================================================
   Les Restaurants du Dimanche — feuille de style principale
   Style inspiré de modeles-photo : moderne, fond blanc,
   couleur principale rouge foncé, Inter + Bricolage Grotesque.
   ============================================================ */

/* --- Polices auto-hébergées (RGPD) ------------------------------------- */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/inter-latin-400-normal.woff2') format('woff2');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/inter-latin-500-normal.woff2') format('woff2');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/inter-latin-600-normal.woff2') format('woff2');
}
@font-face {
    font-family: 'Bricolage Grotesque';
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
    src: url('../fonts/bricolage-grotesque-latin-wght-normal.woff2') format('woff2-variations'),
         url('../fonts/bricolage-grotesque-latin-wght-normal.woff2') format('woff2');
}

:root {
    --rouge: #9A1B2F;            /* rouge foncé principal */
    --rouge-deep: #7A1424;       /* hover, dégradés */
    --rouge-lite: #C4516437;     /* utilisé en transparence plus bas */
    --rouge-soft: #F7ECEE;       /* fond très léger teinté */
    --ink: #0E0F13;              /* texte principal */
    --paper: #FFFFFF;           /* fond blanc */
    --muted: #9A9BA3;            /* texte secondaire */
    --line: #ECEAE8;             /* bordures */
    --line-soft: #F4F2F0;
    --green: #2E9E5B;            /* badge "ouvert le dimanche" */
    --display: 'Bricolage Grotesque', system-ui, sans-serif;
    --body: 'Inter', system-ui, sans-serif;
    --maxw: 1180px;
    --shadow: 0 2px 14px rgba(14, 15, 19, 0.07);
    --shadow-hover: 0 10px 30px rgba(14, 15, 19, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--body);
    font-size: 15px;
    color: var(--ink);
    background: var(--paper);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
::selection { background: var(--rouge); color: #fff; }
:focus-visible { outline: 2px solid var(--rouge); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { font-family: var(--display); letter-spacing: -0.01em; }

/* ---------- Header ---------- */
header.site {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: saturate(140%) blur(14px);
    border-bottom: 1px solid var(--line);
}
.bar {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 22px;
    height: 66px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.brand {
    font-family: var(--display);
    font-size: 19px;
    font-weight: 800;
    color: var(--rouge);
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}
.brand .logo-img { width: 36px; height: 36px; border-radius: 10px; flex: 0 0 auto; }
nav.mainnav { display: flex; gap: 6px; }
nav.mainnav a {
    font-size: 14px;
    font-weight: 500;
    color: var(--muted);
    padding: 8px 12px;
    border-radius: 8px;
    position: relative;
}
nav.mainnav a:hover { color: var(--ink); background: var(--line-soft); }
nav.mainnav a.current { color: var(--rouge); font-weight: 600; }

/* ---------- Hero / recherche ---------- */
.hero {
    background:
        radial-gradient(1200px 400px at 80% -10%, rgba(154, 27, 47, 0.08), transparent 60%),
        var(--paper);
    padding: 72px 22px 64px;
    text-align: center;
    border-bottom: 1px solid var(--line);
}
.hero h1 {
    font-size: clamp(30px, 5vw, 44px);
    font-weight: 800;
    margin: 0 0 10px;
    color: var(--ink);
}
.hero h1 em { color: var(--rouge); font-style: normal; }
.hero p {
    font-size: 17px;
    margin: 0 auto 32px;
    color: var(--muted);
    max-width: 560px;
}
.search-card {
    max-width: 780px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 20px;
    box-shadow: var(--shadow);
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 14px;
    text-align: left;
}
.field label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
    margin-bottom: 5px;
}
input, select, textarea {
    width: 100%;
    padding: 11px 13px;
    border: 1.5px solid var(--line);
    border-radius: 10px;
    font-size: 14.5px;
    font-family: inherit;
    background: #fff;
    color: var(--ink);
    transition: border-color 0.18s ease;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--rouge);
}

/* ---------- Boutons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 20px;
    border: 1.5px solid transparent;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.18s ease, transform 0.12s ease, border-color 0.18s ease, color 0.18s ease;
    font-family: inherit;
    white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-rouge { background: var(--rouge); color: #fff; }
.btn-rouge:hover { background: var(--rouge-deep); }
.btn-blanc { background: transparent; color: var(--rouge); border-color: var(--rouge); }
.btn-blanc:hover { background: var(--rouge-soft); }
.btn-terra { background: transparent; color: #B3261E; border-color: rgba(179, 38, 30, 0.35); }
.btn-terra:hover { background: rgba(179, 38, 30, 0.08); border-color: #B3261E; }
.search-card .btn { align-self: end; }

/* ---------- Contenu ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 44px 22px; }
.section-title {
    font-family: var(--display);
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 22px;
    display: flex;
    align-items: baseline;
    gap: 12px;
}
.section-title small {
    font-size: 13px;
    color: var(--muted);
    font-weight: 500;
    font-family: var(--body);
}
.eyebrow {
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--rouge);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.eyebrow::before { content: ""; width: 20px; height: 1.5px; background: var(--rouge); }

/* ---------- Cartes restaurant ---------- */
.grid-restos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 20px;
}
.carte-resto {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}
.carte-resto:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}
.carte-resto .visuel {
    height: 190px;
    background: var(--rouge-soft) center/cover no-repeat;
    position: relative;
}
.badge-dim {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--green);
    color: #fff;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 5px 11px;
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(46, 158, 91, 0.35);
}
.carte-body { padding: 16px 18px 18px; flex: 1; }
.carte-body h3 { margin: 0 0 5px; font-size: 18px; font-weight: 700; }
.carte-meta {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.tag-cuisine {
    display: inline-block;
    background: var(--rouge-soft);
    color: var(--rouge);
    font-size: 12px;
    font-weight: 600;
    padding: 4px 11px;
    border-radius: 999px;
}
.services {
    display: flex;
    gap: 12px;
    margin-top: 12px;
    font-size: 12px;
    color: var(--muted);
    flex-wrap: wrap;
}
.services span { display: inline-flex; align-items: center; gap: 4px; }

/* ---------- Fiche ---------- */
.fiche-header {
    background: linear-gradient(135deg, var(--rouge) 0%, var(--rouge-deep) 100%);
    color: #fff;
    padding: 46px 22px;
}
.fiche-header .wrap { padding: 0 22px; }
.fiche-header h1 { margin: 0 0 6px; font-size: clamp(26px, 4vw, 34px); font-weight: 800; }
.fiche-header p { margin: 0; opacity: 0.85; font-size: 14.5px; }
.fiche-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    align-items: start;
}
.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow);
}
.card h2 {
    font-family: var(--display);
    font-size: 17px;
    margin: 0 0 14px;
    color: var(--ink);
    display: flex;
    gap: 8px;
    align-items: center;
    font-weight: 700;
}
.horaires-table { width: 100%; border-collapse: collapse; }
.horaires-table td {
    padding: 8px 6px;
    border-bottom: 1px solid var(--line-soft);
    font-size: 14px;
}
.horaires-table td:first-child { font-weight: 500; }
.horaires-table tr:last-child td { border-bottom: none; }
.horaires-table tr.aujourdhui td {
    font-weight: 600;
    color: var(--rouge);
    background: var(--rouge-soft);
}
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li {
    padding: 9px 0;
    border-bottom: 1px solid var(--line-soft);
    font-size: 14.5px;
    display: flex;
    gap: 10px;
    align-items: center;
}
.contact-list li:last-child { border-bottom: none; }
.contact-list a { color: var(--rouge); font-weight: 500; }
.contact-list a:hover { text-decoration: underline; }

/* ---------- Admin ---------- */
.admin-header {
    background: var(--ink);
    color: #fff;
    padding: 14px 22px;
}
.admin-header .bar {
    padding: 0;
    max-width: var(--maxw);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: auto;
}
.admin-header a { color: #9ba0a3; font-size: 14px; }
.admin-header a:hover { color: #fff; }
.admin-header .brand { color: #fff; font-size: 17px; }
table.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow);
}
table.admin-table th {
    background: var(--rouge);
    color: #fff;
    text-align: left;
    padding: 11px 14px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
table.admin-table td { padding: 11px 14px; border-bottom: 1px solid var(--line-soft); font-size: 14px; }
table.admin-table tr:hover td { background: #FAF9F8; }
.pill { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.pill-publie { background: #E3F2E8; color: #1F7A44; }
.pill-brouillon { background: #F3EAD9; color: #A1762B; }
.form-admin { max-width: 860px; }
.form-admin .field { margin-bottom: 14px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.form-check { display: flex; align-items: center; gap: 8px; font-size: 14.5px; }
.form-check input { width: 18px; height: 18px; accent-color: var(--rouge); }

/* ---------- Alertes ---------- */
.alert { padding: 13px 16px; border-radius: 10px; font-size: 14px; margin-bottom: 18px; }
.alert-ok { background: #E3F2E8; color: #1F7A44; border: 1px solid #BFE3CA; }
.alert-err { background: #FBE5E7; color: #A13039; border: 1px solid #F0C2C6; }

/* ---------- Footer ---------- */
footer.site {
    background: var(--ink);
    color: #9ba0a3;
    padding: 30px 22px;
    margin-top: 64px;
    font-size: 13.5px;
    text-align: center;
}
footer.site a { color: #cfd3d6; }
footer.site a:hover { color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 780px) {
    .search-card { grid-template-columns: 1fr; }
    .fiche-grid { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
}
/* ---------- Sélecteur de langue ---------- */
.lang-dropdown {
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    font: inherit;
    font-size: 13.5px;
    background: #fff;
    color: var(--ink);
    cursor: pointer;
    flex: 0 0 auto;
    max-width: 140px;
}
.bar { gap: 10px; }

/* ---------- Menu hamburger mobile ---------- */
.burger {
    display: none;
    position: fixed;
    top: 11px;
    right: 12px;
    z-index: 1200;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 9px;
    font-size: 18px;
    cursor: pointer;
    color: var(--rouge);
    width: 44px; height: 44px;
    align-items: center; justify-content: center;
    flex: 0 0 auto;
    box-shadow: 0 2px 10px rgba(14, 15, 19, 0.12);
}
.nav-overlay {
    position: fixed; inset: 0;
    background: rgba(14, 15, 19, 0.45);
    z-index: 1100;
}
nav.mainnav { display: flex; gap: 6px; }

@media (max-width: 780px) {
    .burger { display: inline-flex; }
    nav.mainnav {
        display: none;
        position: fixed; top: 0; right: 0; bottom: 0;
        width: 240px; z-index: 1150;
        background: var(--ink);
        flex-direction: column;
        padding: 16px 8px;
        transform: translateX(100%);
        transition: transform 0.25s ease;
    }
    nav.mainnav.open { display: flex; transform: translateX(0); }
    nav.mainnav a { color: #C9CCD1; font-size: 14.5px; padding: 8px 12px; line-height: 1.35; }
    nav.mainnav a.current { color: #fff; font-weight: 600; }
    nav.mainnav .lang-dropdown {
        display: block;
        margin: 10px 12px 0;
        width: calc(100% - 24px);
        max-width: none;
        background: var(--ink);
        color: #C9CCD1;
        border-color: rgba(255, 255, 255, 0.2);
    }
    nav.mainnav .lang-dropdown option { color: var(--ink); }
}
