/* Reset + base typo */
*,*::before,*::after{box-sizing:border-box;}
html{scroll-behavior:smooth;scroll-padding-top:calc(var(--header-h-mobile) + 8px);}
@media (min-width: 768px){html{scroll-padding-top:calc(var(--header-h) + 12px);}}
html,body{margin:0;padding:0;overflow-x:hidden;max-width:100vw;}
body{
  font-family: var(--ff-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Reset divers (piege #5 : figure margin) */
figure,blockquote,dl,dd{margin:0;}
ul,ol{margin:0;padding:0;list-style:none;}
h1,h2,h3,h4,h5,h6{margin:0;font-family:var(--ff-display);font-weight:500;line-height:1.2;color:var(--text);}
p{margin:0 0 1em;}
img,video,iframe{max-width:100%;height:auto;display:block;}
a{color:var(--accent);text-decoration:none;transition:color .2s ease;}
a:hover{color:var(--accent-2);}
button{font-family:inherit;cursor:pointer;background:none;border:0;color:inherit;}
[hidden]{display:none !important;}

/* Selection + scroll + focus (micro-details propres) */
::selection{background:var(--accent);color:#fff;}
::-webkit-scrollbar{width:8px;height:8px;}
::-webkit-scrollbar-track{background:var(--bg-alt);}
::-webkit-scrollbar-thumb{background:var(--accent);border-radius:4px;}
::-webkit-scrollbar-thumb:hover{background:var(--accent-2);}
:focus-visible{outline:2px solid var(--accent);outline-offset:3px;border-radius:4px;}
::placeholder{color:var(--text-mute);opacity:1;}

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

/* Section padding mobile-first */
section{padding:48px 0;position:relative;}
@media (min-width: 768px){section{padding:80px 0;}}

/* Typo helpers */
.eyebrow{
  font-family:var(--ff-ui);
  text-transform:uppercase;
  letter-spacing:.18em;
  font-size:.78rem;
  font-weight:600;
  color:var(--accent);
  margin-bottom:14px;
  display:inline-block;
}
.section-title{
  font-family:var(--ff-display);
  font-size:clamp(1.7rem,4.4vw,2.6rem);
  line-height:1.15;
  font-weight:500;
  margin-bottom:16px;
}
.section-sub{
  font-size:1.02rem;
  color:var(--text-2);
  max-width:60ch;
  margin-bottom:32px;
}

/* Texture TEX-3 — points discrets */
body{
  background:var(--bg);
  background-image: radial-gradient(color-mix(in srgb,var(--text) 9%,transparent) 1px,transparent 1px);
  background-size: 24px 24px;
  background-attachment: fixed;
}

/* Anti-debordement select (piege #10) */
.field, .field > *{min-width:0;}
select{max-width:100%;width:100%;}
