/* ==========================================================================
   Page publique — direction éditoriale "programme papier".
   Une feuille, de la typographie, des filets. Pas de hero, pas de cartes,
   pas d'ombres décoratives. Accent = couleur du tenant (--tenant-color).
   ========================================================================== */

* { box-sizing: border-box; }

.public-body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 15px;
    background: #f4f1ec;
    color: #23222b;
    line-height: 1.6;
}

.public-sheet {
    max-width: 860px;
    margin: 0 auto;
    min-height: 100vh;
    background: #fdfcfa;
    border-left: 1px solid #e5e0d8;
    border-right: 1px solid #e5e0d8;
    padding: 2.5rem clamp(1.1rem, 4vw, 3.5rem) 2rem;
}

/* --- Masthead --- */
.public-masthead {
    border-bottom: 3px solid var(--tenant-color);
    padding-bottom: 1.25rem;
    margin-bottom: 1.5rem;
}

.public-masthead-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Bouton Connexion : pour les gérants qui arrivent sur leur URL
   habituelle et tombent sur la vitrine. Style éditorial (filet, pas de
   dégradé), couleur du tenant, remplissage au survol. */
.public-login-btn {
    margin-left: auto;
    align-self: flex-start;
    flex-shrink: 0;
    padding: 0.45rem 1.1rem;
    border: 1.5px solid var(--tenant-color);
    color: var(--tenant-color);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s ease, color 0.15s ease;
}

.public-login-btn:hover,
.public-login-btn:focus-visible {
    background: var(--tenant-color);
    color: #fff;
}

.public-logo {
    width: 52px;
    height: 52px;
    object-fit: contain;
    flex: 0 0 auto;
}

.public-kicker {
    margin: 0 0 0.15rem;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--tenant-color);
}

.public-masthead h1 {
    font-family: 'DM Serif Display', serif;
    font-weight: 400;
    font-size: clamp(1.7rem, 4.5vw, 2.4rem);
    line-height: 1.1;
    margin: 0;
}

.public-subtitle {
    margin: 0.2rem 0 0;
    color: #6f6c64;
    font-size: 0.95rem;
}

/* --- Présentation --- */
.public-presentation {
    max-width: 62ch;
    margin: 0 0 2rem;
    color: #3d3b45;
}

/* --- Calendrier (habillage FullCalendar, ton éditorial) --- */
#public-calendar {
    margin-bottom: 2rem;
}

#public-calendar .fc-toolbar-title {
    font-family: 'DM Serif Display', serif;
    font-weight: 400;
    font-size: 1.35rem;
    text-transform: capitalize;
}

#public-calendar .fc-button {
    background: none;
    border: 1px solid #d8d2c8;
    color: #23222b;
    box-shadow: none;
    padding: 0.25rem 0.65rem;
}

#public-calendar .fc-button:hover {
    background: #f1ede6;
}

#public-calendar .fc-button:focus {
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--tenant-color) 35%, transparent);
}

#public-calendar .fc-theme-standard td,
#public-calendar .fc-theme-standard th,
#public-calendar .fc-theme-standard .fc-scrollgrid {
    border-color: #eae5dc;
}

#public-calendar .fc-col-header-cell-cushion {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6f6c64;
    text-decoration: none;
}

#public-calendar .fc-daygrid-day-number {
    font-size: 0.8rem;
    color: #6f6c64;
    text-decoration: none;
}

#public-calendar .fc-day-today {
    background: color-mix(in srgb, var(--tenant-color) 6%, transparent);
}

#public-calendar .fc-event {
    border: none;
    border-radius: 3px;
    font-size: 0.72rem;
    padding: 1px 4px;
    cursor: default;
}

#public-calendar .fc-daygrid-more-link,
#public-calendar .fc-list-day-cushion a {
    color: var(--tenant-color);
    text-decoration: none;
}

#public-calendar .fc-list-event:hover td {
    background: #f6f3ee;
}

/* --- Colophon --- */
.public-colophon {
    border-top: 1px solid #e5e0d8;
    padding-top: 1.1rem;
    font-size: 0.85rem;
    color: #6f6c64;
}

.public-colophon p {
    margin: 0 0 0.35rem;
}

.public-colophon a {
    color: var(--tenant-color);
    text-decoration: none;
}

.public-colophon a:hover {
    text-decoration: underline;
}

.public-sep {
    margin: 0 0.45rem;
    color: #c9c3b8;
}

@media (max-width: 640px) {
    .public-sheet {
        border: none;
        padding-top: 1.75rem;
    }

    .public-masthead-row {
        flex-wrap: wrap;
        align-items: flex-start;
    }
}
