/* ==========================================================================
   Police Poppins hébergée localement (reprise du projet gael)

   Remplace le <link> vers Google Fonts :

       <link href="https://fonts.googleapis.com/css2?family=Poppins…">

   présent dans resources/views/layouts/*.blade.php, qui créait un lien vers
   fonts.googleapis.com (et une requête vers fonts.gstatic.com) sur toutes les
   pages.

   Structure : cette feuille est dans public/css/, les 10 fichiers .woff2
   (graisses 300 à 700, sous-ensembles latin et latin-ext) sont dans
   public/fonts/ : 84 Ko au total, mis en cache par le navigateur. Le rendu est
   identique à celui de Google Fonts.

   Note : Poppins ne propose pas de sous-ensemble grec — les textes en grec
   s'afficheront avec la police de secours du système, comme avant.
   ========================================================================== */

/* --- 300 ---------------------------------------------------------------- */
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('../fonts/poppins-300-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('../fonts/poppins-300-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --- 400 ---------------------------------------------------------------- */
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/poppins-400-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/poppins-400-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --- 500 ---------------------------------------------------------------- */
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/poppins-500-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/poppins-500-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --- 600 ---------------------------------------------------------------- */
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/poppins-600-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/poppins-600-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --- 700 ---------------------------------------------------------------- */
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/poppins-700-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/poppins-700-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==========================================================================
   Application de la police : Poppins PARTOUT

   - Les navigateurs n'héritent pas de la police dans les contrôles de
     formulaire (input, select, textarea, button) : on force l'héritage.
   - Tailwind met code/pre/kbd/samp et la classe .font-mono en monospace : on
     les repasse en Poppins.
   ========================================================================== */

:root,
body {
    font-family: 'Poppins', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
    /* Pas de graisse synthétique : au-delà de 700 (graisse non chargée), le
       navigateur fabriquerait un faux gras, systématiquement plus flou. */
    font-synthesis-weight: none;
}

button,
input,
select,
optgroup,
textarea {
    font-family: inherit;
}

code,
kbd,
samp,
pre,
.font-mono {
    font-family: 'Poppins', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif !important;
}

/* ==========================================================================
   Graisses

   On garde les vraies graisses (600 pour .font-semibold, 700 pour .font-bold),
   comme sur le site « gael » : alléger les graisses d'un cran rendait le texte
   gris et peu net sur fond clair.

   Seules les graisses que Poppins ne fournit pas sont ramenées à 700 (dernière
   graisse chargée) : sans cela, `font-synthesis-weight: none` ferait retomber
   le navigateur sur le rendu le plus proche, avec un décalage visible.
   ========================================================================== */

.font-extrabold,
.font-black {
    font-weight: 700 !important;
}

/* <strong>/<b> : le preflight de Tailwind est injecté après cette feuille, il
   faut donc `!important` pour garantir 700 (et non `bolder`, qui dépendrait de
   la graisse du parent). */
b,
strong {
    font-weight: 700 !important;
}

/* Titres : interlettrage légèrement resserré (comme les titres de section du
   site « gael »). Poppins est une police large ; à partir de 30 px, l'espace
   entre les lettres fait paraître le titre plus mou. Les classes
   `tracking-*` de Tailwind restent prioritaires. */
h1,
h2 {
    letter-spacing: -0.02em;
}
