/* Artisan FM — socle identité lumineuse (phase 1)
   Chargé sur les pages migrées. Les pages non migrées gardent site.css. */

@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&family=Source+Sans+3:ital,wght@0,400;0,500;0,600;1,400&display=swap");

:root {
    --blanc: #ffffff;
    --glacier: #f1faff;
    --pale: #d9f0ff;
    --azur: #8bcff4;
    --azur-vif: #5eb8e8;
    --profond: #244b69;
    --profond-soft: #3d6a8c;
    --brume: rgba(139, 207, 244, 0.28);
    --verre: rgba(255, 255, 255, 0.55);
    --verre-bord: rgba(139, 207, 244, 0.45);
    --ombre-douce: 0 18px 50px rgba(36, 75, 105, 0.08);
    --focus: #3d8eb8;
    --mesure: 38rem;
    --page: 72rem;
    --font: "Source Sans 3", "Segoe UI", sans-serif;
    --display: "Outfit", "Segoe UI", sans-serif;
    --rayon: 1.25rem;
    --header-h: 5.5rem;
}

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

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

body.theme-lumineux {
    margin: 0;
    min-height: 100vh;
    color: var(--profond);
    font-family: var(--font);
    font-size: 1.0625rem;
    line-height: 1.65;
    background:
        radial-gradient(120% 80% at 85% -10%, rgba(139, 207, 244, 0.35) 0%, transparent 55%),
        radial-gradient(90% 60% at -5% 40%, rgba(217, 240, 255, 0.9) 0%, transparent 50%),
        linear-gradient(180deg, var(--glacier) 0%, var(--blanc) 42%, var(--glacier) 100%);
    background-attachment: fixed;
}

body.theme-lumineux a {
    color: var(--azur-vif);
}

body.theme-lumineux a:hover {
    color: var(--profond);
}

body.theme-lumineux .site-nav a,
body.theme-lumineux .site-nav a:hover {
    color: var(--profond);
}

body.theme-lumineux .site-nav a[aria-current="page"],
body.theme-lumineux .site-nav a[aria-current="page"]:hover {
    color: #1e4460;
}

body.theme-lumineux :focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 3px;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -4rem;
    z-index: 100;
    padding: 0.5rem 0.85rem;
    border-radius: 0.5rem;
    background: var(--profond);
    color: var(--blanc);
    text-decoration: none;
}

.skip-link:focus {
    top: 1rem;
}

/* ——— Header / nav ——— */

body.theme-lumineux .site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1.5rem;
    width: 100%;
    margin: 0;
    padding: 0.85rem max(1rem, calc((100% - var(--page)) / 2));
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent;
}

body.theme-lumineux .site-header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    pointer-events: none;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--pale) 18%,
        var(--azur) 50%,
        var(--pale) 82%,
        transparent 100%
    );
    opacity: 0.85;
    box-shadow: none;
}

body.theme-lumineux .brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    line-height: 0;
    min-width: 0;
}

body.theme-lumineux .brand-logo {
    display: block;
    width: clamp(12rem, 36vw, 19rem);
    height: auto;
    max-width: min(340px, 68vw);
    max-height: clamp(3rem, 9vw, 4.4rem);
    object-fit: contain;
    object-position: left center;
}

body.theme-lumineux .nav-toggle {
    display: none;
    background: var(--verre);
    border: 1px solid var(--verre-bord);
    border-radius: 999px;
    padding: 0.45rem 1rem;
    font: inherit;
    color: var(--profond);
    cursor: pointer;
    backdrop-filter: blur(8px);
}

body.theme-lumineux .site-nav {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 1.15rem 1.45rem;
    padding: 0.25rem 0;
    isolation: auto;
    overflow: visible;
    flex: 1 1 12rem;
    min-width: min(100%, 18rem);
    max-width: 100%;
}

body.theme-lumineux .site-nav::before {
    display: none;
}

/* Navigation texte — épurée, sans pastilles */
body.theme-lumineux .site-nav a {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    color: var(--profond);
    text-decoration: none;
    font-family: var(--display);
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1.25;
    white-space: nowrap;
    padding: 0.2rem 0.05rem;
    border: none;
    border-radius: 0;
    border-bottom: 2px solid transparent;
    background: none;
    box-shadow: none;
    transition: color 0.2s ease, border-color 0.2s ease;
}

body.theme-lumineux .site-nav a:hover {
    color: var(--azur-vif);
    border-bottom-color: rgba(139, 207, 244, 0.55);
    background: none;
    box-shadow: none;
    transform: none;
}

body.theme-lumineux .site-nav a[aria-current="page"] {
    color: #1e4460;
    border-bottom-color: rgba(62, 142, 184, 0.95);
    background: none;
    box-shadow: none;
}

body.theme-lumineux .site-nav a[aria-current="page"]::after {
    content: none;
}

body.theme-lumineux .site-footer {
    width: min(var(--page), calc(100% - 2rem));
    margin: 0 auto;
    padding: 1.35rem 0 1.6rem;
    border-top: 1px solid rgba(139, 207, 244, 0.28);
    color: var(--profond-soft);
    font-family: var(--display);
    font-size: 0.88rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-align: center;
}

body.theme-lumineux .site-footer p {
    margin: 0;
}

body.theme-lumineux main#contenu.measure,
body.theme-lumineux .measure {
    width: min(40rem, calc(100% - 2rem));
    margin-left: auto;
    margin-right: auto;
}

body.theme-lumineux main#contenu {
    width: min(var(--page), calc(100% - 2rem));
    margin: 0 auto;
    padding: 1.75rem 0 3.5rem;
}

body.theme-lumineux .temp {
    color: var(--profond-soft);
    font-style: italic;
}

body.theme-lumineux .slot-missing {
    margin: 0;
    padding: 1.1rem 1.15rem;
    border: 1px dashed rgba(139, 207, 244, 0.55);
    border-radius: var(--rayon);
    background: rgba(241, 250, 255, 0.75);
    color: var(--profond-soft);
}

body.theme-lumineux .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.7rem 1.35rem;
    border-radius: 999px;
    font-family: var(--display);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border: 1px solid transparent;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

body.theme-lumineux .btn-primary {
    background: linear-gradient(135deg, #6ec4ef 0%, #3d8eb8 100%);
    color: var(--blanc);
    box-shadow: 0 10px 28px rgba(62, 142, 184, 0.28);
}

body.theme-lumineux .btn-primary:hover {
    color: var(--blanc);
    transform: translateY(-1px);
    box-shadow: 0 14px 32px rgba(62, 142, 184, 0.36);
}

body.theme-lumineux .btn-ghost {
    background: var(--verre);
    border-color: var(--verre-bord);
    color: var(--profond);
    backdrop-filter: blur(8px);
}

body.theme-lumineux .btn-ghost:hover {
    background: rgba(255, 255, 255, 0.88);
    color: var(--profond);
}

/* Ordinateur étroit / tablette : menu sous le logo si besoin */
@media (max-width: 1200px) {
    body.theme-lumineux .site-nav {
        flex: 1 1 100%;
        justify-content: center;
        gap: 0.95rem 1.25rem;
        padding-top: 0.15rem;
    }

    body.theme-lumineux .site-nav a {
        font-size: 0.88rem;
    }

    body.theme-lumineux .brand-logo {
        width: clamp(10.5rem, 32vw, 16rem);
        max-height: clamp(2.75rem, 8vw, 3.8rem);
    }
}

/* Cellulaire : hamburger + menu texte déroulant */
@media (max-width: 820px) {
    body.theme-lumineux .nav-toggle {
        display: inline-flex;
    }

    body.theme-lumineux .site-nav {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0.35rem;
        padding: 0.85rem 1rem 1rem;
        margin-top: 0.35rem;
        border-radius: var(--rayon);
        background: rgba(255, 255, 255, 0.92);
        border: 1px solid var(--verre-bord);
        box-shadow: var(--ombre-douce);
    }

    body.theme-lumineux .site-nav.is-open {
        display: flex;
    }

    body.theme-lumineux .site-nav a {
        width: 100%;
        justify-content: center;
        white-space: normal;
        text-align: center;
        padding: 0.55rem 0.35rem;
        transform: none;
    }

    body.theme-lumineux .site-nav a:hover {
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.theme-lumineux .site-nav a {
        transition: none;
    }

    body.theme-lumineux .site-nav a:hover {
        transform: none;
    }
}
