/* ================================================
   RESET CSS MODERNE v1.2 (Accessibilité + Responsive)
   ================================================ */

/* Normalisation de base (héritée de Normalize.css) */
html {
    line-height: 1.15;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

/* Reset des marges et box-sizing */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Éléments bloc de base */
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
dl,
dd {
    margin: 0;
}

/* Listes */
ul,
ol {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

/* Formulaires */
button,
input,
optgroup,
select,
textarea {
    font-family: inherit;
    font-size: 100%;
    line-height: 1.15;
    margin: 0;
    border: none;
    background: none;
}

button,
input {
    overflow: visible;
}

button,
[type="button"],
[type="reset"],
[type="submit"] {
    -webkit-appearance: button;
    cursor: pointer;
}

button::-moz-focus-inner,
[type="button"]::-moz-focus-inner {
    border-style: none;
    padding: 0;
}

textarea {
    overflow: auto;
    resize: vertical;
}

/* Images et contenus média */
img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Typographie */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-size: inherit;
    font-weight: inherit;
}

/* Accessibilité : éléments cachés visuellement mais accessibles aux lecteurs d'écran */
.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;
}

/* Correction des problèmes d'affichage dans IE */
main {
    display: block;
}

/* Prévention des débordements horizontaux */
html,
body {
    overflow-x: hidden;
}

/* Normalisation des citations */
blockquote,
q {
    quotes: none;
}
blockquote:before,
blockquote:after,
q:before,
q:after {
    content: "";
    content: none;
}

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

/* Reset des champs de recherche */
input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
    -webkit-appearance: none;
}
