/* Le Kœur — styles du thème (éléments de la charte). Léger : pas de framework. */

:root { --k-marron: #7b6a58; --k-profond: #4e4337; --k-ocre: #9c7e1f; --k-ocre-fonce: #866c1a; --k-ocre-clair: #d4b65c; --k-taupe: #d8d0cd; --k-taupe-clair: #f3efec; --k-texte: #4f463c; --k-ligne: #efe8df; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
:where(a, button, summary, input, textarea, select):focus-visible { outline: 2px solid var(--k-ocre); outline-offset: 3px; border-radius: 6px; }
strong, b { font-weight: 700; color: var(--k-texte); }
.has-ocre-color { /* l'ocre est réservé aux grands textes */ }

/* ---------- En-tête ---------- */
.k-entete { border-bottom: 1px solid var(--k-ligne); }
.k-entete .k-logo img { height: 44px; width: auto; display: block; }
.k-rond { width: 44px; height: 44px; border-radius: 999px; background: var(--k-taupe-clair); display: inline-flex; align-items: center; justify-content: center; }
.k-rond svg { width: 20px; height: 20px; }
.k-entete .wp-block-navigation { font-size: .95rem; }
.k-entete .wp-block-navigation__responsive-container-open { width: 44px; height: 44px; border-radius: 999px; background: var(--k-marron); color: #fff; justify-content: center; }
.k-texte-icone { display: inline-flex; align-items: center; gap: .4rem; text-decoration: none; }
@media (max-width: 781px) { .k-seulement-ordi { display: none !important; } }
@media (min-width: 782px) { .k-seulement-mobile { display: none !important; } }

/* ---------- Surtitre ---------- */
.is-style-surtitre { font-size: .72rem !important; letter-spacing: .22em; text-transform: uppercase; font-weight: 700; color: var(--k-marron); margin-bottom: .25rem; }
.k-section-sombre .is-style-surtitre { color: var(--k-taupe); }
.k-numero { font-family: var(--wp--preset--font-family--aldo); color: var(--k-ocre); font-size: 1.15rem; margin-right: .5rem; }

/* ---------- Trio de galets (photo principale) ---------- */
.wp-block-image.is-style-galet { position: relative; isolation: isolate; padding: 10px 14px 0 0; }
.wp-block-image.is-style-galet img { border-radius: 58% 42% 52% 48% / 46% 54% 46% 54% !important; aspect-ratio: 5 / 4; object-fit: cover; width: 100%; }
.wp-block-image.is-style-galet::before { content: ""; position: absolute; z-index: -1; right: -6%; top: -4%; width: 48%; aspect-ratio: 19 / 18; background: var(--k-taupe); opacity: .6; border-radius: 62% 38% 55% 45% / 48% 60% 40% 52%; }
.wp-block-image.is-style-galet::after { content: ""; position: absolute; left: 14px; top: 0; right: 0; bottom: 10px; border: 1.5px solid var(--k-ocre); border-radius: 52% 48% 45% 55% / 55% 45% 55% 45%; pointer-events: none; }
/* Galet de présentation sur fond foncé : trait doré, sans galet de couleur */
.wp-block-image.is-style-galet-sombre { position: relative; padding: 8px 10px 0 0; }
.wp-block-image.is-style-galet-sombre img { border-radius: 58% 42% 52% 48% / 46% 54% 46% 54% !important; aspect-ratio: 1; object-fit: cover; width: 100%; }
.wp-block-image.is-style-galet-sombre::after { content: ""; position: absolute; left: 10px; top: 0; right: 0; bottom: 8px; border: 1.5px solid var(--k-ocre-clair); border-radius: 52% 48% 45% 55% / 55% 45% 55% 45%; pointer-events: none; }

/* ---------- Pastilles d'ancres ---------- */
.is-style-pastilles .wp-block-button__link { background: transparent; color: var(--k-texte); border: 1.5px solid var(--k-taupe); font-family: var(--wp--preset--font-family--dinot); font-size: .92rem; padding: .7rem 1rem; }
.is-style-pastilles .wp-block-button:first-child .wp-block-button__link { background: var(--k-marron); border-color: var(--k-marron); color: #fff; }
.is-style-pastilles .wp-block-button__link:hover { border-color: var(--k-ocre); background: var(--k-taupe-clair); }
.wp-block-button.is-style-ocre .wp-block-button__link { background: var(--k-ocre-fonce); color: #fff; }
.wp-block-button.is-style-ocre .wp-block-button__link:hover { background: #6e5915; }
.wp-block-button.is-style-contour .wp-block-button__link { background: transparent; color: var(--k-marron); border: 1.5px solid var(--k-marron); }
.k-section-sombre .wp-block-button .wp-block-button__link { background: var(--k-ocre-clair); color: #3a3128; }
.k-section-sombre .wp-block-button.is-style-contour .wp-block-button__link { background: transparent; color: #f4f0e6; border-color: var(--k-taupe); }

/* ---------- Étiquettes ---------- */
.is-style-etiquettes { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0 !important; margin: 0; font-size: .82rem; }
.is-style-etiquettes li { background: var(--k-taupe-clair); border-radius: 999px; padding: .45rem .8rem; }

/* ---------- Photo de partie ---------- */
.wp-block-image.is-style-photo-partie img { border-radius: 24px; aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }

/* ---------- Cartes ---------- */
.is-style-carte { background: var(--k-taupe-clair); border-radius: 22px; padding: 1.1rem 1.15rem !important; }
.is-style-carte-lien { background: var(--k-taupe-clair); border-radius: 18px; padding: .65rem .9rem .65rem .65rem !important; position: relative; }
.k-section-sombre .is-style-carte-lien { background: #5c4f42; color: #efe8df; }
.is-style-carte-lien .wp-block-image img { border-radius: 14px; width: 58px; height: 58px; object-fit: cover; }
.is-style-carte-lien h3 { font-size: 1.15rem; margin: 0; color: var(--k-texte); }
.k-section-sombre .is-style-carte-lien h3 { color: #fff; }
.is-style-carte-lien p { margin: .15rem 0 0; font-size: .82rem; line-height: 1.4; }
.is-style-carte-lien h3 a { text-decoration: none; color: inherit; }
.is-style-carte-lien h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; } /* toute la carte est cliquable */
.is-style-carte-lien::after { content: "›"; font-size: 1.6rem; line-height: 1; color: var(--k-ocre); margin-left: auto; padding-left: .5rem; }
.k-section-sombre .is-style-carte-lien::after { color: var(--k-ocre-clair); }

/* ---------- Tableau de prix ---------- */
.wp-block-table.is-style-prix table { border-collapse: collapse; width: 100%; font-size: .95rem; }
.wp-block-table.is-style-prix td { border: 0; border-bottom: 1px dotted #b9ad9f; padding: .45rem 0; }
.wp-block-table.is-style-prix td:first-child { font-weight: 700; color: var(--k-texte); }
.wp-block-table.is-style-prix td:last-child { text-align: right; color: var(--k-ocre-fonce); font-weight: 700; white-space: nowrap; }
.k-section-sombre .wp-block-table.is-style-prix td { color: #fff; border-color: #8f7f6c; }
.k-section-sombre .wp-block-table.is-style-prix td:last-child { color: var(--k-ocre-clair); }

/* ---------- Partie sombre ouverte et fermée par une vague ---------- */
.k-section-sombre { position: relative; background: var(--k-profond); color: #efe8df; padding-top: 1.5rem !important; padding-bottom: 2.5rem !important; margin-top: 60px !important; margin-bottom: 50px !important; overflow: visible; }
.k-section-sombre::before, .k-section-sombre::after { content: ""; position: absolute; left: 0; right: 0; height: 50px; background-repeat: no-repeat; background-size: 100% 100%; pointer-events: none; }
.k-section-sombre::before { top: -49px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 390 50' preserveAspectRatio='none'%3E%3Cpath d='M0 30 C 80 0, 160 50, 240 22 S 350 10, 390 26 L390 50 L0 50 Z' fill='%234e4337'/%3E%3C/svg%3E"); }
.k-section-sombre::after { bottom: -39px; height: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 390 40' preserveAspectRatio='none'%3E%3Cpath d='M0 0 L390 0 L390 16 C 360 30, 330 26, 270 20 S 180 0, 90 24 S 20 30, 0 24 Z' fill='%234e4337'/%3E%3C/svg%3E"); }
.k-section-sombre h2, .k-section-sombre h3 { color: #fff; }
.k-section-sombre a:not(.wp-block-button__link) { color: var(--k-ocre-clair); }
.k-section-sombre .k-numero { color: var(--k-ocre-clair); }
.k-etoiles { position: relative; }
.k-etoiles::before { content: "✦"; position: absolute; right: 8%; top: 0; color: var(--k-ocre-clair); font-size: 1rem; }

/* ---------- Questions fréquentes ---------- */
.wp-block-details summary { font-family: var(--wp--preset--font-family--aldo); font-size: 1.1rem; color: var(--k-texte); cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after { content: "+"; color: var(--k-ocre); font-size: 1.4rem; line-height: 1; }
.wp-block-details[open] summary::after { content: "−"; }
.wp-block-details > :not(summary) { margin-top: .5rem; font-size: .93rem; }

/* ---------- Formulaires ---------- */
.k-form { background: var(--k-taupe-clair); border-radius: 22px; padding: 1.1rem; display: grid; gap: .8rem; }
.k-form fieldset { border: 0; padding: 0; margin: 0; }
.k-form legend, .k-form .k-form__titre { font-family: var(--wp--preset--font-family--aldo); font-size: 1.2rem; color: var(--k-texte); margin-bottom: .5rem; }
.k-choix { display: flex; flex-wrap: wrap; gap: .5rem; }
.k-choix label { position: relative; }
.k-choix input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.k-choix span { display: inline-block; border: 1.5px solid var(--k-taupe); background: #fff; color: var(--k-texte); border-radius: 999px; padding: .6rem .9rem; font-size: .9rem; }
.k-choix input:checked + span { background: var(--k-marron); border-color: var(--k-marron); color: #fff; }
.k-choix input:focus-visible + span { outline: 2px solid var(--k-ocre); outline-offset: 2px; }
.k-champs { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.k-champ { display: grid; gap: .25rem; font-size: .82rem; }
.k-champ--large { grid-column: 1 / -1; }
.k-champ input, .k-champ textarea { border: 1.5px solid var(--k-taupe); border-radius: 12px; padding: .75rem; font: inherit; font-size: 1rem; background: #fff; color: var(--k-texte); width: 100%; box-sizing: border-box; }
.k-form button { border: 0; background: var(--k-ocre-fonce); color: #fff; border-radius: 999px; padding: .95rem 1.2rem; font-family: var(--wp--preset--font-family--aldo); font-size: 1.1rem; cursor: pointer; }
.k-form button:hover { background: #6e5915; }
.k-form__note { font-size: .78rem; text-align: center; margin: 0; }
.k-pot-de-miel { position: absolute !important; left: -9999px !important; }
.k-message { border-radius: 16px; padding: .9rem 1rem; font-size: .95rem; }
.k-message--ok { background: #e5f0dc; color: #2f4a1c; }
.k-message--erreur { background: #f7e1dc; color: #6b2414; }

/* ---------- Menu du jour / menu des 4 semaines ---------- */
.k-menu-jour { background: var(--k-taupe-clair); border-radius: 22px; padding: 1.1rem; display: grid; gap: .5rem; }
.k-menu-jour__tete { display: flex; justify-content: space-between; align-items: baseline; }
.k-menu-jour__titre { font-family: var(--wp--preset--font-family--aldo); font-size: 1.25rem; color: var(--k-texte); margin: 0; }
.k-menu-jour__jour { font-size: .78rem; color: var(--k-marron); }
.k-plats { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.k-plats li { display: flex; align-items: baseline; gap: .5rem; font-size: .95rem; }
.k-plats li > span:first-child { color: var(--k-texte); font-weight: 700; }
.k-plats .k-points { flex-grow: 1; border-bottom: 1px dotted #b9ad9f; }
.k-plats .k-prix { color: var(--k-ocre-fonce); font-weight: 700; white-space: nowrap; }
.k-plats .k-tag { font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--k-ocre-fonce); font-weight: 700; }
.k-plats li small { display: block; font-weight: 300; font-size: .82rem; }
.k-menu-jour__lien { font-weight: 700; font-size: .9rem; padding: .4rem 0; }
.k-semaines__onglets { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: .8rem; }
.k-semaines__onglets button { border: 1.5px solid var(--k-taupe); background: #fff; color: var(--k-texte); border-radius: 999px; padding: .55rem .9rem; font: inherit; font-size: .9rem; cursor: pointer; }
.k-semaines__onglets button[aria-selected="true"] { background: var(--k-marron); color: #fff; border-color: var(--k-marron); }
.k-semaines__jour { border-bottom: 1px solid var(--k-ligne); padding: .7rem 0; }
.k-semaines__jour h3 { font-size: 1.1rem; margin: 0 0 .35rem; color: var(--k-texte); }
.k-semaines__jour.is-aujourdhui h3::after { content: " · aujourd'hui"; color: var(--k-ocre-fonce); font-family: var(--wp--preset--font-family--dinot); font-size: .8rem; font-weight: 700; }

/* ---------- Pied de page et barre mobile ---------- */
.k-pied { font-size: .9rem; line-height: 1.7; }
.k-pied a { color: #fff; }
.k-barre { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 50; background: #fff; border-radius: 24px; box-shadow: 0 10px 30px rgba(78,67,55,.25); display: grid; grid-template-columns: repeat(4, 1fr); padding: 6px; }
.k-barre a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0; font-size: 11px; color: var(--k-texte); text-decoration: none; }
.k-barre a[aria-current="page"] { color: var(--k-ocre-fonce); font-weight: 700; }
.k-barre svg { width: 22px; height: 22px; }
@media (max-width: 781px) { body { padding-bottom: 86px; } }
@media (min-width: 782px) { .k-barre { display: none; } }

/* ---------- Grilles ordinateur ---------- */
@media (min-width: 782px) {
	.k-hero { display: grid !important; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
	.k-deux-colonnes { display: grid !important; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
}

/* Ajustements */
.k-champ { margin: 0; }
@media (max-width: 781px) {
	.k-entete .wp-block-navigation { order: 3; }
	.k-entete .k-actions { order: 2; margin-left: auto; }
}
.is-style-carte p { margin: 0; }
.k-texte-icone { white-space: nowrap; font-size: .95rem; }
.k-texte-icone svg { width: 18px; height: 18px; flex-shrink: 0; }
