/* The Ivory Edit: feuille de style propre au site (aucun framework, aucun script externe). */
@font-face { font-family: "IE Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/cormorant-garamond-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IE Serif"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "IE Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/manrope-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IE Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/manrope-latin-600-normal.woff2") format("woff2"); }

:root {
  --paper: #F6F1E9;
  --paper-2: #EEE6D8;
  --card: #FBF8F2;
  --ink: #241F1B;
  --ink-2: #5A5047;
  --rule: #D6C9B6;
  --clay: #9A5A42;
  --sage: #55624E;
  --foot: #2A2420;
  --max: 1180px;
  --prose: 680px;
  --serif: "IE Serif", Georgia, "Times New Roman", serif;
  --sans: "IE Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.72 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--clay); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; letter-spacing: -0.01em; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.25rem); margin-top: 2.2em; }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); margin-top: 1.6em; }
p { margin: 0 0 1.05em; }
ol, ul { padding-left: 1.3em; margin: 0 0 1.2em; }
li { margin-bottom: .45em; }

.ive-skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 12px; z-index: 10; }
.ive-skip:focus { left: 12px; }
.ive-wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .ive-wrap { padding: 0 32px; } }

.ive-kicker { font: 600 .78rem/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--sage); margin: 0 0 .9em; }
.ive-small { font-size: .9rem; color: var(--ink-2); }
.ive-deck { font: 400 1.2rem/1.6 var(--serif); color: var(--ink-2); max-width: 36em; }
.ive-lede { font-size: 1.15rem; color: var(--ink-2); }
.ive-lede p { margin-bottom: .8em; }
.ive-meta { font-size: .9rem; color: var(--ink-2); margin: 1.2em 0 0; }

/* En-tete */
.ive-top { border-bottom: 1px solid var(--rule); background: var(--paper); }
.ive-top__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; padding-top: 16px; padding-bottom: 14px; }
.ive-brand { font: italic 600 1.7rem/1 var(--serif); color: var(--ink); text-decoration: none; letter-spacing: .01em; }
.ive-nav { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .92rem; }
.ive-nav a { color: var(--ink-2); text-decoration: none; padding: 4px 0; border-bottom: 1px solid transparent; }
.ive-nav a:hover, .ive-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--clay); }

/* Accueil */
.ive-hero { padding: 40px 0 56px; }
.ive-hero__grid { display: grid; gap: 36px; align-items: center; }
@media (min-width: 900px) { .ive-hero__grid { grid-template-columns: 1.05fr .95fr; gap: 56px; } }
.ive-hero__cta { margin-top: 1.6em; display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; }
.ive-hero__img img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; border-radius: 2px; }
.ive-btn { display: inline-block; background: var(--ink); color: var(--paper); padding: 12px 20px; text-decoration: none; font-weight: 600; font-size: .95rem; border-radius: 2px; }
.ive-btn:hover { background: var(--clay); color: var(--paper); }
.ive-link { color: var(--ink); font-weight: 600; }

.ive-band { background: var(--paper-2); padding: 44px 0 52px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.ive-band .ive-h2 { margin-top: 0; }
.ive-tiles { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .ive-tiles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .ive-tiles { grid-template-columns: repeat(4, 1fr); } }
.ive-tile { display: flex; flex-direction: column; gap: 8px; padding: 22px 22px 24px; background: var(--card); border: 1px solid var(--rule); border-top: 3px solid var(--clay); text-decoration: none; color: var(--ink); }
.ive-tile:hover { border-top-color: var(--sage); }
.ive-tile__t { font: 600 1.5rem/1.15 var(--serif); }
.ive-tile__d { font-size: .95rem; color: var(--ink-2); }
.ive-h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin: 0 0 22px; }
.ive-section { padding-top: 56px; padding-bottom: 40px; }

/* Cartes */
.ive-grid { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .ive-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .ive-grid { grid-template-columns: repeat(3, 1fr); } }
.ive-card { background: var(--card); border: 1px solid var(--rule); display: flex; flex-direction: column; }
.ive-card__img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.ive-card__body { padding: 18px 20px 22px; }
.ive-card__title { font: 600 1.45rem/1.2 var(--serif); margin: 0 0 .4em; }
.ive-card__title a { color: var(--ink); text-decoration: none; }
.ive-card__title a:hover { color: var(--clay); }
.ive-card__desc { font-size: .97rem; color: var(--ink-2); margin-bottom: .6em; }
.ive-more { margin-top: 1.4em; font-weight: 600; }

/* Pages et articles */
.ive-page-hero { padding: 44px 0 26px; }
.ive-page-hero h1 { max-width: 20em; margin-bottom: .45em; }
.ive-page-hero + .ive-wrap { margin-bottom: 8px; }
.ive-hero-fig { padding-bottom: 8px; }
.ive-figure { margin: 2.1rem 0; }
.ive-figure img { width: 100%; height: auto; border-radius: 2px; }
.ive-hero-fig .ive-figure { margin: 0 0 8px; }
.ive-doc { padding-top: 14px; padding-bottom: 40px; }
.ive-prose { max-width: var(--prose); margin: 0 auto; }
.ive-prose > p:first-child { font-size: 1.12rem; color: var(--ink-2); }
.ive-article__head { padding-top: 46px; }
.ive-article__head h1 { max-width: 19em; margin-bottom: .4em; }
.ive-article__grid { padding-top: 28px; padding-bottom: 36px; }
.ive-article__grid .ive-prose > p:first-child { font-size: 1.12rem; color: var(--ink-2); }
.ive-toc { border: 1px solid var(--rule); background: var(--card); padding: 14px 18px; margin: 0 0 2.2rem; }
.ive-toc summary { font-weight: 600; cursor: pointer; }
.ive-toc ol { margin: 10px 0 0; padding-left: 1.2em; }
.ive-toc li { margin-bottom: .3em; }
.ive-toc a { color: var(--ink-2); }
.ive-more a { color: var(--clay); }
.ive-prose blockquote, .ive-note { border-left: 3px solid var(--clay); padding: 2px 0 2px 16px; color: var(--ink-2); }
.ive-related { padding-top: 16px; padding-bottom: 60px; border-top: 1px solid var(--rule); margin-top: 24px; }
.ive-byline { margin-top: 3rem; padding-top: 1.2rem; border-top: 1px solid var(--rule); }
.ive-byline p:last-child { margin: 0; }
.ive-faq h2 { margin-top: 2.4em; }
.ive-faq h3 { font-size: 1.35rem; margin-bottom: .3em; }
.ive-faq p { margin-bottom: 1.2em; }

/* Tableaux */
.ive-table-wrap { overflow-x: auto; margin: 1.4em 0 1.8em; -webkit-overflow-scrolling: touch; }
.ive-table { width: 100%; border-collapse: collapse; font-size: .96rem; min-width: 420px; }
.ive-table th, .ive-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.ive-table thead th { font-weight: 600; background: var(--paper-2); border-bottom: 2px solid var(--rule); }
.ive-table tfoot th, .ive-table tfoot td { font-weight: 600; }

/* Modules interactifs */
.ive-module { background: var(--card); border: 1px solid var(--rule); padding: 22px 20px 20px; margin: 2.2rem 0; }
.ive-module__title { font-size: 1.5rem; margin: 0 0 .3em; }
.ive-module__lede { font-size: .95rem; color: var(--ink-2); margin-bottom: 1em; }
.ive-module__out { margin: 1em 0 0; font-weight: 600; color: var(--sage); min-height: 1.4em; }
.ive-result { color: var(--ink); background: var(--paper); border-left: 3px solid var(--sage); padding: 10px 14px; }
.ive-checks { list-style: none; padding: 0; margin: 0; counter-reset: none; }
.ive-checks > li { border-bottom: 1px solid var(--rule); margin: 0; }
.ive-checks > li:last-child { border-bottom: 0; }
.ive-check { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; cursor: pointer; }
.ive-check input { width: 20px; height: 20px; margin: 3px 0 0; flex: 0 0 20px; accent-color: var(--sage); }
.ive-check span:not(.ive-range) { flex: 1 1 auto; }
.ive-range { white-space: nowrap; color: var(--ink-2); font-size: .92rem; font-variant-numeric: tabular-nums; }
.ive-field { margin-bottom: 14px; }
.ive-field label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 6px; }
.ive-field input, .ive-table input[type="number"] { width: 100%; max-width: 220px; padding: 10px 12px; border: 1px solid var(--rule); background: #fff; font: inherit; color: var(--ink); border-radius: 2px; }
.ive-table input[type="number"] { max-width: 92px; }
.ive-table th[scope="row"] label { font-weight: 600; }
.ive-question { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
.ive-question legend { font-weight: 600; margin-bottom: 8px; padding: 0; }
.ive-option { display: flex; gap: 10px; align-items: flex-start; padding: 7px 0; cursor: pointer; }
.ive-option input { width: 18px; height: 18px; margin-top: 4px; flex: 0 0 18px; accent-color: var(--clay); }
.ive-timeline { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--clay); }
.ive-timeline li { padding: 0 0 18px 20px; margin: 0; position: relative; }
.ive-timeline li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; background: var(--paper); border: 2px solid var(--clay); border-radius: 50%; }
.ive-tl__when { font-weight: 600; margin-bottom: 2px; }
.ive-fabric { border-bottom: 1px solid var(--rule); padding: 12px 0; }
.ive-fabric:first-of-type { border-top: 1px solid var(--rule); }
.ive-fabric summary { font: 600 1.2rem/1.3 var(--serif); cursor: pointer; }
.ive-fabric p { margin: 8px 0 0; color: var(--ink-2); }
.ive-chart { margin-top: 1.2em; }
.ive-chart summary { cursor: pointer; font-weight: 600; }

/* Pied de page */
.ive-foot { background: var(--foot); color: #E8DFD2; margin-top: 40px; }
.ive-foot a { color: #E8DFD2; text-decoration: none; display: block; padding: 3px 0; }
.ive-foot a:hover { color: #FFFFFF; text-decoration: underline; }
.ive-foot .ive-small { color: #CFC4B4; }
.ive-foot__grid { display: grid; gap: 28px; padding-top: 44px; padding-bottom: 32px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .ive-foot__grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.ive-foot__brand { font: italic 600 1.5rem/1.2 var(--serif); color: #FFFFFF; margin: 0 0 .5em; }
.ive-foot__head { font: 600 .78rem/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #CFC4B4; margin-bottom: 8px; }
.ive-foot__base { border-top: 1px solid #4A4038; padding-top: 16px; padding-bottom: 22px; font-size: .88rem; color: #CFC4B4; }
.ive-foot__base p { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
