/* ============================================================
   WOOPETS VILLAGE — page de présentation (/woopets-village/)
   Feuille autonome, chargée avec site-footer.css (demo-core.css
   n'est PAS chargé ici). Couleurs et polices : la source unique
   public/css/woopets-tokens.css, recopiée dans la page.
   ============================================================ */

/* Couleurs et polices : public/css/woopets-tokens.css, recopiée dans la page
   (layout/village_landing.twig). */

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--c-bg-card);
    color: var(--c-text);
    font-family: var(--f-body);
    font-size: 16px;
    line-height: 1.65;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-underline-offset: 3px; }

:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 2px;
    box-shadow: 0 0 0 5px var(--c-primary);
}

.vl-skip {
    position: fixed;
    z-index: 9999;
    left: 1rem;
    top: 1rem;
    padding: 0.7rem 1rem;
    background: var(--c-primary);
    color: #fff;
    border-radius: var(--r-md);
    text-decoration: none;
    font-weight: 700;
    transform: translateY(-200%);
}

.vl-skip:focus { transform: none; }

.vl-shell {
    width: min(100% - 2rem, 1100px);
    margin-inline: auto;
}

.vl-narrow { max-width: 760px; }

/* ---------- En-tête ---------- */

.vl-header {
    background: #fff;
    border-bottom: 1px solid var(--c-border);
}

.vl-header-inner {
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.vl-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 44px;
    text-decoration: none;
    line-height: 1;
}

.vl-brand svg { flex: none; }

/* Logo Figé — badge AI canonique : hex littéraux, jamais tokenisés. */
.vl-brand-ai {
    padding: 3px 8px;
    background: #184f52;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    border-radius: 6px;
}

.vl-header-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 0.5rem;
    font-weight: 600;
    color: var(--c-primary);
    text-decoration: none;
}

.vl-header-link:hover { text-decoration: underline; }

/* ---------- Titres ---------- */

h1,
h2,
h3 {
    font-family: var(--f-display);
    font-weight: 600;
    color: var(--c-primary);
    line-height: 1.15;
    margin: 0;
}

h1 { font-size: clamp(2.3rem, 9vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 5vw, 2.1rem); margin-bottom: 1.5rem; }
h3 { font-size: 1.2rem; margin-bottom: 0.35rem; }

p { margin: 0; }

/* ---------- Boutons ---------- */

.vl-cta-row { margin-top: 1.5rem; }

.vl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0.85rem 1.6rem;
    border-radius: var(--r-md);
    font-weight: 700;
    font-size: 1.05rem;
    text-decoration: none;
    transition: background-color 150ms ease-out, transform 150ms ease-out;
}

/* Le corail est UNIQUE sur la page : le bouton d'ouverture. Texte sombre (contraste AA). */
.vl-btn--coral {
    background: var(--c-accent-vivid);
    color: var(--c-on-vivid);
    box-shadow: var(--shadow-md);
}

.vl-btn--coral:hover { background: var(--c-accent-vivid-hover); }

.vl-btn--teal {
    background: var(--c-primary);
    color: #fff;
}

.vl-btn--teal:hover { background: var(--c-primary-hover); }

.vl-btn:active { transform: translateY(1px); }

/* ---------- Ouverture ---------- */

.vl-hero {
    background: var(--c-bg);
    padding: 2rem 0 2.5rem;
}

.vl-hero-grid {
    display: grid;
    gap: 1.75rem;
}

.vl-kicker {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--c-text-secondary);
    margin-bottom: 0.6rem;
}

.vl-lead {
    margin-top: 1rem;
    font-size: 1.2rem;
    line-height: 1.5;
    color: var(--c-text);
    max-width: 34ch;
}

.vl-hero-figure {
    margin: 0;
    border-radius: var(--r-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: var(--c-bg-warm);
}

.vl-hero-figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.vl-hero .vl-cta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1.25rem;
}

/* Lien vers le film : discret, teal — le corail reste au seul bouton d'entrée. */
.vl-film-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 44px;
    padding: 0 0.25rem;
    font-weight: 600;
    color: var(--c-primary);
    text-decoration: none;
}

.vl-film-link:hover { text-decoration: underline; }

.vl-hero-note {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--c-text-secondary);
}

/* ---------- Le film (YouTube, chargé au clic) ---------- */

.vl-film {
    padding: 3rem 0 0;
    scroll-margin-top: 1rem;
}

.vl-film-head { margin-bottom: 1.25rem; }

.vl-film-head h2 { margin-bottom: 0.4rem; }

.vl-film-head p {
    color: var(--c-text-secondary);
    max-width: 52ch;
}

.vl-film-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: var(--r-xl);
    overflow: hidden;
    background: var(--c-primary);
    box-shadow: var(--shadow-lg);
}

.vl-film-play {
    position: absolute;
    inset: 0;
    display: block;
    color: var(--c-primary);
    text-decoration: none;
}

.vl-film-play img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* Un voile teal très léger, pour que le bouton se détache sur toutes les images. */
.vl-film-play::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(24, 79, 82, 0) 45%, rgba(18, 62, 62, 0.45) 100%);
}

.vl-film-button {
    position: absolute;
    z-index: 1;
    left: 50%;
    top: 50%;
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    margin: -38px 0 0 -38px;
    border-radius: 50%;
    background: #fff;
    box-shadow: var(--shadow-lg);
    transition: transform 200ms cubic-bezier(0.16, 1, 0.3, 1);
}

.vl-film-button svg { margin-left: 4px; }

.vl-film-label {
    position: absolute;
    z-index: 1;
    left: 50%;
    bottom: 1rem;
    transform: translateX(-50%);
    padding: 0.45rem 1rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--c-primary);
    font-weight: 700;
    font-size: 0.95rem;
    white-space: nowrap;
}

.vl-film-play:hover img { transform: scale(1.02); }
.vl-film-play:hover .vl-film-button { transform: scale(1.06); }

.vl-film-play:focus-visible { outline-offset: -6px; }

.vl-film-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.vl-film-note {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: var(--c-text-secondary);
}

/* ---------- Compteur du jour ---------- */

.vl-counter {
    padding: 1.5rem 0 0;
    text-align: center;
}

.vl-counter[hidden] { display: none; }

.vl-counter .vl-shell {
    padding: 1rem;
    background: var(--c-primary-light);
    border-radius: var(--r-lg);
}

.vl-counter-label {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--c-primary);
}

.vl-counter-text {
    margin-top: 0.15rem;
    font-family: var(--f-display);
    font-size: 1.25rem;
    color: var(--c-text);
}

/* ---------- Sections ---------- */

.vl-section { padding: 3rem 0; }

.vl-section--tint { background: var(--c-bg); }

/* ---------- Ce qu'on y fait : une image du film, un texte ---------- */

.vl-stories {
    display: grid;
    gap: 3rem;
}

.vl-story {
    display: grid;
    gap: 1.25rem;
    align-items: center;
}

.vl-story-media {
    display: grid;
    gap: 0.6rem;
}

.vl-story-media img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: var(--r-lg);
    background: var(--c-bg-warm);
    box-shadow: var(--shadow-md);
}

/* Deux images : la première en grand, la seconde en médaillon qui la chevauche en bas à droite.
   Trois : la première en grand, les deux autres dessous. */
.vl-story--pair .vl-story-media {
    position: relative;
    display: block;
    padding-bottom: 14%;
}

.vl-story--pair .vl-story-media img:first-child { width: 86%; }

.vl-story--pair .vl-story-media img:nth-child(2) {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 46%;
    border: 4px solid #fff;
    box-shadow: var(--shadow-lg);
}

.vl-story--trio .vl-story-media { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.vl-story--trio .vl-story-media img:first-child { grid-column: 1 / -1; }

.vl-story-copy h3 {
    font-size: clamp(1.4rem, 4.2vw, 1.75rem);
    margin-bottom: 0.6rem;
}

.vl-story-copy p {
    font-size: 1.05rem;
    color: var(--c-text-secondary);
    max-width: 46ch;
}

.vl-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1rem;
}

.vl-step {
    padding: 1.4rem;
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--r-lg);
}

.vl-step p { color: var(--c-text-secondary); }

.vl-step-num {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    margin-bottom: 0.8rem;
    border-radius: 50%;
    background: var(--c-accent-soft);
    color: var(--c-text);
    font-family: var(--f-display);
    font-size: 1.15rem;
}

/* ---------- Questions fréquentes ---------- */

.vl-faq details {
    border-bottom: 1px solid var(--c-border);
}

.vl-faq summary {
    display: flex;
    align-items: center;
    min-height: 56px;
    padding: 0.6rem 0;
    font-weight: 600;
    cursor: pointer;
}

.vl-faq details p {
    padding: 0 0 1.1rem;
    color: var(--c-text-secondary);
}

/* ---------- Rappel du bas ---------- */

.vl-bottom {
    padding: 0 0 3rem;
    background: var(--c-bg-warm);
    text-align: center;
}

/* La place au soir, en bandeau : aucun texte posé dessus (le contraste reste celui du fond). */
.vl-bottom-media img {
    width: 100%;
    height: clamp(180px, 34vw, 380px);
    object-fit: cover;
    object-position: 50% 62%;
}

.vl-bottom-inner { padding-top: 2.5rem; }

.vl-bottom h2 { margin-bottom: 0.5rem; }

.vl-bottom p { color: var(--c-text-secondary); }

/* ---------- Tablette et ordinateur ---------- */

@media (min-width: 768px) {
    .vl-hero { padding: 3.5rem 0 4rem; }

    .vl-hero-grid {
        grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
        align-items: center;
        gap: 2.5rem;
    }

    .vl-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .vl-section { padding: 4rem 0; }
    .vl-film { padding-top: 4rem; }
    .vl-bottom { padding: 0 0 4rem; }
    .vl-bottom-inner { padding-top: 3rem; }
}

/* Image et texte côte à côte, en alternance ; le texte reste de son côté de la page. */
@media (min-width: 900px) {
    .vl-stories { gap: 4.5rem; }

    .vl-story {
        grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
        gap: 3rem;
    }

    .vl-story:nth-child(even) { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
    .vl-story:nth-child(even) .vl-story-media { order: 2; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .vl-btn,
    .vl-film-play img,
    .vl-film-button { transition: none; }
}
