/* =========================================================================
   SQUELETTE « GALERIE VISUELLE »  (id : galerie-visuelle)
   Vocabulaire de classes : muséographie, préfixe cm- (cimaise).
   TOUT le rhabillage passe par les variables ci-dessous.
   ========================================================================= */

:root {

  /* ---- 1. COULEURS (rhabillables sans risque) --------------------------- */
  --fond:            #ccc6cd;   /* le mur d'accrochage, ton moyen assumé     */
  --fond-creux:      #bcb4be;   /* renfoncements, bandeaux, pied de page     */
  --fond-clair:      #ded9e0;   /* réserves claires, cartel flottant         */
  --encre:           #1b1820;   /* titres et texte principal                 */
  --encre-douce:     #494350;   /* légendes, mentions, texte secondaire      */
  --accent:          #52400d;   /* liens, filets d'appui, focus (bronze)     */
  --accent-appuye:   #302506;   /* survol : TOUJOURS plus foncé que l'accent */
  --trait:           #a79fa9;   /* hairlines sur le mur                      */
  --vide:            #f2eff3;   /* fond des réserves de texte long           */

  /* ---- 2. TYPOGRAPHIE (piles système, aucune police distante) ----------- */
  --titre-police: Didot, "Bodoni 72", "Big Caslon", "Hoefler Text", Georgia, "Times New Roman", serif;
  --texte-police: Optima, Candara, "Gill Sans", "Gill Sans MT", "Trebuchet MS", "Segoe UI", sans-serif;

  --titre-graisse: 400;
  --titre-interlettre: 0.005em;
  --cote-interlettre: 0.22em;   /* petites capitales des cotes et surtitres  */

  --corps-taille: clamp(1rem, 0.96rem + 0.22vw, 1.1rem);
  --corps-interligne: 1.62;

  /* ---- 3. RYTHME ET MESURES -------------------------------------------- */
  --mesure:        66ch;                          /* largeur de lecture      */
  --mesure-large:  1440px;                        /* largeur maxi du mur     */
  --marge-page:    clamp(1.1rem, 4.2vw, 4.5rem);
  --gouttiere:     clamp(0.9rem, 2.4vw, 2.4rem);  /* écart entre les tirages */
  --souffle:       clamp(3.5rem, 8vw, 7.5rem);    /* écart entre les salles  */
  --decalage:      clamp(1.5rem, 4vw, 4.5rem);    /* désalignement mosaïque  */

  /* ---- 4. DÉTAILS ------------------------------------------------------- */
  --rayon:         0;      /* la galerie est à angles vifs ; 0 = identitaire */
  --filet:         1px solid var(--trait);
  --transition:    180ms ease;
}

/* =========================================================================
   BASE
   ========================================================================= */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--fond);
  color: var(--encre);
  font-family: var(--texte-police);
  font-size: var(--corps-taille);
  line-height: var(--corps-interligne);
  overflow-wrap: break-word;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--titre-police);
  font-weight: var(--titre-graisse);
  letter-spacing: var(--titre-interlettre);
  line-height: 1.1;
  margin: 0;
}

h1 { font-size: clamp(2.1rem, 1.2rem + 3.6vw, 4.4rem); }
h2 { font-size: clamp(1.55rem, 1.1rem + 1.7vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 1rem + 0.7vw, 1.5rem); }
h4 { font-size: 1.05rem; }

p, ul, ol { margin: 0 0 1.15em; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--accent-appuye); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

hr {
  border: 0;
  border-top: var(--filet);
  margin: var(--souffle) 0;
}

/* =========================================================================
   OSSATURE
   ========================================================================= */

/* Lien d'évitement (accessibilité). NE PAS SUPPRIMER. */
.cm-evite {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--encre);
  color: var(--fond-clair);
  padding: 0.7rem 1.1rem;
  z-index: 50;
}
.cm-evite:focus { left: 0.6rem; top: 0.6rem; }

/* Passe-partout : la largeur utile de toute zone de contenu. */
.cm-passe {
  width: 100%;
  max-width: var(--mesure-large);
  margin-inline: auto;
  padding-inline: var(--marge-page);
}

/* La scène : la pile verticale de la page. */
.cm-scene { display: block; }

/* --- Fronton (en-tête) --------------------------------------------------- */
.cm-corniche {
  border-bottom: var(--filet);
  padding-block: clamp(1rem, 2.4vw, 1.9rem);
}
.cm-corniche__rang {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.8rem 1.6rem;
}
.cm-enseigne {
  font-family: var(--titre-police);
  font-size: clamp(1.3rem, 1.05rem + 1vw, 1.9rem);
  color: var(--encre);
  text-decoration: none;
}
.cm-enseigne span {
  display: block;
  font-family: var(--texte-police);
  font-size: 0.68rem;
  letter-spacing: var(--cote-interlettre);
  text-transform: uppercase;
  color: var(--encre-douce);
  margin-top: 0.35rem;
}
.cm-visite ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.cm-visite a {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--encre);
  text-decoration: none;
  padding-bottom: 0.2rem;
  border-bottom: 1px solid transparent;
}
.cm-visite a:hover,
.cm-visite [aria-current="page"] {
  border-bottom-color: var(--accent);
  color: var(--accent);
}

/* --- Fil (chemin de navigation) ------------------------------------------ */
.cm-fil {
  font-size: 0.78rem;
  color: var(--encre-douce);
  padding-block: 1.2rem;
}
.cm-fil ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.55rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.cm-fil li + li::before { content: "/"; margin-right: 0.55rem; color: var(--trait); }

/* =========================================================================
   ACCROCHE : l'image d'ouverture commande la page
   ========================================================================= */

.cm-accroche {
  position: relative;
  margin-top: clamp(1.2rem, 3vw, 2.6rem);
}
.cm-accroche__vue {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--fond-creux);
}
/* Le cartel flottant : bloc plein, jamais de texte sur image nue. */
.cm-cartel-flottant {
  background: var(--fond-clair);
  color: var(--encre);
  padding: clamp(1.3rem, 3vw, 2.6rem);
  max-width: 46rem;
}
.cm-cartel-flottant p {
  margin: 0.8rem 0 0;
  color: var(--encre-douce);
  max-width: 52ch;
}

@media (min-width: 900px) {
  .cm-accroche__vue { aspect-ratio: 21 / 9; }
  .cm-cartel-flottant {
    position: absolute;
    /* aligné sur le bord gauche du passe-partout, y compris au-delà de
       --mesure-large où le contenu est centré. */
    left: max(var(--marge-page), calc((100% - var(--mesure-large)) / 2 + var(--marge-page)));
    bottom: 0;
    transform: translateY(28%);
    width: min(46rem, 62%);
  }
  .cm-accroche { margin-bottom: 5.5rem; }
}

/* =========================================================================
   SALLE : une section de la page
   ========================================================================= */

.cm-salle { margin-top: var(--souffle); }

.cm-salle__bandeau {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 0.7rem 2rem;
  border-top: var(--filet);
  padding-top: 0.9rem;
  margin-bottom: clamp(1.6rem, 3.5vw, 3rem);
}
.cm-salle__titre { max-width: 30ch; }
.cm-salle__note {
  font-size: 0.8rem;
  color: var(--encre-douce);
  max-width: 40ch;
  margin: 0;
}

/* Cote : le petit numéro de catalogue, marqueur de style du squelette. */
.cm-inventaire {
  display: block;
  font-size: 0.68rem;
  letter-spacing: var(--cote-interlettre);
  text-transform: uppercase;
  color: var(--encre-douce);
  margin-bottom: 0.55rem;
}

/* =========================================================================
   CIMAISE : la mosaïque irrégulière (coeur du squelette)
   6 colonnes ; chaque tirage choisit son empan par un modificateur.
   ========================================================================= */

.cm-cimaise {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--gouttiere);
  align-items: start;
  list-style: none;
  margin: 0;
  padding: 0;
}

.cm-tirage { grid-column: span 3; margin: 0; }
.cm-tirage--plein  { grid-column: span 6; }
.cm-tirage--large  { grid-column: span 4; }
.cm-tirage--moyen  { grid-column: span 3; }
.cm-tirage--petit  { grid-column: span 2; }

/* Désalignement vertical : c'est lui qui casse la grille régulière. */
.cm-tirage--decale  { margin-top: var(--decalage); }
.cm-tirage--decale2 { margin-top: calc(var(--decalage) * 2); }

.cm-tirage__cadrage {
  overflow: hidden;
  background: var(--fond-creux);
  border-radius: var(--rayon);
}
.cm-tirage__vue {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition), filter var(--transition);
}

/* Formats de tirage */
.cm-tirage__cadrage--portrait { aspect-ratio: 3 / 4; }
.cm-tirage__cadrage--paysage  { aspect-ratio: 4 / 3; }
.cm-tirage__cadrage--carre    { aspect-ratio: 1 / 1; }
.cm-tirage__cadrage--pano     { aspect-ratio: 21 / 9; }
.cm-tirage__cadrage--haut     { aspect-ratio: 2 / 3; }

/* Cartel : la légende discrète sous l'image. Texte court, jamais un pavé. */
.cm-tirage__cartel {
  padding-top: 0.8rem;
  margin-top: 0.8rem;
  border-top: var(--filet);
}
.cm-tirage__titre {
  font-family: var(--titre-police);
  font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.35rem);
  line-height: 1.15;
  margin: 0;
}
.cm-tirage--plein .cm-tirage__titre,
.cm-tirage--large .cm-tirage__titre { font-size: clamp(1.3rem, 1rem + 1.1vw, 1.95rem); }

.cm-tirage__lien {
  color: var(--encre);
  text-decoration: none;
}
.cm-tirage__lien:hover { color: var(--accent); }
.cm-tirage__lien::after {
  content: "";
  position: absolute;
  inset: 0;
}
.cm-tirage { position: relative; }

.cm-tirage:hover .cm-tirage__vue { transform: scale(1.02); }

.cm-tirage__mot {
  margin: 0.5rem 0 0;
  color: var(--encre-douce);
  font-size: 0.86rem;
  max-width: 44ch;
}
.cm-tirage__indication {
  margin: 0.55rem 0 0;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--encre-douce);
}

/* Variante dense : mosaïque sans légende longue (pages de rubrique). */
.cm-cimaise--dense { --gouttiere: clamp(0.7rem, 1.6vw, 1.4rem); }

/* =========================================================================
   RÉPERTOIRE : liste de rubriques en petites vignettes
   ========================================================================= */

.cm-repertoire {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 12rem), 1fr));
  gap: var(--gouttiere);
  list-style: none;
  margin: 0;
  padding: 0;
}
.cm-repertoire__entree { position: relative; }
.cm-repertoire__vue {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--fond-creux);
}
.cm-repertoire__nom {
  display: block;
  margin-top: 0.7rem;
  font-family: var(--titre-police);
  font-size: 1.1rem;
  color: var(--encre);
  text-decoration: none;
}
.cm-repertoire__nom::after { content: ""; position: absolute; inset: 0; }
.cm-repertoire__entree:hover .cm-repertoire__nom { color: var(--accent); }
.cm-repertoire__compte {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--encre-douce);
}

/* =========================================================================
   PAGE DE FOND (article) : l'image pleine largeur mène, le texte suit
   ========================================================================= */

.cm-ouverture {
  padding-block: clamp(1.5rem, 4vw, 3.5rem) clamp(1.5rem, 3vw, 2.6rem);
  max-width: 52rem;
}
.cm-ouverture__chapo {
  font-size: clamp(1.05rem, 1rem + 0.5vw, 1.3rem);
  color: var(--encre-douce);
  margin-top: 1.1rem;
  max-width: 54ch;
}
.cm-indications {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.6rem;
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--encre-douce);
}

/* Planche : image hors passe-partout, largeur de la fenêtre.
   Elle est placée en ENFANT DIRECT de .cm-scene (pas de 100vw, pas de
   débordement horizontal possible). */
.cm-planche { margin: 0; }
.cm-planche__vue {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--fond-creux);
}
.cm-planche__vue--haute { aspect-ratio: 4 / 3; }
.cm-planche__cartel {
  max-width: var(--mesure-large);
  margin-inline: auto;
  padding: 0.8rem var(--marge-page) 0;
  font-size: 0.78rem;
  color: var(--encre-douce);
}

/* Diptyque : deux images côte à côte. */
.cm-diptyque {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gouttiere);
  margin: var(--souffle) 0 0;
}
.cm-diptyque figure { margin: 0; }
.cm-diptyque img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--fond-creux);
}
.cm-diptyque figcaption {
  margin-top: 0.7rem;
  font-size: 0.78rem;
  color: var(--encre-douce);
}

/* Colonne de lecture : étroite, décalée à gauche du mur. */
.cm-colonne {
  max-width: var(--mesure);
  margin-top: var(--souffle);
}
.cm-colonne--centree { margin-inline: auto; }
.cm-colonne h2 { margin-top: 2.4rem; }
.cm-colonne h3 { margin-top: 1.9rem; }
.cm-colonne h2:first-child,
.cm-colonne h3:first-child { margin-top: 0; }
.cm-colonne ul, .cm-colonne ol { padding-left: 1.15rem; }
.cm-colonne li { margin-bottom: 0.45em; }

.cm-exergue {
  margin: 2.2rem 0;
  padding-left: 1.3rem;
  border-left: 3px solid var(--accent);
  font-family: var(--titre-police);
  font-size: clamp(1.2rem, 1rem + 0.9vw, 1.7rem);
  line-height: 1.3;
}
.cm-exergue cite {
  display: block;
  margin-top: 0.8rem;
  font-family: var(--texte-police);
  font-size: 0.78rem;
  font-style: normal;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--encre-douce);
}

/* Réserve : encadré de texte court sur fond clair. */
.cm-reserve {
  background: var(--vide);
  padding: clamp(1.2rem, 3vw, 2rem);
  margin: 2.4rem 0;
}
.cm-reserve > :last-child { margin-bottom: 0; }

.cm-etapes { padding-left: 1.2rem; }
.cm-etapes li { margin-bottom: 0.65em; }

.cm-liens {
  display: grid;
  gap: 0.7rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.cm-liens a { color: var(--encre); }

/* Tableau : toujours dans un conteneur à défilement propre. */
.cm-defile {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 2.2rem 0;
  border-top: var(--filet);
  border-bottom: var(--filet);
}
.cm-defile table {
  border-collapse: collapse;
  width: 100%;
  min-width: 34rem;
  font-size: 0.92rem;
}
.cm-defile th, .cm-defile td {
  text-align: left;
  padding: 0.65rem 1rem 0.65rem 0;
  border-bottom: 1px solid var(--trait);
  vertical-align: top;
}
.cm-defile th {
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--encre-douce);
}
.cm-defile tr:last-child td { border-bottom: 0; }

/* =========================================================================
   APPUIS : liens et boutons
   ========================================================================= */

.cm-poursuivre {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 0.25rem;
}
.cm-poursuivre::after { content: "\203A"; font-size: 1.1em; line-height: 1; }
.cm-poursuivre:hover { color: var(--encre); border-bottom-color: var(--encre); }

.cm-tourne {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  list-style: none;
  margin: var(--souffle) 0 0;
  padding: 0;
  align-items: center;
}
.cm-tourne a, .cm-tourne span {
  display: inline-block;
  min-width: 2.6rem;
  text-align: center;
  padding: 0.55rem 0.8rem;
  border: var(--filet);
  text-decoration: none;
  color: var(--encre);
  font-size: 0.85rem;
}
.cm-tourne a:hover { border-color: var(--accent); color: var(--accent); }
.cm-tourne [aria-current="page"] {
  background: var(--encre);
  color: var(--fond-clair);
  border-color: var(--encre);
}

/* =========================================================================
   SOCLE (pied de page)
   ========================================================================= */

.cm-socle {
  margin-top: var(--souffle);
  background: var(--fond-creux);
  border-top: var(--filet);
  padding-block: clamp(2.4rem, 6vw, 4.5rem);
}
.cm-socle__rang {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: clamp(1.6rem, 4vw, 3.5rem);
}
.cm-socle h2 { font-size: 1.2rem; margin-bottom: 0.9rem; }
.cm-socle ul { list-style: none; margin: 0; padding: 0; }
.cm-socle li { margin-bottom: 0.5rem; }
.cm-socle a { color: var(--encre); text-decoration: none; border-bottom: 1px solid transparent; }
.cm-socle a:hover { border-bottom-color: var(--accent); color: var(--accent); }
.cm-socle p { color: var(--encre-douce); font-size: 0.9rem; }
.cm-socle__bas {
  margin-top: clamp(2rem, 5vw, 3.5rem);
  padding-top: 1.2rem;
  border-top: var(--filet);
  font-size: 0.75rem;
  color: var(--encre-douce);
}

/* =========================================================================
   RESPONSIVE : la grille se replie, jamais de débordement horizontal
   ========================================================================= */

@media (max-width: 960px) {
  .cm-cimaise { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cm-tirage,
  .cm-tirage--moyen,
  .cm-tirage--petit { grid-column: span 2; }
  .cm-tirage--large,
  .cm-tirage--plein { grid-column: span 4; }
  .cm-tirage--decale  { margin-top: calc(var(--decalage) / 2); }
  .cm-tirage--decale2 { margin-top: calc(var(--decalage) / 2); }
}

@media (max-width: 620px) {
  .cm-cimaise { grid-template-columns: minmax(0, 1fr); }
  .cm-tirage,
  .cm-tirage--petit,
  .cm-tirage--moyen,
  .cm-tirage--large,
  .cm-tirage--plein { grid-column: span 1; }
  .cm-tirage--decale,
  .cm-tirage--decale2 { margin-top: 0; }
  .cm-diptyque { grid-template-columns: minmax(0, 1fr); }
  .cm-tirage__cadrage--haut { aspect-ratio: 3 / 4; }
  .cm-accroche__vue { aspect-ratio: 4 / 3; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  .cm-tirage:hover .cm-tirage__vue { transform: none; }
}

/* =========================================================================
   DYUDO — HOME ÉDITORIALE
   La home utilise une identité propre au journal : photo pleine largeur,
   rubriques visibles immédiatement, puis flux de lecture. Les pages d'articles
   conservent le vocabulaire cm- du squelette de galerie.
   ========================================================================= */

body.dy-home {
  --fond: #f6f3ec;
  --fond-creux: #173c35;
  --fond-clair: #fffdf8;
  --encre: #102d28;
  --encre-douce: #5c716b;
  --accent: #c8794d;
  --accent-appuye: #9f4f2d;
  --trait: #d8d2c7;
  --vide: #ebe5da;
  --dy-shell: 1380px;
  background: var(--fond);
  color: var(--encre);
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  font-size: clamp(1rem, .96rem + .18vw, 1.08rem);
  line-height: 1.55;
}

.dy-home h1,
.dy-home h2,
.dy-home h3,
.dy-home strong {
  font-family: "Iowan Old Style", "Baskerville", "Times New Roman", serif;
}

.dy-home h1 { font-size: clamp(3rem, 6vw, 7rem); letter-spacing: -.045em; line-height: .88; }
.dy-home h2 { font-size: clamp(1.8rem, 2.6vw, 3rem); letter-spacing: -.035em; }
.dy-home h3 { font-size: clamp(1.15rem, 1.35vw, 1.55rem); letter-spacing: -.018em; }
.dy-home a { color: inherit; }

.dy-shell {
  width: min(100% - 2.4rem, var(--dy-shell));
  margin-inline: auto;
}

.dy-skip {
  position: absolute;
  left: -9999px;
  top: 1rem;
  z-index: 20;
  padding: .7rem 1rem;
  border-radius: 999px;
  background: var(--encre);
  color: var(--fond-clair);
}
.dy-skip:focus { left: 1rem; }

.dy-header {
  background: rgba(246, 243, 236, .94);
  border-bottom: 1px solid var(--trait);
  position: relative;
  z-index: 5;
}
.dy-header__row {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.dy-brand {
  display: inline-flex;
  align-items: center;
  gap: .72rem;
  color: var(--encre);
  text-decoration: none;
  flex: 0 0 auto;
}
.dy-brand__mark {
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: var(--encre);
  color: var(--fond-clair);
  font-family: "Iowan Old Style", Georgia, serif;
  font-size: 1.3rem;
}
.dy-brand strong { display: block; font-size: 1.55rem; line-height: .92; }
.dy-brand small {
  display: block;
  margin-top: .25rem;
  color: var(--encre-douce);
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.dy-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(.8rem, 1.9vw, 2rem);
  margin-inline: auto;
  white-space: nowrap;
}
.dy-nav a,
.dy-header__contact {
  color: var(--encre);
  font-size: .69rem;
  font-weight: 700;
  letter-spacing: .095em;
  text-decoration: none;
  text-transform: uppercase;
}
.dy-nav a { padding-block: .35rem; border-bottom: 2px solid transparent; }
.dy-nav a:hover,
.dy-nav a[aria-current="page"] { color: var(--accent-appuye); border-bottom-color: var(--accent); }
.dy-header__contact { color: var(--accent-appuye); }
.dy-header__contact span { display: inline-block; margin-left: .22rem; font-size: 1rem; }

.dy-breadcrumb {
  display: flex;
  gap: .55rem;
  align-items: center;
  padding-block: .9rem .55rem;
  color: var(--encre-douce);
  font-size: .72rem;
}
.dy-breadcrumb a { text-decoration: none; border-bottom: 1px solid var(--trait); }

.dy-hero {
  position: relative;
  min-height: 360px;
  max-height: 420px;
  overflow: hidden;
  background: var(--fond-creux);
}
.dy-hero__image,
.dy-hero__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.dy-hero__image { object-fit: cover; object-position: center; }
.dy-hero__shade {
  background: linear-gradient(90deg, rgba(10, 31, 27, .92) 0%, rgba(10, 31, 27, .7) 34%, rgba(10, 31, 27, .08) 73%, rgba(10, 31, 27, .14) 100%);
}
.dy-hero__content {
  position: relative;
  z-index: 1;
  min-height: inherit;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  padding-block: clamp(2.8rem, 6vw, 5.5rem);
  color: var(--fond-clair);
}
.dy-hero__copy { max-width: 42rem; }
.dy-kicker {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin: 0 0 1rem;
  color: #f1b48f;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.dy-kicker span { width: 1.8rem; height: 1px; background: currentColor; }
.dy-kicker--dark { color: var(--accent-appuye); }
.dy-hero h1 em { color: #f1b48f; font-style: normal; }
.dy-hero__intro {
  max-width: 36rem;
  margin: 1.35rem 0 1.5rem;
  color: rgba(255, 253, 248, .82);
  font-size: clamp(1.02rem, 1.2vw, 1.25rem);
}
.dy-arrow-link,
.dy-text-link {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  color: inherit;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .11em;
  text-decoration: none;
  text-transform: uppercase;
}
.dy-arrow-link { padding-bottom: .45rem; border-bottom: 1px solid #f1b48f; }
.dy-arrow-link span,
.dy-text-link span { font-size: 1.15rem; line-height: .7; }
.dy-hero__meta {
  display: grid;
  grid-template-columns: auto minmax(10rem, 14rem);
  gap: .7rem;
  align-items: start;
  max-width: 18rem;
  padding-top: .8rem;
  border-top: 1px solid rgba(255, 253, 248, .45);
  color: rgba(255, 253, 248, .8);
}
.dy-hero__meta > span { color: #f1b48f; font-family: Georgia, serif; font-size: 1.2rem; }
.dy-hero__meta p { margin: 0; font-size: .8rem; line-height: 1.45; }

.dy-section { padding-top: clamp(3.2rem, 6vw, 6rem); }
.dy-section--categories { padding-top: 1rem; }
.dy-section--categories .dy-section__head { margin-bottom: 1rem; }
.dy-section--categories h2 { max-width: 26ch; font-size: clamp(1.6rem, 2.2vw, 2.35rem); }
.dy-section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 1.6rem;
  padding-bottom: .95rem;
  border-bottom: 1px solid var(--trait);
}
.dy-section__head .dy-kicker { margin-bottom: .55rem; }
.dy-section__aside {
  max-width: 24rem;
  margin: 0;
  color: var(--encre-douce);
  font-size: .86rem;
  text-align: right;
}

.dy-category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.dy-category {
  position: relative;
  display: block;
  min-width: 0;
  overflow: hidden;
  aspect-ratio: 1.45 / 1;
  border-radius: 1.05rem;
  background: var(--fond-creux);
  color: var(--fond-clair);
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(16, 45, 40, .08);
}
.dy-category::after,
.dy-feature a::after,
.dy-archive a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 28%, rgba(8, 30, 26, .78) 100%);
}
.dy-category img,
.dy-feature img,
.dy-archive img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 240ms ease, filter 240ms ease;
}
.dy-category:hover img,
.dy-feature a:hover img,
.dy-archive a:hover img { transform: scale(1.045); filter: saturate(1.08); }
.dy-category__body {
  position: absolute;
  inset: auto 1.1rem 1rem;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: .2rem .8rem;
}
.dy-category__body strong { font-size: clamp(1.18rem, 1.45vw, 1.55rem); line-height: 1; }
.dy-category__body small { color: rgba(255, 253, 248, .76); font-size: .75rem; grid-column: 1; }
.dy-category__body i { grid-column: 2; grid-row: 1 / span 2; font-size: 1.35rem; font-style: normal; }

.dy-feature-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1.25rem 1rem;
}
.dy-feature { min-width: 0; grid-column: span 2; }
.dy-feature--lead { grid-column: span 6; }
.dy-feature a,
.dy-archive a {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: 1rem;
  background: var(--fond-creux);
  color: var(--fond-clair);
  text-decoration: none;
}
.dy-feature__tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 1;
  padding: .35rem .55rem;
  border-radius: 999px;
  background: #f1b48f;
  color: var(--encre);
  font-size: .59rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.dy-feature h3,
.dy-archive h3 {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  z-index: 1;
  margin: 0;
  color: var(--fond-clair);
}
.dy-feature--lead h3 { font-size: clamp(1.55rem, 2.3vw, 2.7rem); max-width: 20ch; }
.dy-feature > p,
.dy-feature > time,
.dy-archive > time {
  display: block;
  color: var(--encre-douce);
  font-size: .78rem;
}
.dy-feature > p { margin: .75rem 0 .35rem; }
.dy-feature > time,
.dy-archive > time { font-weight: 700; letter-spacing: .07em; }

.dy-archive-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.dy-archive a { aspect-ratio: 1 / 1; }
.dy-archive h3 { font-size: clamp(1.08rem, 1.3vw, 1.45rem); }
.dy-archive > time { margin-top: .7rem; }

.dy-section--links { padding-bottom: clamp(4rem, 8vw, 8rem); }
.dy-link-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--trait);
  border-bottom: 1px solid var(--trait);
}
.dy-link-row a {
  display: flex;
  justify-content: space-between;
  gap: .5rem;
  padding: 1rem .9rem;
  color: var(--encre);
  font-size: .78rem;
  font-weight: 700;
  text-decoration: none;
  border-right: 1px solid var(--trait);
}
.dy-link-row a:first-child { border-left: 1px solid var(--trait); }
.dy-link-row a:hover { background: var(--vide); color: var(--accent-appuye); }

.dy-footer {
  padding-block: 3.5rem 1.3rem;
  background: var(--encre);
  color: var(--fond-clair);
}
.dy-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
}
.dy-brand--footer { color: var(--fond-clair); }
.dy-brand--footer .dy-brand__mark { background: #f1b48f; color: var(--encre); }
.dy-brand--footer small,
.dy-footer p { color: rgba(255, 253, 248, .63); }
.dy-footer p { max-width: 26rem; margin: 1.2rem 0 .6rem; font-size: .85rem; }
.dy-footer__mail { color: #f1b48f; font-size: .84rem; }
.dy-footer h2 { margin: 0 0 .8rem; color: #f1b48f; font-family: "Avenir Next", "Segoe UI", sans-serif; font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.dy-footer__grid > div:not(:first-child) a { display: block; margin-bottom: .45rem; color: rgba(255, 253, 248, .82); font-size: .82rem; text-decoration: none; }
.dy-footer__grid a:hover { color: #f1b48f; }
.dy-footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 253, 248, .2);
  color: rgba(255, 253, 248, .54);
  font-size: .7rem;
}
.dy-footer__bottom a { color: inherit; }

@media (max-width: 960px) {
  .dy-header__row { flex-wrap: wrap; padding-block: .8rem; }
  .dy-nav { order: 3; width: 100%; justify-content: flex-start; overflow-x: auto; padding-bottom: .2rem; }
  .dy-category-grid,
  .dy-archive-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dy-feature { grid-column: span 6; }
  .dy-feature--lead { grid-column: span 12; }
}

@media (max-width: 620px) {
  .dy-shell { width: min(100% - 1.4rem, var(--dy-shell)); }
  .dy-header__contact { display: none; }
  .dy-hero { min-height: 480px; max-height: none; }
  .dy-hero__content { align-items: flex-end; padding-block: 2.5rem; }
  .dy-hero__meta { display: none; }
  .dy-section__head { display: block; }
  .dy-section__aside { margin-top: .65rem; text-align: left; }
  .dy-category-grid,
  .dy-feature-grid,
  .dy-archive-grid,
  .dy-link-row { grid-template-columns: minmax(0, 1fr); }
  .dy-feature,
  .dy-feature--lead { grid-column: span 1; }
  .dy-feature--lead h3 { font-size: 1.65rem; }
  .dy-link-row a,
  .dy-link-row a:first-child { border-left: 1px solid var(--trait); border-right: 1px solid var(--trait); }
  .dy-footer__grid { grid-template-columns: 1fr 1fr; }
  .dy-footer__grid > div:first-child { grid-column: span 2; }
  .dy-footer__bottom { flex-wrap: wrap; }
}

/* =========================================================================
   DYUDO HOME : média photo contemporain
   Préfixe dédié : la galerie historique cm- reste intacte sur les articles.
   ========================================================================= */

.dy-home {
  --dy-ink: #17231f;
  --dy-muted: #64716c;
  --dy-paper: #f6f2eb;
  --dy-card: #fffdfa;
  --dy-line: #d9d8cf;
  --dy-forest: #153a32;
  --dy-forest-deep: #0c2823;
  --dy-coral: #d86f4e;
  --dy-gold: #e7a24e;
  background: var(--dy-paper);
  color: var(--dy-ink);
  font-family: var(--texte-police);
  line-height: 1.5;
}

.dy-home *,
.dy-home *::before,
.dy-home *::after { box-sizing: border-box; }

.dy-home a { color: inherit; }
.dy-home img { max-width: 100%; }
.dy-shell { width: min(100% - 2.4rem, 1320px); margin-inline: auto; }

.dy-skip {
  position: absolute;
  left: -9999px;
  top: 0.7rem;
  z-index: 20;
  padding: 0.65rem 0.9rem;
  background: var(--dy-gold);
  color: var(--dy-ink);
  font-weight: 700;
}
.dy-skip:focus { left: 0.8rem; }

.dy-header {
  position: relative;
  z-index: 5;
  background: rgba(246, 242, 235, 0.96);
  border-bottom: 1px solid var(--dy-line);
}
.dy-header__row {
  min-height: 82px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.5rem;
}
.dy-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--dy-ink);
  text-decoration: none;
  white-space: nowrap;
}
.dy-brand__mark {
  display: grid;
  place-items: center;
  width: 2.55rem;
  height: 2.55rem;
  border-radius: 50%;
  background: var(--dy-forest);
  color: #f8e9d0;
  font-family: var(--titre-police);
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1;
}
.dy-brand strong {
  display: block;
  font-family: var(--titre-police);
  font-size: 1.35rem;
  line-height: 1;
}
.dy-brand small {
  display: block;
  margin-top: 0.25rem;
  color: var(--dy-muted);
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.dy-nav {
  display: flex;
  justify-content: center;
  gap: clamp(0.9rem, 2vw, 2rem);
  min-width: 0;
}
.dy-nav a,
.dy-header__contact {
  color: var(--dy-ink);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}
.dy-nav a { padding-block: 0.35rem; border-bottom: 2px solid transparent; }
.dy-nav a:hover,
.dy-nav a[aria-current="page"] { border-bottom-color: var(--dy-coral); color: var(--dy-coral); }
.dy-header__contact {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.72rem 0.95rem;
  border: 1px solid var(--dy-ink);
  border-radius: 999px;
}
.dy-header__contact span,
.dy-arrow-link span,
.dy-text-link span { color: var(--dy-coral); font-size: 1rem; line-height: 0; }
.dy-header__contact:hover { background: var(--dy-forest); border-color: var(--dy-forest); color: #fff8ef; }

.dy-breadcrumb {
  display: flex;
  gap: 0.65rem;
  padding-block: 0.8rem;
  color: var(--dy-muted);
  font-size: 0.72rem;
}
.dy-breadcrumb a { text-decoration: none; }
.dy-breadcrumb a:hover { color: var(--dy-coral); }

.dy-hero {
  position: relative;
  height: clamp(360px, 38vw, 500px);
  overflow: hidden;
  background: var(--dy-forest-deep);
  color: #fff8ef;
}
.dy-hero__image,
.dy-hero__shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.dy-hero__image { object-fit: cover; object-position: center; }
.dy-hero__shade {
  background: linear-gradient(90deg, rgba(7, 21, 18, 0.88) 0%, rgba(10, 29, 24, 0.66) 34%, rgba(10, 29, 24, 0.16) 72%, rgba(10, 29, 24, 0.05) 100%);
}
.dy-hero__content {
  position: relative;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  padding-block: clamp(2.3rem, 5vw, 4.4rem);
}
.dy-hero__copy { max-width: 39rem; }
.dy-kicker {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 0.85rem;
  color: #f1c17d;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.dy-kicker span { width: 2.4rem; height: 1px; background: currentColor; }
.dy-kicker--dark { color: var(--dy-coral); }
.dy-hero h1 {
  margin: 0;
  color: #fff8ef;
  font-family: var(--titre-police);
  font-size: clamp(3.25rem, 8.5vw, 7.5rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.82;
}
.dy-hero h1 em { color: #f2b766; font-style: italic; }
.dy-hero__intro {
  max-width: 34rem;
  margin: 1.4rem 0 1.35rem;
  color: rgba(255, 248, 239, 0.84);
  font-size: clamp(1rem, 1rem + 0.35vw, 1.24rem);
  line-height: 1.45;
}
.dy-arrow-link,
.dy-text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: inherit;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
}
.dy-arrow-link { padding-bottom: 0.45rem; border-bottom: 1px solid #f1c17d; }
.dy-arrow-link:hover { color: #f1c17d; }
.dy-hero__meta {
  display: grid;
  grid-template-columns: auto minmax(9rem, 14rem);
  align-items: start;
  gap: 0.8rem;
  max-width: 18rem;
  padding-top: 0.7rem;
  border-top: 1px solid rgba(255, 248, 239, 0.5);
}
.dy-hero__meta > span { color: #f1c17d; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.12em; }
.dy-hero__meta p { margin: 0; color: rgba(255, 248, 239, 0.72); font-size: 0.78rem; line-height: 1.45; }

.dy-section { padding-block: clamp(3.5rem, 6vw, 6.6rem); }
.dy-section--categories { padding-top: clamp(2.6rem, 5vw, 4.7rem); }
.dy-section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 1.55rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--dy-line);
}
.dy-section h2 {
  max-width: 22ch;
  color: var(--dy-ink);
  font-family: var(--titre-police);
  font-size: clamp(2rem, 3.5vw, 3.65rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 0.98;
}
.dy-section__aside {
  max-width: 22rem;
  margin: 0 0 0.1rem;
  color: var(--dy-muted);
  font-size: 0.86rem;
  line-height: 1.55;
}
.dy-section__head > .dy-text-link { margin-bottom: 0.15rem; color: var(--dy-ink); }
.dy-section__head > .dy-text-link:hover { color: var(--dy-coral); }

.dy-category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}
.dy-category {
  display: block;
  overflow: hidden;
  background: var(--dy-card);
  border: 1px solid var(--dy-line);
  border-radius: 1rem;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.dy-category > img {
  width: 100%;
  aspect-ratio: 5 / 3;
  object-fit: cover;
  transition: transform 300ms ease;
}
.dy-category__body {
  position: relative;
  display: block;
  min-height: 6.2rem;
  padding: 0.95rem 2.6rem 1rem 1rem;
}
.dy-category__body strong { display: block; color: var(--dy-ink); font-family: var(--titre-police); font-size: 1.3rem; line-height: 1; }
.dy-category__link { color: inherit; text-decoration: none; }
.dy-category__link:hover { color: var(--dy-coral); }
.dy-category__body small { display: block; margin-top: 0.45rem; color: var(--dy-muted); font-size: 0.76rem; }
.dy-category__body i { position: absolute; right: 1rem; bottom: 1rem; color: var(--dy-coral); font-size: 1.1rem; font-style: normal; }
.dy-category:hover { transform: translateY(-4px); box-shadow: 0 1rem 2rem rgba(23, 35, 31, 0.1); }
.dy-category:hover > img { transform: scale(1.04); }

.dy-feature-grid {
  display: grid;
  grid-template-columns: 1.35fr repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}
.dy-feature,
.dy-archive {
  min-width: 0;
}
.dy-feature > a,
.dy-archive > a { display: block; color: var(--dy-ink); text-decoration: none; }
.dy-feature img,
.dy-archive img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 0.85rem;
  background: #d7d5cb;
  transition: transform 250ms ease, filter 250ms ease;
}
.dy-feature:hover img,
.dy-archive:hover img { transform: scale(1.018); filter: saturate(1.08); }
.dy-feature__tag {
  display: block;
  margin-top: 0.9rem;
  color: var(--dy-coral);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.dy-feature h3,
.dy-archive h3 {
  margin-top: 0.45rem;
  color: var(--dy-ink);
  font-family: var(--titre-police);
  font-size: clamp(1.22rem, 1.05rem + 0.55vw, 1.7rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.04;
}
.dy-feature h3 a,
.dy-archive h3 a { color: inherit; text-decoration: none; }
.dy-feature h3 a:hover,
.dy-archive h3 a:hover { color: var(--dy-coral); }
.dy-feature--lead h3 { font-size: clamp(1.7rem, 1.3rem + 1.1vw, 2.55rem); }
.dy-feature p { margin: 0.7rem 0 0; color: var(--dy-muted); font-size: 0.87rem; line-height: 1.5; }
.dy-feature time,
.dy-archive time { display: block; margin-top: 0.7rem; color: var(--dy-muted); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; }
.dy-feature > a:hover h3,
.dy-archive > a:hover h3 { color: var(--dy-coral); }

.dy-section--archive { border-top: 1px solid var(--dy-line); }
.dy-archive-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.9rem; }
.dy-archive h3 { font-size: clamp(1.15rem, 1rem + 0.35vw, 1.45rem); }
.dy-section--links { padding-top: 0; }
.dy-link-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--dy-line); border-bottom: 1px solid var(--dy-line); }
.dy-link-row a { display: flex; justify-content: space-between; gap: 0.7rem; padding: 1rem 0.8rem; color: var(--dy-ink); font-size: 0.83rem; font-weight: 700; text-decoration: none; border-right: 1px solid var(--dy-line); }
.dy-link-row a:first-child { border-left: 1px solid var(--dy-line); }
.dy-link-row a span { color: var(--dy-coral); font-size: 1rem; }
.dy-link-row a:hover { background: #eee7dc; color: var(--dy-coral); }

.dy-footer { background: var(--dy-forest-deep); color: #f7eddf; }
.dy-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2rem; padding-block: 3.5rem; }
.dy-brand--footer { color: #fff8ef; }
.dy-brand--footer .dy-brand__mark { background: #e3a45a; color: var(--dy-forest-deep); }
.dy-footer p { max-width: 20rem; margin: 1.1rem 0 0.8rem; color: rgba(247, 237, 223, 0.7); font-size: 0.9rem; }
.dy-footer__mail { color: #f1c17d; font-size: 0.85rem; }
.dy-footer h2 { margin: 0 0 0.8rem; color: #f1c17d; font-family: var(--texte-police); font-size: 0.68rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.dy-footer__grid > div > a:not(.dy-brand):not(.dy-footer__mail) { display: block; width: fit-content; margin: 0.45rem 0; color: rgba(247, 237, 223, 0.82); font-size: 0.86rem; text-decoration: none; }
.dy-footer a:hover { color: #fff8ef !important; }
.dy-footer__bottom { display: flex; justify-content: space-between; gap: 1rem; padding-block: 1rem; border-top: 1px solid rgba(247, 237, 223, 0.2); color: rgba(247, 237, 223, 0.56); font-size: 0.7rem; }
.dy-footer__bottom a { color: inherit; }

@media (max-width: 1050px) {
  .dy-header__row { grid-template-columns: auto 1fr auto; gap: 0.8rem; }
  .dy-nav { gap: 0.85rem; }
  .dy-nav a { font-size: 0.64rem; letter-spacing: 0.04em; }
  .dy-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dy-feature--lead { grid-column: span 2; }
  .dy-archive-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .dy-shell { width: min(100% - 1.4rem, 1320px); }
  .dy-header__row { grid-template-columns: 1fr auto; min-height: 72px; }
  .dy-nav { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; overflow-x: auto; padding-bottom: 0.65rem; }
  .dy-header__contact { font-size: 0.62rem; padding: 0.6rem 0.7rem; }
  .dy-breadcrumb { padding-block: 0.65rem; }
  .dy-hero { height: 470px; }
  .dy-hero__shade { background: linear-gradient(90deg, rgba(7, 21, 18, 0.86), rgba(10, 29, 24, 0.36)); }
  .dy-hero__content { align-items: flex-start; flex-direction: column; justify-content: flex-end; padding-bottom: 2rem; }
  .dy-hero__meta { display: none; }
  .dy-section__head { align-items: flex-start; flex-direction: column; gap: 0.7rem; }
  .dy-section__aside { margin: 0; }
  .dy-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dy-link-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dy-link-row a:nth-child(odd) { border-left: 1px solid var(--dy-line); }
  .dy-link-row a:nth-child(-n + 2) { border-bottom: 1px solid var(--dy-line); }
  .dy-footer__grid { grid-template-columns: 1fr 1fr; }
  .dy-footer__grid > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 520px) {
  .dy-brand__mark { width: 2.2rem; height: 2.2rem; font-size: 1.2rem; }
  .dy-brand strong { font-size: 1.2rem; }
  .dy-brand small { font-size: 0.53rem; }
  .dy-header__contact { max-width: 7.2rem; text-align: center; }
  .dy-hero { height: 455px; }
  .dy-hero h1 { font-size: clamp(3.2rem, 17vw, 5rem); }
  .dy-hero__intro { font-size: 0.98rem; }
  .dy-category-grid,
  .dy-feature-grid,
  .dy-archive-grid { grid-template-columns: minmax(0, 1fr); }
  .dy-feature--lead { grid-column: auto; }
  .dy-link-row { grid-template-columns: minmax(0, 1fr); }
  .dy-link-row a,
  .dy-link-row a:nth-child(odd) { border-left: 1px solid var(--dy-line); border-right: 1px solid var(--dy-line); border-bottom: 1px solid var(--dy-line); }
  .dy-link-row a:last-child { border-bottom: 0; }
  .dy-footer__grid { grid-template-columns: minmax(0, 1fr); }
  .dy-footer__grid > div:first-child { grid-column: auto; }
  .dy-footer__bottom { align-items: flex-start; flex-direction: column; }
}

/* Derniers garde-fous de la home : la première rangée de rubriques doit être
   visible dans la première fenêtre, conformément au contrat du réseau. */
@media (min-width: 761px) {
  .dy-hero { height: 420px; max-height: none; }
  .dy-hero__content { padding-block: 1.6rem; }
  .dy-hero h1 { font-size: clamp(3.4rem, 6.2vw, 6.6rem); }
  .dy-section--categories { padding-top: 0; }
  .dy-section--categories h2 { max-width: 26ch; font-size: clamp(1.6rem, 2.2vw, 2.35rem); }
}

/* Retire les calques du précédent gabarit : les cartes de cette home ne
   sont plus des liens plein bloc et doivent rester dans leur propre boîte. */
.dy-home .dy-category { aspect-ratio: auto; color: var(--dy-ink); box-shadow: none; }
.dy-home .dy-category::after,
.dy-home .dy-feature a::after,
.dy-home .dy-archive a::after { content: none; }
.dy-home .dy-category > img,
.dy-home .dy-feature > img,
.dy-home .dy-archive > img { height: auto; }
.dy-home .dy-feature > a,
.dy-home .dy-archive > a { position: static; display: inline; overflow: visible; aspect-ratio: auto; border-radius: 0; background: none; color: inherit; }
.dy-home .dy-feature h3,
.dy-home .dy-archive h3 { position: static; margin: 0.45rem 0 0; color: var(--dy-ink); }
.dy-home .dy-feature__tag { position: static; padding: 0; border-radius: 0; background: none; }
.dy-home .dy-feature,
.dy-home .dy-feature--lead { grid-column: auto; }
