/* Café du Champ de Mars — feuille de style principale (vanilla CSS, sans framework) */

:root {
    /* Palette sobre en noir et blanc, cohérente avec le logo (blason noir/blanc). */
    --color-bg: #ffffff;
    --color-surface: #ffffff;
    --color-surface-alt: #f4f4f2;
    /* Calque quasi-opaque posé sur une image de fond de section (voir
       .section--bg) : ne laisse deviner qu'une légère texture de la photo,
       pour ne jamais nuire à la lisibilité du texte par-dessus. */
    --color-surface-alt-veil: rgba(244, 244, 242, 0.93);
    --color-text: #141414;
    --color-muted: #63625f;
    --color-primary: #141414;
    --color-primary-dark: #000000;
    --color-accent: #141414;
    --color-border: #e2e1dd;

    --font-heading: Georgia, "Times New Roman", serif;
    --font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

    --container-width: 1120px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-body);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
}

img {
    max-width: 100%;
    display: block;
}

h1, h2, h3 {
    font-family: var(--font-heading);
    line-height: 1.2;
    margin: 0 0 0.6em;
}

p {
    margin: 0 0 1em;
}

a {
    color: inherit;
}

:focus-visible {
    outline: 2px solid var(--color-text);
    outline-offset: 2px;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.25rem;
}

.container--narrow {
    max-width: 720px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.78rem;
    color: var(--color-accent);
    font-weight: 700;
    margin: 0 0 0.75rem;
}

.eyebrow--light {
    color: #e4e4e2;
}

.section__title {
    font-size: 1.9rem;
    text-align: center;
    margin-bottom: 2rem;
}

/* --- Boutons --- */

.btn {
    display: inline-block;
    background: var(--color-primary);
    color: #fff;
    text-decoration: none;
    padding: 0.75rem 1.75rem;
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: background-color 0.2s ease, transform 0.2s ease;
    border: 1.5px solid var(--color-primary);
    cursor: pointer;
}

.btn:hover {
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    transform: translateY(-1px);
}

.btn--outline {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.7);
    color: #fff;
}

.btn--outline:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #fff;
}

.empty-state {
    color: var(--color-muted);
    text-align: center;
    padding: 2.5rem 1rem;
    border: 1px dashed var(--color-border);
    border-radius: 12px;
    background: var(--color-surface);
}

.empty-state p {
    margin: 0 0 1.25rem;
    font-size: 1.05rem;
}

.empty-state .btn {
    background: #1877f2;
    border-color: #1877f2;
}

.empty-state .btn:hover {
    background: #0f5fcc;
    border-color: #0f5fcc;
}

/* --- En-tête / navigation --- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid var(--color-border);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1.25rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: var(--color-text);
}

.brand__mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 0 0 1px var(--color-border);
    overflow: hidden;
    flex-shrink: 0;
}

.brand__mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.brand__name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
}

.site-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 1.75rem;
    margin: 0;
    padding: 0;
}

.site-nav a {
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-text);
    border-bottom: 2px solid transparent;
    padding-bottom: 2px;
    transition: border-color 0.2s ease;
}

.site-nav a:hover {
    border-color: var(--color-accent);
}

.site-nav a.site-nav__cta {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    background: var(--color-primary);
    color: #fff;
    padding: 0.5rem 1.1rem;
    border-radius: 999px;
    font-size: 0.85rem;
    border-bottom: none;
}

.site-nav a.site-nav__cta:hover {
    background: var(--color-primary-dark);
    border-color: transparent;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.nav-toggle span {
    display: block;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
}

/* --- Bannière d'accueil (devanture) ---
   Hauteur contenue via min-height (jamais height) : le texte, plus long que
   l'ancien slogan, et l'encart horaires ne sont donc jamais tronqués, quel
   que soit l'écran — la bannière grandit plutôt que de couper le contenu. */

.hero-banner {
    position: relative;
    min-height: clamp(480px, 46vh, 680px);
    display: flex;
    align-items: center;
    color: #fff;
    overflow: hidden;
}

.hero-banner__media {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: var(--color-text);
}

/* Le diaporama réutilise les classes .carousel__track / .carousel__slide
   (mêmes règles que le carrousel photo des événements : object-fit: cover,
   donc jamais d'étirement, quelles que soient les dimensions des photos). */
.hero-banner__media .carousel__slide {
    transition: opacity 1.2s ease;
}

.hero-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.52) 45%, rgba(0, 0, 0, 0.28) 100%);
    z-index: 1;
}

.hero-banner__content {
    position: relative;
    z-index: 2;
    /* padding-top/bottom seulement : les côtés viennent de .container, sans
       quoi un padding raccourci ("padding: 3rem 0") écraserait le padding
       gauche/droite de .container et collerait le contenu aux bords. */
    padding-top: 3rem;
    padding-bottom: 3rem;
    width: 100%;
    min-width: 0;
}

/* Mobile-first : texte puis carte horaires empilés, pleine largeur.
   Passent côte à côte à partir de 780px (voir --- Responsive ---). */
.hero-banner__grid {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.hero-banner__intro {
    min-width: 0;
}

.hero-banner h1 {
    font-size: clamp(1.9rem, 4.6vw, 3rem);
    margin-bottom: 0.4rem;
}

.hero-banner__tagline {
    font-size: 1.05rem;
    line-height: 1.55;
    color: #e4e4e2;
    max-width: 54ch;
    margin-bottom: 1.5rem;
}

.hero-banner__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* --- Encart horaires du hero ---
   Carte "verre dépoli" flottant sur la photo, directement visible sans
   avoir à défiler. Pleine largeur sous le texte sur mobile ; à droite du
   texte à partir de 780px (voir --- Responsive ---). */

.hero-hours {
    width: 100%;
    background: rgba(20, 20, 20, 0.55);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 18px;
    padding: 1.25rem 1.4rem;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.25);
}

.hero-hours__title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 0.85rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    color: #fff;
}

.hero-hours__title .icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.hero-hours__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.hero-hours__list li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    padding: 0.32rem 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.72);
    border-bottom: 1px dashed rgba(255, 255, 255, 0.14);
}

.hero-hours__list li:last-child {
    border-bottom: none;
}

.hero-hours__day {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
}

.hero-hours__time {
    text-align: right;
}

.hero-hours__list li.is-today {
    color: #fff;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.12);
    margin: 0 -0.55rem;
    padding: 0.32rem 0.55rem;
    border-radius: 8px;
    border-bottom-color: transparent;
}

.hero-hours__note {
    display: block;
    margin-top: 0.1rem;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.55);
}

/* --- Sections génériques --- */

.section {
    padding: 4rem 0;
}

.section--alt {
    background: var(--color-surface-alt);
}

/* Section avec image de fond (chemin injecté en style inline par la page,
   configurable depuis l'admin). Le calque de couleur quasi-opaque est
   appliqué via un dégradé superposé à l'image dans le même background-image
   (deux couleurs identiques = un aplat), pour ne jamais nuire à la
   lisibilité du texte tout en laissant deviner la photo. */
.section--bg {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* --- Présentation --- */

.prose {
    font-size: 1.05rem;
    margin-bottom: 2.5rem;
}

.prose p {
    margin: 0 0 1.1rem;
}

.prose p:last-child {
    margin-bottom: 0;
}

.feature-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin: 0;
    padding: 0;
}

.feature-list li {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    padding: 0.6rem 1.1rem 0.6rem 0.8rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-primary-dark);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.feature-list .icon {
    width: 18px;
    height: 18px;
    color: var(--color-accent);
}

/* --- Infos pratiques --- */

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.info-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 1.75rem;
}

.info-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--color-surface-alt);
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.info-card__icon .icon {
    width: 22px;
    height: 22px;
}

.info-card h3 {
    font-size: 1.05rem;
    margin-bottom: 0.4rem;
}

.info-card p {
    color: var(--color-muted);
    margin-bottom: 0.6rem;
    font-size: 0.95rem;
}

.info-card__link {
    display: inline-block;
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
}

.info-card__link:hover {
    text-decoration: underline;
}

/* --- Fil des événements (façon flux social) --- */

.feed {
    margin-top: 2.5rem;
}

.feed-post {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
}

.feed-post:last-child {
    margin-bottom: 0;
}

.feed-post__meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.15rem 1.35rem;
}

.feed-post__avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 0 0 1px var(--color-border);
    overflow: hidden;
    flex-shrink: 0;
}

.feed-post__avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.feed-post__author {
    font-weight: 700;
    font-size: 0.92rem;
    margin: 0;
    line-height: 1.3;
}

.feed-post__date {
    font-size: 0.8rem;
    color: var(--color-muted);
    margin: 0;
}

.feed-post__body {
    padding: 1.35rem;
}

.feed-post__body h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.feed-post__body p:last-child {
    margin: 0;
    color: var(--color-muted);
}

.feed-post__reserve {
    margin-top: 1.25rem;
}

/* --- Carrousel photo --- */

.carousel {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--color-surface-alt);
    touch-action: pan-y;
    cursor: grab;
}

.carousel__track {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease;
}

.carousel__slide.is-active {
    opacity: 1;
    visibility: visible;
}

.carousel__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    -webkit-user-drag: none;
}

.carousel__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.85);
    color: var(--color-text);
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.carousel__nav:hover {
    background: #fff;
}

.carousel__nav--prev {
    left: 0.6rem;
}

.carousel__nav--next {
    right: 0.6rem;
}

.carousel__dots {
    position: absolute;
    bottom: 0.75rem;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 0.4rem;
}

.carousel__dots button {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    padding: 0;
}

.carousel__dots button.is-active {
    background: #fff;
}

/* --- Pied de page --- */

.site-footer {
    background: var(--color-text);
    color: #e4e4e2;
    padding: 3rem 0 0;
}

.site-footer__inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.75rem;
    padding-bottom: 2.5rem;
}

.site-footer__brand {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.site-footer__brand .brand__mark {
    margin-top: 0.15rem;
}

.site-footer__brand .brand__name {
    color: #fff;
    font-size: 1.1rem;
    margin: 0;
}

.site-footer__brand p {
    margin: 0.35rem 0 0;
    font-size: 0.85rem;
    line-height: 1.5;
    max-width: 42ch;
    color: rgba(255, 255, 255, 0.6);
}

.site-footer__facebook {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 0.9rem;
    padding: 0.4rem 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    color: #fff;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.site-footer__facebook .icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.site-footer__facebook:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
}

.site-footer__links,
.site-footer__contact {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.site-footer__links a,
.site-footer__contact a {
    color: #e4e4e2;
    text-decoration: none;
    font-size: 0.92rem;
}

.site-footer__links a:hover,
.site-footer__contact a:hover {
    text-decoration: underline;
}

.site-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 1.25rem;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

/* --- Responsive --- */

@media (max-width: 780px) {
    /* Garantit une marge confortable de chaque côté du contenu du hero
       sur mobile, même si .container venait à changer. */
    .hero-banner__content {
        padding-left: 1em;
        padding-right: 1em;
    }

    .nav-toggle {
        display: flex;
    }

    .site-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-bg);
        border-bottom: 1px solid var(--color-border);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.25s ease;
    }

    .site-nav.is-open {
        max-height: 320px;
    }

    .site-nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 0.5rem 1.25rem 1.25rem;
    }

    .site-nav li {
        width: 100%;
        border-top: 1px solid var(--color-border);
    }

    .site-nav a {
        display: block;
        padding: 0.85rem 0;
    }

    .site-nav a.site-nav__cta {
        margin: 0.85rem 0;
        padding: 0.55rem 1.1rem;
    }
}

@media (min-width: 640px) {
    .hero-banner__actions {
        align-items: center;
    }
}

@media (min-width: 780px) {
    .hero-banner__grid {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
        gap: 2.5rem;
    }

    .hero-banner__intro {
        flex: 1 1 auto;
    }

    .hero-hours {
        flex: 0 0 300px;
        width: 300px;
    }
}

@media (min-width: 960px) {
    .site-footer__inner {
        grid-template-columns: 2fr 1fr 1fr;
    }
}
