/* Chichaoua Food Truck Agenda 1.0.2
 * Scoped styles: the plugin does not reset or style the host website globally.
 */
:root {
    --chichaoua-black: #000000;
    --chichaoua-ink: #f5eee2;
    --chichaoua-muted: #c9c0b2;
    --chichaoua-gold: #c79a4b;
    --chichaoua-gold-light: #e4c583;
    --chichaoua-card: #1c1815;
    --chichaoua-red: #8a2e36;
    --chichaoua-border: rgba(245, 238, 226, 0.14);
    --chichaoua-font-display: "Fraunces", Georgia, serif;
    --chichaoua-font-body: "Jost", "Helvetica Neue", Arial, sans-serif;
    --chichaoua-font-label: "Reem Kufi", "Arial Narrow", Arial, sans-serif;
}

.chichaoua-ft-agenda,
.chichaoua-ft-portal {
    box-sizing: border-box;
    color: var(--chichaoua-ink);
    font-family: var(--chichaoua-font-body);
    font-size: 16px;
    font-weight: 300;
    line-height: 1.65;
}

.chichaoua-ft-agenda *,
.chichaoua-ft-agenda *::before,
.chichaoua-ft-agenda *::after,
.chichaoua-ft-portal *,
.chichaoua-ft-portal *::before,
.chichaoua-ft-portal *::after {
    box-sizing: border-box;
}

.chichaoua-ft-agenda {
    background: var(--chichaoua-black);
    color: var(--chichaoua-ink);
    padding: clamp(78px, 10vw, 130px) 0;
    width: 100%;
}

.chichaoua-ft-wrap {
    margin: 0 auto;
    max-width: 1120px;
    width: calc(100% - 48px);
}

.chichaoua-ft-section-head {
    margin-bottom: 44px;
    max-width: 760px;
}

.chichaoua-ft-eyebrow {
    align-items: center;
    color: var(--chichaoua-gold);
    display: flex;
    font-family: var(--chichaoua-font-label);
    font-size: 0.74rem;
    font-weight: 500;
    gap: 12px;
    letter-spacing: 0.22em;
    line-height: 1.65;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.chichaoua-ft-eyebrow > span {
    background: var(--chichaoua-gold);
    display: inline-block;
    flex: 0 0 28px;
    height: 1px;
    width: 28px;
}

.chichaoua-ft-section-head h2,
.chichaoua-ft-portal h1,
.chichaoua-ft-portal h2,
.chichaoua-ft-portal h3 {
    color: var(--chichaoua-ink);
    font-family: var(--chichaoua-font-display);
    font-weight: 560;
    letter-spacing: -0.02em;
    margin: 0;
}

.chichaoua-ft-section-head h2 {
    font-size: clamp(2.1rem, 4vw, 3.5rem);
    line-height: 1;
    padding-bottom: 10px;
}

.chichaoua-ft-section-head p {
    color: var(--chichaoua-muted);
    font-size: clamp(1rem, 1.7vw, 1.2rem);
    line-height: 1.65;
    margin: 16px 0 0;
}

.chichaoua-ft-schedule {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.chichaoua-ft-day-card {
    background: var(--chichaoua-card);
    border: 1px solid var(--chichaoua-border);
    border-radius: 14px;
    min-height: 190px;
    padding: 32px 24px;
}

.chichaoua-ft-day-card--highlight {
    background: var(--chichaoua-red);
    border-color: transparent;
}

.chichaoua-ft-day {
    color: var(--chichaoua-gold-light);
    font-family: var(--chichaoua-font-display);
    font-size: 1.28rem;
    font-weight: 560;
    line-height: 1.35;
    margin: 0 0 18px;
}

.chichaoua-ft-day-card--highlight .chichaoua-ft-day,
.chichaoua-ft-day-card--highlight .chichaoua-ft-slot,
.chichaoua-ft-day-card--highlight .chichaoua-ft-time,
.chichaoua-ft-day-card--highlight .chichaoua-ft-place,
.chichaoua-ft-day-card--highlight .chichaoua-ft-map-link {
    color: var(--chichaoua-ink);
}

.chichaoua-ft-entry + .chichaoua-ft-entry {
    border-top: 1px solid rgba(245, 238, 226, 0.11);
    margin-top: 19px;
    padding-top: 19px;
}

.chichaoua-ft-slot {
    color: var(--chichaoua-gold);
    font-family: var(--chichaoua-font-label);
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    line-height: 1.65;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.chichaoua-ft-time {
    color: var(--chichaoua-ink);
    font-size: 0.86rem;
    font-weight: 400;
    line-height: 1.4;
    margin-bottom: 6px;
}

.chichaoua-ft-place {
    color: var(--chichaoua-muted);
    display: flex;
    flex-direction: column;
    font-size: 0.95rem;
    line-height: 1.65;
}

.chichaoua-ft-map-link {
    color: var(--chichaoua-gold-light);
    display: inline-flex;
    font-size: 0.75rem;
    gap: 5px;
    margin-top: 10px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.chichaoua-ft-map-link:hover,
.chichaoua-ft-map-link:focus-visible {
    color: var(--chichaoua-ink);
    text-decoration: underline;
}

.chichaoua-ft-empty {
    color: var(--chichaoua-muted);
    font-size: 0.9rem;
}

/* Portal propriétaire */
.chichaoua-ft-portal {
    background: var(--chichaoua-black);
    min-height: 100vh;
}

body.chichaoua-ft-portal {
    margin: 0;
}

.chichaoua-ft-portal-shell {
    margin: 0 auto;
    max-width: 1120px;
    padding: 64px 0 80px;
    width: calc(100% - 40px);
}

.chichaoua-ft-portal-header {
    align-items: flex-start;
    border-bottom: 1px solid var(--chichaoua-border);
    display: flex;
    gap: 28px;
    justify-content: space-between;
    margin-bottom: 30px;
    padding-bottom: 34px;
}

.chichaoua-ft-portal h1 {
    font-size: clamp(2.25rem, 5vw, 4.1rem);
    line-height: 0.98;
    max-width: 720px;
}

.chichaoua-ft-portal h2 {
    font-size: 1.55rem;
    line-height: 1.15;
}

.chichaoua-ft-portal-header p,
.chichaoua-ft-portal-security p {
    color: var(--chichaoua-muted);
    font-size: 1rem;
    line-height: 1.65;
    margin: 18px 0 0;
    max-width: 680px;
}

.chichaoua-ft-portal-link-button,
.chichaoua-ft-portal-add,
.chichaoua-ft-entry-remove {
    background: transparent;
    border: 0;
    color: var(--chichaoua-muted);
    cursor: pointer;
    font: inherit;
}

.chichaoua-ft-portal-link-button {
    border: 1px solid rgba(245, 238, 226, 0.32);
    border-radius: 4px;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    padding: 11px 16px;
    text-transform: uppercase;
    white-space: nowrap;
}

.chichaoua-ft-portal-link-button:hover,
.chichaoua-ft-portal-link-button:focus-visible,
.chichaoua-ft-portal-add:hover,
.chichaoua-ft-portal-add:focus-visible,
.chichaoua-ft-entry-remove:hover,
.chichaoua-ft-entry-remove:focus-visible {
    color: var(--chichaoua-ink);
}

.chichaoua-ft-portal-message {
    border-radius: 6px;
    margin: 0 0 24px;
    padding: 15px 18px;
}

.chichaoua-ft-portal-message--success {
    background: rgba(199, 154, 75, 0.15);
    border: 1px solid rgba(228, 197, 131, 0.4);
    color: var(--chichaoua-gold-light);
}

.chichaoua-ft-portal-message--error {
    background: rgba(138, 46, 54, 0.27);
    border: 1px solid rgba(245, 238, 226, 0.25);
    color: var(--chichaoua-ink);
}

.chichaoua-ft-portal-day {
    background: var(--chichaoua-card);
    border: 1px solid var(--chichaoua-border);
    border-radius: 10px;
    margin-bottom: 14px;
    padding: 24px;
    transition: opacity 160ms ease;
}

.chichaoua-ft-portal-day.is-disabled {
    opacity: 0.56;
}

.chichaoua-ft-portal-day-header {
    align-items: flex-end;
    border-bottom: 1px solid rgba(245, 238, 226, 0.1);
    display: flex;
    gap: 20px;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 20px;
}

.chichaoua-ft-switch-label,
.chichaoua-ft-check-label,
.chichaoua-ft-portal-label-field,
.chichaoua-ft-entry-row label {
    color: var(--chichaoua-muted);
    display: flex;
    flex-direction: column;
    font-size: 0.74rem;
    gap: 7px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.chichaoua-ft-switch-label {
    align-items: center;
    flex-direction: row;
    gap: 9px;
    margin-bottom: 15px;
    text-transform: none;
}

.chichaoua-ft-switch-label input,
.chichaoua-ft-check-label input {
    height: 1px;
    opacity: 0;
    position: absolute;
    width: 1px;
}

.chichaoua-ft-switch {
    background: rgba(245, 238, 226, 0.2);
    border-radius: 999px;
    display: inline-block;
    height: 20px;
    position: relative;
    transition: background 160ms ease;
    width: 38px;
}

.chichaoua-ft-switch::after {
    background: var(--chichaoua-muted);
    border-radius: 50%;
    content: "";
    height: 14px;
    left: 3px;
    position: absolute;
    top: 3px;
    transition: transform 160ms ease, background 160ms ease;
    width: 14px;
}

.chichaoua-ft-switch-label input:checked + .chichaoua-ft-switch {
    background: var(--chichaoua-gold);
}

.chichaoua-ft-switch-label input:checked + .chichaoua-ft-switch::after {
    background: var(--chichaoua-black);
    transform: translateX(18px);
}

.chichaoua-ft-switch-label input:focus-visible + .chichaoua-ft-switch,
.chichaoua-ft-check-label input:focus-visible + span {
    outline: 2px solid var(--chichaoua-gold-light);
    outline-offset: 3px;
}

.chichaoua-ft-portal-label-field {
    max-width: 250px;
}

.chichaoua-ft-portal input[type="text"],
.chichaoua-ft-portal input[type="url"] {
    background: #0f0d0c;
    border: 1px solid rgba(245, 238, 226, 0.2);
    border-radius: 4px;
    color: var(--chichaoua-ink);
    font: inherit;
    min-height: 44px;
    padding: 10px 12px;
    width: 100%;
}

.chichaoua-ft-portal input[type="text"]:focus,
.chichaoua-ft-portal input[type="url"]:focus {
    border-color: var(--chichaoua-gold-light);
    outline: 2px solid rgba(228, 197, 131, 0.25);
    outline-offset: 1px;
}

.chichaoua-ft-check-label {
    align-items: center;
    cursor: pointer;
    flex-direction: row;
    text-transform: none;
}

.chichaoua-ft-check-label span {
    border: 1px solid rgba(245, 238, 226, 0.24);
    border-radius: 4px;
    padding: 8px 10px;
}

.chichaoua-ft-check-label input:checked + span {
    background: rgba(199, 154, 75, 0.17);
    border-color: var(--chichaoua-gold);
    color: var(--chichaoua-gold-light);
}

.chichaoua-ft-entry-row {
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(245, 238, 226, 0.08);
    border-radius: 6px;
    margin-bottom: 12px;
    padding: 16px;
}

.chichaoua-ft-entry-row-grid {
    display: grid;
    gap: 13px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.chichaoua-ft-entry-row-wide {
    grid-column: 1 / -1;
}

.chichaoua-ft-entry-remove {
    font-size: 0.76rem;
    margin-top: 12px;
    padding: 0;
    text-decoration: underline;
    text-transform: none;
}

.chichaoua-ft-portal-add {
    color: var(--chichaoua-gold-light);
    font-size: 0.82rem;
    margin-top: 2px;
    padding: 4px 0;
}

.chichaoua-ft-portal-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 15px 22px;
    margin: 28px 0 44px;
}

.chichaoua-ft-portal-actions > span {
    color: var(--chichaoua-muted);
    font-size: 0.82rem;
}

.chichaoua-ft-button {
    border: 1px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-size: 0.78rem;
    justify-content: center;
    letter-spacing: 0.09em;
    min-height: 46px;
    padding: 11px 20px;
    text-decoration: none;
    text-transform: uppercase;
}

.chichaoua-ft-button--primary {
    background: var(--chichaoua-gold-light);
    color: var(--chichaoua-black);
}

.chichaoua-ft-button--primary:hover,
.chichaoua-ft-button--primary:focus-visible {
    background: var(--chichaoua-ink);
}

.chichaoua-ft-button--secondary {
    background: transparent;
    border-color: rgba(245, 238, 226, 0.35);
    color: var(--chichaoua-ink);
}

.chichaoua-ft-button--secondary:hover,
.chichaoua-ft-button--secondary:focus-visible {
    border-color: var(--chichaoua-gold-light);
    color: var(--chichaoua-gold-light);
}

.chichaoua-ft-portal-security {
    background: #11100e;
    border: 1px solid rgba(245, 238, 226, 0.12);
    border-radius: 8px;
    margin-top: 20px;
    padding: 26px;
}

.chichaoua-ft-copy-row {
    align-items: stretch;
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

.chichaoua-ft-copy-row input {
    flex: 1;
}

.chichaoua-ft-portal-footer {
    color: rgba(201, 192, 178, 0.65);
    font-size: 0.75rem;
    margin-top: 34px;
}

.chichaoua-ft-portal-shell--error {
    max-width: 720px;
    padding-top: 18vh;
}

.chichaoua-ft-portal-shell--error h1 {
    margin-top: 10px;
}

.chichaoua-ft-portal-shell--error p {
    color: var(--chichaoua-muted);
    margin: 18px 0 28px;
}

@media (max-width: 920px) {
    .chichaoua-ft-schedule {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .chichaoua-ft-wrap,
    .chichaoua-ft-portal-shell {
        width: calc(100% - 30px);
    }

    .chichaoua-ft-agenda {
        padding: 78px 0;
    }

    .chichaoua-ft-portal-shell {
        padding-top: 36px;
    }

    .chichaoua-ft-portal-header,
    .chichaoua-ft-portal-day-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .chichaoua-ft-portal-link-button {
        width: 100%;
    }

    .chichaoua-ft-portal-label-field {
        max-width: none;
        width: 100%;
    }

    .chichaoua-ft-entry-row-grid {
        grid-template-columns: 1fr;
    }

    .chichaoua-ft-entry-row-wide {
        grid-column: auto;
    }

    .chichaoua-ft-copy-row {
        flex-direction: column;
    }

    .chichaoua-ft-copy-row .chichaoua-ft-button {
        width: 100%;
    }
}

@media (max-width: 520px) {
    .chichaoua-ft-schedule {
        grid-template-columns: 1fr;
    }

    .chichaoua-ft-day-card {
        min-height: 0;
    }
}
