@charset "UTF-8";
/* =======================================================
* Theme Agence MIBE © Frédéric MILLIAREDE BESCH
* MYO Couture : en-tête des pages du Café Couture
* (adresse, horaires, planning, contact, itinéraires, rubriques)
* Version 2.0.0 NOVEMBRE 2026
* ======================================================= */

.cafe-entete {
    --nuit: #0D1033;
    --violet: #9a80b9;
    --filet: rgba(13, 16, 51, .12);

    margin: 0 auto;
    padding: clamp(28px, 6vw, 56px) 0 clamp(20px, 4vw, 36px);
    color: var(--nuit);
    font-family: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
    text-align: left;
}

.cafe-entete *, .cafe-entete *::before, .cafe-entete *::after { box-sizing: border-box; }

.cafe-entete__grille {
    display: grid;
    grid-template-columns: minmax(220px, 360px) 1fr;
    align-items: center;
    gap: clamp(24px, 6vw, 64px);
}

/* Logo posé sur la photo pâle de l'atelier */
.cafe-entete__logo {
    display: grid;
    place-items: center;
    aspect-ratio: 3 / 4;
    padding: 7%;
    border-radius: 28px;
    background: #f4ecf0 url('/contenus/CAFECOUTURE/logobackpicture.jpg') center / cover no-repeat;
    box-shadow: 0 24px 60px -36px rgba(13, 16, 51, .45);
}

.cafe-entete__logo img,
.cafe-entete__logo .logoN {      /* neutralise les réglages de .logoN dans style.css */
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0 !important;
    padding: 0;
    float: none;
    position: static;
    transform: none;
    justify-self: center;
    align-self: center;
}

.cafe-entete__surtitre {
    margin: 0 0 6px;
    color: var(--violet);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
}

.cafe-entete__adresse {
    margin: 0;
    font-style: normal;
    font-weight: 600;
    font-size: clamp(1.05rem, 2.6vw, 1.3rem);
    line-height: 1.35;
}

/* ---------- Horaires ---------- */
.cafe-horaires { margin-top: 18px; }

.cafe-statut {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: .95rem;
    font-weight: 600;
}

.cafe-statut[hidden] { display: none; }

/* témoin : plein si ouvert, contour si fermé (même logique que le planning) */
.cafe-statut::before {
    content: "";
    flex: none;
    width: .7em;
    height: .7em;
    border: 1.5px solid currentColor;
    border-radius: 3px;
}

.cafe-statut.is-ouvert::before { background: currentColor; }

/* Planning : lundi → dimanche, matin puis après-midi */
.cafe-planning { margin-top: 16px; }
.cafe-planning + .cafe-statut { margin-top: 14px; }
.cafe-planning[hidden] { display: none; }

.hor-planning { display: grid; gap: 6px; width: max-content; max-width: 100%; }

.hor-ligne {
    display: grid;
    grid-template-columns: 6em repeat(7, 4.6em);
    align-items: center;
    gap: 6px;
}

.hor-jour, .hor-plage {
    font-size: .78rem;
    line-height: 1.2;
}

.hor-plage { font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; }

.hor-jour { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; }

/* date du jour sous son nom : le planning montre la semaine en cours, pas des horaires récurrents */
.hor-date { font: inherit; }   /* même police, même taille que le nom du jour */
.hor-plage { text-align: left; opacity: .65; }
.hor-court { display: none; }
.hor-jour.is-aujourdhui { font-weight: 700; }
.hor-cellule { display: flex; justify-content: center; }

/* Carré : contour seul = fermé, plein = ouvert */
.hor-case {
    display: block;
    width: 1.6em;
    height: 1.6em;
    border: 1.5px solid currentColor;
    border-radius: 5px;
}

.hor-case.is-ouvert { background: currentColor; }

/* ---------- Actions ---------- */
.cafe-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.cafe-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 12px 20px;
    border: 1.5px solid var(--nuit);
    border-radius: 999px;
    background: transparent;
    color: var(--nuit);
    font: inherit;
    font-weight: 600;
    font-size: .9rem;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: transform .4s cubic-bezier(.34, 1.56, .64, 1), background-color .25s, color .25s;
}

.cafe-btn:hover { transform: translateY(-2px); color: var(--nuit); text-decoration: none; }
.cafe-btn--plein { background: var(--nuit); color: #fff; }
.cafe-btn--plein:hover { color: #fff; background: #1d2260; }
.cafe-btn:focus-visible, .cafe-itineraire a:focus-visible, .cafe-rubriques a:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; }

.cafe-btn svg, .cafe-itineraire svg {
    flex: none;
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Itinéraires */
.cafe-itineraire {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
    margin: 16px 0 0;
    font-size: .85rem;
}

.cafe-itineraire__label { display: inline-flex; align-items: center; gap: 6px; opacity: .7; }

.cafe-itineraire a {
    color: var(--nuit);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: var(--violet);
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

.cafe-itineraire a:hover { color: var(--violet); }

/* ---------- Rubriques du Café Couture ---------- */
.cafe-rubriques {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: clamp(28px, 5vw, 44px);
    padding-top: 22px;
    border-top: 1px solid var(--filet);
}

.cafe-rubriques a {
    padding: 9px 16px;
    border-radius: 999px;
    background: rgba(154, 128, 185, .14);
    color: var(--nuit);
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-decoration: none;
    text-transform: uppercase;
    transition: background-color .25s, color .25s;
}

.cafe-rubriques a:hover { background: var(--violet); color: #fff; }
.cafe-rubriques a[aria-current="page"] { background: var(--nuit); color: #fff; }

/* ---------- Petits écrans ---------- */
@media (max-width: 767px) {
    .cafe-entete__grille { grid-template-columns: 1fr; text-align: center; }
    .cafe-entete__logo { width: min(340px, 86%); margin: 0 auto; padding: 6%; }
    .cafe-actions, .cafe-itineraire, .cafe-rubriques { justify-content: center; }
    .hor-planning { margin: 0 auto; }
}

/* jours abrégés quand la place manque */
@media (max-width: 1100px) {
    .hor-ligne { grid-template-columns: 6em repeat(7, 3.2em); }
    .hor-long { display: none; }
    .hor-court { display: inline; }
}

@media (max-width: 600px) {
    .hor-ligne { grid-template-columns: 4.6em repeat(7, 1fr); gap: 4px; }
    .hor-long { display: none; }
    .hor-court { display: inline; }
    .hor-case { width: 1.35em; height: 1.35em; border-radius: 4px; }
}

@media (prefers-reduced-motion: reduce) {
    .cafe-btn { transition: none; }
}
