/* ══════════════════════════════════════════
   STYLES COMMUNS — Toutes les pages
   css/common.css
══════════════════════════════════════════ */

body {
    padding-top: 110px;
}

/* ══════════════════ ACCESSIBILITÉ — Focus visible ══════════════════ */
:focus-visible {
    outline: 3px solid #FFD700;
    outline-offset: 3px;
    border-radius: 3px;
}

/* Masquer l'outline pour les clics souris, le garder pour le clavier */
:focus:not(:focus-visible) {
    outline: none;
}

/* Améliore le contraste du focus sur fond sombre (nav, footer) */
nav a:focus-visible,
footer a:focus-visible {
    outline-color: #ffffff;
}

/* Skip-to-content — accessibilité clavier */
.skip-to-content {
    position: absolute;
    top: -100%;
    left: 16px;
    background: #0D47A1;
    color: #fff;
    padding: 8px 18px;
    border-radius: 0 0 8px 8px;
    font-size: 14px;
    font-weight: 600;
    z-index: 99999;
    text-decoration: none;
    transition: top 0.2s;
}

.skip-to-content:focus {
    top: 0;
    outline: 3px solid #FFD700;
}

section[id] {
    scroll-margin-top: 120px;
}

.nav-links a.nav-active {
    color: var(--or, #FFD700) !important;
}

.nav-hamburger {
    background: none;
    border: none;
    padding: 8px;
}

.nav-hamburger span {
    display: block;
    transition: all 0.3s;
    transform-origin: center;
}

.nav-hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-hamburger.active span:nth-child(2) {
    opacity: 0;
}

.nav-hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

nav.nav-scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3) !important;
}

/* ══════════════════ LANGUAGE TOGGLE ══════════════════ */
.lang-toggle {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    flex-shrink: 0;
    order: 2;
}

.lang-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: #fff;
}

nav {
    display: flex;
    align-items: center;
}

.btn-whatsapp {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 52px;
    height: 52px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
    z-index: 9997;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-whatsapp:hover {
    background: #128C7E;
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(37, 211, 102, 0.6);
}

.back-to-top {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 44px;
    height: 44px;
    background: #0D47A1;
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(13, 71, 161, 0.35);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #1565C0;
    transform: translateY(-3px);
}


/* ══════════════════════════════ LIGHTBOX (galerie) ══════════════════════════════ */

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(10, 22, 40, 0.92);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox img {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: none;
    border: none;
    color: white;
    font-size: 36px;
    cursor: pointer;
    line-height: 1;
    padding: 4px 10px;
}

.lightbox-close:hover {
    color: #FFD700;
}


/* ══════════════════════════════ FOOTER ══════════════════════════════ */

footer {
    background: #0A1628;
    color: #fff;
    padding: 60px 5% 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-logo {
    height: 64px;
    width: auto;
    object-fit: contain;
    margin-bottom: 14px;
}

.footer-brand h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: #FF9800;
    margin-bottom: 12px;
    line-height: 1.4;
}

.footer-brand p {
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.7;
    max-width: 280px;
}

.footer-col h4 {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 16px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col ul a {
    text-decoration: none;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.2s;
}

.footer-col ul a:hover {
    color: #FF9800;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-bottom p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.35);
}

.footer-bottom span {
    color: #FF9800;
}

.footer-admin-link {
    font-size: 11px;
    color: rgba(255, 255, 255, .18);
    text-decoration: none;
    letter-spacing: .04em;
    transition: color .2s;
}

.footer-admin-link:hover {
    color: rgba(255, 255, 255, .55);
}

.footer-privacy-link {
    font-size: 11px;
    color: rgba(255, 255, 255, .35);
    text-decoration: none;
    letter-spacing: .04em;
    transition: color .2s;
}

.footer-privacy-link:hover {
    color: rgba(255, 255, 255, .7);
}

@media (max-width: 900px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 600px) {
    .footer-grid { grid-template-columns: 1fr; }

    footer {
        padding-bottom: 100px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding-bottom: 8px;
    }

    .footer-bottom p {
        font-size: 12px;
        line-height: 1.5;
    }

    .footer-privacy-link,
    .footer-admin-link {
        font-size: 12px;
    }
}
