/* ============================================================
   Malley Lumières — Charte officielle V6
   Variables de couleurs, typographies, layouts globaux.
   Chargé sur toutes les pages.
   ============================================================ */

:root {
    /* Couleurs officielles charte V6 (validées Couleurs_HEX_Malley_Lumieres.txt) */
    --ink: #363d43;        /* Gris Anthracite (logo principal) */
    --grey: #a7a2a0;       /* Blanc Aluminium (secondaire) */
    --white: #ffffff;
    --grey-light: #ededed; /* Noir 10 % */
    --yellow: #fdf6b7;     /* Jaune charte */
    --turquoise: #74c5c4;  /* Turquoise charte */
    --cyan: #eaf6fe;       /* Cyan 10 % */

    /* Variations dérivées (non-officielles, usage layout) */
    --yellow-soft: #fefcde;
    --turquoise-soft: #c5e8e6;
    --green: #5dc07a;
}

/* ============================================================
   Fonts officielles self-hosted (charte V6)
   Lato (toutes graisses) + Euclid Flex Bold (réservé wordmark logo)
   ============================================================ */
@font-face {
    font-family: 'Lato'; font-style: normal; font-weight: 100;
    font-display: swap;
    src: url('../fonts/lato/Lato-Thin.ttf') format('truetype');
}
@font-face {
    font-family: 'Lato'; font-style: italic; font-weight: 100;
    font-display: swap;
    src: url('../fonts/lato/Lato-ThinItalic.ttf') format('truetype');
}
@font-face {
    font-family: 'Lato'; font-style: normal; font-weight: 300;
    font-display: swap;
    src: url('../fonts/lato/Lato-Light.ttf') format('truetype');
}
@font-face {
    font-family: 'Lato'; font-style: italic; font-weight: 300;
    font-display: swap;
    src: url('../fonts/lato/Lato-LightItalic.ttf') format('truetype');
}
@font-face {
    font-family: 'Lato'; font-style: normal; font-weight: 400;
    font-display: swap;
    src: url('../fonts/lato/Lato-Regular.ttf') format('truetype');
}
@font-face {
    font-family: 'Lato'; font-style: italic; font-weight: 400;
    font-display: swap;
    src: url('../fonts/lato/Lato-Italic.ttf') format('truetype');
}
@font-face {
    font-family: 'Lato'; font-style: normal; font-weight: 700;
    font-display: swap;
    src: url('../fonts/lato/Lato-Bold.ttf') format('truetype');
}
@font-face {
    font-family: 'Lato'; font-style: italic; font-weight: 700;
    font-display: swap;
    src: url('../fonts/lato/Lato-BoldItalic.ttf') format('truetype');
}
@font-face {
    font-family: 'Lato'; font-style: normal; font-weight: 900;
    font-display: swap;
    src: url('../fonts/lato/Lato-Black.ttf') format('truetype');
}
@font-face {
    font-family: 'Lato'; font-style: italic; font-weight: 900;
    font-display: swap;
    src: url('../fonts/lato/Lato-BlackItalic.ttf') format('truetype');
}
@font-face {
    font-family: 'Euclid Flex'; font-style: normal; font-weight: 700;
    font-display: swap;
    src: url('../fonts/euclid/EuclidFlex-Bold.otf') format('opentype');
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Lato', system-ui, -apple-system, sans-serif;
    color: var(--ink);
    background: var(--white);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
.serif {
    font-family: 'DM Serif Display', Georgia, serif;
    font-style: italic;
    font-weight: 400;
}
a { color: inherit; }

/* Container */
.container { max-width: 1320px; margin: 0 auto; padding: 0 60px; }
@media (max-width: 768px) { .container { padding: 0 20px; } }

/* Skip link accessibilité */
.skip-link.screen-reader-text {
    position: absolute; left: -9999px; top: auto;
    width: 1px; height: 1px; overflow: hidden;
}
.skip-link:focus {
    position: fixed; top: 8px; left: 8px;
    width: auto; height: auto; padding: 12px 18px;
    background: var(--ink); color: var(--white);
    z-index: 10000; text-decoration: none; font-weight: 700;
}

/* ============ HEADER GLOBAL ============ */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--grey-light);
}
.site-header__inner {
    max-width: 1320px; margin: 0 auto;
    padding: 18px 60px;
    display: flex; align-items: center; justify-content: space-between;
    gap: 24px;
}
.site-logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.site-logo__img { height: 50px; width: auto; display: block; }

.main-navigation { display: flex; }
.primary-menu {
    list-style: none; display: flex; gap: 30px;
    margin: 0; padding: 0;
}
.primary-menu li { list-style: none; }
.primary-menu a {
    color: var(--ink); text-decoration: none;
    font-size: 15px; font-weight: 600;
    transition: color 0.2s;
}
.primary-menu a:hover,
.primary-menu .current-menu-item > a,
.primary-menu .current-menu-parent > a {
    color: var(--turquoise);
}

.site-header__actions { display: flex; align-items: center; gap: 14px; }
.status-pill {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 13px; color: var(--ink);
    padding: 8px 16px;
    background: var(--grey-light); border-radius: 100px;
    font-weight: 600;
}
.status-pill--open::before {
    content: ""; width: 8px; height: 8px; border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 4px rgba(93,192,122,0.25);
    animation: malley-pulse 2.5s infinite;
}
@keyframes malley-pulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(93,192,122,0.25); }
    50% { box-shadow: 0 0 0 9px rgba(93,192,122,0.08); }
}
.cta-reservation {
    position: relative;
    background: var(--ink); color: var(--white);
    text-decoration: none; padding: 11px 22px;
    font-weight: 700; font-size: 13px;
    display: inline-flex; align-items: center; gap: 8px;
    border: 2px solid var(--ink);
    /* Bulle organique inspirée du halo luciole — morph subtil */
    border-radius: 62% 38% 55% 45% / 52% 60% 40% 48%;
    transition: background 0.25s, border-color 0.25s, transform 0.25s, border-radius 0.6s ease;
    animation: malley-bubble-morph 7s ease-in-out infinite;
    isolation: isolate;
}
/* Halo jaune pulsant — rappel direct du halo luciole */
.cta-reservation::after {
    content: "";
    position: absolute;
    inset: -8px;
    border-radius: inherit;
    background: radial-gradient(ellipse, rgba(253, 246, 183, 0.65) 0%, rgba(253, 246, 183, 0) 70%);
    filter: blur(6px);
    z-index: -1;
    pointer-events: none;
    animation: malley-bubble-glow 2.4s ease-in-out infinite;
}
.cta-reservation::before {
    content: ""; display: inline-block; width: 16px; height: 16px;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%23fdf6b7' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><rect x='6' y='10' width='36' height='32' rx='3'/><path d='M6 18h36M16 6v8M32 6v8'/></svg>") no-repeat center;
    background-size: contain;
    flex-shrink: 0;
}
.cta-reservation:hover {
    background: var(--turquoise); border-color: var(--turquoise);
    transform: translateY(-2px) scale(1.03);
}
.cta-reservation:hover::after {
    animation-duration: 1.4s;
    background: radial-gradient(ellipse, rgba(116, 197, 196, 0.7) 0%, rgba(116, 197, 196, 0) 70%);
}
@keyframes malley-bubble-morph {
    0%, 100% { border-radius: 62% 38% 55% 45% / 52% 60% 40% 48%; }
    33%      { border-radius: 48% 52% 42% 58% / 60% 45% 55% 40%; }
    66%      { border-radius: 55% 45% 60% 40% / 45% 58% 42% 55%; }
}
@keyframes malley-bubble-glow {
    0%, 100% { opacity: 0.55; transform: scale(1); }
    50%      { opacity: 1;    transform: scale(1.08); }
}
@media (prefers-reduced-motion: reduce) {
    .cta-reservation,
    .cta-reservation::after { animation: none; }
}

/* Menu toggle (mobile) */
.menu-toggle {
    display: none;
    width: 44px; height: 44px;
    background: var(--grey-light);
    border: 0; cursor: pointer;
    border-radius: 12px;
    padding: 0;
    align-items: center; justify-content: center;
    transition: background 0.2s;
}
.menu-toggle:hover,
.menu-toggle:focus-visible {
    background: var(--turquoise-soft);
    outline: 2px solid var(--turquoise);
    outline-offset: 2px;
}
.menu-toggle__bars {
    display: block; width: 22px; height: 16px; position: relative;
}
.menu-toggle__bars span {
    position: absolute; left: 0; width: 100%; height: 3px;
    background: var(--ink); border-radius: 2px;
    transition: transform 0.25s, opacity 0.25s;
}
.menu-toggle__bars span:nth-child(1) { top: 0; }
.menu-toggle__bars span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.menu-toggle__bars span:nth-child(3) { bottom: 0; }

@media (max-width: 980px) {
    .site-header__inner { padding: 14px 24px; }
    .main-navigation { display: none; }
    .menu-toggle { display: inline-flex; order: 3; }
    .site-header__actions .status-pill { display: none; }
    .site-header__actions .cta-reservation { padding: 8px 14px; font-size: 12px; }
    .site-logo__img { height: 38px; }

    /* Menu mobile déployé (toggle JS) */
    .main-navigation--open {
        display: block !important;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        border-bottom: 1px solid var(--grey-light);
        box-shadow: 0 12px 24px rgba(54, 61, 67, 0.10);
        padding: 18px 24px 24px;
        z-index: 99;
    }
    .main-navigation--open .primary-menu {
        flex-direction: column;
        gap: 0;
    }
    .main-navigation--open .primary-menu li {
        border-bottom: 1px solid var(--grey-light);
    }
    .main-navigation--open .primary-menu li:last-child {
        border-bottom: none;
    }
    .main-navigation--open .primary-menu a {
        display: block;
        padding: 14px 4px;
        font-size: 16px;
    }
    /* Animation hamburger -> croix */
    .menu-toggle[aria-expanded="true"] {
        background: var(--ink);
    }
    .menu-toggle[aria-expanded="true"] .menu-toggle__bars span {
        background: var(--white);
    }
    .menu-toggle[aria-expanded="true"] .menu-toggle__bars span:nth-child(1) {
        transform: translateY(6.5px) rotate(45deg);
    }
    .menu-toggle[aria-expanded="true"] .menu-toggle__bars span:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle[aria-expanded="true"] .menu-toggle__bars span:nth-child(3) {
        transform: translateY(-6.5px) rotate(-45deg);
    }
}

/* ============ FOOTER GLOBAL ============ */
.site-footer {
    background: var(--ink); color: var(--white);
    padding: 70px 0 30px;
}
.site-footer__grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 48px;
    max-width: 1320px; margin: 0 auto 40px;
    padding: 0 60px;
}
.site-footer__col h4 {
    font-size: 13px; letter-spacing: 4px;
    margin-bottom: 16px;
    color: rgba(255,255,255,0.6); font-weight: 700;
    text-transform: uppercase;
}
.site-footer__col a,
.site-footer__col p {
    color: var(--white); text-decoration: none;
    display: block; padding: 4px 0;
    font-size: 14px; opacity: 0.85;
}
.site-footer__col a:hover { color: var(--turquoise); opacity: 1; }
.site-footer__col .site-logo__img { height: 60px; }
.site-footer__col ul { list-style: none; margin: 0; padding: 0; }
.site-footer__legal {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 24px 60px 0;
    text-align: center; font-size: 12px; opacity: 0.65;
    max-width: 1320px; margin: 0 auto;
}
.site-footer__legal a {
    color: var(--turquoise); text-decoration: none; font-weight: 700;
}
@media (max-width: 980px) {
    .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; padding: 0 24px; }
}
@media (max-width: 600px) {
    .site-footer__grid { grid-template-columns: 1fr; }
}
