/* Thème par défaut. Couleurs, polices et largeurs viennent des jetons (theme.json + réglages). */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--color-bg);
    color: var(--color-text);
    font: 1.0625rem/1.65 var(--font-body);
}
img, video { max-width: 100%; height: auto; }
a { color: var(--color-primary); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--font-heading); line-height: 1.15; letter-spacing: -0.015em; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); margin: 0 0 0.5em; }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }

.wrap { width: min(100% - 2.5rem, var(--width-page)); margin-inline: auto; }

.preview-bar {
    margin: 0; padding: 0.6rem 1.25rem; text-align: center;
    background: var(--color-accent); color: #1c1305; font-weight: 600;
}

main { min-height: 60vh; }
.entry { padding-block: clamp(2.5rem, 7vw, 5rem); }
.entry-head time { color: var(--color-muted); }
.prose { max-width: var(--width-text); }
.prose > * + * { margin-top: 1em; }
.prose blockquote { margin-inline: 0; padding-left: 1.25rem; border-left: 4px solid var(--color-primary); }

.entry-categories { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 0.75rem; }
.entry-categories a { font-size: 0.85rem; font-weight: 600; text-decoration: none; padding: 0.2rem 0.65rem; border-radius: 99px; background: var(--color-surface); }
.entry-cover { margin: 2rem 0; }
.entry-cover img { width: 100%; border-radius: var(--radius); display: block; }
.prose img { border-radius: var(--radius); display: block; }
.prose figure { margin-inline: 0; }
.prose figcaption { color: var(--color-muted); font-size: 0.9rem; margin-top: 0.5rem; }
.prose table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--color-surface); padding: 0.5rem 0.75rem; text-align: left; }
.prose iframe { max-width: 100%; aspect-ratio: 16 / 9; height: auto; width: 100%; border: 0; border-radius: var(--radius); }

.archive { padding-block: clamp(2.5rem, 7vw, 5rem); }
.archive-head { max-width: var(--width-text); margin-bottom: 1.5rem; }
.archive-back { font-size: 0.9rem; text-decoration: none; }
.archive-intro { color: var(--color-muted); font-size: 1.1rem; }
.category-nav { display: flex; gap: 0.5rem; overflow-x: auto; padding-bottom: 0.25rem; margin-bottom: 2rem; scrollbar-width: none; }
.category-nav a { flex: none; min-height: 44px; display: inline-flex; align-items: center; padding: 0 1rem; border-radius: 99px; background: var(--color-surface); color: var(--color-text); text-decoration: none; font-weight: 500; }
.category-nav a[aria-current] { background: var(--color-primary); color: #fff; }
.cards { display: grid; gap: 2rem 1.5rem; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card { display: flex; flex-direction: column; gap: 0.9rem; }
.card-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); display: block; }
.card-body h2 { font-size: 1.3rem; margin: 0.2rem 0 0.4rem; }
.card-body h2 a { color: var(--color-text); text-decoration: none; }
.card-body h2 a:hover { color: var(--color-primary); }
.card-body time { color: var(--color-muted); font-size: 0.85rem; }
.card-body p { margin: 0; color: var(--color-muted); }



@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }

/* ---------------------------------------------------------------------------
   En-tête et menu : mobile d'abord, puis ordinateur à partir de 900 px
   --------------------------------------------------------------------------- */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; padding: 0.75rem 1rem; background: var(--color-text); color: var(--color-bg); border-radius: var(--radius); }
.skip-link:focus { top: 1rem; }

.site-header { position: sticky; top: 0; z-index: 50; background: var(--color-bg); border-bottom: 1px solid color-mix(in srgb, var(--color-text) 12%, transparent); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; flex-wrap: wrap; }
.site-name { color: var(--color-text); font: 700 1.2rem/1.1 var(--font-heading); text-decoration: none; padding-block: 0.75rem; min-width: 0; }
/* Avec JavaScript, le bouton « Menu » reste toujours sur la même ligne que le nom du site (qui passe à la ligne si besoin). */
.has-js .header-inner { flex-wrap: nowrap; }
.nav-toggle { flex: none; }

.nav-toggle { display: inline-flex; align-items: center; gap: 0.6rem; min-height: 44px; padding: 0 0.9rem; border: 1px solid color-mix(in srgb, var(--color-text) 20%, transparent); border-radius: 99px; background: transparent; color: var(--color-text); font: 600 0.95rem var(--font-body); cursor: pointer; }
.nav-toggle-icon { position: relative; width: 18px; height: 12px; }
.nav-toggle-icon::before, .nav-toggle-icon::after, .nav-toggle-icon span { content: ""; position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: currentColor; transition: transform 0.2s, opacity 0.2s; }
.nav-toggle-icon::before { top: 0; }
.nav-toggle-icon span { top: 5px; }
.nav-toggle-icon::after { top: 10px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon::before { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon span { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon::after { transform: translateY(-5px) rotate(-45deg); }

.site-nav { width: 100%; }
.menu { list-style: none; margin: 0; padding: 0; }
.menu-row { display: flex; align-items: stretch; }
.menu a { flex: 1; display: flex; align-items: center; min-height: 52px; color: var(--color-text); text-decoration: none; font-weight: 500; }
.menu a:hover { color: var(--color-primary); }
.menu a[aria-current="page"], .menu-level-0 > .is-active-trail > .menu-row > a { color: var(--color-primary); font-weight: 700; }
.submenu-toggle { flex: none; width: 52px; display: grid; place-items: center; border: 0; background: transparent; color: var(--color-text); cursor: pointer; border-radius: var(--radius); }
.submenu-toggle svg { transition: transform 0.2s; }
.menu-item.is-open > .menu-row .submenu-toggle svg { transform: rotate(180deg); }

/* Mobile : panneau plein écran ouvert par le bouton « Menu » */
.menu-level-0 > .menu-item { border-bottom: 1px solid color-mix(in srgb, var(--color-text) 8%, transparent); }
.menu-level-1 { padding: 0 0 0.5rem 1rem; }
.menu-level-1 a { min-height: 44px; font-weight: 400; }
.has-js .site-nav { display: none; }
.has-js .site-nav.is-open { display: block; position: fixed; inset: 4rem 0 0 0; overflow-y: auto; overscroll-behavior: contain; padding: 0.5rem 1.25rem calc(2rem + env(safe-area-inset-bottom, 0px)); background: var(--color-bg); }
.has-js .menu-level-1 { display: none; }
.has-js .menu-item.is-open > .menu-level-1 { display: block; }
body.nav-open { overflow: hidden; }

/* Ordinateur : menu horizontal, sous-menus déroulants */
@media (min-width: 900px) {
    .header-inner { flex-wrap: nowrap; }
    .nav-toggle { display: none; }
    .site-nav, .has-js .site-nav { display: block; width: auto; }
    .menu-level-0 { display: flex; align-items: center; gap: 0.25rem; }
    .menu-level-0 > .menu-item { position: relative; border: 0; }
    .menu-level-0 > .menu-item > .menu-row > a { min-height: 44px; padding: 0 0.75rem; border-radius: var(--radius); }
    .menu-level-0 > .menu-item.has-children > .menu-row > a { padding-right: 0.25rem; }
    .submenu-toggle { width: 28px; }
    .menu-level-1, .has-js .menu-level-1 { display: none; position: absolute; top: calc(100% + 0.25rem); left: 0; min-width: 14rem; padding: 0.5rem; background: var(--color-bg); border: 1px solid color-mix(in srgb, var(--color-text) 10%, transparent); border-radius: var(--radius); box-shadow: 0 12px 32px color-mix(in srgb, var(--color-text) 14%, transparent); }
    /* Les derniers éléments ouvrent leur sous-menu vers la gauche pour ne pas sortir de l'écran. */
    .menu-level-0 > .menu-item:nth-last-child(-n+2) > .menu-level-1 { left: auto; right: 0; }
    .menu-level-1 a { min-height: 40px; padding: 0 0.75rem; border-radius: calc(var(--radius) - 4px); }
    .menu-level-1 a:hover { background: var(--color-surface); }
    .menu-item.is-open > .menu-level-1,
    .menu-item:focus-within > .menu-level-1 { display: block; }
    /* Le survol n'existe qu'avec une souris : on ne l'utilise pas sur écran tactile. */
    @media (hover: hover) { .menu-item:hover > .menu-level-1 { display: block; } }
    .menu-level-1::before { content: ""; position: absolute; left: 0; right: 0; top: -0.5rem; height: 0.5rem; }
}

/* ---------------------------------------------------------------------------
   Pied de page
   --------------------------------------------------------------------------- */
.site-footer { margin-top: 4rem; padding-block: 2.5rem calc(2rem + env(safe-area-inset-bottom, 0px)); background: var(--color-surface); color: var(--color-muted); font-size: 0.95rem; }
.footer-columns { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; gap: 1.5rem 2rem; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); }
.footer-columns ul { list-style: none; margin: 0.5rem 0 0; padding: 0; }
.footer-nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--color-text); text-decoration: none; }
.footer-nav a:hover { color: var(--color-primary); text-decoration: underline; }
.footer-title { font-weight: 700; }
.copyright { margin: 0; }
@media (min-width: 900px) { .footer-nav a { min-height: 36px; } }

/* ---------------------------------------------------------------------------
   Boutons
   --------------------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0.7rem 1.4rem; border-radius: 99px; border: 2px solid var(--color-primary); font: 600 1rem/1.2 var(--font-body); text-decoration: none; text-align: center; transition: background-color 0.15s, color 0.15s; }
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: color-mix(in srgb, var(--color-primary) 85%, black); border-color: color-mix(in srgb, var(--color-primary) 85%, black); }
.btn-secondary { background: transparent; color: var(--color-primary); }
.btn-secondary:hover { background: color-mix(in srgb, var(--color-primary) 10%, transparent); }
.btn-group { display: flex; flex-wrap: wrap; gap: 0.75rem; }
@media (max-width: 639px) { .btn-group .btn { flex: 1 1 100%; } }

/* ---------------------------------------------------------------------------
   Sections : réglages communs (fond, espacement, visibilité)
   --------------------------------------------------------------------------- */
.page-head { padding-block: clamp(2rem, 6vw, 4rem) 0; }
.section { --section-space: clamp(2.5rem, 7vw, 5rem); padding-block: var(--section-space); }
.section--spacing-none { --section-space: 0px; }
.section--spacing-small { --section-space: clamp(1.25rem, 3.5vw, 2.5rem); }
.section--spacing-large { --section-space: clamp(4rem, 11vw, 8rem); }
.section--bg-surface { background: var(--color-surface); }
.section--bg-primary { background: var(--color-primary); color: #fff; }
.section--bg-dark { background: var(--color-text); color: var(--color-bg); }
.section--bg-primary a:not(.btn), .section--bg-dark a:not(.btn) { color: inherit; }
.section--bg-primary .btn-primary, .section--bg-dark .btn-primary { background: #fff; border-color: #fff; color: var(--color-text); }
.section--bg-primary .btn-secondary, .section--bg-dark .btn-secondary { border-color: #fff; color: #fff; }
.section--bg-primary .btn-secondary:hover, .section--bg-dark .btn-secondary:hover { background: rgb(255 255 255 / 0.12); }
/* Deux sections consécutives au même fond : on évite le double espacement */
.section--bg-none + .section--bg-none, .section--bg-surface + .section--bg-surface { padding-top: 0; }
.section-title { margin: 0 0 0.75em; }
.section-intro { font-size: 1.125rem; color: inherit; opacity: 0.85; max-width: var(--width-text); }
@media (max-width: 899px) { .section--only-desktop { display: none; } }
@media (min-width: 900px) { .section--only-mobile { display: none; } }

/* ---------------------------------------------------------------------------
   Logo, bouton Appeler, pied de page avec coordonnées
   --------------------------------------------------------------------------- */
.site-logo { display: flex; align-items: center; padding-block: 0.5rem; }
.site-logo img { width: auto; display: block; }
.site-logo--s img { height: 32px; }
.site-logo--m img { height: 44px; }
.site-logo--l img { height: 56px; }
@media (max-width: 639px) { .site-logo--l img { height: 44px; } }
.call-btn { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 44px; padding: 0 0.9rem; margin-left: auto; border-radius: 99px; background: var(--color-primary); color: #fff; font-weight: 600; text-decoration: none; flex: none; }
.call-btn + .nav-toggle { margin-left: 0.5rem; }
@media (max-width: 379px) { .call-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } .call-btn { padding: 0 0.8rem; } }
@media (min-width: 900px) { .call-btn { display: none; } }

.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: minmax(16rem, 1fr) 2fr; align-items: start; } .footer-grid .copyright { grid-column: 1 / -1; } }
.footer-contact { display: flex; flex-direction: column; gap: 0.6rem; color: var(--color-text); }
.footer-contact .footer-title { margin: 0; font-size: 1.05rem; }
.footer-tagline, .footer-hours { margin: 0; color: var(--color-muted); }
.footer-contact address { font-style: normal; }
.footer-contact a { color: var(--color-text); }
.footer-contact-list { list-style: none; margin: 0; padding: 0; }
.footer-contact-list a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.social-links { list-style: none; margin: 0.25rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.social-links a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 0.9rem; border-radius: 99px; background: var(--color-bg); color: var(--color-text); text-decoration: none; font-weight: 600; font-size: 0.9rem; }
.social-links a:hover { background: var(--color-primary); color: #fff; }
.footer-columns { margin-bottom: 0; }

/* Horaires en direct (pied de page) */
.footer-hours { margin: 1rem 0; }
.hours-status { display: flex; align-items: center; gap: 0.5rem; margin: 0 0 0.35rem; flex-wrap: wrap; }
.hours-dot { width: 10px; height: 10px; border-radius: 50%; background: #9aa5a8; flex: none; }
.hours-status--open .hours-dot { background: #1f9d55; box-shadow: 0 0 0 4px rgb(31 157 85 / 0.18); }
.hours-status--soon .hours-dot { background: #e08a00; box-shadow: 0 0 0 4px rgb(224 138 0 / 0.18); }
.hours-status--closed .hours-dot { background: #c2410c; }
.hours-week summary { display: inline-flex; align-items: center; min-height: 44px; cursor: pointer; font-weight: 600; color: var(--color-primary); }
.hours-week table { border-collapse: collapse; margin: 0.25rem 0 0.5rem; font-size: 0.95rem; }
.hours-week th { text-align: left; font-weight: 500; padding: 0.3rem 1.25rem 0.3rem 0; white-space: nowrap; vertical-align: top; }
.hours-week td { padding: 0.3rem 0; }
.hours-week tr.is-today th, .hours-week tr.is-today td { font-weight: 700; }
.hours-closure, .hours-note { margin: 0.35rem 0 0; font-size: 0.93rem; color: var(--color-muted); }

/* Bouton WhatsApp flottant */
.wa-float { position: fixed; z-index: 90; bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); right: 1rem; display: inline-flex; align-items: center; gap: 0.5rem; min-width: 56px; height: 56px; justify-content: center; padding: 0; border-radius: 99px; background: #128C7E; color: #fff; text-decoration: none; font-weight: 700; box-shadow: 0 6px 20px rgb(0 0 0 / 0.22); transition: transform 0.15s; }
.wa-float:hover { transform: translateY(-2px); color: #fff; }
.wa-float:focus-visible { outline: 3px solid #fff; box-shadow: 0 0 0 6px #128C7E; }
.wa-float--left { right: auto; left: 1rem; }
.wa-float-label { display: none; }
@media (min-width: 900px) {
    .wa-float { padding: 0 1.25rem 0 1rem; }
    .wa-float-label { display: inline; }
    .wa-float--mobile { display: none; }
}
@media print { .wa-float { display: none; } }
/* Le bouton ne doit pas masquer le bas du pied de page */
body:has(.wa-float) .site-footer { padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px)); }
