/* Charte WeClain (reprise de disc.weclain.com, elle-même relevée sur weclain.com le 03/10/2026).
   Navy #1A2B48, orange #FF7F32, fond #F8FAFC, titres Montserrat, texte Inter, notes Caveat.
   Adaptée à westoke.weclain.com : le filet sous l'en-tête prend les trois couleurs d'une flamme (ambre, orange, rouge).
   Les blocs ont une bordure pointillée décalée et inclinée, posée derrière comme un papier collé. */

:root {
    --c-ambre: #F59E0B; --c-orange: #FF7F32; --c-rouge: #DC2626;
    --stripe: linear-gradient(90deg, var(--c-ambre) 0 33.3%, var(--c-orange) 0 66.6%, var(--c-rouge) 0 100%);
    --color-blue-dark: #1A2B48;
    --color-orange-accent: #FF7F32;
    --color-orange-hover: #e06c27;
    --color-orange-text: #C2410C;
    --color-green-text: #15803D;
    --color-red-text: #B42318;
    --color-bg-light: #F8FAFC;
    --color-text-main: #334155;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
    --radius-bento: 7px;
    --radius-btn: 7px;
    --easing-standard: cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-base: 0 4px 24px rgba(26, 43, 72, 0.04);
    --shadow-hover: 0 16px 40px rgba(26, 43, 72, 0.08);
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--color-text-main);
    background-color: var(--color-bg-light);
    overflow-x: clip;
}

/* Quadrillage léger en fond, légèrement penché */
body::before {
    content: "";
    position: fixed;
    inset: -15%;
    z-index: -1;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(26, 43, 72, 0.032) 1px, transparent 1px),
        linear-gradient(90deg, rgba(26, 43, 72, 0.032) 1px, transparent 1px);
    background-size: 44px 44px;
    transform: rotate(-1deg);
}

h1, h2, h3 {
    font-family: var(--font-heading);
    color: var(--color-blue-dark);
    line-height: 1.15;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

/* Surlignage jaune, comme sur weclain.com */
mark {
    background: #fef08a;
    color: var(--color-blue-dark);
    padding: 0 0.25em;
    border-radius: 4px;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

/* Liens du texte : soulignés en pointillé */
.wc-link {
    color: var(--color-blue-dark);
    text-decoration: underline dotted;
    text-decoration-color: rgba(26, 43, 72, 0.35);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}
.wc-link:hover { color: var(--color-orange-text); text-decoration-color: var(--color-orange-accent); }

/* Titre de section avec le filet de la flamme dessous */
.section-title {
    position: relative;
    display: inline-block;
    padding-bottom: 0.6rem;
    margin-bottom: 1.5rem;
}
.section-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 33%;
    max-width: 140px;
    height: 4px;
    background: var(--stripe);
    border-radius: 2px;
}

/* Note manuscrite */
.hand { font-family: 'Caveat', cursive; }

/* ---------- Blocs : bordure pointillée décalée sous la carte ---------- */
.bento-card {
    position: relative;
    isolation: isolate;
    --tilt: 1.2deg;
    --dash: rgba(26, 43, 72, 0.18);
    --card-bg: #fff;
    border-radius: var(--radius-bento);
    box-shadow: var(--shadow-base);
}
.bento-card:nth-child(2n) { --tilt: -1.5deg; }
.bento-card:nth-child(3n) { --tilt: 1.8deg; }
.bento-card:nth-child(4n) { --tilt: -0.9deg; }
.bento-card:nth-child(5n) { --tilt: 1.4deg; }
.bento-card::before,
.bento-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    z-index: -1;
    pointer-events: none;
}
.bento-card::before { transform: translate(7px, 7px) rotate(var(--tilt)); border: 2px dashed var(--dash); }
.bento-card::after { background: var(--card-bg); }
.bento-card--highlight { --card-bg: #FFF3E8; --dash: rgba(255, 127, 50, 0.3); }
.bento-card--accent { --card-bg: #FBF9FE; --dash: rgba(107, 33, 168, 0.22); }
.bento-card--dark { --card-bg: #1A2B48; --dash: rgba(255, 127, 50, 0.5); color: #E2E8F0; }
.bento-card--dark :is(h2, h3) { color: #fff; }

/* ---------- Boutons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8125rem 1.5rem;
    border: 2px solid transparent;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-btn);
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}
.btn--lg { padding: 1rem 2rem; font-size: 1.125rem; font-weight: 700; }
.btn--primary { background-color: var(--color-orange-accent); border-color: var(--color-orange-hover); color: #fff; }
.btn--primary:hover { background-color: var(--color-orange-hover); }
.btn--secondary { background: transparent; color: var(--color-blue-dark); border-color: var(--color-blue-dark); }
.btn--secondary:hover { background-color: rgba(26, 43, 72, 0.06); }

/* ---------- Pastille ---------- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background-color: rgba(255, 127, 50, 0.12);
    color: var(--color-orange-text);
    padding: 0.25rem 0.75rem;
    border-radius: 99px;
    font-size: 0.8rem;
    font-weight: 600;
}
.badge--live { background: linear-gradient(rgba(21, 128, 61, 0.1), rgba(21, 128, 61, 0.1)), #fff; color: var(--color-green-text); }

/* ---------- En-tête ---------- */
.header { position: sticky; top: 0; z-index: 999; }
.header::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: var(--color-bg-light);
    z-index: 1;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.header--scrolled::before {
    background-color: rgba(248, 250, 252, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 24px rgba(26, 43, 72, 0.06);
}
.header__inner {
    position: relative;
    z-index: 2;
    max-width: 64rem;
    margin: 0 auto;
    padding: 1.1rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.header__logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: -0.02em;
    color: var(--color-blue-dark);
    text-decoration: none;
}
.header__nav { display: flex; align-items: center; gap: 1.5rem; }
.header__nav a {
    text-decoration: none;
    color: var(--color-text-main);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}
.header__nav a:hover { color: var(--color-orange-text); }
.header__nav a.btn { color: #fff; padding: 0.5rem 1rem; font-size: 0.9rem; }
.header__toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}
.header__toggle span { width: 100%; height: 2px; background-color: var(--color-blue-dark); }

/* Menu mobile : zone de toucher d'au moins 48 px, filet entre les liens */
@media (max-width: 640px) {
    .header__toggle { display: flex; }
    .header__nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 0.5rem 1rem 1.25rem;
        background: var(--color-bg-light);
        border-bottom: 1px solid #E2E8F0;
        box-shadow: 0 12px 24px rgba(26, 43, 72, 0.06);
    }
    .header__nav.is-open { display: flex; }
    .header__nav a:not(.btn) { display: flex; align-items: center; width: 100%; min-height: 3rem; font-size: 1.05rem; border-bottom: 1px solid #E2E8F0; }
    .header__nav a.btn { margin-top: 1.25rem; width: 100%; min-height: 3rem; }
}

/* Filet de la flamme sous l'en-tête et au-dessus du pied de page */
.header::after, .footer::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--stripe);
    z-index: 2;
}
.header::after { bottom: 0; }
.footer::before { top: 0; }

/* ---------- Pied de page : tout centré ---------- */
.footer { position: relative; padding: 2rem 0; }
.footer__inner {
    max-width: 64rem;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    text-align: center;
    font-size: 0.875rem;
}
.footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem 1.25rem; }

/* ---------- Bandes de couleur pleine largeur (pour casser le blanc) ---------- */
.band { position: relative; isolation: isolate; }
.band::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
    background: var(--band-bg);
    z-index: -1;
}
.band--haze { --band-bg: linear-gradient(180deg, #EAEFF6 0%, rgba(234, 239, 246, 0) 100%); }
.band--mist { --band-bg: #EAEFF6; }
.band--sun { --band-bg: linear-gradient(0deg, #FFF3E8 0%, rgba(255, 243, 232, 0) 100%); }

/* Scotch violet translucide, comme sur la photo de l'accueil de weclain.com */
.tape {
    position: absolute;
    z-index: 3;
    width: 76px;
    height: 26px;
    background: rgba(167, 139, 250, 0.28);
    box-shadow: 0 1px 2px rgba(26, 43, 72, 0.12), inset 0 0 0 1px rgba(255, 255, 255, 0.3);
    pointer-events: none;
}
.tape--top-right { top: -13px; right: 16px; transform: rotate(2deg); }
.tape--top-left { top: -13px; left: 16px; transform: rotate(-3deg); }

/* ---------- Note « post-it » ---------- */
.post-it {
    position: relative;
    background: #fff;
    border-radius: var(--radius-bento);
    padding: 1.75rem 1.5rem 1.25rem;
    box-shadow: 0 8px 24px rgba(26, 43, 72, 0.1);
    transform: rotate(-0.6deg);
}
.post-it__etiquette {
    position: absolute;
    top: -16px;
    left: 20px;
    padding: 0.1rem 0.9rem;
    border-radius: 4px;
    background: #FEF08A;
    color: var(--color-blue-dark);
    font-family: 'Caveat', cursive;
    font-size: 1.5rem;
    line-height: 1.3;
    transform: rotate(-2deg);
    box-shadow: 0 2px 6px rgba(26, 43, 72, 0.12);
}

/* ---------- Accessibilité ---------- */
a:focus-visible, button:focus-visible {
    outline: 3px solid var(--color-orange-accent);
    outline-offset: 2px;
}
[id] { scroll-margin-top: 90px; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .bento-card, .btn { transition: none; }
}
