@charset "UTF-8";
/* ==========================================================================
   cours-langues-ville-quebec.com - feuille de style du contenu
   Une seule feuille pour toutes les pages. Elle remplace le bloc <style>
   de 5,7 Ko qui etait recopie dans chaque page, en quatre variantes.
   Chargee APRES bootstrap.min.css et style.css : elle peut donc corriger
   l heritage sans qu on touche a la barre de navigation ni au pied de page.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Jetons de design
   -------------------------------------------------------------------------- */
:root {
    --bg:            #f4f7fc;
    --surface:       #ffffff;
    --surface-soft:  #f7faff;
    --border:        #dbe4f0;
    --border-soft:   #e9eff8;

    --text:          #1c2938;
    --text-strong:   #0e1d36;
    --muted:         #5a6778;

    --primary:       #1f4fa3;
    --primary-dark:  #163a7a;
    --primary-wash:  #eaf1fd;

    --accent:        #c62828;
    --accent-dark:   #9e1f1f;

    --ok:            #1c7a4a;
    --ok-wash:       #e8f6ee;

    --radius:        16px;
    --radius-lg:     22px;
    --radius-pill:   999px;

    --shadow-sm:     0 1px 2px rgba(14, 29, 54, .06);
    --shadow:        0 6px 22px rgba(14, 29, 54, .07);
    --shadow-lg:     0 14px 40px rgba(14, 29, 54, .10);

    --mesure:        68ch;   /* longueur de ligne confortable a la lecture */
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Lato', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.7;
}

.content-section-main a {
    color: var(--primary);
    text-decoration: none;
}

.page-shell a:hover,
.page-shell a:focus {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* un contour de focus visible partout : exigence d accessibilite,
   et la barre de navigation en heritait d un contour invisible */
.content-section-main a:focus-visible,
.page-shell button:focus-visible,
.cta-link:focus-visible,
.cta-final:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
    border-radius: 4px;
}

/* --------------------------------------------------------------------------
   2 bis. Deux defauts herites, corriges ici pour tout le site
   -------------------------------------------------------------------------- */

/* (a) Le pied de page contient une .row Bootstrap qui n est pas dans un
   .container : ses marges negatives de -15px depassent de chaque cote et
   provoquent une barre de defilement horizontale sur mobile, sur TOUTES
   les pages. On neutralise les marges sans toucher au balisage du pied. */
footer > .row {
    margin-left: 0;
    margin-right: 0;
}

/* (b) Les titres du contenu heritaient de font-variant: small-caps.
   Les petites capitales se parcourent mal et datent la page. On les retire
   du contenu, mais on les GARDE sur la banniere, ou elles sont voulues. */
.page-shell h1,
.page-shell h2,
.page-shell h3,
.page-shell h4,
.page-shell h5 {
    font-variant: normal;
    font-variant-caps: normal;
    letter-spacing: -0.01em;
}

/* --------------------------------------------------------------------------
   3. Banniere photo - le voile qui manquait
   Les en-tetes de ville sont une trentaine de classes .intro-header-<ville>,
   toutes avec une photo en fond et du texte blanc, sans aucun assombrissement.
   Le selecteur d attribut les couvre toutes d un coup.
   -------------------------------------------------------------------------- */
[class*="intro-header"] {
    position: relative;
    background-position: center center;
    background-size: cover;
}

[class*="intro-header"]::before {
    content: "";
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background: linear-gradient(180deg,
        rgba(8, 18, 38, .74) 0%,
        rgba(8, 18, 38, .52) 45%,
        rgba(8, 18, 38, .80) 100%);
    pointer-events: none;
}

[class*="intro-header"] > .container {
    position: relative;
    z-index: 1;
}

[class*="intro-header"] .intro-title {
    text-shadow: 0 2px 14px rgba(0, 0, 0, .45);
}

[class*="intro-header"] .intro-message h3 {
    font-size: clamp(15px, 2.2vw, 19px);
    font-weight: 400;
    line-height: 1.55;
    max-width: 52ch;
    margin: 14px auto 0;
    text-shadow: 0 1px 10px rgba(0, 0, 0, .5);
}

[class*="intro-header"] .intro-divider {
    max-width: 180px;
    border-color: rgba(255, 255, 255, .35);
}

/* le bouton de la banniere : rouge plein, jamais transparent */
[class*="intro-header"] #cta-btn,
[class*="intro-header"] .btn-default {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    font-weight: 700;
    letter-spacing: .02em;
    border-radius: var(--radius-pill);
    padding: 13px 26px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .28);
}

[class*="intro-header"] #cta-btn:hover,
[class*="intro-header"] #cta-btn:focus,
[class*="intro-header"] .btn-default:hover,
[class*="intro-header"] .btn-default:focus {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    color: #fff;
}

/* --------------------------------------------------------------------------
   4. Corps de page
   -------------------------------------------------------------------------- */
.page-shell {
    padding: 34px 0 72px;
}

.hero-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 34px 32px;
    margin-bottom: 24px;
}

.hero-kicker {
    display: inline-block;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--primary-dark);
    background: var(--primary-wash);
    border-radius: var(--radius-pill);
    padding: 7px 14px;
    margin-bottom: 14px;
}

.hero-card h1 {
    font-size: clamp(27px, 3.4vw, 39px);
    line-height: 1.18;
    margin: 0 0 16px;
    color: var(--text-strong);
    font-weight: 700;
}

.hero-card p,
.hero-intro {
    font-size: 18px;
    color: var(--muted);
    max-width: var(--mesure);
    margin: 0 0 14px;
}

/* --------------------------------------------------------------------------
   5. Bandeau de faits - ce que le visiteur doit savoir en trois secondes
   -------------------------------------------------------------------------- */
.facts-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0 4px;
    padding: 0;
    list-style: none;
}

.facts-strip li {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--surface-soft);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-pill);
    padding: 9px 16px;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--text-strong);
}

.facts-strip li::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--ok);
    flex: 0 0 auto;
}

/* --------------------------------------------------------------------------
   6. Grille principale
   -------------------------------------------------------------------------- */
.grid-main {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr);
    gap: 24px;
    align-items: start;
}

.content-card,
.sidebar-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    min-width: 0;
}

.content-card { padding: 32px; }

.sidebar-card {
    padding: 22px;
    position: sticky;
    top: 18px;
}

/* --------------------------------------------------------------------------
   7. Sections et titres
   -------------------------------------------------------------------------- */
.section-block {
    padding: 0 0 26px;
    margin: 0 0 26px;
    border-bottom: 1px solid var(--border-soft);
}

.section-block:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.section-block h2,
.section-block h3 {
    margin: 0 0 16px;
    color: var(--text-strong);
    line-height: 1.28;
    font-weight: 700;
}

.section-block h2 { font-size: clamp(22px, 2.4vw, 28px); }
.section-block h3 { font-size: clamp(19px, 2vw, 23px); }

.section-block h4 {
    font-size: 17.5px;
    font-weight: 700;
    color: var(--text-strong);
    margin: 22px 0 8px;
    line-height: 1.4;
}

.section-block p,
.section-block li {
    font-size: 17px;
    max-width: var(--mesure);
}

.section-block p { margin: 0 0 15px; }

.section-block ul,
.section-block ol {
    margin: 0 0 16px;
    padding-left: 22px;
}

.section-block li { margin-bottom: 9px; }

.highlight-red {
    color: var(--accent);
    font-weight: 700;
}

/* --------------------------------------------------------------------------
   8. Encadres, etiquettes, tableaux
   -------------------------------------------------------------------------- */
.pill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin: 16px 0 4px;
    padding: 0;
    list-style: none;
}

.pill-list li {
    background: var(--primary-wash);
    color: var(--primary-dark);
    border: 1px solid #d7e4fb;
    border-radius: var(--radius-pill);
    padding: 7px 14px;
    font-size: 14px;
    font-weight: 700;
    margin: 0;
    max-width: none;
}

.cta-box,
.info-box {
    background: var(--surface-soft);
    border: 1px solid var(--border-soft);
    border-left: 4px solid var(--primary);
    border-radius: 12px;
    padding: 18px 20px;
    margin: 20px 0 0;
}

.cta-box p,
.info-box p { margin-bottom: 10px; }

.cta-box p:last-child,
.info-box p:last-child { margin-bottom: 0; }

.section-block table,
.content-card table {
    width: 100%;
    border-collapse: collapse;
    margin: 4px 0 18px;
    font-size: 16px;
}

.section-block th,
.section-block td {
    border-bottom: 1px solid var(--border-soft);
    padding: 11px 12px;
    text-align: left;
    vertical-align: top;
}

.section-block th {
    background: var(--surface-soft);
    color: var(--text-strong);
    font-weight: 700;
}

/* --------------------------------------------------------------------------
   9. Appels a l action - des BOUTONS, pas des liens

   Trois noms de classe circulent dans les pages : .cta-button (879 liens),
   .cta-link (6) et aucune classe du tout (150). .cta-button n a jamais
   existe dans aucune feuille : ces 879 appels s affichaient en texte brut.
   On style les trois, PLUS tout lien vers le formulaire situe dans le
   contenu : aucun appel a l action ne peut plus passer pour du texte.
   Une seule couleur pour une seule intention : le rouge de la marque.
   -------------------------------------------------------------------------- */
.cta-button,
.cta-link,
.cta-final,
.content-section-main a[href*="machform"] {
    display: inline-block;
    max-width: 100%;
    margin: 10px 8px 10px 0;
    padding: 15px 28px;
    border: none;
    border-radius: var(--radius-pill);
    background: var(--accent);
    color: #fff !important;
    font-size: 16.5px;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    text-decoration: none !important;
    box-shadow: 0 6px 18px rgba(198, 40, 40, .28);
    transition: background .15s ease, box-shadow .15s ease, transform .15s ease;
    /* cible tactile confortable */
    min-height: 48px;
}

/* le chevron est ajoute par la feuille : les libelles n en portent plus */
.cta-button::after,
.cta-link::after,
.cta-final::after,
.content-section-main a[href*="machform"]::after {
    content: "\00a0\203A";
    font-weight: 700;
}

.cta-button:hover,  .cta-button:focus,
.cta-link:hover,    .cta-link:focus,
.cta-final:hover,   .cta-final:focus,
.content-section-main a[href*="machform"]:hover,
.content-section-main a[href*="machform"]:focus {
    background: var(--accent-dark);
    color: #fff !important;
    text-decoration: none !important;
    box-shadow: 0 10px 26px rgba(198, 40, 40, .36);
    transform: translateY(-2px);
}

.cta-button:active,
.cta-link:active,
.cta-final:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(198, 40, 40, .3);
}

/* dans la colonne laterale et les encadres, le bouton prend toute la largeur */
.sidebar-card .cta-button,
.sidebar-card .cta-link,
.sidebar-card a[href*="machform"],
.cta-box .cta-button,
.cta-box .cta-link,
.cta-box a[href*="machform"] {
    display: block;
    width: 100%;
    margin: 12px 0 0;
}

/* l appel qui ferme la page : le plus gros, centre, impossible a manquer */
.cta-final {
    display: block;
    width: 100%;
    max-width: 460px;
    margin: 8px auto 0;
    font-size: 18px;
    padding: 18px 30px;
    box-shadow: 0 10px 28px rgba(198, 40, 40, .32);
}

/* un lien vers le formulaire place AU FIL DU TEXTE reste un bouton, mais
   il ne doit pas casser le paragraphe qui l entoure */
.section-block p > .cta-button,
.section-block p > .cta-link,
.section-block p > a[href*="machform"] {
    margin: 4px 6px 4px 0;
    padding: 11px 20px;
    font-size: 15.5px;
    min-height: 0;
}

.cta-closing {
    background: linear-gradient(180deg, var(--surface) 0%, var(--surface-soft) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 30px 28px;
    margin-top: 26px;
    text-align: center;
}

.cta-closing h2,
.cta-closing h3 {
    margin: 0 0 10px;
    color: var(--text-strong);
    font-size: clamp(20px, 2.2vw, 26px);
}

.cta-closing p {
    color: var(--muted);
    max-width: 60ch;
    margin: 0 auto 16px;
    font-size: 17px;
}

/* --------------------------------------------------------------------------
   10. Colonne laterale
   -------------------------------------------------------------------------- */
.sidebar-card h3 {
    font-size: 19px;
    margin: 0 0 12px;
    color: var(--text-strong);
    font-weight: 700;
}

.sidebar-card h4 {
    font-size: 16px;
    margin: 18px 0 8px;
    color: var(--text-strong);
}

.sidebar-card p {
    font-size: 15px;
    color: var(--muted);
    margin-bottom: 12px;
    max-width: none;
}

.sidebar-card ul {
    margin: 0 0 12px;
    padding-left: 18px;
}

.sidebar-card li {
    margin-bottom: 8px;
    font-size: 15px;
    color: var(--text);
    max-width: none;
}

.sidebar-card .cta-link {
    display: block;
    text-align: center;
}

.mini-note {
    font-size: 13.5px;
    color: var(--muted);
    line-height: 1.6;
}

/* --------------------------------------------------------------------------
   11. FAQ
   -------------------------------------------------------------------------- */
#questions-frequentes h4 {
    position: relative;
    padding-left: 26px;
    margin-top: 24px;
}

#questions-frequentes h4::before {
    content: "?";
    position: absolute;
    left: 0;
    top: 1px;
    width: 19px;
    height: 19px;
    border-radius: 50%;
    background: var(--primary-wash);
    color: var(--primary-dark);
    font-size: 12.5px;
    font-weight: 700;
    line-height: 19px;
    text-align: center;
}

#questions-frequentes h4 + p {
    padding-left: 26px;
    color: var(--muted);
}

/* --------------------------------------------------------------------------
   12. Nuage de liens et fil d Ariane
   -------------------------------------------------------------------------- */
.link-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
}

.link-cloud a {
    display: inline-block;
    background: var(--surface-soft);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-pill);
    padding: 7px 14px;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--primary-dark);
}

.link-cloud a:hover,
.link-cloud a:focus {
    background: var(--primary-wash);
    border-color: #d7e4fb;
    text-decoration: none;
}

nav[aria-label="Fil d'Ariane"] {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 16px;
}

/* --------------------------------------------------------------------------
   13. Adaptation aux petits ecrans
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
    .grid-main { grid-template-columns: 1fr; }
    .sidebar-card { position: static; }
    .hero-card,
    .content-card,
    .sidebar-card { padding: 24px; }
    .page-shell { padding: 26px 0 56px; }
}

@media (max-width: 576px) {
    .hero-card,
    .content-card,
    .sidebar-card,
    .cta-closing { padding: 20px 18px; }

    .section-block p,
    .section-block li { font-size: 16.5px; }

    .facts-strip li { font-size: 13.5px; padding: 8px 13px; }

    /* sur telephone, chaque appel a l action prend toute la largeur */
    .cta-button,
    .cta-link,
    .cta-final,
    .content-section-main a[href*="machform"] {
        display: block;
        width: 100%;
        max-width: none;
        margin: 12px 0;
        text-align: center;
    }

    [class*="intro-header"] .intro-message h3 { font-size: 15px; }
}

/* --------------------------------------------------------------------------
   14. Preferences de l utilisateur et impression
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .cta-button,
    .cta-link,
    .cta-final,
    .content-section-main a[href*="machform"] { transition: none; }
    .cta-button:hover,
    .cta-link:hover,
    .cta-final:hover,
    .content-section-main a[href*="machform"]:hover { transform: none; }
}

@media print {
    [class*="intro-header"]::before { display: none; }
    .sidebar-card,
    .cta-closing { display: none !important; }
    /* a l impression, le bouton redevient une adresse lisible */
    .cta-button,
    .cta-link,
    .cta-final,
    .content-section-main a[href*="machform"] {
        background: none;
        color: #000 !important;
        box-shadow: none;
        padding: 0;
        font-weight: 700;
        min-height: 0;
    }
    .cta-button::after,
    .cta-link::after,
    .cta-final::after,
    .content-section-main a[href*="machform"]::after {
        content: " (" attr(href) ")";
        font-weight: 400;
        font-size: 12px;
    }
    .content-card,
    .hero-card {
        box-shadow: none;
        border: none;
        padding: 0;
    }
    .page-shell { padding: 0; }
    body { background: #fff; }
}
