/* =========================================================
   AZORLEARN — STYLES GLOBAUX (v3)
   Socle commun à toutes les pages.
   Police du site : Lexend (chargée ici pour toutes les pages)
   ========================================================= */

@import url("https://fonts.googleapis.com/css2?family=Lexend:wght@400;500;600;700;800&display=swap");

:root {
    /* ---- Échelle typographique commune (toutes les pages) ---- */
    --t-h1: clamp(30px, 3.2vw, 46px);      /* titre principal (hero) */
    --t-h2: clamp(25px, 2.4vw, 34px);      /* titres de section */
    --t-cta: clamp(23px, 2.3vw, 31px);     /* titres des bandeaux d'appel */
    --t-h3: 17px;                          /* titres de cartes */
    --t-lead: 16.5px;                      /* chapeau sous le titre */
    --t-body: 16px;                        /* texte courant */
    --t-text: 14.5px;                      /* texte des cartes */
    --color-primary: #0b5fe0;
    --color-primary-dark: #0a47b8;
    --color-primary-light: #e8f1ff;
    --color-sky: #43b9f2;
    --color-amber: #f5a524;
    --color-navy: #0a1a3a;

    --color-white: #ffffff;
    --color-text: #3b4a6b;
    --color-text-light: #6a7a98;
    --color-border: #e4ebf6;
    --color-background: #f4f8fe;

    --font-main: "Lexend", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;

    --container-width: 1320px;
    --radius-small: 10px;
    --radius-medium: 16px;
    --radius-large: 24px;
    --shadow-small: 0 6px 18px rgba(10, 26, 58, .06);
    --shadow-medium: 0 16px 40px rgba(10, 26, 58, .1);
    --transition: .3s ease;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: clip;          /* aucune barre de défilement horizontale */
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.65;
    color: var(--color-text);
    background: var(--color-white);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: clip;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }

::selection { background: #cfe0ff; color: var(--color-navy); }

h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    color: var(--color-navy);
    line-height: 1.2;
}
p { margin-top: 0; }

.container {
    width: min(calc(100% - 40px), var(--container-width));
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 24px;
    border: 0;
    border-radius: var(--radius-small);
    background: var(--color-primary);
    color: var(--color-white);
    font-weight: 700;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.btn:hover { background: var(--color-primary-dark); transform: translateY(-2px); box-shadow: var(--shadow-small); }

/* Barre de défilement discrète (PC) */
@media (pointer: fine) {
    ::-webkit-scrollbar { width: 11px; }
    ::-webkit-scrollbar-track { background: #f1f5fc; }
    ::-webkit-scrollbar-thumb { background: #b9c9e6; border-radius: 10px; border: 3px solid #f1f5fc; }
    ::-webkit-scrollbar-thumb:hover { background: #0b5fe0; }
}

:focus-visible { outline: 3px solid rgba(11, 95, 224, .35); outline-offset: 3px; }

/* Échelle typographique : version mobile */
@media (max-width: 760px) {
    :root {
        --t-h1: clamp(27px, 7.4vw, 34px);
        --t-h2: clamp(23px, 6.2vw, 28px);
        --t-cta: clamp(22px, 6vw, 26px);
        --t-h3: 15.5px;
        --t-lead: 15.5px;
        --t-body: 15.5px;
        --t-text: 13.5px;
    }
}
