/* ==========================================================================
   Arverna Group — feuille de style
   Thème : noir profond, argent, ciel étoilé. Serif haute couture + sans épuré.
   ========================================================================== */

/* ---------- 1. Jetons de design ---------- */
:root {
  --bg:          #050506;
  --bg-2:        #08080b;
  --surface:     #0c0c11;
  --line:        rgba(255, 255, 255, .10);
  --line-soft:   rgba(255, 255, 255, .06);
  --line-strong: rgba(255, 255, 255, .26);

  --txt:         #ececef;
  --txt-dim:     #a4a4ae;
  --muted:       #76767f;

  --silver:      linear-gradient(150deg, #ffffff 0%, #e2e5ea 28%, #949aa4 64%, #f6f7f9 100%);
  --hairline:    linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent);

  --wrap:        1120px;
  --wrap-narrow: 720px;
  --gutter:      clamp(1.25rem, 5vw, 3rem);
  --header-h:    72px;

  --ease:        cubic-bezier(.22, .61, .36, 1);
  --serif:       "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --sans:        "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

.i18n-pending body { opacity: 0; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--txt);
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(.95rem, .9rem + .2vw, 1.02rem);
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Halo froid très discret, ancré en haut de page */
body::before {
  content: "";
  position: fixed;
  inset: -25vh 0 auto 0;
  height: 110vh;
  background:
    radial-gradient(58% 42% at 50% 24%, rgba(150, 168, 200, .11), transparent 70%),
    radial-gradient(38% 28% at 82% 6%,  rgba(255, 255, 255, .045), transparent 70%);
  pointer-events: none;
  z-index: -2;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 { margin: 0; font-weight: 400; text-wrap: balance; }

h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2rem, 1.2rem + 3.2vw, 3.6rem);
  line-height: 1.12;
  letter-spacing: -.012em;
}
h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.4rem, 1.15rem + 1vw, 1.85rem);
  line-height: 1.2;
}
p { margin: 0 0 1.1em; }

::selection { background: rgba(255, 255, 255, .85); color: #05050a; }

:focus-visible {
  outline: 1px solid rgba(255, 255, 255, .8);
  outline-offset: 4px;
  border-radius: 3px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap-narrow { max-width: var(--wrap-narrow); }

.skip {
  position: absolute;
  left: -9999px;
  z-index: 200;
  background: #fff;
  color: #000;
  padding: .7rem 1.1rem;
}
.skip:focus { left: 1rem; top: 1rem; }

/* ---------- 3. Ambiance : étoiles et grain ---------- */
#stars {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 52%, transparent 88%);
  mask-image: linear-gradient(180deg, #000 0%, #000 52%, transparent 88%);
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- 4. En-tête ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background .4s var(--ease), border-color .4s var(--ease);
}
.site-header.is-stuck {
  background: rgba(5, 5, 8, .78);
  border-bottom-color: var(--line-soft);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.brand { display: inline-flex; align-items: center; gap: .65rem; }
.brand img { width: 28px; height: 28px; object-fit: contain; }
.brand-text {
  font-size: .78rem;
  font-weight: 400;
  letter-spacing: .24em;
  text-transform: uppercase;
}
.brand-text em {
  font-style: normal;
  color: var(--muted);
  margin-left: .5em;
}

.nav { display: flex; align-items: center; gap: clamp(1.4rem, 3vw, 2.6rem); }
.nav a {
  position: relative;
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--txt-dim);
  padding: .4rem 0;
  transition: color .3s var(--ease);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--hairline);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease);
}
.nav a:hover, .nav a.is-active { color: #fff; }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }

.header-side { display: flex; align-items: center; gap: 1rem; }

/* Sélecteur de langue */
.lang { display: inline-flex; align-items: center; gap: .55rem; }
.lang-sep { width: 1px; height: 14px; background: var(--line); }
.lang-btn {
  display: grid;
  place-items: center;
  width: 26px; height: 18px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: none;
  cursor: pointer;
  overflow: hidden;
  opacity: .42;
  filter: saturate(.55);
  transition: opacity .3s var(--ease), filter .3s var(--ease),
              border-color .3s var(--ease), transform .3s var(--ease);
}
.lang-btn svg { width: 100%; height: 100%; display: block; }
.lang-btn:hover { opacity: .85; filter: saturate(.9); transform: translateY(-1px); }
.lang-btn[aria-pressed="true"] {
  opacity: 1;
  filter: none;
  border-color: var(--line-strong);
}

.burger {
  display: none;
  width: 38px; height: 38px;
  padding: 0;
  background: none;
  border: 1px solid var(--line);
  border-radius: 3px;
  cursor: pointer;
  position: relative;
}
.burger span {
  position: absolute;
  left: 11px;
  width: 15px; height: 1px;
  background: var(--txt);
  transition: transform .35s var(--ease), opacity .2s var(--ease);
}
.burger span:nth-child(1) { top: 13px; }
.burger span:nth-child(2) { top: 18px; }
.burger span:nth-child(3) { top: 23px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* ---------- 5. Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 3rem) 0 6rem;
}
.hero-inner { text-align: center; }

.eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  margin-bottom: 2.6rem;
  font-size: .68rem;
  letter-spacing: .42em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow .rule {
  width: clamp(28px, 8vw, 64px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.28));
}
.eyebrow .rule:last-child { background: linear-gradient(90deg, rgba(255,255,255,.28), transparent); }

.hero-logo { margin: 0; }
.hero-logo img {
  width: min(72vw, 380px);
  margin-inline: auto;
  filter: drop-shadow(0 20px 50px rgba(178, 198, 235, .15));
  animation: float 10s ease-in-out infinite;
}
.hero-wordmark {
  display: block;
  margin-top: .5rem;
  font-size: clamp(.72rem, .55rem + .7vw, .95rem);
  font-weight: 300;
  letter-spacing: .68em;
  text-indent: .68em;
  text-transform: uppercase;
  background: var(--silver);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

.hero-lead {
  max-width: 46ch;
  margin: 2.4rem auto 2.8rem;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 1rem + 1.1vw, 1.72rem);
  font-weight: 300;
  line-height: 1.42;
  color: var(--txt-dim);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  justify-content: center;
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 2.4rem;
  transform: translateX(-50%);
  width: 20px; height: 34px;
  border: 1px solid var(--line);
  border-radius: 100px;
}
.scroll-hint span {
  position: absolute;
  left: 50%; top: 7px;
  width: 1px; height: 6px;
  margin-left: -.5px;
  background: rgba(255, 255, 255, .7);
  animation: wheel 2.4s var(--ease) infinite;
}
@keyframes wheel {
  0%   { opacity: 0; transform: translateY(0); }
  30%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(13px); }
}

/* ---------- 6. Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  border: 1px solid transparent;
  border-radius: 100px;
  padding: .8rem 1.9rem;
  font-family: var(--sans);
  font-size: .7rem;
  font-weight: 400;
  letter-spacing: .2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .3s var(--ease), background .3s var(--ease),
              border-color .3s var(--ease), color .3s var(--ease),
              box-shadow .3s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(180deg, #ffffff, #d5d8de);
  color: #08080c;
  box-shadow: 0 12px 34px -14px rgba(215, 225, 245, .6);
}
.btn-primary:hover { box-shadow: 0 18px 44px -14px rgba(215, 225, 245, .75); }

.btn-ghost { border-color: var(--line-strong); color: var(--txt); }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .05); }

/* ---------- 7. Sections ---------- */
.section { position: relative; padding: clamp(4.5rem, 10vw, 9rem) 0; }

.section-head { margin-bottom: clamp(2.5rem, 5vw, 3.75rem); max-width: 46rem; }
.section-head-center { max-width: none; text-align: center; }

.kicker {
  margin-bottom: 1.35rem;
  font-size: .66rem;
  letter-spacing: .38em;
  text-transform: uppercase;
  color: var(--muted);
}
.section-sub {
  margin: 1.4rem auto 0;
  max-width: 46ch;
  color: var(--txt-dim);
  font-size: .95rem;
}

.lead-text {
  max-width: 58ch;
  color: var(--txt-dim);
  font-size: clamp(1rem, .95rem + .3vw, 1.12rem);
}

/* Valeurs : liste numérotée, filets fins */
.values {
  list-style: none;
  margin: clamp(2.5rem, 5vw, 4rem) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 1px;
  background: var(--line-soft);
  border-block: 1px solid var(--line-soft);
}
.values li {
  background: var(--bg);
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 1.6rem .25rem;
  font-family: var(--serif);
  font-size: 1.32rem;
  transition: background .4s var(--ease);
}
.values li:hover { background: var(--bg-2); }
.values-num {
  font-family: var(--sans);
  font-size: .64rem;
  letter-spacing: .22em;
  color: var(--muted);
}

/* ---------- 8. Ornements ---------- */
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin-inline: auto;
}
.ornament-line { flex: 1 1 auto; height: 1px; background: var(--hairline); }
.ornament-star { width: 9px; height: 9px; fill: rgba(255, 255, 255, .45); flex: none; }

/* ---------- 9. Entités ---------- */
.entity {
  display: grid;
  grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  padding: clamp(2rem, 5vw, 3.25rem) 0;
  border-top: 1px solid var(--line-soft);
}
.entity:last-child { border-bottom: 1px solid var(--line-soft); }

.entity-visual img {
  width: min(52vw, 210px);
  margin-inline: auto;
  filter: drop-shadow(0 16px 38px rgba(178, 198, 235, .14));
  transition: transform .6s var(--ease);
}
.entity:hover .entity-visual img { transform: translateY(-4px) scale(1.02); }

.entity-placeholder {
  display: grid;
  place-items: center;
  width: min(52vw, 210px);
  aspect-ratio: 1;
  margin-inline: auto;
  border: 1px dashed var(--line);
  border-radius: 50%;
}
.entity-placeholder svg { width: 26px; height: 26px; fill: rgba(255, 255, 255, .3); }

.entity-tag {
  margin-bottom: .85rem;
  font-size: .64rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--muted);
}
.entity-body h3 { margin-bottom: .7rem; }
.entity-body > p:last-child { margin: 0; color: var(--txt-dim); }
.entity-soon { opacity: .72; }

/* ---------- 10. Contact ---------- */
.contact-form { display: grid; gap: 2rem; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.field { display: grid; gap: .55rem; }
.field label {
  font-size: .64rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--muted);
}

.field input,
.field textarea {
  width: 100%;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1rem;
  color: var(--txt);
  background: none;
  border: none;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: .55rem 0;
  transition: border-color .35s var(--ease);
}
.field textarea { resize: vertical; min-height: 110px; line-height: 1.7; }
.field input:hover, .field textarea:hover { border-bottom-color: var(--line-strong); }
.field input:focus, .field textarea:focus {
  outline: none;
  border-bottom-color: #fff;
}
.field .is-invalid { border-bottom-color: #b4545e; }

.field input:-webkit-autofill,
.field input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--txt);
  transition: background-color 6000s;
}

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.btn-submit { justify-self: center; }
.spinner {
  display: none;
  width: 13px; height: 13px;
  border: 1.5px solid rgba(8, 8, 12, .25);
  border-top-color: #08080c;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.contact-form.is-sending .spinner { display: block; }
.contact-form.is-sending .btn-submit { pointer-events: none; opacity: .7; }

.form-status {
  margin: 0;
  min-height: 1.5em;
  text-align: center;
  font-size: .85rem;
  color: var(--txt-dim);
}
.form-status.is-ok    { color: #96dfb4; }
.form-status.is-error { color: #e8949d; }

/* ---------- 11. Pied de page ---------- */
.site-footer {
  border-top: 1px solid var(--line-soft);
  padding: 3rem 0 2.6rem;
  background: #030304;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  text-align: center;
}
.footer-mark { width: 30px; height: 30px; object-fit: contain; opacity: .55; }
.footer-legal {
  margin: 0;
  font-size: .7rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #5b5b64;
}

/* ---------- 12. Apparitions au défilement ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- 13. Adaptatif ---------- */
@media (max-width: 860px) {
  .entity { grid-template-columns: 1fr; text-align: center; }
  .section-head { max-width: none; }
}

/* Le sur-titre tres espace deborde sous 560 px : on le resserre. */
@media (max-width: 560px) {
  .eyebrow { gap: .75rem; font-size: .58rem; letter-spacing: .26em; }
  .eyebrow .rule { width: 22px; }
  .hero-wordmark { letter-spacing: .5em; text-indent: .5em; }
}

@media (max-width: 760px) {
  :root { --header-h: 62px; }

  .burger { display: block; }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .5rem var(--gutter) 1.75rem;
    background: rgba(5, 5, 8, .97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line-soft);
    transform: translateY(-115%);
    opacity: 0;
    visibility: hidden;
    transition: transform .45s var(--ease), opacity .3s var(--ease), visibility .45s;
  }
  .nav.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav a {
    padding: 1.05rem 0;
    border-bottom: 1px solid var(--line-soft);
    font-size: .8rem;
    letter-spacing: .26em;
  }
  .nav a::after { display: none; }

  .field-row { grid-template-columns: 1fr; gap: 2rem; }
  .hero { min-height: 92svh; }
  .scroll-hint { display: none; }
}

/* ---------- 14. Préférences utilisateur ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  #stars { display: none; }
}

@media print {
  #stars, .grain, .site-header, .scroll-hint, .contact-form { display: none; }
  body { background: #fff; color: #000; }
}
