/* ==========================================================================
   RESET CSS MODERNE - SYCAD Formations IA
   ========================================================================== */

/* Box sizing */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Reset HTML5 display */
html {
    line-height: 1.15;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

/* Body defaults */
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
        'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
        sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Sections */
main {
    display: block;
}

/* Headings */
h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
    font-weight: inherit;
    font-size: inherit;
}

/* Lists */
ul,
ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Links */
a {
    text-decoration: none;
    color: inherit;
    background-color: transparent;
}

a:hover {
    text-decoration: none;
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    display: block;
    border-style: none;
}

/* Forms */
button,
input,
optgroup,
select,
textarea {
    font-family: inherit;
    font-size: 100%;
    line-height: 1.15;
    margin: 0;
}

button,
input {
    overflow: visible;
}

button,
select {
    text-transform: none;
}

button,
[type="button"],
[type="reset"],
[type="submit"] {
    -webkit-appearance: button;
    cursor: pointer;
}

button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
    border-style: none;
    padding: 0;
}

button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
    outline: 1px dotted ButtonText;
}

/* Textarea */
textarea {
    overflow: auto;
    resize: vertical;
}

/* Fieldset */
fieldset {
    padding: 0.35em 0.75em 0.625em;
    border: none;
}

legend {
    box-sizing: border-box;
    color: inherit;
    display: table;
    max-width: 100%;
    padding: 0;
    white-space: normal;
}

/* Progress */
progress {
    vertical-align: baseline;
}

/* Remove default select arrow */
select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Tables */
table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* Hidden */
[hidden] {
    display: none;
}

/* Focus visible (pour l'accessibilité) */
:focus-visible {
    outline: 2px solid var(--primary-cyan, #00D9E1);
    outline-offset: 2px;
}

/* Prevent font size adjustment */
html {
    -ms-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
}

/* Remove tap highlight on mobile */
* {
    -webkit-tap-highlight-color: transparent;
}
