/* =====================
RESET / BASE
===================== */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    font-family: "Quicksand", system-ui, -apple-system, BlinkMacSystemFont,
                "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.4;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    background-color: #EFE7D6;
}

.page-wrapper {
    min-height: 100vh;     /* hauteur de la fenêtre */
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;               /* pousse le footer en bas */
}

p {
    text-align: justify;
}

.color {
    color: #83755D;
}

/* =====================
VARIABLES
===================== */

:root {
  /* Fonts */
    --font-text: "Quicksand", system-ui, -apple-system, BlinkMacSystemFont,
                "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-title: "Calibri Light", "Calibri", "Segoe UI", Arial, sans-serif;

  /* Layout */
    --max-width: 1200px;
    --radius: 0.75rem;
    --spacing: 1rem;

  /* Animation */
    --transition-fast: 150ms ease;
    --transition-normal: 300ms ease;
}

/* =====================
TITRES
===================== */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-title);
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 0.5em;
    text-align: center;
}

h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); }
h2 { font-size: clamp(2rem, 4vw, 2.75rem); }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

/* =====================
TEXTE
===================== */

p,
span,
li,
a,
label,
input,
textarea,
button {
    font-family: var(--font-text);
}

/* =====================
ELEMENTS
===================== */

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

a {
    text-decoration: none;
}


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

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

/* =====================
UTILITAIRES
===================== */

.container {
    width: 100%;
    max-width: var(--max-width);
    margin-inline: auto;
    padding-inline: var(--spacing);
}

.hidden {
    display: none !important;
}

.text-muted {
    color: var(--color-muted);
}

.center {
    display: grid;
    place-items: center;
}

/* =====================
ACCESSIBILITÉ
===================== */

:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 3px;
}

/* =====================
ANIMATIONS SAFE
===================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

