/* Reset doux + base typo + bases mobile-first. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; tab-size: 4; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h-mobile) + 8px); }
@media (min-width:768px) { html { scroll-padding-top: calc(var(--header-h) + 8px); } }

body {
  margin: 0;
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  /* PIEGE PROD #11 : overflow-x clip plutot que hidden, JAMAIS overscroll-behavior:none. */
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Reset elements */
h1, h2, h3, h4, h5, h6 { margin: 0 0 .5em; font-family: var(--ff-display); color: var(--text); font-weight: 500; line-height: 1.15; letter-spacing: -.005em; }
p { margin: 0 0 1em; }
img, picture, svg, video, iframe { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
figure { margin: 0; } /* PIEGE PROD #5 : evite la marge UA 0 40px */
blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; }
hr { border: 0; border-top: 1px solid var(--border); margin: 2rem 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--accent-soft); color: var(--text); }

/* PIEGE PROD #8 : composants utilisant l'attribut hidden (modal, lightbox) */
[hidden] { display: none !important; }

/* Container */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
@media (min-width:768px) { .container { padding: 0 32px; } }

/* Sections */
section { padding: 48px 0; }
@media (min-width:768px) { section { padding: 88px 0; } }

/* Eyebrow / section-head */
.eyebrow {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--ff-ui); text-transform: uppercase; letter-spacing: .22em;
  font-size: .76rem; color: var(--accent);
  font-weight: 600;
}
.eyebrow::before { content:""; display:inline-block; width:28px; height:1px; background: var(--accent); }

/* Section-head wrapper */
.section-head { max-width: 640px; margin: 0 0 32px; }
@media (min-width:768px) { .section-head { margin-bottom: 48px; } }
.section-head h2 { font-size: clamp(1.85rem, 4.4vw, 2.8rem); font-style: italic; font-weight: 500; }
.section-head h2 em { font-style: italic; color: var(--accent); }
.section-head p { font-size: 1.05rem; color: var(--text-2); max-width: 56ch; margin: 12px 0 0; }

/* Drop-cap signature Craft */
p.drop-cap::first-letter {
  font-family: var(--ff-display); float: left; font-size: 3.4em; line-height: .82;
  padding: .04em .12em 0 0; font-weight: 500; color: var(--accent); font-style: italic;
}

/* Liens texte */
a.tlink {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  transition: color .2s ease;
}
a.tlink:hover { color: var(--accent-deep); }

/* Selection: respect WCAG */
::-moz-selection { background: var(--accent-soft); color: var(--text); }

/* Scrollbar discrete */
* { scrollbar-width: thin; scrollbar-color: var(--accent) transparent; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--accent) 50%, transparent); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
