/*
 * utils.css — Classes utilitaires génériques
 * À inclure en premier, avant style.css
 * ─────────────────────────────────────────────────────────────────────────────
 */

/* ── Reset minimal ───────────────────────────────────────────────────────── */

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

html, body, p { margin: 0; padding: 0; }

html {
    min-height: 100%;
    position: relative;
    -webkit-font-smoothing: antialiased;
    font-size: 62.5%; /* 1rem = 10px */
}

html:focus-within, body { scroll-behavior: smooth; }

a { text-decoration: none; color: inherit; }
a:link, a:visited, a:hover, a:active { outline: none; }
a img { border: none; }

input, input:active, input:focus {
    outline: 0;
    outline-style: none;
    outline-width: 0;
}

ul  { padding-left: 10px; }
li  { list-style: none; }
img { vertical-align: middle; border: none; }

strong { font-weight: 400 !important; }

/* ── Display ─────────────────────────────────────────────────────────────── */

.block  { display: block; }
.inbl   { display: inline-block; vertical-align: top; }
.none   { display: none; }
.hidden { display: none !important; }

/* ── Position ────────────────────────────────────────────────────────────── */

.rel { position: relative; }
.abs { position: absolute; }

/* ── Flex ────────────────────────────────────────────────────────────────── */

.flex    { display: flex; }
.flexI   { display: inline-flex; }
.flexV   { flex-direction: column; }
.flexA   { justify-content: space-around; }
.flexB   { justify-content: space-between; }
.flexC   { justify-content: center; }
.flexLeft  { justify-content: flex-start; }
.flexRight { justify-content: flex-end; }
.flexAfter { align-items: baseline; }
.flexM  { align-items: center; }
.flexS  { align-items: stretch; }
.flexRow  { flex-direction: row; }
.flexRowR { flex-direction: row-reverse; }
.flexCol  { flex-direction: column; }
.flexColR { flex-direction: column-reverse; }
.flexW  { flex-wrap: wrap; }
.flexWR { flex-wrap: wrap-reverse; }
.flex1  { flex: 1; }

/* ── Grid ────────────────────────────────────────────────────────────────── */

.grid  { display: grid; justify-self: center; grid-template-columns: repeat(1, 1fr); }
.grid2 { width: 100%; display: grid; grid-template-columns: repeat(2, 1fr); overflow: hidden; }
.grid2 > div         { width: 100%; display: grid; padding: 5%; }
.grid2 > div > div   { max-width: 580px; justify-self: center; }

/* ── Width / Height ──────────────────────────────────────────────────────── */

.w50   { width: 50%; }
.w100  { width: 100%; }
.w360p { width: 360px; }
.h100  { height: 100%; }

/* ── Texte ───────────────────────────────────────────────────────────────── */

.tC    { text-align: center; }
.under, .link:hover { text-decoration: underline; }
.bold  { font-weight: bold; }
.ital  { font-style: italic; }
.upper, .caps { text-transform: uppercase; }
.pointer:hover { cursor: pointer; }

/* ── Listes ──────────────────────────────────────────────────────────────── */

ul.disc li      { list-style-type: disc; padding-bottom: 1.1rem; }
.listinline li  { display: inline-block; }

/* ── Font sizes ──────────────────────────────────────────────────────────── */

.fs12 { font-size: 1.2rem; }
.fs13 { font-size: 1.3rem; }
.fs14 { font-size: 1.4rem; }
.fs16 { font-size: 1.6rem; }
.fs18 { font-size: 1.8rem; }
.fs2  { font-size: 2rem; }
.fs25 { font-size: 2.5rem; }
.fs3  { font-size: 2.8rem; }
.fs35 { font-size: 3.5rem; }
.fs4  { font-size: 4rem; }
.fs5  { font-size: 5rem; }

/* ── Font weights ────────────────────────────────────────────────────────── */

.fw3 { font-weight: 300 !important; }
.fw4 { font-weight: 400 !important; }
.fw5 { font-weight: 500 !important; }
.fw6 { font-weight: 600 !important; }

/* ── Icônes ──────────────────────────────────────────────────────────────── */

.ico18 { width: 18px; height: 18px; }
.ico24 { width: 24px; height: 24px; }
.ico48 { width: 48px; height: 48px; }

/* ── Espacements (base 10px) ─────────────────────────────────────────────── */

.center { margin: auto; }
.noPad  { padding: 0 !important; }
.ma0 { margin: 0; }    .pa0 { padding: 0; }
.ma1 { margin: 10px; } .pa1 { padding: 10px; }
.ma2 { margin: 20px; } .pa2 { padding: 20px; }
.ma3 { margin: 30px; } .pa3 { padding: 30px; }

.mt0 { margin-top: 0; }    .mt1 { margin-top: 10px; }    .mt2 { margin-top: 20px; }    .mt3 { margin-top: 30px; }
.mr1 { margin-right: 10px; } .mr2 { margin-right: 20px; } .mr3 { margin-right: 30px; }
.mb0 { margin-bottom: 0; }  .mb1 { margin-bottom: 10px; } .mb2 { margin-bottom: 20px; } .mb3 { margin-bottom: 30px; }
.ml1 { margin-left: 10px; } .ml2 { margin-left: 20px; }  .ml3 { margin-left: 30px; }

.pt0 { padding-top: 0; }    .pt1 { padding-top: 10px; }    .pt2 { padding-top: 20px; }    .pt3 { padding-top: 30px; }
.pr1 { padding-right: 10px; } .pr2 { padding-right: 20px; } .pr3 { padding-right: 30px; }
.pb0 { padding-bottom: 0; }  .pb1 { padding-bottom: 10px; } .pb2 { padding-bottom: 20px; } .pb3 { padding-bottom: 30px; }
.pl1 { padding-left: 10px; } .pl2 { padding-left: 20px; }  .pl3 { padding-left: 30px; }

/* ── Flex 2 colonnes ─────────────────────────────────────────────────────── */

.flex2 > div:first-child { width: 50%; padding-right: 20px; }
.flex2 > div:last-child  { margin-left: 0; padding-left: 20px; }
