/* =========================================================
   VENTURI DECO — NORMALISATION DES NAVIGATEURS
   ========================================================= */

/* Calcul des dimensions plus prévisible */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Comportement général de la page */
html {
    min-height: 100%;
    scroll-behavior: smooth;
    text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
}

/* Suppression des marges par défaut */
html,
body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
    margin: 0;
}

body {
    min-height: 100vh;
}

/* Listes */
ul,
ol {
    margin: 0;
    padding: 0;
}

ul[role="list"],
ol[role="list"] {
    list-style: none;
}

/* Liens */
a {
    color: inherit;
    text-decoration: none;
}

/* Images et contenus multimédias */
img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
}

img {
    height: auto;
}

/* Formulaires */
button,
input,
textarea,
select {
    margin: 0;
    padding: 0;
    color: inherit;
    font: inherit;
}

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

textarea {
    resize: vertical;
}

/* Suppression de certains styles mobiles */
button,
a,
input,
textarea,
select {
    -webkit-tap-highlight-color: transparent;
}

/* Tableaux */
table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* Éléments masqués */
[hidden] {
    display: none !important;
}

/* Défilement vers une section sans la cacher sous le header */
section[id] {
    scroll-margin-top: calc(var(--header-height) + 20px);
}

/* Respect des préférences d’accessibilité */
@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;
    }
}