/* ===========================================================================
   WESTPORTS — Reset moderne (LOT 06)
   =========================================================================== */

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

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
    /* Compense la hauteur du header collant lors d'un saut d'ancre. */
    scroll-padding-top: calc(var(--wp-header-height-scrolled) + var(--wp-space-4));
}

body,
h1, h2, h3, h4, h5, h6,
p, figure, blockquote, dl, dd,
ul, ol {
    margin: 0;
}

ul[role='list'],
ol[role='list'],
.wp-list-reset {
    list-style: none;
    padding: 0;
}

body {
    min-height: 100vh;
    min-height: 100svh;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
}

img,
video {
    height: auto;
}

input,
button,
textarea,
select {
    font: inherit;
    color: inherit;
}

button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

a {
    color: inherit;
    text-decoration: none;
}

table {
    border-collapse: collapse;
    width: 100%;
}

svg {
    fill: currentColor;
}

/* Accessibilité : contenu réservé aux lecteurs d'écran. */
.wp-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;
}

/* Lien d'évitement : visible dès qu'il reçoit le focus clavier. */
.wp-skip-link {
    position: absolute;
    top: var(--wp-space-3);
    left: var(--wp-space-3);
    z-index: var(--wp-z-toast);
    padding: var(--wp-space-3) var(--wp-space-5);
    background: var(--wp-navy-900);
    color: var(--wp-white);
    border-radius: var(--wp-radius-sm);
    transform: translateY(-200%);
    transition: transform var(--wp-duration-fast) var(--wp-ease);
}

.wp-skip-link:focus-visible {
    transform: translateY(0);
}

/* Anneau de focus homogène, toujours visible sur fond clair et sombre. */
:focus-visible {
    outline: var(--wp-focus-ring);
    outline-offset: var(--wp-focus-offset);
    border-radius: var(--wp-radius-xs);
}

::selection {
    background: var(--wp-gold-500);
    color: var(--wp-navy-900);
}

/* Respect du réglage système : aucune animation imposée. */
@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;
        scroll-behavior: auto !important;
    }
}
