/* Démonstrations de /realisations/demos/ : quatre pages autonomes, chacune avec sa propre identité (--accent, --fond), pour montrer ce qu'un site ou un outil peut être.
   Entreprises et données fictives, indiquées en permanence par .demo-bandeau. Rien n'est envoyé : aucun formulaire n'a d'adresse d'envoi. Hors sitemap, noindex. */
@font-face { font-family: "Archivo"; src: url("../../assets/fonts/archivo-latin.woff2") format("woff2"); font-weight: 400 800; font-stretch: 62% 125%; font-display: swap; }
:root { --accent: #3D36B2; --sur-accent: #fff; --encre: #1B1B26; --gris: #5B5B6B; --fond: #FFFFFF; --fond-2: #F4F4F7; --filet: #E2E2EA; color-scheme: light; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--fond); color: var(--encre); font: 400 1rem/1.6 "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: -0.03em; text-wrap: balance; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.env { max-width: 1120px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 40px); }
.visuellement-cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.demo-bandeau { position: sticky; top: 0; z-index: 20; display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 14px; padding: 8px 14px; background: #16172E; color: #fff; font-size: 0.84rem; font-weight: 500; text-align: center; }
.demo-bandeau a { color: #fff; font-weight: 600; }
.demo-pied { padding: 26px 0 32px; border-top: 1px solid var(--filet); color: var(--gris); font-size: 0.88rem; }
.demo-pied .env { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; }
.demo-note { font-size: 0.86rem; color: var(--gris); }
.demo-retour[hidden] { display: none; }
.demo-retour { margin-top: 10px; padding: 10px 14px; border-radius: 8px; background: var(--fond-2); font-size: 0.92rem; font-weight: 500; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 11px 22px; border: 1.5px solid var(--accent); border-radius: var(--rayon, 999px); background: var(--accent); color: var(--sur-accent); font: 600 0.98rem/1.2 inherit; font-family: inherit; text-decoration: none; cursor: pointer; }
.btn--creux { background: transparent; color: var(--accent); }
.entete { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 16px; }
.entete b { font-size: 1.2rem; letter-spacing: -0.02em; }
.entete nav { display: flex; gap: 22px; font-size: 0.94rem; }
.entete nav a { text-decoration: none; }
@media (max-width: 640px) { .entete nav { display: none; } }
.section { padding-block: clamp(44px, 7vw, 80px); }
.section h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); margin-bottom: 22px; }
.champ { display: grid; gap: 6px; font-size: 0.92rem; font-weight: 500; }
.champ input, .champ select, .champ textarea { width: 100%; min-height: 46px; padding: 10px 12px; border: 1.5px solid #8A8A99; border-radius: 8px; background: #fff; color: var(--encre); font: inherit; font-weight: 400; }
.grille-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 560px) { .grille-2 { grid-template-columns: minmax(0, 1fr); } }

/* Restaurant */
.resto { --accent: #A4412A; --fond: #FBF6EE; --fond-2: #F3E9DA; --filet: #E5D8C3; --encre: #2B1D14; --gris: #6B5A4B; }
.resto h1, .resto h2 { font-family: Georgia, "Times New Roman", serif; letter-spacing: -0.015em; font-weight: 700; }
.resto-hero { position: relative; overflow: hidden; color: #FFF7EA; background:
    linear-gradient(115deg, rgb(43 20 10 / .92) 35%, rgb(43 20 10 / .35)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23E8B566' stroke-opacity='.5'%3E%3Crect x='22' y='22' width='36' height='36'/%3E%3Crect x='22' y='22' width='36' height='36' transform='rotate(45 40 40)'/%3E%3Ccircle cx='40' cy='40' r='7'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 120px,
    #7B2F1D; }
.resto-hero .entete a { color: #FFF7EA; }
.resto-hero .inner { padding-block: clamp(40px, 8vw, 96px) clamp(48px, 9vw, 110px); max-width: 620px; }
.resto-hero h1 { font-size: clamp(2.4rem, 6.4vw, 4.4rem); margin-bottom: 16px; }
.resto-hero p { font-size: 1.12rem; margin-bottom: 24px; color: #F5E7D0; }
.resto-hero .actions { display: flex; flex-wrap: wrap; gap: 10px; }
.resto-hero .btn--creux { border-color: #FFF7EA; color: #FFF7EA; }
.infos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.infos div { padding-block-start: 12px; border-block-start: 2px solid var(--accent); }
.infos b { display: block; }
@media (max-width: 640px) { .infos { grid-template-columns: minmax(0, 1fr); } }
.onglets { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; border: 0; padding: 0; }
.onglets label { position: relative; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--filet); background: var(--fond); cursor: pointer; font-weight: 500; }
.onglets input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.onglets label:has(input:checked) { background: var(--accent); color: #fff; border-color: var(--accent); }
.onglets label:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.plats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 36px; }
.plats li { display: flex; justify-content: space-between; gap: 16px; padding-block: 11px; border-block-end: 1px dotted var(--gris); }
.plats li span { color: var(--gris); font-size: 0.9rem; display: block; }
@media (max-width: 640px) { .plats { grid-template-columns: minmax(0, 1fr); } }
@supports selector(:has(*)) {
  .carte:has(#c-entrees:checked) .plats li:not([data-c="entrees"]),
  .carte:has(#c-plats:checked) .plats li:not([data-c="plats"]),
  .carte:has(#c-desserts:checked) .plats li:not([data-c="desserts"]) { display: none; }
}
.fond-2 { background: var(--fond-2); }

/* Services */
.serv { --accent: #0E6E6E; --fond-2: #EEF6F5; --filet: #D5E5E3; --rayon: 8px; --gris: #4F5F5E; }
.serv-hero { background: linear-gradient(180deg, #EEF6F5, #fff); }
.serv-hero .inner { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(24px, 4vw, 56px); align-items: center; padding-block: clamp(32px, 6vw, 72px); }
.serv-hero h1 { font-size: clamp(2.2rem, 5.2vw, 3.6rem); margin-bottom: 14px; }
.serv-hero p { font-size: 1.1rem; color: var(--gris); margin-bottom: 22px; }
.carte-rappel { display: grid; gap: 12px; padding: 22px; background: #fff; border: 1px solid var(--filet); border-radius: 12px; box-shadow: 0 24px 50px -30px rgb(14 110 110 / .45); }
.carte-rappel h2 { font-size: 1.3rem; }
@media (max-width: 820px) { .serv-hero .inner { grid-template-columns: minmax(0, 1fr); } }
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.services li { padding: 20px; border: 1px solid var(--filet); border-radius: 10px; background: #fff; }
.services h3 { font-size: 1.14rem; margin-bottom: 6px; letter-spacing: -0.01em; }
.services p { color: var(--gris); font-size: 0.95rem; }
@media (max-width: 760px) { .services { grid-template-columns: minmax(0, 1fr); } }
.zones { display: flex; flex-wrap: wrap; gap: 8px; }
.zones li { padding: 7px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--filet); font-size: 0.94rem; }

/* Réservation */
.resa { --accent: #6B3FA0; --fond-2: #F5F1FA; --filet: #E4DCF0; --gris: #5D5570; }
.resa-grille { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 44px); align-items: start; padding-block: clamp(24px, 4vw, 44px) 60px; }
@media (max-width: 860px) { .resa-grille { grid-template-columns: minmax(0, 1fr); } }
.resa h1 { font-size: clamp(2rem, 4.4vw, 3rem); margin-bottom: 8px; }
.resa fieldset { min-width: 0; margin: 22px 0 0; padding: 0; border: 0; }
.resa legend { padding: 0; margin-bottom: 10px; font-weight: 650; font-size: 1.06rem; }
.tuiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 8px; }
.tuile { position: relative; display: grid; gap: 2px; padding: 12px; border: 1.5px solid var(--filet); border-radius: 10px; background: #fff; cursor: pointer; font-size: 0.92rem; }
.tuile input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.tuile b { font-size: 1rem; }
.tuile span { color: var(--gris); font-size: 0.84rem; }
.tuile:has(input:checked) { border-color: var(--accent); background: var(--fond-2); }
.tuile:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.tuile:has(input:disabled) { opacity: .45; cursor: not-allowed; text-decoration: line-through; }
.recap { position: sticky; top: 64px; display: grid; gap: 10px; padding: 22px; border: 1px solid var(--filet); border-radius: 14px; background: var(--fond-2); }
.recap h2 { font-size: 1.2rem; }
.recap dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 14px; margin: 0; font-size: 0.95rem; }
.recap dt { color: var(--gris); }
.recap dd { margin: 0; font-weight: 600; }
@media (max-width: 860px) { .recap { position: static; } }

/* Gestion */
.gest { --accent: #1F5FBF; --fond: #F3F5F9; --fond-2: #fff; --filet: #DEE3EC; --gris: #566078; }
.gest-cadre { display: grid; grid-template-columns: 220px minmax(0, 1fr); min-height: calc(100vh - 40px); }
.gest-cote { padding: 20px 16px; background: #12233F; color: #E6ECF7; }
.gest-cote b { display: block; margin-bottom: 20px; font-size: 1.1rem; }
.gest-cote li { padding: 9px 12px; border-radius: 8px; font-size: 0.94rem; }
.gest-cote li:first-child { background: rgb(255 255 255 / .12); font-weight: 600; }
.gest-corps { padding: clamp(16px, 3vw, 32px); display: grid; gap: 18px; align-content: start; min-width: 0; }
.gest-corps h1 { font-size: clamp(1.5rem, 3vw, 2rem); }
.tuiles-kpi { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.kpi { padding: 16px; background: #fff; border: 1px solid var(--filet); border-radius: 10px; }
.kpi b { display: block; font-size: 1.7rem; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.kpi span { color: var(--gris); font-size: 0.88rem; }
.panneau { padding: 18px; background: #fff; border: 1px solid var(--filet); border-radius: 10px; min-width: 0; }
.panneau h2 { font-size: 1.1rem; margin-bottom: 12px; letter-spacing: -0.01em; }
.barres { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; align-items: end; height: 130px; }
.barres li { display: grid; gap: 4px; align-content: end; height: 100%; font-size: 0.74rem; color: var(--gris); text-align: center; }
.barres i { display: block; border-radius: 4px 4px 0 0; background: var(--accent); height: calc(var(--h) * 1px); }
.table-defile { overflow-x: auto; }
table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 0.93rem; }
th, td { padding: 9px 10px; text-align: start; border-block-end: 1px solid var(--filet); white-space: nowrap; }
th { color: var(--gris); font-weight: 600; font-size: 0.82rem; }
.etat { padding: 3px 9px; border-radius: 999px; font-size: 0.8rem; font-weight: 600; }
.etat--a { background: #FFF1D6; color: #7A4B00; }
.etat--l { background: #DDEBFF; color: #123F85; }
.etat--p { background: #DAF3E4; color: #0F5B34; }
.onglets--gest label { background: #fff; }
@supports selector(:has(*)) {
  .gest-corps:has(#e-preparer:checked) tbody tr:not([data-e="a"]),
  .gest-corps:has(#e-livraison:checked) tbody tr:not([data-e="l"]),
  .gest-corps:has(#e-payees:checked) tbody tr:not([data-e="p"]) { display: none; }
}
@media (max-width: 860px) {
  .gest-cadre { grid-template-columns: minmax(0, 1fr); }
  .gest-cote ul { display: flex; flex-wrap: wrap; gap: 4px; }
  .tuiles-kpi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
