/* AF-THEME v3.3 (2026-11) - if you can read this line at /css/theme.css, the new design stylesheet is live */
/* ==========================================================================
   Africa Franchise - 2026 site redesign  (css/theme.css)
   Load order: stylesheet.css -> refresh.css -> theme.css
   Brand palette unchanged: green var(--af-green) / var(--af-green-dark) / var(--af-green-light) / var(--af-green-mid),
   CTA red var(--af-red) / var(--af-red-dark), text #414042, greys #939598 #d1d3d4 #e6e7e8.
   Every rule is scoped to body.af-theme (added by the new main.cfm), so
   popups and admin pages are not affected.
   ========================================================================== */

:root {
  --af-green: #058e30;
  --af-green-dark: #07842A;
  --af-green-light: #2FC158;
  --af-green-mid: #4FAF6A;
  --af-green-soft: #e8f5ec;
  --af-green-wash: #f4f8f5;
  --af-mint: #b8f0c8;
  --af-brand-dark: #0d3b22;
  --af-red: #dd5244;
  --af-red-dark: #cc4b3e;
  --af-text: #414042;
  --af-text-soft: #5f6062;
  --af-muted: #939598;
  --af-line: #e6e7e8;
  --af-input: #d1d3d4;
  --af-radius: 10px;
  --af-radius-lg: 16px;
  --af-shadow-sm: 0 1px 3px rgba(0,0,0,.06);
  --af-shadow: 0 8px 24px rgba(0,0,0,.08);
  --af-shadow-lg: 0 18px 48px rgba(0,0,0,.14);
  --af-font: 'lato', Arial, Helvetica, sans-serif;
  --af-max: 1240px;
}

/* --------------------------------------------------------------------------
   0. Base & layout
   -------------------------------------------------------------------------- */
body.af-theme { font-family: var(--af-font); font-size: 15px; line-height: 1.65; color: var(--af-text); background: #fff; }
body.af-theme .conteneur { max-width: var(--af-max); margin-left: auto; margin-right: auto; }
body.af-theme a { color: var(--af-green); }
body.af-theme a:hover { color: var(--af-green-light); }
body.af-theme a.button:not(.btn3), body.af-theme a.button:not(.btn3):hover,
body.af-theme a.button:not(.btn3):focus, body.af-theme button.button { color: #fff; }
body.af-theme .af-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

body.af-theme h1, body.af-theme .h1 {
  font: 900 clamp(26px, 3.2vw, 38px)/1.15 var(--af-font);
  color: var(--af-green); text-transform: none; letter-spacing: -.4px; margin: 0 0 .6em;
}
body.af-theme h2 { font-family: var(--af-font); font-weight: 900; letter-spacing: -.2px; line-height: 1.25; }
body.af-theme h3 { font-family: var(--af-font); line-height: 1.3; }
body.af-theme p.intro { font-size: 18px; line-height: 1.6; color: var(--af-text-soft); }

/* Old sticky-footer hack used fixed 182px heights; the new footer is taller */
body.af-theme .contenu_wrap { margin: 0 !important; height: auto !important; min-height: 60vh; }
body.af-theme .contenu_push { display: none; }
body.af-theme #conteneurFt { height: auto !important; }
body.af-theme #conteneurBd { padding-bottom: 56px; }
body.af-theme.pAccueil #conteneurBd { padding-bottom: 0; }
body.af-theme #main { padding-top: 8px; }

/* --------------------------------------------------------------------------
   1. Top bar
   -------------------------------------------------------------------------- */
.af-topbar { background: var(--af-green-dark); color: var(--af-green-soft); font-size: 13px; line-height: 1.3; }
.af-topbar__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; padding: 0 20px; }
.af-topbar__tag { margin: 0; }
.af-topbar__tag i { color: var(--af-mint); margin-right: 6px; }
.af-topbar__links { display: flex; align-items: center; gap: 22px; list-style: none; margin: 0; padding: 0; }
.af-topbar__links a { color: #fff !important; font-weight: 700; text-decoration: none; }
.af-topbar__links a:hover { color: var(--af-mint) !important; }
.af-topbar .af-lang a { background: rgba(255,255,255,.14); padding: 4px 10px; border-radius: 20px; }
@media (max-width: 766px) {
  .af-topbar__tag { display: none; }
  .af-topbar__in { justify-content: center; }
  .af-topbar__links { gap: 16px; }
}

/* --------------------------------------------------------------------------
   2. Header
   -------------------------------------------------------------------------- */
body.af-theme #conteneurHd { position: relative; z-index: 1000; background: #fff; border-bottom: 1px solid var(--af-line); transition: box-shadow .2s ease; }
body.af-theme #conteneurHd.af-scrolled, body.af-theme.enteteFixe #conteneurHd { box-shadow: 0 6px 24px rgba(0,0,0,.08); }
body.af-theme.enteteFixe #conteneurHd { position: fixed; top: 0; left: 0; right: 0; }

body.af-theme .entete { display: flex; align-items: center; gap: 20px; height: 64px; padding: 0 20px; position: relative; border: 0; }
body.af-theme #logo { position: static; display: flex; align-items: center; flex: none; }
body.af-theme #logo img { width: 190px; height: auto; margin: 0; }
body.af-theme .btnMenuMobile { position: static; margin-left: auto; order: 5; flex: none; }
body.af-theme.enteteFixe #conteneurBd { padding-top: 64px; }

@media only screen and (min-width: 767px) {
  body.af-theme .entete { height: 76px; }
  body.af-theme #logo img { width: 230px; }
  body.af-theme.enteteFixe #conteneurBd { padding-top: 76px; }
}

/* Search + alerts (visible from tablet landscape) */
body.af-theme #menuSec { display: none; order: 4; position: static; margin: 0 0 0 auto; }
@media only screen and (min-width: 1023px) {
  body.af-theme #menuSec { display: block; }
  body.af-theme .btnMenuMobile { margin-left: 8px; }
}
body.af-theme #menuSec > ul { display: flex; align-items: center; gap: 12px; list-style: none; margin: 0; padding: 0; float: none; }
body.af-theme #menuSec > ul > li { float: none; margin: 0; }
body.af-theme .af-search fieldset { position: relative; display: flex; align-items: center; margin: 0; padding: 0; border: 0; }
body.af-theme .af-search input[type=text] {
  width: 240px; height: 42px; padding: 0 44px 0 16px; margin: 0;
  border: 1px solid var(--af-input); border-radius: 999px; background: var(--af-green-wash);
  font: 14px var(--af-font); color: var(--af-text); transition: width .2s ease, border-color .15s, box-shadow .15s, background .15s;
}
body.af-theme .af-search input[type=text]:focus { width: 280px; background: #fff; border-color: var(--af-green-light); box-shadow: 0 0 0 3px color-mix(in srgb, var(--af-green-light) 20%, transparent); outline: 0; }
body.af-theme .af-search button.button {
  position: absolute; right: 4px; top: 4px; width: 34px; height: 34px; padding: 0; margin: 0;
  border: 0; border-radius: 50%; background: var(--af-green); color: #fff; box-shadow: none; font-size: 14px; line-height: 34px;
}
body.af-theme .af-search button.button:hover { background: var(--af-green-light); transform: none; }
body.af-theme #menuSec .af-cta { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; font-size: 14px; white-space: nowrap; margin: 0; }

/* Desktop main navigation */
@media only screen and (min-width: 1200px) {
  body.af-theme .entete { height: 84px; gap: 28px; }
  body.af-theme #logo img { width: 250px; }
  body.af-theme.enteteFixe #conteneurBd { padding-top: 84px; }
  body.af-theme .btnMenuMobile { display: none; }
  body.af-theme #menu { order: 2; flex: 1 1 auto; }
  body.af-theme #menuSec { margin-left: 0; }
  body.af-theme .af-search input[type=text] { width: 200px; }
  body.af-theme .af-search input[type=text]:focus { width: 240px; }

  body.af-theme .menuPrincipal_nav > ul { display: flex !important; justify-content: center; gap: 2px; float: none; margin: 0; }
  body.af-theme .menuPrincipal_nav > ul > li { float: none; }
  body.af-theme .menuPrincipal_nav > ul > li.noDesk { display: none; }
  body.af-theme .menuPrincipal_nav > ul > li > a {
    position: relative; display: flex; align-items: center; gap: 6px; height: 84px; margin: 0; padding: 0 13px;
    font: 700 15px/1 var(--af-font); color: var(--af-text); white-space: nowrap;
  }
  body.af-theme .menuPrincipal_nav > ul > li > a:hover,
  body.af-theme .menuPrincipal_nav > ul > li:hover > a,
  body.af-theme .menuPrincipal_nav > ul > li > a.actif { color: var(--af-green); }
  body.af-theme .menuPrincipal_nav > ul > li > a::after {
    content: ""; position: absolute; left: 14px; right: 14px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0;
    background: var(--af-green); transform: scaleX(0); transition: transform .2s ease;
  }
  body.af-theme .menuPrincipal_nav > ul > li > a.actif::after,
  body.af-theme .menuPrincipal_nav > ul > li:hover > a::after { transform: scaleX(1); }
  /* chevron instead of the old icon-font arrow */
  body.af-theme .menuPrincipal_nav .avecSousMenu > a:before {
    content: ""; position: static; order: 2; width: 7px; height: 7px; margin: -4px 0 0 2px; font: inherit;
    border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); opacity: .6;
  }
  body.af-theme .menuPrincipal_nav > ul > li > ul {
    display: block; visibility: hidden; opacity: 0; transform: translateY(8px);
    position: absolute; top: 100%; left: 0; width: 270px; padding: 10px 0; margin: 0;
    background: #fff; border: 0; border-top: 3px solid var(--af-green); border-radius: 0 0 var(--af-radius-lg) var(--af-radius-lg);
    box-shadow: var(--af-shadow-lg); transition: opacity .15s ease, transform .15s ease, visibility .15s;
  }
  body.af-theme .menuPrincipal_nav > ul > li:hover > ul,
  body.af-theme .menuPrincipal_nav > ul > li:focus-within > ul { visibility: visible; opacity: 1; transform: translateY(0); }
  body.af-theme .menuPrincipal_nav > ul > li > ul > li > a {
    display: block; padding: 10px 22px; font: 700 14px/1.35 var(--af-font); color: var(--af-text);
    border-left: 3px solid transparent;
  }
  body.af-theme .menuPrincipal_nav > ul > li > ul > li > a:hover { background: var(--af-green-soft); color: var(--af-green-dark); border-left-color: var(--af-green); }
}

@media only screen and (min-width: 1200px) and (max-width: 1399px) {
  body.af-theme #menuSec .af-cta { display: none; }          /* alerts stay in the top of the footer and the Resources menu */
  body.af-theme #logo img { width: 220px; }
  body.af-theme .af-search input[type=text] { width: 180px; }
  body.af-theme .af-search input[type=text]:focus { width: 210px; }
}

/* --------------------------------------------------------------------------
   3. Breadcrumb & search panel
   -------------------------------------------------------------------------- */
body.af-theme .filAriane { background: var(--af-green-wash); border-bottom: 1px solid var(--af-line); font-size: 13px; }
body.af-theme .filAriane ul { margin: 0; padding: 12px 20px; }
body.af-theme .filAriane a { color: var(--af-green); font-weight: 700; }

body.af-theme #conteneurRech { background: linear-gradient(120deg, var(--af-green) 0%, var(--af-green-mid) 100%); padding: 28px 0; }
body.af-theme #conteneurRech #formRecherche {
  background: #fff; border-radius: var(--af-radius-lg); box-shadow: var(--af-shadow-lg); padding: 20px 22px;
  max-width: var(--af-max); margin: 0 auto;
}
body.af-theme #conteneurRech label { color: var(--af-green); font-size: 13px; text-transform: uppercase; letter-spacing: .4px; }
body.af-theme #conteneurRech .button { border-radius: var(--af-radius); }

/* --------------------------------------------------------------------------
   4. Home - hero
   -------------------------------------------------------------------------- */
body.af-theme #conteneurTexteAcc {
  position: relative; display: flex; align-items: center; height: auto; min-height: 440px; overflow: hidden;
  background-size: cover !important; background-position: center !important;
}
body.af-theme #conteneurTexteAcc::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(100deg, color-mix(in srgb, var(--af-green) 94%, transparent) 0%, color-mix(in srgb, var(--af-green) 82%, transparent) 42%, color-mix(in srgb, var(--af-green-dark) 25%, transparent) 100%);
}
body.af-theme #conteneurTexteAcc > * { position: relative; z-index: 1; width: 100%; }
body.af-theme #conteneurTexteAcc .blocTxtAcc {
  position: relative !important; left: auto !important; bottom: auto !important; float: none !important;
  max-width: 640px; margin: 0; padding: 64px 24px; text-align: left;
}
body.af-theme #conteneurTexteAcc .blocTxtAcc p { font-size: 18px; line-height: 1.65; color: #fff; margin: 0 0 14px; }
body.af-theme #conteneurTexteAcc .blocTxtAcc p strong {
  display: block; margin-bottom: 14px; font: 900 clamp(30px, 4.4vw, 50px)/1.08 var(--af-font); letter-spacing: -.8px; color: #fff;
}
body.af-theme #conteneurTexteAcc .blocTxtAcc .button { margin-top: 10px; padding: 15px 26px; font-size: 16px; }
body.af-theme #conteneurTexteAcc figure img { display: none; }
@media only screen and (min-width: 1023px) {
  body.af-theme #conteneurTexteAcc { min-height: 520px; }
  body.af-theme #conteneurTexteAcc .blocTxtAcc { padding: 90px 24px; margin-left: max(0px, calc((100% - var(--af-max)) / 2)); }
  body.af-theme #conteneurTexteAcc figure img {
    display: block; position: absolute; left: auto; right: 7%; bottom: 0; width: auto; height: 92%; max-height: 480px;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,.25));
  }
}

/* --------------------------------------------------------------------------
   5. Home - section titles, ads, franchise logos
   -------------------------------------------------------------------------- */
body.af-theme #conteneurFranchiseAcc,
body.af-theme #conteneurFranchiseVedetteAcc .conteneur { padding-top: 64px; padding-bottom: 48px; }
body.af-theme #conteneurFranchiseAcc h2,
body.af-theme #conteneurFranchiseVedetteAcc h2,
body.af-theme #conteneurMediaAcc h2 {
  font: 900 clamp(24px, 3vw, 34px)/1.15 var(--af-font); text-align: center; color: var(--af-text); margin: 0 auto 10px; padding: 0 20px;
}
body.af-theme #conteneurFranchiseAcc h2::after,
body.af-theme #conteneurFranchiseVedetteAcc h2::after {
  content: ""; display: block; width: 56px; height: 4px; border-radius: 4px; background: var(--af-green); margin: 16px auto 34px;
}
body.af-theme #pub img { border: 0; border-radius: var(--af-radius-lg); box-shadow: var(--af-shadow); }

body.af-theme ul.liLogo {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px;
  list-style: none; max-width: var(--af-max); margin: 0 auto; padding: 0 20px;
}
body.af-theme ul.liLogo::before, body.af-theme ul.liLogo::after { display: none; }
body.af-theme ul.liLogo li,
body.af-theme ul.liLogo li:nth-of-type(n) {
  float: none; width: auto; max-width: none; height: 132px; margin: 0; clear: none;
  background: #fff; border: 1px solid var(--af-line); border-radius: var(--af-radius-lg); box-shadow: var(--af-shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
body.af-theme ul.liLogo li:hover { transform: translateY(-4px); box-shadow: var(--af-shadow); border: 1px solid var(--af-green-light); }
body.af-theme ul.liLogo li img { padding: 18px; filter: grayscale(15%); transition: filter .2s; }
body.af-theme ul.liLogo li:hover img { filter: none; }
@media only screen and (min-width: 767px) { body.af-theme ul.liLogo { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } }
@media only screen and (min-width: 1023px) { body.af-theme ul.liLogo { grid-template-columns: repeat(6, minmax(0, 1fr)); } body.af-theme ul.liLogo li { height: 140px; } }
body.af-theme #conteneurFranchiseAcc a.btn2 { margin-top: 28px; }
body.af-theme .txtBas { color: var(--af-muted); }

/* --------------------------------------------------------------------------
   6. Home - news / videos / events blocks
   -------------------------------------------------------------------------- */
body.af-theme #conteneurMediaAcc { display: flow-root; background: linear-gradient(135deg, var(--af-green) 0%, var(--af-green-mid) 100%); padding: 64px 0; }
body.af-theme #conteneurMediaAcc .conteneur { display: flow-root; padding: 0 20px; }
body.af-theme #conteneurMediaAcc h2, body.af-theme #conteneurMediaAcc .blocTxtAcc,
body.af-theme #conteneurMediaAcc .blocTxtAcc p { color: #fff; }
body.af-theme .bloc {
  border: 0; border-radius: var(--af-radius-lg); background: #fff; box-shadow: var(--af-shadow-lg); padding: 26px;
}
body.af-theme .bloc h3 { font: 400 22px/1.2 var(--af-font); color: var(--af-text); }
body.af-theme .bloc h3 strong { color: var(--af-green); font-weight: 900; }
body.af-theme .bloc ul li { border-top-color: var(--af-line) !important; }
body.af-theme .bloc figure { border: 0; border-radius: 10px; }
body.af-theme .bloc h4 a { font-weight: 700; color: var(--af-text); line-height: 1.35; }
body.af-theme .bloc h4 a:hover { color: var(--af-green); }
body.af-theme .bloc a.tous, body.af-theme .bloc .suite {
  display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-weight: 900; color: var(--af-green);
}
body.af-theme .bloc a.tous::after { content: "\2192"; transition: transform .15s; }
body.af-theme .bloc a.tous:hover::after { transform: translateX(3px); }

/* --------------------------------------------------------------------------
   7. Franchise cards  (ul.liItem - listings, top 10, consultants, search)
   -------------------------------------------------------------------------- */
body.af-theme ul.liItem {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 24px;
  list-style: none; margin: 0; padding: 0;
}
body.af-theme ul.liItem::before, body.af-theme ul.liItem::after { display: none; }
body.af-theme ul.liItem > li,
body.af-theme ul.liItem > li:nth-of-type(n) {
  display: flex; flex-direction: column; float: none; clear: none; width: auto; max-width: none; min-height: 0; margin: 0;
  padding: 18px; background: #fff; border: 1px solid var(--af-line); border-radius: var(--af-radius-lg); box-shadow: var(--af-shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
body.af-theme ul.liItem > li:hover { transform: translateY(-4px); box-shadow: var(--af-shadow); border-color: color-mix(in srgb, var(--af-green-light) 60%, transparent); }
body.af-theme ul.liItem figure {
  height: 150px; margin: 0 0 16px; padding: 0; border: 0; border-radius: 12px; background: var(--af-green-wash);
}
body.af-theme ul.liItem figure img { padding: 16px; }
body.af-theme ul.liItem .itemTexte { display: flex; flex-direction: column; flex: 1 1 auto; }
body.af-theme ul.liItem .itemTexte h2 { margin: 0 0 8px; }
body.af-theme ul.liItem .itemTexte h2 a { font: 900 19px/1.25 var(--af-font); color: var(--af-text); }
body.af-theme ul.liItem .itemTexte h2:hover a { color: var(--af-green); }
body.af-theme ul.liItem .itemTexte p { font-size: 14px; line-height: 1.55; color: var(--af-text-soft); margin: 0 0 10px; }
body.af-theme ul.liItem .itemTexte p a { color: var(--af-text-soft); }
body.af-theme ul.liItem strong { color: var(--af-text); }
body.af-theme ul.liItem .button { margin-top: auto; width: 100%; text-align: center; justify-content: center; }
body.af-theme .vide { padding: 40px; text-align: center; background: var(--af-green-wash); border-radius: var(--af-radius-lg); color: var(--af-text-soft); }

/* Star clients keep their own look */
body.af-theme .clientEtoile ul.liItem > li { align-items: center; text-align: center; }

/* --------------------------------------------------------------------------
   8. Browse page blocks (#parcourir), categories, A-Z directory
   -------------------------------------------------------------------------- */
body.af-theme #parcourir { background: var(--af-green-wash); padding: 56px 0; margin-bottom: 48px; }
body.af-theme #parcourir .bloc { box-shadow: var(--af-shadow); max-height: none; }
body.af-theme #parcourir .bloc li a { color: var(--af-text); font-weight: 700; }
body.af-theme #parcourir .bloc li a:hover { color: var(--af-green); }

body.af-theme .menuCat ul a { display: inline-block; padding: 5px 0; color: var(--af-text); font-weight: 700; }
body.af-theme .menuCat ul a::before { content: "\203A"; color: var(--af-green); margin-right: 8px; font-weight: 900; }
body.af-theme .menuCat ul a:hover { color: var(--af-green); }
body.af-theme .menuCat h2 a { color: var(--af-green); }

body.af-theme .liLettre { display: flex; flex-wrap: wrap; gap: 6px; margin: 32px 0; padding: 0; }
body.af-theme .liLettre li, body.af-theme .liLettre li.tous { float: none; display: block; width: auto; height: auto; margin: 0; }
body.af-theme .liLettre li a {
  display: flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 10px;
  font: 900 15px/1 var(--af-font); border-radius: 10px; background: var(--af-green-soft); color: var(--af-green-dark);
  transition: background .15s, color .15s, transform .15s;
}
body.af-theme .liLettre li.tous a { height: 40px; line-height: 1; margin: 0; padding: 0 16px; }
body.af-theme .liLettre li a:hover, body.af-theme .liLettre li a.actif { background: var(--af-green) !important; color: #fff !important; transform: translateY(-1px); }
body.af-theme .liLettre li a.disabled { background: #f1f2f2; color: #c4c6c8; transform: none; }

/* --------------------------------------------------------------------------
   9. Franchise detail (02_001)
   -------------------------------------------------------------------------- */
body.af-theme #detailFranchise h1, body.af-theme #detailFranchise span.h1 { border: 0; padding: 0; margin: 0 0 18px; }
body.af-theme #detailFranchise figure.principal img { border-radius: var(--af-radius-lg); box-shadow: var(--af-shadow); }
body.af-theme #detailFranchise p.intro { font-size: 19px; color: var(--af-text-soft); }
body.af-theme #detailFranchise #colDroite {
  background: #fff; border: 1px solid var(--af-line); border-radius: var(--af-radius-lg); box-shadow: var(--af-shadow);
  padding: 22px !important;
}
@media only screen and (min-width: 1023px) {
  body.af-theme #detailFranchise #colDroite { position: sticky; top: 104px; align-self: flex-start; }
}
body.af-theme #detailFranchise figure.logo { border: 0; margin: 0 0 18px; background: var(--af-green-wash); border-radius: 12px; }
body.af-theme #detailFranchise figure.logo img { margin: 24px auto; max-height: 110px; }
body.af-theme #detailFranchise h3 { font-size: 18px; color: var(--af-text); margin-top: 8px; }
body.af-theme #detailFranchise table.boxShadow { border: 0; border-radius: 12px; box-shadow: none; background: var(--af-green-wash); overflow: hidden; }
body.af-theme #detailFranchise table.boxShadow caption { text-align: left; font-size: 13px; text-transform: uppercase; letter-spacing: .5px; color: var(--af-green); padding: 0 0 10px; border: 0; }
body.af-theme #detailFranchise table.boxShadow th,
body.af-theme #detailFranchise table.boxShadow td { padding: 12px 14px; border: 0; border-bottom: 1px solid #fff; vertical-align: top; }
body.af-theme #detailFranchise table.boxShadow th { color: var(--af-muted); font-weight: 700; font-size: 13px; width: 42%; }
body.af-theme #detailFranchise table.boxShadow td { color: var(--af-text); font-weight: 900; }
body.af-theme #detailFranchise a.demande { padding: 14px 22px; font-size: 16px; }
body.af-theme .boiteBtn, body.af-theme #detailFranchise .boiteBtn {
  border: 0; border-radius: var(--af-radius-lg); padding: 28px !important; margin-top: 40px;
  background: linear-gradient(120deg, var(--af-green) 0%, var(--af-green-mid) 100%); color: #fff;
}
body.af-theme .boiteBtn h2 { color: #fff; font-size: 22px; margin: 0 0 16px; }
body.af-theme #detailFranchise .incTinyMce, body.af-theme #detailFranchise .p_lr { line-height: 1.75; }

/* Request bar (sticky "N franchises selected") */
body.af-theme #demandeInfoFt, body.af-theme #demandeInfoFtDetail {
  background: linear-gradient(90deg, var(--af-green-dark) 0%, var(--af-green) 100%); box-shadow: 0 -8px 28px rgba(0,0,0,.18);
}
body.af-theme #demandeInfoFt h3 { font: 900 16px/1.3 var(--af-font); color: #fff; }
body.af-theme #demandeInfoFt .btn2 { box-shadow: 0 4px 14px rgba(0,0,0,.2); }

/* --------------------------------------------------------------------------
   10. News / articles / videos / events lists (ul.liMedia) and details
   -------------------------------------------------------------------------- */
body.af-theme ul.liMedia {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px;
  list-style: none; margin: 0; padding: 0;
}
body.af-theme ul.liMedia::before, body.af-theme ul.liMedia::after { display: none; }
body.af-theme ul.liMedia > li, body.af-theme ul.liMedia > li:nth-of-type(n) {
  float: none; clear: none; display: flex; flex-direction: column; width: auto; max-width: none; margin: 0; padding: 0;
  background: #fff; border: 1px solid var(--af-line); border-radius: var(--af-radius-lg); overflow: hidden; box-shadow: var(--af-shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
body.af-theme ul.liMedia > li:hover { transform: translateY(-4px); box-shadow: var(--af-shadow); }
body.af-theme ul.liMedia figure { position: relative; height: 200px; max-height: none; margin: 0; border: 0; overflow: hidden; background: var(--af-green-wash); }
body.af-theme ul.liMedia figure img {
  position: static !important; width: 100% !important; height: 100% !important; max-height: none !important;
  object-fit: cover; margin: 0 !important; top: auto !important; transition: transform .4s ease;
}
body.af-theme ul.liMedia > li:hover figure img { transform: scale(1.05); }
body.af-theme ul.liMedia li.vid figure { background: #000; }
body.af-theme ul.liMedia li.vid figure img { object-fit: contain; }
body.af-theme ul.liMedia li figure a .icon-ic-play { margin: 0; transform: translate(-50%, -50%); box-shadow: 0 6px 18px rgba(0,0,0,.3); }
body.af-theme ul.liMedia .mediaTexte, body.af-theme ul.liMedia li.w100 .mediaTexte {
  flex: 1 1 auto; float: none; width: auto; height: auto; padding: 20px; border: 0;
}
body.af-theme ul.liMedia .mediaTexte h2 { font-size: 17px; line-height: 1.35; margin: 0 0 6px; }
body.af-theme ul.liMedia .mediaTexte h2 a { color: var(--af-text); }
body.af-theme ul.liMedia .mediaTexte h2 a:hover { color: var(--af-green); }
body.af-theme ul.liMedia time, body.af-theme ul.liMedia .lieu { font-size: 12px; font-weight: 700; color: var(--af-muted); text-transform: uppercase; letter-spacing: .4px; }
/* featured item */
body.af-theme ul.liMedia > li.w100 { grid-column: 1 / -1; }
@media only screen and (min-width: 1023px) {
  body.af-theme ul.liMedia > li.w100 { display: grid; grid-template-columns: 1.7fr 1fr; }
  body.af-theme ul.liMedia > li.w100 figure { float: none; width: auto; max-width: none; height: 360px; }
  body.af-theme ul.liMedia > li.w100 .mediaTexte { display: flex; flex-direction: column; justify-content: center; padding: 32px; }
  body.af-theme ul.liMedia > li.w100 .mediaTexte h2 { font-size: 26px; }
}

body.af-theme .detailMedia time, body.af-theme .detailMedia .lieu { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; }
body.af-theme .detailMedia figure img, body.af-theme .detailItem picture img { border-radius: var(--af-radius-lg); }
body.af-theme #frmVideo { border-radius: var(--af-radius-lg); }

/* --------------------------------------------------------------------------
   11. Text pages, sidebar, editor content, testimonials, contact
   -------------------------------------------------------------------------- */
body.af-theme .incTinyMce, body.af-theme .txtGen #colPrincipale { font-size: 16px; line-height: 1.75; }
body.af-theme .incTinyMce h2 { font-size: 24px; color: var(--af-text); margin: 1.4em 0 .5em; }
body.af-theme .incTinyMce h3 { font-size: 19px; color: var(--af-green); margin: 1.2em 0 .4em; }
body.af-theme .incTinyMce a { text-decoration: underline; text-underline-offset: 2px; }
body.af-theme .incTinyMce blockquote { border-left: 4px solid var(--af-green); background: var(--af-green-wash); border-radius: 0 12px 12px 0; padding: 16px 22px; margin: 1.4em 0; }
body.af-theme .incTinyMce img { border-radius: 12px; }

body.af-theme .txtGen aside:not(.af-band), body.af-theme .txtGen #sidebar, body.af-theme .txtGen .sidebar {
  background: var(--af-green-wash); border-radius: var(--af-radius-lg); padding: 22px;
}
body.af-theme .txtGen aside a, body.af-theme .txtGen #sidebar a, body.af-theme .txtGen .sidebar a { font-weight: 700; color: var(--af-text); }
body.af-theme .txtGen aside a.actif, body.af-theme .txtGen #sidebar a.actif, body.af-theme .txtGen .sidebar a.actif,
body.af-theme .txtGen aside a:hover, body.af-theme .txtGen #sidebar a:hover, body.af-theme .txtGen .sidebar a:hover { color: var(--af-green); }

body.af-theme .liste > li { border: 1px solid var(--af-line); border-radius: var(--af-radius-lg); box-shadow: var(--af-shadow-sm); }
body.af-theme .liste figure { border: 0; background: var(--af-green-wash); border-radius: 12px; }
body.af-theme blockquote cite { color: var(--af-green); font-weight: 700; }

body.af-theme #contactForm .form, body.af-theme #formContact {
  background: #fff; border: 1px solid var(--af-line); border-radius: var(--af-radius-lg); box-shadow: var(--af-shadow); padding: 28px;
}

/* --------------------------------------------------------------------------
   12. Footer
   -------------------------------------------------------------------------- */
.af-footer { color: #d1d3d4; font-size: 14px; }
body.af-theme .af-footer a { color: #e6e7e8; text-decoration: none; }
body.af-theme .af-footer a:hover { color: var(--af-green-light); }
body.af-theme .af-footer a.button { color: #fff; }

.af-footer__cta { background: linear-gradient(110deg, var(--af-green) 0%, var(--af-green-mid) 100%); }
.af-footer__cta-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 34px 20px; }
.af-footer__cta h2 { color: #fff; font: 900 24px/1.2 var(--af-font); margin: 0 0 6px; }
.af-footer__cta p { color: var(--af-green-soft); margin: 0; max-width: 620px; }
.af-footer__cta .button { flex: none; padding: 15px 26px; font-size: 16px; }
@media (max-width: 766px) { .af-footer__cta-in { flex-direction: column; align-items: flex-start; } }

.af-footer__main { background: var(--af-text); }
.af-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.25fr; gap: 40px; padding: 56px 20px 44px; }
@media (max-width: 1022px) { .af-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 599px) { .af-footer__grid { grid-template-columns: 1fr; gap: 30px; } }
.af-footer__brand img { width: 220px; height: auto; margin-bottom: 14px; }
.af-footer__brand p { line-height: 1.6; color: #bcbec0; margin: 0 0 18px; max-width: 340px; }
.af-footer h3 { font: 900 13px/1 var(--af-font); color: var(--af-green-light); text-transform: uppercase; letter-spacing: .8px; margin: 4px 0 16px; }
.af-footer__col ul { list-style: none; margin: 0; padding: 0; }
.af-footer__col li { margin: 0 0 10px; }
.af-footer__col a { color: #e6e7e8; }
.af-footer__address { font-style: normal; margin-top: 18px; color: #bcbec0; line-height: 1.6; }
.af-footer__address img { display: block; background: #fff; border-radius: 10px; padding: 8px 12px; margin-bottom: 12px; width: 170px; height: auto; }

.af-social { display: flex; gap: 10px; list-style: none; margin: 0; padding: 0; }
body.af-theme .af-social a {
  display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.1); color: #fff; font-size: 16px; transition: background .15s, transform .15s;
}
body.af-theme .af-social a:hover { background: var(--af-green); color: #fff; transform: translateY(-2px); }

.af-footer__bottom { background: #38393b; }
.af-footer__bottom-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 18px 20px; font-size: 13px; }
.af-footer .copyrights { font-size: 13px; color: #bcbec0; }
.af-legal ul { display: flex; flex-wrap: wrap; gap: 18px; list-style: none; margin: 0; padding: 0; }
body.af-theme .af-legal a { color: #bcbec0; }
body.af-theme .af-legal a:hover { color: var(--af-green-light); }
@media (max-width: 599px) { .af-footer__bottom-in { flex-direction: column; text-align: center; } }

/* --------------------------------------------------------------------------
   13. Motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  body.af-theme *, body.af-theme *::before, body.af-theme *::after { transition: none !important; animation: none !important; }
  body.af-theme ul.liItem > li:hover, body.af-theme ul.liLogo li:hover, body.af-theme ul.liMedia > li:hover { transform: none; }
}

/* ==========================================================================
   14. Components of the redesigned templates (home, listings, text pages)
   ========================================================================== */
body.af-theme .af-eyebrow { margin: 0 0 8px; font: 900 12px/1 var(--af-font); letter-spacing: 1.2px; text-transform: uppercase; color: var(--af-green); }
body.af-theme .af-eyebrow a { color: inherit; }
body.af-theme .af-link-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 900; white-space: nowrap; }
body.af-theme .af-link-more span { transition: transform .15s; }
body.af-theme .af-link-more:hover span { transform: translateX(3px); }

/* Sections */
body.af-theme .af-section { padding: 64px 0; }
body.af-theme .af-section--wash { background: var(--af-green-wash); }
body.af-theme .af-section--tight { padding: 48px 0; }
body.af-theme .af-section > .conteneur { padding: 0 20px; }
body.af-theme .af-section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
body.af-theme .af-section__head h2 { font-size: clamp(24px, 3vw, 32px); margin: 0; color: var(--af-text); }
body.af-theme .af-section__head--center { justify-content: center; text-align: center; }
body.af-theme .af-section__title-center { text-align: center; font-size: 20px; color: var(--af-muted); font-weight: 700; margin: 0 0 24px; }
@media (max-width: 599px) { body.af-theme .af-section__head { flex-direction: column; align-items: flex-start; } body.af-theme .af-section { padding: 48px 0; } }

/* Home hero */
body.af-theme .af-hero {
  position: relative; color: #fff; overflow: hidden;
  background: linear-gradient(105deg, color-mix(in srgb, var(--af-green) 96%, transparent) 0%, color-mix(in srgb, var(--af-green) 86%, transparent) 45%, color-mix(in srgb, var(--af-green-dark) 55%, transparent) 100%), url(../gx/01/bg-txtAcc.jpg) center/cover no-repeat;
}
body.af-theme .af-hero::after {
  content: ""; position: absolute; right: -120px; bottom: -160px; width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--af-green-light) 45%, transparent) 0%, color-mix(in srgb, var(--af-green-light) 0%, transparent) 70%); pointer-events: none;
}
body.af-theme .af-hero__in { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 48px; align-items: center; padding: 72px 20px 80px; }
@media (max-width: 1022px) { body.af-theme .af-hero__in { grid-template-columns: minmax(0, 1fr); gap: 32px; padding: 48px 20px 56px; } }
body.af-theme .af-hero__copy, body.af-theme .af-hero__stats { min-width: 0; }
body.af-theme .af-hero .af-eyebrow { color: var(--af-mint); }
body.af-theme .af-hero h1 { color: #fff; font-size: clamp(32px, 5vw, 56px); line-height: 1.05; letter-spacing: -1px; margin: 0 0 18px; }
body.af-theme .af-hero__lead { font-size: 18px; line-height: 1.6; color: #e9f8ee; max-width: 620px; margin: 0 0 28px; }
body.af-theme .af-hero__search {
  display: flex; align-items: center; gap: 8px; max-width: 640px; padding: 8px 8px 8px 20px;
  background: #fff; border-radius: 999px; box-shadow: 0 18px 40px rgba(0,0,0,.22);
}
body.af-theme .af-hero__search > i { color: var(--af-muted); }
body.af-theme .af-hero__search input[type=text] {
  flex: 1 1 auto; min-width: 0; height: 48px; border: 0; background: transparent; padding: 0 6px;
  font: 16px var(--af-font); color: var(--af-text); box-shadow: none; outline: 0;
}
body.af-theme .af-hero__search .button { flex: none; margin: 0; padding: 15px 26px; border-radius: 999px; font-size: 16px; }
@media (max-width: 479px) { body.af-theme .af-hero__search .button { padding: 15px 16px; } }
body.af-theme .af-quick { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 20px 0 0; padding: 0; }
body.af-theme .af-quick a {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28); color: #fff; font-weight: 700; font-size: 14px;
  transition: background .15s, transform .15s;
}
body.af-theme .af-quick a:hover { background: rgba(255,255,255,.26); color: #fff; transform: translateY(-1px); }
body.af-theme .af-hero__stats { display: grid; gap: 14px; list-style: none; margin: 0; padding: 0; }
body.af-theme .af-hero__stats li {
  display: flex; align-items: center; gap: 18px; padding: 20px 22px; border-radius: var(--af-radius-lg);
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(6px);
}
body.af-theme .af-hero__stats strong { font: 900 34px/1 var(--af-font); color: #fff; min-width: 86px; }
body.af-theme .af-hero__stats span { color: var(--af-green-soft); font-weight: 700; line-height: 1.35; }
@media (max-width: 1022px) { body.af-theme .af-hero__stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } body.af-theme .af-hero__stats li { flex-direction: column; align-items: flex-start; gap: 6px; padding: 16px; } body.af-theme .af-hero__stats strong { font-size: 26px; min-width: 0; } body.af-theme .af-hero__stats span { font-size: 13px; } }

/* Franchise card grid (inc/franchise/liste.cfm) */
body.af-theme ul.af-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
body.af-theme ul.liItem > li.af-card { padding: 0; overflow: hidden; }
body.af-theme .af-card__media {
  display: flex; align-items: center; justify-content: center; height: 150px; margin: 0;
  background: linear-gradient(180deg, var(--af-green-wash), #fff); border-bottom: 1px solid var(--af-line);
}
body.af-theme .af-card__media img { max-width: 72%; max-height: 104px; width: auto; height: auto; object-fit: contain; transition: transform .25s ease; }
body.af-theme .af-card:hover .af-card__media img { transform: scale(1.04); }
body.af-theme .af-card__initials {
  display: flex; align-items: center; justify-content: center; width: 76px; height: 76px; border-radius: 20px;
  background: var(--af-green); color: #fff; font: 900 28px/1 var(--af-font); letter-spacing: 1px;
}
body.af-theme .af-card__body { display: flex; flex-direction: column; gap: 8px; flex: 1 1 auto; padding: 18px 20px 6px; }
body.af-theme .af-badge {
  align-self: flex-start; padding: 3px 10px; border-radius: 999px; background: var(--af-green-soft); color: var(--af-green-dark);
  font: 900 11px/1.4 var(--af-font); text-transform: uppercase; letter-spacing: .6px;
}
body.af-theme .af-badge--alt { background: #fdecea; color: var(--af-red-dark); }
body.af-theme h2.af-card__title { margin: 0; font: 900 19px/1.25 var(--af-font); }
body.af-theme h2.af-card__title a { color: var(--af-text); }
body.af-theme h2.af-card__title a:hover { color: var(--af-green); }
body.af-theme .af-card__intro { margin: 0; font-size: 14px; line-height: 1.55; color: var(--af-text-soft); }
body.af-theme .af-card__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: auto 0 0; padding: 14px 0 6px; border-top: 1px dashed var(--af-line); }
body.af-theme .af-card__facts div { min-width: 0; }
body.af-theme .af-card__facts dt { font-size: 11px; font-weight: 700; color: var(--af-muted); text-transform: uppercase; letter-spacing: .5px; }
body.af-theme .af-card__facts dd { margin: 2px 0 0; font-weight: 900; color: var(--af-text); font-size: 15px; overflow-wrap: anywhere; }
body.af-theme .af-card__actions { display: grid; grid-template-columns: auto 1fr; gap: 10px; padding: 12px 20px 20px; }
body.af-theme .af-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 10px 16px; margin: 0;
  border-radius: var(--af-radius); font: 700 14px/1.2 var(--af-font); text-align: center; text-decoration: none; cursor: pointer;
}
body.af-theme .af-btn--ghost { border: 2px solid var(--af-line); color: var(--af-text); background: #fff; transition: border-color .15s, color .15s; }
body.af-theme .af-btn--ghost:hover { border-color: var(--af-green); color: var(--af-green); }
body.af-theme ul.liItem .af-card__actions .button { width: auto; margin: 0; }
body.af-theme .af-card .demande.is-added { background: var(--af-green); border-color: var(--af-green-dark); }

/* How it works */
body.af-theme .af-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; list-style: none; margin: 0; padding: 0; counter-reset: afstep; }
@media (max-width: 899px) { body.af-theme .af-steps { grid-template-columns: 1fr; } }
body.af-theme .af-steps li { position: relative; padding: 30px 26px 26px; background: #fff; border-radius: var(--af-radius-lg); box-shadow: var(--af-shadow-sm); border: 1px solid var(--af-line); counter-increment: afstep; }
body.af-theme .af-steps li::before { content: counter(afstep); position: absolute; top: 18px; right: 22px; font: 900 44px/1 var(--af-font); color: var(--af-green-soft); }
body.af-theme .af-steps__icon { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 14px; background: var(--af-green); color: #fff; font-size: 20px; margin-bottom: 16px; }
body.af-theme .af-steps h3 { margin: 0 0 8px; font-size: 19px; color: var(--af-text); }
body.af-theme .af-steps p { margin: 0; color: var(--af-text-soft); }

/* Ads strip */
body.af-theme .af-ads { padding: 32px 20px 0; }
body.af-theme .af-ads:empty { display: none; }
body.af-theme .af-listpage .af-ads { padding: 0 0 24px; }

/* Countries */
body.af-theme .af-countries { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; list-style: none; margin: 0; padding: 0; }
body.af-theme .af-countries a {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px;
  border: 1px solid var(--af-line); border-radius: 12px; background: #fff; color: var(--af-text); font-weight: 700;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
body.af-theme .af-countries a::before { content: "\f3c5"; font-family: "Font Awesome 6 Free", "Font Awesome 5 Free"; font-weight: 900; color: var(--af-green); margin-right: 2px; }
body.af-theme .af-countries__name { flex: 1 1 auto; }
body.af-theme .af-countries__count { flex: none; min-width: 28px; padding: 2px 8px; border-radius: 999px; background: var(--af-green-soft); color: var(--af-green-dark); font-size: 13px; text-align: center; }
body.af-theme .af-countries a:hover { border-color: var(--af-green-light); box-shadow: var(--af-shadow); transform: translateY(-2px); color: var(--af-text); }

/* Logos (reuses ul.liLogo styles) */
body.af-theme ul.af-logos { padding: 0; }

/* Resources */
body.af-theme .af-resources { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 24px; }
@media (max-width: 1022px) { body.af-theme .af-resources { grid-template-columns: 1fr; } }
body.af-theme .af-resources__news { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 599px) { body.af-theme .af-resources__news { grid-template-columns: 1fr; } }
body.af-theme .af-post { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--af-line); border-radius: var(--af-radius-lg); overflow: hidden; transition: box-shadow .2s, transform .2s; }
body.af-theme .af-post:hover { box-shadow: var(--af-shadow); transform: translateY(-3px); }
body.af-theme .af-post--lead { grid-column: 1 / -1; flex-direction: row; }
body.af-theme .af-post__media { display: block; flex: none; height: 170px; background: var(--af-green-soft); overflow: hidden; }
body.af-theme .af-post--lead .af-post__media { width: 46%; height: auto; min-height: 240px; }
@media (max-width: 599px) { body.af-theme .af-post--lead { flex-direction: column; } body.af-theme .af-post--lead .af-post__media { width: auto; min-height: 180px; } }
body.af-theme .af-post__media img { width: 100%; height: 100%; object-fit: cover; }
body.af-theme .af-post__ph { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--af-green); font-size: 34px; opacity: .55; }
body.af-theme .af-post__body { padding: 18px 20px 20px; }
body.af-theme .af-post--lead .af-post__body { display: flex; flex-direction: column; justify-content: center; padding: 26px; }
body.af-theme .af-post time { font-size: 12px; font-weight: 900; color: var(--af-muted); text-transform: uppercase; letter-spacing: .5px; }
body.af-theme .af-post h3 { margin: 6px 0 0; font-size: 17px; line-height: 1.35; }
body.af-theme .af-post--lead h3 { font-size: 23px; }
body.af-theme .af-post h3 a { color: var(--af-text); }
body.af-theme .af-post h3 a:hover { color: var(--af-green); }
body.af-theme .af-post p { margin: 10px 0 0; color: var(--af-text-soft); }
body.af-theme .af-resources__side { display: grid; gap: 20px; align-content: start; }
body.af-theme .af-panel { background: #fff; border: 1px solid var(--af-line); border-radius: var(--af-radius-lg); padding: 22px; }
body.af-theme .af-panel h3 { margin: 0 0 14px; font-size: 17px; color: var(--af-text); }
body.af-theme .af-panel h3 i { color: var(--af-green); margin-right: 6px; }
body.af-theme .af-events { list-style: none; margin: 0 0 14px; padding: 0; }
body.af-theme .af-events li { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--af-line); }
body.af-theme .af-events li:first-child { border-top: 0; padding-top: 0; }
body.af-theme .af-events__date { flex: none; width: 54px; padding: 6px 0; border-radius: 10px; background: var(--af-green-soft); color: var(--af-green-dark); text-align: center; font-size: 11px; font-weight: 900; text-transform: uppercase; line-height: 1.2; }
body.af-theme .af-events__date b { display: block; font-size: 20px; }
body.af-theme .af-events a { font-weight: 700; color: var(--af-text); line-height: 1.35; }
body.af-theme .af-events small { display: block; color: var(--af-muted); margin-top: 3px; }
body.af-theme .af-video { position: relative; display: block; min-height: 200px; border-radius: var(--af-radius-lg); overflow: hidden; background: var(--af-text); }
body.af-theme .af-video img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .8; transition: opacity .2s, transform .4s; }
body.af-theme .af-video:hover img { opacity: .65; transform: scale(1.04); }
body.af-theme .af-video__play { position: absolute; top: 50%; left: 50%; display: flex; align-items: center; justify-content: center; width: 60px; height: 60px; margin: -44px 0 0 -30px; border-radius: 50%; background: var(--af-red); color: #fff; font-size: 20px; box-shadow: 0 10px 24px rgba(0,0,0,.3); }
body.af-theme .af-video__caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 16px; background: linear-gradient(transparent, rgba(0,0,0,.75)); color: #fff; font-weight: 900; line-height: 1.3; }
body.af-theme .af-video__caption small { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .8px; color: var(--af-mint); margin-bottom: 4px; }

/* Call-to-action band + SEO text */
body.af-theme .af-band {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 34px 36px;
  border-radius: 20px; background: linear-gradient(115deg, var(--af-green) 0%, var(--af-green-mid) 100%); color: #fff;
}
body.af-theme .af-band h2 { color: #fff; margin: 0 0 6px; font-size: clamp(22px, 2.6vw, 28px); }
body.af-theme .af-band p { color: var(--af-green-soft); margin: 0; max-width: 620px; }
body.af-theme .af-band .button { flex: none; padding: 15px 26px; font-size: 16px; margin: 0; }
body.af-theme .af-band--compact { margin-top: 40px; padding: 26px 28px; }
@media (max-width: 766px) { body.af-theme .af-band { flex-direction: column; align-items: flex-start; padding: 26px; } }
body.af-theme .af-seo { max-width: 860px; margin: 48px auto 0; color: var(--af-text-soft); }

/* Listing pages */
body.af-theme .af-listpage { padding: 0 20px; }
body.af-theme .af-pagehead { max-width: 860px; margin: 8px 0 28px; }
body.af-theme .af-pagehead h1 { margin-bottom: 12px; }
body.af-theme .af-pagehead .intro, body.af-theme .af-pagehead p.intro { padding: 0; margin: 0 0 12px; }
body.af-theme .af-pagehead .p_lr { padding-left: 0; padding-right: 0; }
body.af-theme .af-pagehead__text { color: var(--af-text-soft); }
body.af-theme .af-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
  margin: 0 0 22px; padding: 12px 14px 12px 18px; background: #fff; border: 1px solid var(--af-line); border-radius: 14px; box-shadow: var(--af-shadow-sm);
}
body.af-theme .af-toolbar__count { margin: 0; color: var(--af-text-soft); }
body.af-theme .af-toolbar__count strong { color: var(--af-green); font-size: 18px; }
body.af-theme .af-toolbar__tools { display: flex; flex-wrap: wrap; gap: 10px; }
body.af-theme .af-toolbar__filter { position: relative; display: flex; align-items: center; }
body.af-theme .af-toolbar__filter i { position: absolute; left: 14px; color: var(--af-muted); font-size: 13px; pointer-events: none; }
body.af-theme .af-toolbar input[type=search], body.af-theme .af-toolbar select {
  height: 42px; border: 1px solid var(--af-input); border-radius: 10px; background: #fff;
  font: 14px var(--af-font); color: var(--af-text); -webkit-appearance: none; appearance: none;
}
body.af-theme .af-toolbar input[type=search] { width: 220px; padding: 0 14px 0 36px; }
body.af-theme .af-toolbar select {
  padding: 0 38px 0 14px; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235b6b61' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 14px center / 12px 8px;
}
body.af-theme .af-toolbar input:focus, body.af-theme .af-toolbar select:focus { border-color: var(--af-green-light); box-shadow: 0 0 0 3px color-mix(in srgb, var(--af-green-light) 20%, transparent); outline: 0; }
@media (max-width: 599px) { body.af-theme .af-toolbar__tools, body.af-theme .af-toolbar input[type=search], body.af-theme .af-toolbar select { width: 100%; } }

body.af-theme .af-empty { text-align: center; padding: 48px 24px; border: 2px dashed var(--af-line); border-radius: 20px; background: var(--af-green-wash); }
body.af-theme .af-empty--inline { padding: 24px; margin-top: 10px; }
body.af-theme .af-empty__icon { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 50%; background: #fff; color: var(--af-green); font-size: 24px; margin-bottom: 14px; box-shadow: var(--af-shadow-sm); }
body.af-theme .af-empty h2 { margin: 0 0 8px; color: var(--af-text); }
body.af-theme .af-empty p { color: var(--af-text-soft); max-width: 520px; margin: 0 auto; }
body.af-theme .af-empty__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 18px !important; }
body.af-theme .af-empty__actions .button { margin: 0; }

body.af-theme .af-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 26px; }
body.af-theme .af-chips__label { font-weight: 900; color: var(--af-text); margin-right: 4px; }
body.af-theme .af-chips__label i { color: var(--af-green); }
body.af-theme .af-chip { display: inline-block; padding: 7px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--af-line); color: var(--af-text); font-weight: 700; font-size: 14px; transition: border-color .15s, color .15s, background .15s; }
body.af-theme .af-chip:hover { border-color: var(--af-green); color: var(--af-green); background: var(--af-green-soft); }

/* Text pages */
body.af-theme .af-textpage { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 40px; align-items: start; padding: 8px 20px 0; }
body.af-theme .af-textpage > #colPrincipale { float: none; width: auto; max-width: none; margin: 0; padding: 0; }
body.af-theme .af-textpage > *:not(#colPrincipale) { float: none; width: auto; position: sticky; top: 104px; }
@media (max-width: 1022px) { body.af-theme .af-textpage { grid-template-columns: 1fr; } body.af-theme .af-textpage > *:not(#colPrincipale) { display: none; position: static; } }
body.af-theme .af-prose { max-width: 780px; font-size: 17px; line-height: 1.8; }
body.af-theme .af-prose h1 { margin-bottom: 18px; }
body.af-theme .af-prose > p:first-of-type, body.af-theme .af-prose .intro { font-size: 20px; line-height: 1.6; color: var(--af-text-soft); }
body.af-theme .af-prose img { border-radius: 14px; }

/* Intro text never longer than three lines */
body.af-theme .af-card__intro { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Phones: compact horizontal card, shorter homepage */
@media (max-width: 599px) {
  body.af-theme ul.af-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  body.af-theme ul.liItem > li.af-card {
    display: grid; grid-template-columns: 84px minmax(0, 1fr);
    grid-template-areas: "media body" "actions actions";
  }
  body.af-theme .af-card__media { grid-area: media; height: 84px; margin: 16px 0 0 16px; border: 1px solid var(--af-line); border-radius: 14px; }
  body.af-theme .af-card__media img { max-width: 80%; max-height: 60px; }
  body.af-theme .af-card__initials { width: 56px; height: 56px; border-radius: 14px; font-size: 20px; }
  body.af-theme .af-card__body { grid-area: body; padding: 16px 16px 4px 14px; gap: 6px; }
  body.af-theme h2.af-card__title { font-size: 17px; }
  body.af-theme .af-card__intro { -webkit-line-clamp: 2; font-size: 13px; }
  body.af-theme .af-card__facts { padding-top: 10px; }
  body.af-theme .af-card__actions { grid-area: actions; padding: 4px 16px 16px; }
  body.af-theme .af-section ul.af-grid > li:nth-child(n+5) { display: none; }
  body.af-theme ul.af-logos > li:nth-child(n+9) { display: none; }
  body.af-theme .af-hero h1 { font-size: 32px; }
  body.af-theme .af-hero__lead { font-size: 16px; }
  body.af-theme .af-hero__search { padding-left: 16px; }
  body.af-theme .af-hero__search input[type=text] { font-size: 15px; }
}
body.af-theme .af-prose h2 { font-size: 24px; color: var(--af-text); margin: 1.5em 0 .45em; }
body.af-theme .af-prose h3 { font-size: 19px; color: var(--af-green); margin: 1.3em 0 .4em; }

/* ==========================================================================
   15. Round 3 - fixes from the live site + new pages
   ========================================================================== */

/* Own container (the old stylesheet overrides .conteneur widths) */
body.af-theme .af-wrap {
  width: 100%; max-width: var(--af-max) !important; margin-left: auto !important; margin-right: auto !important;
  padding-left: 24px !important; padding-right: 24px !important; box-sizing: border-box; float: none !important;
}
@media (max-width: 599px) { body.af-theme .af-wrap { padding-left: 16px !important; padding-right: 16px !important; } }
body.af-theme .af-section > .conteneur, body.af-theme .af-listpage { padding-left: 0; padding-right: 0; }

/* Old stylesheet forced UPPERCASE headings */
body.af-theme h1, body.af-theme h2, body.af-theme h3, body.af-theme h4 { text-transform: none; }
body.af-theme .af-hero h1 { padding: 0 !important; margin-left: 0 !important; border: 0; }

/* Header: sticky (no more empty gap on phones), old fixed-header padding removed */
body.af-theme { overflow-x: clip; }
body.af-theme #conteneurBd, body.af-theme.enteteFixe #conteneurBd { padding-top: 0 !important; }
body.af-theme #conteneurHd, body.af-theme.enteteFixe #conteneurHd { position: sticky !important; top: 0 !important; left: auto; right: auto; }
body.af-theme .btnMenuMobile { display: none !important; }
body.af-theme #logo img { mix-blend-mode: multiply; }

/* Burger */
body.af-theme .af-burger {
  order: 5; flex: none; display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 46px; height: 46px; margin-left: auto; padding: 0 12px; border: 1px solid var(--af-line); border-radius: 12px;
  background: var(--af-green-wash); cursor: pointer;
}
body.af-theme .af-burger span { display: block; height: 2px; border-radius: 2px; background: var(--af-green); transition: transform .2s; }
@media only screen and (min-width: 1023px) { body.af-theme .af-burger { margin-left: 8px; } }
@media only screen and (min-width: 1200px) { body.af-theme .af-burger { display: none; } }

/* Mobile drawer */
.af-drawer { position: fixed; inset: 0; z-index: 5000; visibility: hidden; }
.af-drawer.is-open { visibility: visible; }
.af-drawer__backdrop { position: absolute; inset: 0; background: rgba(10, 20, 14, .55); opacity: 0; transition: opacity .2s; }
.af-drawer.is-open .af-drawer__backdrop { opacity: 1; }
.af-drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(88vw, 380px); display: flex; flex-direction: column;
  background: var(--af-surface, #fff); color: var(--af-text); box-shadow: -20px 0 50px rgba(0,0,0,.2);
  transform: translateX(100%); transition: transform .25s ease; overflow-y: auto;
}
.af-drawer.is-open .af-drawer__panel { transform: translateX(0); }
.af-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--af-line); }
.af-drawer__logo { width: 150px; height: auto; }
.af-iconbtn { width: 42px; height: 42px; border: 1px solid var(--af-line); border-radius: 12px; background: transparent; color: var(--af-text); font-size: 18px; cursor: pointer; }
.af-drawer__search { position: relative; display: flex; gap: 8px; margin: 16px; }
.af-drawer__search i { position: absolute; left: 14px; top: 15px; color: var(--af-muted); }
.af-drawer__search input { flex: 1; min-width: 0; height: 46px; padding: 0 12px 0 38px; border: 1px solid var(--af-input); border-radius: 12px; background: var(--af-green-wash); color: var(--af-text); font: 15px var(--af-font); }
.af-drawer__search .button { margin: 0; padding: 0 16px; border-radius: 12px; }
.af-drawer__nav { display: flex; flex-direction: column; padding: 4px 8px 12px; }
.af-drawer__nav > a, .af-drawer__nav summary {
  display: flex; align-items: center; gap: 12px; padding: 14px 12px; border-radius: 12px; cursor: pointer;
  font: 700 16px/1.2 var(--af-font); color: var(--af-text) !important; text-decoration: none; list-style: none;
}
.af-drawer__nav summary::-webkit-details-marker { display: none; }
.af-drawer__nav summary::after { content: ""; margin-left: auto; width: 8px; height: 8px; border-right: 2px solid var(--af-muted); border-bottom: 2px solid var(--af-muted); transform: rotate(45deg); transition: transform .2s; }
.af-drawer__nav details[open] > summary::after { transform: rotate(-135deg); }
.af-drawer__nav > a i, .af-drawer__nav summary i { width: 20px; text-align: center; color: var(--af-green); }
.af-drawer__nav > a.is-active, .af-drawer__nav > a:hover, .af-drawer__nav summary:hover { background: var(--af-green-soft); }
.af-drawer__nav details > a { display: block; padding: 11px 12px 11px 44px; border-radius: 10px; color: var(--af-text-soft) !important; font-weight: 700; text-decoration: none; }
.af-drawer__nav details > a:hover { color: var(--af-green) !important; background: var(--af-green-wash); }
.af-drawer__foot { margin-top: auto; padding: 16px; border-top: 1px solid var(--af-line); display: grid; gap: 12px; }
.af-drawer__cta { display: flex !important; justify-content: center; gap: 8px; margin: 0 !important; }
.af-drawer__row { display: flex; gap: 10px; }
.af-pill { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 12px; border: 1px solid var(--af-line); border-radius: 12px; background: transparent; color: var(--af-text) !important; font: 700 14px var(--af-font); cursor: pointer; text-decoration: none; }
body.af-noscroll { overflow: hidden; }

/* Theme toggle (top bar + drawer) */
.af-theme-toggle { display: inline-flex; align-items: center; gap: 6px; border: 0; background: rgba(255,255,255,.14); color: #fff; height: 26px; padding: 0 10px; border-radius: 20px; cursor: pointer; font: 700 13px var(--af-font); }
.af-drawer .af-theme-toggle { background: transparent; color: var(--af-text); height: 44px; border: 1px solid var(--af-line); border-radius: 12px; }
.af-theme-toggle .af-ico-sun, .af-theme-toggle .af-theme-label-light { display: none !important; }
html[data-theme="dark"] .af-theme-toggle .af-ico-sun, html[data-theme="dark"] .af-theme-toggle .af-theme-label-light { display: inline-block !important; }
html[data-theme="dark"] .af-theme-toggle .af-ico-moon, html[data-theme="dark"] .af-theme-toggle .af-theme-label-dark { display: none !important; }

/* Request tray */
.af-tray {
  position: fixed; left: 50%; bottom: 16px; z-index: 4000; display: flex; align-items: center; gap: 14px;
  width: min(720px, calc(100% - 24px)); padding: 12px 12px 12px 16px; border-radius: 18px;
  background: linear-gradient(110deg, var(--af-green-dark), var(--af-green)); color: #fff; box-shadow: 0 18px 44px rgba(0,0,0,.28);
  transform: translate(-50%, 140%); transition: transform .3s ease;
}
.af-tray.is-visible { transform: translate(-50%, 0); }
.af-tray__icon { position: relative; flex: none; display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 14px; background: rgba(255,255,255,.16); font-size: 20px; }
.af-tray__icon b { position: absolute; top: -6px; right: -6px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--af-red); font: 900 12px/22px var(--af-font); text-align: center; }
.af-tray__text { flex: 1; min-width: 0; margin: 0; line-height: 1.3; }
.af-tray__text strong { display: block; font-size: 15px; }
.af-tray__text > span { display: block; font-size: 13px; color: #d7f2df; }
.af-tray .button { flex: none; margin: 0; padding: 13px 18px; box-shadow: none; }
@media (max-width: 599px) { .af-tray { bottom: 10px; } .af-tray__text > span { display: none; } .af-tray .button { padding: 12px 14px; font-size: 14px; } }
body.af-theme #demandeInfoFt, body.af-theme #demandeInfoFtDetail { display: none !important; }


/* Request buttons */
body.af-theme .af-request { position: relative; }
body.af-theme .af-request.is-loading { opacity: .7; pointer-events: none; }
body.af-theme .af-request.is-added { background: var(--af-green) !important; border-color: var(--af-green-dark) !important; }
body.af-theme button.af-btn { font-family: var(--af-font); }

/* Cards: logos sit on white so their own white background disappears */
body.af-theme .af-card__media { background: #fff; }
body.af-theme .af-card__media img, body.af-theme .af-detail__logo img, body.af-theme .af-marquee__item img,
body.af-theme .af-person__media img, body.af-theme .af-profile__media img { mix-blend-mode: multiply; }
body.af-theme h2.af-card__title { text-transform: none; }

/* Footer partner logo: no white box */
body.af-theme .af-footer__address img { background: transparent; padding: 0; border-radius: 0; width: 190px; }

/* Brands carousel */
.af-marquee { position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.af-marquee__track { display: flex; gap: 18px; width: max-content; margin: 0; padding: 6px 0; list-style: none; animation: af-marquee 55s linear infinite; }
.af-marquee:hover .af-marquee__track, .af-marquee:focus-within .af-marquee__track { animation-play-state: paused; }
.af-marquee__item a { display: flex; align-items: center; justify-content: center; width: 190px; height: 104px; padding: 14px 18px; border: 1px solid var(--af-line); border-radius: 16px; background: #fff; transition: border-color .15s, transform .15s, box-shadow .15s; }
.af-marquee__item a:hover { border-color: var(--af-green-light); transform: translateY(-3px); box-shadow: var(--af-shadow); }
.af-marquee__item img { max-width: 100%; max-height: 72px; width: auto; height: auto; object-fit: contain; }
@keyframes af-marquee { to { transform: translateX(calc(-50% - 9px)); } }
@media (prefers-reduced-motion: reduce) { .af-marquee { overflow-x: auto; } .af-marquee__track { animation: none; } }

/* Events: today / upcoming / past */
.af-events__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.af-evt-badge { align-self: flex-start; padding: 2px 8px; border-radius: 999px; font: 900 10px/1.5 var(--af-font); text-transform: uppercase; letter-spacing: .6px; }
.af-evt-badge--upcoming { background: var(--af-green-soft); color: var(--af-green-dark); }
.af-evt-badge--today { background: var(--af-red); color: #fff; animation: af-pulse 1.8s ease-in-out infinite; }
.af-evt-badge--past { background: #eceeed; color: #6b6e70; }
.af-events__item.is-today .af-events__date { background: var(--af-red); color: #fff; }
.af-events__item.is-past .af-events__date { background: #f1f2f2; color: var(--af-muted); }
.af-events__item.is-past a { color: var(--af-text-soft) !important; }
@keyframes af-pulse { 50% { box-shadow: 0 0 0 5px color-mix(in srgb, var(--af-red) 18%, transparent); } }

/* Search panel */
.af-searchbar { background: linear-gradient(120deg, var(--af-green) 0%, var(--af-green-mid) 100%); padding: 26px 0 30px; }
.af-searchform {
  display: grid; grid-template-columns: minmax(0,1.25fr) minmax(0,1fr) minmax(0,1fr) minmax(0,1.6fr) auto; gap: 14px; align-items: end;
  padding: 18px; border-radius: 20px; background: var(--af-surface, #fff); box-shadow: 0 18px 44px rgba(0,0,0,.18);
}
@media (max-width: 1199px) { .af-searchform { grid-template-columns: 1fr 1fr 1fr; } .af-field--budget { grid-column: 1 / 3; } }
@media (max-width: 767px) { .af-searchform { grid-template-columns: 1fr 1fr; } .af-field--q, .af-field--budget, .af-field--submit { grid-column: 1 / -1; } }
@media (max-width: 479px) { .af-searchform { grid-template-columns: 1fr; padding: 14px; } .af-field { grid-column: 1 / -1; } }
.af-field { min-width: 0; }
.af-field label { display: block; margin: 0 0 7px; font: 900 11px/1 var(--af-font); letter-spacing: .8px; text-transform: uppercase; color: var(--af-green); }
.af-field label small { text-transform: none; letter-spacing: 0; font-weight: 700; color: var(--af-muted); }
.af-field__icon { position: relative; display: block; }
.af-field__icon i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--af-muted); font-size: 14px; }
.af-field input[type=text], .af-field select, .af-budget__input input {
  width: 100%; height: 48px; margin: 0; padding: 0 14px; border: 1px solid var(--af-input); border-radius: 12px;
  background: var(--af-surface, #fff); color: var(--af-text); font: 15px var(--af-font); box-shadow: none; -webkit-appearance: none; appearance: none;
}
.af-field__icon input[type=text] { padding-left: 38px; }
.af-field select { padding-right: 38px; cursor: pointer; background: var(--af-surface, #fff) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235b6b61' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 14px center / 12px 8px; }
.af-field input:focus, .af-field select:focus { border-color: var(--af-green-light); box-shadow: 0 0 0 3px color-mix(in srgb, var(--af-green-light) 20%, transparent); outline: 0; }
.af-budget { display: flex; align-items: center; gap: 12px; height: 48px; padding: 0 8px 0 14px; border: 1px solid var(--af-input); border-radius: 12px; background: var(--af-surface, #fff); }
.af-budget input[type=range] { flex: 1 1 auto; min-width: 70px; accent-color: var(--af-green); cursor: pointer; }
.af-budget output { flex: none; min-width: 112px; font: 900 14px var(--af-font); color: var(--af-green); white-space: nowrap; }
.af-budget__input { position: relative; flex: none; width: 112px; }
.af-budget__input > span { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--af-muted); font-weight: 700; }
.af-budget__input input { height: 36px; padding: 0 8px 0 22px; border-radius: 9px; font-size: 14px; }
.af-budget__reset { flex: none; width: 30px; height: 30px; border: 0; border-radius: 50%; background: transparent; color: var(--af-muted); cursor: pointer; visibility: hidden; }
.af-budget.is-set .af-budget__reset { visibility: visible; }
.af-budget.is-set { border-color: var(--af-green-light); }
@media (max-width: 479px) { .af-budget { flex-wrap: wrap; height: auto; padding: 10px 12px; } .af-budget input[type=range] { flex-basis: 100%; } .af-budget output { min-width: 0; flex: 1; } }
.af-field--submit .button { width: 100%; height: 48px; margin: 0; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 12px; white-space: nowrap; }
.af-chip--static { cursor: default; }
.af-chip--static:hover { border-color: var(--af-line); color: var(--af-text); background: #fff; }
.af-chips--filters { margin: 4px 0 0; }
.af-empty__note { margin-top: 18px !important; font-size: 13px; }
.af-above { margin-top: 44px; }
.af-above h2 { margin: 0 0 4px; font-size: 22px; color: var(--af-text); }
.af-above .af-muted { color: var(--af-text-soft); margin: 0 0 18px; }

/* Franchise detail */
.af-detail { padding: 12px 0 30px; }
.af-detail__head { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 36px; align-items: center; padding: 28px; margin-bottom: 28px; border-radius: 22px; background: var(--af-green-wash); border: 1px solid var(--af-line); }
@media (max-width: 899px) { .af-detail__head { grid-template-columns: 1fr; padding: 22px; gap: 20px; } .af-detail__logo { order: -1; max-width: 220px; } }
body.af-theme .af-detail__head h1 { font-size: clamp(28px, 4vw, 44px); margin: 10px 0 10px; color: var(--af-text); }
.af-detail__intro { font-size: 18px; line-height: 1.6; color: var(--af-text-soft); margin: 0 0 18px; }
.af-detail__quick { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0 0 22px; padding: 0; }
.af-detail__quick li { display: flex; flex-direction: column; padding: 10px 14px; border-radius: 12px; background: var(--af-surface, #fff); border: 1px solid var(--af-line); }
.af-detail__quick span { font-size: 11px; font-weight: 700; color: var(--af-muted); text-transform: uppercase; letter-spacing: .5px; }
.af-detail__quick strong { font-size: 17px; color: var(--af-text); }
.af-detail__ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.af-detail__ctas .button { margin: 0; padding: 15px 24px; font-size: 16px; }
.af-detail__logo { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; padding: 20px; border-radius: 18px; background: #fff; border: 1px solid var(--af-line); }
.af-detail__logo img { max-width: 100%; max-height: 170px; width: auto; height: auto; object-fit: contain; }
.af-detail__grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; }
@media (max-width: 1022px) { .af-detail__grid { grid-template-columns: 1fr; } }
.af-detail__photo { margin: 0 0 24px; border-radius: 18px; overflow: hidden; }
.af-detail__photo img { width: 100%; height: auto; display: block; }
.af-detail__text { font-size: 16px; line-height: 1.8; }
.af-detail__video { position: relative; aspect-ratio: 16 / 9; margin: 28px 0; border-radius: 18px; overflow: hidden; background: #000; }
.af-detail__video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.af-detail__side { display: grid; gap: 20px; }
@media (min-width: 1023px) { .af-detail__side { position: sticky; top: 104px; } }
.af-factcard { padding: 22px; border-radius: 18px; background: var(--af-surface, #fff); border: 1px solid var(--af-line); box-shadow: var(--af-shadow); }
body.af-theme .af-factcard h2 { margin: 0 0 14px; font-size: 18px; color: var(--af-text); }
.af-facts { margin: 0 0 6px; }
.af-facts > div { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--af-line); }
.af-facts > div:last-child { border-bottom: 0; }
.af-facts dt { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--af-text-soft); }
.af-facts dd { margin: 0; text-align: right; font-weight: 900; color: var(--af-text); }
.af-factcard__sub { display: flex; align-items: center; gap: 8px; margin: 18px 0 10px; font-size: 14px; color: var(--af-text); }
.af-factcard__sub i { color: var(--af-green); }
.af-locchips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.af-locchips li { padding: 5px 11px; border-radius: 999px; background: var(--af-green-soft); color: var(--af-green-dark); font-weight: 700; font-size: 13px; }
.af-factcard__hint { margin: 10px 0 0; font-size: 12px; color: var(--af-muted); }
.af-factcard__btn { width: 100%; margin: 18px 0 0 !important; padding: 15px; }
.af-factcard__text { font-size: 14px; line-height: 1.65; color: var(--af-text-soft); }
.af-center { text-align: center; }
.af-tip { position: relative; display: inline-flex; color: var(--af-muted); cursor: help; outline: 0; }
.af-tip__bubble { position: absolute; bottom: calc(100% + 8px); left: 50%; z-index: 20; width: 230px; padding: 10px 12px; border-radius: 10px; background: #2b2c2d; color: #fff; font-size: 12px; line-height: 1.45; font-weight: 400; text-align: left; transform: translateX(-50%); opacity: 0; visibility: hidden; transition: opacity .15s; }
.af-tip:hover .af-tip__bubble, .af-tip:focus .af-tip__bubble { opacity: 1; visibility: visible; }
.af-detail__sticky { display: none; }
@media (max-width: 767px) {
  .af-detail__sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 3900; display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: var(--af-surface, #fff); border-top: 1px solid var(--af-line); box-shadow: 0 -8px 24px rgba(0,0,0,.12); }
  .af-detail__sticky strong { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--af-text); }
  .af-detail__sticky .button { margin: 0; padding: 12px 16px; }
  body.af-theme .af-detail ~ * .af-tray, body.af-theme .af-detail .af-tray { display: none; }
  body.af-theme .af-detail { padding-bottom: 80px; }
}

/* By location */
.af-locgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.af-loc { display: flex; flex-direction: column; gap: 14px; padding: 20px; border-radius: 18px; background: var(--af-surface, #fff); border: 1px solid var(--af-line); transition: box-shadow .2s, border-color .2s; }
.af-loc:hover { box-shadow: var(--af-shadow); border-color: color-mix(in srgb, var(--af-green-light) 50%, transparent); }
.af-loc[hidden] { display: none; }
.af-loc__head { display: flex; align-items: center; gap: 12px; }
.af-loc__pin { flex: none; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; background: var(--af-green-soft); color: var(--af-green); }
body.af-theme .af-loc h2 { flex: 1; margin: 0; font-size: 19px; }
body.af-theme .af-loc h2 a { color: var(--af-text); text-decoration: none; }
body.af-theme .af-loc h2 a:hover { color: var(--af-green); }
.af-loc__count { flex: none; padding: 3px 10px; border-radius: 999px; background: var(--af-green); color: #fff; font-size: 12px; font-weight: 900; }
.af-loc__cities { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.af-loc__cities li { margin: 0; padding: 0; }
body.af-theme .af-loc__cities li::before { display: none; content: none; }
.af-loc .af-link-more { margin-top: auto; font-size: 14px; }
body.af-theme .af-chip { text-decoration: none; }
.af-chip--all { border-style: dashed; }

/* Consultants */
.af-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; margin: 0; padding: 0; list-style: none; }
.af-person { display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; background: var(--af-surface, #fff); border: 1px solid var(--af-line); transition: transform .2s, box-shadow .2s; }
.af-person:hover { transform: translateY(-4px); box-shadow: var(--af-shadow); }
.af-person[hidden] { display: none; }
.af-person__media { display: flex; align-items: center; justify-content: center; height: 170px; background: #fff; border-bottom: 1px solid var(--af-line); }
.af-person__media img { max-width: 70%; max-height: 130px; width: auto; height: auto; object-fit: contain; }
.af-person__body { flex: 1; padding: 18px 20px 6px; }
body.af-theme .af-person h2 { margin: 0 0 8px; font: 900 18px/1.3 var(--af-font); }
body.af-theme .af-person h2 a { color: var(--af-text); text-decoration: none; }
body.af-theme .af-person h2 a:hover { color: var(--af-green); }
.af-person p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--af-text-soft); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.af-person__btn { margin: 14px 20px 20px; }
.af-people--small { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.af-people--small .af-person__media { height: 120px; }
.af-profile__head { display: grid; grid-template-columns: 180px minmax(0, 1fr) auto; gap: 28px; align-items: center; padding: 26px; margin: 10px 0 28px; border-radius: 22px; background: var(--af-green-wash); border: 1px solid var(--af-line); }
@media (max-width: 767px) { .af-profile__head { grid-template-columns: 1fr; text-align: left; } .af-profile__media { max-width: 160px; } }
.af-profile__media { display: flex; align-items: center; justify-content: center; aspect-ratio: 1; border-radius: 20px; background: #fff; border: 1px solid var(--af-line); overflow: hidden; padding: 12px; }
.af-profile__media img { max-width: 100%; max-height: 100%; object-fit: contain; }
body.af-theme .af-profile__id h1 { margin: 10px 0 8px; font-size: clamp(26px, 3.4vw, 38px); color: var(--af-text); }
.af-profile__cta .button { margin: 0; padding: 15px 24px; white-space: nowrap; }
.af-others { margin-top: 44px; }
body.af-theme .af-others h2 { font-size: 22px; color: var(--af-text); margin: 0 0 16px; }

/* ==========================================================================
   16. Dark mode  (toggle in the top bar / mobile menu, remembered per visitor)
   ========================================================================== */
html[data-theme="dark"] body.af-theme {
  --af-bg: #0f1612; --af-surface: #17211b; --af-surface-2: #1e2b23;
  --af-text: #e6ece8; --af-text-soft: #b7c3bb; --af-muted: #8f9c94; --af-line: #2a3830; --af-input: #36473c;
  --af-green-wash: #132019; --af-green-soft: #18402a;
  --af-shadow-sm: 0 1px 3px rgba(0,0,0,.4); --af-shadow: 0 8px 24px rgba(0,0,0,.45); --af-shadow-lg: 0 18px 48px rgba(0,0,0,.55);
  background: var(--af-bg); color: var(--af-text); color-scheme: dark;
}
html[data-theme="dark"] body.af-theme a { color: var(--af-green-light); }
html[data-theme="dark"] body.af-theme #main, html[data-theme="dark"] body.af-theme .contenu_wrap, html[data-theme="dark"] body.af-theme #conteneurBd { background: transparent; color: var(--af-text); }
html[data-theme="dark"] body.af-theme #main :is(p, li, td, th, dd, dt, h2, h3, h4, label, time, small, address) { color: inherit; }
html[data-theme="dark"] body.af-theme :is(h1, .af-pagehead h1) { color: var(--af-green-light); }
html[data-theme="dark"] body.af-theme .af-hero h1 { color: #fff; }
html[data-theme="dark"] body.af-theme #conteneurHd { background: var(--af-surface); border-bottom-color: var(--af-line); }
html[data-theme="dark"] body.af-theme #logo { background: #fff; border-radius: 12px; padding: 4px 10px; }
html[data-theme="dark"] body.af-theme .menuPrincipal_nav > ul > li > a { color: var(--af-text); }
html[data-theme="dark"] body.af-theme .menuPrincipal_nav > ul > li > ul { background: var(--af-surface-2); }
html[data-theme="dark"] body.af-theme .menuPrincipal_nav > ul > li > ul > li > a { color: var(--af-text); }
html[data-theme="dark"] body.af-theme .af-search input[type=text] { background: var(--af-surface-2); border-color: var(--af-input); color: var(--af-text); }
html[data-theme="dark"] body.af-theme :is(ul.liItem > li, .af-steps li, .af-countries a, .af-post, .af-panel, .af-toolbar, .af-chip, .af-btn--ghost, .af-empty__icon, .bloc, ul.liMedia > li, .liste > li, #detailFranchise #colDroite, .af-detail__quick li, .af-factcard, .af-loc, .af-person, .af-tray .button.af-btn--ghost) { background: var(--af-surface); border-color: var(--af-line); color: var(--af-text); }
html[data-theme="dark"] body.af-theme :is(.af-section--wash, .filAriane, .af-detail__head, .af-profile__head, .af-empty, #parcourir) { background: var(--af-green-wash); border-color: var(--af-line); }
html[data-theme="dark"] body.af-theme :is(h2.af-card__title a, .af-post h3 a, .af-events a, .af-loc h2 a, .af-person h2 a, .af-countries a, .bloc h4 a, ul.liMedia .mediaTexte h2 a) { color: var(--af-text); }
html[data-theme="dark"] body.af-theme :is(.af-card__media, .af-detail__logo, .af-person__media, .af-profile__media, .af-marquee__item a, ul.liLogo li, ul.liItem figure) { background: #fff; border-color: transparent; }
html[data-theme="dark"] body.af-theme .af-card__media { margin: 10px 10px 0; border-radius: 12px; }
html[data-theme="dark"] body.af-theme :is(.form input[type=text], .form input[type=email], .form input[type=tel], .form select, .form textarea, .af-toolbar input[type=search], .af-toolbar select, .af-field input[type=text], .af-field select, .af-budget, .af-budget__input input) { background-color: var(--af-surface-2); border-color: var(--af-input); color: var(--af-text); }
html[data-theme="dark"] body.af-theme .af-searchform { background: var(--af-surface); }
html[data-theme="dark"] body.af-theme :is(.af-badge, .af-countries__count, .af-locchips li, .af-evt-badge--upcoming) { background: var(--af-green-soft); color: #7fe0a2; }
html[data-theme="dark"] body.af-theme .af-evt-badge--past, html[data-theme="dark"] body.af-theme .af-events__item.is-past .af-events__date { background: #26302a; color: var(--af-muted); }
html[data-theme="dark"] body.af-theme .incTinyMce, html[data-theme="dark"] body.af-theme .incTinyMce * { color: var(--af-text-soft); }
html[data-theme="dark"] body.af-theme .incTinyMce :is(h2, h3, strong) { color: var(--af-text); }
html[data-theme="dark"] body.af-theme table, html[data-theme="dark"] body.af-theme table :is(th, td) { background: transparent; color: var(--af-text); border-color: var(--af-line); }
html[data-theme="dark"] body.af-theme .af-burger { background: var(--af-surface-2); border-color: var(--af-line); }
html[data-theme="dark"] body.af-theme .af-burger span { background: var(--af-green-light); }
html[data-theme="dark"] body.af-theme .af-chip--static:hover { background: var(--af-surface); }
html[data-theme="dark"] .af-drawer__panel { --af-surface: #17211b; --af-text: #e6ece8; --af-text-soft: #b7c3bb; --af-muted: #8f9c94; --af-line: #2a3830; --af-input: #36473c; --af-green-wash: #132019; --af-green-soft: #18402a; }
html[data-theme="dark"] body.af-theme .af-footer__main { background: #0b100d; }
html[data-theme="dark"] body.af-theme .af-footer__bottom { background: #070a08; }
html[data-theme="dark"] body.af-theme .af-detail__sticky { background: var(--af-surface); }

/* Round 3 polish */
html[data-theme="dark"] body.af-theme .af-quick a, html[data-theme="dark"] body.af-theme .af-hero a:not(.button) { color: #fff; }
body.af-theme.pAccueil #main { padding-top: 0; }
.af-drawer__search .button { height: 46px; padding-top: 0; padding-bottom: 0; line-height: 46px; }
@media (max-width: 767px) { body.af-theme:has(.af-detail__sticky) .af-tray { bottom: 84px; } }

/* ==========================================================================
   17. Update 3.2
   ========================================================================== */
/* Footer: the old #piedPage rules removed the vertical padding */
body.af-theme #piedPage .af-footer__cta-in { padding-top: 34px !important; padding-bottom: 34px !important; }
body.af-theme #piedPage .af-footer__grid { padding-top: 56px !important; padding-bottom: 44px !important; }
body.af-theme #piedPage .af-footer__bottom-in { padding-top: 18px !important; padding-bottom: 18px !important; }
body.af-theme #piedPage .af-footer__brand img { margin-top: 0; }
body.af-theme.af-has-tray #piedPage .af-footer__bottom { padding-bottom: 110px; }

/* Old "button.button.btn2 { display:inherit; margin:1em auto 0 }" centred every new button */
body.af-theme :is(.af-detail, .af-tray, .af-band, .af-factcard, .af-field--submit, .af-drawer, .af-card__actions, .af-profile, .af-empty__actions) button.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; margin: 0;
}

/* Request tray: compact card bottom-right, can be minimised to a round button */
.af-tray { left: auto; right: 20px; bottom: 20px; width: min(480px, calc(100% - 40px)); padding: 12px 44px 12px 14px; transform: translateY(160%); }
.af-tray.is-visible { transform: translateY(0); }
.af-tray.is-min { transform: translateY(160%) !important; }
.af-tray__text > span { font-size: 12px; }
.af-tray__min { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border: 0; border-radius: 50%; background: rgba(255,255,255,.16); color: #fff; cursor: pointer; font-size: 12px; }
.af-tray__min:hover { background: rgba(255,255,255,.3); }
.af-traypill {
  position: fixed; right: 20px; bottom: 20px; z-index: 4000; display: flex; align-items: center; justify-content: center;
  width: 58px; height: 58px; border: 0; border-radius: 50%; background: var(--af-green); color: #fff; font-size: 22px; cursor: pointer;
  box-shadow: 0 12px 30px rgba(0,0,0,.28);
}
.af-traypill b { position: absolute; top: -4px; right: -4px; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 12px; background: var(--af-red); font: 900 12px/24px var(--af-font); }
@media (max-width: 599px) { .af-tray { left: 10px; right: 10px; bottom: 10px; width: auto; } .af-traypill { right: 14px; bottom: 14px; } }
@media (max-width: 767px) { body.af-theme:has(.af-detail__sticky) .af-tray, body.af-theme:has(.af-detail__sticky) .af-traypill { bottom: 84px; } }

/* Dark mode: the old .entete kept a white background inside the dark header */
html[data-theme="dark"] body.af-theme .entete, html[data-theme="dark"] body.af-theme #conteneurHd > header { background: transparent !important; }
html[data-theme="dark"] body.af-theme .menuPrincipal_nav > ul > li > a { color: #e6ece8 !important; }
html[data-theme="dark"] body.af-theme .menuPrincipal_nav > ul > li > a:hover, html[data-theme="dark"] body.af-theme .menuPrincipal_nav > ul > li > a.actif { color: var(--af-green-light) !important; }

/* Budget: slider + one editable amount (no more overflowing number box) */
.af-field .af-budget { gap: 10px; padding: 0 6px 0 14px; min-width: 0; overflow: hidden; }
.af-field .af-budget input[type=range] { flex: 1 1 auto; min-width: 60px; width: auto; margin: 0; }
.af-field .af-budget input[type=text] {
  flex: 0 0 120px; width: 120px; height: 34px; padding: 0 10px; margin: 0; border: 1px solid var(--af-line); border-radius: 9px;
  background: var(--af-green-wash); color: var(--af-green); font: 900 14px var(--af-font); text-align: right;
}
.af-field .af-budget input[type=text]::placeholder { color: var(--af-green); font-weight: 700; opacity: .85; }
.af-field .af-budget input[type=text]:focus { border-color: var(--af-green-light); box-shadow: 0 0 0 3px color-mix(in srgb, var(--af-green-light) 20%, transparent); }
.af-field .af-budget .af-budget__reset { flex: none; width: 26px; height: 26px; }
@media (max-width: 479px) { .af-field .af-budget { flex-wrap: nowrap; height: 48px; padding: 0 6px 0 12px; } .af-field .af-budget input[type=text] { flex-basis: 110px; width: 110px; } }
html[data-theme="dark"] body.af-theme .af-field .af-budget input[type=text] { background: var(--af-surface); border-color: var(--af-input); color: var(--af-green-light); }

/* Franchise page: request button left-aligned */
.af-detail__ctas { justify-content: flex-start; }

/* Media lists (news / articles / videos / events) */
.af-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; padding: 6px; border-radius: 16px; background: var(--af-green-wash); border: 1px solid var(--af-line); width: fit-content; max-width: 100%; }
body.af-theme .af-tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 12px; color: var(--af-text); font-weight: 700; text-decoration: none; }
body.af-theme .af-tabs a i { color: var(--af-green); }
body.af-theme .af-tabs a:hover { background: var(--af-surface, #fff); color: var(--af-green); }
body.af-theme .af-tabs a.is-active { background: var(--af-green); color: #fff; box-shadow: var(--af-shadow-sm); }
body.af-theme .af-tabs a.is-active i { color: #fff; }
.af-media-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 1022px) { .af-media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) { .af-media-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; } }
.af-mcard { display: flex; flex-direction: column; min-width: 0; border-radius: 18px; overflow: hidden; background: var(--af-surface, #fff); border: 1px solid var(--af-line); box-shadow: var(--af-shadow-sm); transition: transform .2s, box-shadow .2s; }
.af-mcard:hover { transform: translateY(-4px); box-shadow: var(--af-shadow); }
.af-mcard__media { position: relative; display: block; aspect-ratio: 16 / 10; background: var(--af-green-soft); overflow: hidden; }
.af-mcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.af-mcard:hover .af-mcard__media img { transform: scale(1.04); }
.af-mcard.is-video .af-mcard__media { background: #111; }
.af-mcard__ph { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--af-green); font-size: 40px; opacity: .5; }
.af-mcard__play { position: absolute; top: 50%; left: 50%; display: flex; align-items: center; justify-content: center; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%; background: var(--af-red); color: #fff; font-size: 18px; box-shadow: 0 10px 24px rgba(0,0,0,.35); }
.af-mcard__date { position: absolute; top: 14px; left: 14px; padding: 8px 10px; border-radius: 12px; background: #fff; color: var(--af-text); text-align: center; font: 900 11px/1.15 var(--af-font); text-transform: uppercase; box-shadow: var(--af-shadow-sm); }
.af-mcard__date b { display: block; font-size: 22px; color: var(--af-green); }
.af-mcard.is-today .af-mcard__date { background: var(--af-red); color: #fff; } .af-mcard.is-today .af-mcard__date b { color: #fff; }
.af-mcard.is-past .af-mcard__media img { filter: grayscale(60%); }
.af-mcard__body { display: flex; flex-direction: column; gap: 6px; flex: 1; padding: 18px 20px 20px; }
.af-mcard__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; font-size: 12px; font-weight: 700; color: var(--af-muted); text-transform: uppercase; letter-spacing: .4px; }
body.af-theme .af-mcard h2 { margin: 0; font: 900 18px/1.3 var(--af-font); }
body.af-theme .af-mcard h2 a { color: var(--af-text); text-decoration: none; }
body.af-theme .af-mcard h2 a:hover { color: var(--af-green); }
.af-mcard__place { margin: 0; font-size: 13px; color: var(--af-text-soft); }
.af-mcard__place i { color: var(--af-green); margin-right: 4px; }
.af-mcard__intro { margin: 2px 0 0; font-size: 14px; line-height: 1.55; color: var(--af-text-soft); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.af-mcard .af-link-more { margin-top: auto; padding-top: 8px; font-size: 14px; }
.af-mcard--lead { grid-column: 1 / -1; }
@media (min-width: 900px) {
  .af-mcard--lead { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
  .af-mcard--lead .af-mcard__media { aspect-ratio: auto; min-height: 340px; }
  .af-mcard--lead .af-mcard__body { justify-content: center; padding: 34px; gap: 10px; }
  body.af-theme .af-mcard--lead h2 { font-size: 28px; }
  .af-mcard--lead .af-mcard__intro { font-size: 16px; -webkit-line-clamp: 5; }
}
.af-pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; margin: 36px 0 0; }
body.af-theme .af-pager a, .af-pager span { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--af-line); background: var(--af-surface, #fff); color: var(--af-text); font-weight: 700; text-decoration: none; }
body.af-theme .af-pager a:hover { border-color: var(--af-green); color: var(--af-green); }
.af-pager .is-current { background: var(--af-green); border-color: var(--af-green); color: #fff; }
html[data-theme="dark"] body.af-theme :is(.af-mcard, .af-pager a, .af-pager span:not(.is-current)) { background: var(--af-surface); border-color: var(--af-line); }
html[data-theme="dark"] body.af-theme .af-mcard h2 a { color: var(--af-text); }
html[data-theme="dark"] body.af-theme .af-tabs { background: var(--af-green-wash); }

/* Consultant profile: inline contact form card */
.af-contactcard { margin: 36px 0 0; padding: 28px; border-radius: 20px; background: var(--af-surface, #fff); border: 1px solid var(--af-line); box-shadow: var(--af-shadow); scroll-margin-top: 110px; }
body.af-theme .af-contactcard > h2 { margin: 0 0 18px; font-size: 22px; color: var(--af-text); }
body.af-theme #afSearch { scroll-margin-top: 90px; }


/* ==========================================================================
   v3 (2026-11): mobile request bar vs cookie banner, AI chat button,
   share bar, news & media, consultants carousel, map, categories, sitemap
   ========================================================================== */
/* Phones: the cookie banner never hides "Send my request" - the bar sits just above the banner */
@media (max-width: 599px) {
  html.afc-on .af-tray, html.afc-on .af-traypill { bottom: calc(var(--afc-h, 0px) + 18px) !important; transition: bottom .2s ease; }
  html.afc-on .af-tray { z-index: 100001; }
}


/* Share bar (inc/share.cfm) */
body.af-theme .af-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 14px 0 18px; }
body.af-theme .af-share__label { display: inline-flex; align-items: center; gap: 6px; margin-right: 4px; font-size: 13px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; color: var(--af-muted); }
body.af-theme .af-share__btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-width: 40px; height: 40px; padding: 0 12px; border: 1px solid var(--af-line); border-radius: 999px; background: var(--af-surface, #fff); color: var(--af-text); font: 700 14px/1 var(--af-font); text-decoration: none; cursor: pointer; transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease; }
body.af-theme .af-share__btn:hover, body.af-theme .af-share__btn:focus-visible { transform: translateY(-2px); color: #fff; border-color: transparent; }
body.af-theme .af-share__btn--wa:hover { background: #25d366; }
body.af-theme .af-share__btn--fb:hover { background: #1877f2; }
body.af-theme .af-share__btn--in:hover { background: #0a66c2; }
body.af-theme .af-share__btn--x:hover { background: #000; }
body.af-theme .af-share__btn--mail:hover, body.af-theme .af-share__btn--copy:hover, body.af-theme .af-share__btn--native:hover { background: var(--af-green); }
body.af-theme .af-share__btn--native { background: var(--af-green); color: #fff; border-color: transparent; }
body.af-theme .af-share__btn--copy.is-done { background: var(--af-green); color: #fff; }
body.af-theme .af-share__done:not(:empty) { position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); white-space: nowrap; padding: 5px 9px; border-radius: 6px; background: var(--af-text); color: #fff; font-size: 12px; }
body.af-theme .af-share__x { font: 900 16px/1 Arial, sans-serif; }
body.af-theme .af-share--compact { margin: 6px 0 14px; }
body.af-theme .af-share--compact .af-share__btn { height: 36px; min-width: 36px; padding: 0 10px; font-size: 13px; }
@media (max-width: 599px) {
  body.af-theme .af-share.has-native .af-share__btn--wa, body.af-theme .af-share.has-native .af-share__btn--fb,
  body.af-theme .af-share.has-native .af-share__btn--in, body.af-theme .af-share.has-native .af-share__btn--x, body.af-theme .af-share.has-native .af-share__btn--mail { display: none; }
}
body.af-theme #partage, body.af-theme .sharethis-sticky-share-buttons { display: none !important; }
body.af-theme .af-videowrap { max-width: 930px; margin: 1.5em auto; }

/* News and media on a franchise page (inc/franchise/medias.cfm) */
body.af-theme .af-fmedia { margin: 44px 0 10px; padding-top: 30px; border-top: 1px solid var(--af-line); }
body.af-theme .af-fmedia__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-bottom: 20px; }
body.af-theme .af-fmedia__head h2 { margin: 0; font-size: 24px; color: var(--af-text); }
body.af-theme .af-fmedia__head h2 i { color: var(--af-green); }
body.af-theme .af-fmedia__tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px; border-radius: 999px; background: var(--af-green-wash); }
body.af-theme .af-fmedia__tabs button { border: 0; background: none; padding: 8px 14px; border-radius: 999px; font: 700 14px/1 var(--af-font); color: var(--af-text-soft); cursor: pointer; }
body.af-theme .af-fmedia__tabs button b { display: inline-block; min-width: 20px; margin-left: 4px; padding: 2px 6px; border-radius: 999px; background: rgba(0,0,0,.06); font-size: 12px; }
body.af-theme .af-fmedia__tabs button.is-active { background: var(--af-green); color: #fff; }
body.af-theme .af-fmedia__tabs button.is-active b { background: rgba(255,255,255,.22); }
body.af-theme .af-fmedia__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
@media (min-width: 1000px) { body.af-theme .af-fmedia__grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 600px) and (max-width: 999px) { body.af-theme .af-fmedia__grid { grid-template-columns: repeat(2, 1fr); } }
body.af-theme .af-fmedia__item { display: flex; flex-direction: column; border: 1px solid var(--af-line); border-radius: var(--af-radius-lg); overflow: hidden; background: var(--af-surface, #fff); box-shadow: var(--af-shadow-sm); transition: transform .2s ease, box-shadow .2s ease; }
body.af-theme .af-fmedia__item[hidden] { display: none; }
body.af-theme .af-fmedia__item:hover { transform: translateY(-3px); box-shadow: var(--af-shadow); }
body.af-theme .af-fmedia__media { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--af-green-wash); overflow: hidden; }
body.af-theme .af-fmedia__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
body.af-theme .af-fmedia__ph { display: grid; place-items: center; width: 100%; height: 100%; font-size: 34px; color: var(--af-green-mid); }
body.af-theme .af-fmedia__play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; font-size: 18px; }
body.af-theme .af-fmedia__body { padding: 14px 16px 18px; }
body.af-theme .af-fmedia__meta { margin: 0 0 6px; font-size: 12.5px; color: var(--af-muted); }
body.af-theme .af-fmedia__kind { display: inline-block; margin-right: 6px; padding: 2px 8px; border-radius: 4px; font-weight: 900; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; background: var(--af-green-soft); color: var(--af-green-dark); }
body.af-theme .af-fmedia__kind--video { background: #fdecea; color: var(--af-red-dark); }
body.af-theme .af-fmedia__kind--article { background: #f6ecd8; color: #7a5717; }
body.af-theme .af-fmedia__body h3 { margin: 0 0 6px; font-size: 17px; line-height: 1.3; }
body.af-theme .af-fmedia__body h3 a { color: var(--af-text); text-decoration: none; }
body.af-theme .af-fmedia__body h3 a:hover { color: var(--af-green); }
body.af-theme .af-fmedia__intro { margin: 0; font-size: 14px; color: var(--af-text-soft); }
body.af-theme .af-fmedia__more { margin: 22px 0 0; text-align: center; }
body.af-theme .af-detail__video--v3 { aspect-ratio: auto; background: none; overflow: visible; border-radius: 0; }


/* Other consultants carousel (04_510.cfm) */
body.af-theme .af-carousel__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
body.af-theme .af-carousel__head h2 { margin: 0; }
body.af-theme .af-carousel__nav { display: flex; gap: 8px; }
body.af-theme .af-carousel__arrow { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--af-line); background: var(--af-surface, #fff); color: var(--af-green); cursor: pointer; box-shadow: var(--af-shadow-sm); transition: background .15s ease, color .15s ease; }
body.af-theme .af-carousel__arrow:hover:not(:disabled) { background: var(--af-green); color: #fff; }
body.af-theme .af-carousel__arrow:disabled { opacity: .35; cursor: default; }
body.af-theme .af-carousel__track { list-style: none; margin: 0; padding: 4px 2px 14px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, calc((100% - 48px) / 4)); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
body.af-theme .af-carousel__slide { scroll-snap-align: start; margin: 0; padding: 0; }
body.af-theme .af-carousel__slide:before { content: none; }
body.af-theme .af-ccard { display: flex; flex-direction: column; height: 100%; border: 1px solid var(--af-line); border-radius: var(--af-radius-lg); overflow: hidden; background: var(--af-surface, #fff); color: var(--af-text); text-decoration: none; box-shadow: var(--af-shadow-sm); transition: transform .2s ease, box-shadow .2s ease; }
body.af-theme .af-ccard:hover { transform: translateY(-3px); box-shadow: var(--af-shadow); color: var(--af-text); }
body.af-theme .af-ccard__media { display: grid; place-items: center; height: 150px; background: var(--af-green-wash); overflow: hidden; }
body.af-theme .af-ccard__media img { width: 100%; height: 100%; object-fit: cover; }
body.af-theme .af-ccard__name { padding: 14px 16px 4px; font-weight: 900; font-size: 16px; }
body.af-theme .af-ccard__intro { padding: 0 16px; font-size: 13.5px; color: var(--af-text-soft); }
body.af-theme .af-ccard__cta { margin-top: auto; padding: 12px 16px 16px; color: var(--af-green); font-weight: 700; font-size: 14px; }
@media (max-width: 900px) { body.af-theme .af-carousel__track { grid-auto-columns: minmax(200px, calc((100% - 16px) / 2)); } }
@media (max-width: 520px) { body.af-theme .af-carousel__track { grid-auto-columns: 78%; } }


/* Other consultants carousel (04_510.cfm) */
body.af-theme .af-carousel__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
body.af-theme .af-carousel__head h2 { margin: 0; }
body.af-theme .af-carousel__nav { display: flex; gap: 8px; }
body.af-theme .af-carousel__arrow { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--af-line); background: var(--af-surface, #fff); color: var(--af-green); cursor: pointer; box-shadow: var(--af-shadow-sm); transition: background .15s ease, color .15s ease; }
body.af-theme .af-carousel__arrow:hover:not(:disabled) { background: var(--af-green); color: #fff; }
body.af-theme .af-carousel__arrow:disabled { opacity: .35; cursor: default; }
body.af-theme .af-carousel__track { list-style: none; margin: 0; padding: 4px 2px 14px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, calc((100% - 48px) / 4)); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
body.af-theme .af-carousel__slide { scroll-snap-align: start; margin: 0; padding: 0; }
body.af-theme .af-carousel__slide:before { content: none; }
body.af-theme .af-ccard { display: flex; flex-direction: column; height: 100%; border: 1px solid var(--af-line); border-radius: var(--af-radius-lg); overflow: hidden; background: var(--af-surface, #fff); color: var(--af-text); text-decoration: none; box-shadow: var(--af-shadow-sm); transition: transform .2s ease, box-shadow .2s ease; }
body.af-theme .af-ccard:hover { transform: translateY(-3px); box-shadow: var(--af-shadow); color: var(--af-text); }
body.af-theme .af-ccard__media { display: grid; place-items: center; height: 150px; background: var(--af-green-wash); overflow: hidden; }
body.af-theme .af-ccard__media img { width: 100%; height: 100%; object-fit: cover; }
body.af-theme .af-ccard__name { padding: 14px 16px 4px; font-weight: 900; font-size: 16px; }
body.af-theme .af-ccard__intro { padding: 0 16px; font-size: 13.5px; color: var(--af-text-soft); }
body.af-theme .af-ccard__cta { margin-top: auto; padding: 12px 16px 16px; color: var(--af-green); font-weight: 700; font-size: 14px; }
@media (max-width: 900px) { body.af-theme .af-carousel__track { grid-auto-columns: minmax(200px, calc((100% - 16px) / 2)); } }
@media (max-width: 520px) { body.af-theme .af-carousel__track { grid-auto-columns: 78%; } }


/* Language switch EN | FR (top bar and mobile menu) */
body.af-theme .af-topbar .af-lang a { background: none; padding: 0; border-radius: 0; }
body.af-theme .af-langswitch { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(255,255,255,.14); }
body.af-theme .af-langswitch > i { padding: 0 6px 0 7px; font-size: 13px; opacity: .85; }
body.af-theme .af-langswitch a, body.af-theme .af-langswitch .is-current { display: inline-block; min-width: 34px; padding: 4px 10px; border-radius: 999px; font-weight: 900; font-size: 12px; letter-spacing: .06em; text-align: center; line-height: 1.2; }
body.af-theme .af-langswitch a { color: inherit; text-decoration: none; opacity: .85; transition: background .15s ease, opacity .15s ease; }
body.af-theme .af-langswitch a:hover, body.af-theme .af-langswitch a:focus-visible { background: rgba(255,255,255,.22); opacity: 1; color: #fff; }
body.af-theme .af-langswitch .is-current { background: #fff; color: var(--af-green-dark); }
body.af-theme .af-langswitch--pill { background: var(--af-green-wash); color: var(--af-text); }
body.af-theme .af-langswitch--pill a, body.af-theme .af-langswitch--pill .is-current { font-size: 13px; letter-spacing: 0; padding: 7px 12px; }
body.af-theme .af-langswitch--pill a:hover { background: var(--af-green-soft); color: var(--af-green-dark); }
body.af-theme .af-langswitch--pill .is-current { background: var(--af-green); color: #fff; }
body.af-theme .af-langswitch a[dir="rtl"] { letter-spacing: 0; font-weight: 700; font-size: 14px; font-family: Tahoma, "Segoe UI", Arial, sans-serif; }

/* Footer logo: larger (320 px wide, recommended upload 640 x 130 px, white on transparent) */
body.af-theme #piedPage .af-footer__brand img.af-footer__logo, .af-footer__brand img.af-footer__logo { width: 320px; max-width: 100%; height: auto; margin-bottom: 18px; }
@media (max-width: 599px) { body.af-theme #piedPage .af-footer__brand img.af-footer__logo { width: 260px; } }
/* Header logo uploaded in the administration: keep its proportions */
body.af-theme #logo img { height: auto; max-height: 64px; object-fit: contain; }


/* Directory: categories that have franchises (inc/repertoire/afficher.cfm), A-Z filter removed */
body.af-theme ul.liLettre { display: none; }
body.af-theme .af-catchips { margin: 36px 0 10px; padding: 24px; border-radius: var(--af-radius-lg); background: var(--af-green-wash); }
body.af-theme .af-catchips h2 { margin: 0 0 14px; font-size: 21px; color: var(--af-text); }
body.af-theme .af-catchips ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
body.af-theme .af-catchips li { margin: 0; padding: 0; }
body.af-theme .af-catchips li:before { content: none; }
body.af-theme .af-catchips a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; background: var(--af-surface, #fff); border: 1px solid var(--af-line); color: var(--af-text); font-weight: 700; font-size: 14px; text-decoration: none; transition: border-color .15s ease, color .15s ease, transform .15s ease; }
body.af-theme .af-catchips a:hover { border-color: var(--af-green); color: var(--af-green); transform: translateY(-1px); }
body.af-theme .af-catchips a b { min-width: 24px; padding: 2px 7px; border-radius: 999px; background: var(--af-green-soft); color: var(--af-green-dark); font-size: 12px; text-align: center; }
body.af-theme .af-catchips__all { margin: 14px 0 0; font-weight: 700; }


/* By location: map of the countries (inc/repertoire/carte.cfm) */
body.af-theme .af-map { margin: 6px 0 26px; padding: 20px; border-radius: 20px; background: linear-gradient(160deg, var(--af-green-wash), #fff); border: 1px solid var(--af-line); box-shadow: var(--af-shadow-sm); }
body.af-theme .af-map__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 18px; margin-bottom: 12px; }
body.af-theme .af-map__head h2 { margin: 0; font-size: 21px; color: var(--af-text); }
body.af-theme .af-map__head h2 i { color: var(--af-green); }
body.af-theme .af-map__legend { margin: 0; font-size: 13px; color: var(--af-text-soft); display: inline-flex; align-items: center; gap: 8px; }
body.af-theme .af-map__scale { display: inline-block; width: 70px; height: 10px; border-radius: 6px; background: linear-gradient(90deg, var(--af-green-soft), var(--af-green)); }
body.af-theme .af-map__canvas { position: relative; height: 460px; border-radius: 14px; overflow: hidden; background: #cfe3ef; }
body.af-theme .af-map__canvas .leaflet-container, body.af-theme .af-map__canvas.leaflet-container { background: #d6e9f3; font-family: var(--af-font); }
body.af-theme .af-map__loading { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; color: var(--af-text-soft); font-weight: 700; }
body.af-theme .af-map__tip { border-radius: 8px; border: 0; box-shadow: var(--af-shadow); font-size: 13px; padding: 6px 10px; }
body.af-theme .af-map path.leaflet-interactive { transition: fill .2s ease; }
html[data-theme="dark"] body.af-theme .af-map { background: var(--af-surface); }
@media (max-width: 599px) { body.af-theme .af-map { padding: 12px; } body.af-theme .af-map__canvas { height: 320px; } }


/* Home, browse by country: 6 random countries on phones + "Show all" */
body.af-theme .af-countries > li[hidden] { display: none !important; }
body.af-theme .af-countries__more { margin: 16px 0 0; text-align: center; }
body.af-theme .af-countries__more[hidden] { display: none; }


/* Site map (00_888.cfm) */
body.af-theme .af-sitemap__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; margin: 10px 0 26px; }
body.af-theme .af-sitemap__card { padding: 20px 22px; border: 1px solid var(--af-line); border-radius: var(--af-radius-lg); background: var(--af-surface, #fff); box-shadow: var(--af-shadow-sm); }
body.af-theme .af-sitemap__card--home { background: linear-gradient(150deg, var(--af-green), var(--af-green-dark)); color: #fff; border-color: transparent; }
body.af-theme .af-sitemap__card--home h2 a, body.af-theme .af-sitemap__card--home p { color: #fff; }
body.af-theme .af-sitemap__card h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 19px; color: var(--af-text); }
body.af-theme .af-sitemap__card h2 i { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--af-green-soft); color: var(--af-green-dark); font-size: 15px; }
body.af-theme .af-sitemap__card--home h2 i { background: rgba(255,255,255,.18); color: #fff; }
body.af-theme .af-sitemap__card ul { list-style: none; margin: 0; padding: 0; }
body.af-theme .af-sitemap__card li { margin: 0; padding: 0; border-top: 1px solid var(--af-line); }
body.af-theme .af-sitemap__card li:first-child { border-top: 0; }
body.af-theme .af-sitemap__card li:before { content: none; }
body.af-theme .af-sitemap__card li a { display: flex; justify-content: space-between; padding: 9px 2px; color: var(--af-text); font-weight: 700; text-decoration: none; }
body.af-theme .af-sitemap__card li a:after { content: "\2192"; color: var(--af-green); opacity: .5; transition: transform .15s ease, opacity .15s ease; }
body.af-theme .af-sitemap__card li a:hover { color: var(--af-green); }
body.af-theme .af-sitemap__card li a:hover:after { opacity: 1; transform: translateX(3px); }
body.af-theme .af-sitemap__cta { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; padding: 9px 14px; border-radius: 999px; background: #fff; color: var(--af-green-dark) !important; font-weight: 900; text-decoration: none; }
body.af-theme .af-sitemap__wide { margin: 0 0 22px; padding: 20px 22px; border-radius: var(--af-radius-lg); background: var(--af-green-wash); }
body.af-theme .af-sitemap__wide h2 { margin: 0 0 12px; font-size: 19px; color: var(--af-text); }
body.af-theme .af-sitemap__wide h2 i { color: var(--af-green); }
body.af-theme .af-sitemap__chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
body.af-theme .af-sitemap__chips li { margin: 0; padding: 0; }
body.af-theme .af-sitemap__chips li:before { content: none; }
body.af-theme .af-sitemap__chips a { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px; background: var(--af-surface, #fff); border: 1px solid var(--af-line); color: var(--af-text); font-weight: 700; font-size: 14px; text-decoration: none; }
body.af-theme .af-sitemap__chips a:hover { border-color: var(--af-green); color: var(--af-green); }
body.af-theme .af-sitemap__chips b { padding: 1px 7px; border-radius: 999px; background: var(--af-green-soft); color: var(--af-green-dark); font-size: 12px; }


/* Industry category page (02_310.cfm) */
body.af-theme .af-cathead { position: relative; padding: 28px 30px 24px; margin-bottom: 22px; border-radius: 20px; background: linear-gradient(135deg, var(--af-green-wash) 0%, #fff 70%); border: 1px solid var(--af-line); }
body.af-theme .af-cathead h1 { margin-bottom: .35em; }
body.af-theme .af-cathead .af-eyebrow a { color: inherit; }
body.af-theme .af-cathead__text { max-height: 7.2em; overflow: hidden; position: relative; color: var(--af-text-soft); font-size: 15.5px; max-width: 980px; }
body.af-theme .af-cathead__text:not(.is-open):after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3em; background: linear-gradient(rgba(255,255,255,0), #fbfdfb); }
body.af-theme .af-cathead__text.is-open { max-height: none; }
body.af-theme .af-cathead__more { margin-top: 6px; border: 0; background: none; padding: 4px 0; color: var(--af-green); font: 700 14px var(--af-font); cursor: pointer; }
body.af-theme .af-cathead__stats { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
body.af-theme .af-cathead__stats li { margin: 0; padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--af-line); font-size: 14px; color: var(--af-text-soft); }
body.af-theme .af-cathead__stats li:before { content: none; }
body.af-theme .af-cathead__stats strong { color: var(--af-green-dark); font-size: 16px; }
body.af-theme .af-subcats { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
body.af-theme .af-subcat { display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border-radius: 999px; border: 1px solid var(--af-line); background: var(--af-surface, #fff); color: var(--af-text); font: 700 14px/1.2 var(--af-font); text-decoration: none; cursor: pointer; transition: border-color .15s ease, background .15s ease, color .15s ease; }
body.af-theme .af-subcat:hover { border-color: var(--af-green); color: var(--af-green); }
body.af-theme .af-subcat b { min-width: 22px; padding: 2px 7px; border-radius: 999px; background: var(--af-green-soft); color: var(--af-green-dark); font-size: 12px; text-align: center; }
body.af-theme .af-subcat.is-active { background: var(--af-green); border-color: var(--af-green); color: #fff; }
body.af-theme .af-subcat.is-active b { background: rgba(255,255,255,.22); color: #fff; }
body.af-theme .af-catpage li.af-card[hidden] { display: none !important; }
html[data-theme="dark"] body.af-theme .af-cathead { background: var(--af-surface); }
@media (max-width: 599px) { body.af-theme .af-cathead { padding: 20px 18px; } body.af-theme .af-subcats { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; } body.af-theme .af-subcat { flex: none; } }


/* Request is full (11th franchise): a request holds at most 10 */
.af-full { position: fixed; inset: 0; z-index: 5000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.af-full[hidden] { display: none; }
.af-full__backdrop { position: absolute; inset: 0; background: rgba(12,28,18,.55); backdrop-filter: blur(3px); opacity: 0; transition: opacity .2s ease; }
.af-full__box { position: relative; width: min(440px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 34px 28px 24px; border-radius: 20px; background: #fff; color: var(--af-text); text-align: center; box-shadow: 0 30px 70px rgba(0,0,0,.3); font-family: var(--af-font); transform: translateY(18px) scale(.97); opacity: 0; transition: transform .22s ease, opacity .22s ease; }
.af-full.is-open .af-full__backdrop { opacity: 1; }
.af-full.is-open .af-full__box { transform: none; opacity: 1; }
.af-full__x { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--af-green-wash); color: var(--af-text-soft); font-size: 15px; cursor: pointer; }
.af-full__x:hover { background: var(--af-green-soft); color: var(--af-green-dark); }
.af-full__badge { position: relative; display: inline-grid; place-items: center; width: 74px; height: 74px; margin: 0 auto 14px; border-radius: 22px; background: linear-gradient(135deg, var(--af-green-dark), var(--af-green)); color: #fff; font-size: 30px; box-shadow: 0 12px 26px color-mix(in srgb, var(--af-green) 30%, transparent); }
.af-full__badge b { position: absolute; right: -14px; bottom: -8px; padding: 3px 9px; border-radius: 999px; background: var(--af-red); color: #fff; font: 900 12px/1.4 var(--af-font); box-shadow: 0 0 0 3px #fff; }
body.af-theme .af-full__title { margin: 0 0 8px; color: var(--af-text); font-size: 22px; font-weight: 900; letter-spacing: -.3px; }
.af-full__text { margin: 0 0 16px; color: var(--af-text-soft); font-size: 15px; line-height: 1.55; }
.af-full__text strong { color: var(--af-text); }
.af-full__meter { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; margin: 0 auto 20px; max-width: 260px; }
.af-full__meter span { height: 6px; border-radius: 3px; background: var(--af-green); }
.af-full__actions { display: flex; flex-direction: column; gap: 8px; }
body.af-theme .af-full__actions .button { width: 100%; margin: 0; padding: 14px 18px; justify-content: center; }
.af-full__ghost { width: 100%; padding: 12px 18px; border: 2px solid var(--af-line); border-radius: var(--af-radius); background: transparent; color: var(--af-green-dark); font: 700 15px/1.2 var(--af-font); cursor: pointer; }
.af-full__ghost:hover { border-color: var(--af-green); background: var(--af-green-wash); }
.af-full__note { margin: 14px 0 0; color: var(--af-muted); font-size: 13px; }
html[data-theme="dark"] .af-full__box { background: #16241c; color: var(--af-green-soft); }
html[data-theme="dark"] body.af-theme .af-full__title, html[data-theme="dark"] .af-full__text strong { color: #fff; }
html[data-theme="dark"] .af-full__text { color: #c4d8cb; }
html[data-theme="dark"] .af-full__x { background: rgba(255,255,255,.08); color: var(--af-green-soft); }
html[data-theme="dark"] .af-full__ghost { border-color: rgba(255,255,255,.18); color: var(--af-green-soft); }
html[data-theme="dark"] .af-full__badge b { box-shadow: 0 0 0 3px #16241c; }
@media (max-width: 599px) { .af-full { align-items: flex-end; padding: 0; } .af-full__box { width: 100%; border-radius: 20px 20px 0 0; padding: 30px 20px calc(20px + env(safe-area-inset-bottom)); transform: translateY(40px); } }
@media (prefers-reduced-motion: reduce) { .af-full__box, .af-full__backdrop { transition: none; } }


/* Text from the editor: aligned pictures and captions */
body.af-theme .incTinyMce img, body.af-theme .prose img { max-width: 100%; height: auto; }
body.af-theme figure.image { display: table; margin: 1.2em auto; }
body.af-theme figure.image img { display: block; }
body.af-theme figure.image figcaption { display: table-caption; caption-side: bottom; padding-top: 6px; font-size: 13px; color: var(--af-text-soft); text-align: center; }
body.af-theme figure.image.align-left { float: left; margin: .3em 1.2em 1em 0; }
body.af-theme figure.image.align-right { float: right; margin: .3em 0 1em 1.2em; }
@media (max-width: 599px) { body.af-theme .incTinyMce img[style*="float"] { float: none !important; display: block; margin: 1em auto !important; } }


/* Form popups (request info, newsletter): sized for the form, close button inside the form (js/forms.js) */
.fancybox-container:has(iframe[src*="inc/form/"]) .fancybox-toolbar,
.fancybox-container:has(iframe[src*="inc/form/"]) .fancybox-close-small { display: none !important; }
.fancybox-container:has(iframe[src*="inc/form/"]) .fancybox-slide--iframe { padding: 24px !important; }
.fancybox-container:has(iframe[src*="inc/form/"]) .fancybox-slide--iframe .fancybox-content {
  width: 680px !important; max-width: 100% !important; height: min(900px, calc(100vh - 48px)) !important; max-height: 100% !important;
  margin: 0 !important; border-radius: 20px; overflow: hidden; background: #fff; box-shadow: 0 30px 80px rgba(0,0,0,.35);
}
@media (max-width: 599px) {
  .fancybox-container:has(iframe[src*="inc/form/"]) .fancybox-slide--iframe { padding: 0 !important; }
  .fancybox-container:has(iframe[src*="inc/form/"]) .fancybox-slide--iframe::before { vertical-align: bottom; }
  .fancybox-container:has(iframe[src*="inc/form/"]) .fancybox-slide--iframe .fancybox-content {
    width: 100% !important; height: calc(100% - 14px) !important; height: calc(100dvh - 14px) !important;
    vertical-align: bottom; border-radius: 18px 18px 0 0; box-shadow: 0 -10px 40px rgba(0,0,0,.3);
  }
}
html[data-theme="dark"] .fancybox-container:has(iframe[src*="inc/form/"]) .fancybox-slide--iframe .fancybox-content { background: #16241c; }


/* Choose a category (inc/repertoire/categories.cfm) on /industries/ and /browse-franchise/ */
.af-cats { margin: 26px 0 40px; }
.af-cats__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 24px; margin: 0 0 18px; }
body.af-theme .af-cats__head h2 { margin: 0 0 4px; font-size: 26px; color: var(--af-text); }
.af-cats__head p { margin: 0; color: var(--af-text-soft); }
.af-cats__filter { position: relative; display: block; width: min(320px, 100%); margin: 0; }
.af-cats__filter i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--af-muted); font-size: 14px; }
body.af-theme .af-cats__filter input { width: 100%; height: 46px; margin: 0; padding: 0 14px 0 38px; border: 1px solid var(--af-input); border-radius: 12px; background: var(--af-surface, #fff); color: var(--af-text); font: 15px var(--af-font); outline: 0; }
body.af-theme .af-cats__filter input:focus { border-color: var(--af-green-light); box-shadow: 0 0 0 3px color-mix(in srgb, var(--af-green-light) 20%, transparent); }
.af-cats__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.af-cats__card { display: flex; flex-direction: column; margin: 0; padding: 0; border: 1px solid var(--af-line); border-radius: 18px; background: var(--af-surface, #fff); box-shadow: var(--af-shadow-sm); transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease; }
.af-cats__card::before { display: none !important; }
.af-cats__card[hidden] { display: none; }
.af-cats__card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--af-green) 35%, transparent); box-shadow: var(--af-shadow); }
body.af-theme a.af-cats__main { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 16px 16px 12px; color: var(--af-text); text-decoration: none; }
.af-cats__ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--af-green-soft); color: var(--af-green); font-size: 19px; transition: background .2s ease, color .2s ease; }
.af-cats__card:hover .af-cats__ico { background: var(--af-green); color: #fff; }
.af-cats__name { font: 900 16.5px/1.25 var(--af-font); }
.af-cats__nb { display: flex; flex-direction: column; align-items: center; min-width: 52px; padding: 6px 8px; border-radius: 12px; background: var(--af-green-wash, #f4f8f5); color: var(--af-green-dark); font: 900 18px/1 var(--af-font); }
.af-cats__nb small { margin-top: 3px; font-size: 10px; font-weight: 700; letter-spacing: .3px; text-transform: uppercase; color: var(--af-text-soft); }
.af-cats__subs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0 16px 16px; list-style: none; }
.af-cats__subs li { margin: 0; padding: 0; }
.af-cats__subs li::before { display: none !important; }
body.af-theme .af-cats__subs a { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border: 1px solid var(--af-line); border-radius: 999px; color: var(--af-text-soft); font-size: 13px; text-decoration: none; }
body.af-theme .af-cats__subs a b { color: var(--af-green-dark); font-size: 12px; }
body.af-theme .af-cats__subs a:hover { border-color: var(--af-green); color: var(--af-green-dark); background: var(--af-green-soft); }
body.af-theme .af-cats__subs a.af-cats__more { border-style: dashed; color: var(--af-green-dark); font-weight: 700; }
.af-cats__none { margin: 18px 0; color: var(--af-muted); text-align: center; }
@media (max-width: 599px) { body.af-theme .af-cats__head h2 { font-size: 22px; } .af-cats__filter { width: 100%; } .af-cats__grid { grid-template-columns: 1fr; gap: 12px; } }
html[data-theme="dark"] .af-cats__card { background: var(--af-surface); }

/* Browse by category on /franchise-directory/ (compact cards, no sub-categories) */
.af-cats--compact { margin: 40px 0 10px; padding-top: 30px; border-top: 1px solid var(--af-line); }
body.af-theme .af-cats--compact .af-cats__head h2 { font-size: 22px; }
.af-cats--compact .af-cats__head { align-items: center; }
.af-cats--compact .af-cats__grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.af-cats--compact .af-cats__card { border-radius: 14px; }
body.af-theme .af-cats--compact a.af-cats__main { padding: 12px 12px; gap: 10px; height: 100%; }
.af-cats--compact .af-cats__ico { width: 40px; height: 40px; border-radius: 12px; font-size: 16px; }
.af-cats--compact .af-cats__name { font-size: 15px; }
.af-cats--compact .af-cats__nb { min-width: 0; padding: 4px 10px; flex-direction: row; font-size: 14px; border-radius: 999px; }
.af-cats--compact .af-cats__nb small { display: none; }
body.af-theme a.af-cats__all { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border: 1.5px solid var(--af-green); border-radius: 999px; color: var(--af-green-dark); font-weight: 700; text-decoration: none; white-space: nowrap; }
body.af-theme a.af-cats__all:hover { background: var(--af-green); color: #fff; }
@media (max-width: 599px) { .af-cats--compact .af-cats__grid { grid-template-columns: 1fr 1fr; gap: 10px; } body.af-theme .af-cats--compact a.af-cats__main { grid-template-columns: auto 1fr; grid-template-areas: "ico nb" "name name"; } .af-cats--compact .af-cats__ico { grid-area: ico; } .af-cats--compact .af-cats__nb { grid-area: nb; justify-self: end; } .af-cats--compact .af-cats__name { grid-area: name; font-size: 14px; } }

/* 404 page (00_404.cfm) */
.af-404 { max-width: 920px; margin: 0 auto; padding: 36px 16px 56px; }
.af-404__hero { margin: 0 0 40px; padding: 40px 28px; border-radius: 24px; background: radial-gradient(circle at 20% 0%, var(--af-green-soft), transparent 55%), var(--af-green-wash, #f4f8f5); text-align: center; }
.af-404__art { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0 0 14px; }
.af-404__num { font: 900 clamp(84px, 16vw, 140px)/1 var(--af-font); color: var(--af-green); letter-spacing: -4px; text-shadow: 0 10px 30px color-mix(in srgb, var(--af-green) 18%, transparent); }
.af-404__globe { display: grid; place-items: center; width: clamp(72px, 13vw, 116px); height: clamp(72px, 13vw, 116px); border-radius: 50%; background: linear-gradient(135deg, var(--af-green-dark), var(--af-green)); color: #fff; font-size: clamp(34px, 6vw, 54px); box-shadow: 0 16px 34px color-mix(in srgb, var(--af-green) 30%, transparent); animation: af404spin 12s linear infinite; }
@keyframes af404spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .af-404__globe { animation: none; } }
body.af-theme .af-404 h1 { margin: 0 0 10px; color: var(--af-text); font-size: clamp(24px, 4vw, 34px); }
.af-404__lead { max-width: 560px; margin: 0 auto 22px; color: var(--af-text-soft); font-size: 16px; }
.af-404__search { position: relative; display: flex; gap: 8px; max-width: 560px; margin: 0 auto 18px; }
.af-404__search > i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--af-muted); }
body.af-theme .af-404__search input[type=text] { flex: 1; min-width: 0; height: 52px; margin: 0; padding: 0 14px 0 42px; border: 1px solid var(--af-input); border-radius: 14px; background: var(--af-surface, #fff); color: var(--af-text); font: 16px var(--af-font); box-shadow: var(--af-shadow-sm); }
body.af-theme .af-404__search input[type=text]:focus { border-color: var(--af-green-light); box-shadow: 0 0 0 3px color-mix(in srgb, var(--af-green-light) 20%, transparent); outline: 0; }
body.af-theme .af-404__search .button { flex: none; height: 52px; margin: 0; padding: 0 22px; border-radius: 14px; }
.af-404__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0; }
body.af-theme .af-404__btns a { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 999px; font-weight: 700; text-decoration: none; }
body.af-theme a.af-404__home { background: var(--af-green); color: #fff; }
body.af-theme a.af-404__home:hover { background: var(--af-green-dark); color: #fff; }
body.af-theme a.af-404__ghost { border: 1.5px solid var(--af-line); color: var(--af-green-dark); background: var(--af-surface, #fff); }
body.af-theme a.af-404__ghost:hover { border-color: var(--af-green); }
body.af-theme .af-404__h2 { margin: 0 0 14px; font-size: 20px; color: var(--af-text); }
.af-404__links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 0 0 36px; padding: 0; list-style: none; }
.af-404__links li { margin: 0; padding: 0; }
.af-404__links li::before, .af-404__chips li::before { display: none !important; }
body.af-theme .af-404__links a { display: flex; align-items: center; gap: 14px; height: 100%; padding: 14px 16px; border: 1px solid var(--af-line); border-radius: 16px; background: var(--af-surface, #fff); color: var(--af-text); text-decoration: none; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
body.af-theme .af-404__links a:hover { border-color: color-mix(in srgb, var(--af-green) 35%, transparent); box-shadow: var(--af-shadow); transform: translateY(-2px); }
.af-404__ico { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: var(--af-green-soft); color: var(--af-green); font-size: 18px; }
.af-404__links strong { display: block; font-size: 15.5px; }
.af-404__links small { display: block; color: var(--af-text-soft); font-size: 13px; }
.af-404__links a > span:nth-child(2) { flex: 1; min-width: 0; }
.af-404__go { color: var(--af-green); }
.af-404__chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.af-404__chips li { margin: 0; padding: 0; }
body.af-theme .af-404__chips a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--af-line); border-radius: 999px; background: var(--af-surface, #fff); color: var(--af-text); font-size: 14px; text-decoration: none; }
body.af-theme .af-404__chips a b { color: var(--af-green-dark); font-size: 12.5px; }
body.af-theme .af-404__chips a:hover { border-color: var(--af-green); background: var(--af-green-soft); }
@media (max-width: 599px) { .af-404__hero { padding: 28px 16px; border-radius: 18px; } .af-404__links { grid-template-columns: 1fr; } .af-404__search { flex-direction: column; } body.af-theme .af-404__search .button { width: 100%; } .af-404__search > i { top: 26px; } }
/* 404: background across the whole width, search button text centered */
.af-404 { padding-top: 0; }
.af-404__hero { border-radius: 0; padding-top: 48px; padding-bottom: 48px; background: var(--af-green-wash, #f4f8f5); box-shadow: 0 0 0 100vmax var(--af-green-wash, #f4f8f5); clip-path: inset(0 -100vmax); }
body.af-theme .af-404__search .button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 52px; min-height: 0; padding: 0 26px !important; line-height: 1 !important; vertical-align: top; box-shadow: none; }
@media (max-width: 599px) { .af-404__hero { padding: 32px 0; border-radius: 0; } }
/* 404: no white gap between the breadcrumb and the green background */
#conteneurBd:has(.af-404) > .filAriane { margin-bottom: 0; }
main#main:has(> .af-404) { padding-top: 0; }

/* =====================================================================
   Home page v4: search card (no keyword), stats under the text,
   "See all featured" button, newsletter strip, logo strip of any length
   ===================================================================== */
body.af-theme .af-hero__in { align-items: center; }
body.af-theme .af-hero__stats--inline { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 26px 0 0; }
body.af-theme .af-hero__stats--inline li { display: flex; align-items: baseline; gap: 8px; padding: 0; background: none; border: 0; backdrop-filter: none; border-radius: 0; flex-direction: row; }
body.af-theme .af-hero__stats--inline strong { font-size: 26px; min-width: 0; }
body.af-theme .af-hero__stats--inline span { font-size: 14px; }
body.af-theme .af-hsearch { position: relative; display: grid; gap: 14px; padding: 26px 24px 20px; border-radius: 22px; background: var(--af-surface, #fff); color: var(--af-text); box-shadow: 0 24px 60px rgba(0,0,0,.28); min-width: 0; }
body.af-theme .af-hsearch__title { margin: 0 0 2px; font: 900 20px/1.2 var(--af-font); color: var(--af-text); display: flex; align-items: center; gap: 10px; }
body.af-theme .af-hsearch__title i { width: 36px; height: 36px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: var(--af-green-wash); color: var(--af-green); font-size: 15px; }
body.af-theme .af-hsearch__field { display: grid; gap: 6px; min-width: 0; }
body.af-theme .af-hsearch__field label { font-weight: 700; font-size: 13px; color: var(--af-text-soft, var(--af-muted)); display: flex; align-items: center; gap: 7px; margin: 0; }
body.af-theme .af-hsearch__field label i { color: var(--af-green); width: 14px; text-align: center; }
body.af-theme .af-hsearch select { width: 100%; height: 48px; padding: 0 40px 0 14px; border: 1px solid var(--af-line); border-radius: 12px; background: var(--af-input, #fff) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23597164' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 14px center; -webkit-appearance: none; appearance: none; font: 15px var(--af-font); color: var(--af-text); }
body.af-theme .af-hsearch select:focus { outline: 2px solid var(--af-green-light); outline-offset: 1px; border-color: var(--af-green); }
body.af-theme .af-hsearch .af-hsearch__go { width: 100%; margin: 6px 0 0; height: 52px; padding: 0 20px !important; line-height: 1 !important; border-radius: 14px; font-size: 16px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
body.af-theme .af-hsearch__note { margin: 0; text-align: center; font-size: 14px; }
body.af-theme .af-hero .af-hsearch__note a { color: var(--af-green-dark); font-weight: 700; }
@media (max-width: 1022px) { body.af-theme .af-hsearch { max-width: 560px; } }
@media (max-width: 479px) { body.af-theme .af-hsearch { padding: 20px 16px 16px; border-radius: 18px; } }
html[data-theme="dark"] body.af-theme .af-hero .af-hsearch__note a { color: var(--af-green-light); }

body.af-theme .af-more-btn { margin: 30px 0 0; text-align: center; }
body.af-theme .af-btn-all { display: inline-flex; align-items: center; gap: 12px; padding: 15px 26px; border-radius: 999px; background: var(--af-green); color: #fff !important; font-weight: 900; font-size: 16px; text-decoration: none; box-shadow: 0 12px 26px color-mix(in srgb, var(--af-green) 28%, transparent); transition: transform .15s, box-shadow .15s, background .15s; }
body.af-theme .af-btn-all:hover { background: var(--af-green-dark); transform: translateY(-2px); box-shadow: 0 16px 32px color-mix(in srgb, var(--af-green) 34%, transparent); }
body.af-theme .af-btn-all b { margin-left: 6px; padding: 2px 9px; border-radius: 999px; background: rgba(255,255,255,.22); font-size: 13px; }
body.af-theme .af-btn-all__go { transition: transform .15s; }
body.af-theme .af-btn-all:hover .af-btn-all__go { transform: translateX(4px); }

body.af-theme .af-nlmini { padding: 0 0 56px; }
body.af-theme .af-nlmini__in { display: flex; align-items: center; gap: 14px 18px; flex-wrap: wrap; padding: 22px 24px; border-radius: 20px; background: var(--af-green-wash); border: 1px solid var(--af-line); }
body.af-theme .af-nlmini__ico { flex: none; width: 52px; height: 52px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; background: var(--af-green); color: #fff; font-size: 22px; }
body.af-theme .af-nlmini__txt { flex: 1 1 260px; min-width: 0; }
body.af-theme .af-nlmini__txt h2 { margin: 0 0 4px; font-size: 20px; line-height: 1.25; }
body.af-theme .af-nlmini__txt p { margin: 0; color: var(--af-text-soft, var(--af-muted)); font-size: 14px; }
body.af-theme .af-nlmini__email { flex: 1 1 240px; min-width: 0; height: 50px; padding: 0 16px; border: 1px solid var(--af-line); border-radius: 999px; background: var(--af-input, #fff); font: 15px var(--af-font); color: var(--af-text); }
body.af-theme .af-nlmini .button { flex: none; height: 50px; margin: 0; padding: 0 24px !important; line-height: 1 !important; border-radius: 999px; display: inline-flex; align-items: center; }
@media (max-width: 599px) { body.af-theme .af-nlmini__in { padding: 18px 16px; } body.af-theme .af-nlmini .button { width: 100%; justify-content: center; } }

/* Logo strip: speed stays the same whatever the number of logos */
.af-marquee__track { animation-duration: calc(var(--af-marquee-n, 18) * 3.2s); }
@media (prefers-reduced-motion: reduce) { .af-marquee__track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; } .af-marquee__item[aria-hidden="true"] { display: none; } }

/* Advertise with us: contact form under the text (instead of the price list) */
body.af-theme .af-adv-form { margin: 32px 0 8px; scroll-margin-top: 110px; }

/* =====================================================================
   Home page v4.1: budget slider in the search card, centered featured
   grid (1 to 4 cards), newsletter card
   ===================================================================== */
body.af-theme .af-hsearch .af-budget { height: 50px; padding: 0 6px 0 14px; gap: 10px; border-radius: 12px; }
body.af-theme .af-hsearch .af-budget input[type=range] { flex: 1 1 auto; min-width: 60px; margin: 0; }
body.af-theme .af-hsearch .af-budget input[type=text] { flex: none; width: 118px; height: 36px; margin: 0; padding: 0 8px; border: 0; border-radius: 9px; background: var(--af-green-wash); color: var(--af-green); font: 900 14px var(--af-font); text-align: center; box-shadow: none; outline: 0; }
body.af-theme .af-hsearch .af-budget input[type=text]::placeholder { color: var(--af-muted); font-weight: 700; }
body.af-theme .af-hsearch .af-budget input[type=text]:focus { box-shadow: 0 0 0 2px var(--af-green-light); }
@media (max-width: 479px) { body.af-theme .af-hsearch .af-budget { flex-wrap: nowrap; height: 50px; padding: 0 6px 0 12px; } body.af-theme .af-hsearch .af-budget input[type=range] { flex-basis: auto; } body.af-theme .af-hsearch .af-budget input[type=text] { width: 100px; } }

/* Featured block: 1, 2 or 3 cards in the middle, 4 always on one row (2 x 2 on tablets, 1 per row on phones) */
body.af-theme ul.af-grid.af-grid--center { grid-template-columns: repeat(var(--af-n, 3), minmax(0, 300px)); justify-content: center; }
body.af-theme ul.af-grid.af-grid--n1 { --af-n: 1; }
body.af-theme ul.af-grid.af-grid--n2 { --af-n: 2; }
body.af-theme ul.af-grid.af-grid--n3 { --af-n: 3; }
body.af-theme ul.af-grid.af-grid--n4 { --af-n: 4; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 1022px) { body.af-theme ul.af-grid.af-grid--n3, body.af-theme ul.af-grid.af-grid--n4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) { body.af-theme ul.af-grid.af-grid--center, body.af-theme ul.af-grid.af-grid--n4 { grid-template-columns: minmax(0, 1fr); } }
body.af-theme .af-section__head--center .af-eyebrow i { color: #f2b01e; }

body.af-theme .af-nl { padding: 8px 0 64px; }
body.af-theme .af-nl__card { position: relative; overflow: hidden; display: grid; grid-template-columns: auto minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; gap: 28px 36px; padding: 36px 40px; border-radius: 26px;
  background: radial-gradient(120% 140% at 100% 0%, var(--af-green-light) 0%, transparent 45%), linear-gradient(135deg, var(--af-green) 0%, var(--af-brand-dark, #0d3b22) 100%); color: #fff; box-shadow: var(--af-shadow-lg); }
body.af-theme .af-nl__card::after { content: ""; position: absolute; right: -60px; bottom: -80px; width: 260px; height: 260px; border-radius: 50%; background: rgba(255,255,255,.07); pointer-events: none; }
body.af-theme .af-nl__art { position: relative; width: 96px; height: 96px; }
body.af-theme .af-nl__env { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; border-radius: 28px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.3); font-size: 40px; color: #fff; transform: rotate(-6deg); animation: af-nl-float 4s ease-in-out infinite; }
body.af-theme .af-nl__dot { position: absolute; border-radius: 50%; background: #f2b01e; }
body.af-theme .af-nl__dot--1 { width: 16px; height: 16px; right: -6px; top: -4px; }
body.af-theme .af-nl__dot--2 { width: 9px; height: 9px; left: -8px; bottom: 6px; background: #fff; opacity: .7; }
@keyframes af-nl-float { 0%, 100% { transform: rotate(-6deg) translateY(0); } 50% { transform: rotate(-3deg) translateY(-6px); } }
body.af-theme .af-nl__eyebrow { margin: 0 0 6px; font: 900 12px/1 var(--af-font); letter-spacing: 1.2px; text-transform: uppercase; color: var(--af-mint); }
body.af-theme .af-nl__copy h2 { margin: 0 0 8px; color: #fff; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.15; }
body.af-theme .af-nl__lead { margin: 0 0 14px; color: var(--af-green-soft); font-size: 15px; line-height: 1.55; }
body.af-theme .af-nl__perks { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0; padding: 0; list-style: none; }
body.af-theme .af-nl__perks li { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: 14px; color: #fff; }
body.af-theme .af-nl__perks i { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; background: rgba(255,255,255,.2); font-size: 10px; }
body.af-theme .af-nl__form { position: relative; z-index: 1; padding: 20px; border-radius: 18px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(6px); }
body.af-theme .af-nl__label { display: block; margin: 0 0 8px; font-weight: 700; font-size: 14px; color: #fff; }
body.af-theme .af-nl__row { display: flex; gap: 8px; }
body.af-theme .af-nl__field { position: relative; flex: 1 1 auto; min-width: 0; }
body.af-theme .af-nl__field i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--af-muted); }
body.af-theme .af-nl__field input { width: 100%; height: 52px; margin: 0; padding: 0 14px 0 42px; border: 0; border-radius: 14px; background: #fff; color: var(--af-text); font: 15px var(--af-font); box-shadow: none; outline: 0; }
body.af-theme .af-nl__field input:focus { box-shadow: 0 0 0 3px rgba(255,255,255,.45); }
body.af-theme .af-nl__row .button { flex: none; height: 52px; margin: 0; padding: 0 22px !important; line-height: 1 !important; border-radius: 14px; display: inline-flex; align-items: center; gap: 9px; background: var(--af-red, #dd5244) !important; color: #fff !important; border: 0; font-weight: 900; box-shadow: 0 10px 22px rgba(0,0,0,.18); }
body.af-theme .af-nl__row .button:hover { background: var(--af-red-dark, #cc4b3e) !important; color: #fff !important; }
body.af-theme .af-nl__row .button:hover { filter: brightness(1.05); transform: translateY(-1px); }
body.af-theme .af-nl__note { margin: 10px 0 0; font-size: 12px; color: #d6efdd; display: flex; align-items: center; gap: 6px; }
@media (max-width: 1022px) { body.af-theme .af-nl__card { grid-template-columns: auto minmax(0, 1fr); padding: 30px 28px; } body.af-theme .af-nl__form { grid-column: 1 / -1; } }
@media (max-width: 599px) { body.af-theme .af-nl__card { grid-template-columns: minmax(0, 1fr); padding: 26px 18px; gap: 18px; border-radius: 20px; } body.af-theme .af-nl__art { width: 70px; height: 70px; } body.af-theme .af-nl__env { font-size: 28px; border-radius: 20px; } body.af-theme .af-nl__row { flex-direction: column; } body.af-theme .af-nl__row .button { justify-content: center; } }
@media (prefers-reduced-motion: reduce) { body.af-theme .af-nl__env { animation: none; } }

/* News, article, video: button to the franchise it is about (inc/franchise/media_links.cfm) */
body.af-theme .af-medialink { display: grid; gap: 12px; margin: 32px 0 8px; }
body.af-theme .af-medialink__card { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 16px 18px; border: 1px solid var(--af-line); border-radius: var(--af-radius-lg); background: var(--af-green-wash); }
body.af-theme .af-medialink__logo { flex: none; display: flex; align-items: center; justify-content: center; width: 86px; height: 64px; padding: 8px; border-radius: 12px; background: #fff; border: 1px solid var(--af-line); }
body.af-theme .af-medialink__logo img { max-width: 100%; max-height: 48px; object-fit: contain; }
body.af-theme .af-medialink__logo span { font: 900 26px var(--af-font); color: var(--af-green); }
body.af-theme .af-medialink__txt { flex: 1 1 200px; min-width: 0; }
body.af-theme .af-medialink__eyebrow { margin: 0 0 2px !important; font: 900 11px/1.2 var(--af-font); letter-spacing: .8px; text-transform: uppercase; color: var(--af-muted); }
body.af-theme .af-medialink__name { margin: 0 !important; font: 900 19px/1.25 var(--af-font); color: var(--af-text); }
body.af-theme .af-medialink__btn { flex: none; margin: 0 !important; display: inline-flex !important; align-items: center; gap: 8px; padding: 13px 20px !important; line-height: 1 !important; border-radius: 12px; }
@media (max-width: 599px) { body.af-theme .af-medialink__btn { width: 100%; justify-content: center; } }

/* Home: SEO text right under "Are you a franchisor?", no blank strip above the footer */
body.af-theme .af-section--seo { padding-top: 0; }
body.af-theme .af-section--seo .af-seo { margin-top: 0; padding-top: 0; }
body.af-theme .af-section--seo .af-seo > :first-child { margin-top: 0; }
body.af-theme.pAccueil main#main { padding-bottom: 0; }

/* Footer: the text under the logo is exactly as wide as the logo (the column takes the logo's width, the text fills it) */
body.af-theme #piedPage .af-footer__brand { width: fit-content; max-width: 100%; }
body.af-theme #piedPage .af-footer__brand p { width: 0; min-width: 100%; max-width: none; text-align: justify; text-align-last: left; hyphens: none; -webkit-hyphens: none; word-break: normal; overflow-wrap: normal; }

/* ==========================================================================
   v4.9 (2026-11): phone fixes
   ========================================================================== */
/* Franchise pages: videos and wide pictures from the editor never push the page wider than the phone */
@media (max-width: 1022px) { .af-detail__grid { grid-template-columns: minmax(0, 1fr); } }
.af-detail__grid > *, .af-detail__main { min-width: 0; }
body.af-theme .incTinyMce :is(img, video, embed, object) { max-width: 100%; height: auto; }
body.af-theme .incTinyMce iframe { max-width: 100%; }
body.af-theme .incTinyMce iframe[src*="youtube"], body.af-theme .incTinyMce iframe[src*="youtu.be"], body.af-theme .incTinyMce iframe[src*="vimeo"] { width: 100%; height: auto; aspect-ratio: 16 / 9; }
body.af-theme .incTinyMce table { display: block; max-width: 100%; overflow-x: auto; }
body.af-theme .incTinyMce :is(p, li, h2, h3, h4, a, strong) { overflow-wrap: anywhere; }
@media (max-width: 599px) { body.af-theme .incTinyMce p[style*="justify"] { text-align: left !important; } }

/* Buttons at the bottom of the phone: "Request info" bar, request tray, AI chat and cookie buttons never cover each other.
   main.cfm measures what is at the bottom and puts the chat and cookie buttons just above it (--af-float-b). */
html.af-float-up .af-chatbtn { bottom: var(--af-float-b) !important; }
/* An empty or minimised request tray is fully hidden (on phones it peeked over the "Request info" bar) */
.af-tray:not(.is-visible), .af-tray.is-min { visibility: hidden; transition: transform .3s ease, visibility 0s linear .3s; }
.af-tray.is-visible:not(.is-min) { visibility: visible; transition: transform .3s ease, visibility 0s; }
@media (max-width: 599px) {
  html.af-float-up .afc-reopen { bottom: var(--af-float-b) !important; }
  html.af-float-up body.af-has-tray .af-chatbtn { padding: 9px; gap: 0; }
  html.af-float-up body.af-has-tray .af-chatbtn > span:not(.af-chatbtn__ico) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* 404: the search box keeps its height on phones, buttons stay readable in dark mode */
body.af-theme .af-404__search input[type=text] { flex: 1 1 auto; height: 52px; min-height: 52px; box-sizing: border-box; }
body.af-theme .af-404__search > i { top: 26px; transform: translateY(-50%); z-index: 1; pointer-events: none; }
@media (max-width: 599px) { body.af-theme .af-404__search input[type=text] { flex: none; width: 100%; } }
html[data-theme="dark"] body.af-theme a.af-404__home, html[data-theme="dark"] body.af-theme a.af-404__home:hover { color: #fff; }
html[data-theme="dark"] body.af-theme a.af-404__ghost { color: var(--af-text); }

/* About pages: the page list (phones) follows the theme, also in dark mode */
body.af-theme #form_pageAbout .cs-select { position: relative; width: 100%; max-width: 420px; }
body.af-theme #form_pageAbout .cs-skin-border > span { height: auto; padding: 12px 44px 12px 18px; border: 1px solid var(--af-line); border-radius: 12px; background: var(--af-surface, #fff); color: var(--af-green-dark); font: 700 16px/1.3 var(--af-font); }
body.af-theme #form_pageAbout .cs-skin-border > span::after { right: 18px; color: var(--af-green); }
body.af-theme #form_pageAbout .cs-skin-border.cs-active > span { background: var(--af-surface, #fff); border-color: var(--af-green); color: var(--af-green-dark); }
body.af-theme #form_pageAbout .cs-skin-border .cs-options { margin-top: 6px; border: 1px solid var(--af-line); border-radius: 12px; background: var(--af-surface, #fff); box-shadow: var(--af-shadow); overflow: hidden; z-index: 50; }
body.af-theme #form_pageAbout .cs-skin-border .cs-options ul { margin: 0; padding: 6px 0; }
body.af-theme #form_pageAbout .cs-skin-border .cs-options li { margin: 0; }
body.af-theme #form_pageAbout .cs-skin-border .cs-options li::before { display: none; }
body.af-theme #form_pageAbout .cs-skin-border .cs-options li span { display: block; padding: 9px 18px; color: var(--af-text); font-weight: 700; }
body.af-theme #form_pageAbout .cs-skin-border .cs-options li.opt_p span { padding-left: 34px; color: var(--af-text-soft); font-weight: 400; }
body.af-theme #form_pageAbout .cs-skin-border .cs-options li:hover span, body.af-theme #form_pageAbout .cs-skin-border .cs-options li.cs-focus span { background: var(--af-green-soft); color: var(--af-green-dark); }
body.af-theme #form_pageAbout .cs-skin-border .cs-options li.cs-selected span { background: var(--af-green); color: #fff; }
body.af-theme #form_pageAbout .cs-skin-border .cs-options li.cs-selected span::after { display: none; }
html[data-theme="dark"] body.af-theme #form_pageAbout .cs-skin-border > span, html[data-theme="dark"] body.af-theme #form_pageAbout .cs-skin-border.cs-active > span { color: var(--af-text); }
html[data-theme="dark"] body.af-theme #form_pageAbout .cs-skin-border .cs-options li:hover span, html[data-theme="dark"] body.af-theme #form_pageAbout .cs-skin-border .cs-options li.cs-focus span { background: rgba(255,255,255,.08); color: #fff; }

/* Contact and "advertise with us" forms: the card follows dark mode (labels were light on white) */
body.af-theme #contactForm .form, body.af-theme #formContact { background: var(--f-bg, var(--af-surface, #fff)); }
html[data-theme="dark"] body.af-theme #contactForm .form, html[data-theme="dark"] body.af-theme #formContact { background: #16241c; border-color: #2a4134; }
html[data-theme="dark"] .af-f { background: #16241c; color: var(--f-ink); }
html[data-theme="dark"] .af-f :is(.af-f__label, .af-f__title, .af-f__head h2, .af-f__head h1, legend) { color: #e6ece8; }
html[data-theme="dark"] .af-f :is(.af-f__sub, .af-f__head p, .af-f__help) { color: #a9c2b2; }

/* Empty industry / country / city pages: text, suggestions and related pages (inc/franchise/vide.cfm) */
body.af-theme .af-empty--seo p { max-width: 720px; margin-left: auto; margin-right: auto; }
body.af-theme .af-empty--seo + .af-chips { margin-top: 18px; }
body.af-theme .af-empty__more { margin-top: 36px; padding: 0; }
body.af-theme .af-empty__more > h2 { margin: 0 0 16px; font-size: clamp(20px, 3vw, 26px); color: var(--af-text); }
/* Industries without a franchise yet (industries page) */
body.af-theme .af-cats__soon { margin: 36px 0 0; }
body.af-theme .af-cats__soon h2 { margin: 0 0 6px; font-size: 20px; color: var(--af-text); }
body.af-theme .af-cats__soon .muted { margin: 0 0 12px; color: var(--af-text-soft); }
body.af-theme .af-cats__soon .af-chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* Share bar: "Copy link" is a round icon like the others; "Link copied" shows as a small bubble and a tick */
body.af-theme .af-share__btn--copy { width: auto; min-width: 0; aspect-ratio: 1 / 1; padding: 0; gap: 0; }
body.af-theme .af-share__done { position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); pointer-events: none; }
body.af-theme .af-share__done:empty { display: none; }
body.af-theme .af-share__btn--copy.is-done { background: var(--af-green); border-color: transparent; color: #fff; }
body.af-theme .af-share__btn--copy.is-done i::before { content: "\f00c"; }
body.af-theme .af-share__btn--copy:not(.is-done):not(:hover):not(:focus-visible) { background: var(--af-surface, #fff); color: var(--af-text); border-color: var(--af-line); }
