/* ============================================================================
   myCerfa — compléments du lot « profil-sommaire » (phase 2 des gabarits)
   ----------------------------------------------------------------------------
   Chargé par includes/header.php sur TOUTES les pages à gabarit, après
   gabarits.css : chaque règle est donc préfixée par la page qu'elle concerne.
     .aig-*     solutions/associations-interet-general.php  (Profil)
     .fdn-*     solutions/fondations.php                    (Profil)
     .contact-* contact.php                                 (Sommaire)
     .blogi-*   blog/index.php                              (Sommaire)
   Mêmes principes que le socle : rien de masqué sans html.g-js, animations en
   transform / opacity (sauf les jauges : propriété enregistrée --aig-v),
   tout lisible à 375 px, mouvement réduit en fin de fichier.
   ============================================================================ */


/* ============================================================================
   ASSOCIATIONS D'INTÉRÊT GÉNÉRAL (.aig-*)
   ============================================================================ */
.aig-hero { background:
    radial-gradient(ellipse 50% 70% at 100% 10%, var(--g-sky-soft) 0%, transparent 65%),
    radial-gradient(ellipse 40% 60% at 0% 100%, var(--apricot-soft) 0%, transparent 65%),
    var(--paper); }
.aig-mini-sub { font-size: 12px; color: var(--ink-soft); }

/* Maquette « Choix du reçu » : le donateur est aiguillé vers son formulaire */
.aig-route {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px;
  font-size: 13px; padding: 12px 14px; border-radius: 12px;
  background: var(--pine-soft); color: var(--pine-deep);
}
.aig-route--pro { background: #fef0e0; color: #8a4a00; }
.aig-route-who { font-weight: 700; }
.aig-route b { font-family: var(--display); font-weight: 800; white-space: nowrap; }
.aig-route-arrow { height: 2px; background: currentColor; opacity: .35; position: relative; transform-origin: 0 50%; min-width: 20px; }
.aig-route-arrow::after {
  content: ""; position: absolute; right: -1px; top: -4px; border: 5px solid transparent; border-left: 7px solid currentColor; border-right: 0;
}
html.g-js .aig-receipt .g-mini-body .aig-route-arrow { transform: scaleX(0); transition: transform .7s var(--g-ease-out) .35s; }
html.g-js .aig-receipt .g-mini-body.is-in .aig-route-arrow,
html.g-js.g-fallback .aig-receipt .aig-route-arrow { transform: none; }
html.g-js .aig-receipt .g-mini-body.is-in .aig-route--pro .aig-route-arrow { transition-delay: .6s; }

/* Maquette « Page de don » */
.aig-donate-logo { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 15px; }
.aig-donate-mark { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--sky); color: var(--white); font-size: 15px; }
.aig-seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; background: var(--paper-2); border-radius: 12px; }
.aig-seg span { font-size: 12px; font-weight: 700; text-align: center; padding: 8px 4px; border-radius: 9px; color: var(--ink-soft); }
.aig-seg span.is-on { background: var(--pine); color: var(--white); box-shadow: 0 4px 12px rgba(37,64,215,.28); }
.aig-donate-split { font-size: 14px; color: var(--ink-soft); padding: 12px 14px; border: 1.5px dashed #c5cede; border-radius: 12px; text-align: center; }
.aig-donate-split b { font-family: var(--display); font-size: 18px; color: var(--ink); }
.aig-donate-split [data-g-count] { color: var(--pine); font-size: 24px; min-width: 1.3em; text-align: center; }
.aig-pay { display: flex; flex-wrap: wrap; gap: 6px; }
.aig-pay span { font-size: 11.5px; font-weight: 700; padding: 5px 10px; border-radius: 100px; border: 1px solid var(--line); background: var(--white); }
.aig-donate-ok { font-size: 13px; font-weight: 700; color: var(--g-green-ink); background: var(--g-sky-soft); border-radius: 10px; padding: 9px 12px; }

/* Cas d'usage : en-tête + tableau de bord côte à côte */
.aig-case { max-width: 1120px; margin: 0 auto 56px; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.aig-case-txt h2 { font-size: clamp(28px, 3vw, 40px); margin-bottom: 16px; }
.aig-case-txt p { font-size: 16.5px; color: var(--ink-soft); }
.aig-case-board .progress-fill { transform-origin: 0 50%; }
html.g-js .aig-case-board.is-in .progress-fill { animation: g-fill 1.4s var(--g-ease-out) .35s both; }

/* Frise des 7 points : coche + pictogramme + numéro */
.aig-frieze .g-frieze-cap { color: var(--pine); }
.aig-frieze .g-frieze-track { counter-reset: aigfz; }
.aig-frieze .g-frieze-card { counter-increment: aigfz; flex-basis: 300px; }
.aig-frieze .g-frieze-card::before { background: var(--pine); box-shadow: 0 0 0 1.5px var(--pine); }
.aig-frieze .g-frieze-card p { font-size: 15.5px; font-weight: 600; }
.aig-fz-top { display: flex; align-items: center; gap: 10px; }
.aig-fz-top::after { content: counter(aigfz, decimal-leading-zero); margin-left: auto; font-family: var(--display); font-weight: 800; font-size: 13px; color: var(--ink-soft); }
.aig-fz-ck { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--pine); color: var(--white); font-size: 13px; font-weight: 800; }
.aig-fz-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; background: var(--paper-2); transition: transform .4s var(--g-ease-out); }
.aig-frieze .g-frieze-card:hover .aig-fz-ic { transform: scale(1.1) rotate(-6deg); }

/* Fiscalité : deux grandes cartes et leur jauge circulaire */
@property --aig-v { syntax: '<number>'; inherits: false; initial-value: 0; }
.aig-tax { max-width: 980px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.aig-tax-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: 30px 30px 26px; box-shadow: var(--shadow-sm); transition: box-shadow .35s, border-color .35s;
}
.aig-tax-card:hover { box-shadow: var(--shadow-md); border-color: #d3daea; }
.aig-tax-head { display: flex; align-items: center; gap: 11px; flex-wrap: wrap; margin-bottom: 22px; }
.aig-tax-main { display: flex; align-items: center; gap: 22px; padding-bottom: 20px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.aig-ring {
  --aig-c: var(--pine); --aig-v: var(--aig-p);
  width: 104px; height: 104px; flex-shrink: 0; border-radius: 50%;
  background: conic-gradient(var(--aig-c) calc(var(--aig-v) * 1%), var(--pine-soft) 0);
  -webkit-mask: radial-gradient(circle, transparent 54%, #000 55%); mask: radial-gradient(circle, transparent 54%, #000 55%);
}
.aig-tax-card--pro .aig-ring { --aig-c: var(--gold); background: conic-gradient(var(--aig-c) calc(var(--aig-v) * 1%), #fef0e0 0); }
html.g-js:not(.g-fallback) .aig-tax-card .aig-ring { transition: --aig-v 1.5s var(--g-ease-out) .25s; }
html.g-js:not(.g-fallback) .aig-tax-card:not(.is-in) .aig-ring { --aig-v: 0; }
.aig-tax-lead { font-size: 15px; color: var(--ink-soft); line-height: 1.4; }
.aig-tax-fig { display: block; font-family: var(--display); font-weight: 800; font-size: 58px; line-height: 1; letter-spacing: -.04em; color: var(--pine); margin-bottom: 6px; }
.aig-tax-card--pro .aig-tax-fig { color: #b35200; }
.aig-tax-card .tax-list { font-size: 14px; }
.aig-tax-note { max-width: 980px; margin-top: 22px; }


/* ============================================================================
   FONDATIONS (.fdn-*)
   ============================================================================ */
/* Hero : quatre « colonnes » décoratives qui s'élèvent (une par type de structure) */
.fdn-hero-deco {
  position: absolute; right: 6%; bottom: 0; height: 78%; width: 300px; pointer-events: none;
  display: flex; align-items: flex-end; gap: 18px;
}
.fdn-hero-deco span {
  flex: 1; border-radius: 16px 16px 0 0; transform-origin: 50% 100%;
  background: linear-gradient(180deg, rgba(37,64,215,.14), rgba(37,64,215,.03));
  animation: fdn-rise 1.2s var(--g-ease-out) both;
}
.fdn-hero-deco span:nth-child(1) { height: 46%; animation-delay: .1s; }
.fdn-hero-deco span:nth-child(2) { height: 72%; animation-delay: .22s; background: linear-gradient(180deg, rgba(255,210,63,.32), rgba(255,210,63,.05)); }
.fdn-hero-deco span:nth-child(3) { height: 100%; animation-delay: .34s; }
.fdn-hero-deco span:nth-child(4) { height: 60%; animation-delay: .46s; background: linear-gradient(180deg, rgba(0,179,133,.2), rgba(0,179,133,.03)); }
@keyframes fdn-rise { from { transform: scaleY(0); opacity: 0; } to { transform: none; opacity: 1; } }

/* Bénéfices : cartes qui s'empilent au défilement */
.fdn-stack { max-width: 1080px; margin: 0 auto; display: grid; gap: 36px; }
.fdn-stack-card {
  position: sticky; top: calc(var(--g-head-h) + 24px + var(--fdn-n, 0) * 18px);
  display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center;
  min-height: 380px; padding: 44px 48px; border-radius: var(--r-xl);
  background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-md);
}
.fdn-stack-card:nth-child(2) { --fdn-n: 1; background: #fbfcfe; }
.fdn-stack-card:nth-child(3) { --fdn-n: 2; background: var(--paper-2); }
.fdn-stack-top { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.fdn-stack-n { font-family: var(--display); font-weight: 800; font-size: 64px; line-height: 1; letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 1.5px var(--pine); }
.fdn-stack-ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 24px; background: var(--pine-soft); }
.fdn-stack-card:nth-child(2) .fdn-stack-ic { background: var(--apricot-soft); }
.fdn-stack-card:nth-child(3) .fdn-stack-ic { background: var(--g-sky-soft); }
.fdn-stack-txt h2 { font-size: clamp(26px, 2.8vw, 34px); margin-bottom: 14px; }
.fdn-stack-txt p { font-size: 16px; color: var(--ink-soft); }
.fdn-stack-visual { position: relative; }

/* Maquette : les deux reçus qui se déploient */
.fdn-receipts { position: relative; min-height: 250px; }
.fdn-receipt {
  position: absolute; left: 0; top: 0; width: 76%;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-md); padding: 22px 22px 20px; border-top: 5px solid var(--pine);
  transform: rotate(-3deg); transition: transform .9s var(--g-ease-out);
}
.fdn-receipt--pro { left: auto; right: 0; top: 96px; border-top-color: var(--gold); transform: rotate(3deg); }
html.g-js:not(.g-fallback) .fdn-stack-visual:not(.is-in) .fdn-receipt { transform: none; }
html.g-js:not(.g-fallback) .fdn-stack-visual:not(.is-in) .fdn-receipt--pro { transform: translate(-18%, -60px); }
.fdn-receipt-k { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fdn-receipt-v { font-family: var(--display); font-weight: 800; font-size: 22px; margin: 8px 0 4px; }
.fdn-receipt-s { font-size: 13px; color: var(--ink-soft); }

/* Maquette : un seul compte, des fondations abritées séparées (pas de total) */
.fdn-switch-row {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px;
  border: 1.5px solid var(--line); background: var(--white);
}
.fdn-switch-row b { display: block; font-size: 13.5px; }
.fdn-switch-row small { display: block; font-size: 11.5px; color: var(--ink-soft); }
.fdn-switch-av { width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0; display: grid; place-items: center; font-family: var(--display); font-weight: 800; background: var(--paper-2); color: var(--ink); }
.fdn-switch-row:first-child { border-color: var(--pine); background: var(--pine-soft); }
.fdn-switch-row:first-child .fdn-switch-av { background: var(--pine); color: var(--white); }
.fdn-switch-foot { font-size: 12px; font-weight: 700; color: var(--g-green-ink); text-align: center; padding-top: 2px; }
/* L'espace actif passe d'une fondation à l'autre (sans JS : la première reste active) */
html.g-js .fdn-stack-visual.is-in .fdn-switch-row { animation: fdn-active 7.5s var(--g-ease) infinite; }
html.g-js .fdn-stack-visual.is-in .fdn-switch-row .fdn-switch-av { animation: fdn-active-av 7.5s var(--g-ease) infinite; }
html.g-js .fdn-stack-visual.is-in .fdn-switch-row:nth-child(2),
html.g-js .fdn-stack-visual.is-in .fdn-switch-row:nth-child(2) .fdn-switch-av { animation-delay: 2.5s; }
html.g-js .fdn-stack-visual.is-in .fdn-switch-row:nth-child(3),
html.g-js .fdn-stack-visual.is-in .fdn-switch-row:nth-child(3) .fdn-switch-av { animation-delay: 5s; }
html.g-js .fdn-stack-visual.is-in .fdn-switch-row:first-child { border-color: var(--line); background: var(--white); }
html.g-js .fdn-stack-visual.is-in .fdn-switch-row:first-child .fdn-switch-av { background: var(--paper-2); color: var(--ink); }
@keyframes fdn-active {
  0%, 30% { border-color: var(--pine); background: var(--pine-soft); transform: translateX(6px); }
  36%, 100% { border-color: var(--line); background: var(--white); transform: none; }
}
@keyframes fdn-active-av {
  0%, 30% { background: var(--pine); color: var(--white); }
  36%, 100% { background: var(--paper-2); color: var(--ink); }
}

/* Maquette : exports */
.fdn-export-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; font-weight: 600; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.fdn-export-fmt { display: flex; gap: 6px; }
.fdn-export-fmt i { font-style: normal; font-size: 11px; font-weight: 800; padding: 4px 8px; border-radius: 7px; background: var(--g-sky-soft); color: var(--g-green-ink); }
.fdn-export-fmt i + i { background: var(--pine-soft); color: var(--pine-deep); }
.fdn-export-bar { height: 6px; border-radius: 6px; background: var(--paper-2); overflow: hidden; margin-top: 4px; }
.fdn-export-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--pine), var(--sky)); transform-origin: 0 50%; }
html.g-js .fdn-stack-visual.is-in .fdn-export-bar span { animation: g-fill 1.8s var(--g-ease-out) .3s both; }

/* Cas d'usage : liste numérotée + tableau de bord collant */
.fdn-case { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: start; }
.fdn-case-txt h2 { font-size: clamp(28px, 3vw, 40px); margin-bottom: 16px; }
.fdn-case-txt p { font-size: 16.5px; color: var(--ink-soft); margin-bottom: 30px; }
.fdn-index li { font-size: 16.5px; }
.fdn-case-board { position: sticky; top: calc(var(--g-head-h) + 40px); }
.fdn-case-board .progress-fill { transform-origin: 0 50%; }
html.g-js .fdn-case-board.is-in .progress-fill { animation: g-fill 1.4s var(--g-ease-out) .4s both; }

/* Fiscalité : section sombre */
.fdn-taxsec .g-eyebrow { color: var(--apricot); }
.fdn-taxsec .g-head p { color: #a6b3cd; }
.fdn-tax { max-width: 980px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.fdn-tax-card {
  background: #112448; border: 1px solid #1f3157; border-radius: var(--r-xl); padding: 30px;
  transition: border-color .35s, transform .45s var(--g-ease-out);
}
.fdn-tax-card:hover { border-color: #34508a; transform: translateY(-3px); }
.fdn-tax-head { display: flex; align-items: center; gap: 11px; flex-wrap: wrap; margin-bottom: 22px; }
.fdn-tax-head .tax-art { color: var(--white); }
.fdn-tax-lead { font-size: 15px; color: #c7d0e8; line-height: 1.45; }
.fdn-tax-fig { display: block; font-family: var(--display); font-weight: 800; font-size: 64px; line-height: 1; letter-spacing: -.04em; color: var(--apricot); margin-bottom: 8px; }
.fdn-tax-card--pro .fdn-tax-fig { color: #7fe0c4; }
.fdn-gauge { height: 8px; border-radius: 8px; background: rgba(255,255,255,.1); margin: 20px 0 22px; overflow: hidden; }
.fdn-gauge span { display: block; height: 100%; width: calc(var(--fdn-p) * 100%); border-radius: 8px; background: linear-gradient(90deg, var(--apricot), var(--gold)); transform-origin: 0 50%; }
.fdn-tax-card--pro .fdn-gauge span { background: linear-gradient(90deg, #7fe0c4, var(--sky)); }
html.g-js:not(.g-fallback) .fdn-tax-card .fdn-gauge span { transform: scaleX(0); transition: transform 1.4s var(--g-ease-out) .3s; }
html.g-js:not(.g-fallback) .fdn-tax-card.is-in .fdn-gauge span { transform: none; }
.fdn-tax-list { display: grid; gap: 11px; font-size: 14px; color: #a6b3cd; padding-top: 18px; border-top: 1px solid #1f3157; }
.fdn-tax-list > div { display: flex; gap: 8px; }
.fdn-tax-list > div > span { color: var(--apricot); font-weight: 800; flex-shrink: 0; }
.fdn-tax-list b { color: var(--white); }
.fdn-tax-note {
  max-width: 980px; margin: 22px auto 0; display: flex; gap: 14px; align-items: center;
  border: 1px dashed #34508a; border-radius: var(--r-md); padding: 18px 22px;
}
.fdn-tax-note span { font-size: 24px; }
.fdn-tax-note p { font-size: 14px; color: #c7d0e8; margin: 0; }


.fdn-faq-more { padding: 0 22px 20px 70px; margin-top: -8px; font-size: 14.5px; }
.fdn-faq-more a { color: var(--pine); font-weight: 700; }
.fdn-faq-more a::after { content: " →"; }


/* ============================================================================
   CONTACT (.contact-*)
   ============================================================================ */
.contact-cards .g-card-go::after { content: none; }
.contact-go { gap: 12px; }
.contact-arrow {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
  background: var(--pine-soft); transition: transform .35s var(--g-ease-out), background .3s, color .3s;
}
.contact-cards .g-card:hover .contact-arrow { transform: translateX(4px); background: var(--pine); color: var(--white); }
.contact-ic-code { background: var(--ink); color: var(--paper); font-family: var(--display); font-weight: 800; font-size: 22px; }

/* Bandeau chat */
.contact-chat {
  max-width: 1120px; margin: 34px auto 0; display: flex; align-items: center; gap: 28px;
  background: var(--ink); color: var(--white); border-radius: var(--r-xl); padding: 30px 40px;
  position: relative; overflow: hidden; isolation: isolate;
}
.contact-chat::before {
  content: ""; position: absolute; z-index: -1; width: 280px; height: 280px; border-radius: 50%;
  right: -80px; top: -150px; background: radial-gradient(circle, rgba(255,210,63,.22), transparent 70%);
}
.contact-chat-txt { flex: 1; min-width: 0; }
.contact-chat h2 { font-size: 24px; margin-bottom: 6px; }
.contact-chat p { font-size: 15px; color: #a6b3cd; }
.contact-chat .btn { flex-shrink: 0; }
.contact-chat-bubble {
  flex-shrink: 0; width: 72px; height: 52px; border-radius: 20px 20px 20px 6px; background: var(--white);
  display: flex; align-items: center; justify-content: center; gap: 6px; box-shadow: 0 10px 26px rgba(0,0,0,.25);
}
.contact-chat-bubble span { width: 8px; height: 8px; border-radius: 50%; background: var(--pine); animation: contact-dot 1.3s ease-in-out infinite; }
.contact-chat-bubble span:nth-child(2) { animation-delay: .18s; }
.contact-chat-bubble span:nth-child(3) { animation-delay: .36s; }
@keyframes contact-dot { 0%, 60%, 100% { transform: none; opacity: .45; } 30% { transform: translateY(-6px); opacity: 1; } }
.contact-legal { text-align: center; font-size: 13.5px; color: var(--ink-soft); max-width: 660px; margin: 26px auto 0; }

/* « Trois informations » : g-path sur 3 colonnes */
.contact-path { grid-template-columns: repeat(3, 1fr); gap: 28px; }
.contact-path::before, .contact-path::after { left: 16.66%; right: 16.66%; }
.contact-path li { padding: 0 12px; }
.contact-path .g-path-desc { font-size: 14.5px; }


/* ============================================================================
   BLOG (.blogi-*)
   ============================================================================ */
.blogi-hero .g-shero-grid { align-items: center; }
/* Couvertures en éventail (décoratif) */
.blogi-fan { position: relative; height: 290px; }
.blogi-fan-card {
  position: absolute; top: 50%; left: 50%; width: 210px; height: 140px; margin: -70px 0 0 -105px;
  border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  rotate: calc(-12deg + var(--blogi-i) * 8deg);
  translate: calc(-87px + var(--blogi-i) * 58px) calc(-36px + var(--blogi-i) * 24px);
  transition: rotate .6s var(--g-ease-out), translate .6s var(--g-ease-out);
  animation: blogi-deal .9s var(--g-ease-out) both; animation-delay: calc(.15s + var(--blogi-i) * .14s);
}
.blogi-fan:hover .blogi-fan-card {
  rotate: calc(-18deg + var(--blogi-i) * 12deg);
  translate: calc(-108px + var(--blogi-i) * 72px) calc(-42px + var(--blogi-i) * 28px);
}
.blogi-fan-card .blog-cover-text { font-size: 22px; }
@keyframes blogi-deal { from { opacity: 0; rotate: 0deg; translate: 0 60px; } }

/* Cartes d'articles */
.blogi-gridsec { padding-top: 56px; }
.blogi-grid { gap: 22px; }
.blogi-card { padding: 0; }
.blogi-cover { border-radius: var(--r-xl) var(--r-xl) 0 0; height: 150px; }
.blogi-card-body { padding: 22px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.blogi-card .blog-card-title { font-size: 19px; line-height: 1.28; margin-bottom: 10px; }
.blogi-card .blog-card-excerpt { font-size: 14px; flex: 1; }
.blogi-meta { padding-top: 14px; border-top: 1px solid var(--line); }
.blogi-card .blogi-cover { transition: transform .5s var(--g-ease-out); }
a.blogi-card:hover .blogi-cover { transform: scale(1.03); }
.blogi-card.is-soon { cursor: default; }
.blogi-card.is-soon .blogi-cover { opacity: .72; }
.blogi-card.is-soon:hover { box-shadow: var(--shadow-md); }
/* Article à la une (s'il est publié) : la carte large garde la grille de site.css */
.blogi-featured.g-card { display: grid; padding: 0; flex-direction: initial; }


/* ============================================================================
   RESPONSIVE
   ============================================================================ */
@media (max-width: 900px) {
  /* Intérêt général */
  .aig-case { grid-template-columns: 1fr; gap: 32px; margin-bottom: 40px; }
  .aig-tax { grid-template-columns: 1fr; }
  .aig-tax-main { gap: 16px; }
  .aig-ring { width: 84px; height: 84px; }
  .aig-tax-fig { font-size: 48px; }
  .aig-tax-card { padding: 24px 20px 22px; }
  .aig-frieze .g-frieze-card { flex-basis: 80%; }

  /* Fondations */
  .fdn-hero-deco { display: none; }
  .fdn-stack { gap: 22px; }
  .fdn-stack-card { position: static; grid-template-columns: 1fr; gap: 28px; min-height: 0; padding: 28px 20px; }
  .fdn-stack-n { font-size: 48px; }
  .fdn-receipts { min-height: 230px; }
  .fdn-receipt { width: 84%; }
  .fdn-case { grid-template-columns: 1fr; gap: 36px; }
  .fdn-case-board { position: static; }
  .fdn-tax { grid-template-columns: 1fr; }
  .fdn-tax-card { padding: 24px 20px; }
  .fdn-tax-fig { font-size: 52px; }
  .fdn-faq-more { padding: 0 18px 18px; }

  /* Contact */
  .contact-chat { flex-direction: column; align-items: flex-start; padding: 26px 22px; gap: 18px; }
  .contact-path { grid-template-columns: 1fr; gap: 22px; }
  .contact-path li { padding: 0; }

  /* Blog */
  .blogi-fan { height: 210px; }
  .blogi-fan-card { width: 170px; height: 112px; margin: -56px 0 0 -85px; translate: calc(-48px + var(--blogi-i) * 32px) calc(-20px + var(--blogi-i) * 12px); }
  .blogi-fan:hover .blogi-fan-card { rotate: calc(-12deg + var(--blogi-i) * 8deg); translate: calc(-48px + var(--blogi-i) * 32px) calc(-20px + var(--blogi-i) * 12px); }
  .blogi-fan-card .blog-cover-text { font-size: 18px; }
  .blogi-card-body { padding: 20px; }
}


/* ============================================================================
   MOUVEMENT RÉDUIT (les durées sont déjà ramenées à ~0 par le socle)
   ============================================================================ */
@media (prefers-reduced-motion: reduce) {
  html.g-js .aig-tax-card .aig-ring { --aig-v: var(--aig-p) !important; }
  html.g-js .fdn-tax-card .fdn-gauge span { transform: none !important; }
  html.g-js .fdn-stack-visual .fdn-receipt { transform: rotate(-3deg) !important; }
  html.g-js .fdn-stack-visual .fdn-receipt--pro { transform: rotate(3deg) !important; }
  html.g-js .fdn-stack-visual .fdn-switch-row,
  html.g-js .fdn-stack-visual .fdn-switch-row .fdn-switch-av { animation: none !important; }
  html.g-js .fdn-stack-visual .fdn-switch-row:first-child { border-color: var(--pine); background: var(--pine-soft); }
  html.g-js .fdn-stack-visual .fdn-switch-row:first-child .fdn-switch-av { background: var(--pine); color: var(--white); }
  html.g-js .aig-receipt .aig-route-arrow { transform: none !important; }
  .contact-chat-bubble span { animation: none !important; opacity: 1; }
  .blogi-fan-card { animation: none !important; }
}

/* ============================================================
   /fonctionnalites — page d'ensemble (gabarit Sommaire)
   Groupes de 4 cartes : 2 colonnes (pas de carte orpheline sur une grille de 3)
   ============================================================ */
@media (min-width: 901px) {
  .fonc-cards--4 { grid-template-columns: repeat(2, 1fr); max-width: 860px; }
}
.fonc-group-head { max-width: 1120px; margin: 0 auto 18px; }
