/* ============================================================
   PAGE D'ACCUEIL — sections, widget Today et cards cliquables
   ============================================================ */

/* ============================================================
   En-têtes de sections — espacement stylisé
   Titre uppercase + tracking + souligné court coloré
   ============================================================ */

.home-section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 0.75rem;
}

.home-section-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text);
    margin: 0;
}

.home-section-title--muted {
    color: var(--color-muted);
    opacity: 0.7;
}

/* ============================================================
   Widget Today — card encadrée pleine largeur
   Le contenu reste à gauche mais la card définit l'espace.
   ============================================================ */

.today-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 0.75rem;
    padding: 1.5rem;
}

/* ============================================================
   Timeline verticale — fil vertical avec bullets
   ============================================================ */

.today-timeline {
    position: relative;
    padding-left: 0.5rem;
}

/* Fil vertical reliant les 3 créneaux */
.today-timeline::before {
    content: "";
    position: absolute;
    top: 0.75rem;
    bottom: 0.75rem;
    left: 1.25rem;
    width: 2px;
    background: var(--color-border);
    z-index: 0;
}

.today-timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    padding-bottom: 1rem;
    position: relative;
}

.today-timeline-item:last-child {
    padding-bottom: 0;
}

/* Bullet emoji du créneau (rond avec emoji centré) */
.today-timeline-bullet {
    flex-shrink: 0;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background: var(--color-bg);
    border: 2px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    line-height: 1;
    position: relative;
    z-index: 1;
}

.today-timeline-content {
    flex: 1;
    min-width: 0;
    padding-top: 0.125rem;
}

.today-timeline-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text);
    margin: 0 0 0.25rem;
}

.today-timeline-empty {
    font-size: 0.875rem;
    color: var(--color-muted);
    font-style: italic;
    margin: 0;
}

.today-timeline-recipes {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.today-timeline-recipe {
    font-size: 0.875rem;
    color: var(--color-primary);
    font-weight: 500;
    text-decoration: none;
    transition: opacity 0.15s ease;
}

.today-timeline-recipe:hover {
    text-decoration: underline;
}

/* ============================================================
   Cards entièrement cliquables — Pattern stretched link
   Toute la card devient cliquable, mais le <a> reste
   accessible (lecteurs d'écran, navigation clavier).
   ============================================================ */

.card-clickable {
    position: relative;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    cursor: pointer;
}

.card-clickable:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Le lien "stretché" couvre toute la card en transparence.
   Le clic sur la card entière déclenche le lien. */
.stretched-link::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: auto;
    background: transparent;
}

/* Card désactivée — pas d'interaction
   (utilisé sur "Liste de courses — À venir") */
.card-disabled {
    cursor: not-allowed;
}

/* ============================================================
   En-tête de card — icône SVG + titre alignés
   ============================================================ */

.card-header {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-bottom: 0.5rem;
}

.card-header--small {
    gap: 0.5rem;
}

.card-icon {
    flex-shrink: 0;
    width: 1.5rem;
    height: 1.5rem;
    color: var(--color-primary);
}

.card-icon--small {
    width: 1.25rem;
    height: 1.25rem;
}

/* La couleur de l'icône s'adapte automatiquement à la variante de la card. */
.accent-warm .card-icon {
    color: var(--color-accent);
}