/* design-system.css — steveguerdat — assemblé le 2026-11-18 (socle commun + couche client + direction audacieuse du site). Ne pas modifier ici : modifier socle/ ou clients/steveguerdat/ puis réassembler. */

/* ==========================================================================
   SOCLE COMMUN des design systems IC2 — classes ds-…
   Identique pour tous les clients. La couche client (clients/<site>/client.css),
   placée APRÈS ce socle dans design-system.css, fixe les jetons --ds-* et
   ajoute ses fonds et ses composants propres. Aucune valeur de marque ici.
   Règles internes :
   - préfixe :root partout (spécificité 0,2,x : passe devant le thème) ;
   - toute couleur, taille, police passe par un jeton --ds-* (repli neutre) ;
   - les composants lisent les jetons de CONTEXTE --ds-c-* : un fond foncé les
     redéfinit une fois pour tout ce qu'il contient ;
   - points de rupture : 768 / 1000 / 1200 px.
   ========================================================================== */

/* ── 0. Jetons de marque (valeurs neutres : la couche client les remplace) ── */
:root {
  /* couleurs */
  --ds-marque: #2F5BEA;           /* couleur d'action : boutons, puces, chiffres */
  --ds-marque-fonce: #2448BD;     /* survol */
  --ds-marque-texte: #2448BD;     /* liens dans le texte */
  --ds-sur-marque: #FFFFFF;       /* texte posé sur la marque */
  --ds-titre: #1A1A1A;
  --ds-texte: #333333;
  --ds-texte-doux: #5F6368;
  --ds-page: #FFFFFF;             /* fond des cartes claires */
  --ds-surface-grise: #F5F5F5;    /* fond gris */
  --ds-surface-sombre: #111111;   /* fond sombre */
  --ds-sur-sombre-titre: #FFFFFF;
  --ds-sur-sombre-texte: #E6E6E6;
  --ds-sur-sombre-filet: rgba(255, 255, 255, .25);
  --ds-filet: #E5E5E5;
  --ds-filet-fort: #CCCCCC;
  --ds-filet-carte: #E5E5E5;
  --ds-numero: #D1D5DB;
  --ds-succes: #22AD5C;
  --ds-ombre-carte: 0 10px 20px rgba(0, 0, 0, .05);
  --ds-puce-couleur: var(--ds-marque);
  /* formes */
  --ds-rayon-carte: 12px;
  --ds-rayon-surface: 12px;
  --ds-rayon-image: 12px;
  --ds-rayon-bouton: 6px;
  /* mise en page */
  --ds-colonne-max: 1440px;
  --ds-gouttiere: 1rem;
  --ds-gouttiere-tablette: 2rem;
  --ds-gouttiere-bureau: 4.5rem;
  --ds-section-espace: clamp(2.5rem, 1.25rem + 3.5vw, 5rem);
  --ds-colonne-espace: clamp(2rem, 1.25rem + 2vw, 4rem);
  --ds-espace-1: 8px;
  --ds-espace-2: 16px;
  --ds-espace-3: 24px;
  --ds-espace-4: 32px;
  --ds-espace-5: 40px;
  /* alignement par défaut de l'en-tête de section : center (repli) ; un site aligné à gauche pose flex-start / start / 0 */
  --ds-tete-flex: center; --ds-tete-texte: center; --ds-tete-marge: auto;
  /* typographie */
  --ds-police-titre: inherit;
  --ds-police-texte: inherit;
  --ds-titre-casse: none;
  --ds-titre-espacement: normal;
  --ds-titre-interligne: 1.2;
  --ds-t-page: clamp(2.5rem, 1.8rem + 3.5vw, 5rem);           --ds-t-page-graisse: 600;
  --ds-t-geant: clamp(2.5rem, 1.8rem + 3.5vw, 5rem);          --ds-t-geant-graisse: 400;
  --ds-t-grand: clamp(2.25rem, 1.7rem + 2.8vw, 4rem);         --ds-t-grand-graisse: 600;
  --ds-t-section: clamp(1.875rem, 1.5rem + 1.8vw, 3rem);      --ds-t-section-graisse: 600;
  --ds-t-sous-titre: clamp(1.5rem, 1.3rem + 1.2vw, 2.5rem);   --ds-t-sous-titre-graisse: 600;
  --ds-t-intertitre: clamp(1.375rem, 1.2rem + 1vw, 2.25rem);  --ds-t-intertitre-graisse: 500;
  --ds-t-carte: clamp(1.25rem, 1.1rem + .7vw, 1.75rem);       --ds-t-carte-graisse: 600;
  --ds-t-petit-titre: clamp(1.0625rem, 1rem + .4vw, 1.375rem); --ds-t-petit-titre-graisse: 600;
  --ds-t-chapeau: clamp(1.0625rem, 1rem + .35vw, 1.3rem);     --ds-t-chapeau-graisse: 400;
  --ds-t-corps: 1rem;
  --ds-t-fort-graisse: 700;
  --ds-chiffre-taille: clamp(2.5rem, 1.8rem + 3.5vw, 5rem);   --ds-chiffre-graisse: 300;
  /* boutons */
  --ds-bouton-casse: none;
  --ds-bouton-graisse: 500;
  --ds-bouton-espacement: normal;
  --ds-bouton-m-taille: 1.0625rem; --ds-bouton-m-padding: 10px 32px; --ds-bouton-m-hauteur: 48px;
  --ds-bouton-s-taille: .9375rem;  --ds-bouton-s-padding: 8px 24px;  --ds-bouton-s-hauteur: 40px;
  /* puces : masques SVG teintés (un client peut poser ses propres images) */
  --ds-puce-coche: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath fill-rule='evenodd' d='M8 0h16a8 8 0 0 1 8 8v16a8 8 0 0 1-8 8H8a8 8 0 0 1-8-8V8a8 8 0 0 1 8-8zm1.2 17.4l4.6 4.6 9.4-9.6-1.8-1.8-7.6 7.8-2.8-2.8z'/%3E%3C/svg%3E");
  --ds-puce-coche-fine: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 9.5l4 4L15 5'/%3E%3C/svg%3E");
}

/* ── 0b. Contexte de couleur ─────────────────────────────────────────────
   Clair par défaut. Un fond foncé (ds-fond-sombre, ds-fond-marque, ds-sombre,
   et les fonds foncés propres au client) redéfinit ces jetons. */
:root {
  --ds-c-titre: var(--ds-titre); --ds-c-texte: var(--ds-texte); --ds-c-doux: var(--ds-texte-doux);
  --ds-c-lien: var(--ds-marque-texte); --ds-c-lien-deco: none; --ds-c-filet: var(--ds-filet); --ds-c-filet-fort: var(--ds-filet-fort);
  --ds-c-puce: var(--ds-puce-couleur); --ds-c-voile: var(--ds-surface-grise); --ds-c-numero: var(--ds-numero); --ds-c-accent: var(--ds-marque);
}
:root :is(.ds-fond-sombre, .ds-fond-marque, .ds-sombre) {
  --ds-c-titre: var(--ds-sur-sombre-titre); --ds-c-texte: var(--ds-sur-sombre-texte); --ds-c-doux: var(--ds-sur-sombre-texte);
  --ds-c-lien: var(--ds-sur-sombre-titre); --ds-c-lien-deco: underline; --ds-c-filet: var(--ds-sur-sombre-filet); --ds-c-filet-fort: rgba(255, 255, 255, .45);
  --ds-c-puce: var(--ds-sur-sombre-titre); --ds-c-voile: rgba(255, 255, 255, .06); --ds-c-numero: rgba(255, 255, 255, .35); --ds-c-accent: var(--ds-sur-sombre-titre);
}
/* Une carte claire posée sur un fond foncé reprend les couleurs claires */
:root :is(article, div).ds-fond-clair,
:root :is(.ds-carte-texte, .ds-avis, .ds-carte-evenement, .ds-carte-portrait, .ds-carte-photo) {
  --ds-c-titre: var(--ds-titre); --ds-c-texte: var(--ds-texte); --ds-c-doux: var(--ds-texte-doux);
  --ds-c-lien: var(--ds-marque-texte); --ds-c-lien-deco: none; --ds-c-filet: var(--ds-filet); --ds-c-filet-fort: var(--ds-filet-fort);
  --ds-c-puce: var(--ds-puce-couleur); --ds-c-voile: var(--ds-surface-grise); --ds-c-numero: var(--ds-numero); --ds-c-accent: var(--ds-marque);
}

/* ── 1. Section et colonne ───────────────────────────────────────────── */
:root body > :has(.ds-section) { overflow-x: clip; }
:root :is(.ds-section, [class*="ds-entete"]) { font-variant-ligatures: no-contextual; box-sizing: border-box; }
:root :is(.ds-section, [class*="ds-entete"]) *,
:root :is(.ds-section, [class*="ds-entete"]) *::before,
:root :is(.ds-section, [class*="ds-entete"]) *::after { box-sizing: border-box; }

:root .ds-section { width: 100vw; margin-inline: calc(50% - 50vw); max-width: none; padding-block: var(--ds-section-espace); color: var(--ds-c-texte); font-family: var(--ds-police-texte); }
:root .ds-section > .ds-section__colonne { width: 100%; max-width: var(--ds-colonne-max); margin-inline: auto; padding-inline: var(--ds-gouttiere); display: flex; flex-direction: column; gap: var(--ds-colonne-espace); }
@media (min-width: 768px) { :root .ds-section > .ds-section__colonne { padding-inline: var(--ds-gouttiere-tablette); } }
@media (min-width: 1000px) { :root .ds-section > .ds-section__colonne { padding-inline: var(--ds-gouttiere-bureau); } }

/* En-tête de section : centré par défaut ; ds-section--gauche l'aligne à gauche. */
:root .ds-section .ds-section__tete { display: flex; flex-direction: column; align-items: var(--ds-tete-flex, center); text-align: var(--ds-tete-texte, center); gap: var(--ds-espace-2); }
:root .ds-section .ds-section__tete > .ds-t--chapeau { margin-inline: var(--ds-tete-marge, auto); }
:root .ds-section.ds-section--gauche .ds-section__tete { align-items: flex-start; text-align: start; }
:root .ds-section.ds-section--gauche .ds-section__tete > .ds-t--chapeau { margin-inline: 0; }
:root .ds-section .ds-section__contenu { min-width: 0; display: flex; flex-direction: column; gap: var(--ds-espace-4); }
:root .ds-section .ds-section__contenu > div:not([class]):not([data-ic2-part]) { display: flex; flex-direction: column; gap: var(--ds-espace-2); min-width: 0; }
:root .ds-section .ds-section__pied { display: flex; justify-content: var(--ds-tete-flex, center); }
:root .ds-section.ds-section--gauche .ds-section__pied { justify-content: flex-start; }
/* Sur un site dont l'en-tête est à gauche par défaut, ds-section--centre le recentre. */
:root .ds-section.ds-section--centre .ds-section__tete { align-items: center; text-align: center; }
:root .ds-section.ds-section--centre .ds-section__tete > .ds-t--chapeau { margin-inline: auto; }
:root .ds-section.ds-section--centre :is(.ds-section__pied, .ds-section__tete .ds-boutons) { justify-content: center; }
/* Deux sections claires voisines : l'espace ne se double pas. */
:root .ds-section.ds-fond-clair + .ds-section.ds-fond-clair { padding-top: 0; }

/* ── 2. Fonds (aplats pleine largeur ; une couche client peut en faire des boîtes) ── */
:root .ds-fond-clair { background-color: transparent; }
:root .ds-section.ds-fond-gris { background-color: var(--ds-surface-grise); }
:root .ds-section.ds-fond-sombre { background-color: var(--ds-surface-sombre); }
:root .ds-section.ds-fond-marque { background-color: var(--ds-marque); }
/* Bande liée : une bande colorée qui prolonge la précédente, sans espace entre elles */
:root .ds-section.ds-bande--liee { padding-top: 0; }
/* Une carte claire posée dans une bande foncée */
:root :is(article, div).ds-fond-clair { background-color: var(--ds-page); color: var(--ds-c-texte); }

/* ── 3. Titres et textes ─────────────────────────────────────────────── */
:root .ds-t { margin: 0; overflow-wrap: break-word; color: inherit; }
:root :is(.ds-t--page, .ds-t--geant, .ds-t--grand, .ds-t--section, .ds-t--sous-titre, .ds-t--intertitre, .ds-t--carte, .ds-t--petit-titre, .ds-t--sous-bloc) { font-family: var(--ds-police-titre); text-transform: var(--ds-titre-casse); letter-spacing: var(--ds-titre-espacement); line-height: var(--ds-titre-interligne); color: var(--ds-c-titre); }
:root .ds-t--page { font-size: var(--ds-t-page); font-weight: var(--ds-t-page-graisse); }
:root .ds-t--geant { font-size: var(--ds-t-geant); font-weight: var(--ds-t-geant-graisse); }
:root .ds-t--grand { font-size: var(--ds-t-grand); font-weight: var(--ds-t-grand-graisse); }
:root .ds-t--section { font-size: var(--ds-t-section); font-weight: var(--ds-t-section-graisse); }
:root .ds-t--sous-titre { font-size: var(--ds-t-sous-titre); font-weight: var(--ds-t-sous-titre-graisse); }
:root .ds-t--intertitre { font-size: var(--ds-t-intertitre); font-weight: var(--ds-t-intertitre-graisse); line-height: 1.25; }
:root .ds-t--carte { font-size: var(--ds-t-carte); font-weight: var(--ds-t-carte-graisse); }
:root .ds-t--petit-titre { font-size: var(--ds-t-petit-titre); font-weight: var(--ds-t-petit-titre-graisse); }
:root .ds-t--sous-bloc { font-size: var(--ds-t-chapeau); font-weight: 600; line-height: 1.3; }
:root .ds-t--chapeau { font-size: var(--ds-t-chapeau); font-weight: var(--ds-t-chapeau-graisse); line-height: 1.4; max-width: 60ch; color: var(--ds-c-titre); }
:root .ds-t--corps { font-size: var(--ds-t-corps); font-weight: 400; line-height: 1.5; max-width: 75ch; }
:root .ds-t--petit { font-size: .875rem; font-weight: 400; line-height: 1.5; max-width: 60ch; }
:root .ds-t--mention { font-size: .75rem; font-weight: 400; line-height: 1.5; max-width: 60ch; }
:root :is(.ds-fond-sombre, .ds-fond-marque, .ds-sombre) :is(.ds-t--corps, .ds-t--petit, .ds-t--mention) { color: var(--ds-c-texte); }
:root .ds-t--marque { color: var(--ds-c-accent); }
/* surtitre : un intitulé court au-dessus d'un titre ou d'une liste (une date, « Key features: ») */
:root .ds-t--surtitre { font-family: var(--ds-police-texte); font-size: var(--ds-surtitre-taille, .875rem); font-weight: var(--ds-surtitre-graisse, 600); text-transform: var(--ds-surtitre-casse, none); letter-spacing: var(--ds-surtitre-espacement, normal); line-height: 1.4; color: var(--ds-c-accent); }
:root .ds-t--fort { font-weight: var(--ds-t-fort-graisse); }
:root .ds-t strong { font-weight: 700; }
/* Bloc de texte : titre, paragraphes et liste avec le bon écart */
:root .ds-texte { display: flex; flex-direction: column; gap: var(--ds-espace-2); max-width: 75ch; }
:root .ds-texte > * { margin: 0; }
:root .ds-section--gauche .ds-texte, :root .ds-texte--large { max-width: none; }
:root .ds-texte--large > :is(.ds-t--corps, .ds-t--chapeau, .ds-liste) { max-width: none; }

/* ── 4. Lien ─────────────────────────────────────────────────────────── */
:root .ds-lien { color: var(--ds-c-lien); text-decoration: var(--ds-c-lien-deco); }
:root .ds-lien:hover { color: var(--ds-c-lien); text-decoration: underline; }
:root .ds-lien:focus-visible { text-decoration: underline; outline: 2px solid currentColor; outline-offset: 2px; }
:root .ds-lien .ds-lien__icone { display: inline-block; font-size: 1.2em; line-height: 1; vertical-align: -0.2em; margin-inline-start: .3em; }
:root .ds-lien .ds-lien__icone::before { margin: 0; }
:root .ds-lien--action { font-weight: 600; }

/* ── 5. Boutons (AIButtonPart → a.ic2-btn) ───────────────────────────── */
:root .ds-boutons { display: flex; flex-wrap: wrap; align-items: center; gap: var(--ds-espace-2); }
:root .ds-section__tete .ds-boutons, :root .ds-section__pied.ds-boutons { justify-content: var(--ds-tete-flex, center); }
:root .ds-section--gauche .ds-section__tete .ds-boutons { justify-content: flex-start; }
:root .ds-bouton .ic2-btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; max-width: 100%; margin: 0; border: 1px solid transparent; border-radius: var(--ds-rayon-bouton); font-family: var(--ds-police-texte); font-weight: var(--ds-bouton-graisse); text-transform: var(--ds-bouton-casse); letter-spacing: var(--ds-bouton-espacement); line-height: 1.5; text-align: center; text-decoration: none; cursor: pointer; transition: color .2s ease, background-color .2s ease, border-color .2s ease, transform .2s ease; }
:root .ds-bouton .ic2-btn [data-icon] { font-size: 1.15em; line-height: 1; }
:root .ds-bouton .ic2-btn [data-icon]::before { margin: 0; }
:root .ds-bouton--m .ic2-btn { padding: var(--ds-bouton-m-padding); font-size: var(--ds-bouton-m-taille); min-height: var(--ds-bouton-m-hauteur); }
:root .ds-bouton--s .ic2-btn { padding: var(--ds-bouton-s-padding); font-size: var(--ds-bouton-s-taille); min-height: var(--ds-bouton-s-hauteur); }
:root .ds-bouton--principal .ic2-btn { background-color: var(--ds-marque); color: var(--ds-sur-marque); border-color: var(--ds-marque); }
:root .ds-bouton--principal .ic2-btn:is(:hover, :focus-visible) { background-color: var(--ds-marque-fonce); border-color: var(--ds-marque-fonce); color: var(--ds-sur-marque); text-decoration: none; }
:root .ds-bouton--contour .ic2-btn { background-color: transparent; color: var(--ds-c-titre); border-color: var(--ds-c-filet-fort); }
:root .ds-bouton--contour .ic2-btn:is(:hover, :focus-visible) { background-color: var(--ds-c-voile); color: var(--ds-c-titre); border-color: var(--ds-c-doux); text-decoration: none; }
/* sur un fond à la couleur de la marque, le principal s'inverse */
:root .ds-fond-marque .ds-bouton--principal .ic2-btn { background-color: var(--ds-sur-marque); color: var(--ds-marque); border-color: var(--ds-sur-marque); }
:root .ds-bouton .ic2-btn:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
:root .ds-bouton .ic2-btn:active { transform: scale(.98); }
:root .ds-boutons--empiles { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 8px; }
:root .ds-boutons--empiles .ds-bouton, :root .ds-boutons--empiles .ic2-btn { width: 100%; }
@media (max-width: 767px) { :root .ds-boutons .ds-bouton--m .ic2-btn { padding-inline: 24px; } }
@media (prefers-reduced-motion: reduce) {
  :root .ds-bouton .ic2-btn { transition: none; }
  :root .ds-bouton .ic2-btn:active { transform: none; }
}

/* ── 6. Listes ───────────────────────────────────────────────────────── */
:root .ds-liste { margin: 0; padding-inline-start: 1.25em; display: flex; flex-direction: column; gap: 12px; }
:root .ds-liste > .ds-liste__element { display: list-item; line-height: 1.5; }
:root .ds-liste--numeros { list-style-type: decimal; }
:root .ds-liste--coches { list-style: none; padding-inline-start: 0; gap: 16px; }
:root .ds-liste--coches > .ds-liste__element { display: block; position: relative; padding-inline-start: 40px; min-height: 24px; }
:root .ds-liste--coches > .ds-liste__element::before { content: ""; position: absolute; inset-inline-start: 0; top: -2px; width: 28px; height: 28px; background-color: var(--ds-c-puce); -webkit-mask: var(--ds-puce-coche) center / contain no-repeat; mask: var(--ds-puce-coche) center / contain no-repeat; }
:root .ds-liste--coches-fines { list-style: none; padding-inline-start: 0; gap: 14px; }
:root .ds-liste--coches-fines > .ds-liste__element { display: block; position: relative; padding-inline-start: 30px; font-size: .9375rem; }
:root .ds-liste--coches-fines > .ds-liste__element::before { content: ""; position: absolute; inset-inline-start: 0; top: .15em; width: 18px; height: 18px; background-color: var(--ds-c-puce); -webkit-mask: var(--ds-puce-coche-fine) center / contain no-repeat; mask: var(--ds-puce-coche-fine) center / contain no-repeat; }
:root .ds-liste--2-colonnes { display: grid; grid-template-columns: 1fr; }
@media (min-width: 768px) { :root .ds-liste--2-colonnes { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; } }
:root .ds-liste .ds-liste__intitule { display: block; font-weight: 600; }
:root .ds-liste .ds-liste__detail { display: block; margin-top: 6px; }

/* ── 7. Grille ───────────────────────────────────────────────────────── */
:root .ds-grille { display: grid; gap: var(--ds-espace-4); grid-template-columns: minmax(0, 1fr); }
:root .ds-grille > * { min-width: 0; }
@media (min-width: 768px) { :root :is(.ds-grille--2, .ds-grille--3, .ds-grille--4) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) {
  :root .ds-grille--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  :root .ds-grille--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ── 8. Carte de texte ───────────────────────────────────────────────── */
:root .ds-carte-texte { display: flex; flex-direction: column; gap: var(--ds-espace-3); min-width: 0; height: 100%; padding: 24px 26px 32px; border-radius: var(--ds-rayon-carte); background-color: var(--ds-page); color: var(--ds-c-texte); border: 2px solid var(--ds-filet-carte); text-align: start; }
:root .ds-carte-texte .ds-carte-texte__icone { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; flex: none; border-radius: var(--ds-rayon-surface); background-color: var(--ds-marque); color: var(--ds-sur-marque); font-size: 28px; line-height: 1; }
:root .ds-carte-texte .ds-carte-texte__icone::before { margin: 0; }
:root .ds-carte-texte .ds-carte-texte__contenu { display: flex; flex-direction: column; gap: var(--ds-espace-2); flex: 1; }
:root .ds-carte-texte .ds-carte-texte__titre { margin: 0; color: var(--ds-c-titre); font-family: var(--ds-police-titre); text-transform: var(--ds-titre-casse); letter-spacing: var(--ds-titre-espacement); font-size: var(--ds-t-carte); font-weight: var(--ds-t-carte-graisse); line-height: var(--ds-titre-interligne); }
:root .ds-carte-texte .ds-carte-texte__filet { margin: 0; border: 0; border-top: 2px solid var(--ds-c-filet); opacity: 1; }
:root .ds-carte-texte .ds-carte-texte__texte { margin: 0; font-size: 1rem; line-height: 1.5; }
:root .ds-carte-texte .ds-carte-texte__lien { margin-top: auto; }
:root .ds-carte-texte .ds-carte-texte__visuel { align-self: flex-start; max-width: 100%; }
:root .ds-carte-texte .ds-carte-texte__visuel .ic2-img img { display: block; height: 72px; width: auto; max-width: 100%; object-fit: contain; }

/* ── 9. Parcours en étapes (capture + texte alternés, numéros posés par la feuille) ── */
:root .ds-parcours { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: clamp(3rem, 1.5rem + 5vw, 8rem); counter-reset: parcours; }
:root .ds-parcours > .ds-parcours__etape { counter-increment: parcours; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--ds-espace-4); align-items: center; }
@media (min-width: 768px) {
  :root .ds-parcours > .ds-parcours__etape { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 1rem + 4vw, 6rem); }
  :root .ds-parcours > .ds-parcours__etape:nth-child(even) > .ds-parcours__visuel { order: 2; }
}
:root .ds-parcours .ds-parcours__visuel { border-radius: var(--ds-rayon-image); overflow: hidden; }
:root .ds-parcours .ds-parcours__visuel .ic2-img img { display: block; width: 100%; height: auto; }
:root .ds-parcours .ds-parcours__corps { display: flex; flex-direction: column; gap: var(--ds-espace-2); }
:root .ds-parcours .ds-parcours__numero { margin: 0; font-size: clamp(40px, 2rem + 2.5vw, 72px); font-weight: 300; line-height: 1.2; color: var(--ds-c-numero); }
:root .ds-parcours .ds-parcours__numero::before { content: counter(parcours, decimal-leading-zero); }
:root .ds-parcours .ds-parcours__titre { margin: 0; font-size: 1rem; font-weight: 400; line-height: 1.5; color: var(--ds-c-texte); }
:root .ds-parcours .ds-parcours__titre--fort { font-family: var(--ds-police-titre); text-transform: var(--ds-titre-casse); font-size: var(--ds-t-petit-titre); font-weight: var(--ds-t-petit-titre-graisse); line-height: var(--ds-titre-interligne); color: var(--ds-c-titre); }
:root .ds-parcours .ds-parcours__texte { margin: 0; font-size: 1rem; line-height: 1.5; color: var(--ds-c-texte); max-width: 60ch; }

/* ── 10. Logos ───────────────────────────────────────────────────────── */
:root .ds-logos { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 32px 48px; }
:root .ds-logos > .ds-logos__logo { display: flex; justify-content: center; align-items: center; flex: 0 1 120px; min-width: 0; }
:root .ds-logos .ic2-img img { display: block; max-height: 64px; max-width: 140px; width: auto; height: auto; object-fit: contain; }
:root .ds-logos--grands > .ds-logos__logo { flex-basis: 200px; }
:root .ds-logos--grands .ic2-img img { max-height: 96px; max-width: 220px; }
:root .ds-logos__legende { margin: 0; text-align: center; font-size: var(--ds-t-petit-titre); font-weight: 500; line-height: 1.2; color: var(--ds-c-titre); }
:root .ds-logos__legende strong { font-weight: 700; }

/* ── 11. Avis client et citations ────────────────────────────────────── */
:root .ds-avis { margin: 0; display: flex; align-items: center; gap: clamp(1rem, .5rem + 2vw, 2.375rem); padding: 32px 16px 32px 24px; border-radius: var(--ds-rayon-surface); background-color: var(--ds-page); color: var(--ds-c-texte); border: 1px solid var(--ds-filet); box-shadow: var(--ds-ombre-carte); }
:root .ds-avis .ds-avis__profil { display: flex; flex-direction: column; align-items: center; gap: 12px; flex: none; width: 98px; text-align: center; font-size: .875rem; }
:root .ds-avis .ds-avis__photo { width: 56px; border-radius: 50%; overflow: hidden; }
:root .ds-avis .ds-avis__photo .ic2-img img { display: block; width: 100%; }
:root .ds-avis .ds-avis__nom { margin: 0; font-weight: 600; }
:root .ds-avis .ds-avis__fonction { margin: 0; color: var(--ds-c-doux); }
:root .ds-avis .ds-avis__texte { position: relative; margin: 0; padding-top: 28px; font-size: 1rem; line-height: 1.5; }
:root .ds-avis .ds-avis__texte::before { content: "\201C"; position: absolute; top: -18px; left: -4px; font-size: 80px; line-height: 1; font-family: Georgia, serif; color: var(--ds-c-filet-fort); }
:root .ds-avis .ds-avis__texte p { margin: 0; }
@media (max-width: 767px) { :root .ds-avis { flex-direction: column; align-items: flex-start; } :root .ds-avis .ds-avis__profil { flex-direction: row; width: auto; text-align: start; } }
:root .ds-citation-grande { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--ds-espace-4); align-items: center; }
@media (min-width: 768px) { :root .ds-citation-grande { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
:root .ds-citation-grande .ds-citation-grande__personne { display: flex; align-items: center; gap: 24px; padding: 24px; border-radius: 120px var(--ds-rayon-surface) var(--ds-rayon-surface) 120px; background-color: var(--ds-c-voile); }
:root .ds-citation-grande .ds-citation-grande__photo { width: clamp(96px, 60px + 6vw, 160px); flex: none; border-radius: 50%; overflow: hidden; }
:root .ds-citation-grande .ds-citation-grande__photo .ic2-img img { display: block; width: 100%; }
:root .ds-citation-grande .ds-citation-grande__nom { margin: 0; font-size: var(--ds-t-petit-titre); font-weight: 400; color: var(--ds-c-titre); }
:root .ds-citation-grande .ds-citation-grande__fonction { margin: 0; font-size: 1rem; color: var(--ds-c-doux); }
:root .ds-citation-grande .ds-citation-grande__texte { margin: 0; font-family: var(--ds-police-titre); font-size: clamp(1.25rem, .9rem + 1.2vw, 2rem); font-weight: 700; font-style: italic; line-height: 1.3; color: var(--ds-c-titre); }
:root .ds-citation-grande .ds-citation-grande__texte p { margin: 0; }
:root .ds-citation { margin: 0; display: flex; flex-direction: column; gap: 8px; }
:root .ds-citation .ds-citation__texte { margin: 0; font-style: italic; font-size: 1.125rem; line-height: 1.5; border-inline-start: 4px solid var(--ds-c-accent); padding: .4em 0 .4em 20px; color: var(--ds-c-titre); }
:root .ds-citation .ds-citation__texte p { margin: 0; }
:root .ds-citation .ds-citation__auteur { font-size: .875rem; font-weight: 600; }

/* ── 12. Accordéon (FAQ) ─────────────────────────────────────────────── */
:root .ds-accordeons { display: flex; flex-direction: column; }
:root .ds-accordeon { border-bottom: 1px solid var(--ds-c-filet); padding-block: 8px; }
:root .ds-accordeon .ds-accordeon__entete { display: flex; justify-content: space-between; align-items: center; gap: var(--ds-espace-3); padding: 18px; border-radius: 10px; cursor: pointer; list-style: none; }
:root .ds-accordeon .ds-accordeon__entete::-webkit-details-marker { display: none; }
:root .ds-accordeon .ds-accordeon__entete:hover { background-color: var(--ds-c-voile); }
:root .ds-accordeon .ds-accordeon__entete:focus-visible { outline: 2px solid var(--ds-c-titre); outline-offset: 2px; }
:root .ds-accordeon .ds-accordeon__titre { margin: 0; color: var(--ds-c-titre); font-family: var(--ds-police-titre); font-size: var(--ds-t-petit-titre); font-weight: 600; line-height: 1.43; }
:root .ds-accordeon .ds-accordeon__pastille { position: relative; display: inline-block; flex: none; width: 32px; height: 32px; border: 1px solid var(--ds-c-filet-fort); border-radius: 50%; color: var(--ds-c-titre); }
:root .ds-accordeon .ds-accordeon__pastille::before,
:root .ds-accordeon .ds-accordeon__pastille::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; border-radius: 1px; background-color: currentColor; transition: transform .2s ease; }
:root .ds-accordeon .ds-accordeon__pastille::after { transform: rotate(90deg); }
:root .ds-accordeon[open] .ds-accordeon__pastille::after { transform: rotate(0deg); }
:root .ds-accordeon .ds-accordeon__pastille > * { display: none; }
:root .ds-accordeon .ds-accordeon__contenu { padding: 0 18px 18px; font-size: clamp(1rem, .9rem + .3vw, 1.2rem); line-height: 1.5; display: flex; flex-direction: column; gap: 12px; }
:root .ds-accordeon .ds-accordeon__contenu > * { margin: 0; }

/* ── 13. Média + texte, image, vidéo ─────────────────────────────────── */
:root .ds-media { display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; gap: var(--ds-espace-4); }
:root .ds-media > .ds-media__visuel { min-width: 0; border-radius: var(--ds-rayon-image); overflow: hidden; }
:root .ds-media .ic2-img img { display: block; width: 100%; height: auto; }
:root .ds-media > .ds-media__texte { display: flex; flex-direction: column; gap: var(--ds-espace-3); min-width: 0; }
@media (min-width: 768px) {
  :root .ds-media { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 1rem + 3vw, 4.5rem); }
  :root .ds-media--inverse > .ds-media__visuel { order: 2; }
  /* texte 2/3, image 1/3, quel que soit le côté de l'image */
  :root .ds-media--large-texte { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
  :root .ds-media--large-texte.ds-media--inverse { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
}
:root .ds-image { margin: 0; display: flex; flex-direction: column; gap: var(--ds-espace-1); }
:root .ds-image .ds-image__photo { border-radius: var(--ds-rayon-image); overflow: hidden; }
:root .ds-image .ic2-img img { display: block; width: 100%; height: auto; }
:root .ds-image .ds-image__legende { font-size: .875rem; color: var(--ds-c-doux); }
:root .ds-image--plein .ds-image__photo { border-radius: 0; }
:root .ds-image--portrait .ds-image__photo { border-radius: 50%; max-width: 240px; }
:root .ds-image--logo { align-items: center; }
:root .ds-image--logo .ds-image__photo { border-radius: 0; max-width: 260px; }
:root .ds-video { margin: 0; display: flex; flex-direction: column; gap: var(--ds-espace-2); }
:root .ds-video .ic2-video { border-radius: var(--ds-rayon-image); overflow: hidden; }
:root .ds-video .ds-video__titre { margin: 0; font-size: var(--ds-t-petit-titre); font-weight: 500; line-height: 1.2; color: var(--ds-c-titre); }
:root .ds-video .ds-video__legende { font-size: 1rem; font-weight: 500; color: var(--ds-c-texte); }

/* ── 14. Tableau de données ──────────────────────────────────────────── */
:root .ds-tableau { overflow-x: auto; max-width: 100%; }
:root .ds-tableau table { width: 100%; border-collapse: collapse; color: var(--ds-c-texte); }
:root .ds-tableau th { padding: 8px 10px; font-size: .875rem; font-weight: 700; line-height: 1.4; text-align: start; vertical-align: bottom; color: var(--ds-c-titre); border-bottom: 1px solid var(--ds-c-filet-fort); }
:root .ds-tableau td { padding: 8px 10px; font-size: .875rem; line-height: 1.45; vertical-align: top; text-align: start; }
:root .ds-tableau tbody tr:nth-child(2n) td { background-color: var(--ds-c-voile); }
:root .ds-tableau tbody td:first-child { font-weight: 700; }
:root .ds-tableau--simple tbody td:first-child { font-weight: 400; }
:root .ds-fond-gris .ds-tableau tbody tr:nth-child(2n) td { background-color: var(--ds-page); }
@media (max-width: 767px) { :root .ds-tableau table { min-width: 640px; } }

/* ── 15. Téléchargement (AIDownloadPart) ─────────────────────────────── */
:root .ds-telechargement { display: block; }
:root .ds-telechargement .ic2-download-link { color: var(--ds-c-lien); text-decoration: var(--ds-c-lien-deco); font-weight: 600; display: inline-flex; flex-wrap: wrap; align-items: baseline; column-gap: .5em; }
:root .ds-telechargement .ic2-download-meta { font-weight: 400; font-size: .875em; }
:root .ds-telechargement .ic2-download-link:hover { text-decoration: underline; }

/* ── 16. Carrousel (Splide monté par le site) ────────────────────────── */
:root .ds-carrousel { position: relative; }
:root .ds-carrousel .splide__arrow { position: absolute; top: 50%; transform: translateY(-50%); display: flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; padding: 0; border: 0; border-radius: 999px; background-color: var(--ds-marque); color: var(--ds-sur-marque); opacity: 1; z-index: 2; cursor: pointer; }
:root .ds-carrousel .splide__arrow--prev { inset-inline-start: 1em; }
:root .ds-carrousel .splide__arrow--next { inset-inline-end: 1em; }
:root .ds-carrousel .splide__arrow:disabled { opacity: .35; cursor: default; }
:root .ds-carrousel .splide__arrow:hover { background-color: var(--ds-marque-fonce); }
:root .ds-carrousel .splide__arrow svg { fill: currentColor; width: 1.1em; height: 1.1em; }
:root .ds-carrousel .splide__arrow--prev svg { transform: scaleX(-1); }
:root .ds-carrousel .splide__pagination { position: static; display: flex; justify-content: center; gap: 8px; margin: var(--ds-espace-3) 0 0; padding: 0; list-style: none; }
:root .ds-carrousel .splide__pagination__page { display: block; width: 10px; height: 10px; padding: 0; margin: 0; border: 0; border-radius: 999px; background-color: var(--ds-c-filet-fort); opacity: 1; transform: none; }
:root .ds-carrousel .splide__pagination__page.is-active { background-color: var(--ds-c-accent); }

/* ── 17. Chiffres clés ───────────────────────────────────────────────── */
:root .ds-chiffres { display: grid; gap: var(--ds-espace-4); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 768px) { :root .ds-chiffres { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) {
  :root .ds-chiffres { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  :root .ds-chiffres:has(> :nth-child(3)):not(:has(> :nth-child(4))) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
:root .ds-chiffre { display: flex; flex-direction: column; gap: 8px; container-type: inline-size; text-align: center; }
:root .ds-chiffre .ds-chiffre__nombre { display: block; white-space: nowrap; font-family: var(--ds-police-titre); font-size: min(var(--ds-chiffre-taille), 20cqi); line-height: 1; font-weight: var(--ds-chiffre-graisse); color: var(--ds-c-accent); }
:root .ds-chiffre .ds-chiffre__legende { display: block; font-size: 1rem; font-weight: 500; color: var(--ds-c-titre); }

/* ── 18. Étapes simples, onglets, étiquettes, séparateur, icône ──────── */
:root .ds-etapes { list-style: none; margin: 0; padding: 0; counter-reset: etape; display: grid; gap: var(--ds-espace-5); }
:root .ds-etapes > .ds-etapes__etape { counter-increment: etape; display: grid; gap: 8px; }
:root .ds-etapes .ds-etapes__numero::before { content: counter(etape, decimal-leading-zero); color: var(--ds-c-numero); font-size: clamp(40px, 2rem + 2.5vw, 72px); font-weight: 300; line-height: 1.2; }
:root .ds-etapes .ds-etapes__corps { display: flex; flex-direction: column; gap: 8px; }
:root .ds-etapes .ds-etapes__texte { margin: 0; font-family: var(--ds-police-titre); text-transform: var(--ds-titre-casse); font-size: var(--ds-t-petit-titre); font-weight: var(--ds-t-petit-titre-graisse); line-height: 1.2; color: var(--ds-c-titre); }
:root .ds-etapes .ds-etapes__sous-texte { margin: 0; font-size: 1rem; }
@media (min-width: 768px) { :root .ds-etapes { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); } }
:root .ds-onglets { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 8px; }
:root .ds-onglets::after { content: ""; order: 0; flex-basis: 100%; height: 1px; background-color: var(--ds-c-filet); }
:root .ds-onglets > .ds-onglets__choix { position: absolute; opacity: 0; pointer-events: none; margin: 0; }
:root .ds-onglets > .ds-onglets__onglet { margin: 0; order: 0; display: inline-grid; cursor: pointer; padding: 10px 18px; font-size: 1.125rem; font-weight: 400; color: var(--ds-c-doux); border-bottom: 3px solid transparent; transition: border-color .2s, color .2s; }
:root .ds-onglets > .ds-onglets__onglet::after { content: attr(data-libelle); font-weight: 600; height: 0; visibility: hidden; overflow: hidden; user-select: none; pointer-events: none; }
:root .ds-onglets > .ds-onglets__panneau { order: 1; flex-basis: 100%; display: none; padding-top: var(--ds-espace-4); }
:root .ds-onglets > .ds-onglets__onglet:hover,
:root .ds-onglets > .ds-onglets__choix:focus-visible + .ds-onglets__onglet,
:root .ds-onglets > .ds-onglets__choix:checked + .ds-onglets__onglet { font-weight: 600; color: var(--ds-c-titre); border-bottom-color: var(--ds-c-accent); }
:root .ds-onglets > .ds-onglets__choix:checked + .ds-onglets__onglet + .ds-onglets__panneau { display: block; }
@media (max-width: 767px) { :root .ds-onglets { display: block; } :root .ds-onglets::after { content: none; } :root .ds-onglets > .ds-onglets__onglet { display: block; text-align: center; border-bottom: 1px solid var(--ds-c-filet); } }
:root .ds-etiquettes { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
:root .ds-etiquette { display: inline-block; align-self: flex-start; padding: 4px 12px; border: 1px solid var(--ds-c-filet-fort); border-radius: 50px; background-color: var(--ds-c-voile); color: var(--ds-c-texte); font-size: .875rem; font-weight: 500; line-height: 1.4; white-space: nowrap; }
:root .ds-separateur { border: 0; border-top: 1px solid var(--ds-c-filet-fort); opacity: .5; margin: 0; width: 100%; }
:root .ds-icone { display: inline-block; line-height: 1; color: var(--ds-c-accent); }
:root .ds-icone::before { margin: 0; }
:root .ds-icone--s { font-size: 24px; }
:root .ds-icone--m { font-size: 40px; }

/* ── 19. Cartes secondaires : événement, portrait, photo ─────────────── */
:root .ds-date { display: inline-flex; flex-direction: column; align-items: center; line-height: 1; padding: 8px 12px; border-radius: var(--ds-rayon-surface); background-color: var(--ds-marque); color: var(--ds-sur-marque); font-size: 1.5rem; font-weight: 600; white-space: nowrap; }
:root .ds-date .ds-date__mois { font-size: .75rem; font-weight: 500; text-transform: uppercase; margin-top: 4px; }
:root .ds-carte-evenement { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--ds-espace-3); align-items: start; border-radius: var(--ds-rayon-surface); padding: var(--ds-espace-3); background-color: var(--ds-page); color: var(--ds-c-texte); border: 1px solid var(--ds-filet); box-shadow: var(--ds-ombre-carte); }
:root .ds-carte-evenement .ds-carte-evenement__contenu { display: flex; flex-direction: column; gap: 8px; }
:root .ds-carte-portrait { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 32px 16px; border-radius: var(--ds-rayon-surface); background-color: var(--ds-page); color: var(--ds-c-texte); border: 1px solid var(--ds-filet); box-shadow: var(--ds-ombre-carte); }
:root .ds-carte-portrait .ds-carte-portrait__photo { width: 140px; border-radius: 50%; overflow: hidden; margin-bottom: 8px; }
:root .ds-carte-portrait .ic2-img img { display: block; width: 100%; }
:root .ds-carte-photo { display: flex; flex-direction: column; gap: 0; margin: 0; min-width: 0; border-radius: var(--ds-rayon-carte); background-color: var(--ds-page); color: var(--ds-c-texte); border: 1px solid var(--ds-filet-carte); overflow: hidden; }
:root .ds-carte-photo .ic2-img img { display: block; width: 100%; }
:root .ds-carte-photo .ds-carte-photo__titre { margin: 0; padding: 16px 24px 24px; color: var(--ds-c-titre); font-family: var(--ds-police-titre); text-transform: var(--ds-titre-casse); font-size: var(--ds-t-petit-titre); font-weight: var(--ds-t-petit-titre-graisse); line-height: 1.2; }

/* ── 19b. Fiche de données (paires intitulé / valeur) ─────────────────── */
:root .ds-fiche { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); }
:root .ds-fiche .ds-fiche__ligne { display: grid; grid-template-columns: minmax(8rem, 1fr) minmax(0, 2fr); gap: 4px 24px; padding-block: 12px; border-bottom: 1px solid var(--ds-c-filet); align-items: baseline; }
:root .ds-fiche .ds-fiche__ligne:last-child { border-bottom: 0; }
:root .ds-fiche dt { margin: 0; font-size: .875rem; font-weight: var(--ds-fiche-intitule-graisse, 600); text-transform: var(--ds-fiche-intitule-casse, none); color: var(--ds-c-doux); }
:root .ds-fiche dd { margin: 0; font-size: 1rem; font-weight: var(--ds-fiche-valeur-graisse, 400); color: var(--ds-c-titre); }
@media (min-width: 768px) { :root .ds-fiche--2-colonnes { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; } :root .ds-fiche--2-colonnes .ds-fiche__ligne:nth-last-child(2):nth-child(odd) { border-bottom: 0; } }

/* ── 20. Coordonnées ─────────────────────────────────────────────────── */
:root .ds-contact { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--ds-espace-4); }
@media (min-width: 768px) { :root .ds-contact { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { :root .ds-contact { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
:root .ds-contact .ds-contact__bloc { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
:root .ds-contact .ds-contact__titre { margin: 0; font-family: var(--ds-police-titre); font-size: 1.25rem; font-weight: 500; line-height: 1.2; color: var(--ds-c-titre); }
:root .ds-contact .ds-contact__ligne { display: grid; grid-template-columns: 24px minmax(0, 1fr); column-gap: 14px; align-items: start; margin: 0; font-size: .875rem; line-height: 1.5; }
:root .ds-contact .ds-contact__ligne [data-icon] { font-size: 20px; line-height: 1.1; color: var(--ds-c-doux); }
:root .ds-contact .ds-contact__ligne [data-icon]::before { margin: 0; }
:root .ds-contact .ds-contact__ligne p { margin: 0; }
:root .ds-contact .ds-contact__personne { display: flex; flex-direction: column; align-items: center; gap: 8px; align-self: flex-start; font-size: .875rem; font-weight: 600; }
:root .ds-contact .ds-contact__photo { width: 69px; border-radius: 50%; overflow: hidden; }
:root .ds-contact .ds-contact__photo .ic2-img img { display: block; width: 100%; }

/* ── 21. Camembert ───────────────────────────────────────────────────── */
:root { --ds-serie-1: var(--ds-marque); --ds-serie-2: var(--ds-texte-doux); --ds-serie-3: var(--ds-numero); --ds-serie-4: var(--ds-titre); --ds-serie-5: var(--ds-filet-fort); --ds-serie-6: var(--ds-succes); }
:root .ds-camembert { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--ds-espace-3); align-items: center; }
:root .ds-camembert .ds-camembert__disque { display: block; width: 100%; max-width: 14rem; height: auto; aspect-ratio: 1; overflow: visible; transform: rotate(-90deg); }
:root .ds-camembert .ds-camembert__part { fill: none; stroke-width: 16; }
:root .ds-camembert .ds-camembert__legende { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
:root .ds-camembert .ds-camembert__entree { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; column-gap: .75em; align-items: baseline; }
:root .ds-camembert .ds-camembert__entree::before { content: ""; display: inline-block; width: .8em; height: .8em; border-radius: 3px; transform: translateY(.1em); }
:root .ds-camembert .ds-camembert__valeur { font-weight: 600; white-space: nowrap; }
:root .ds-camembert .ds-camembert__part--1 { stroke: var(--ds-serie-1); } :root .ds-camembert .ds-camembert__entree--1::before { background-color: var(--ds-serie-1); }
:root .ds-camembert .ds-camembert__part--2 { stroke: var(--ds-serie-2); } :root .ds-camembert .ds-camembert__entree--2::before { background-color: var(--ds-serie-2); }
:root .ds-camembert .ds-camembert__part--3 { stroke: var(--ds-serie-3); } :root .ds-camembert .ds-camembert__entree--3::before { background-color: var(--ds-serie-3); }
:root .ds-camembert .ds-camembert__part--4 { stroke: var(--ds-serie-4); } :root .ds-camembert .ds-camembert__entree--4::before { background-color: var(--ds-serie-4); }
:root .ds-camembert .ds-camembert__part--5 { stroke: var(--ds-serie-5); } :root .ds-camembert .ds-camembert__entree--5::before { background-color: var(--ds-serie-5); }
:root .ds-camembert .ds-camembert__part--6 { stroke: var(--ds-serie-6); } :root .ds-camembert .ds-camembert__entree--6::before { background-color: var(--ds-serie-6); }
@media (min-width: 768px) { :root .ds-camembert { grid-template-columns: minmax(0, 14rem) minmax(0, 1fr); } }

/* ── Cadrage des images recadrées ──
   Une photo recadrée (bande, panneau, carte, plein écran) garde par défaut son tiers haut : c'est
   là que se trouvent les visages et les sujets dans la plupart des photos. Les agrandissements
   animés partent du même point. L'IA, qui voit les photos, pose sur le conteneur de chaque photo
   recadrée la zone de son sujet : ds-cadrage--… (neuf zones). */
:root { --ds-cadrage: 50% 30%; }
:root :is(.ds-section, .ds-entete-photo) img { object-position: var(--ds-cadrage); transform-origin: var(--ds-cadrage); }
:root .ds-cadrage--haut-gauche { --ds-cadrage: 15% 10%; }
:root .ds-cadrage--haut { --ds-cadrage: 50% 10%; }
:root .ds-cadrage--haut-droite { --ds-cadrage: 85% 10%; }
:root .ds-cadrage--gauche { --ds-cadrage: 15% 45%; }
:root .ds-cadrage--centre { --ds-cadrage: 50% 50%; }
:root .ds-cadrage--droite { --ds-cadrage: 85% 45%; }
:root .ds-cadrage--bas-gauche { --ds-cadrage: 15% 90%; }
:root .ds-cadrage--bas { --ds-cadrage: 50% 90%; }
:root .ds-cadrage--bas-droite { --ds-cadrage: 85% 90%; }

/* ── Icônes aux endroits utiles (mode Normal) ──
   Chaque place d'icône prend la couleur d'accent de sa surface ; un site la redessine dans client.css.
   Les deux écritures sont prévues : data-icon (parc du site) ou <i class="fa-…"> (Font Awesome). */
:root :is(.ds-fiche__icone, .ds-chiffre__icone, .ds-liste__icone, .ds-section__icone, .ds-icone) :is(i, svg) { line-height: 1; }
:root .ds-icone--l { font-size: 56px; }
/* sur le titre d'une section : au-dessus du titre, dans l'alignement de la tête */
:root .ds-section__tete > .ds-section__icone { display: inline-block; font-size: var(--ds-section-icone-taille, 40px); line-height: 1; color: var(--ds-c-accent); }
:root .ds-section__icone::before { margin: 0; }
/* fiche de données : l'icône devant l'intitulé */
:root .ds-fiche dt:has(> .ds-fiche__icone) { display: flex; align-items: center; gap: .6em; }
:root .ds-fiche .ds-fiche__icone { flex: none; inline-size: 1.4em; font-size: 1.15rem; line-height: 1; text-align: center; color: var(--ds-c-accent); text-transform: none; }
:root .ds-fiche .ds-fiche__icone::before { margin: 0; }
/* chiffres clés : l'icône au-dessus du nombre dit ce qu'il compte */
:root .ds-chiffre .ds-chiffre__icone { display: block; margin-bottom: 12px; font-size: var(--ds-chiffre-icone-taille, 32px); line-height: 1; color: var(--ds-c-accent); }
:root .ds-chiffre .ds-chiffre__icone::before { margin: 0; }
/* liste à icônes : chaque point fort a la sienne, à la place de la puce */
:root .ds-liste.ds-liste--icones { list-style: none; padding-inline-start: 0; gap: 16px; }
:root .ds-liste--icones > .ds-liste__element { display: grid; grid-template-columns: 1.6em minmax(0, 1fr); column-gap: .75em; align-items: start; }
:root .ds-liste--icones > .ds-liste__element > .ds-liste__icone { grid-column: 1; grid-row: 1 / span 2; margin: 0; font-size: 1.35em; line-height: 1.1; text-align: center; color: var(--ds-c-accent); vertical-align: 0; }
:root .ds-liste--icones > .ds-liste__element > .ds-liste__icone::before { margin: 0; }
:root .ds-liste--icones > .ds-liste__element > :not(.ds-liste__icone) { grid-column: 2; }


/* ==========================================================================
   SOCLE — MÉCANIQUE AUDACIEUSE (classes ds-m-…) — réservée au niveau Audacieux
   Ce fichier ne donne AUCUNE apparence : ni couleur, ni police, ni forme, ni
   taille de texte. Il fournit des comportements (mouvement, défilement) et des
   dispositions (D1–D7) qui se rangent selon la place qu'on leur donne.
   L'apparence audacieuse de chaque site (ses composants ds-a-…) est écrite dans
   clients/<site>/audacieux.css, à partir de sa direction artistique : deux sites
   ne partagent donc que la mécanique, jamais le dessin.
   Règles internes :
   - aucun JavaScript ; le mouvement est en CSS ;
   - tout effet lié au défilement est sous @supports (animation-timeline: view()) :
     sans prise en charge, l'élément est simplement visible et immobile ;
   - tout mouvement s'arrête sous prefers-reduced-motion et en mode édition
     (body.IC2Editor) ; les positions collantes ne valent qu'au-dessus de 1000 px ;
   - réglages par site : --ds-m-duree, --ds-m-courbe, --ds-m-distance,
     --ds-m-defile-duree, --ds-m-fixe-haut.
   ========================================================================== */
:root {
  --ds-m-duree: .9s;
  --ds-m-courbe: cubic-bezier(.2, .7, .2, 1);
  --ds-m-distance: 48px;
  --ds-m-defile-duree: 40s;
  --ds-m-fixe-haut: 12vh;
  /* ampleur : multiplie toutes les distances et les échelles des mouvements et des scènes.
     2 = franc et spectaculaire (défaut du niveau Audacieux) ; un site sobre peut descendre à 1,5. */
  --ds-m-ampleur: 2;
  /* décalage des apparitions au défilement : l'effet se joue quand l'élément est bien dans l'écran, pas au ras du bas */
  --ds-m-retard: 14svh;
}

/* ── M1. Pleine largeur — ds-m-plein : l'élément sort de la colonne et occupe l'écran ── */
:root .ds-m-plein { width: 100vw; max-width: none; margin-inline: calc(50% - 50vw); }

/* ── M2. Entrée au chargement — ds-m-entree : les enfants entrent l'un après l'autre ── */
@keyframes ds-m-entree { from { opacity: 0; transform: translateY(calc(var(--ds-m-distance) * var(--ds-m-ampleur))); filter: blur(10px); } to { opacity: 1; transform: none; filter: none; } }
@media (prefers-reduced-motion: no-preference) {
  :root body:not(.IC2Editor) .ds-m-entree > * { animation: ds-m-entree var(--ds-m-duree) var(--ds-m-courbe) both; }
  :root body:not(.IC2Editor) .ds-m-entree > :nth-child(2) { animation-delay: calc(var(--ds-m-duree) * .18); }
  :root body:not(.IC2Editor) .ds-m-entree > :nth-child(3) { animation-delay: calc(var(--ds-m-duree) * .36); }
  :root body:not(.IC2Editor) .ds-m-entree > :nth-child(4) { animation-delay: calc(var(--ds-m-duree) * .54); }
  :root body:not(.IC2Editor) .ds-m-entree > :nth-child(n+5) { animation-delay: calc(var(--ds-m-duree) * .72); }
}

/* ── M3. Révélations au défilement ─────────────────────────────────────
   ds-m-monte   l'élément monte et apparaît
   ds-m-fondu   l'élément apparaît sur place, lentement
   ds-m-gauche / ds-m-droite   l'élément glisse depuis un côté
   ds-m-ouvre   le conteneur d'une image se découpe puis s'ouvre ; l'image se resserre
   ds-m-zoom    l'image du conteneur se resserre pendant tout son passage à l'écran
   ds-m-derive  un décor glisse plus lentement que la page (profondeur)
   ds-m-cascade les enfants apparaissent l'un après l'autre en montant           */
@keyframes ds-m-monte { from { opacity: 0; transform: translateY(calc(var(--ds-m-distance) * var(--ds-m-ampleur))) scale(calc(1 - .03 * var(--ds-m-ampleur))); } to { opacity: 1; transform: none; } }
@keyframes ds-m-fondu { from { opacity: 0; } to { opacity: 1; } }
@keyframes ds-m-gauche { from { opacity: 0; transform: translateX(calc(var(--ds-m-distance) * -2 * var(--ds-m-ampleur))); } to { opacity: 1; transform: none; } }
@keyframes ds-m-droite { from { opacity: 0; transform: translateX(calc(var(--ds-m-distance) * 2 * var(--ds-m-ampleur))); } to { opacity: 1; transform: none; } }
@keyframes ds-m-ouvre { from { clip-path: inset(calc(12% * var(--ds-m-ampleur)) calc(8% * var(--ds-m-ampleur)) round var(--ds-m-rayon, 0px)); } to { clip-path: inset(0 round var(--ds-m-rayon, 0px)); } }
@keyframes ds-m-resserre { from { transform: scale(calc(1 + .15 * var(--ds-m-ampleur))); } to { transform: scale(1); } }
@keyframes ds-m-derive { from { transform: translateY(calc(var(--ds-m-distance) * 1.5 * var(--ds-m-ampleur))); } to { transform: translateY(calc(var(--ds-m-distance) * -1.5 * var(--ds-m-ampleur))); } }
:root :is(.ds-m-ouvre, .ds-m-zoom) { overflow: hidden; }
:root :is(.ds-m-ouvre, .ds-m-zoom) :is(.ic2-img, img) { display: block; width: 100%; height: 100%; object-fit: cover; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    :root body:not(.IC2Editor) :is(.ds-m-monte, .ds-m-cascade > *) { animation: ds-m-monte linear both; animation-timeline: view(); animation-range: entry calc(0% + var(--ds-m-retard)) cover calc(28% + var(--ds-m-retard)); }
    :root body:not(.IC2Editor) .ds-m-cascade > :nth-child(2) { animation-range: entry calc(10% + var(--ds-m-retard)) cover calc(34% + var(--ds-m-retard)); }
    :root body:not(.IC2Editor) .ds-m-cascade > :nth-child(3) { animation-range: entry calc(20% + var(--ds-m-retard)) cover calc(40% + var(--ds-m-retard)); }
    :root body:not(.IC2Editor) .ds-m-cascade > :nth-child(n+4) { animation-range: entry calc(30% + var(--ds-m-retard)) cover calc(46% + var(--ds-m-retard)); }
    :root body:not(.IC2Editor) .ds-m-fondu { animation: ds-m-fondu linear both; animation-timeline: view(); animation-range: entry calc(10% + var(--ds-m-retard)) cover calc(40% + var(--ds-m-retard)); }
    :root body:not(.IC2Editor) .ds-m-gauche { animation: ds-m-gauche linear both; animation-timeline: view(); animation-range: entry calc(0% + var(--ds-m-retard)) cover calc(35% + var(--ds-m-retard)); }
    :root body:not(.IC2Editor) .ds-m-droite { animation: ds-m-droite linear both; animation-timeline: view(); animation-range: entry calc(0% + var(--ds-m-retard)) cover calc(35% + var(--ds-m-retard)); }
    :root body .ds-m-ouvre { animation: ds-m-ouvre linear both; animation-timeline: view(); animation-range: entry calc(0% + var(--ds-m-retard)) cover calc(45% + var(--ds-m-retard)); }
    :root body .ds-m-ouvre :is(.ic2-img img, img) { animation: ds-m-resserre linear both; animation-timeline: view(); animation-range: entry calc(0% + var(--ds-m-retard)) cover calc(70% + var(--ds-m-retard)); }
    :root body .ds-m-zoom :is(.ic2-img img, img) { animation: ds-m-resserre linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
    :root body .ds-m-derive { animation: ds-m-derive linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
  }
}
@media (max-width: 767px) { :root .ds-m-derive { animation: none !important; } }

/* ── M4. Texte qui se remplit au défilement — ds-m-remplit ─────────────
   La couleur du texte se remplit de gauche à droite pendant le défilement.
   Il prend la couleur de titre du contexte (--ds-c-titre) ; aucune taille imposée. */
@keyframes ds-m-remplit { from { background-size: 0% 100%, 100% 100%; } to { background-size: 100% 100%, 100% 100%; } }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    :root body:not(.IC2Editor) .ds-m-remplit { color: transparent; background-image: linear-gradient(var(--ds-c-titre), var(--ds-c-titre)), linear-gradient(color-mix(in srgb, var(--ds-c-titre) 20%, transparent), color-mix(in srgb, var(--ds-c-titre) 20%, transparent)); background-repeat: no-repeat; background-size: 0% 100%, 100% 100%; -webkit-background-clip: text; background-clip: text; animation: ds-m-remplit linear both; animation-timeline: view(); animation-range: entry calc(40% + var(--ds-m-retard)) cover calc(60% + var(--ds-m-retard)); }
  }
}

/* ── M5. Défilement continu — ds-m-defile ──────────────────────────────
   <div class="ds-m-defile"><div class="ds-m-defile__piste"><ul>…</ul><ul aria-hidden="true">…la même liste…</ul></div></div>
   ds-m-defile--inverse : dans l'autre sens. L'apparence des éléments est celle du site. */
:root .ds-m-defile { overflow: hidden; }
:root .ds-m-defile .ds-m-defile__piste { display: flex; width: max-content; gap: var(--ds-m-defile-ecart, 3rem); align-items: center; }
:root .ds-m-defile .ds-m-defile__piste > ul { display: flex; gap: var(--ds-m-defile-ecart, 3rem); align-items: center; margin: 0; padding: 0; list-style: none; }
:root .ds-m-defile .ds-m-defile__piste > ul > li { white-space: nowrap; }
@keyframes ds-m-defile { to { transform: translateX(calc(-50% - var(--ds-m-defile-ecart, 3rem) / 2)); } }
@media (prefers-reduced-motion: no-preference) {
  :root body:not(.IC2Editor) .ds-m-defile .ds-m-defile__piste { animation: ds-m-defile var(--ds-m-defile-duree) linear infinite; }
  :root body:not(.IC2Editor) .ds-m-defile--inverse .ds-m-defile__piste { animation-direction: reverse; }
  :root body:not(.IC2Editor) .ds-m-defile:hover .ds-m-defile__piste { animation-play-state: paused; }
}
@media (prefers-reduced-motion: reduce) { :root .ds-m-defile .ds-m-defile__piste > ul[aria-hidden="true"] { display: none; } :root .ds-m-defile .ds-m-defile__piste { width: auto; flex-wrap: wrap; } }
:root body.IC2Editor .ds-m-defile .ds-m-defile__piste > ul[aria-hidden="true"] { display: none; }

/* ── M6. Glissière horizontale — ds-m-glissiere ────────────────────────
   Ses enfants directs défilent latéralement et s'arrêtent alignés sur la colonne du site.
   Pleine largeur, première vue alignée sur la colonne. La largeur des enfants est celle du site
   (--ds-m-glissiere-vue, 80 % de l'écran au plus par défaut). */
:root .ds-m-glissiere { width: 100vw; margin-inline: calc(50% - 50vw); display: flex; gap: var(--ds-m-glissiere-ecart, 1.5rem); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; --ds-m-marge: max(var(--ds-gouttiere), calc((100vw - var(--ds-colonne-max)) / 2 + var(--ds-gouttiere-bureau))); padding-inline: var(--ds-m-marge); padding-block: 4px 16px; scroll-padding-inline: var(--ds-m-marge); scrollbar-width: thin; }
:root .ds-m-glissiere > * { flex: 0 0 var(--ds-m-glissiere-vue, min(80vw, 520px)); scroll-snap-align: start; min-width: 0; margin: 0; }

/* ── M7. Visuel fixe pendant le récit — ds-m-fixe ──────────────────────
   <div class="ds-m-fixe"><div class="ds-m-fixe__visuel">…image…</div><div class="ds-m-fixe__suite">…étapes…</div></div>
   Au-dessus de 1000 px : deux colonnes, le visuel reste à l'écran pendant que la suite défile ;
   chaque enfant de la suite s'éclaire en passant au centre de l'écran (opacité seulement).
   ds-m-fixe--inverse : visuel à droite. En dessous : une colonne, visuel d'abord. */
:root .ds-m-fixe { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--ds-m-fixe-ecart, 2rem); }
:root .ds-m-fixe .ds-m-fixe__visuel :is(.ic2-img, img) { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 1000px) {
  :root .ds-m-fixe { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: start; gap: var(--ds-m-fixe-ecart, clamp(3rem, 2rem + 4vw, 7rem)); }
  :root .ds-m-fixe--inverse > .ds-m-fixe__visuel { order: 2; }
  :root body:not(.IC2Editor) .ds-m-fixe .ds-m-fixe__visuel { position: sticky; top: var(--ds-m-fixe-haut); height: calc(100vh - 2 * var(--ds-m-fixe-haut)); }
  :root .ds-m-fixe .ds-m-fixe__suite { padding-block: 8vh 12vh; }
  :root .ds-m-fixe .ds-m-fixe__suite > * { min-height: 40vh; display: flex; flex-direction: column; justify-content: center; }
}
@supports (animation-timeline: view()) {
  @keyframes ds-m-eclaire { from { opacity: .3; } 40%, 60% { opacity: 1; } to { opacity: .3; } }
  @media (min-width: 1000px) and (prefers-reduced-motion: no-preference) {
    :root body:not(.IC2Editor) .ds-m-fixe .ds-m-fixe__suite > * { animation: ds-m-eclaire linear both; animation-timeline: view(); }
  }
}

/* ── M8. Réaction au survol — ds-m-survol : l'image du conteneur se resserre doucement ── */
:root .ds-m-survol { overflow: hidden; }
:root .ds-m-survol :is(.ic2-img img, img) { transition: transform var(--ds-m-duree) var(--ds-m-courbe); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) { :root .ds-m-survol:hover :is(.ic2-img img, img) { transform: scale(1.05); } }

/* ==========================================================================
   S. SCÈNES SPECTACULAIRES (ds-m-…) — des mises en scène liées au défilement
   Chaque scène a trois états, toujours propres :
   - en mouvement : navigateur qui sait lier une animation au défilement (Chrome, Edge,
     Safari récents), visiteur qui accepte le mouvement, page publiée ;
   - immobile : autres navigateurs, prefers-reduced-motion, mode édition (body.IC2Editor) :
     la scène est montrée dans son état final, entière et lisible ;
   - mobile : les scènes épinglées (empile, travelling) deviennent une mise en page simple
     sous 1000 px.
   La personnalité vient du site : --ds-m-courbe (la courbe suit aussi le défilement),
   --ds-m-distance (amplitude), --ds-m-rayon (arrondi d'une image qui se découpe),
   --ds-m-entete (hauteur de l'en-tête du site, retirée du plein écran),
   --ds-m-rideau-couleur (la bande du rideau ; la couleur d'action du site par défaut),
   --ds-m-ajour-taille, --ds-m-ajour-graisse (taille et graisse du titre ajouré).
   ========================================================================== */
:root { --ds-m-entete: 0px; --ds-m-rayon: 0px; }
/* la marge qui aligne un élément pleine largeur sur la colonne du site */
:root :is(.ds-m-deploie, .ds-m-travelling) { --ds-m-marge: max(var(--ds-gouttiere), calc((100vw - var(--ds-colonne-max)) / 2 + var(--ds-gouttiere-bureau))); }

/* ── S0. Plein écran — ds-m-ecran : l'élément occupe tout le premier écran ──
   Sur l'ouverture (texte sur image, chevauchement, duo, titre seul…). Posé sur un visuel
   ds-m-plein en tête de section, la section perd son espace du haut : l'image touche l'en-tête. */
:root .ds-m-ecran { min-height: calc(100svh - var(--ds-m-entete)); align-content: center; }
:root .ds-m-ecran.ds-m-superpose > .ds-m-superpose__fond { min-height: min(62svh, 34rem); }
@container (min-width: 40rem) { :root .ds-m-ecran.ds-m-superpose > .ds-m-superpose__fond { min-height: calc(100svh - var(--ds-m-entete)); } }
:root .ds-m-ecran.ds-m-chevauche > .ds-m-chevauche__visuel { min-height: 50svh; }
:root .ds-section:has(> .ds-m-ecran.ds-m-plein:first-child, > .ds-m-ecran.ds-m-plein:first-of-type, > style:first-child + .ds-m-ecran.ds-m-plein) { padding-top: 0; }

/* ── S1. L'image qui se déploie — ds-m-deploie ─────────────────────────
   <div class="ds-m-deploie"><div data-ic2-part="AIImagePart" … data-ic2-ImageWidthShare="full"></div></div>
   Pleine largeur. Elle entre à la taille de la colonne puis s'ouvre jusqu'aux bords de l'écran. */
:root .ds-m-deploie { width: 100vw; max-width: none; margin-inline: calc(50% - 50vw); height: clamp(22rem, 88svh, 60rem); overflow: hidden; display: flex; flex-direction: column; }
:root .ds-m-deploie > [data-ic2-part] { flex: 1 1 auto; min-height: 0; }
:root .ds-m-deploie :is(.ic2-img, .ic2-img img, img) { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 767px) { :root .ds-m-deploie { height: 62svh; } }
@keyframes ds-m-deploie { from { clip-path: inset(calc(7% * var(--ds-m-ampleur)) calc(var(--ds-m-marge) + 6vw * var(--ds-m-ampleur)) round var(--ds-m-rayon)); } to { clip-path: inset(0 0 round 0); } }
@keyframes ds-m-desserre { from { transform: scale(calc(1 + .2 * var(--ds-m-ampleur))); } to { transform: none; } }

/* ── S2. L'ouverture qui recule — ds-m-recule ──────────────────────────
   Sur le premier élément de la page (souvent avec ds-m-ecran) : quand on descend, il recule
   (se réduit, s'arrondit, s'assombrit) et son texte s'en va plus vite que l'image. */
@keyframes ds-m-recule { from { transform: none; clip-path: inset(0 round 0); filter: brightness(1); } to { transform: scale(calc(1 - .14 * var(--ds-m-ampleur))); clip-path: inset(0 round calc(var(--ds-m-rayon) + 3rem)); filter: brightness(.35) blur(calc(2px * var(--ds-m-ampleur))); } }
@keyframes ds-m-recule-texte { to { transform: translateY(calc(var(--ds-m-distance) * -3 * var(--ds-m-ampleur))); opacity: 0; } }

/* ── S3. Les sections qui s'empilent — ds-m-empile ─────────────────────
   <div class="ds-m-empile"><section class="ds-section ds-a-section ds-a-surface--…">…</section> ×2 à 4</div>
   Une enveloppe autour de 2 à 4 <section> courtes (chacune tient dans un écran), chacune avec une
   surface du site : au bureau, chacune s'arrête en haut de l'écran et la suivante glisse par-dessus ;
   à la fin de l'enveloppe, la pile entière s'en va et la page reprend. */
@media (min-width: 1000px) and (prefers-reduced-motion: no-preference) {
  :root body:not(.IC2Editor) .ds-m-empile > .ds-section { position: sticky; top: var(--ds-m-entete); min-height: calc(100svh - var(--ds-m-entete)); display: flex; flex-direction: column; justify-content: center; }
  :root body:not(.IC2Editor) .ds-m-empile > .ds-section + .ds-section { box-shadow: 0 -1.5rem 3rem -2rem rgb(0 0 0 / .35); }
}
/* une carte de la pile est toujours opaque : aucun fondu sur la section ni sur sa colonne (sinon on lit
   la carte du dessous à travers) */
:root .ds-m-empile > .ds-section, :root .ds-m-empile > .ds-section > .ds-section__colonne { animation: none !important; opacity: 1; }

/* ── S4. Le travelling — ds-m-travelling ───────────────────────────────
   <div class="ds-m-travelling"><div class="ds-m-travelling__piste">…3 à 8 enfants…</div></div>
   Au bureau, la scène s'arrête à l'écran et ses enfants défilent de droite à gauche pendant qu'on
   descend. Ailleurs : une glissière qu'on fait défiler du doigt. Largeur des enfants : --ds-m-travelling-vue. */
:root .ds-m-travelling { width: 100vw; margin-inline: calc(50% - 50vw); }
:root .ds-m-travelling__piste { display: flex; gap: var(--ds-m-travelling-ecart, clamp(1rem, .5rem + 2vw, 3rem)); overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; padding-inline: var(--ds-m-marge); padding-block: 4px 16px; scroll-padding-inline: var(--ds-m-marge); scrollbar-width: thin; }
:root .ds-m-travelling__piste > * { flex: 0 0 var(--ds-m-travelling-vue, min(80vw, 30rem)); scroll-snap-align: start; min-width: 0; margin: 0; container-type: inline-size; }
:root .ds-m-travelling { --ds-m-n: 3; }
:root .ds-m-travelling:has(.ds-m-travelling__piste > :nth-child(4)) { --ds-m-n: 4; }
:root .ds-m-travelling:has(.ds-m-travelling__piste > :nth-child(5)) { --ds-m-n: 5; }
:root .ds-m-travelling:has(.ds-m-travelling__piste > :nth-child(6)) { --ds-m-n: 6; }
:root .ds-m-travelling:has(.ds-m-travelling__piste > :nth-child(7)) { --ds-m-n: 7; }
:root .ds-m-travelling:has(.ds-m-travelling__piste > :nth-child(8)) { --ds-m-n: 8; }
@keyframes ds-m-travelling { to { transform: translateX(calc(-100% + 100vw)); } }

/* ── S5. Le titre qui se révèle mot à mot — ds-m-mots ──────────────────
   <h2 class="ds-a-titre-2 ds-m-mots"><span>Chaque</span> <span>mot</span> <span>monte</span></h2>
   Chaque mot est un <span> (12 au plus) ; les espaces restent entre les <span>. */
:root .ds-m-mots > span { display: inline-block; }
:root .ds-m-mots > span { transform-origin: 0 100%; }
@keyframes ds-m-mot { from { opacity: 0; transform: translateY(calc(.5em * var(--ds-m-ampleur))) rotate(calc(4deg * var(--ds-m-ampleur))); filter: blur(calc(6px * var(--ds-m-ampleur))); } to { opacity: 1; transform: none; filter: none; } }

/* ── S6. L'image vue à travers un titre — ds-m-ajour ───────────────────
   <div class="ds-m-ajour"><div data-ic2-part="AIImagePart" … data-ic2-ImageWidthShare="full"></div><p class="ds-m-ajour__titre ds-a-titre-1">Deux mots</p></div>
   L'image n'apparaît qu'à travers les lettres du titre (1 à 4 mots courts). ds-m-ajour--sombre sur une
   surface sombre. Le titre reste un vrai texte ; l'image dérive lentement derrière lui. */
/* Technique : dans la scène, le titre (fond blanc, lettres noires) se fond avec l'image en « screen » : le fond
   devient blanc, les lettres laissent voir l'image. La scène entière se fond ensuite avec la surface du site en
   « multiply » : le blanc prend la couleur de la surface. --sombre fait l'inverse (noir, multiply puis screen). */
:root .ds-m-ajour { display: grid; grid-template-columns: minmax(0, 1fr); overflow: hidden; container-type: inline-size; mix-blend-mode: multiply; }
:root .ds-m-ajour--sombre { mix-blend-mode: screen; }
:root .ds-m-ajour > * { grid-area: 1 / 1; min-width: 0; }
:root .ds-m-ajour > [data-ic2-part] :is(.ic2-img, .ic2-img img, img) { display: block; width: 100%; height: 100%; object-fit: cover; }
:root .ds-m-ajour > [data-ic2-part] .ic2-img { height: 100%; }
:root .ds-m-ajour > .ds-m-ajour__titre.ds-m-ajour__titre { margin: 0; padding: .1em .04em; display: flex; align-items: center; justify-content: center; text-align: center; background: #fff; color: #000; mix-blend-mode: screen; font-size: var(--ds-m-ajour-taille, clamp(3.5rem, 21cqi, 24rem)); font-weight: var(--ds-m-ajour-graisse, 800); line-height: .88; letter-spacing: -.03em; min-height: min(70svh, 56cqi); }
:root .ds-m-ajour--sombre > .ds-m-ajour__titre.ds-m-ajour__titre { background: #000; color: #fff; mix-blend-mode: multiply; }
@keyframes ds-m-ajour { from { transform: scale(1.4) translateY(calc(-6% * var(--ds-m-ampleur))); } to { transform: scale(1.4) translateY(calc(6% * var(--ds-m-ampleur))); } }

/* ── S7. Le fond qui change de couleur — ds-m-teinte ───────────────────
   Sur une <section> à surface colorée : en entrant, son fond part de la couleur de la page
   (ou --ds-m-teinte-depart) et prend sa couleur pendant le défilement. */
@keyframes ds-m-teinte { from { background-color: var(--ds-m-teinte-depart, transparent); } }

/* ── S8. Les plans — ds-m-plans ────────────────────────────────────────
   Sur une disposition (chevauche, duo, mosaïque, superpose) : ses enfants directs défilent à des
   vitesses différentes, le premier lentement, les suivants de plus en plus vite. */
@keyframes ds-m-plan-image { from { scale: 1.22; translate: 0 calc(var(--ds-m-plan) * -6%); } to { scale: 1.22; translate: 0 calc(var(--ds-m-plan) * 6%); } }
@keyframes ds-m-plan { from { translate: 0 calc(var(--ds-m-plan) * var(--ds-m-distance) * var(--ds-m-ampleur)); } to { translate: 0 calc(var(--ds-m-plan) * var(--ds-m-distance) * var(--ds-m-ampleur) * -1); } }
:root .ds-m-plans > * { --ds-m-plan: .4; }
:root .ds-m-plans > :nth-child(2) { --ds-m-plan: 1.2; }
:root .ds-m-plans > :nth-child(3) { --ds-m-plan: .8; }
:root .ds-m-plans > :nth-child(4) { --ds-m-plan: 1.6; }
:root .ds-m-plans > :nth-child(n+5) { --ds-m-plan: 1; }

/* ── S9. Le rideau — ds-m-rideau ───────────────────────────────────────
   Sur le conteneur d'une image : une bande de la couleur du site la balaie et la découvre.
   ds-m-rideau--haut : la bande monte au lieu de traverser. */
:root .ds-m-rideau { position: relative; overflow: hidden; }
:root .ds-m-rideau::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: var(--ds-m-rideau-couleur, var(--ds-marque)); transform: translateX(-101%); }
:root .ds-m-rideau--haut::after { transform: translateY(101%); }
@keyframes ds-m-rideau-bande { 0% { transform: translateX(-101%); } 45%, 55% { transform: none; } 100% { transform: translateX(101%); } }
@keyframes ds-m-rideau-bande-haut { 0% { transform: translateY(101%); } 45%, 55% { transform: none; } 100% { transform: translateY(-101%); } }
@keyframes ds-m-rideau-image { 0%, 50% { opacity: 0; transform: scale(1.2); } 51% { opacity: 1; transform: scale(1.2); } 100% { opacity: 1; transform: none; } }

/* Les scènes en mouvement : seulement avec la prise en charge, le mouvement accepté, hors édition */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    :root body .ds-m-deploie { animation: ds-m-deploie var(--ds-m-courbe) both; animation-timeline: view(); animation-range: entry 0% exit 0%; }
    :root body .ds-m-deploie :is(.ic2-img img, img) { animation: ds-m-desserre linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
    :root body .ds-m-recule { animation: ds-m-recule linear both; animation-timeline: view(); animation-range: exit 0% exit 100%; transform-origin: 50% 100%; }
    :root body .ds-m-recule :is(.ds-m-superpose__texte, .ds-m-chevauche__panneau) { animation: ds-m-recule-texte linear both; animation-timeline: view(); animation-range: exit 0% exit 70%; }
    :root body .ds-m-mots > span { animation: ds-m-mot var(--ds-m-courbe) both; animation-timeline: view(); animation-range: entry calc(20% + var(--ds-m-retard)) cover calc(35% + var(--ds-m-retard)); }
    :root body .ds-m-mots > span:nth-child(2) { animation-range: entry calc(26% + var(--ds-m-retard)) cover calc(38% + var(--ds-m-retard)); }
    :root body .ds-m-mots > span:nth-child(3) { animation-range: entry calc(32% + var(--ds-m-retard)) cover calc(41% + var(--ds-m-retard)); }
    :root body .ds-m-mots > span:nth-child(4) { animation-range: entry calc(38% + var(--ds-m-retard)) cover calc(44% + var(--ds-m-retard)); }
    :root body .ds-m-mots > span:nth-child(5) { animation-range: entry calc(44% + var(--ds-m-retard)) cover calc(47% + var(--ds-m-retard)); }
    :root body .ds-m-mots > span:nth-child(6) { animation-range: entry calc(50% + var(--ds-m-retard)) cover calc(50% + var(--ds-m-retard)); }
    :root body .ds-m-mots > span:nth-child(7) { animation-range: entry calc(56% + var(--ds-m-retard)) cover calc(53% + var(--ds-m-retard)); }
    :root body .ds-m-mots > span:nth-child(8) { animation-range: entry calc(62% + var(--ds-m-retard)) cover calc(56% + var(--ds-m-retard)); }
    :root body .ds-m-mots > span:nth-child(n+9) { animation-range: entry calc(68% + var(--ds-m-retard)) cover calc(59% + var(--ds-m-retard)); }
    :root body .ds-m-ajour > [data-ic2-part] :is(.ic2-img img, img) { animation: ds-m-ajour linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
    :root body .ds-section.ds-m-teinte { animation: ds-m-teinte var(--ds-m-courbe) both; animation-timeline: view(); animation-range: entry calc(0% + var(--ds-m-retard)) cover calc(40% + var(--ds-m-retard)); }
    :root body .ds-m-rideau::after { animation: ds-m-rideau-bande var(--ds-m-courbe) both; animation-timeline: view(); animation-range: entry calc(10% + var(--ds-m-retard)) cover calc(50% + var(--ds-m-retard)); }
    :root body .ds-m-rideau--haut::after { animation-name: ds-m-rideau-bande-haut; }
    :root body .ds-m-rideau :is(.ic2-img img, img) { animation: ds-m-rideau-image linear both; animation-timeline: view(); animation-range: entry calc(10% + var(--ds-m-retard)) cover calc(60% + var(--ds-m-retard)); }
  }
  @media (min-width: 768px) and (prefers-reduced-motion: no-preference) {
    :root body .ds-m-plans > * { animation: ds-m-plan linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
    :root body .ds-m-mosaique.ds-m-plans > * { animation: none; }
    :root body .ds-m-mosaique.ds-m-plans > * img { animation: ds-m-plan-image linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
  }
  /* travelling épinglé : la scène est haute (une hauteur d'écran + la longueur de la piste), son cadre reste
     à l'écran et la piste glisse vers la gauche pendant toute la traversée */
  @media (min-width: 1000px) and (prefers-reduced-motion: no-preference) {
    :root body:not(.IC2Editor) .ds-m-travelling { height: calc(100svh + var(--ds-m-n) * min(36vw, 32rem)); overflow-x: clip; view-timeline: --ds-m-travelling block; }
    :root body:not(.IC2Editor) .ds-m-travelling__piste { position: sticky; top: var(--ds-m-entete); height: calc(100svh - var(--ds-m-entete)); width: max-content; overflow: visible; align-items: center; animation: ds-m-travelling linear both; animation-timeline: --ds-m-travelling; animation-range: contain 0% contain 100%; }
    :root body:not(.IC2Editor) .ds-m-travelling__piste > * { flex-basis: var(--ds-m-travelling-vue, min(36vw, 32rem)); }
    /* une carte sans image devient un grand panneau qui tient l'écran : l'icône en haut, le texte en bas */
    :root body:not(.IC2Editor) .ds-m-travelling__piste > .ds-a-carte:not(:has(img, [data-ic2-part="AIImagePart"])) { align-self: stretch; margin-block: clamp(1.5rem, 7svh, 5rem); display: flex; flex-direction: column; justify-content: flex-end; gap: 1rem; padding: clamp(1.75rem, 1rem + 2.2vw, 3.25rem); background-color: var(--ds-m-panneau-fond, color-mix(in srgb, var(--ds-c-texte) 7%, transparent)); border-radius: var(--ds-m-panneau-rayon, 0); }
    :root body:not(.IC2Editor) .ds-m-travelling__piste > .ds-a-carte:not(:has(img, [data-ic2-part="AIImagePart"])) > .ds-a-icone { --ds-a-icone-boite: clamp(4.5rem, 3rem + 3.5vw, 7rem); --ds-a-icone-taille: clamp(2.2rem, 1.4rem + 1.8vw, 3.6rem); margin-block-end: auto; }
    :root body:not(.IC2Editor) .ds-m-travelling__piste > .ds-a-carte:not(:has(img, [data-ic2-part="AIImagePart"])) > .ds-a-titre-3 { font-size: max(1em, clamp(1.35rem, 1rem + 1.1vw, 2rem)); }
  }
}

/* ==========================================================================
   D. DISPOSITIONS AUDACIEUSES (ds-m-…) — la mise en page, sans aucune apparence
   Chaque disposition est un « conteneur » : elle se range selon SA PROPRE largeur,
   pas selon celle de l'écran. Posée en pleine largeur, dans une demi-colonne ou
   dans une boîte étroite, elle s'empile d'elle-même quand la place manque.
   Ses enfants directs sont aussi des conteneurs : un texte réglé en unités cqi
   (les tailles audacieuses du site) se dimensionne sur SA colonne, jamais sur l'écran.
   Technique : la disposition est une grille fixe (12 ou 6 colonnes) ; ce sont ses
   enfants qui choisissent leur place par @container, en interrogeant la disposition.
   ========================================================================== */
:root :is(.ds-m-duo, .ds-m-asym, .ds-m-chevauche, .ds-m-superpose, .ds-m-trame, .ds-m-mosaique, .ds-m-etroit, .ds-m-boite) { container-type: inline-size; min-width: 0; }
:root :is(.ds-m-duo, .ds-m-asym, .ds-m-chevauche, .ds-m-superpose, .ds-m-trame, .ds-m-mosaique) > * { min-width: 0; }
:root :is(.ds-m-duo, .ds-m-asym, .ds-m-chevauche, .ds-m-superpose, .ds-m-trame, .ds-m-mosaique) > :not(h1, h2, h3, h4, h5, h6, p, blockquote, ul, ol, span, a, em, strong) { container-type: inline-size; }
/* --ds-m-part : la part de la disposition qu'occupe un enfant direct. Un titre posé directement dans une
   disposition mesure ses cqi sur la disposition entière : les rôles du site multiplient leurs cqi par
   --ds-m-part pour retrouver la taille de leur colonne. Plus bas dans l'arbre, elle revient à 1. */
:root { --ds-m-part: 1; }
:root :is(.ds-m-duo, .ds-m-asym, .ds-m-chevauche, .ds-m-superpose, .ds-m-trame, .ds-m-mosaique) > * * { --ds-m-part: 1; }
/* un conteneur ne prend pas sa largeur de son contenu : on la lui donne, sinon il se réduirait à rien */
:root :is(.ds-m-duo, .ds-m-asym, .ds-m-chevauche, .ds-m-superpose, .ds-m-trame, .ds-m-mosaique, .ds-m-boite):not(.ds-m-plein) { width: 100%; }
:root .ds-m-chevauche > .ds-m-chevauche__panneau, :root .ds-m-superpose > .ds-m-superpose__texte { width: auto; }
:root section:has([class*="ds-a-"], [class*="ds-m-"]) > .ds-section__colonne { container-type: inline-size; }
/* un chiffre ne se coupe jamais entre son nombre et son unité ; sa légende passe à la ligne normalement */
:root .ds-a-chiffre { white-space: nowrap; }
:root .ds-a-chiffre > * { white-space: normal; }
/* aucun mot coupé au milieu : césure propre (selon la langue de la page) si un mot est plus large que sa colonne */
:root :is([class*="ds-a-"], [class*="ds-m-"]) :is(h1, h2, h3, h4, p, li, dt, dd, figcaption, blockquote) { overflow-wrap: break-word; hyphens: auto; }
:root :is([class*="ds-a-"], [class*="ds-m-"]) :is(h1, h2, h3) { text-wrap: balance; }
:root :is(.ds-m-duo, .ds-m-asym, .ds-m-chevauche, .ds-m-superpose, .ds-m-trame, .ds-m-mosaique) :is(.ic2-img, .ic2-img img, .ic2-video) { display: block; width: 100%; }
:root :is(.ds-m-chevauche__visuel, .ds-m-superpose__fond, .ds-m-mosaique > *) :is(.ic2-img, .ic2-img img, img) { height: 100%; object-fit: cover; }
:root .ds-m-mosaique > * > [data-ic2-part] { height: 100%; }
/* l'image remplit toujours la hauteur de son cadre (sinon une bande vide apparaît sous l'image) */
:root :is(.ds-m-superpose__fond, .ds-m-chevauche__visuel) { display: flex; flex-direction: column; }
:root :is(.ds-m-superpose__fond, .ds-m-chevauche__visuel) > [data-ic2-part] { flex: 1 1 auto; min-height: 0; }
:root :is(.ds-m-superpose__fond, .ds-m-chevauche__visuel, .ds-m-mosaique > *) .ic2-img { height: 100%; }

:root .ds-m-mosaique > * { display: flex; flex-direction: column; }
:root .ds-m-mosaique > * > [data-ic2-part] { flex: 1 1 auto; min-height: 0; }
/* l'image peut être enveloppée (figure > ds-a-image > emplacement > ic2-img > lien de la visionneuse) :
   toute la chaîne remplit la case, la légende garde sa hauteur ; l'arrondi tient donc aux quatre coins */
:root .ds-m-mosaique > * > :not(figcaption, .ds-a-legende, [data-ic2-part]) { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
:root .ds-m-mosaique > * > :not(figcaption, .ds-a-legende) > [data-ic2-part] { flex: 1 1 auto; min-height: 0; height: auto; }
:root .ds-m-mosaique > * .ic2-img > a { display: block; height: 100%; }
:root .ds-m-mosaique > * > :is(figcaption, .ds-a-legende) { flex: none; }

/* Une section audacieuse écrite sans sa colonne (ds-section__colonne) : ses enfants prennent
   la largeur et les marges de la colonne du site, pour que rien ne colle au bord de l'écran. */
:root .ds-section:is(.ds-a-section, :has(> [class*="ds-m-"])):not(:has(> .ds-section__colonne)) > :not(.ds-m-plein, style) { box-sizing: border-box; width: 100%; max-width: var(--ds-colonne-max); margin-inline: auto; padding-inline: var(--ds-gouttiere); }
@media (min-width: 768px) { :root .ds-section:is(.ds-a-section, :has(> [class*="ds-m-"])):not(:has(> .ds-section__colonne)) > :not(.ds-m-plein, style) { padding-inline: var(--ds-gouttiere-tablette); } }
@media (min-width: 1000px) { :root .ds-section:is(.ds-a-section, :has(> [class*="ds-m-"])):not(:has(> .ds-section__colonne)) > :not(.ds-m-plein, style) { padding-inline: var(--ds-gouttiere-bureau); } }
:root .ds-section:is(.ds-a-section, :has(> [class*="ds-m-"])):not(:has(> .ds-section__colonne)) > :not(.ds-m-plein, style) + * { margin-top: var(--ds-colonne-espace); }

/* ── D1. Deux blocs côte à côte — ds-m-duo ─────────────────────────────
   Côte à côte dès que la disposition dépasse 44rem, sinon empilés.
   --large-petit (2/3 – 1/3) · --petit-large (1/3 – 2/3) · --centre · --bas · --inverse (ordre visuel inversé). */
:root .ds-m-duo { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--ds-m-ecart, clamp(1.5rem, 1rem + 2vw, 4rem)); align-items: start; }
:root .ds-m-duo--centre { align-items: center; }
:root .ds-m-duo--bas { align-items: end; }
:root .ds-m-duo > * { grid-column: 1 / -1; }

/* ── D2. Marge et corps — ds-m-asym ────────────────────────────────────
   Le premier enfant est une marge étroite (repère, intitulé, chiffre), le reste est le corps.
   Au-delà de 48rem : marge sur 3/12, corps sur 9/12 ; --large : marge sur 5/12. En dessous, empilés. */
:root .ds-m-asym { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--ds-m-ecart, clamp(1rem, .5rem + 2vw, 3rem)); align-items: start; }
:root .ds-m-asym > * { grid-column: 1 / -1; }

/* ── D3. Visuel et panneau qui se chevauchent — ds-m-chevauche ─────────
   <div class="ds-m-chevauche"><div class="ds-m-chevauche__visuel">…image…</div><div class="ds-m-chevauche__panneau">…texte…</div></div>
   Au-delà de 50rem : le visuel occupe 8/12, le panneau 6/12 et mord dessus par le bas ; en dessous, empilés.
   --inverse : visuel à droite. Le fond du panneau est une surface du site. */
:root .ds-m-chevauche { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--ds-m-ecart, 1.5rem); }
:root .ds-m-chevauche > * { grid-column: 1 / -1; }

/* ── D4. Texte posé sur une image — ds-m-superpose ─────────────────────
   <div class="ds-m-superpose"><div class="ds-m-superpose__fond">…image…</div><div class="ds-m-superpose__texte">…</div></div>
   Le texte est posé sur l'image dès 40rem ; en dessous, il passe sous l'image.
   La lisibilité (voile, surface) vient du style du site. --haut / --milieu : position du texte. */
:root .ds-m-superpose { display: grid; grid-template-columns: minmax(0, 1fr); }
:root .ds-m-superpose > .ds-m-superpose__fond { grid-area: 1 / 1; min-height: 16rem; overflow: hidden; }
:root .ds-m-superpose > .ds-m-superpose__texte { grid-row: 2; grid-column: 1; position: relative; }

/* ── D5. Trame régulière — ds-m-trame ──────────────────────────────────
   Autant de colonnes que la place permet, chacune d'au moins --ds-m-trame-min (16rem par défaut).
   --decale : un élément sur deux descend (pas dans une trame étroite). */
:root .ds-m-trame { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--ds-m-trame-min, 16rem)), 1fr)); gap: var(--ds-m-ecart, clamp(1rem, .5rem + 1.5vw, 2.5rem)); }

/* ── D6. Mosaïque d'images — ds-m-mosaique ─────────────────────────────
   3 à 7 enfants (des figures avec un emplacement d'image). Au-delà de 48rem : le premier est grand,
   les suivants alternent ; entre 28 et 48rem : deux colonnes ; en dessous : une colonne. */
:root .ds-m-mosaique { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: clamp(7rem, 13cqi, 15rem); gap: var(--ds-m-ecart, clamp(.5rem, .25rem + 1vw, 1.25rem)); grid-auto-flow: dense; }
:root .ds-m-mosaique > * { grid-column: 1 / -1; grid-row: span 2; overflow: hidden; margin: 0; }

/* ── D7. Colonne de lecture — ds-m-etroit ──────────────────────────────
   Une colonne étroite (au plus 42rem, ou --ds-m-etroit) : à gauche par défaut, --centre, --droite. */
:root .ds-m-etroit { width: min(100%, var(--ds-m-etroit, 42rem)); }
:root .ds-m-etroit--centre { margin-inline: auto; }
:root .ds-m-etroit--droite { margin-inline-start: auto; }

/* Rangement selon la largeur de CHAQUE disposition : ces règles visent les enfants,
   la requête porte donc sur la disposition qui les contient. */
@container (min-width: 28rem) {
  :root .ds-m-mosaique > * { grid-column: span 3; }
  :root .ds-m-mosaique > :first-child { grid-column: 1 / -1; }
}
@container (max-width: 34rem) { :root .ds-m-trame--decale > :nth-child(even) { translate: none; } }
/* part approximative d'un élément de trame selon le nombre de colonnes que la trame peut ouvrir */
@container (min-width: 32rem) { :root .ds-m-trame > * { --ds-m-part: .5; } }
@container (min-width: 50rem) { :root .ds-m-trame > * { --ds-m-part: .33; } }
@container (min-width: 66rem) { :root .ds-m-trame > * { --ds-m-part: .25; } }
@container (min-width: 34.01rem) { :root .ds-m-trame--decale > :nth-child(even) { translate: 0 var(--ds-m-decalage, 3rem); } }
@container (min-width: 40rem) {
  :root .ds-m-superpose > .ds-m-superpose__fond { min-height: min(80svh, 44rem); }
  :root .ds-m-superpose > .ds-m-superpose__texte { grid-area: 1 / 1; align-self: end; justify-self: start; width: min(100% - 2 * var(--ds-m-marge-superpose, clamp(1.5rem, 1rem + 3cqi, 4rem)), 40rem); margin: var(--ds-m-marge-superpose, clamp(1.5rem, 1rem + 3cqi, 4rem)); }
  :root .ds-m-superpose--haut > .ds-m-superpose__texte { align-self: start; }
  :root .ds-m-superpose--milieu > .ds-m-superpose__texte { align-self: center; }
}
@container (min-width: 44rem) {
  :root .ds-m-duo > * { grid-row: 1; --ds-m-part: .5; }
  :root .ds-m-duo--large-petit > :first-child, :root .ds-m-duo--petit-large > :nth-child(2) { --ds-m-part: .66; }
  :root .ds-m-duo--large-petit > :nth-child(2), :root .ds-m-duo--petit-large > :first-child { --ds-m-part: .33; }
  :root .ds-m-duo > :first-child { grid-column: 1 / span 6; }
  :root .ds-m-duo > :nth-child(2) { grid-column: 7 / -1; }
  :root .ds-m-duo--large-petit > :first-child { grid-column: 1 / span 8; }
  :root .ds-m-duo--large-petit > :nth-child(2) { grid-column: 9 / -1; }
  :root .ds-m-duo--petit-large > :first-child { grid-column: 1 / span 4; }
  :root .ds-m-duo--petit-large > :nth-child(2) { grid-column: 5 / -1; }
  :root .ds-m-duo--inverse > :first-child { grid-column: 7 / -1; }
  :root .ds-m-duo--inverse > :nth-child(2) { grid-column: 1 / span 6; }
  :root .ds-m-duo--inverse.ds-m-duo--large-petit > :first-child { grid-column: 5 / -1; }
  :root .ds-m-duo--inverse.ds-m-duo--large-petit > :nth-child(2) { grid-column: 1 / span 4; }
  :root .ds-m-duo--inverse.ds-m-duo--petit-large > :first-child { grid-column: 9 / -1; }
  :root .ds-m-duo--inverse.ds-m-duo--petit-large > :nth-child(2) { grid-column: 1 / span 8; }
}
@container (min-width: 48rem) {
  :root .ds-m-asym > :first-child { grid-column: 1 / span 3; --ds-m-part: .25; }
  :root .ds-m-asym > :not(:first-child) { grid-column: 4 / -1; --ds-m-part: .75; }
  :root .ds-m-asym--large > :first-child { grid-column: 1 / span 5; --ds-m-part: .42; }
  :root .ds-m-asym--large > :not(:first-child) { grid-column: 6 / -1; --ds-m-part: .58; }
  :root .ds-m-mosaique > * { grid-column: span 2; grid-row: span 2; }
  :root .ds-m-mosaique > :first-child { grid-column: span 4; }
  :root .ds-m-mosaique > :nth-child(2), :root .ds-m-mosaique > :nth-child(3) { grid-row: span 1; }
  :root .ds-m-mosaique > :nth-child(4), :root .ds-m-mosaique > :nth-child(5) { grid-column: span 3; }
  :root .ds-m-mosaique > :nth-child(7) { grid-column: span 4; }
}
@container (min-width: 50rem) {
  :root .ds-m-chevauche > .ds-m-chevauche__visuel { grid-column: 1 / span 8; grid-row: 1; margin-bottom: 2.5rem; --ds-m-part: .66; }
  :root .ds-m-chevauche > .ds-m-chevauche__panneau { grid-column: 7 / -1; grid-row: 1; align-self: end; position: relative; z-index: 1; --ds-m-part: .5; }
  :root .ds-m-chevauche--inverse > .ds-m-chevauche__visuel { grid-column: 5 / -1; }
  :root .ds-m-chevauche--inverse > .ds-m-chevauche__panneau { grid-column: 1 / span 6; }
}

/* ==========================================================================
   A. MOUVEMENT AUTOMATIQUE — toute page audacieuse vit au défilement, sans qu'on pose une classe
   Dans une section audacieuse (ds-a-section), chaque élément entre en scène quand il arrive à
   l'écran, et chacun à sa façon : les titres montent en se précisant, les textes suivent, les images
   se découvrent et dérivent dans leur cadre, les chiffres grossissent, les citations glissent, les
   cartes arrivent de la gauche, de la droite et du bas, les deux moitiés d'un duo se rejoignent.
   - Les propriétés animées sont translate, scale, rotate, opacity, filter et clip-path : jamais
     transform, pour ne rien écraser du dessin du site.
   - Remplissage « backwards » : une fois entré, l'élément retrouve ses styles (survol compris).
   - Un élément qui porte déjà un mouvement (classe ds-m-…, ou « animate » d'IC2) ou qui est dans
     une scène est laissé à elle.
   - Il joue aussi en mode édition : il se termine quand l'élément atteint le premier quart de
     l'écran, tout ce qu'on lit et qu'on clique est donc entièrement visible.
   ========================================================================== */
@keyframes ds-auto-titre { from { opacity: 0; translate: 0 calc(.35em * var(--ds-m-ampleur)); filter: blur(calc(5px * var(--ds-m-ampleur))); } }
@keyframes ds-auto-texte { from { opacity: 0; translate: 0 calc(var(--ds-m-distance) * var(--ds-m-ampleur)); } }
@keyframes ds-auto-image { from { clip-path: inset(calc(9% * var(--ds-m-ampleur)) calc(6% * var(--ds-m-ampleur)) round var(--ds-m-rayon, 0px)); opacity: .2; } to { clip-path: inset(0 round var(--ds-m-rayon, 0px)); opacity: 1; } }
@keyframes ds-auto-derive { from { scale: 1.18; translate: 0 -5%; } to { scale: 1.18; translate: 0 5%; } }
@keyframes ds-auto-chiffre { from { opacity: 0; scale: calc(1 - .25 * var(--ds-m-ampleur)); filter: blur(8px); } }
@keyframes ds-auto-gauche { from { opacity: 0; translate: calc(var(--ds-m-distance) * -2.5 * var(--ds-m-ampleur)) 0; rotate: calc(-1.5deg * var(--ds-m-ampleur)); } }
@keyframes ds-auto-droite { from { opacity: 0; translate: calc(var(--ds-m-distance) * 2.5 * var(--ds-m-ampleur)) 0; rotate: calc(1.5deg * var(--ds-m-ampleur)); } }
@keyframes ds-auto-bas { from { opacity: 0; translate: 0 calc(var(--ds-m-distance) * 2 * var(--ds-m-ampleur)); scale: calc(1 - .06 * var(--ds-m-ampleur)); } }

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    /* ce qui est déjà animé autrement n'est pas touché */
    :root .ds-a-section :is(.ds-a-titre-1, .ds-a-titre-2, .ds-a-titre-3, .ds-a-chapeau, .ds-a-texte, .ds-a-repere, .ds-a-liste, .ds-a-actions, .ds-a-chiffre, .ds-a-citation, .ds-a-carte, .ds-a-image, .ds-a-image--accent, .ds-m-duo > *, [data-ic2-part="AIImagePart"] img):not(.animate, .animate *, [class*="ds-m-"], .ds-m-entree *, .ds-m-monte *, .ds-m-cascade *, .ds-m-fondu *, .ds-m-gauche *, .ds-m-droite *, .ds-m-ouvre *, .ds-m-zoom *, .ds-m-travelling *, .ds-m-glissiere *, .ds-m-defile *, .ds-m-ajour *, .ds-m-recule *, .ds-m-deploie *, .ds-m-rideau *, .ds-m-plans > *, .ds-m-pivote > *, .ds-m-fixe *) {
      animation-timeline: view(); animation-fill-mode: backwards; animation-timing-function: var(--ds-m-courbe);
    }
    :root .ds-a-section :is(.ds-a-titre-1, .ds-a-titre-2, .ds-a-titre-3):not(.animate, .animate *, [class*="ds-m-"], .ds-m-entree *, .ds-m-monte *, .ds-m-cascade *, .ds-m-fondu *, .ds-m-gauche *, .ds-m-droite *, .ds-m-travelling *, .ds-m-glissiere *, .ds-m-defile *, .ds-m-ajour *, .ds-m-recule *, .ds-m-plans > *, .ds-m-pivote > *, .ds-m-fixe *, .ds-a-carte *) { animation-name: ds-auto-titre; animation-range: entry calc(10% + var(--ds-m-retard)) cover calc(25% + var(--ds-m-retard)); }
    :root .ds-a-section :is(.ds-a-chapeau, .ds-a-texte, .ds-a-repere, .ds-a-liste, .ds-a-actions):not(.animate, .animate *, [class*="ds-m-"], .ds-m-entree *, .ds-m-monte *, .ds-m-cascade *, .ds-m-fondu *, .ds-m-gauche *, .ds-m-droite *, .ds-m-travelling *, .ds-m-glissiere *, .ds-m-defile *, .ds-m-recule *, .ds-m-plans > *, .ds-m-pivote > *, .ds-m-fixe *, .ds-a-carte *) { animation-name: ds-auto-texte; animation-range: entry calc(15% + var(--ds-m-retard)) cover calc(25% + var(--ds-m-retard)); }
    :root .ds-a-section :is(.ds-a-chiffre):not(.animate, .animate *, [class*="ds-m-"], .ds-m-entree *, .ds-m-monte *, .ds-m-cascade *, .ds-m-travelling *, .ds-m-glissiere *, .ds-m-recule *, .ds-m-plans > *, .ds-m-pivote > *, .ds-a-carte *) { animation-name: ds-auto-chiffre; animation-range: entry calc(10% + var(--ds-m-retard)) cover calc(25% + var(--ds-m-retard)); transform-origin: 0 100%; }
    :root .ds-a-section :is(.ds-a-citation):not(.animate, .animate *, [class*="ds-m-"], .ds-m-entree *, .ds-m-monte *, .ds-m-cascade *, .ds-m-travelling *, .ds-m-glissiere *, .ds-m-recule *, .ds-m-plans > *, .ds-m-pivote > *) { animation-name: ds-auto-gauche; animation-range: entry calc(10% + var(--ds-m-retard)) cover calc(25% + var(--ds-m-retard)); }
    /* les images se découvrent, puis dérivent dans leur cadre pendant toute la traversée */
    :root .ds-a-section :is(.ds-a-image, .ds-a-image--accent):not(.animate, .animate *, [class*="ds-m-"], .ds-m-entree *, .ds-m-monte *, .ds-m-cascade *, .ds-m-gauche *, .ds-m-droite *, .ds-m-travelling *, .ds-m-glissiere *, .ds-m-recule *, .ds-m-rideau *, .ds-m-deploie *, .ds-m-plans > *, .ds-m-pivote > *, .ds-m-fixe *, .ds-a-carte *) { animation-name: ds-auto-image; animation-range: entry calc(0% + var(--ds-m-retard)) cover calc(30% + var(--ds-m-retard)); }
    :root .ds-a-section [data-ic2-part="AIImagePart"] .ic2-img { overflow: hidden; }
    :root .ds-a-section [data-ic2-part="AIImagePart"] .ic2-img img:not(.animate *, .ds-m-plans *, .ds-m-cercle *, .ds-m-bandes *, .ds-m-couleur *, .ds-m-ouvre *, .ds-m-zoom *, .ds-m-deploie *, .ds-m-ajour *, .ds-m-rideau *, .ds-m-travelling *, .ds-m-glissiere *, .ds-m-defile *) { animation: ds-auto-derive linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
    /* cartes : de la gauche, de la droite, du bas, à tour de rôle ; les deux moitiés d'un duo se rejoignent */
    :root .ds-a-section .ds-a-carte:not(.animate, [class*="ds-m-"], .ds-m-cascade *, .ds-m-travelling *, .ds-m-glissiere *, .ds-m-plans > *, .ds-m-pivote > *):nth-child(3n+1) { animation-name: ds-auto-gauche; animation-range: entry calc(5% + var(--ds-m-retard)) cover calc(30% + var(--ds-m-retard)); }
    :root .ds-a-section .ds-a-carte:not(.animate, [class*="ds-m-"], .ds-m-cascade *, .ds-m-travelling *, .ds-m-glissiere *, .ds-m-plans > *, .ds-m-pivote > *):nth-child(3n+2) { animation-name: ds-auto-bas; animation-range: entry calc(15% + var(--ds-m-retard)) cover calc(35% + var(--ds-m-retard)); }
    :root .ds-a-section .ds-a-carte:not(.animate, [class*="ds-m-"], .ds-m-cascade *, .ds-m-travelling *, .ds-m-glissiere *, .ds-m-plans > *, .ds-m-pivote > *):nth-child(3n) { animation-name: ds-auto-droite; animation-range: entry calc(25% + var(--ds-m-retard)) cover calc(40% + var(--ds-m-retard)); }
    :root .ds-a-section .ds-m-duo:not(.ds-m-plans, .ds-m-entree, .ds-m-recule *) > :first-child:not(.animate, [class*="ds-m-"], .ds-a-titre-1, .ds-a-titre-2, .ds-a-image, .ds-a-image--accent) { animation-name: ds-auto-gauche; animation-range: entry calc(5% + var(--ds-m-retard)) cover calc(28% + var(--ds-m-retard)); }
    :root .ds-a-section .ds-m-duo:not(.ds-m-plans, .ds-m-entree, .ds-m-recule *) > :nth-child(2):not(.animate, [class*="ds-m-"], .ds-a-titre-1, .ds-a-titre-2, .ds-a-image, .ds-a-image--accent) { animation-name: ds-auto-droite; animation-range: entry calc(15% + var(--ds-m-retard)) cover calc(32% + var(--ds-m-retard)); }
  }
  /* sur un téléphone, rien ne vient des côtés (l'écran est trop étroit) : tout monte */
  @media (max-width: 767px) and (prefers-reduced-motion: no-preference) {
    :root .ds-a-section :is(.ds-a-carte, .ds-a-citation, .ds-m-duo > *):not(.animate, [class*="ds-m-"]) { animation-name: ds-auto-bas; }
  }
}

/* ── Icône audacieuse — ds-a-icone : la mécanique commune (taille, alignement, mouvement) ──
   <span class="ds-a-icone" data-icon="&#x…;" aria-hidden="true"></span>  (parc du site)
   <span class="ds-a-icone" aria-hidden="true"><i class="fa-solid fa-…"></i></span>  (Font Awesome)
   Tailles : (par défaut) devant un titre-3 ou une donnée · --grande au-dessus d'un titre ou d'un chiffre ·
   --geante un visuel à elle seule (à la place d'une image absente).
   La FORME (tuile, cercle, trait, couleur) est dessinée par chaque site dans son audacieux.css. */
:root .ds-a-icone { display: inline-grid; place-items: center; flex: none; inline-size: var(--ds-a-icone-boite, 2.75rem); block-size: var(--ds-a-icone-boite, 2.75rem); font-size: var(--ds-a-icone-taille, 1.35rem); line-height: 1; color: var(--ds-c-accent); vertical-align: middle; }
:root .ds-a-icone::before, :root .ds-a-icone > i::before { margin: 0; }
:root .ds-a-icone > i { font-size: 1em; line-height: 1; }
:root .ds-a-icone--grande { --ds-a-icone-boite: clamp(3.5rem, 2.5rem + 3cqi, 5.5rem); --ds-a-icone-taille: clamp(1.75rem, 1.25rem + 1.6cqi, 2.75rem); }
:root .ds-a-icone--geante { --ds-a-icone-boite: clamp(8rem, 4rem + 22cqi, 22rem); --ds-a-icone-taille: clamp(4.5rem, 2rem + 13cqi, 13rem); }
/* une icône posée devant une donnée ou un titre-3 : sur la même ligne, alignée */
:root :is(p, li, h3, .ds-a-titre-3):has(> .ds-a-icone:first-child) { display: flex; align-items: center; gap: .75em; }
@keyframes ds-auto-icone { from { opacity: 0; scale: .3; rotate: -25deg; } 70% { scale: 1.12; rotate: 4deg; } }
@keyframes ds-auto-icone-geante { from { opacity: 0; scale: .5; rotate: -12deg; filter: blur(10px); } }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    :root .ds-a-section .ds-a-icone:not(.animate, .animate *, .ds-m-defile *, .ds-m-travelling *, .ds-m-glissiere *) { animation: ds-auto-icone linear backwards; animation-timeline: view(); animation-range: entry calc(20% + var(--ds-m-retard)) cover calc(30% + var(--ds-m-retard)); }
    :root .ds-a-section .ds-a-icone--geante:not(.animate, .animate *) { animation: ds-auto-icone-geante var(--ds-m-courbe) backwards; animation-timeline: view(); animation-range: entry calc(0% + var(--ds-m-retard)) cover calc(40% + var(--ds-m-retard)); }
  }
}

/* ==========================================================================
   S10–S19. SCÈNES — deuxième série : raccords de sections, typographie cinétique, images vivantes,
   profondeur, entrée de page, survol, transition entre pages. Mêmes règles que la première série :
   état immobile propre, mobile simplifié, réglages du site (--ds-m-ampleur, --ds-m-courbe…).
   ========================================================================== */
@property --ds-m-bande { syntax: "<percentage>"; inherits: false; initial-value: 100%; }

/* ── S10. Le volet — ds-m-volet : sur une <section> à surface, son fond monte comme un volet ── */
@keyframes ds-m-volet { from { clip-path: inset(calc(14% * var(--ds-m-ampleur)) 0 0 0 round var(--ds-m-rayon) var(--ds-m-rayon) 0 0); } to { clip-path: inset(0 round 0); } }

/* ── S11. Le bord du site — ds-m-bord : la section mord sur la précédente par un bord à la forme du site
   (oblique par défaut ; chaque site donne la sienne : --ds-m-bord-forme, --ds-m-bord-hauteur) ── */
:root .ds-section.ds-m-bord { position: relative; margin-top: calc(-1 * var(--ds-m-bord-hauteur, 4vw)); padding-top: calc(var(--ds-m-bord-hauteur, 4vw) + var(--ds-m-bord-retrait, 3rem)); clip-path: var(--ds-m-bord-forme, polygon(0 var(--ds-m-bord-hauteur, 4vw), 100% 0, 100% 100%, 0 100%)); }
@keyframes ds-m-bord { from { translate: 0 calc(var(--ds-m-distance) * var(--ds-m-ampleur)); } }

/* ── S12. Le mot qui traverse — ds-m-traverse : un mot ou une courte phrase en géant traverse l'écran
   de droite à gauche pendant qu'on descend.
   <div class="ds-m-traverse"><p class="ds-m-traverse__texte ds-a-titre-1">Délémont · 12 mars</p></div> ── */
:root .ds-m-traverse { width: 100vw; margin-inline: calc(50% - 50vw); overflow: clip; container-type: inline-size; }
:root .ds-m-traverse > .ds-m-traverse__texte.ds-m-traverse__texte { margin: 0; width: max-content; white-space: nowrap; font-size: var(--ds-m-traverse-taille, clamp(4rem, 15vw, 18rem)); line-height: .95; padding-inline: 4vw; }
@keyframes ds-m-traverse { from { translate: 35vw 0; } to { translate: calc(-100% + 65vw) 0; } }

/* ── S13. Les lettres qui se resserrent — ds-m-resserre : un titre court (1 à 5 mots) arrive très
   espacé et se resserre jusqu'à l'approche du site ── */
@keyframes ds-m-lettres { from { letter-spacing: calc(.12em * var(--ds-m-ampleur)); opacity: .15; } }

/* ── S14. Le cercle — ds-m-cercle : l'image s'ouvre en cercle depuis son centre ── */
:root .ds-m-cercle { overflow: hidden; }
@keyframes ds-m-cercle { from { clip-path: circle(12% at 50% 50%); } to { clip-path: circle(75% at 50% 50%); } }

/* ── S15. Les bandes — ds-m-bandes : l'image se découvre en lames verticales qui s'élargissent ── */
@keyframes ds-m-bandes { from { --ds-m-bande: 0%; } to { --ds-m-bande: 100%; } }

/* ── S16. La couleur — ds-m-couleur : l'image passe du noir et blanc à la couleur en entrant ── */
@keyframes ds-m-couleur { from { filter: grayscale(1) contrast(1.15); } to { filter: none; } }

/* ── S17. Les formes — ds-m-forme : de grandes formes du site flottent derrière le contenu d'une section,
   chacune à sa vitesse. <div class="ds-m-forme ds-m-forme--1" aria-hidden="true"></div> (1 à 3, premiers
   enfants de la <section>). Couleur, forme et opacité viennent du site (--ds-m-forme-…). ── */
:root .ds-section:has(> .ds-m-forme) { position: relative; overflow: clip; isolation: isolate; }
:root .ds-section:has(> .ds-m-forme) > :not(.ds-m-forme) { position: relative; z-index: 1; }
:root .ds-m-forme { position: absolute; z-index: 0; pointer-events: none; width: var(--ds-m-forme-taille, clamp(10rem, 30vw, 28rem)); aspect-ratio: 1; background: var(--ds-m-forme-fond, color-mix(in srgb, var(--ds-c-accent) 22%, transparent)); border-radius: var(--ds-m-forme-rayon, 50%); clip-path: var(--ds-m-forme-decoupe, none); }
:root .ds-m-forme--1 { top: -8%; right: -6%; }
:root .ds-m-forme--2 { bottom: -10%; left: -8%; width: calc(var(--ds-m-forme-taille, clamp(10rem, 30vw, 28rem)) * .6); }
:root .ds-m-forme--3 { top: 35%; left: 55%; width: calc(var(--ds-m-forme-taille, clamp(10rem, 30vw, 28rem)) * .35); }
@keyframes ds-m-forme { from { translate: 0 calc(var(--ds-m-forme-course, 1) * 22vh); rotate: calc(var(--ds-m-forme-course, 1) * -18deg); } to { translate: 0 calc(var(--ds-m-forme-course, 1) * -22vh); rotate: calc(var(--ds-m-forme-course, 1) * 18deg); } }
:root .ds-m-forme--2 { --ds-m-forme-course: 1.8; }
:root .ds-m-forme--3 { --ds-m-forme-course: -1.3; }
@media (max-width: 767px) { :root .ds-m-forme--3 { display: none; } }

/* ── S18. Le pivot — ds-m-pivote : sur une trame ou une glissière, les cartes basculent vers vous en entrant ── */
:root .ds-m-pivote { perspective: 1200px; }
@keyframes ds-m-pivote { from { opacity: 0; rotate: x calc(28deg * var(--ds-m-ampleur)); translate: 0 calc(var(--ds-m-distance) * var(--ds-m-ampleur)); } }

/* ── S19. L'entrée de la page — automatique : le premier écran se monte au chargement comme une ouverture
   de film (le fond, le titre qui se découvre, le texte, l'image, les boutons), sans classe à poser.
   Sur la PREMIÈRE section audacieuse de la page ; ds-m-entree n'est plus nécessaire. ── */
@keyframes ds-m-film-fond { from { opacity: 0; scale: .96; } }
@keyframes ds-m-film-titre { from { clip-path: inset(0 0 100% 0); translate: 0 .4em; } to { clip-path: inset(-20% -5% -20% -5%); translate: 0 0; } }
@keyframes ds-m-film-texte { from { opacity: 0; translate: 0 calc(var(--ds-m-distance) * var(--ds-m-ampleur) * .6); filter: blur(6px); } }
@keyframes ds-m-film-image { from { opacity: 0; clip-path: inset(0 0 0 100% round var(--ds-m-rayon)); scale: 1.12; } to { opacity: 1; clip-path: inset(0 round var(--ds-m-rayon)); scale: 1; } }

/* ── Survol : une carte réagit (son icône bondit, son image se resserre) ── */
@keyframes ds-m-bond { 0% { translate: 0 0; } 35% { translate: 0 -.35em; rotate: -8deg; } 65% { translate: 0 .05em; rotate: 3deg; } 100% { translate: 0 0; rotate: 0deg; } }

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    :root body .ds-section.ds-m-volet { animation: ds-m-volet var(--ds-m-courbe) both; animation-timeline: view(); animation-range: entry calc(0% + var(--ds-m-retard)) entry calc(90% + var(--ds-m-retard)); }
    :root body .ds-section.ds-m-bord > * { animation: ds-m-bord var(--ds-m-courbe) backwards; animation-timeline: view(); animation-range: entry calc(0% + var(--ds-m-retard)) cover calc(30% + var(--ds-m-retard)); }
    :root body .ds-m-traverse > .ds-m-traverse__texte { animation: ds-m-traverse linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
    :root body .ds-m-resserre { animation: ds-m-lettres var(--ds-m-courbe) backwards; animation-timeline: view(); animation-range: entry calc(0% + var(--ds-m-retard)) cover calc(45% + var(--ds-m-retard)); }
    :root body .ds-m-cercle :is(.ic2-img, img) { animation: ds-m-cercle var(--ds-m-courbe) both; animation-timeline: view(); animation-range: entry calc(0% + var(--ds-m-retard)) cover calc(50% + var(--ds-m-retard)); }
    :root body .ds-m-bandes :is(.ic2-img, img) { -webkit-mask-image: linear-gradient(90deg, #000 var(--ds-m-bande), transparent var(--ds-m-bande)); mask-image: linear-gradient(90deg, #000 var(--ds-m-bande), transparent var(--ds-m-bande)); -webkit-mask-size: 12.5% 100%; mask-size: 12.5% 100%; animation: ds-m-bandes var(--ds-m-courbe) both; animation-timeline: view(); animation-range: entry calc(0% + var(--ds-m-retard)) cover calc(45% + var(--ds-m-retard)); }
    :root body .ds-m-couleur :is(.ic2-img img, img) { animation: ds-m-couleur linear both; animation-timeline: view(); animation-range: entry calc(10% + var(--ds-m-retard)) cover calc(50% + var(--ds-m-retard)); }
    :root body .ds-m-forme { animation: ds-m-forme linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
    :root body .ds-m-pivote > * { animation: ds-m-pivote var(--ds-m-courbe) backwards; animation-timeline: view(); animation-range: entry calc(0% + var(--ds-m-retard)) cover calc(30% + var(--ds-m-retard)); transform-origin: 50% 0; }
    :root body .ds-m-pivote > :nth-child(3n+2) { animation-range: entry calc(10% + var(--ds-m-retard)) cover calc(34% + var(--ds-m-retard)); }
    :root body .ds-m-pivote > :nth-child(3n) { animation-range: entry calc(20% + var(--ds-m-retard)) cover calc(38% + var(--ds-m-retard)); }
  }
  @media (max-width: 767px) and (prefers-reduced-motion: no-preference) {
    :root body .ds-m-traverse > .ds-m-traverse__texte { animation-range: cover 10% cover 90%; }
  }
}
@media (prefers-reduced-motion: no-preference) {
  /* entrée de film : au chargement, sur la première section audacieuse (hors mode édition) */
  :root body:not(.IC2Editor) .ds-a-section:first-of-type:not(.ds-m-volet) { animation: ds-m-film-fond calc(var(--ds-m-duree) * 1.2) var(--ds-m-courbe) backwards; animation-timeline: auto; }
  :root body:not(.IC2Editor) .ds-a-section:first-of-type :is(h1, .ds-a-titre-1):not(.ds-m-mots, .ds-m-traverse__texte, .animate) { animation: ds-m-film-titre calc(var(--ds-m-duree) * 1.3) var(--ds-m-courbe) .25s backwards; animation-timeline: auto; }
  :root body:not(.IC2Editor) .ds-a-section:first-of-type :is(.ds-a-repere, .ds-a-chapeau, .ds-a-texte, .ds-a-chiffre, .ds-a-icone):not(.animate) { animation: ds-m-film-texte var(--ds-m-duree) var(--ds-m-courbe) .55s backwards; animation-timeline: auto; }
  :root body:not(.IC2Editor) .ds-a-section:first-of-type :is(.ds-a-image, .ds-a-image--accent, .ds-m-chevauche__visuel, .ds-m-superpose__fond):not(.animate) { animation: ds-m-film-image calc(var(--ds-m-duree) * 1.4) var(--ds-m-courbe) .1s backwards; animation-timeline: auto; }
  :root body:not(.IC2Editor) .ds-a-section:first-of-type :is(.ds-a-actions, [data-ic2-part="AIButtonPart"]):not(.animate) { animation: ds-m-film-texte var(--ds-m-duree) var(--ds-m-courbe) .8s backwards; animation-timeline: auto; }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  :root .ds-a-carte:hover .ds-a-icone, :root .ds-a-carte:focus-within .ds-a-icone { animation: ds-m-bond .6s var(--ds-m-courbe); animation-timeline: auto; }
  :root .ds-a-carte :is(.ic2-img img) { transition: scale var(--ds-m-duree) var(--ds-m-courbe); }
  :root .ds-a-carte:hover :is(.ic2-img img) { scale: 1.06; }
}

/* ── Transition entre les pages du site : la page qui part s'efface en remontant, la suivante arrive
   (navigateurs qui savent le faire ; ailleurs, le changement de page habituel). ── */
@view-transition { navigation: auto; }
@keyframes ds-m-page-part { to { opacity: 0; translate: 0 -2.5rem; } }
@keyframes ds-m-page-arrive { from { opacity: 0; translate: 0 3rem; } }
@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(root) { animation: ds-m-page-part .35s cubic-bezier(.4, 0, 1, 1) both; }
  ::view-transition-new(root) { animation: ds-m-page-arrive .55s var(--ds-m-courbe, ease-out) .1s both; }
}
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

/* ── M9. Garde-fous : rien ne bouge pour qui refuse le mouvement, ni en mode édition ──
   Les animations du site (classes « animate » d'IC2) ne sont JAMAIS touchées ici : IC2 les gère
   lui-même (en mode édition comme sous prefers-reduced-motion). Les couper laisserait l'élément
   dans son état de départ, invisible. */
@media (prefers-reduced-motion: reduce) {
  :root :is([class*="ds-m-"], [class*="ds-a-"]):not(.animate), :root :is([class*="ds-m-"], [class*="ds-a-"])::before, :root :is([class*="ds-m-"], [class*="ds-a-"])::after,
  :root :is([class*="ds-m-"], [class*="ds-a-"]) img { animation: none !important; transition: none !important; }
}
/* En mode édition, tout joue (scènes, mouvement automatique, gestes du site), sauf ce qui part d'un
   élément invisible au chargement ou qui s'épingle à l'écran : ces règles-là sont écrites sous
   body:not(.IC2Editor) (entrée, monte, fondu, glissements, cascade, remplissage, défilement continu,
   visuel fixe, travelling, empilement). */


/* ==========================================================================
   COUCHE CLIENT — Steve Guerdat (www.steveguerdat.com)
   Placée après le socle. Site sombre : le fond par défaut (ds-fond-clair, « le
   fond du site ») est le noir #151515 du thème. Valeurs relevées sur 3 514 pages
   (162 structures) à 1440 px. Le thème n'a pas de variables CSS : les valeurs
   sont écrites ici.
   ========================================================================== */

/* ── C0. Jetons ──────────────────────────────────────────────────────── */
:root {
  /* palette propre au site */
  --ds-or: #E5C90E;               /* or : titres de section, liens, boutons, dates */
  --ds-or-fonce: #C9AF0B;
  --ds-ivoire: #E5E3D9;           /* texte et titre de page */
  --ds-noir: #151515;             /* fond du site */
  --ds-anthracite: #333333;       /* bandeau d'informations (dates, lieu) */
  --ds-creme: #F2F0EA;            /* bande crème (partenaires, boutique) */
  --ds-gris-texte: #848484;
  /* jetons du socle : le contexte « clair » du socle est ici le fond noir du site */
  --ds-marque: var(--ds-or);
  --ds-marque-fonce: var(--ds-or-fonce);
  --ds-marque-texte: var(--ds-or);
  --ds-sur-marque: var(--ds-noir);
  --ds-titre: var(--ds-ivoire);
  --ds-texte: var(--ds-ivoire);
  --ds-texte-doux: var(--ds-gris-texte);
  --ds-page: #1E1E1E;
  --ds-surface-grise: var(--ds-anthracite);
  --ds-surface-sombre: var(--ds-noir);
  --ds-sur-sombre-titre: var(--ds-ivoire);
  --ds-sur-sombre-texte: var(--ds-ivoire);
  --ds-sur-sombre-filet: rgba(229, 227, 217, .18);
  --ds-filet: rgba(229, 227, 217, .18);
  --ds-filet-fort: rgba(229, 227, 217, .35);
  --ds-filet-carte: rgba(229, 227, 217, .18);
  --ds-numero: rgba(229, 201, 14, .4);
  --ds-ombre-carte: none;
  --ds-rayon-carte: 3px;
  --ds-rayon-surface: 3px;
  --ds-rayon-image: 0px;
  --ds-rayon-bouton: 3px;
  --ds-colonne-max: 1170px;
  --ds-gouttiere-bureau: 0px;
  --ds-section-espace: clamp(2rem, 1.25rem + 2.5vw, 3.5rem);
  --ds-colonne-espace: clamp(1.75rem, 1.25rem + 1.5vw, 2.5rem);
  /* typographie : Lato fin et en capitales */
  --ds-police-titre: 'Lato', sans-serif;
  --ds-police-texte: 'Lato', sans-serif;
  --ds-titre-casse: uppercase;
  --ds-titre-interligne: 1.15;
  --ds-t-page: clamp(2rem, 1.5rem + 1.6vw, 3rem);     --ds-t-page-graisse: 300;
  --ds-t-geant: clamp(2rem, 1.5rem + 1.6vw, 3rem);    --ds-t-geant-graisse: 300;
  --ds-t-grand: clamp(1.75rem, 1.4rem + 1.1vw, 2.25rem); --ds-t-grand-graisse: 300;
  --ds-t-section: clamp(1.75rem, 1.4rem + 1.1vw, 2.25rem); --ds-t-section-graisse: 300;
  --ds-t-sous-titre: clamp(1.25rem, 1.1rem + .5vw, 1.5rem); --ds-t-sous-titre-graisse: 300;
  --ds-t-intertitre: clamp(1.25rem, 1.1rem + .5vw, 1.5rem); --ds-t-intertitre-graisse: 300;
  --ds-t-carte: clamp(1.25rem, 1.1rem + .5vw, 1.5rem); --ds-t-carte-graisse: 300;
  --ds-t-petit-titre: 1.125rem; --ds-t-petit-titre-graisse: 400;
  --ds-t-chapeau: clamp(1.125rem, 1rem + .5vw, 1.5rem); --ds-t-chapeau-graisse: 700;
  --ds-t-corps: 1rem;
  --ds-t-fort-graisse: 700;
  --ds-chiffre-taille: clamp(2.5rem, 2rem + 2vw, 3.75rem); --ds-chiffre-graisse: 300;
  --ds-surtitre-graisse: 700; --ds-surtitre-casse: uppercase;
  --ds-fiche-intitule-graisse: 300; --ds-fiche-intitule-casse: uppercase; --ds-fiche-valeur-graisse: 700;
  /* boutons : or, angles de 3 px, capitales en 700 */
  --ds-bouton-casse: uppercase;
  --ds-bouton-graisse: 700;
  --ds-bouton-m-taille: .875rem; --ds-bouton-m-padding: 18px 28px; --ds-bouton-m-hauteur: 50px;
  --ds-bouton-s-taille: .8125rem; --ds-bouton-s-padding: 11px 22px; --ds-bouton-s-hauteur: 40px;
  --ds-serie-2: var(--ds-ivoire); --ds-serie-3: var(--ds-gris-texte); --ds-serie-4: #8C7A08; --ds-serie-5: #5A5A5A; --ds-serie-6: #B9A47A;
  /* en-têtes de section à gauche, comme sur tout le site */
  --ds-tete-flex: flex-start; --ds-tete-texte: start; --ds-tete-marge: 0;
}
/* le contexte « sombre » garde l'or pour les liens, les puces et les chiffres */
:root :is(.ds-fond-sombre, .ds-fond-marque, .ds-sombre, .ds-fond-gris) {
  --ds-c-lien: var(--ds-or); --ds-c-lien-deco: none; --ds-c-puce: var(--ds-or); --ds-c-accent: var(--ds-or); --ds-c-voile: rgba(229, 227, 217, .06);
}
:root .ds-section { background-color: var(--ds-noir); }
:root .ds-section.ds-fond-clair + .ds-section.ds-fond-clair { padding-top: 0; }

/* ── C1. Fonds ───────────────────────────────────────────────────────── */
/* clair = le fond noir du site (par défaut) ; gris = bandeau anthracite ; crème = bande claire */
:root .ds-section.ds-fond-clair { background-color: var(--ds-noir); }
:root .ds-section.ds-fond-gris { background-color: var(--ds-anthracite); }
:root .ds-section.ds-fond-creme { background-color: var(--ds-creme);
  --ds-c-titre: var(--ds-noir); --ds-c-texte: #333333; --ds-c-doux: #7E7E7E; --ds-c-lien: #8C7A08; --ds-c-lien-deco: none;
  --ds-c-filet: #DDD9CC; --ds-c-filet-fort: #C9C4B4; --ds-c-puce: #8C7A08; --ds-c-voile: #E9E6DC; --ds-c-numero: #C9C4B4; --ds-c-accent: #8C7A08;
  color: var(--ds-c-texte); }
:root .ds-fond-creme .ds-bouton--principal .ic2-btn { background-color: var(--ds-noir); border-color: var(--ds-noir); color: var(--ds-ivoire); }

/* ── C2. Titres ──────────────────────────────────────────────────────── */
/* titre de section : or ; titre de page et sous-titres : ivoire ; tout en capitales fines */
:root :is(.ds-t--section, .ds-t--grand) { color: var(--ds-c-accent); }
:root .ds-fond-creme :is(.ds-t--section, .ds-t--grand) { color: var(--ds-noir); }
/* chapeau : la phrase forte en or et en gras (style « wysiwyg-h2 » du site), pas en capitales */
:root .ds-t--chapeau { color: var(--ds-c-accent); line-height: 1.35; max-width: none; }
/* surtitre : la date d'une actualité (« LUNDI 21 JUILLET 2014 ») */
:root .ds-t--surtitre { letter-spacing: .01em; }
/* paragraphes d'actualité : justifiés comme sur le site */
@media (min-width: 768px) { :root .ds-texte > .ds-t--corps, :root .ds-media__texte > .ds-t--corps { text-align: justify; hyphens: auto; } }
:root .ds-texte { max-width: none; }
/* intitulé gris en capitales (« MÉCÉNAT », « SPONSORS ») */
:root .ds-t--mention { font-size: .875rem; font-weight: 700; text-transform: uppercase; color: var(--ds-c-doux); }

/* ── C3. Liens et boutons ────────────────────────────────────────────── */
:root .ds-lien:hover { color: var(--ds-or-fonce); text-decoration: none; }
:root .ds-bouton--principal .ic2-btn:is(:hover, :focus-visible) { color: var(--ds-noir); }
/* contour : filet gris 2 px, texte gris (« COMMANDER ») */
:root .ds-bouton--contour .ic2-btn { border-width: 2px; border-color: var(--ds-gris-texte); color: var(--ds-gris-texte); }
:root .ds-bouton--contour .ic2-btn:is(:hover, :focus-visible) { border-color: var(--ds-or); color: var(--ds-or); background-color: transparent; }

/* ── C4. Listes ──────────────────────────────────────────────────────── */
:root .ds-liste > .ds-liste__element::marker { color: var(--ds-c-accent); }
:root .ds-liste--coches > .ds-liste__element::before { width: 20px; height: 20px; top: 2px; -webkit-mask-image: var(--ds-puce-coche-fine); mask-image: var(--ds-puce-coche-fine); }
:root .ds-liste--coches > .ds-liste__element { padding-inline-start: 32px; }

/* ── C5. Images : aucun arrondi, légende en italique dorée ───────────── */
:root .ds-image .ds-image__legende, :root .ds-video .ds-video__legende { font-family: Georgia, 'Times New Roman', serif; font-style: italic; font-size: .875rem; font-weight: 400; color: var(--ds-c-accent); }
:root .ds-video .ds-video__titre { color: var(--ds-c-accent); text-transform: uppercase; font-weight: 300; }
:root .ds-grille.ds-grille--album { gap: 10px; }

/* ── C6. Tableau (résultats, palmarès) ───────────────────────────────── */
:root .ds-tableau table { font-size: .875rem; }
:root .ds-tableau th { padding: 10px; font-size: .875rem; font-weight: 400; text-transform: uppercase; color: var(--ds-c-accent); border-bottom: 1px solid var(--ds-c-filet-fort); }
:root .ds-tableau td { padding: 12px 10px; font-size: .875rem; border-bottom: 1px solid var(--ds-c-filet); }
:root .ds-tableau tbody tr:nth-child(2n) td, :root .ds-fond-gris .ds-tableau tbody tr:nth-child(2n) td { background-color: transparent; }
:root .ds-tableau tbody td:first-child { font-weight: 400; }
:root .ds-tableau tbody tr:last-child td { border-bottom: 2px solid var(--ds-c-accent); }

/* ── C7. Fiche de données (cheval, concours) ─────────────────────────── */
:root .ds-fiche dt { color: var(--ds-c-accent); }
:root .ds-fiche { max-width: 34rem; }
:root .ds-fiche.ds-fiche--2-colonnes { max-width: none; }
/* bandeau d'informations : sur fond gris, intitulés plus grands, sans filet */
:root .ds-fond-gris .ds-fiche { max-width: none; }
:root .ds-fond-gris .ds-fiche .ds-fiche__ligne { border-bottom: 0; padding-block: 4px; }
:root .ds-fond-gris .ds-fiche dt { font-size: 1.125rem; }
:root .ds-fond-gris .ds-fiche dd { font-size: .875rem; font-weight: 400; }
:root .ds-fond-gris .ds-fiche dt::after { content: " :"; }

/* ── C8. Accordéon : boîte à filet or (« CHOISIR UNE ANNÉE ») ────────── */
:root .ds-accordeons { gap: 16px; }
:root .ds-accordeon { border: 2px solid var(--ds-c-accent); border-radius: 0; padding-block: 0; }
:root .ds-accordeon .ds-accordeon__entete { padding: 14px 24px; border-radius: 0; }
:root .ds-accordeon .ds-accordeon__entete:hover { background-color: rgba(229, 201, 14, .06); }
:root .ds-accordeon .ds-accordeon__titre { font-size: var(--ds-t-section); font-weight: 300; text-transform: uppercase; color: var(--ds-c-accent); line-height: 1.2; }
:root .ds-accordeon .ds-accordeon__pastille { border: 0; color: var(--ds-c-accent); }
:root .ds-accordeon .ds-accordeon__contenu { padding: 0 24px 24px; font-size: 1rem; }

/* ── C9. Cartes et logos ─────────────────────────────────────────────── */
:root .ds-carte-texte { border-width: 1px; }
:root .ds-carte-texte .ds-carte-texte__icone { background: none; color: var(--ds-or); width: auto; height: auto; font-size: 32px; justify-content: flex-start; }
:root .ds-carte-texte .ds-carte-texte__titre { color: var(--ds-or); }
:root .ds-carte-photo { border: 0; background: none; }
:root .ds-carte-photo .ds-carte-photo__titre { padding: 12px 0 0; font-size: 1.125rem; font-weight: 300; color: var(--ds-c-titre); }
:root .ds-carte-evenement { border-radius: 0; border: 0; border-bottom: 1px solid var(--ds-c-filet); padding-inline: 0; background: none; }
:root .ds-date { border-radius: 3px; background-color: var(--ds-or); color: var(--ds-noir); }
:root .ds-avis { border-color: var(--ds-filet); }
:root .ds-citation-grande .ds-citation-grande__personne { border-radius: 0; background: none; padding: 0; }
:root .ds-citation-grande .ds-citation-grande__texte { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; color: var(--ds-c-accent); }
:root .ds-citation .ds-citation__texte { font-family: Georgia, 'Times New Roman', serif; color: var(--ds-c-accent); }
:root .ds-logos__legende { font-size: .875rem; font-weight: 700; text-transform: uppercase; color: var(--ds-c-doux); }
:root .ds-etiquette { border-radius: 3px; text-transform: uppercase; font-size: .75rem; font-weight: 700; letter-spacing: .03em; }

/* ── C10. Article : le texte commence en haut de la photo ────────────── */
:root .ds-media { align-items: start; }


/* ==========================================================================
   STEVE GUERDAT — STYLE DU NIVEAU AUDACIEUX (rôles ds-a-…)
   « Noir de gala » : le noir du site, des capitales Lato ultrafines poussées à
   l'échelle de l'affiche, l'or réduit à un fil (filets de 1 px) et à une seule
   masse rare. Deux gestes : le fil d'or (un trait vertical qui descend sur un
   titre) et la lettrine d'or (héritée des « bigLetter » du site).
   Uniquement des jetons du site ; rien sur .ic2-btn ; aucun arrondi, aucune ombre.
   ========================================================================== */

/* ── Réglages du mouvement : lent et élégant, rien ne saute ── */
:root {
  --ds-m-duree: 1.3s;
  --ds-m-courbe: cubic-bezier(.22, .61, .36, 1);
  --ds-m-entete: 115px;          /* en-tête fixe du site : les scènes épinglées s'arrêtent dessous */
  --ds-m-ajour-graisse: 900;     /* le titre ajouré prend le Lato le plus gras : à travers un trait fin, l'image ne se lit pas */
  --ds-m-distance: 28px;
  --ds-m-defile-duree: 60s;
  /* propres au site */
  --ds-a-fil: clamp(3.5rem, 2.25rem + 5vw, 7.5rem);   /* hauteur réservée au fil d'or */
  --ds-a-retrait: clamp(1.5rem, 1rem + 2.5vw, 3.5rem); /* retrait intérieur d'un panneau */
}

/* ── Surfaces ─────────────────────────────────────────────────────────
   sombre = le noir du site (dominante) · teinte = l'anthracite du site
   claire = la bande crème (rare) · marque = l'aplat d'or (une fois par page)
   La classe est doublée pour l'emporter sur le fond noir des sections du site. */
:root .ds-a-surface--sombre.ds-a-surface--sombre {
  background-color: var(--ds-noir);
  --ds-c-titre: var(--ds-ivoire); --ds-c-texte: var(--ds-ivoire); --ds-c-doux: color-mix(in srgb, var(--ds-ivoire) 62%, var(--ds-noir));
  --ds-c-accent: var(--ds-or); --ds-c-lien: var(--ds-or); --ds-c-puce: var(--ds-or);
  --ds-c-filet: color-mix(in srgb, var(--ds-ivoire) 18%, transparent); --ds-c-filet-fort: color-mix(in srgb, var(--ds-ivoire) 38%, transparent);
  --ds-c-voile: color-mix(in srgb, var(--ds-ivoire) 6%, transparent);
  color: var(--ds-c-texte);
}
:root .ds-a-surface--teinte.ds-a-surface--teinte {
  background-color: var(--ds-anthracite);
  --ds-c-titre: var(--ds-ivoire); --ds-c-texte: var(--ds-ivoire); --ds-c-doux: color-mix(in srgb, var(--ds-ivoire) 70%, var(--ds-anthracite));
  --ds-c-accent: var(--ds-or); --ds-c-lien: var(--ds-or); --ds-c-puce: var(--ds-or);
  --ds-c-filet: color-mix(in srgb, var(--ds-ivoire) 20%, transparent); --ds-c-filet-fort: color-mix(in srgb, var(--ds-ivoire) 42%, transparent);
  --ds-c-voile: color-mix(in srgb, var(--ds-ivoire) 7%, transparent);
  color: var(--ds-c-texte);
}
:root .ds-a-surface--claire.ds-a-surface--claire {
  background-color: var(--ds-creme);
  --ds-c-titre: var(--ds-noir); --ds-c-texte: color-mix(in srgb, var(--ds-noir) 88%, var(--ds-creme)); --ds-c-doux: color-mix(in srgb, var(--ds-noir) 62%, var(--ds-creme));
  --ds-c-accent: color-mix(in srgb, var(--ds-serie-4) 78%, var(--ds-noir)); --ds-c-lien: color-mix(in srgb, var(--ds-serie-4) 78%, var(--ds-noir)); --ds-c-puce: var(--ds-serie-4);
  --ds-c-filet: color-mix(in srgb, var(--ds-noir) 14%, transparent); --ds-c-filet-fort: color-mix(in srgb, var(--ds-noir) 32%, transparent);
  --ds-c-voile: color-mix(in srgb, var(--ds-noir) 5%, transparent);
  /* boutons du site lisibles sur le crème (jetons seulement) */
  --ds-marque: var(--ds-noir); --ds-marque-fonce: var(--ds-or); --ds-sur-marque: var(--ds-ivoire); --ds-gris-texte: color-mix(in srgb, var(--ds-noir) 70%, var(--ds-creme));
  color: var(--ds-c-texte);
}
:root .ds-a-surface--marque.ds-a-surface--marque {
  background-color: var(--ds-or);
  --ds-c-titre: var(--ds-noir); --ds-c-texte: var(--ds-noir); --ds-c-doux: color-mix(in srgb, var(--ds-noir) 72%, var(--ds-or));
  --ds-c-accent: var(--ds-noir); --ds-c-lien: var(--ds-noir); --ds-c-puce: var(--ds-noir);
  --ds-c-filet: color-mix(in srgb, var(--ds-noir) 22%, transparent); --ds-c-filet-fort: color-mix(in srgb, var(--ds-noir) 45%, transparent);
  --ds-c-voile: color-mix(in srgb, var(--ds-noir) 8%, transparent);
  /* sur l'or, le bouton principal passe en noir, le contour en noir */
  --ds-marque: var(--ds-noir); --ds-marque-fonce: var(--ds-ivoire); --ds-sur-marque: var(--ds-or); --ds-gris-texte: var(--ds-noir);
  color: var(--ds-c-texte);
}
/* posée sur un panneau (et non sur une section) : retrait intérieur, angles vifs */
:root :not(section).ds-a-surface--sombre,
:root :not(section).ds-a-surface--teinte,
:root :not(section).ds-a-surface--claire,
:root :not(section).ds-a-surface--marque { padding: var(--ds-a-retrait); border-radius: 0; }

/* ── Section : un grand vide noir entre deux temps ── */
:root .ds-section.ds-a-section {
  padding-block: clamp(4.5rem, 3rem + 7vw, 10rem);
  --ds-colonne-espace: clamp(2.5rem, 1.75rem + 3.5vw, 5.5rem);
}
:root .ds-section.ds-a-section--serree { padding-block: clamp(2.75rem, 2rem + 3vw, 5rem); }
:root .ds-section.ds-a-section--ample { padding-block: clamp(6rem, 4rem + 10vw, 15rem); }

/* ── Flux vertical entre rôles ── */
:root :is(.ds-a-titre-1, .ds-a-titre-2, .ds-a-titre-3, .ds-a-repere, .ds-a-chapeau, .ds-a-texte, .ds-a-liste, .ds-a-citation, .ds-a-chiffre, .ds-a-actions, .ds-a-legende) { margin-block: 0; }
:root :is(.ds-a-titre-1, .ds-a-titre-2, .ds-a-titre-3, .ds-a-repere, .ds-a-chapeau, .ds-a-texte, .ds-a-liste, .ds-a-citation, .ds-a-chiffre)
  + :is(.ds-a-titre-1, .ds-a-titre-2, .ds-a-titre-3, .ds-a-chapeau, .ds-a-texte, .ds-a-liste, .ds-a-citation, .ds-a-chiffre) { margin-top: 1.4rem; }
:root .ds-a-repere + :is(.ds-a-titre-1, .ds-a-titre-2, .ds-a-titre-3) { margin-top: clamp(1.25rem, 1rem + 1vw, 2rem); }
:root .ds-a-titre-1 + * { margin-top: clamp(1.75rem, 1.25rem + 2vw, 3rem); }
:root .ds-a-texte + .ds-a-texte { margin-top: 1em; }
:root .ds-a-chiffre + .ds-a-citation { margin-top: clamp(2rem, 1.5rem + 2vw, 3.5rem); }

/* ── Titres : capitales Lato 300, poussées à l'échelle de l'affiche ── */
:root .ds-a-titre-1 {
  font-family: var(--ds-police-titre); font-weight: 300; text-transform: uppercase;
  font-size: clamp(2.25rem, 10.5cqi * var(--ds-m-part, 1), 8.75rem); line-height: .94; letter-spacing: -.005em;
  color: var(--ds-c-titre);
}
:root .ds-a-titre-2 {
  font-family: var(--ds-police-titre); font-weight: 300; text-transform: uppercase;
  font-size: clamp(1.75rem, 6.6cqi * var(--ds-m-part, 1), 4.75rem); line-height: 1; letter-spacing: .005em;
  color: var(--ds-c-accent);
}
:root .ds-a-titre-3 {
  font-family: var(--ds-police-titre); font-weight: 400; text-transform: uppercase;
  font-size: clamp(1.125rem, 1rem + .45vw, 1.4rem); line-height: 1.2; letter-spacing: .07em;
  color: var(--ds-c-titre);
}

/* ── Repère : le poinçon — capitales grasses d'or dans un cadre d'un fil ── */
:root .ds-a-repere {
  display: inline-block; max-width: 100%; align-self: start; justify-self: start; container-type: normal; /* jamais conteneur : il garde la largeur de son texte */
  padding: .55em .9em .5em; border: 1px solid var(--ds-c-accent); border-radius: 0;
  font-family: var(--ds-police-texte); font-weight: 700; font-size: .75rem; line-height: 1.35;
  text-transform: uppercase; letter-spacing: .22em; color: var(--ds-c-accent);
}

/* ── Chapeau : la phrase d'or, grasse et italique, comme sur le site ── */
:root .ds-a-chapeau {
  font-family: var(--ds-police-texte); font-weight: 700; font-style: italic; text-transform: none;
  font-size: clamp(1.2rem, 3.4cqi * var(--ds-m-part, 1), 1.9rem); line-height: 1.32; letter-spacing: 0;
  color: var(--ds-c-accent);
}

/* ── Texte courant ── */
:root .ds-a-texte {
  font-family: var(--ds-police-texte); font-weight: 400; font-size: clamp(1rem, .96rem + .15vw, 1.075rem);
  line-height: 1.75; color: var(--ds-c-texte);
}
:root :is(.ds-a-texte, .ds-a-liste, .ds-a-chapeau, .ds-a-legende, .ds-a-citation) a:not(.ic2-btn) {
  color: var(--ds-c-lien); text-decoration: none; background-image: linear-gradient(currentColor, currentColor);
  background-size: 0 1px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size .5s var(--ds-m-courbe);
}
:root :is(.ds-a-texte, .ds-a-liste, .ds-a-chapeau, .ds-a-legende, .ds-a-citation) a:not(.ic2-btn):is(:hover, :focus-visible) { background-size: 100% 1px; }

/* ── Légende : italique d'or, discrète ── */
:root .ds-a-legende {
  display: block; margin-top: .85rem; font-family: var(--ds-police-texte); font-style: italic; font-weight: 400;
  font-size: .875rem; line-height: 1.45; color: var(--ds-c-accent);
}

/* ── Chiffre : un nombre fin, très grand, en or ── */
:root .ds-a-chiffre {
  font-family: var(--ds-police-titre); font-weight: 300; font-size: clamp(3.5rem, 26cqi * var(--ds-m-part, 1), 11rem);
  line-height: .86; letter-spacing: -.02em; font-variant-numeric: lining-nums tabular-nums;
  color: var(--ds-c-accent); white-space: nowrap;
}
:root .ds-a-chiffre .ds-a-chiffre__legende {
  display: block; margin-top: 1.1rem; max-width: 100%; white-space: normal;
  font-family: var(--ds-police-texte); font-weight: 700; font-size: .75rem; line-height: 1.5;
  text-transform: uppercase; letter-spacing: .18em; color: var(--ds-c-titre);
}

/* ── Citation : italique fine, guillemets d'or ── */
:root .ds-a-citation { margin-inline: 0; padding: 0; border: 0; text-align: start; background: none; }
:root .ds-a-citation > p {
  margin: 0; font-family: var(--ds-police-titre); font-weight: 300; font-style: italic;
  font-size: clamp(1.35rem, 4.6cqi * var(--ds-m-part, 1), 2.6rem); line-height: 1.28; color: var(--ds-c-titre); text-wrap: pretty;
}
:root .ds-a-citation > p::before { content: "« "; color: var(--ds-c-accent); }
:root .ds-a-citation > p::after { content: " »"; color: var(--ds-c-accent); }
:root .ds-a-citation .ds-a-citation__auteur {
  display: flex; align-items: center; gap: .9rem; margin-top: 1.4rem; font-style: normal;
  font-family: var(--ds-police-texte); font-weight: 700; font-size: .75rem; line-height: 1.5;
  text-transform: uppercase; letter-spacing: .18em; color: var(--ds-c-accent);
}
:root .ds-a-citation .ds-a-citation__auteur::before { content: ""; flex: 0 0 2.5rem; height: 1px; background: currentColor; }

/* ── Liste : des lignes séparées par un filet, la puce est un fil d'or ── */
:root .ds-a-liste { list-style: none; padding: 0; border-top: 1px solid var(--ds-c-filet); }
:root .ds-a-liste > li {
  position: relative; margin: 0; padding: .95em 0 .95em 2rem; border-bottom: 1px solid var(--ds-c-filet);
  font-family: var(--ds-police-texte); font-size: clamp(1rem, .96rem + .15vw, 1.075rem); line-height: 1.55; color: var(--ds-c-texte);
}
:root .ds-a-liste > li::before { content: ""; position: absolute; left: 0; top: 1.72em; width: 1rem; height: 1px; background: var(--ds-c-puce); }

/* ── Carte : pas de boîte ; un filet en tête, dont un segment d'or s'étire au survol ── */
:root .ds-a-carte {
  position: relative; display: flex; flex-direction: column; gap: .85rem; margin: 0;
  padding-top: clamp(1.25rem, 1rem + 1vw, 2rem); border-top: 1px solid var(--ds-c-filet-fort); background: none; border-radius: 0;
}
:root .ds-a-carte::before {
  content: ""; position: absolute; left: 0; top: -1px; width: 3rem; height: 1px; background: var(--ds-c-accent);
  transition: width var(--ds-m-duree) var(--ds-m-courbe);
}
:root .ds-a-carte > * { margin: 0; }
:root .ds-a-carte .ds-a-texte { font-size: .95rem; line-height: 1.65; color: var(--ds-c-doux); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) { :root .ds-a-carte:hover::before { width: 100%; } }

/* ── Images : nettes, angles droits ; l'accent passe en noir et blanc dans un cadre d'or ── */
:root :is(.ds-a-image, .ds-a-image--accent) { position: relative; margin: 0; border-radius: 0; }
:root :is(.ds-a-image, .ds-a-image--accent) :is(.ic2-img, img) { display: block; width: 100%; border-radius: 0; }
:root .ds-a-image--accent :is(.ic2-img img, img) { filter: grayscale(1) contrast(1.08); }
:root .ds-a-image--accent::after {
  content: ""; position: absolute; inset: clamp(.75rem, .5rem + 1.2vw, 1.75rem); z-index: 1; pointer-events: none;
  border: 1px solid var(--ds-or);
}

/* ── Passage : un filet sur toute la colonne, l'or n'en tient que le début ── */
:root .ds-a-passage {
  position: relative; height: 1px; margin-block: clamp(1rem, .5rem + 2vw, 3rem); background: var(--ds-c-filet-fort);
}
:root .ds-a-passage::before {
  content: ""; position: absolute; left: 0; top: 0; width: clamp(4rem, 12%, 9rem); height: 1px; background: var(--ds-c-accent);
  transform-origin: left;
}

/* ── Actions : une rangée, à gauche ── */
:root .ds-a-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; margin-top: clamp(1.75rem, 1.25rem + 1.5vw, 2.75rem); }
:root .ds-a-actions > * { margin: 0; }

/* ── Geste 1 : le fil d'or — un trait vertical qui descend sur l'élément ──
   L'élément réserve lui-même la place du fil au-dessus de lui : rien n'est recouvert. */
:root :is(.ds-a-geste-fil, .ds-a-geste-1) { position: relative; padding-top: var(--ds-a-fil); view-timeline: --sg-fil block; }
:root :is(.ds-a-geste-fil, .ds-a-geste-1)::before {
  content: ""; position: absolute; left: .04em; top: 0; width: 1px; height: calc(var(--ds-a-fil) - clamp(1rem, .75rem + .8vw, 1.75rem));
  background: var(--ds-c-accent); transform-origin: top;
}

/* ── Geste 2 : la lettrine d'or — l'initiale d'un paragraphe tombe sur trois lignes ;
   sur un titre, l'initiale grandit et passe à l'or ── */
:root :is(.ds-a-geste-lettrine, .ds-a-geste-2)::first-letter {
  float: left; margin: .06em .14em 0 -.02em; font-family: var(--ds-police-titre); font-weight: 300; font-style: normal;
  font-size: 3.9em; line-height: .78; color: var(--ds-c-accent); text-transform: uppercase;
}
:root :is(h1, h2, h3, .ds-a-titre-1, .ds-a-titre-2, .ds-a-titre-3, .ds-a-chiffre):is(.ds-a-geste-lettrine, .ds-a-geste-2)::first-letter {
  float: none; margin: 0; font-size: 1.32em; line-height: inherit; color: var(--ds-c-accent);
}
:root :is(.ds-a-titre-2):is(.ds-a-geste-lettrine, .ds-a-geste-2)::first-letter { color: var(--ds-c-titre); }

/* ── Mouvement propre au site : les fils d'or se tracent pendant la lecture ── */
@keyframes sg-trace-y { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes sg-trace-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    :root body:not(.IC2Editor) :is(.ds-a-geste-fil, .ds-a-geste-1)::before { animation: sg-trace-y linear both; animation-timeline: --sg-fil; animation-range: entry calc(15% + var(--ds-m-retard)) cover calc(40% + var(--ds-m-retard)); }
    :root body:not(.IC2Editor) .ds-a-passage { view-timeline: --sg-passage block; }
    :root body:not(.IC2Editor) .ds-a-passage::before { animation: sg-trace-x linear both; animation-timeline: --sg-passage; animation-range: entry calc(20% + var(--ds-m-retard)) cover calc(45% + var(--ds-m-retard)); }
  }
}
:root body.IC2Editor :is(.ds-a-geste-fil, .ds-a-geste-1, .ds-a-passage)::before { animation: none !important; transform: none !important; }

/* dans une carte, le rythme est serré : seul l'écart de la carte compte */
:root .ds-a-carte > [class*="ds-a-"][class*="ds-a-"] { margin-top: 0; }
/* une image de fond (texte posé dessus) remplit toute sa hauteur : sinon le cadre d'or déborde sous la photo */
:root .ds-m-superpose__fond:is(.ds-a-image, .ds-a-image--accent) > [data-ic2-part] { height: 100%; }

/* icône : un carré tracé d'un filet d'or d'un pixel, l'icône en or ; ni fond ni rayon */
:root .ds-a-icone { box-shadow: inset 0 0 0 1px var(--ds-c-accent); color: var(--ds-c-accent); }
:root .ds-a-icone--geante { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ds-c-accent) 60%, transparent); }

/* scènes de la deuxième série : une forme n'est qu'un cercle tracé d'un filet d'or (le site n'a pas
   d'aplat décoratif) ; une section ne mord pas sur la précédente, elle s'ouvre sur un filet droit */
:root { --ds-m-forme-fond: radial-gradient(closest-side, transparent calc(100% - 1.5px), color-mix(in srgb, var(--ds-c-accent) 70%, transparent) calc(100% - 1px)); --ds-m-bord-hauteur: 0px; --ds-m-bord-forme: none; }
