/* Demonstration sites of the Hérault offer (fictitious businesses, /exemples/<name>/).
   Each demo has its own client palette (body class demo--<name>); the top banner keeps the
   Acephal night blue and the Hérault red and yellow, and states that the business is fictitious. */

@font-face {
    font-family: "Montserrat";
    src: url("/assets/fonts/montserrat-latin-wght.woff2") format("woff2");
    font-weight: 100 900;
    font-display: swap;
}

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

body {
    margin: 0;
    font-family: "Montserrat", system-ui, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #1F2933;
    background: #FFFFFF;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

h1,
h2,
h3,
p {
    margin: 0;
}

a {
    color: inherit;
}

.wrap {
    width: min(100% - 32px, 1120px);
    margin-inline: auto;
}

.demo--restaurant {
    --demo-accent: #A85A12;   /* white text on it: 5.1:1 */
    --demo-dark: #2A1D1A;
    --demo-soft: #FBF1E6;
    --demo-title: Georgia, "Times New Roman", serif;
}

.demo--artisan {
    --demo-accent: #B44A2E;
    --demo-dark: #2F2A24;
    --demo-soft: #F6EFE6;
    --demo-title: "Montserrat", system-ui, sans-serif;
}

.demo--bien-etre {
    --demo-accent: #4A7556;   /* white text on it: 5.3:1 */
    --demo-dark: #26332B;
    --demo-soft: #EEF3EC;
    --demo-title: Georgia, "Times New Roman", serif;
}

/* ---- Acephal banner ------------------------------------------------------------ */
.demo-banner {
    background: #0B1F3B;
    color: #FFFFFF;
    font-size: 0.82rem;
}

.demo-banner .wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 16px;
    padding-block: 10px;
}

.demo-banner strong {
    color: #FCEF3C;   /* Hérault yellow on night blue: 13.8:1 */
}

.demo-banner__links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
}

.demo-banner a {
    font-weight: 600;
    text-decoration: none;
}

.demo-banner a:hover,
.demo-banner a:focus-visible {
    text-decoration: underline;
}

.demo-banner__cta {
    padding: 4px 12px;
    border-radius: 999px;
    background: #E20909;   /* Hérault red, white text: 4.9:1 */
}

/* ---- Header -------------------------------------------------------------------- */
.demo-header {
    background: #FFFFFF;
    border-bottom: 1px solid #EDE7E1;
}

.demo-header .wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-block: 14px;
}

.demo-logo {
    font-family: var(--demo-title);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--demo-dark);
    text-decoration: none;
}

.demo-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 18px;
    font-size: 0.88rem;
}

.demo-nav a {
    text-decoration: none;
    color: #4B5563;
}

.demo-nav a:hover,
.demo-nav a:focus-visible {
    color: var(--demo-accent);
}

.demo-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 22px;
    border: 2px solid var(--demo-accent);
    border-radius: 999px;
    background: var(--demo-accent);
    font-weight: 600;
    font-size: 0.92rem;
    color: #FFFFFF;
    text-decoration: none;
}

.demo-button--ghost {
    background: transparent;
    border-color: #FFFFFF;
}

.demo-button:hover,
.demo-button:focus-visible {
    filter: brightness(1.08);
}

/* ---- Hero ---------------------------------------------------------------------- */
.demo-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    color: #FFFFFF;
}

.demo-hero__img {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.demo-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.18));
}

.demo-hero .wrap {
    padding-block: 88px 72px;
}

.demo-hero h1 {
    max-width: 18ch;
    font-family: var(--demo-title);
    font-size: clamp(2rem, 7vw, 3.4rem);
    line-height: 1.08;
}

.demo-hero__sub {
    margin-top: 10px;
    font-size: clamp(1.1rem, 3.5vw, 1.5rem);
    font-weight: 600;
}

.demo-hero__lead {
    margin-top: 14px;
    max-width: 34rem;
}

.demo-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

/* ---- Highlights ------------------------------------------------------------------ */
.demo-highlights {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 16px;
    padding: 32px 0;
    margin: 0;
    list-style: none;
    text-align: center;
}

.demo-highlights svg {
    width: 34px;
    height: 34px;
    margin-inline: auto;
    fill: none;
    stroke: var(--demo-accent);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.demo-highlights strong {
    display: block;
    margin-top: 8px;
    font-size: 0.92rem;
    color: var(--demo-dark);
}

.demo-highlights span {
    font-size: 0.82rem;
    color: #6B7280;
}

@media (min-width: 768px) {
    .demo-highlights {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* ---- Sections ---------------------------------------------------------------------- */
.demo-section {
    padding-block: 56px;
}

.demo-section--soft {
    background: var(--demo-soft);
}

.demo-section h2 {
    font-family: var(--demo-title);
    font-size: clamp(1.5rem, 5vw, 2.1rem);
    color: var(--demo-dark);
}

.demo-section__intro {
    margin-top: 10px;
    max-width: 44rem;
    color: #4B5563;
}

.demo-grid {
    display: grid;
    gap: 16px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
}

@media (min-width: 768px) {
    .demo-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.demo-item {
    padding: 22px;
    border-radius: 10px;
    background: #FFFFFF;
    box-shadow: 0 14px 32px -24px rgba(0, 0, 0, 0.5);
}

.demo-item h3 {
    font-size: 1.05rem;
    color: var(--demo-dark);
}

.demo-item p {
    margin-top: 6px;
    font-size: 0.92rem;
    color: #4B5563;
}

.demo-item__price {
    display: inline-block;
    margin-top: 10px;
    font-weight: 700;
    color: var(--demo-accent);
}

.demo-split {
    display: grid;
    gap: 28px;
    align-items: center;
}

@media (min-width: 900px) {
    .demo-split {
        grid-template-columns: 1fr 1fr;
    }
}

.demo-split img {
    width: 100%;
    border-radius: 12px;
}

.demo-list {
    margin: 16px 0 0;
    padding-left: 1.2rem;
    color: #374151;
}

/* Option shown in the demo (booking, quote, gallery): explained, never a working form. */
.demo-option {
    margin-top: 28px;
    padding: 20px 22px;
    border: 2px dashed var(--demo-accent);
    border-radius: 10px;
    background: #FFFFFF;
}

.demo-option strong {
    color: var(--demo-dark);
}

.demo-option p + p {
    margin-top: 6px;
    font-size: 0.9rem;
    color: #4B5563;
}

.demo-info {
    display: grid;
    gap: 16px;
    margin-top: 24px;
}

@media (min-width: 768px) {
    .demo-info {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.demo-info div {
    padding: 18px;
    border-left: 4px solid var(--demo-accent);
    background: #FFFFFF;
}

.demo-info h3 {
    font-size: 0.95rem;
    color: var(--demo-dark);
}

.demo-info p {
    margin-top: 4px;
    font-size: 0.9rem;
    color: #4B5563;
}

/* ---- Footer ---------------------------------------------------------------------- */
.demo-footer {
    padding-block: 28px;
    background: var(--demo-dark);
    color: #E5E7EB;
    font-size: 0.85rem;
}

.demo-footer .wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
}

.demo-footer a {
    color: #FFFFFF;
    font-weight: 600;
}
