/* Ékip Jeunesse, site de dons : CSS complet de l'onglet Avancée.
   Version 2.9.1 (2026-10-13)
   Historique :
   2.9.1 Plus d'ombre sous « Faire un don » : Catherine ne l'aime pas. Le bouton se
         distingue par sa taille et son fond plein, face à « Détails » à contour.
   2.9  Liste des campagnes : « Faire un don » devient le bouton principal (plus grand) ; « Détails » passe en fond blanc à contour orange. Demande de
        Catherine : le don est le geste qui compte, le détail reste accessible.
   2.8  Vérifié à l'écran sur le 19237 : le gabarit gagnait sur deux points.
        Menu : graisse et marges passent par ses variables (--desktop-navlink-*),
        d'où un « Nous joindre » en gras 900 et les autres en 500 ; tous les liens en 700.
        « Retour à la liste » : le gabarit le vise par .view-donation-campaign #site-wrapper,
        la 2.7 ne passait pas ; sélecteur renforcé.
   2.7  Page détail d'une campagne : « Faire un don » devient une vraie pilule orange
        (c'est un .btn-default, que la 2.0 ne visait pas) ; « Retour à la liste »
        en pilule à contour, comme « Retour au site principal ». Demande d'Andréanne, 2 oct.
        Arimo chargée par l'@import et posée sur body : l'onglet Guidé ne l'offre pas.
   2.6  Le menu Yapla redevient un menu : plus de pilule orange sur « Faire un don »
        (il ressemblait à un bouton) ; lien vert foncé, la page active soulignée en turquoise.
   2.5  « Retour au site principal » en bouton pilule à contour, la flèche glisse au survol.
        Menu Yapla : les couleurs passent par les variables du gabarit (--navlink-color),
        sans quoi la 2.2 ne s'appliquait pas ; « Faire un don » enfin en pilule orange.
   2.4  Le filet beige passe sous le menu Yapla au lieu de sous le logo.
   2.3  En-tête réduit (entete-reduit.html) : une ligne blanche, le logo au centre,
        « Retour au site principal » à gauche, aucun menu. Remplace la barre de retour.
   2.2  Haut de page : barre de retour pleine largeur, logo ramené à 72 px, marges
        de la ligne du logo réduites, menu Yapla en vert foncé, « Faire un don » en
        pilule orange ; logo et menu alignés quand ils partagent la même ligne.
   2.1  Pied de page pleine largeur : plus de cadre beige autour, la bande vert foncé
        va d'un bord à l'autre ; listes sans retrait.
   2.0  Fichier unique : CSS d'origine du site 19237 (sauvegarde du 2026-10-01), suivi de
        l'harmonisation 1.1. Retiré du CSS d'origine : un bouton HTML de démonstration
        (« Launch demo modal ») collé par erreur à la fin, sans effet.
   Testé d'abord sur le site 20851 « Test Catherine ». */

@import url('https://fonts.googleapis.com/css2?family=Anton&family=Arimo:wght@400;700&display=swap');

:root {
    --font-size-h1-mobile: 35px;
    --font-size-h1-tablet: 48px;
    --font-size-h1-desktop: 72px;
}

img {
    height: 100%;
    object-fit: cover;
}

h1, h2, h3 {
    font-family: "Anton", sans-serif;
    font-weight: 400;
    font-style: normal;

    margin-top: 0px;
}

.no-padding {
   --spacing-md-desktop: 0px;
}

.no-padding-bottom {
    padding-top: var(--spacing-md-desktop);
    padding-bottom: unset;
}

.flex {
    & .row {
        display: flex; 
        flex-wrap: wrap;
    }

    & .zone-html {
        padding-block: 32px;
    }
} 

.flex--align-center {
    & .row {  
        align-items: center;
    }
}

.max-680 {
    & img {
        max-height: 680px;
    }
}

.nav.navbar-nav {
    --desktop-navlink-fontweight: 500;
    li:last-child a {
        /* --navlink-color: red; */
        --desktop-navlink-fontweight: 900;
    }
}

.zone-contact .content.contact  {
    padding-top: unset;
}

#site-wrapper .line-footer .footer-classic.content {
    --footer-color: var(--font-color);

    & .footer-address, & .footer-email, & .footer-social {
        padding-block-start: 32px;
    }
}
#site-wrapper .line-footer .mod-header-logo {
    padding: unset;
}

.zone-event {
    & h3 {
        margin-block-start: 1em;
    }
}

.content.contact {
    & h1 {
        font-size: var(--font-size-h2-desktop);
    }
}

.row-fluid.row {
    & >*:not(:last-child) {
        margin-block-end: 2.4rem;
    }
}
.modal-open .popin.modal {
    background: rgba(255, 255, 255, 0.6);
}
.popin .modal-body .container {
    top: 50%;
    left: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    max-width: 500px;
    padding: 45px;
    background: white;
    box-shadow: 0 0 5px 3px rgba(0, 0, 0, 0.2);
}
.popin .modal-body .container .close {
    position: absolute;
    top: 30px;
    right: 30px;
}

/* ===== Harmonisation avec ekipjeunesse.ca ===== */

/* Ékip Jeunesse, site de dons 19237 : harmonisation avec ekipjeunesse.ca
   Version 1.1 (2026-09-28)
   Historique :
   1.0  En-tête et pied de page repris du site principal, boutons orange en pilule,
        texte vert foncé. Se colle APRÈS le CSS existant (css-existant-2026-09-28.css),
        qui reste en tête du fichier final.
   1.1  En-tête en grille à trois colonnes : le logo ne chevauche plus les liens,
        les liens ne passent plus sur deux lignes ; menu mobile sous 1320 px.
   Charte relevée sur ekipjeunesse.ca le 2026-09-28 : Anton (titres), Arimo (texte),
   turquoise #74b7b3, beige #e4dcd0, orange #ffb078, vert foncé #1b4043. */

:root {
  --ekj-dark: #1b4043;
  --ekj-text: #244a4d;
  --ekj-turquoise: #74b7b3;
  --ekj-beige: #e4dcd0;
  --ekj-orange: #ffb078;
  --ekj-white: #ffffff;
  --ekj-display: "Anton", "Arial Narrow", Impact, sans-serif;
  --ekj-body: "Arimo", Arial, Helvetica, sans-serif;
}

/* Texte courant : la couleur et la police du site principal. Arimo n'est pas offerte dans
   l'onglet Guidé : elle est chargée par l'@import du haut et posée ici. */
body { color: var(--ekj-text); font-family: var(--ekj-body); }
h1, h2, h3 { color: var(--ekj-dark); }

/* Boutons de la Plateforme (Faire un don, Détails) : orange en pilule comme sur le site principal.
   !important : le fond de .btn-primary est verrouillé par le gabarit 00050 (chaîne de :not). */
.btn-primary {
  background: var(--ekj-orange) !important;
  border-color: var(--ekj-orange) !important;
  color: var(--ekj-dark) !important;
  border-radius: 999px;
  font-weight: 700;
  padding: 12px 24px;
}
.btn-primary:hover { filter: brightness(.96); }

/* Bouton maison, en-tête et pied de page */
.ekj-btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--ekj-body); font-weight: 700; font-size: 14px; line-height: 1;
  padding: 11px 22px; border-radius: 999px;
  background: var(--ekj-orange); color: var(--ekj-dark) !important; text-decoration: none !important;
  white-space: nowrap; transition: transform .2s, filter .2s;
}
.ekj-btn:hover { filter: brightness(.96); transform: translateY(-1px); }

/* Bandeau de retour au site principal */
.ekj-retour { background: var(--ekj-beige); text-align: center; padding: 7px 16px; font-family: var(--ekj-body); font-size: 13px; }
.ekj-retour a { color: var(--ekj-dark); font-weight: 700; text-decoration: none; }
.ekj-retour a:hover { text-decoration: underline; }

/* En-tête */
.ekj-header { background: var(--ekj-white); font-family: var(--ekj-body); position: relative; z-index: 50; }
.ekj-header__inner {
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(max-content, 1fr); align-items: center;
  min-height: 88px; max-width: 1440px; margin: 0 auto; padding: 0 32px; gap: 32px;
}
.ekj-header__left, .ekj-header__right { display: flex; align-items: center; gap: 18px; }
.ekj-header__right { justify-content: flex-end; }
.ekj-header__logo { display: block; padding: 6px 0; }
.ekj-header__logo img { width: 88px; height: auto; display: block; }
.ekj-header__nav { display: flex; align-items: center; gap: 18px; }
.ekj-header__nav a { white-space: nowrap; font-size: 14px; color: var(--ekj-dark); text-decoration: none; position: relative; padding: 4px 0; }
.ekj-header__nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px;
  background: var(--ekj-turquoise); transition: right .25s;
}
.ekj-header__nav a:hover::after, .ekj-header__nav a:focus-visible::after { right: 0; }

/* Menus déroulants */
.ekj-dd { position: relative; }
.ekj-dd__toggle {
  display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; cursor: pointer;
  font-family: var(--ekj-body); font-weight: 700; font-size: 14px; color: var(--ekj-dark); padding: 8px 4px;
}
.ekj-dd__chev { font-size: 11px; transition: transform .25s; }
.ekj-dd:hover .ekj-dd__chev, .ekj-dd:focus-within .ekj-dd__chev { transform: rotate(180deg); }
.ekj-dd__menu {
  position: absolute; top: calc(100% + 4px); left: 0; min-width: 220px; background: var(--ekj-white);
  border-radius: 12px; box-shadow: 0 18px 40px rgba(27,64,67,.16); padding: 8px; display: grid; gap: 2px;
  opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .2s, transform .2s, visibility .2s;
}
.ekj-dd__menu::before { content: ""; position: absolute; left: 0; right: 0; top: -8px; height: 8px; }
.ekj-dd:hover .ekj-dd__menu, .ekj-dd:focus-within .ekj-dd__menu { opacity: 1; visibility: visible; transform: translateY(0); }
.ekj-dd__menu a { display: block; padding: 10px 14px; font-size: 14px; color: var(--ekj-text); border-radius: 8px; text-decoration: none; white-space: nowrap; }
.ekj-dd__menu a:hover { background: var(--ekj-beige); color: var(--ekj-dark); }

/* Menu mobile */
.ekj-mobile { display: none; position: relative; }
.ekj-mobile summary {
  list-style: none; cursor: pointer; font-weight: 700; font-size: 14px; color: var(--ekj-dark);
  border: 2px solid var(--ekj-dark); border-radius: 999px; padding: 8px 16px;
}
.ekj-mobile summary::-webkit-details-marker { display: none; }
.ekj-mobile__panel {
  position: absolute; right: 0; top: calc(100% + 10px); width: min(320px, 86vw); max-height: 75vh; overflow: auto;
  background: var(--ekj-white); border-radius: 12px; box-shadow: 0 18px 40px rgba(27,64,67,.2); padding: 12px;
}
.ekj-mobile__panel a { display: block; padding: 9px 12px; color: var(--ekj-text); text-decoration: none; border-radius: 8px; font-size: 15px; }
.ekj-mobile__panel a:hover { background: var(--ekj-beige); }
.ekj-mobile__titre { margin: 10px 12px 4px; font-family: var(--ekj-display); text-transform: uppercase; letter-spacing: .04em; font-size: 14px; color: var(--ekj-turquoise); }

@media (max-width: 1320px) {
  .ekj-header__inner { grid-template-columns: auto 1fr; padding: 0 20px; min-height: 72px; }
  .ekj-header__nav, .ekj-header__left { display: none; }
  .ekj-header__logo { grid-column: 1; grid-row: 1; }
  .ekj-header__right { grid-column: 2; grid-row: 1; gap: 12px; }
  .ekj-mobile { display: block; }
  .ekj-header__logo img { width: 60px; }
}

/* Pied de page */
.ekj-footer { background: var(--ekj-dark); color: var(--ekj-beige); border-top: 1px solid var(--ekj-orange); font-family: var(--ekj-body); text-align: left; }
.ekj-footer__inner {
  display: grid; grid-template-columns: 1.6fr 1fr 1.2fr; gap: 64px;
  max-width: 1280px; margin: 0 auto; padding: 64px 24px 48px;
}
.ekj-footer__wordmark {
  font-family: var(--ekj-display); text-transform: uppercase; letter-spacing: .01em;
  font-size: 34px; color: var(--ekj-white) !important; text-decoration: none !important;
}
.ekj-footer__tagline { margin: 12px 0 0; max-width: 36ch; opacity: .85; font-size: 15px; line-height: 1.45; }
.ekj-footer__social { display: flex; gap: 12px; margin-top: 20px; }
.ekj-footer__social a {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  border-radius: 50%; background: var(--ekj-beige); color: var(--ekj-dark) !important; font-size: 17px;
  text-decoration: none; transition: transform .2s, background .2s;
}
.ekj-footer__social a:hover { transform: translateY(-2px); background: var(--ekj-orange); }
.ekj-footer__heading { font-family: var(--ekj-display); text-transform: uppercase; font-size: 16px; letter-spacing: .04em; color: var(--ekj-white); margin: 0 0 16px; }
.ekj-footer__liens { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 15px; }
.ekj-footer__liens a { color: var(--ekj-beige) !important; text-decoration: none; }
.ekj-footer__liens a:hover { color: var(--ekj-white) !important; text-decoration: underline; }
.ekj-footer__don { margin-top: 20px; }
.ekj-footer__bas {
  max-width: 1280px; margin: 0 auto; padding: 18px 24px; border-top: 1px solid rgba(228,220,208,.18);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; opacity: .85;
}
.ekj-footer__bas a { color: var(--ekj-beige) !important; font-weight: 700; text-decoration: none; }
.ekj-footer__bas a:hover { text-decoration: underline; }

@media (max-width: 860px) {
  .ekj-footer__inner { grid-template-columns: 1fr; gap: 36px; padding-top: 48px; }
}

/* ===== 2.1 : pied de page pleine largeur ===== */
/* La ligne de pied de page du gabarit a un fond beige et 90 px de marge : on les retire
   quand elle porte notre pied de page, pour que la bande vert foncé touche les bords. */
#site-wrapper .line-footer:has(.ekj-footer) {
  padding: 0 !important;
  background: var(--ekj-dark) !important;
}
#site-wrapper .line-footer:has(.ekj-footer) .container {
  width: 100%;
  max-width: none;
  padding: 0;
}
#site-wrapper .line-footer:has(.ekj-footer) .row { margin: 0; }
#site-wrapper .line-footer .zone-html:has(.ekj-footer) { padding: 0; }
#site-wrapper .ekj-footer__inner { max-width: 1200px; margin: 0 auto; }
#site-wrapper .ekj-footer__bas { max-width: 1200px; margin: 0 auto; }
#site-wrapper .ekj-footer__liens { list-style: none; padding-left: 0; margin: 0; }

/* ===== 2.2 : haut de page ===== */
/* Barre de retour : pleine largeur, comme le pied de page. */
#site-wrapper .line:has(.ekj-retour) { padding: 0 !important; }
#site-wrapper .line:has(.ekj-retour) .container { width: 100%; max-width: none; padding: 0; }
#site-wrapper .line:has(.ekj-retour) .row { margin: 0; }
#site-wrapper .zone-html:has(.ekj-retour) { padding: 0; }

/* Ligne du logo : 50 px de marge et un logo de 200 px, c'était trop haut. */
#site-wrapper .line:has(.zone-header) { padding: 14px 0 !important; }
#site-wrapper .zone-header img.mod-header-logo { width: auto; height: 72px; max-height: 72px; object-fit: contain; }

/* Menu Yapla : la couleur et la police du site principal. */
#site-wrapper .zone-menu .nav.navbar-nav > li > a {
  color: var(--ekj-dark);
  font-family: var(--ekj-body);
  font-size: 15px;
  font-weight: 500;
}
#site-wrapper .zone-menu .nav.navbar-nav > li > a:hover { color: var(--ekj-turquoise); }

/* Quand le logo et le menu partagent la même ligne : alignés au centre, menu à droite. */
#site-wrapper .line:has(.zone-header):has(.zone-menu) .row { display: flex; align-items: center; flex-wrap: wrap; }
#site-wrapper .line:has(.zone-header):has(.zone-menu) .zone-menu .nav.navbar-nav {
  display: flex; justify-content: flex-end; align-items: center; gap: 18px; float: none;
}

/* ===== 2.3 : en-tête réduit ===== */
#site-wrapper .line:has(.ekj-top) { padding: 0 !important; }
#site-wrapper .line:has(.ekj-top) .container { width: 100%; max-width: none; padding: 0; }
#site-wrapper .line:has(.ekj-top) .row { margin: 0; }
#site-wrapper .zone-html:has(.ekj-top) { padding: 0; }
.ekj-top { background: var(--ekj-white); font-family: var(--ekj-body); }
.ekj-top__inner {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  max-width: 1200px; margin: 0 auto; padding: 10px 24px; min-height: 92px;
}
.ekj-top__retour { justify-self: start; color: var(--ekj-dark) !important; font-size: 15px; font-weight: 700; text-decoration: none; }
.ekj-top__retour:hover { text-decoration: underline; }
.ekj-top__logo { display: block; }
.ekj-top__logo img { display: block; width: 72px; height: 72px; object-fit: contain; }
@media (max-width: 600px) {
  .ekj-top__inner { min-height: 72px; padding: 8px 16px; }
  .ekj-top__retour { font-size: 13px; }
  .ekj-top__logo img { width: 56px; height: 56px; }
}

/* ===== 2.4 : le filet sous le menu ===== */
#site-wrapper .line-menu { border-bottom: 1px solid var(--ekj-beige); }

/* ===== 2.5 : le bouton de retour et le menu ===== */
.ekj-top__retour {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1.5px solid var(--ekj-dark); border-radius: 999px;
  padding: 8px 18px; font-size: 14px; line-height: 1;
  transition: background-color .15s ease;
}
.ekj-top__retour span { display: inline-block; transition: transform .15s ease; }
.ekj-top__retour:hover { background: var(--ekj-beige); text-decoration: none; }
.ekj-top__retour:hover span { transform: translateX(-3px); }
@media (max-width: 600px) { .ekj-top__retour { padding: 6px 12px; font-size: 12px; } }

/* Le gabarit colore le menu par ses variables : on les redéfinit dans la zone. */
#site-wrapper .zone-menu {
  --navlink-color: var(--ekj-dark);
  --navlink-color-active: var(--ekj-dark);
  --navlink-background: transparent;
}

/* ===== 2.6 : le menu reste un menu ===== */
#site-wrapper .zone-menu .nav.navbar-nav > li > a { padding: 18px 0; margin-right: 24px; border-bottom: 2px solid transparent; }
#site-wrapper .zone-menu .nav.navbar-nav > li.active > a { border-bottom-color: var(--ekj-turquoise); }

/* ===== 2.7 : la page détail d'une campagne ===== */
/* « Faire un don » : un .btn-default que le gabarit 00050 dessine en lien. */
.don .campaign-details-cta a.campaign-make-donations,
.don .campaign-details-cta a.campaign-make-donations:visited {
  display: inline-flex !important; align-items: center; justify-content: center;
  background: var(--ekj-orange) !important; border: 2px solid var(--ekj-orange) !important;
  color: var(--ekj-dark) !important; border-radius: 999px !important;
  font-family: var(--ekj-body); font-weight: 700; font-size: 16px; line-height: 1;
  padding: 14px 32px !important; text-decoration: none !important; box-shadow: none !important;
  transition: transform .2s, filter .2s;
}
.don .campaign-details-cta a.campaign-make-donations:hover,
.don .campaign-details-cta a.campaign-make-donations:focus {
  filter: brightness(.96); transform: translateY(-1px);
  background: var(--ekj-orange) !important; color: var(--ekj-dark) !important;
}
/* « Retour à la liste » : pilule à contour, la flèche glisse au survol. */
.don a.campaign-back-to-list {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 16px;
  border: 1.5px solid var(--ekj-dark); border-radius: 999px;
  padding: 8px 18px; font-family: var(--ekj-body); font-size: 14px; font-weight: 700; line-height: 1;
  color: var(--ekj-dark) !important; text-decoration: none !important;
  transition: background-color .15s ease;
}
.don a.campaign-back-to-list::before { content: "\2190"; display: inline-block; transition: transform .15s ease; }
.don a.campaign-back-to-list:hover { background: var(--ekj-beige); }
.don a.campaign-back-to-list:hover::before { transform: translateX(-3px); }

/* ===== 2.8 : ce que le gabarit 00050 reprenait ===== */
/* Menu : même graisse et mêmes marges pour tous les liens, par les variables du gabarit. */
#site-wrapper .zone-menu {
  --desktop-navlink-fontweight: 700;
  --mobile-navlink-fontweight: 700;
  --desktop-navlink-padding: 18px 0;
}
#site-wrapper .zone-menu ul.nav > li > a { font-weight: 700 !important; }

/* « Retour à la liste » : la pilule à contour de la 2.7, au poids du sélecteur du gabarit. */
.view-donation-campaign #site-wrapper .don a.back-to-list.campaign-back-to-list {
  display: inline-flex !important; align-items: center; gap: 8px;
  border: 1.5px solid var(--ekj-dark) !important; border-radius: 999px !important;
  padding: 8px 18px !important; background: transparent !important;
  font-family: var(--ekj-body); font-size: 14px; font-weight: 700 !important; line-height: 1;
  color: var(--ekj-dark) !important; text-decoration: none !important;
}
.view-donation-campaign #site-wrapper .don a.back-to-list.campaign-back-to-list:hover { background: var(--ekj-beige) !important; }

/* ===== 2.9 : la liste des campagnes, un bouton principal ===== */
/* Les deux boutons sont des .btn-primary : « Détails » se reconnaît à son lien /detail/. */
#site-wrapper a.btn-primary[href*="/donate/"] {
  padding: 14px 30px !important; font-size: 16px !important;
  box-shadow: none !important;
}
#site-wrapper a.btn-primary[href*="/detail/"] {
  background: var(--ekj-white) !important;
  border: 2px solid var(--ekj-orange) !important;
  color: var(--ekj-dark) !important;
  font-weight: 700; box-shadow: none !important;
}
#site-wrapper a.btn-primary[href*="/detail/"]:hover { background: var(--ekj-beige) !important; filter: none; }
