/* ==========================================================================
   iD.LYS Groupe — feuille de style unique
   1. Fondations   2. En-tête   3. Composants de page   4. Pied de page
   ========================================================================== */

/* ============================ 1. FONDATIONS ============================= */

:root {
  --ic-noir: #1b1b1c;
  --ic-noir-2: #141415;
  --ic-rouge: #df163c;
  --ic-rouge-fonce: #b81031;
  --ic-blanc: #fff;
  --ic-creme: #f7f6f4;
  --ic-gris-l: #e9e8e5;
  --ic-bord: #eceae7;
  --ic-texte: #4a4a4f;
  --ic-texte-2: #6e6e77; /* 5,05:1 sur blanc, 4,67:1 sur crème (l'ancien #7c7c83 était à 4,14:1) */
  /* DIN Pro n'est pas chargée : voir assets/fonts/README.md pour l'héberger */
  --ic-font: "DIN Pro", -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ic-header-h: 74px;
}

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

/* Lien d'évitement : premier élément focalisable de chaque page */
.skip-link {
  position: absolute;
  top: 0;
  left: -9999px;
  z-index: 2000;
  padding: 12px 20px;
  border-radius: 0 0 8px 0;
  background: var(--ic-rouge);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  left: 0;
}

/* Texte réservé aux lecteurs d'écran */
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

body {
  margin: 0;
  font-family: var(--ic-font);
  line-height: 1.6;
  color: var(--ic-noir);
  background: var(--ic-blanc);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
ul {
  margin: 0;
  padding: 0;
}

/* `picture` est inline par défaut : sans display:block il ne se comporte pas
   comme l'image qu'il remplace (largeur intrinsèque, espace de ligne parasite,
   aspect-ratio de l'enfant mal résolu dans un conteneur flex). */
img,
svg,
picture {
  display: block;
  max-width: 100%;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--ic-rouge);
  outline-offset: 3px;
  border-radius: 4px;
}

[id] {
  scroll-margin-top: calc(var(--ic-header-h) + 20px);
}

.ic-wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Titres et intertitres partagés */
.ic-h2 {
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  letter-spacing: 0.02em;
  margin-bottom: 16px;
}

.ic-soustitre {
  max-width: 62ch;
  margin-bottom: 46px;
  color: var(--ic-texte);
}

.ic-eyebrow {
  display: flex;
  align-items: center;
  margin-bottom: 22px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ic-texte-2);
}

/* Puce d'accompagnement : soit 3 barres, soit un picto SVG */
.ic-tick {
  display: inline-flex;
  align-items: flex-end;
  gap: 4px;
  margin-right: 14px;
  color: var(--ic-rouge);
  transform: translateY(-2px);
}

.ic-tick i {
  width: 6px;
  border-radius: 4px;
  background: currentColor;
}

.ic-tick i:nth-child(1) { height: 11px; }
.ic-tick i:nth-child(2) { height: 20px; }
.ic-tick i:nth-child(3) { height: 15px; }

/* =============================== 2. EN-TÊTE ============================= */

/* --- Version desktop (≥ 861px) --- */
#idh-desktop {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgb(255 255 255 / 92%);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--ic-bord);
}

.idh-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  max-width: 1160px;
  height: var(--ic-header-h);
  margin: 0 auto;
  padding: 0 24px;
}

.idh-logo img {
  height: 32px;
  width: auto;
}

.idh-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.idh-drop {
  position: relative;
}

.idh-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 10px 16px;
  border: 0;
  border-radius: 6px;
  background: none;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1;
  color: var(--ic-noir);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.idh-link:hover {
  color: var(--ic-rouge);
  background: #faf3f4;
}

.idh-chev {
  width: 11px;
  height: 8px;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.idh-drop:hover .idh-chev,
.idh-drop:focus-within .idh-chev {
  transform: rotate(180deg);
}

/* Ancré à droite du déclencheur : le panneau ne déborde jamais du viewport,
   même autour de 900–1250 px de large. */
.idh-mega {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 330px;
  padding: 10px;
  border: 1px solid var(--ic-bord);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 24px 60px rgb(27 27 28 / 14%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

/* Pont invisible entre le bouton et le panneau, pour ne pas perdre le survol */
.idh-mega::before {
  content: "";
  position: absolute;
  top: -14px;
  right: 0;
  left: 0;
  height: 14px;
}

.idh-drop:hover .idh-mega,
.idh-drop:focus-within .idh-mega {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.idh-mega-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.18s ease;
}

.idh-mega-item:hover {
  background: var(--ic-creme);
}

.idh-mega-item strong {
  display: block;
  font-size: 0.92rem;
  color: var(--ic-noir);
}

.idh-mega-item small {
  display: block;
  font-size: 0.8rem;
  color: var(--ic-texte);
}

.idh-dot {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  border-radius: 50%;
}

/* --- Version mobile (≤ 860px) --- */

/* La case à cocher pilote le panneau sans JavaScript. Elle reste focusable au
   clavier (Espace ouvre / ferme) ; l'anneau de focus est reporté sur le
   bouton hamburger, qui est sa seule représentation visible. */
.idhm-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.idhm-toggle:focus-visible ~ .idhm-bar .idhm-burger {
  outline: 2px solid var(--ic-rouge);
  outline-offset: 2px;
}

.idhm-bar {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 18px;
  background: rgb(255 255 255 / 95%);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--ic-bord);
}

.idhm-logo img {
  height: 28px;
  width: auto;
}

.idhm-burger {
  /* tabindex="-1" dans le HTML : cible de focus au retour d'Échap, sans
     ajouter d'arrêt dans le parcours clavier (la case à cocher le fournit) */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  margin-right: -8px;
  border-radius: 8px;
  cursor: pointer;
}

.idhm-burger span {
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: var(--ic-noir);
  transition: transform 0.3s ease, opacity 0.2s ease;
}

.idhm-toggle:checked ~ .idhm-bar .idhm-burger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.idhm-toggle:checked ~ .idhm-bar .idhm-burger span:nth-child(2) {
  opacity: 0;
}

.idhm-toggle:checked ~ .idhm-bar .idhm-burger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.idhm-overlay {
  position: fixed;
  inset: 0;
  z-index: 998;
  background: rgb(20 20 21 / 50%);
  opacity: 0;
  visibility: hidden;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.idhm-toggle:checked ~ .idhm-overlay {
  opacity: 1;
  visibility: visible;
}

.idhm-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 999;
  width: min(84vw, 340px);
  height: 100%;
  overflow-y: auto;
  padding: 88px 22px 40px;
  background: #fff;
  box-shadow: -16px 0 50px rgb(27 27 28 / 18%);
  transform: translateX(100%);
  /* visibility retire les liens du parcours clavier quand le panneau est
     fermé ; le délai la maintient le temps de l'animation de fermeture */
  visibility: hidden;
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s 0.32s;
}

.idhm-toggle:checked ~ .idhm-panel {
  transform: translateX(0);
  visibility: visible;
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}

.idhm-item {
  display: block;
  padding: 15px 12px;
  border-radius: 8px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ic-noir);
  text-decoration: none;
}

.idhm-item:hover {
  background: #faf3f4;
  color: var(--ic-rouge);
}

.idhm-group {
  margin: 6px 0;
  padding: 12px 0;
  border-top: 1px solid var(--ic-bord);
  border-bottom: 1px solid var(--ic-bord);
}

.idhm-group-title {
  display: block;
  padding: 4px 12px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ic-texte);
}

.idhm-sub {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
  font-size: 0.98rem;
  color: var(--ic-noir);
  text-decoration: none;
}

.idhm-sub:hover {
  background: var(--ic-creme);
}

.idhm-dot {
  width: 10px;
  height: 10px;
  flex-shrink: 0;
  border-radius: 50%;
}

/* --- Bascule desktop / mobile --- */
@media (max-width: 860px) {
  #idh-desktop { display: none; }
}

@media (min-width: 861px) {
  #idh-mobile { display: none; }
}

/* ======================== 3. COMPOSANTS DE PAGE ========================= */

/* --- Hero --- */
.ic-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(80px, 12vw, 150px) 0 clamp(70px, 9vw, 120px);
  background:
    radial-gradient(1100px 480px at 88% -10%, rgb(223 22 60 / 6%), transparent 60%),
    var(--ic-blanc);
}

.ic-hero-bars {
  position: absolute;
  right: clamp(-80px, -4vw, -30px);
  bottom: -12%;
  display: flex;
  align-items: flex-end;
  gap: clamp(18px, 2.4vw, 34px);
  height: 115%;
  pointer-events: none;
}

.ic-hero-bars i {
  width: clamp(54px, 7.5vw, 110px);
  border-radius: 999px;
  background: linear-gradient(180deg, rgb(223 22 60 / 16%), rgb(223 22 60 / 3%));
  transform-origin: bottom;
  animation: ic-rise 1.1s cubic-bezier(0.22, 0.9, 0.3, 1) both;
}

.ic-hero-bars i:nth-child(1) { height: 58%; animation-delay: 0.05s; }
.ic-hero-bars i:nth-child(2) { height: 96%; animation-delay: 0.18s; }
.ic-hero-bars i:nth-child(3) { height: 76%; animation-delay: 0.32s; }

@keyframes ic-rise {
  from { transform: scaleY(0); opacity: 0; }
  to   { transform: scaleY(1); opacity: 1; }
}

.ic-h1 {
  max-width: 21ch;
  font-weight: 900;
  font-size: clamp(1.75rem, 4.6vw, 3.7rem);
  line-height: 1.08;
  letter-spacing: 0.015em;
}

.ic-h1 em {
  font-style: normal;
  color: var(--ic-rouge);
}

.ic-lead {
  max-width: 58ch;
  margin-top: 26px;
  font-size: clamp(1rem, 1.35vw, 1.15rem);
  line-height: 1.7;
  color: var(--ic-texte);
}

.ic-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 38px;
}

.ic-btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 6px;
  background: var(--ic-rouge);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.ic-btn:hover {
  background: var(--ic-rouge-fonce);
  transform: translateY(-2px);
}

.ic-btn--ligne {
  background: none;
  border: 1px solid #cfcecb;
  color: var(--ic-noir);
}

.ic-btn--ligne:hover {
  background: none;
  border-color: var(--ic-rouge);
  color: var(--ic-rouge);
}

/* --- Chiffres clés --- */
.ic-stats {
  background: var(--ic-rouge);
  color: #fff;
}

.ic-stats-list {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
}

.ic-stats-list li {
  flex: 1 1 200px;
  padding: 34px 28px;
  border-left: 1px solid rgb(255 255 255 / 22%);
}

.ic-stats-list li:first-child {
  border-left: none;
}

.ic-stats-list strong {
  display: block;
  margin-bottom: 8px;
  font-weight: 900;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1;
}

.ic-stats-list span {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff; /* 4,86:1 sur le rouge — l'atténuation à 88 % tombait à 4,00:1 */
}

/* --- Le film --- */
.ic-video {
  padding: clamp(70px, 9vw, 110px) 0;
  background: var(--ic-noir);
}

.ic-video .ic-h2 { color: #fff; }
.ic-video .ic-soustitre { color: #c9c9ce; }

.ic-player {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 10px;
  outline: 1px solid #303035;
  background: #000;
  box-shadow: 0 30px 80px rgb(0 0 0 / 55%);
}

.ic-player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* --- Présentation --- */
.ic-presentation {
  padding: clamp(70px, 9vw, 110px) 0;
  background: var(--ic-creme);
}

.ic-pres-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.ic-presentation p {
  margin-bottom: 18px;
  line-height: 1.75;
  color: var(--ic-texte);
}

.ic-presentation p strong {
  color: var(--ic-noir);
}

.ic-marche {
  margin-bottom: 28px;
  padding: 4px 0 4px 20px;
  border-left: 4px solid var(--ic-rouge);
}

.ic-marche h3 {
  margin-bottom: 6px;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.04em;
}

.ic-marche p {
  margin: 0;
  font-size: 0.95rem;
}

/* --- Les entités --- */
.ic-entites {
  padding: clamp(70px, 9vw, 110px) 0 clamp(40px, 5vw, 60px);
}

.ic-row {
  --acc: var(--ic-rouge);

  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  padding: clamp(44px, 6vw, 70px) 0;
  border-top: 1px solid var(--ic-gris-l);
}

.ic-row:first-of-type {
  padding-top: 10px;
  border-top: none;
}

.ic-row--inverse .ic-row-media {
  order: 2;
}

.ic-row-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--acc), color-mix(in srgb, var(--acc) 62%, #1b1b1c));
}

.ic-row-media img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ic-row-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(150deg, color-mix(in srgb, var(--acc) 34%, transparent), transparent 62%);
}

.ic-row-kicker {
  display: block;
  margin-bottom: 18px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--acc);
}

.ic-row-logo {
  height: 36px;
  width: auto;
  margin-bottom: 20px;
}

.ic-row h3 {
  margin-bottom: 16px;
  font-weight: 700;
  font-size: clamp(1.05rem, 1.9vw, 1.35rem);
  line-height: 1.3;
  letter-spacing: 0.02em;
}

.ic-row p {
  margin-bottom: 20px;
  line-height: 1.7;
  color: var(--ic-texte);
}

.ic-row ul {
  margin-bottom: 26px;
  list-style: none;
}

.ic-row li {
  position: relative;
  margin-bottom: 9px;
  padding-left: 22px;
  font-size: 0.95rem;
  color: var(--ic-texte);
}

.ic-row li::before {
  content: "";
  position: absolute;
  top: 0.48em;
  left: 0;
  width: 12px;
  height: 5px;
  border-radius: 3px;
  background: var(--acc);
}

.ic-row-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border: 1.5px solid var(--acc-text, var(--acc));
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--acc-text, var(--acc));
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.ic-row-link::after {
  content: "\2192";
  transition: transform 0.25s ease;
}

.ic-row-link:hover {
  background: var(--acc-text, var(--acc));
  color: #fff;
  transform: translateY(-2px);
}

.ic-row-link:hover::after {
  transform: translateX(4px);
}

/* --- Nos valeurs --- */
.ic-valeurs {
  padding: clamp(70px, 9vw, 100px) 0;
  background: var(--ic-creme);
}

.ic-valeurs-list {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  list-style: none;
}

.ic-valeurs-list li {
  flex: 1 1 180px;
}

.ic-valeurs-list .ic-tick {
  display: flex;
  margin-bottom: 14px;
}

.ic-valeurs-list h3 {
  margin-bottom: 8px;
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.05em;
}

.ic-valeurs-list p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--ic-texte);
}

/* --- Actualités (rangée de la page d'accueil) ---
   Design repris du composant prévu dans la maquette d'origine. */
.ic-actus {
  padding: clamp(70px, 9vw, 110px) 0;
  background: var(--ic-blanc);
}

.ic-actus-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Carte d'actualité : vignette en tête (première image de l'article), puis
   corps texte. Le ratio est réservé en CSS → aucun décalage au chargement. */
.ic-actu {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--ic-gris-l);
  border-radius: 12px;
  text-decoration: none;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

/* height: auto est INDISPENSABLE. Les attributs width/height d'un <img> sont
   des « hints de présentation » : ils alimentent les propriétés CSS width et
   height, à une spécificité que n'importe quelle règle d'auteur dépasse. Sans
   height: auto ici, height="270" restait la hauteur utilisée, les deux
   dimensions étaient donc définies, et `aspect-ratio` était purement ignoré —
   la vignette faisait 354×270 (ratio 1,31) au lieu du 16/9 annoncé.
   Les attributs restent obligatoires : c'est eux qui réservent la place avant
   le décodage de l'image, donc le CLS à zéro. */
.ic-actu-vignette {
  aspect-ratio: 16 / 9;
  width: 100%;
  height: auto;
  object-fit: cover;
  background: var(--ic-creme);
}

.ic-actu-corps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-grow: 1;
  padding: 22px 24px 24px;
}

.ic-actu:hover {
  transform: translateY(-5px);
  border-color: var(--ic-rouge);
  box-shadow: 0 18px 40px rgb(27 27 28 / 8%);
}

/* Méta de carte : catégorie en signal, date discrète (voir .al-meta dans
   article.css — les deux listes doivent rester visuellement cohérentes). */
.ic-actu-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 10px;
  margin: 0;
}

.ic-actu-cat {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ic-rouge-fonce); /* 5,86:1 sur blanc — #df163c n'est qu'à 4,05:1 */
}

.ic-actu-meta time {
  font-size: 0.76rem;
  font-weight: 400;
  color: var(--ic-texte-2); /* #6e6e77 — 5,05:1 sur blanc */
  font-variant-numeric: tabular-nums;
}

.ic-actu h3 {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ic-noir);
}

.ic-actu-corps > p {
  flex-grow: 1;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--ic-texte);
}

/* Classe explicite, pas `.ic-actu span` : un sélecteur d'élément générique
   attrapait aussi .ic-actu-cat et lui collait la flèche du ::after. */
.ic-actu-lien {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--ic-noir);
}

.ic-actu-lien::after {
  content: " \2192";
}

.ic-actus .ic-cta-row {
  margin-top: 34px;
}

/* --- Pages légales --- */
.ic-legal {
  padding: clamp(60px, 8vw, 100px) 0 clamp(70px, 9vw, 110px);
}

.ic-legal-head {
  max-width: 760px;
  margin: 0 auto clamp(36px, 5vw, 56px);
}

/* Portrait d'auteur, aligné sur le libellé et le titre de la page auteur */
.ic-legal-head .ic-portrait {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  margin-bottom: 20px;
  background: var(--ic-creme);
}

.ic-legal h1 {
  margin-top: 10px;
  font-weight: 900;
  font-size: clamp(1.8rem, 4vw, 2.9rem);
  line-height: 1.1;
}

.ic-legal-body {
  max-width: 760px;
  margin: 0 auto;
}

.ic-legal-body h2 {
  margin: 40px 0 14px;
  padding-top: 26px;
  border-top: 1px solid var(--ic-gris-l);
  font-weight: 700;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
}

.ic-legal-body h2:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.ic-legal-body p,
.ic-legal-body li {
  line-height: 1.75;
  color: var(--ic-texte);
}

.ic-legal-body p {
  margin-bottom: 16px;
}

.ic-legal-body ul {
  margin-bottom: 20px;
  list-style: none;
}

.ic-legal-body li {
  position: relative;
  margin-bottom: 9px;
  padding-left: 22px;
}

.ic-legal-body li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 12px;
  height: 5px;
  border-radius: 3px;
  background: var(--ic-rouge);
}

.ic-legal-body a {
  color: var(--ic-rouge);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ic-legal-note {
  margin-bottom: 20px;
  padding: 16px 20px;
  border-left: 4px solid var(--ic-rouge);
  border-radius: 0 8px 8px 0;
  background: var(--ic-creme);
  font-size: 0.95rem;
}

.ic-maj {
  display: block;
  margin-top: 40px;
  font-size: 0.85rem;
  color: var(--ic-texte-2);
}

/* ============================ 4. PIED DE PAGE =========================== */

.ic-footer {
  border-top: 1px solid #26262a;
  background: var(--ic-noir-2);
  color: #9a9aa0;
}

.ic-footer-grid {
  display: grid;
  /* TEMPORAIRE — la colonne « À lire » est retirée le temps que la section
     actualités soit publiée : le pied de page n'a plus que deux colonnes.
     Rétablir `1.4fr 1fr 1fr` en même temps que la colonne. */
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(32px, 5vw, 70px);
  padding: clamp(50px, 7vw, 80px) 0 46px;
}

.ic-footer-logo {
  height: 34px;
  width: auto;
  margin-bottom: 20px;
}

.ic-footer-grid p {
  font-size: 0.9rem;
  line-height: 1.7;
}

.ic-footer h2 {
  margin-bottom: 18px;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  color: #fff;
}

.ic-footer ul {
  list-style: none;
}

.ic-footer li {
  margin-bottom: 6px;
}

.ic-footer a {
  display: inline-block;
  padding: 4px 0; /* cible ≥ 24 px de haut */
  font-size: 0.9rem;
  color: #9a9aa0;
  text-decoration: none;
  transition: color 0.2s ease;
}

.ic-footer a:hover {
  color: #fff;
}

.ic-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 22px 0;
  border-top: 1px solid #26262a;
  font-size: 0.8rem;
  color: #9a9aa0; /* 6,58:1 sur #141415 (l'ancien #6f6f76 était à 3,69:1) */
}

.ic-footer-bottom ul {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.ic-footer-bottom a {
  font-size: 0.8rem;
}

/* ============================== 5. RESPONSIVE =========================== */

@media (max-width: 960px) {
  .ic-pres-grid { grid-template-columns: 1fr; }
  .ic-actus-grid { grid-template-columns: 1fr; }
  .ic-row { grid-template-columns: 1fr; gap: 30px; }
  .ic-row--inverse .ic-row-media { order: 0; }
  .ic-footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .ic-hero-bars { opacity: 0.55; }
}

@media (max-width: 640px) {
  .ic-stats-list li {
    flex: 1 1 46%;
    padding: 24px 20px;
    border-top: 1px solid rgb(255 255 255 / 22%);
    border-left: none;
  }

  .ic-stats-list li:nth-child(-n + 2) {
    border-top: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

@media (prefers-reduced-motion: reduce) {
  .ic-hero-bars i { animation: none; }

  .ic-btn,
  .ic-row-link,
  .idhm-panel,
  .idhm-burger span {
    transition: none;
  }
}
