@font-face {
    font-family: 'luciole';
    src: url('../font/luciole/luciole.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    /* swap : le texte s'affiche tout de suite en police de secours, puis bascule.
       Sans ca, le corps de page (police du LCP) reste invisible au chargement.
       / swap: text shows immediately in a fallback, then swaps. Without it the
       body text (the LCP font) stays invisible while the font loads. */
    font-display: swap;
}

@font-face {
    font-family: 'luciole';
    src: url('../font/luciole/luciole-bold.woff2') format('woff2');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

/* 
@font-face {
    font-family: 'luciole';
    src: url('../font/luciole/luciole-italic.woff2') format('woff2');
    font-weight: italic;
    font-style: normal; */
/* } */

@font-face {
    font-family: 'staatliches';
    src: url('../font/staatliches/staatliches.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* playwrite-is */
@font-face {
	font-family: Playwrite IS;
	font-style: normal;
	font-weight: 100 400;
	font-stretch: 100%;
	src: url('../font/playwrite-is/playwrite-is.woff2') format("woff2");
	font-display: swap;
}

a {
    color: inherit;
}

body {
    font-family: luciole, sans-serif;
}

.display-1 {
    font-family: Playwrite IS, serif;
}

.navbar {
    padding-block: 6px;

    .badge {
        font-family: luciole, sans-serif;
        font-size: var(--bs-badge-font-size);
    }

    .nav-link, .navbar-brand {
        font: 16px staatliches, sans-serif;
    }

    /* Logo : on cape sa HAUTEUR et on annule le h-100/object-fit-cover hérité de
       picture.html (sinon le logo s'étire sur toute la hauteur de la navbar et
       paraît trop haut). object-fit: contain = pas de recadrage du logo.
       / Logo: cap its HEIGHT and cancel the inherited h-100/object-fit-cover from
       picture.html (otherwise the logo stretches to the full navbar height).
       object-fit: contain = no logo cropping. */
    .navbar-brand img {
        height: auto !important;
        width: auto !important;
        max-height: 2rem;
        object-fit: contain !important;
    }

    /* Chaque libellé de menu reste sur UNE ligne (pas de coupure « RÉSEAU /
       LOCAL »), et le menu wrappe l'item ENTIER si la place manque (jamais de
       scroll horizontal). / Each label stays on ONE line (no « RÉSEAU / LOCAL »
       break); the menu wraps the WHOLE item when space runs out (never h-scroll). */
    .nav-link {
        white-space: nowrap;
    }
    .navbar-nav {
        flex-wrap: wrap;
    }
}

.table th, .table td {
	padding: 1rem;
	background: none;
}

details.accordion-item:hover {
    background: var(--bs-tertiary-bg);
}
details.accordion-item[open] {
    background: var(--bs-secondary-bg);
}

@media (min-width: 768px) {
    .event-tags {
        max-width: 50%;
    }
}

/* Make images in long_description responsive and centered */
figure.attachment,
figure[data-trix-attachment] {
    text-align: center;
    margin: 0 auto;
}

figure.attachment img,
figure[data-trix-attachment] img {
    max-width: 100%;
    height: auto;
    width: 100%;
}

/* Square buttons for currency section */
.square-btn {
    aspect-ratio: 1/1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0.5rem;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.square-btn i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* Desktop styles for square buttons */
@media (min-width: 768px) {
    .square-btn {
        aspect-ratio: auto;
        height: auto;
        flex-direction: row;
        padding: 0.75rem 1.25rem;
        font-size: 1rem;
    }
    .square-btn i {
        font-size: 1.25rem;
        margin-bottom: 0;
        margin-right: 0.5rem;
    }
}

/* ==========================================================================
   OFFCANVAS TUNNEL — largeur responsive des tunnels (adhésion, réservation)
   / Responsive width for tunnel offcanvas (#subscribePanel, #bookingPanel).
   Factorisé depuis les <style> inline des templates (CHANTIER-02 lot C1).
   Plein écran sur mobile, 800px à partir du breakpoint lg.
   / Full width on mobile, 800px from the lg breakpoint up.
   ========================================================================== */
.offcanvas-tunnel {
    --bs-offcanvas-width: 100vw;
}

@media (min-width: 992px) {
    .offcanvas-tunnel {
        --bs-offcanvas-width: 800px;
    }
}
