/* Réom v2 — base : reset, typographie, mise en page, composants partagés */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; font-family: var(--font-sans); font-size: 1.125rem; line-height: 1.6;
  color: var(--violet); background: var(--blanc);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { font-weight: 500; line-height: 1.06; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.6rem, 6vw, 5.6rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.5rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.65rem); letter-spacing: -0.01em; line-height: 1.2; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
.mono { font-family: var(--font-mono); letter-spacing: 0; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Mise en page */
.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { position: relative; padding-block: clamp(40px, 4.5vw, 64px); }
.section--clair { background: var(--blanc); color: var(--violet); }
.section--teinte { background: var(--teinte); color: var(--violet); }
.section--clair + .section--clair { border-top: 1px solid var(--ligne); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .8em; margin: 0 0 1.6rem;
  font-family: var(--font-mono); font-size: .8125rem; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; color: var(--accent);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.lead { font-size: clamp(1.15rem, 1.6vw, 1.38rem); font-weight: 300; line-height: 1.55; max-width: 40ch; color: var(--texte-2); }
.muted { color: var(--gris); }
.accent { font-weight: 500; color: inherit; }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .8em;
  min-height: 52px; padding: 0 1.6em; border: 1.5px solid transparent;
  font: 500 1rem/1 var(--font-sans); letter-spacing: .01em; text-decoration: none; cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn .arrow { transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(5px); }
.btn--clair { background: var(--blanc); color: var(--violet); }
.btn--clair:hover { background: var(--lilas-pale); }
.btn--violet { background: var(--violet); color: var(--blanc); }
.btn--violet:hover { background: var(--violet-deep); }
.btn--ligne { background: transparent; color: inherit; border-color: currentColor; }
.btn--ligne:hover { background: rgba(59, 38, 99, .06); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* Focus et évitement */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.skip-link {
  position: absolute; left: 16px; top: -120px; z-index: 1000; padding: 12px 18px;
  background: var(--violet); color: var(--blanc); font-weight: 500; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* En-tête */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h); color: var(--violet);
  border-bottom: 1px solid transparent; transition: background-color .35s var(--ease), border-color .35s var(--ease);
}
.site-header.is-scrolled, body.nav-open .site-header { background: var(--blanc); border-bottom-color: var(--ligne); }
.site-header .container { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 14px; color: var(--violet); text-decoration: none; }
.brand svg { width: 78px; height: 32px; flex: none; }
.brand-sig { font-family: var(--font-mono); font-size: .6875rem; letter-spacing: .16em; line-height: 1.5; color: var(--gris); }
.brand-sig b { font-weight: 400; color: inherit; }
#nav-principale { margin-left: auto; display: flex; align-items: center; gap: 28px; }
.nav-list { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-list a { position: relative; display: inline-block; padding: 10px 0; font-size: 1rem; color: var(--texte-2); text-decoration: none; transition: color .2s; }
.nav-list a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 4px; height: 1px; background: var(--accent); transition: right .35s var(--ease); }
.nav-list a:hover, .nav-list a[aria-current="page"] { color: var(--violet); }
.nav-list a:hover::after, .nav-list a[aria-current="page"]::after { right: 0; }
.header-cta { min-height: 44px; padding: 0 1.2em; font-size: .95rem; }
.nav-extra { display: none; }
.nav-toggle { display: none; }

@media (max-width: 1180px) { .brand-sig { display: none; } }
@media (max-width: 899px) {
  .site-header .container { gap: 16px; }
  .header-cta { display: none; }
  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 7px;
    width: 48px; height: 48px; margin-left: auto; padding: 0 12px; border: 0; background: transparent; cursor: pointer;
  }
  .nav-toggle span { display: block; height: 1.5px; background: var(--violet); transition: transform .3s var(--ease); }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4.25px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4.25px) rotate(-45deg); }
  #nav-principale {
    position: fixed; inset: var(--header-h) 0 0 0; margin: 0; padding: 32px var(--gutter) 40px;
    flex-direction: column; align-items: stretch; gap: 32px; overflow-y: auto;
    background: var(--blanc); visibility: hidden; opacity: 0; transition: opacity .3s var(--ease), visibility .3s;
  }
  body.nav-open #nav-principale { visibility: visible; opacity: 1; }
  body.nav-open { overflow: hidden; }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-list a { display: block; padding: 18px 0; font-size: 1.9rem; font-weight: 500; color: var(--violet); border-bottom: 1px solid var(--ligne); }
  .nav-list a::after { display: none; }
  .nav-list a[aria-current="page"] { color: var(--accent); }
  .nav-extra { display: flex; flex-direction: column; gap: 18px; }
}

/* Pied de page */
.site-footer { background: var(--violet); color: var(--blanc); padding-block: 64px 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 48px; }
.footer-brand svg { width: 210px; height: 101px; margin-bottom: 26px; }
.footer-brand p { color: var(--gris); max-width: 32ch; font-size: 1rem; }
.site-footer h2 { font-family: var(--font-mono); font-size: .75rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--gris); margin-bottom: 18px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: var(--blanc); text-decoration: none; overflow-wrap: anywhere; }
.site-footer a:hover { color: var(--accent); }
.site-footer .btn--clair, .site-footer .btn--clair:hover { color: var(--violet); }
.footer-tel { font-family: var(--font-mono); font-size: 1.35rem; }
.footer-bottom {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--ligne);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px;
  font-size: .875rem; color: var(--gris);
}
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-bottom a { color: var(--gris); }
.lien-cookies { padding: 0; border: 0; background: none; font: inherit; color: var(--gris); text-decoration: underline; cursor: pointer; }

/* Bandeau cookies (js/cookies.js) : en bas de l'écran, Refuser et Accepter de même taille */
.cookies { position: fixed; z-index: 80; left: 0; right: 0; bottom: 0; padding: 22px 0; padding-bottom: max(22px, env(safe-area-inset-bottom, 0px));
  background: var(--teinte); color: var(--violet); border-top: 1px solid var(--ligne); box-shadow: 0 -14px 34px -20px rgba(42, 26, 73, .4); }
.cookies[hidden] { display: none; }
.cookies-grille { display: flex; align-items: center; justify-content: space-between; gap: 16px 40px; }
.cookies-texte { max-width: 70ch; margin: 0; font-size: 1rem; line-height: 1.6; }
.cookies-texte a { color: inherit; }
.cookies-actions { display: flex; flex: none; gap: 14px; }
.cookies-actions .btn { min-width: 170px; }
.cookies-ouvert .assistant-bouton { display: none; }
.js-anim .cookies { animation: cookies-arrivee .5s var(--ease) both; }
@keyframes cookies-arrivee { from { transform: translateY(100%); } }
@media (max-width: 760px) {
  .cookies { padding-top: 18px; }
  .cookies-grille { flex-direction: column; align-items: stretch; }
  .cookies-texte { font-size: .9375rem; }
  .cookies-actions .btn { flex: 1; min-width: 0; }
}
@media (max-width: 899px) { .footer-grid { grid-template-columns: 1fr; gap: 40px; } }

/* Révélations (uniquement si JS + mouvement autorisé) */
.js-anim .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js-anim .reveal.is-in { opacity: 1; transform: none; }
.js-anim .reveal[data-delay="1"] { transition-delay: .1s; }
.js-anim .reveal[data-delay="2"] { transition-delay: .2s; }
.js-anim .reveal[data-delay="3"] { transition-delay: .3s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
