/* My little product - reprise de l'identite du theme WP (STIX Two Text + Poppins) */
:root {
  --bg: #f7f7f6;
  --bg-soft: #efefed;
  --fg: #1c1c1c;
  --muted: #7a7a76;
  --line: #dedcd7;
  --card: #ffffff;
  --accent: #1c1c1c;
  --accent-fg: #ffffff;
  --serif: "STIX Two Text", Georgia, "Times New Roman", serif;
  --sans: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --wrap: 1280px;
  --read: 720px;
}
[data-theme="dark"] {
  --bg: #141414;
  --bg-soft: #1d1d1d;
  --fg: #f2f1ee;
  --muted: #9b9a95;
  --line: #2e2e2c;
  --card: #1d1d1d;
  --accent: #f2f1ee;
  --accent-fg: #141414;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  transition: background .25s, color .25s;
}
img, video { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
h1, h2, h3, h4, h5, h6 { font-family: var(--serif); font-weight: 400; line-height: 1.18; letter-spacing: -.01em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.logo { display: block; width: 100%; height: auto; fill: currentColor; }

/* ---------- header ---------- */
.hdr {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.hdr.is-stuck { border-bottom-color: var(--line); }
.hdr__in { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; height: 74px; }
.hdr__burger {
  display: inline-flex; align-items: center; gap: 12px;
  background: none; border: 0; padding: 0; cursor: pointer; color: inherit;
  font-family: var(--serif); font-style: italic; font-size: 18px;
}
.hdr__burger i { display: block; width: 26px; height: 10px; border-top: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; }
.hdr__center { text-align: center; font-family: var(--serif); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.hdr__logo { display: none; color: var(--fg); }
.hdr.is-stuck .hdr__logo { display: block; margin: 0 auto; width: 76px; }
.hdr.is-stuck .hdr__date { display: none; }
.hdr__right { display: flex; justify-content: flex-end; align-items: center; gap: 10px; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 999px; border: 1px solid var(--line);
  background: none; color: inherit; cursor: pointer; display: grid; place-items: center;
}
.icon-btn:hover { background: var(--bg-soft); }
.btn, a.btn {
  display: inline-block; padding: 12px 22px; white-space: nowrap; width: auto;
  font-family: var(--sans); line-height: 1.2; border-radius: 999px;
  background: var(--accent); color: var(--accent-fg);
  border: 1px solid var(--accent); text-decoration: none;
  font-size: 14px; font-weight: 500; cursor: pointer;
}
.btn:hover { opacity: .85; }
.btn--ghost { background: none; color: inherit; }

/* ---------- offcanvas ---------- */
.oc { position: fixed; inset: 0; z-index: 90; visibility: hidden; }
.oc[data-open="1"] { visibility: visible; }
.oc__veil { position: absolute; inset: 0; background: rgba(0,0,0,.45); opacity: 0; transition: opacity .3s; }
.oc[data-open="1"] .oc__veil { opacity: 1; }
.oc__panel {
  position: absolute; inset: 0 auto 0 0; width: min(440px, 88vw);
  background: var(--bg); border-right: 1px solid var(--line);
  padding: 32px 34px; overflow-y: auto;
  transform: translateX(-102%); transition: transform .32s cubic-bezier(.4,0,.2,1);
}
.oc[data-open="1"] .oc__panel { transform: none; }
.oc__close { position: absolute; top: 24px; right: 24px; }
.oc h2 { font-size: 13px; font-family: var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 34px 0 12px; }
.oc a:not(.btn) { display: block; text-decoration: none; padding: 7px 0; font-family: var(--serif); font-size: 21px; }
.oc a:not(.btn):hover { opacity: .6; }

/* ---------- hero ---------- */
.hero { text-align: center; padding: 56px 0 76px; }
.hero__h1 { margin: 0 0 18px; }
.hero__logo { width: min(230px, 56vw); margin: 0 auto; }
.hero__baseline { font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--muted); margin: 0; }

/* ---------- sections ---------- */
.sec { padding-bottom: 64px; }
.sec__title { font-size: clamp(30px, 4.4vw, 46px); margin: 0 0 34px; }
.rule { border: 0; border-top: 1px solid var(--fg); margin: 8px 0 56px; }

/* ---------- cartes ---------- */
.pill {
  display: inline-block; padding: 5px 13px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; text-decoration: none;
  color: var(--muted); margin: 0 6px 6px 0; white-space: nowrap;
}
.pill:hover { border-color: var(--fg); color: var(--fg); }
.card { display: block; text-decoration: none; }
.card__media { overflow: hidden; background: var(--bg-soft); aspect-ratio: 3 / 2; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card__media img { transform: scale(1.04); }
.card__title { font-size: 22px; margin: 14px 0 8px; }
.card__date { font-family: var(--serif); font-size: 13px; color: var(--muted); }

.feature { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; }
.feature .card__media { aspect-ratio: 4 / 3; }
.feature .card__title { font-size: clamp(26px, 3vw, 38px); }
.feature__eyebrow { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 44px 32px; }

.row { display: grid; grid-template-columns: 160px 1fr 300px; gap: 32px; align-items: start; padding: 34px 0; border-top: 1px solid var(--line); text-decoration: none; }
.row:first-of-type { border-top: 0; }
.row__title { font-size: clamp(21px, 2.2vw, 28px); margin: 0 0 10px; }
.row__excerpt { color: var(--muted); font-size: 14.5px; margin: 0; }
.row .card__media { aspect-ratio: 3 / 2; }

/* ---------- article ---------- */
.crumbs { display: flex; gap: 12px; align-items: center; padding-block: 22px 26px; font-size: 13px; }
.crumbs a { text-decoration: none; color: var(--muted); }
.crumbs a:hover { color: var(--fg); }
.crumbs span { color: var(--line); }

.post { padding-block: 0 64px; }
/* header pleine largeur: la couverture touche le bord, le titre garde sa gouttiere */
.post__head {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 4vw, 64px); align-items: end; margin-bottom: 64px;
}
.post__intro { padding-right: clamp(20px, 5vw, 96px); }
.post__cover { margin: 0; }
.post__cover img { width: 100%; max-height: 82vh; object-fit: cover; }
.post__title { font-size: clamp(30px, 4vw, 52px); margin: 0 0 22px; }
.post__intro .pill { font-size: 10.5px; }

.post__grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 64px; align-items: start; }
.post__side { position: sticky; top: 100px; }
.side__label { font-family: var(--serif); font-style: italic; font-size: 17px; margin: 0 0 4px; }
.side__label:not(:first-child) { margin-top: 26px; }
.side__value { font-size: 14px; color: var(--muted); margin: 0; }
.side__value a { color: inherit; text-underline-offset: 3px; }
.side__author { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; margin: 0; }
.side__badge {
  display: inline-block; margin: 26px 0 0; padding: 6px 14px; border: 1px solid var(--line);
  border-radius: 999px; font-size: 11.5px; color: var(--muted);
}
.side__share { display: flex; gap: 8px; margin-top: 26px; }
.share-btn {
  width: 34px; height: 34px; display: grid; place-items: center; border-radius: 999px;
  border: 1px solid transparent; background: none; color: var(--muted); cursor: pointer;
  transition: color .25s, border-color .25s, transform .25s;
}
.share-btn:hover { color: var(--fg); border-color: var(--line); transform: translateY(-2px); }
.share-btn.is-copied { color: var(--fg); border-color: var(--fg); }

.post__body { max-width: var(--read); font-size: 17.5px; }
.post__lede {
  font-family: var(--serif); font-style: italic; font-size: clamp(19px, 2.2vw, 23px);
  line-height: 1.5; color: var(--muted); margin: 0 0 40px;
}
.post__body > h2 { font-size: clamp(25px, 3vw, 33px); margin: 46px 0 16px; }
.post__body > h3 { font-size: clamp(21px, 2.4vw, 26px); margin: 36px 0 12px; }
.post__body p { margin: 0 0 22px; }
.post__body img { margin: 32px auto; max-height: 80vh; width: auto; }
.post__body figure { margin: 32px 0; }
.post__body figcaption { font-size: 13px; color: var(--muted); text-align: center; margin-top: 8px; }
.post__body a { text-underline-offset: 3px; }
.table-wrap { overflow-x: auto; margin: 28px 0; -webkit-overflow-scrolling: touch; }
.post__body table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 460px; }
.post__body td, .post__body th { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.post__body blockquote { margin: 32px 0; padding-left: 22px; border-left: 2px solid var(--fg); font-family: var(--serif); font-style: italic; font-size: 21px; }
.post__body ul, .post__body ol { padding-left: 22px; margin: 0 0 22px; }
.post__body li { margin-bottom: 8px; }

.product-card {
  display: grid; grid-template-columns: 240px 1fr; gap: 28px; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 4px;
  padding: 26px; margin: 40px 0;
}
.product-card img { border-radius: 3px; }
.product-card h3 { margin: 0 0 10px; font-size: 24px; }
.product-card p { margin: 0 0 16px; font-size: 15px; color: var(--muted); }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 32px 0; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; margin: 0; }

/* encart auteur en fin d'article */
.author-card {
  display: grid; grid-template-columns: 108px 1fr; gap: 26px; align-items: start;
  border-top: 1px solid var(--line); margin-top: 56px; padding-top: 34px;
}
.author-card__avatar { width: 108px; height: 108px; border-radius: 999px; object-fit: cover; margin: 0; }
.author-card__label { font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--muted); margin: 0 0 4px; }
.author-card__name { font-size: 24px; margin: 0 0 10px; }
.author-card__bio { font-size: 15px; color: var(--muted); margin: 0; line-height: 1.65; }

.post__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 72px; padding-top: 34px; border-top: 1px solid var(--line); }
.post__nav-item { text-decoration: none; display: block; }
.post__nav-item span { display: block; font-family: var(--serif); font-style: italic; font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.post__nav-item strong { font-family: var(--serif); font-weight: 400; font-size: 19px; line-height: 1.3; transition: opacity .25s; }
.post__nav-item:hover strong { opacity: .6; }
.post__nav-item--next { text-align: right; }

/* ---------- explorer par secteur ---------- */
.sectors { padding: 26px 0 64px; text-align: center; }
.sectors__label {
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 26px;
}
.sectors__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.chip {
  display: inline-block; padding: 13px 26px; border: 1px solid var(--line); border-radius: 999px;
  font-family: var(--serif); font-style: italic; font-size: 17px; text-decoration: none;
  transition: border-color .3s, background-color .3s, transform .3s;
}
.chip:hover { border-color: var(--fg); background: var(--card); transform: translateY(-2px); }

/* ---------- footer ---------- */
.ftr { border-top: 1px solid var(--line); padding-block: 64px 0; }
.ftr__cols { display: grid; grid-template-columns: 1fr auto 1fr; gap: 40px; align-items: start; }
.ftr__col { display: flex; flex-direction: column; align-items: flex-start; }
.ftr__col a { display: block; text-decoration: none; font-family: var(--serif); font-style: italic; font-size: 17px; padding: 5px 0; }
.ftr__col a:hover { opacity: .6; }
.ftr__mid { text-align: center; max-width: 460px; margin: 0 auto; }
.ftr__baseline { font-family: var(--serif); font-style: italic; font-size: clamp(21px, 2.6vw, 30px); line-height: 1.3; margin: 0; }
.ftr__right { align-items: flex-end; text-align: right; }

.ftr__nl { text-align: center; padding: 76px 0 40px; max-width: 760px; }
.ftr__eyebrow { font-family: var(--serif); font-style: italic; font-size: 16px; color: var(--muted); margin: 0 0 14px; }
.ftr__nl-title { font-size: clamp(26px, 3.6vw, 38px); margin: 0 0 32px; line-height: 1.25; }
.ftr__fallback { margin: 16px 0 0; font-size: 13px; color: var(--muted); }
.ftr__fallback a { display: inline; width: auto; font-family: var(--sans); font-style: normal; font-size: 13px; padding: 0; }

.ftr__social { text-align: center; padding: 26px 0; }
.ftr__social a { display: inline-block; width: auto; padding: 8px; color: inherit; transition: opacity .25s, transform .25s; }
.ftr__social a:hover { opacity: .6; transform: translateY(-2px); }
.ftr__copy { text-align: center; font-size: 13px; color: var(--muted); margin: 0 0 40px; }
.ftr__logo { text-align: center; padding: 0 24px; overflow: hidden; }
.ftr__logo a { display: block; width: min(320px, 62vw); margin: 0 auto; }

/* ---------- newsletter ---------- */
.nl { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.nl input {
  flex: 0 1 220px; padding: 15px 20px; border-radius: 6px; border: 1px solid var(--line);
  background: var(--card); color: inherit; font-family: var(--sans); font-size: 14px; outline: none;
  transition: border-color .25s;
}
.nl input::placeholder { color: var(--muted); }
.nl input:focus { border-color: var(--fg); }
.nl .btn { padding: 15px 34px; border-radius: 999px; }

/* ---------- recherche ---------- */
.search { position: fixed; inset: 0; z-index: 95; display: none; background: color-mix(in srgb, var(--bg) 96%, transparent); backdrop-filter: blur(8px); }
.search[data-open="1"] { display: block; }
.search__in { max-width: 720px; margin: 14vh auto 0; padding: 0 24px; }
.search input {
  width: 100%; padding: 18px 4px; font-size: 26px; font-family: var(--serif);
  background: none; border: 0; border-bottom: 1px solid var(--line); color: inherit; outline: none;
}
.search__res { margin-top: 26px; max-height: 52vh; overflow-y: auto; }
.search__res a { display: block; text-decoration: none; padding: 13px 0; border-bottom: 1px solid var(--line); }
.search__res small { color: var(--muted); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }

/* ---------- 404 / vide ---------- */
.center { text-align: center; padding-block: 90px; }
.center h1 { font-size: clamp(70px, 16vw, 170px); margin: 0; }

/* ---------- animations ---------- */
/* tout est pilote par le scroll en CSS natif: si le navigateur ne sait pas animer,
   la regle @supports ne s'applique pas et rien n'est jamais masque. */
@view-transition { navigation: auto; }

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal,
    .post__body > h2, .post__body > h3, .post__body > figure, .post__body > img,
    .post__body > aside, .post__body > .gallery, .post__body > .table-wrap {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 2% cover 18%;
    }
    .progress {
      position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 70;
      background: var(--fg); transform-origin: 0 50%;
      animation: progress linear both;
      animation-timeline: scroll(root block);
    }
  }
}
@keyframes reveal { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* soulignement anime des liens de navigation */
.oc a:not(.btn), .ftr__col a { position: relative; width: fit-content; }
.oc a:not(.btn)::after, .ftr__col a::after {
  content: ""; position: absolute; left: 0; bottom: 4px; height: 1px; width: 100%;
  background: currentColor; transform: scaleX(0); transform-origin: 100% 50%;
  transition: transform .35s cubic-bezier(.22,1,.36,1);
}
.oc a:not(.btn):hover::after, .ftr__col a:hover::after { transform: scaleX(1); transform-origin: 0 50%; }
.ftr__right a { margin-left: auto; }


.pill, .icon-btn, .btn { transition: background-color .25s, color .25s, border-color .25s, opacity .25s, transform .25s; }
.btn:active, .icon-btn:active { transform: scale(.96); }
.card__title { transition: opacity .25s; }
.card:hover .card__title { opacity: .62; }
.row { transition: padding-left .35s cubic-bezier(.22,1,.36,1); }
.row:hover { padding-left: 10px; }

/* le menu se deplie en cascade */
.oc__panel > * { opacity: 0; transform: translateX(-14px); }
.oc[data-open="1"] .oc__panel > * {
  opacity: 1; transform: none;
  transition: opacity .45s ease, transform .45s cubic-bezier(.22,1,.36,1);
}
.oc[data-open="1"] .oc__panel > *:nth-child(n+2) { transition-delay: .04s; }
.oc[data-open="1"] .oc__panel > *:nth-child(n+5) { transition-delay: .08s; }
.oc[data-open="1"] .oc__panel > *:nth-child(n+9) { transition-delay: .12s; }
.oc[data-open="1"] .oc__panel > *:nth-child(n+14) { transition-delay: .16s; }

@media (prefers-reduced-motion: reduce) {
  .oc__panel > *, .oc[data-open="1"] .oc__panel > * { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .post__grid { grid-template-columns: 168px minmax(0, 1fr); gap: 40px; }
}

@media (max-width: 1024px) {
  .feature { grid-template-columns: 1fr; gap: 26px; }
  .row { grid-template-columns: 120px 1fr 220px; gap: 22px; }
  .grid { gap: 38px 26px; }
}

@media (max-width: 760px) {
  .wrap { padding: 0 20px; }
  .row { grid-template-columns: 1fr; gap: 14px; padding: 26px 0; }
  .post__head { grid-template-columns: 1fr; gap: 24px; margin-bottom: 40px; }
  .post__intro { padding-inline: 20px; }
  .post__cover img { max-height: 56vh; }
  .post__grid { grid-template-columns: 1fr; gap: 32px; }
  .post__side {
    position: static; display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 20px;
    padding-bottom: 22px; border-bottom: 1px solid var(--line);
  }
  .side__label:not(:first-child) { margin-top: 0; }
  .side__badge, .side__share { margin-top: 0; }
  .side__share { width: 100%; }
  .post__nav { grid-template-columns: 1fr; gap: 24px; }
  .post__nav-item--next { text-align: left; }
  .row__media { order: -1; }
  .row:hover { padding-left: 0; }
  .ftr__cols { grid-template-columns: 1fr; text-align: center; gap: 26px; }
  .ftr__col, .ftr__right { align-items: center; text-align: center; }
  .ftr__col a { margin-inline: auto; }
  .ftr__nl { padding: 48px 0 30px; }
  .ftr__logo a { width: 62vw; }
  .chip { padding: 11px 20px; font-size: 15.5px; }
  .sectors { padding: 18px 0 44px; }
  .sectors__list { gap: 10px; }
  .product-card { grid-template-columns: 1fr; gap: 18px; padding: 20px; }
  .product-card img { max-width: 220px; margin-inline: auto; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 34px 22px; }
}

@media (max-width: 640px) {
  .hdr__in { height: 60px; grid-template-columns: auto 1fr auto; }
  .hdr__burger span { display: none; }
  .hdr__burger i { width: 24px; }
  .hdr__date { display: none; }
  .hdr__logo { display: block; margin: 0 auto; width: 68px; }
  .hdr.is-stuck .hdr__logo { width: 68px; }
  .hdr__right { gap: 6px; }
  .hdr__right .btn { display: none; }
  .icon-btn { width: 38px; height: 38px; }
  .hero { padding: 32px 0 48px; }
  .hero__logo { width: min(180px, 52vw); }
  .hero__baseline { font-size: 16px; }
  .sec { padding-bottom: 44px; }
  .sec__title { margin-bottom: 24px; }
  .rule { margin: 6px 0 36px; }
  .grid { grid-template-columns: 1fr; gap: 34px; }
  .card__title { font-size: 20px; }
  .post__title { margin-bottom: 16px; }
  .crumbs { padding-block: 16px 18px; font-size: 12px; }
  .author-card { grid-template-columns: 1fr; gap: 16px; text-align: center; justify-items: center; }
  .author-card__avatar { width: 92px; height: 92px; }
  .post__body { font-size: 16.5px; }
  .post__body img { margin: 24px auto; max-height: 62vh; }
  .oc__panel { padding: 26px 24px; }
  .oc a { font-size: 19px; }
  .search__in { margin-top: 10vh; }
  .search input { font-size: 21px; }
  .ftr { padding-block: 44px 0; }
  .nl { flex-direction: column; align-items: stretch; }
  .nl input, .nl .btn { flex: 1 1 auto; width: 100%; }
  .ftr__nl-title { margin-bottom: 24px; }
  .ftr__legal { flex-direction: column; align-items: center; text-align: center; gap: 10px; }
  .nl { max-width: 100%; }
}

@media (max-width: 380px) {
  .wrap { padding: 0 16px; }
  .post__intro { padding-inline: 16px; }
  .hdr__logo { width: 62px; }
}
