@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&family=Playfair+Display:wght@500;600&display=swap');

/* Réinitialisation CSS */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --anthracite: #1B1B1B;
    --anthracite-2: #232323;
    --gold: #C8A560;
    --gold-soft: #D5C189;
    --ivory: #FAF9F6;
    --slate: #E8E3D3;
    --text: #111111;
    --muted: #8A8F98;
    --text-light: #F3F4F6;
    --surface-dark: rgba(32, 32, 32, 0.88);
    --surface-dark-strong: rgba(22, 22, 22, 0.96);
    --surface-light: rgba(250, 249, 246, 0.96);
    --border-soft: rgba(213, 193, 137, 0.18);
    --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.18);
    --shadow-strong: 0 28px 70px rgba(0, 0, 0, 0.28);
    --radius: 18px;
    --shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
    --transition: all 0.25s ease;
    --body-bg: linear-gradient(180deg, #fcfaf5 0%, #f4eee2 100%);
    --body-text: #231d18;
    --body-muted: #655c51;
    --header-bg: rgba(252, 250, 245, 0.82);
    --header-border: rgba(213, 193, 137, 0.18);
    --header-shadow: 0 18px 40px rgba(53, 39, 23, 0.08);
    --nav-link: #2f271d;
    --nav-link-muted: #7f7366;
    --nav-link-hover: #8a6d2f;
    --submenu-bg: rgba(252, 250, 245, 0.96);
    --submenu-hover-bg: rgba(200, 165, 96, 0.12);
    --submenu-shadow: 0 24px 50px rgba(53, 39, 23, 0.14);
    --submenu-ring: inset 0 0 0 2px rgba(213, 193, 137, 0.18);
    --hero-bg:
        radial-gradient(circle at top left, rgba(200, 165, 96, 0.16), transparent 44%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(245, 239, 228, 0.96));
    --hero-text: #231d18;
    --hero-muted: #655c51;
    --shell-bg: rgba(255, 255, 255, 0.52);
    --shell-border: rgba(213, 193, 137, 0.18);
    --shell-shadow: 0 24px 55px rgba(53, 39, 23, 0.12);
    --input-bg: rgba(255, 255, 255, 0.96);
    --input-border: rgba(200, 193, 138, 0.24);
    --input-text: #231d18;
    --input-placeholder: rgba(35, 29, 24, 0.54);
    --panel-bg: linear-gradient(180deg, #ffffff 0%, #f7f0e4 100%);
    --panel-bg-muted: rgba(255, 255, 255, 0.82);
    --panel-dark-bg:
        radial-gradient(circle at top left, rgba(200, 165, 96, 0.12), transparent 40%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(248, 242, 232, 0.92));
    --panel-border: rgba(213, 193, 137, 0.16);
    --panel-shadow: 0 20px 46px rgba(53, 39, 23, 0.12);
    --section-title: #231d18;
    --section-text: #231d18;
    --section-muted: #655c51;
    --footer-bg: linear-gradient(180deg, #f7f1e6 0%, #efe7d9 100%);
    --footer-text: #231d18;
    --footer-muted: rgba(101, 92, 81, 0.82);
    --footer-border: rgba(213, 193, 137, 0.16);
    --surface-hover: rgba(255, 250, 240, 0.78);
}

body.dark-mode {
    --body-bg:
        radial-gradient(circle at top left, rgba(200, 165, 96, 0.12), transparent 28%),
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.04), transparent 24%),
        linear-gradient(180deg, #242424 0%, #1d1d1d 35%, #171717 100%);
    --body-text: #F3F4F6;
    --body-muted: rgba(243, 244, 246, 0.72);
    --header-bg: rgba(18, 18, 18, 0.78);
    --header-border: rgba(255, 255, 255, 0.06);
    --header-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
    --nav-link: #F5F5F5;
    --nav-link-muted: #e0decf;
    --nav-link-hover: var(--gold-soft);
    --submenu-bg: rgba(22, 22, 22, 0.94);
    --submenu-hover-bg: rgba(255, 255, 255, 0.08);
    --submenu-shadow: 0 24px 50px rgba(12, 12, 18, 0.28);
    --submenu-ring: inset 0 0 0 2px rgba(255, 255, 255, 0.15);
    --hero-bg:
        linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0)),
        radial-gradient(circle at top center, rgba(200, 165, 96, 0.16), transparent 40%);
    --hero-text: #F3F4F6;
    --hero-muted: rgba(243, 244, 246, 0.8);
    --shell-bg: rgba(250, 249, 246, 0.08);
    --shell-border: rgba(213, 193, 137, 0.16);
    --shell-shadow: 0 24px 55px rgba(0, 0, 0, 0.2);
    --input-bg: rgba(255, 255, 255, 0.96);
    --input-border: rgba(200, 193, 138, 0.22);
    --input-text: #1f1a16;
    --input-placeholder: rgba(17, 17, 17, 0.6);
    --panel-bg:
        linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03)),
        rgba(38, 38, 38, 0.94);
    --panel-bg-muted: rgba(255, 255, 255, 0.08);
    --panel-dark-bg:
        radial-gradient(circle at top left, rgba(200, 165, 96, 0.14), transparent 38%),
        linear-gradient(180deg, rgba(47, 47, 47, 0.98), rgba(31, 31, 31, 0.98));
    --panel-border: rgba(213, 193, 137, 0.12);
    --panel-shadow: 0 20px 46px rgba(0, 0, 0, 0.22);
    --section-title: var(--gold-soft);
    --section-text: var(--text-light);
    --section-muted: rgba(243, 244, 246, 0.72);
    --footer-bg:
        linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0)),
        #191919;
    --footer-text: #E5E7EB;
    --footer-muted: rgba(229, 231, 235, 0.72);
    --footer-border: rgba(213, 193, 137, 0.12);
    --surface-hover: rgba(255, 255, 255, 0.08);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.65;
    color: var(--body-text);
    background: var(--body-bg);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--gold);
}

.skip-link {
    position: fixed;
    left: 16px;
    top: -64px;
    z-index: 5000;
    padding: 10px 14px;
    border-radius: 10px;
    background: var(--gold);
    color: #161616;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
    transition: top 0.2s ease;
}

.skip-link:focus,
.skip-link:focus-visible {
    top: 16px;
    outline: 2px solid var(--ivory);
    outline-offset: 2px;
}

main:focus,
[role="main"]:focus {
    outline: none;
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}


.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 28px;
    border-radius: 999px;
    border: none;
    font-weight: 600;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.14);
}

.btn-primary {
    background: linear-gradient(135deg, #b99552 0%, #d9c793 52%, #f1e5c4 100%);
    color: var(--anthracite);
    box-shadow: 0 14px 30px rgba(200, 165, 96, 0.32);
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 18px 34px rgba(200, 165, 96, 0.4);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.04);
    border: 1.5px solid rgba(213, 193, 137, 0.35);
    color: var(--gold-soft);
    box-shadow: none;
}

.btn-outline:hover {
    background: rgba(213, 193, 137, 0.12);
    color: #fff7e5;
    border-color: rgba(213, 193, 137, 0.65);
}

button:focus-visible, .btn:focus-visible, input:focus-visible {
    outline: 2px solid var(--gold-soft);
    outline-offset: 3px;
}

/* ============================================================================
   HEADER : géré entièrement par le Design System
   (cf. css/design-system/components/_header.css)
   Toutes les anciennes règles `#site-header > header`, `nav ul`,
   `.logo`, `.nav-submenu-toggle`, `.nav-submenu` etc. ont été supprimées
   pour éviter les conflits de spécificité.
   ============================================================================ */


/* ============================================================================
   PAGES (Hero, Categories, Reviews, Map, Popups) :
   ces sections sont desormais gerees par le DS via
   css/design-system/pages/_home.css et _search.css.
   Plus aucune page active n'utilise les classes legacy
   .hero, .categories, .user-reviews, .map-section, .popup-service.
   ============================================================================ */


/* ============================================================================
   FOOTER : géré entièrement par le Design System
   (cf. css/design-system/components/_footer.css)
   Toutes les anciennes règles `footer`, `.footer-brand`, `.footer-cols`,
   `.footer-col`, `.footer-legal` ont été supprimées pour éviter les
   conflits de spécificité. Toutes les pages utilisent maintenant le
   partial /partials/footer.html avec le composant `.ds-footer`.
   ============================================================================ */

/* Système de favoris */
.favorite-toggle {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: rgba(27, 27, 27, 0.35);
    font-size: 16px;
    z-index: 10;
}

.favorite-toggle:hover {
    transform: scale(1.1);
    color: var(--gold);
}

.favorite-toggle.active {
    color: #DA4D4D;
}

.favorite-btn.favorite-active {
    background-color: #fff !important;
    color: #DA4D4D !important;
    border-color: #DA4D4D !important;
}

.ad-image, .service-image {
    position: relative;
}

/* Styles pour la page des favoris */
.favorites-empty-icon {
    font-size: 4rem;
    color: #ccc;
    margin-bottom: 20px;
}

.favorite-card-provider {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.favorite-card-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #e0e0e0;
    margin-right: 10px;
    overflow: hidden;
}

.home-page {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.hero.hero--editorial {
    padding: 112px 0 68px;
}

.hero-shell {
    width: min(1180px, 100%);
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 420px);
    gap: 28px;
    align-items: stretch;
}

.hero-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 18px;
}

.hero-kicker,
.section-kicker,
.hero-panel-eyebrow,
.editorial-card-kicker,
.map-info-card-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(200, 165, 96, 0.12);
    border: 1px solid rgba(213, 193, 137, 0.18);
    color: #8a6d2f;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero.hero--editorial h1 {
    max-width: 13ch;
    font-size: clamp(3rem, 5vw, 4.9rem);
    line-height: 1.03;
    letter-spacing: -0.03em;
}

.hero.hero--editorial p {
    max-width: 700px;
    font-size: 1.08rem;
    line-height: 1.78;
}

.hero-panel {
    display: grid;
    gap: 18px;
}

.hero-panel-card,
.metric-card,
.editorial-card,
.map-info-card,
.home-cta-card {
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    box-shadow: var(--panel-shadow);
}

.hero-panel-card {
    padding: 28px;
    border-radius: calc(var(--radius) + 10px);
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: left;
}

.hero-panel-card h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.65rem, 2.4vw, 2.2rem);
    color: var(--section-title);
    line-height: 1.18;
}

.hero-panel-card p,
.metric-card span,
.editorial-card p,
.map-info-card p,
.home-cta-card p,
.section-lead p {
    color: var(--section-muted);
    line-height: 1.72;
}

.hero-panel-list {
    display: grid;
    gap: 12px;
}

.hero-panel-list li {
    position: relative;
    padding-left: 20px;
    color: var(--section-text);
}

.hero-panel-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.75em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--gold-soft));
    transform: translateY(-50%);
}

.hero-panel-cta {
    align-self: flex-start;
}

.hero-panel-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.metric-card {
    padding: 20px;
    border-radius: 24px;
    display: grid;
    gap: 8px;
    text-align: left;
}

.metric-card strong {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: #8a6d2f;
    line-height: 1;
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-trust span {
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.54);
    border: 1px solid rgba(213, 193, 137, 0.18);
    color: var(--section-text);
    font-size: 0.92rem;
    font-weight: 600;
}

.hero-highlights {
    margin-top: 32px;
}

.editorial-band,
.home-cta-band {
    padding: 0 0 96px;
}

.editorial-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.editorial-card {
    padding: 28px;
    border-radius: 28px;
    display: grid;
    gap: 14px;
}

.editorial-card h3,
.map-info-card h4,
.home-cta-card h3,
.section-lead h3 {
    font-family: 'Playfair Display', serif;
    color: var(--section-title);
    line-height: 1.15;
}

.section-lead {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 34px;
}

.section-lead--center {
    align-items: center;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    max-width: 840px;
}

.section-lead h3 {
    font-size: clamp(2.2rem, 3vw, 3.1rem);
    max-width: 14ch;
}

.section-lead--center h3,
.reviews-heading-text h3 {
    max-width: 18ch;
}

.reviews-stage {
    display: grid;
    gap: 26px;
}

.reviews-highlight {
    position: relative;
    overflow: hidden;
}

.reviews-highlight::before,
.home-cta-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(200, 165, 96, 0.16), transparent 38%);
    pointer-events: none;
}

.reviews-cards,
.home-cta-card,
.map-shell {
    position: relative;
    z-index: 1;
}

.map-shell {
    display: grid;
    grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
    gap: 24px;
    align-items: stretch;
}

.map-shell__aside,
.map-shell__main {
    min-width: 0;
}

.map-info-card {
    height: 100%;
    padding: 28px;
    border-radius: 28px;
    display: grid;
    align-content: space-between;
    gap: 16px;
}

.map-info-actions,
.home-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.map-shell__main #map {
    height: 100%;
    min-height: 520px;
}

.home-cta-card {
    position: relative;
    overflow: hidden;
    border-radius: 32px;
    padding: 34px;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) auto;
    gap: 28px;
    align-items: center;
}

.home-cta-actions {
    justify-content: flex-end;
}

body.dark-mode .hero-kicker,
body.dark-mode .section-kicker,
body.dark-mode .hero-panel-eyebrow,
body.dark-mode .editorial-card-kicker,
body.dark-mode .map-info-card-kicker {
    background: rgba(213, 193, 137, 0.12);
    color: #f1ddb0;
}

body.dark-mode .hero-trust span {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(213, 193, 137, 0.12);
    color: #f3ede3;
}

body.dark-mode .hero-panel-card,
body.dark-mode .metric-card,
body.dark-mode .editorial-card,
body.dark-mode .map-info-card,
body.dark-mode .home-cta-card {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
        rgba(29, 29, 29, 0.96);
    border-color: rgba(213, 193, 137, 0.12);
    box-shadow: 0 26px 56px rgba(0, 0, 0, 0.24);
}

body.dark-mode .hero-panel-card h2,
body.dark-mode .editorial-card h3,
body.dark-mode .map-info-card h4,
body.dark-mode .home-cta-card h3,
body.dark-mode .section-lead h3 {
    color: #f3ede3;
}

body.dark-mode .hero-panel-card p,
body.dark-mode .metric-card span,
body.dark-mode .editorial-card p,
body.dark-mode .map-info-card p,
body.dark-mode .home-cta-card p,
body.dark-mode .section-lead p,
body.dark-mode .hero-panel-list li {
    color: rgba(243, 244, 246, 0.74);
}

/* Responsive Design */
/* Navigation mobile */
.nav-toggle {
    display: none;
    background: transparent;
    border: 1.5px solid var(--header-border);
    border-radius: 10px;
    padding: 8px 10px;
    color: var(--nav-link);
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
    margin: 5px 0;
    transition: var(--transition);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 992px) {
    nav ul {
        gap: 18px;
    }

    .hero-shell,
    .map-shell,
    .home-cta-card,
    .editorial-grid {
        grid-template-columns: 1fr;
    }

    .hero.hero--editorial h1 {
        max-width: 12ch;
    }

    .hero-panel-metrics {
        grid-template-columns: 1fr 1fr;
    }

    .hero {
        padding: 80px 0 70px;
    }

    .categories {
        padding: 70px 0;
    }

    .map-section {
        padding: 70px 0;
    }
}

@media (max-width: 768px) {
    header .container {
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .nav-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .nav-auth-group {
        width: 100%;
    }

    nav {
        width: 100%;
    }

    nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin-top: 18px;
        padding-top: 18px;
        border-top: 1px solid var(--header-border);
        display: none;
    }

    nav ul.is-open {
        display: flex;
    }

    .hero-copy,
    .section-lead,
    .home-cta-card,
    .map-info-card {
        text-align: left;
    }

    .home-cta-actions {
        justify-content: flex-start;
    }

    .nav-submenu {
        position: static;
        min-width: 0;
        padding: 8px 0 0;
        box-shadow: none;
        border-radius: 0;
        border: none;
        background: transparent;
        backdrop-filter: none;
        gap: 0;
    }

    .nav-submenu li + li {
        border-top: 1px solid var(--header-border);
    }

    .nav-submenu a,
    .nav-submenu button {
        padding: 10px 0;
        border-radius: 6px;
    }

    .search-box {
        flex-direction: column;
        border-radius: var(--radius);
    }

    .search-box input {
        width: 100%;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .map-info-actions .btn,
    .home-cta-actions .btn {
        width: 100%;
    }

    .user-reviews .reviews-heading {
        flex-direction: column;
        align-items: flex-start;
    }

    .reviews-highlight {
        padding: 26px;
    }
}

@media (max-width: 576px) {
    .hero h1,
    .hero h2 {
        font-size: 2.1rem;
    }

    .hero-panel-metrics {
        grid-template-columns: 1fr;
    }

    .hero-panel-card,
    .metric-card,
    .editorial-card,
    .map-info-card,
    .home-cta-card {
        padding: 22px;
        border-radius: 24px;
    }

    .category-grid {
        grid-template-columns: repeat(1, 1fr);
    }

    .reviews-cards {
        grid-template-columns: 1fr;
    }
}

/* Accessibilité – mouvement réduit */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ============================================
   IMAGE LAZY LOADING - PLACEHOLDERS
   ============================================ */

.img-lazy-wrapper {
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
    border-radius: 4px;
}

.img-lazy {
    opacity: 0;
    transition: opacity 400ms ease-out;
    will-change: opacity;
}

.img-lazy.img-loaded {
    opacity: 1;
}

.img-lazy.img-error {
    opacity: 0.6;
    filter: grayscale(0.5);
}

.img-placeholder {
    position: absolute;
    inset: 0;
    filter: blur(20px);
    transform: scale(1.1);
    transition: opacity 400ms ease-out;
    z-index: 1;
}

/* Aspect ratio preservation to prevent CLS */
.img-lazy-wrapper[data-aspect-ratio] {
    position: relative;
}

.img-lazy-wrapper[data-aspect-ratio]::before {
    content: '';
    display: block;
    padding-top: calc(100% / var(--aspect-ratio, 1.5));
}

.img-lazy-wrapper[data-aspect-ratio] .img-lazy,
.img-lazy-wrapper[data-aspect-ratio] .img-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Skeleton animation for loading state */
@keyframes skeleton-pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 0.3; }
}

.img-loading {
    animation: skeleton-pulse 1.5s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
    .img-lazy,
    .img-placeholder {
        transition: none !important;
    }
    
    .img-loading {
        animation: none;
    }
}

/* ============================================
   SKIP LINKS - ACCESSIBILITÉ
   ============================================ */

.skip-links {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10000;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 20px;
    padding: 12px 20px;
    background: #b99552;
    color: #1a1815;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 20px;
    outline: 3px solid #1a1815;
    outline-offset: 2px;
}

/* ============================================
   FOCUS MANAGEMENT - RGAA 4.1
   ============================================ */

/* Focus indicator par défaut (fallback) */
*:focus {
    outline: 2px solid #b99552;
    outline-offset: 2px;
}

/* Navigation clavier seulement */
.keyboard-navigation *:focus {
    outline: 3px solid #b99552;
    outline-offset: 3px;
}

/* Focus visible sur éléments interactifs */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid #b99552;
    outline-offset: 3px;
    border-radius: 4px;
}

/* Skip focus pour éléments avec tabindex temporaire */
[tabindex="-1"]:focus {
    outline: none;
}

/* Focus trap container */
[data-focus-trap="true"] {
    position: relative;
}

/* ARIA live regions invisibles (réservées aux lecteurs d'écran) :
   exigent une classe explicite .sr-only pour ne pas masquer toutes
   les régions live du site (qui sont souvent des bandeaux visuels). */
.sr-only[aria-live],
[aria-live].visually-hidden {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Screen reader only text */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ============================================
   REDUCED MOTION
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .skip-link {
        transition: none;
    }
}

/* ============================================
   HIGH CONTRAST MODE
   ============================================ */

@media (prefers-contrast: high) {
    *:focus {
        outline: 4px solid currentColor;
        outline-offset: 2px;
    }
    
    .skip-link {
        border: 4px solid currentColor;
    }
}
