/* Aleya Corporation — styles partagés */
:root {
    --font-main: "Montserrat", sans-serif;
    --navbar-height: 5rem;
    --footer-background: #222;
    --focus-color: #70a7ff;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body { min-height: 100vh; font-family: var(--font-main); line-height: 1.5; }
body.nav-open { overflow: hidden; }
img, video, svg { display: block; max-width: 100%; height: auto; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { border: 0; background: none; cursor: pointer; }
p { max-width: 75ch; }
:focus-visible { outline: 3px solid var(--focus-color); outline-offset: 3px; }

.skip-link {
    position: fixed;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 5000;
    padding: 0.75rem 1rem;
    color: #111;
    background: #fff;
    border-radius: 999px;
    transform: translateY(-180%);
    transition: transform 0.2s ease;
}
.skip-link:focus { transform: translateY(0); }

.navbar {
    position: fixed;
    inset: 0 0 auto;
    z-index: 1000;
    width: 100%;
    height: var(--navbar-height);
}
.navbar-blur {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
}
.navbar-content {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    height: 100%;
    padding: 0 2.5rem;
    color: #fff;
}
.navbar-logo img, .navbar-account img { width: 3rem; height: 3rem; opacity: 0.9; transition: opacity 0.2s ease, transform 0.2s ease; }
.navbar-logo:hover img, .navbar-account:hover img { opacity: 1; transform: translateY(-1px); }
.navbar-links { display: flex; justify-content: center; gap: clamp(1.5rem, 4vw, 6rem); }
.navbar-links a { color: rgba(255,255,255,0.85); font-size: 0.875rem; font-weight: 500; transition: color 0.2s ease; }
.navbar-links a:hover, .navbar-links a.is-active { color: #fff; }
.navbar-links a.is-active { font-weight: 700; }
.navbar-burger { display: none; position: relative; z-index: 1102; width: 44px; height: 44px; align-items: center; justify-content: center; }
.navbar-burger span { position: absolute; width: 26px; height: 3px; border-radius: 10px; background: #fff; transition: transform 0.25s ease, opacity 0.2s ease; }
.navbar-burger span:nth-child(1) { transform: translateY(-7px); }
.navbar-burger span:nth-child(3) { transform: translateY(7px); }
.navbar-burger.is-open span:nth-child(1) { transform: rotate(45deg); }
.navbar-burger.is-open span:nth-child(2) { opacity: 0; }
.navbar-burger.is-open span:nth-child(3) { transform: rotate(-45deg); }

.navbar-mobile-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1090;
    background: rgba(0,0,0,0.42);
}
.navbar-mobile {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 1.5rem 2rem;
    background: rgba(0,0,0,0.88);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}
.nav-open .navbar-mobile { opacity: 1; visibility: visible; pointer-events: auto; }
.navbar-mobile-links { display: flex; flex-direction: column; gap: 1.25rem; text-align: center; }
.navbar-mobile-links a { display: inline-block; color: #fff; font-size: clamp(1.35rem, 5vw, 1.75rem); transition: transform 0.2s ease; }
.navbar-mobile-links a:hover, .navbar-mobile-links a.is-active { transform: scale(1.04); }
.navbar-mobile-divider { width: 12.5rem; height: 1px; margin: 0.5rem auto; background: rgba(255,255,255,0.2); }

.site-footer {
    margin-top: 5rem;
    padding: 3.25rem clamp(1.25rem, 5vw, 5rem);
    color: #fff;
    background: var(--footer-background);
}
.footer-content { display: grid; grid-template-columns: minmax(17rem, 2fr) repeat(2, minmax(10rem, 1fr)); gap: clamp(2rem, 6vw, 6rem); max-width: 90rem; margin: 0 auto; }
.footer-column { min-width: 0; }
.footer-title { margin-bottom: 1.25rem; font-size: 1.15rem; font-weight: 700; }
.footer-column li + li { margin-top: 0.5rem; }
.footer-column a { color: rgba(255,255,255,0.82); transition: color 0.2s ease; }
.footer-column a:hover { color: #fff; }
.socials { display: flex; flex-wrap: wrap; gap: 1.25rem; margin-top: 2.5rem; }
.socials a { display: inline-flex; }
.socials img { width: 1.5rem; height: 1.5rem; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; max-width: 90rem; margin: 2.5rem auto 0; padding-top: 1.75rem; border-top: 1px solid #444; font-size: 0.75rem; }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.legal-page .site-footer { margin-top: 5rem; }

@media (max-width: 1200px) {
    .navbar-links, .navbar-account { display: none; }
    .navbar-content { display: flex; justify-content: space-between; padding: 0 1.5rem; }
    .navbar-burger { display: flex; }
}

@media (max-width: 760px) {
    .footer-content { grid-template-columns: 1fr; text-align: center; }
    .footer-brand p { margin-inline: auto; }
    .socials { justify-content: center; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .footer-bottom nav { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
