/* public/css/index_desktop.css */

@font-face {
    font-family: 'police1';
    src: url('/fonts/SFFlorencesans.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

:root {
    --accent: #ec6432;
    --accent-dark: #d9541e;
    --question-bg: rgba(0, 0, 0, 0.70);
    --header-bg: rgba(0, 0, 0, 0.85);
    --day-bg: #fffdf9;
    --day-border-orange: rgba(236, 100, 50, 0.7);
    --text-main: #1f1f1f;
    --text-muted: #777777;
    --radius-lg: 18px;
    --radius-md: 14px;
}

html,
body {
    margin: 0;
    padding: 0;
}

/* Le fond est géré dans base_clickandcollect (cc-bg) */
body {
    min-height: 100vh;
    font-family: 'police1', sans-serif;
    color: var(--text-main);
}

/* Layout global Click&Collect */
.cc-layout {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* HEADER avec logo */
.cc-header {
    background: var(--header-bg);
    padding: 6px 0 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.cc-header-inner {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.cc-logo {
    height: 56px;
    width: auto;
    filter: drop-shadow(0 5px 14px rgba(0, 0, 0, 0.9));
}

/* MAIN */
.cc-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 22px 16px 40px;
}

/* Question en haut */
.cc-question {
    width: 100%;
    max-width: 720px;
    text-align: center;
    font-size: 24px;
    color: #ffffff;
    padding: 16px 22px;
    border-radius: 16px;
    margin-bottom: 20px;
    background: var(--question-bg);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.7);
}

/* Liste jours */
.cc-days-wrapper {
    width: 100%;
    max-width: 720px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 70vh;
    overflow-y: auto;
    padding-right: 4px;

    scrollbar-width: none;
    -ms-overflow-style: none;
}
.cc-days-wrapper::-webkit-scrollbar {
    width: 0;
    height: 0;
}

/* BLOC JOUR */
.cc-day-card {
    position: relative;
    border-radius: var(--radius-md);
    border: 1px solid var(--day-border-orange);
    background: var(--day-bg);
    padding: 12px 16px 12px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
    text-align: center;
    transition:
        transform 0.12s ease-out,
        box-shadow 0.15s ease-out,
        border-color 0.15s ease-out,
        background 0.15s ease-out;

    width: 50%;
    min-width: 220px;
    margin: 0 auto;
}

.cc-day-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
    border-color: rgba(236, 100, 50, 0.9);
    background: linear-gradient(135deg, #ffffff, #ffe8da);
}

.cc-day-card--disabled {
    cursor: default;
    pointer-events: none;
    opacity: 0.6;
}

/* Ligne jour+date */
.cc-day-main {
    display: flex;
    justify-content: center;
}

/* Jour + date sur une seule ligne */
.cc-day-name {
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
}

.cc-day-date {
    font-size: 16px;
    font-weight: 600;
    margin-left: 8px;
    color: #333333;
}

/* Chips services */
.cc-services-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
}

.cc-chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    border: 1px solid rgba(0, 0, 0, 0.12);
}

.cc-chip--midi {
    background: rgba(236, 100, 50, 0.08);
    border-color: rgba(236, 100, 50, 0.5);
    color: #b5471e;
    font-weight: 600;
}

.cc-chip--soir {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.2);
    color: #333;
    font-weight: 600;
}

/* Lieu */
.cc-day-location {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cc-day-location-name {
    font-size: 14px;
    font-weight: 600;
    color: #222222;
}

.cc-day-location-address {
    font-size: 13px;
    color: var(--text-muted);
}

/* Fermetures */
.cc-day-closure {
    margin-top: 4px;
}

.cc-day-closure-text {
    font-size: 13px;
    color: #c0392b;
    font-weight: 600;
}

/* ===== MODAL ===== */

body.cc-modal-open {
    overflow: hidden;
}

.cc-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
}

.cc-modal.cc-modal--open {
    display: block;
}

.cc-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
}

.cc-modal-dialog {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.cc-modal-content {
    background: #111111;
    border-radius: 16px;
    padding: 22px 20px 18px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.92);
    color: #ffffff;
    text-align: center;
    position: relative;
    max-width: 400px;
    width: 100%;
}

.cc-modal-title {
    margin: 4px 0 16px;
    font-size: 20px;
}

.cc-modal-close {
    position: absolute;
    right: 14px;
    top: 6px;
    font-size: 26px;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
}

.cc-modal-close:hover {
    color: #ffffff;
}

.cc-modal-buttons {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 8px;
}

.cc-modal-btn {
    padding: 9px 22px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    color: #ffffff;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.85);
    transition:
        background 0.15s ease-out,
        box-shadow 0.15s ease-out,
        transform 0.1s ease-out;
}

.cc-modal-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-1px);
}

.cc-modal-btn--accent {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    border-color: transparent;
}
