/* Ibotity · ébauche n° 2 du site one page · novembre 2026
   Fond sombre, panneaux de couleur, titres fins empilés. */

:root {
  --noir: #000;
  --fond: #111;
  --fond-2: #171717;
  --carte: #0a0a0a;
  --blanc: #fff;
  --texte: #e4dfdb;
  --doux: #8f8883;
  --filet: rgba(255, 255, 255, .18);
  --bordeaux: #6e0f12;
  --brique: #bf2f20;
  --creme: #f6e7dc;
  --encre: #1b1312;
  --accent: #ea5a42;
  --sans: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --entete: 76px;
  --panneau: 34.2%;
  --marge: 9.4vw;
  --retrait: 8.5vw;
}

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

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

body {
  margin: 0; padding-top: var(--entete);
  background: var(--fond); color: var(--texte);
  font: 400 14.5px/1.9 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, dl, dd, figure { margin: 0; }
ul { padding: 0; list-style: none; }
[id] { scroll-margin-top: var(--entete); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.ib-evitement {
  position: fixed; left: 12px; top: -80px; z-index: 100;
  padding: 10px 16px; background: #fff; color: #000; font-size: 13px; text-decoration: none;
}
.ib-evitement:focus { top: 12px; }

/* ---------- Bouton et liens ---------- */

.ib-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 16px 38px;
  font: 600 15px/1.3 var(--sans); text-decoration: none;
  color: #fff; background: transparent; border: 2px solid #fff; border-radius: 4px;
  cursor: pointer; transition: background .25s, color .25s;
}
.ib-btn:hover { background: #fff; color: #000; }
.ib-btn--large { width: 100%; }
.ib-btn--fichier { gap: 12px; }
.ib-btn--fichier svg { flex: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ib-btn--fichier span { font-size: 11px; font-weight: 500; letter-spacing: .16em; opacity: .65; }
.ib-boutons { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 20px; }
.ib-boutons, .ib-fichier { container-type: inline-size; }
.ib-fichier .ib-btn { width: 100%; padding-inline: 16px; }
@container (max-width: 299px) { .ib-btn--fichier span { display: none; } }

.ib-lien {
  display: inline-flex; align-items: baseline; gap: 10px;
  font-size: 14px; font-weight: 500; color: #fff; text-decoration: none;
  padding-bottom: 4px; border-bottom: 1px solid var(--filet);
  transition: border-color .25s, color .25s;
}
.ib-lien span { font-size: 12.5px; font-weight: 400; color: var(--doux); }
.ib-lien:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* ---------- En-tête ---------- */

.ib-entete {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: var(--entete); padding: 0 28px 0 18px;
  background: var(--noir);
}
.ib-logo { display: block; flex: none; }
.ib-logo img { width: 52px; height: 52px; }

.ib-nav { display: flex; gap: clamp(18px, 2.7vw, 40px); }
.ib-nav a { font-size: 14px; font-weight: 500; color: #fff; text-decoration: none; transition: color .2s; }
.ib-nav a:hover, .ib-nav a.est-actif { color: var(--accent); }

.ib-burger { display: none; position: relative; width: 44px; height: 44px; padding: 0; background: none; border: 0; cursor: pointer; }
.ib-burger span { position: absolute; left: 9px; right: 9px; height: 2px; background: #fff; transition: transform .3s, top .3s; }
.ib-burger span:nth-child(1) { top: 16px; }
.ib-burger span:nth-child(2) { top: 26px; }
.menu-ouvert .ib-burger span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.menu-ouvert .ib-burger span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

.ib-menu {
  position: fixed; inset: var(--entete) 0 0 0; z-index: 49;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 24px 24px 40px; background: var(--noir); overflow-y: auto;
}
.ib-menu[hidden] { display: none; }
.ib-menu nav { display: flex; flex-direction: column; }
.ib-menu nav a {
  padding: 13px 0; border-bottom: 1px solid var(--filet);
  font-size: 30px; font-weight: 200; text-transform: uppercase; color: #fff; text-decoration: none;
}
.ib-menu__reseaux { display: flex; gap: 28px; margin-top: 32px; }
.ib-menu__reseaux a { font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; color: var(--accent); }

/* ---------- Ouverture ---------- */

.ib-hero { padding: clamp(72px, 10.5vw, 150px) 24px clamp(64px, 8vw, 116px); text-align: center; }
.ib-hero__titre { font-weight: 200; font-size: clamp(34px, 6.6vw, 98px); line-height: 1.5; color: #fff; }
.ib-hero__sur {
  display: block; margin-bottom: clamp(22px, 3vw, 40px);
  font-size: 12px; font-weight: 500; line-height: 1.7; letter-spacing: .28em; text-transform: uppercase; color: var(--accent);
}
.ib-hero__ligne { display: block; white-space: nowrap; }
.ib-plus {
  display: inline-block; width: .6em; height: .6em; margin: 0 .22em; border-radius: 50%; vertical-align: middle;
  position: relative; top: -.04em;
  background:
    linear-gradient(#fff, #fff) center / 36% 1.5px no-repeat,
    linear-gradient(#fff, #fff) center / 1.5px 36% no-repeat,
    var(--brique);
}
.ib-hero__chapo { max-width: 620px; margin: clamp(22px, 3vw, 40px) auto 0; font-size: 16px; font-weight: 300; line-height: 1.9; text-wrap: balance; }
.ib-hero__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 20px 34px; margin-top: 40px; }

/* ---------- Repères ---------- */

.ib-compteurs { background: var(--fond-2); padding: clamp(56px, 6vw, 84px) 24px clamp(60px, 6.4vw, 92px); }
.ib-compteurs ul { display: grid; grid-template-columns: repeat(4, 1fr); max-width: 1200px; margin: 0 auto; }
.ib-compteurs li { position: relative; text-align: center; padding: 0 16px; }
.ib-compteurs li + li::before {
  content: ""; position: absolute; left: 0; top: 14px; width: 1px; height: 62px;
  background: #4a4a4a; transform: rotate(42deg);
}
.ib-compteurs strong {
  display: inline-block; padding-top: 8px; border-top: 8px solid #fff;
  font-size: clamp(32px, 4.3vw, 62px); font-weight: 700; line-height: 1.05; color: #fff; white-space: nowrap;
}
.ib-compteurs span { display: block; margin-top: 14px; font-size: clamp(14px, 1.45vw, 20px); line-height: 1.4; color: var(--doux); }

/* ---------- Bloc : panneau de couleur + contenu ---------- */

.ib-bloc { display: grid; grid-template-columns: var(--panneau) minmax(0, 1fr); background: var(--fond); }

.ib-panneau { padding: clamp(80px, 9vw, 130px) 20px clamp(80px, 9vw, 130px) var(--marge); color: #fff; }
.ib-bloc--bordeaux .ib-panneau { background: var(--bordeaux); }
.ib-bloc--brique .ib-panneau { background: var(--brique); }
.ib-bloc--creme .ib-panneau { background: var(--creme); color: var(--encre); }
.ib-bloc--noir .ib-panneau { background: var(--noir); }

.ib-panneau__in { position: sticky; top: calc(var(--entete) + 48px); }
.ib-num { display: inline-flex; align-items: center; gap: 9px; font-size: 34px; font-weight: 700; line-height: 1; letter-spacing: -.02em; }
.ib-num::after { content: ""; width: 5px; height: 44px; background: currentColor; }
.ib-bloc--creme .ib-num { color: var(--bordeaux); }
.ib-panneau__titre {
  margin-top: 18px;
  font-size: clamp(44px, 4.86vw, 70px); font-weight: 200; line-height: .98; letter-spacing: -.005em; text-transform: uppercase;
}
.ib-panneau__titre span { display: block; }
.ib-panneau__sous { margin-top: clamp(28px, 3vw, 44px); font-size: clamp(16px, 1.5vw, 22px); line-height: 1.6; }

.ib-corps { padding: clamp(80px, 9vw, 130px) var(--marge) clamp(80px, 8.4vw, 120px) var(--retrait); }
.ib-corps--plein { padding: 0 var(--marge) 0 0; }
.ib-corps__suite { padding: clamp(64px, 7vw, 100px) 0 clamp(80px, 8.4vw, 120px) var(--retrait); }
.ib-corps > * + *, .ib-corps__suite > * + * { margin-top: clamp(44px, 4.4vw, 64px); }
.ib-corps--plein > * + * { margin-top: 0; }

.ib-intro { font-size: clamp(22px, 2.15vw, 31px); font-weight: 200; line-height: 1.2; color: #fff; }
h3 { font-size: 19px; font-weight: 600; line-height: 1.35; color: #fff; }

.ib-deux { display: grid; grid-template-columns: 1fr 1fr; gap: 36px 44px; }
.ib-deux > div > p + p { margin-top: 20px; }
.ib-fort { font-weight: 600; color: #fff; }

.ib-visuel img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; object-position: 50% 30%; }

.ib-items { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.ib-items svg { width: 76px; height: 76px; margin-left: -6px; fill: none; stroke: #fff; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.ib-items h3 { margin-top: 18px; }
.ib-items p { margin-top: 6px; }

.ib-liste { margin-top: 16px; }
.ib-liste li { position: relative; padding: 10px 0 10px 26px; border-bottom: 1px solid var(--filet); }
.ib-liste li:first-child { border-top: 1px solid var(--filet); }
.ib-liste li::before { content: ""; position: absolute; left: 2px; top: 1.62em; width: 10px; height: 2px; background: var(--accent); }
.ib-liste--plus li::before, .ib-liste--non li::before {
  top: 10px; width: auto; height: auto; background: none;
  font-size: 18px; font-weight: 500; line-height: 1.5;
}
.ib-liste--plus li::before { content: "+"; color: var(--accent); }
.ib-liste--non li::before { content: "×"; color: var(--doux); }

.ib-note { font-size: 13.5px; line-height: 1.8; color: var(--doux); }
.ib-liste + .ib-note { margin-top: 20px; }
.ib-note span { display: block; margin-bottom: 5px; font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: #fff; }
.ib-centre { text-align: center; }

/* ---------- Mosaïque ---------- */

.ib-mosaique { display: grid; grid-template-columns: 1fr 1fr; }
.ib-mosaique figure { position: relative; overflow: hidden; aspect-ratio: 1; background: #000; }
.ib-mosaique__grand { grid-column: span 2; aspect-ratio: 4 / 3 !important; }
.ib-mosaique__large { grid-column: span 2; aspect-ratio: 2 / 1 !important; }
.ib-mosaique img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1), opacity .4s; }
.ib-mosaique figcaption {
  position: absolute; inset: auto 0 0 0; padding: 44px 22px 18px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .72));
  transition: opacity .35s;
}
.ib-mosaique figcaption strong { display: block; font-size: 16px; font-weight: 600; line-height: 1.3; color: #fff; }
.ib-mosaique figcaption span { display: block; margin-top: 2px; font-size: 10.5px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: #d8d2cd; }
@media (hover: hover) {
  .ib-mosaique figcaption { opacity: 0; }
  .ib-mosaique figure:hover figcaption { opacity: 1; }
  .ib-mosaique figure:hover img { transform: scale(1.04); }
}

/* ---------- Jauges ---------- */

.ib-jauges { display: grid; gap: 30px; align-content: start; }
.ib-jauge { display: grid; grid-template-columns: 140px 1fr; align-items: end; row-gap: 6px; }
.ib-jauge strong { grid-row: span 2; font-size: 44px; font-weight: 200; line-height: 1; color: #fff; white-space: nowrap; }
.ib-jauge span { font-size: 16px; font-weight: 600; line-height: 1.3; color: #fff; }
.ib-jauge i { position: relative; display: block; height: 8px; background: linear-gradient(#4a4a4a, #4a4a4a) center / 100% 2px no-repeat; }
.ib-jauge i::after {
  content: ""; position: absolute; inset: 0 auto 0 0; width: var(--v); background: #fff;
  transform-origin: left; transition: transform 1.1s cubic-bezier(.2, .7, .2, 1) .15s;
}
.js .ib-revele:not(.est-visible) .ib-jauge i::after { transform: scaleX(0); }

.ib-jauges--serrees { gap: 18px; }
.ib-jauges--serrees h3 { margin-bottom: 6px; font-size: 11.5px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--doux); }
.ib-jauges--serrees .ib-jauge { grid-template-columns: 88px 1fr; row-gap: 4px; }
.ib-jauges--serrees .ib-jauge strong { font-size: 25px; font-weight: 300; }
.ib-jauges--serrees .ib-jauge span { font-size: 14px; font-weight: 500; }
.ib-jauges--serrees .ib-jauge i { height: 6px; }

/* ---------- Chiffres ---------- */

.ib-periode { margin-top: 26px !important; font-size: 11.5px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--accent); }
.ib-chiffres { display: grid; grid-template-columns: 1fr 1fr; gap: 42px 44px; }
.ib-chiffres strong { display: block; font-size: clamp(40px, 4vw, 58px); font-weight: 200; line-height: 1; color: #fff; white-space: nowrap; }
.ib-chiffres span { display: block; margin-top: 10px; font-size: 15px; font-weight: 500; line-height: 1.4; color: #fff; }
.ib-chiffres em { display: block; margin-top: 4px; font-style: normal; font-size: 13px; font-weight: 600; color: var(--accent); }

.ib-lectures { display: grid; grid-template-columns: 1fr 1fr; gap: 36px 44px; padding-top: clamp(40px, 4.4vw, 60px); border-top: 1px solid var(--filet); }
.ib-lectures p { margin-top: 8px; }
.ib-source { align-self: end; font-size: 12.5px; color: var(--doux); }

.ib-faits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.ib-faits strong { display: inline-block; padding-top: 6px; border-top: 6px solid #fff; font-size: clamp(30px, 3vw, 44px); font-weight: 700; line-height: 1.1; color: #fff; white-space: nowrap; }
.ib-faits span { display: block; margin-top: 10px; line-height: 1.6; color: var(--doux); }

/* ---------- Reels ---------- */

.ib-reels { display: grid; grid-template-columns: 1fr 1fr; gap: 50px 44px; }
.ib-reels__meta { font-size: 13px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; }
.ib-reels__meta b { padding: 0 6px; color: var(--accent); }
.ib-reels h3 { margin-top: 8px; font-size: 22px; line-height: 1.3; }
.ib-reels__vues { margin-top: 12px; font-size: 40px; font-weight: 200; line-height: 1; color: #fff; white-space: nowrap; }
.ib-reels__vues span { font-size: 13px; font-weight: 500; color: var(--doux); }
.ib-reels li > p:last-child { margin-top: 10px; font-size: 13.5px; line-height: 1.7; color: var(--doux); }
.ib-reels__note { align-self: end; padding-top: 16px; border-top: 1px solid var(--filet); }

.ib-points > div { display: grid; grid-template-columns: 230px 1fr; gap: 12px 32px; padding: 22px 0; border-top: 1px solid var(--filet); }
.ib-points > div:last-child { border-bottom: 1px solid var(--filet); }
.ib-points dt { font-size: 16px; font-weight: 600; line-height: 1.4; color: #fff; }
.ib-points dd { font-size: 14px; }

/* ---------- Formats ---------- */

.ib-formats { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.ib-formats li { display: flex; flex-direction: column; background: var(--carte); }
.ib-formats h3 {
  display: flex; align-items: center; justify-content: center; min-height: 78px;
  padding: 14px 18px; text-align: center;
  font-size: 17px; font-weight: 500; letter-spacing: .05em; text-transform: uppercase;
  background: var(--bordeaux);
}
.ib-formats li:nth-child(4n + 2) h3, .ib-formats li:nth-child(4n + 3) h3 { background: var(--brique); }
.ib-formats div { padding: 28px 28px 34px; text-align: center; }
.ib-formats strong { display: block; font-size: 30px; font-weight: 500; line-height: 1.2; color: #fff; }
.ib-formats p { margin-top: 14px; font-size: 13.5px; line-height: 1.8; color: var(--doux); }

.ib-confiance { padding-top: clamp(40px, 4.4vw, 60px); border-top: 1px solid var(--filet); }
.ib-confiance h3 { font-size: 11.5px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--doux); }
.ib-confiance ul { display: grid; grid-template-columns: 1fr 1fr; column-gap: 44px; margin-top: 18px; font-size: clamp(18px, 1.55vw, 22px); font-weight: 200; line-height: 1.4; color: #fff; }
.ib-confiance li { padding: 13px 0; border-bottom: 1px solid var(--filet); }

/* ---------- Contact ---------- */

.ib-formulaire { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 36px; }
.ib-champ { display: block; padding-top: 18px; border-bottom: 1px solid #fff; transition: border-color .25s; }
.ib-champ:focus-within { border-bottom-color: var(--accent); }
.ib-champ--large, .ib-formulaire .ib-btn { grid-column: 1 / -1; }
.ib-champ span { display: block; font-size: 14px; font-weight: 600; color: #fff; }
.ib-champ input, .ib-champ select, .ib-champ textarea {
  display: block; width: 100%; padding: 6px 0 10px;
  font: 300 16px/1.5 var(--sans); color: #fff;
  background: transparent; border: 0; border-radius: 0; outline: 0;
}
.ib-champ select { appearance: none; cursor: pointer; }
.ib-champ select option { color: #000; }
.ib-champ textarea { resize: vertical; min-height: 110px; }
.ib-formulaire .ib-btn { margin-top: 34px; }

.ib-coordonnees li { padding: 11px 0; border-bottom: 1px solid var(--filet); }
.ib-coordonnees li:first-child { padding-top: 0; }
.ib-coordonnees span { display: block; font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--doux); }
.ib-coordonnees a { font-size: 16px; font-weight: 500; color: #fff; text-decoration: none; overflow-wrap: anywhere; }
.ib-coordonnees a:hover { color: var(--accent); }

/* ---------- Pied de page ---------- */

.ib-pied { padding: clamp(72px, 7vw, 104px) 24px 64px; background: var(--noir); text-align: center; }
.ib-pied a { text-decoration: none; color: #fff; transition: color .2s; }
.ib-pied a:hover { color: var(--accent); }
.ib-pied__courriel { display: block; font-size: clamp(22px, 3.7vw, 52px); font-weight: 700; line-height: 1.2; overflow-wrap: anywhere; }
.ib-pied__tel { display: inline-block; margin-top: 12px; font-size: clamp(18px, 1.6vw, 23px); font-weight: 500; }
.ib-pied__lieu { margin-top: clamp(48px, 5vw, 80px); font-size: 18px; color: var(--doux); }
.ib-pied__liens { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 34px; margin-top: 36px; }
.ib-pied__liens a { font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; }
.ib-pied__droits { margin-top: 26px; font-size: 13px; }

/* ---------- Blog : liste d'articles ---------- */

.ib-exemple {
  display: inline-block; margin-top: 24px !important; padding: 6px 12px; border: 1px dashed rgba(255, 255, 255, .3);
  font-size: 10.5px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--doux);
}

.ib-articles { display: grid; grid-template-columns: 1fr 1fr; gap: 54px 44px; }
.ib-articles a { display: block; text-decoration: none; color: inherit; }
.ib-articles figure { overflow: hidden; aspect-ratio: 3 / 2; background: #000; }
.ib-articles img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.ib-articles a:hover img { transform: scale(1.04); }
.ib-articles__meta, .ib-article__meta { font-size: 13px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; }
.ib-articles__meta { margin-top: 20px; }
.ib-articles__meta b, .ib-article__meta b { padding: 0 6px; color: var(--accent); }
.ib-articles h3, .ib-articles__titre { margin-top: 8px; font-size: 22px; font-weight: 600; line-height: 1.3; color: #fff; transition: color .2s; }
.ib-articles a:hover h3, .ib-articles a:hover .ib-articles__titre { color: var(--accent); }
.ib-articles h3 + p, .ib-articles__titre + p { margin-top: 10px; font-size: 14px; }

.ib-panneau__liens { display: grid; max-width: 250px; margin-top: clamp(28px, 3vw, 44px); }
.ib-panneau__liens a {
  padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, .32);
  font-size: 15px; font-weight: 400; color: inherit; text-decoration: none; transition: padding-left .25s;
}
.ib-panneau__liens a:first-child { border-top: 1px solid rgba(255, 255, 255, .32); }
.ib-panneau__liens a:hover { padding-left: 8px; }
.ib-panneau__liens a.est-actif { font-weight: 700; }
a.ib-panneau__titre { display: block; color: inherit; text-decoration: none; }

.ib-pagination { display: flex; justify-content: space-between; gap: 20px; padding-top: 28px; border-top: 1px solid var(--filet); }
.ib-pagination span { font-size: 14px; color: var(--doux); }

/* ---------- Blog : article ---------- */

.ib-article__titre { margin-top: 14px; font-size: clamp(30px, 3.3vw, 48px); font-weight: 300; line-height: 1.14; color: #fff; }
.ib-article__titre + .ib-intro { margin-top: 26px; }

/* Partage et « Résumer avec l'IA » (même système que sur ExternFlow) */
.ib-actions {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px;
  margin-top: 30px; padding: 16px 0; border-top: 1px solid var(--filet); border-bottom: 1px solid var(--filet);
}
.ib-partage { display: flex; align-items: center; gap: 10px; }
.ib-partage__libelle { margin-right: 6px; font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--doux); }
.ib-partage a {
  display: grid; place-items: center; width: 40px; height: 40px;
  border: 1px solid rgba(255, 255, 255, .3); border-radius: 50%; color: #fff;
  transition: background .2s, color .2s, border-color .2s;
}
.ib-partage a:hover { background: #fff; border-color: #fff; color: #000; }
.ib-partage svg { width: 17px; height: 17px; fill: currentColor; }
.ib-btn--ia { gap: 10px; padding: 10px 22px; font-size: 14px; }
.ib-btn--ia svg { width: 18px; height: 18px; fill: currentColor; }
.ib-actions + .ib-exemple { margin-top: 22px !important; }

.ib-resume {
  width: min(430px, calc(100vw - 40px)); padding: 0;
  background: #181818; color: var(--texte); border: 1px solid rgba(255, 255, 255, .22);
}
.ib-resume::backdrop { background: rgba(0, 0, 0, .72); }
.ib-resume__tete { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 20px 20px 26px; background: var(--bordeaux); }
.ib-resume__titre { font-size: 17px; font-weight: 500; color: #fff; }
.ib-resume__fermer { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; background: none; border: 0; color: #fff; cursor: pointer; }
.ib-resume__fermer svg { width: 22px; height: 22px; fill: currentColor; }
.ib-resume__liste { padding: 8px 26px 0; }
.ib-resume__liste a {
  display: flex; align-items: center; justify-content: space-between; padding: 17px 0;
  border-bottom: 1px solid var(--filet); font-size: 18px; font-weight: 600; color: #fff; text-decoration: none; transition: color .2s;
}
.ib-resume__liste a::after { content: "↗"; font-weight: 400; color: var(--accent); }
.ib-resume__liste a:hover { color: var(--accent); }
.ib-resume__pied { padding: 18px 26px 26px; font-size: 13px; line-height: 1.7; color: var(--doux); }
.ib-resume__texte { display: none; }

/* Les points essentiels */
.ib-essentiel { background: var(--carte); }
.ib-essentiel__titre { padding: 18px 28px; background: var(--bordeaux); font-size: 15px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: #fff; }
.ib-essentiel ul { padding: 12px 28px 18px; }
.ib-essentiel li { position: relative; padding: 11px 0 11px 28px; border-bottom: 1px solid var(--filet); font-size: 15.5px; font-weight: 400; line-height: 1.6; color: #fff; }
.ib-essentiel li:last-child { border-bottom: 0; }
.ib-essentiel li::before { content: ""; position: absolute; left: 2px; top: 1.45em; width: 10px; height: 2px; background: var(--accent); }

.ib-prose { font-size: 16px; font-weight: 300; line-height: 1.9; }
.ib-prose > * + * { margin-top: 24px; }
.ib-prose h2 { margin-top: 56px; font-size: 26px; font-weight: 600; line-height: 1.3; color: #fff; }
.ib-prose h3 { margin-top: 40px; font-size: 20px; }
.ib-prose strong { font-weight: 600; color: #fff; }
.ib-prose a:not(.ib-btn) { color: #fff; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.ib-prose a:not(.ib-btn):hover { color: var(--accent); }
.ib-prose ul li, .ib-prose ol li { position: relative; padding: 5px 0 5px 28px; }
.ib-prose ul li::before { content: ""; position: absolute; left: 2px; top: 1.2em; width: 10px; height: 2px; background: var(--accent); }
.ib-prose ol { padding: 0; list-style: none; counter-reset: etape; }
.ib-prose ol li { counter-increment: etape; padding-left: 40px; }
.ib-prose ol li::before { content: counter(etape); position: absolute; left: 0; top: 2px; font-size: 20px; font-weight: 200; color: #fff; }
.ib-prose figure img { width: 100%; }
.ib-prose figcaption { margin-top: 10px; font-size: 12.5px; color: var(--doux); }
.ib-prose blockquote { margin: 48px 0; }
.ib-prose blockquote p { display: inline-block; padding-top: 18px; border-top: 6px solid #fff; font-size: clamp(22px, 2.15vw, 30px); font-weight: 200; line-height: 1.3; color: #fff; }

/* En réserve : fiche recette et bloc « Voir le Reel », non utilisés tant que le blog ne publie pas de recettes */
.ib-recette { margin-top: 48px !important; background: var(--carte); }
.ib-recette__tete { padding: 22px 28px; background: var(--bordeaux); font-size: 17px; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; color: #fff; }
.ib-recette__faits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--filet); }
.ib-recette__faits li { padding: 20px 28px !important; }
.ib-recette__faits li::before { display: none; }
.ib-recette__faits li + li { border-left: 1px solid var(--filet); }
.ib-recette__faits span { display: block; font-size: 10.5px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--doux); }
.ib-recette__faits strong { display: block; margin-top: 2px; font-size: 20px; font-weight: 300; }
.ib-recette__corps { display: grid; grid-template-columns: 1fr 1.35fr; gap: 36px; padding: 30px 28px 34px; font-size: 14.5px; }
.ib-recette__corps h3 { margin: 0 0 10px; font-size: 16px; }

.ib-reel { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 20px 28px; padding: 30px 0; border-top: 1px solid var(--filet); border-bottom: 1px solid var(--filet); }
.ib-reel strong { display: block; font-size: 40px; font-weight: 200; line-height: 1; color: #fff; }
.ib-reel span { display: block; margin-top: 8px; font-size: 13.5px; color: var(--doux); }

.ib-auteur { display: grid; grid-template-columns: 76px 1fr; gap: 24px; align-items: center; }
.ib-auteur img { width: 76px; height: 76px; }
.ib-auteur strong { display: block; font-size: 19px; font-weight: 600; color: #fff; }
.ib-auteur p { font-size: 14px; }

.ib-suite { padding-top: clamp(40px, 4.4vw, 60px); border-top: 1px solid var(--filet); }
.ib-suite > h2 { margin-bottom: 28px; font-size: 11.5px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--doux); }

/* ---------- Apparition au défilement ---------- */

.js .ib-revele { opacity: 0; transform: translateY(22px); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1); }
.js .ib-revele.est-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .ib-revele { opacity: 1; transform: none; transition: none; }
  .ib-jauge i::after, .ib-mosaique img { transition: none; }
}

/* ---------- Petit ordinateur et tablette en paysage : marges réduites, contenu plus large ---------- */

@media (min-width: 1024px) and (max-width: 1365px) {
  .ib-items { grid-template-columns: 1fr; gap: 26px; }
  .ib-items li { display: grid; grid-template-columns: 76px 1fr; column-gap: 22px; align-items: start; }
  .ib-items svg { grid-row: span 2; }
  .ib-items h3 { margin-top: 8px; }
}

@media (min-width: 1024px) and (max-width: 1279px) {
  :root { --panneau: 31%; --marge: 5.5vw; --retrait: 5vw; }
  .ib-deux, .ib-chiffres, .ib-lectures, .ib-reels, .ib-articles { column-gap: 34px; }
  .ib-formats div { padding: 24px 20px 28px; }
}

/* ---------- Tablette : le panneau passe au-dessus du contenu ---------- */

@media (max-width: 1023px) {
  :root { --entete: 68px; }
  .ib-nav { display: none; }
  .ib-burger { display: block; }
  .ib-logo img { width: 48px; height: 48px; }

  .ib-compteurs ul { grid-template-columns: 1fr 1fr; gap: 48px 0; }
  .ib-compteurs li:nth-child(3)::before { display: none; }

  .ib-bloc { grid-template-columns: 1fr; }
  .ib-panneau { padding: 52px 24px 56px; }
  .ib-panneau__in { position: static; }
  .ib-panneau__titre { font-size: clamp(44px, 10vw, 72px); }
  .ib-panneau__sous { margin-top: 24px; }
  .ib-corps { padding: 56px 24px 76px; }
  .ib-corps--plein { padding: 0; }
  .ib-corps__suite { padding: 56px 24px 76px; }

  /* Pages du blog : les rubriques passent en ligne, le bandeau d'un article reste bas */
  .ib-panneau__liens { display: flex; flex-wrap: wrap; gap: 6px 22px; max-width: none; margin-top: 22px; }
  .ib-panneau__liens a, .ib-panneau__liens a:first-child { padding: 4px 0; border: 0; border-bottom: 1px solid rgba(255, 255, 255, .32); }
  .ib-panneau__liens a:hover { padding-left: 0; }
  .ib-bloc--article .ib-panneau { padding: 26px 24px 28px; }
  .ib-bloc--article .ib-panneau__titre { margin-top: 0; font-size: 30px; }
  .ib-bloc--article .ib-panneau__titre span { display: inline; }
  .ib-bloc--article .ib-panneau__sous { display: none; }
  .ib-bloc--article .ib-panneau__liens { margin-top: 14px; }
}

/* ---------- Téléphone ---------- */

@media (max-width: 639px) {
  .ib-hero__ligne { white-space: normal; }
  .ib-hero__titre { line-height: 1.35; }
  .ib-hero__actions { flex-direction: column; gap: 22px; }
  .ib-hero__actions .ib-btn { width: 100%; }
  .ib-boutons .ib-btn { width: 100%; padding-inline: 16px; }

  .ib-compteurs li + li::before { display: none; }
  .ib-compteurs strong { border-top-width: 6px; }

  .ib-deux, .ib-items, .ib-chiffres, .ib-lectures, .ib-faits, .ib-reels, .ib-formats, .ib-formulaire, .ib-articles, .ib-recette__corps, .ib-reel { grid-template-columns: 1fr; }
  .ib-articles { gap: 44px; }
  .ib-recette__faits li { padding: 16px 10px !important; }
  .ib-recette__faits span { font-size: 9px; letter-spacing: .1em; }
  .ib-recette__faits strong { font-size: 14px; }
  .ib-recette__corps { padding: 26px 20px 30px; }
  .ib-recette__tete { padding: 20px; }
  .ib-prose h2 { margin-top: 44px; font-size: 23px; }
  .ib-pagination { flex-direction: column; }
  .ib-actions { gap: 16px; }
  .ib-actions .ib-btn--ia { width: 100%; padding: 13px 22px; }
  .ib-partage { gap: 8px; }
  .ib-essentiel__titre { padding: 16px 20px; }
  .ib-essentiel ul { padding: 10px 20px 16px; }
  .ib-items { gap: 30px; }
  .ib-items li { display: grid; grid-template-columns: 64px 1fr; column-gap: 18px; }
  .ib-items svg { grid-row: span 2; width: 64px; height: 64px; margin-left: -6px; }
  .ib-confiance ul { grid-template-columns: 1fr; }
  .ib-items h3 { margin-top: 0; }
  .ib-chiffres { grid-template-columns: 1fr 1fr; gap: 34px 20px; }
  .ib-chiffres strong { font-size: 34px; }
  .ib-chiffres span { font-size: 13.5px; }
  .ib-visuel img { aspect-ratio: 4 / 3; }
  .ib-jauge { grid-template-columns: 112px 1fr; }
  .ib-jauge strong { font-size: 36px; }
  .ib-points > div { grid-template-columns: 1fr; }
  .ib-mosaique__large { aspect-ratio: 3 / 2 !important; }
  /* Sur une colonne, les en-têtes des cartes alternent simplement */
  .ib-formats li:nth-child(odd) h3 { background: var(--bordeaux); }
  .ib-formats li:nth-child(even) h3 { background: var(--brique); }
}

/* ---------- Petit téléphone ---------- */

@media (max-width: 359px) {
  .ib-chiffres strong { font-size: 30px; }
}
