/* =========================================================
   Mutualease — feuille de style
   Identité « Point commun » : vert profond, lime, sauge, sable
   ========================================================= */

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-display: swap;
  font-weight: 300 700;
  src: url("space-grotesk.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-display: swap;
  font-weight: 300 700;
  src: url("space-grotesk-ext.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --green-950: #061A16;
  --green-900: #07201C;
  --green-800: #0B2B26;
  --green-700: #123A33;
  --line:      #2C514A;
  --lime:      #C5F04A;
  --lime-600:  #ADD92F;
  --sage:      #8FB9A8;
  --sand:      #F2EFE6;
  --sand-200:  #E6E1D3;
  --white:     #FFFFFF;
  --text-dark: #0B2B26;
  --text-soft: #4A615B;
  --danger:    #B42318;

  --radius-lg: 28px;
  --radius-md: 14px;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --font: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--white);
  background: var(--green-800);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.02; letter-spacing: -0.035em; font-weight: 700; }
p { margin: 0; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--lime); color: var(--green-900); padding: 10px 16px; border-radius: 10px; font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 6px; }

/* ---------- Boutons ---------- */
.btn {
  --bg: var(--lime); --fg: var(--green-900);
  display: inline-flex; align-items: center; gap: 10px;
  font: inherit; font-weight: 600; font-size: 17px; letter-spacing: -0.01em;
  text-decoration: none; cursor: pointer;
  background: var(--bg); color: var(--fg);
  border: 0; border-radius: 999px; padding: 15px 26px;
  transition: transform .2s ease, background-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.btn .arrow { transition: transform .2s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(197, 240, 74, .55); }
.btn:hover .arrow { transform: translateX(4px); }
.btn:active { transform: translateY(0); }
.btn-sm { font-size: 15px; padding: 10px 18px; }
.btn-dark { --bg: var(--green-800); --fg: var(--lime); }
.btn-dark:hover { --bg: var(--lime); --fg: var(--green-900); }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; box-shadow: none; }

/* ---------- En-tête ---------- */
.site-header { position: absolute; inset: 0 0 auto 0; z-index: 10; }
.nav { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--white); }
.brand-mark { width: 40px; height: 40px; flex: none; }
.brand-word { font-size: 23px; font-weight: 700; letter-spacing: -0.04em; line-height: 1; }

/* ---------- Accueil ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: min(100svh, 860px);
  display: flex; align-items: center;
  padding: 120px 0 72px;
  background:
    radial-gradient(60% 70% at 85% 40%, rgba(197, 240, 74, .10), transparent 65%),
    radial-gradient(50% 60% at 0% 100%, rgba(143, 185, 168, .12), transparent 70%),
    var(--green-800);
  overflow: hidden;
}
.hero-grid-bg {
  position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(rgba(143, 185, 168, .22) 1.2px, transparent 1.2px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(80% 70% at 70% 45%, #000 20%, transparent 75%);
          mask-image: radial-gradient(80% 70% at 70% 45%, #000 20%, transparent 75%);
}
.hero-inner { display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: clamp(32px, 5vw, 72px); }

.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--lime);
  padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: rgba(6, 26, 22, .35);
}
.kicker-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px rgba(197, 240, 74, .18); }
.kicker-dark { color: var(--green-800); border-color: var(--sand-200); background: rgba(255, 255, 255, .55); }
.kicker-dark .kicker-dot { box-shadow: 0 0 0 4px rgba(11, 43, 38, .10); }

.hero h1 {
  margin-top: 28px;
  font-size: clamp(52px, 8.6vw, 118px);
  color: var(--white);
}
.hl { color: var(--lime); }
.hero-actions { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 14px; }

.hero-art { justify-self: end; width: min(100%, 480px); }
.hero-art svg { width: 100%; height: auto; overflow: visible; }
.art-tile { filter: drop-shadow(0 40px 60px rgba(0, 0, 0, .35)); }
.art-line { stroke-dasharray: 1; stroke-dashoffset: 0; }
.art-pulse { transform-origin: 200px 220px; opacity: 0; }

@media (prefers-reduced-motion: no-preference) {
  .art-left  { stroke-dashoffset: 1; animation: draw 1.1s cubic-bezier(.65, 0, .35, 1) .15s forwards; }
  .art-right { stroke-dashoffset: 1; animation: draw 1.1s cubic-bezier(.65, 0, .35, 1) .55s forwards; }
  .art-pulse { animation: pulse 2.8s ease-out 1.7s infinite; }
  .art-node  { opacity: 0; animation: fade .4s ease 1.5s forwards; }
  .hero-text > * { opacity: 0; transform: translateY(16px); animation: rise .8s cubic-bezier(.2, .7, .2, 1) forwards; }
  .hero-text > :nth-child(2) { animation-delay: .1s; }
  .hero-text > :nth-child(3) { animation-delay: .2s; }
  .art-tile { animation: float 7s ease-in-out infinite; transform-origin: center; }
}
@keyframes draw  { to { stroke-dashoffset: 0; } }
@keyframes fade  { to { opacity: 1; } }
@keyframes rise  { to { opacity: 1; transform: none; } }
@keyframes pulse { 0% { opacity: .9; transform: scale(.6); } 80%, 100% { opacity: 0; transform: scale(2.4); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---------- Bandeau défilant ---------- */
.band { background: var(--lime); color: var(--green-900); overflow: hidden; border-block: 1px solid var(--lime-600); }
.band-track {
  display: flex; align-items: center; gap: 28px; width: max-content;
  padding: 18px 0; white-space: nowrap;
  font-size: clamp(20px, 2.4vw, 28px); font-weight: 700; letter-spacing: -0.02em;
}
.band-track svg { width: 28px; height: 28px; flex: none; }
.band-track polyline { fill: none; stroke: var(--green-800); stroke-width: 12; stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-reduced-motion: no-preference) {
  .band-track { animation: marquee 38s linear infinite; }
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Contact ---------- */
.contact { background: var(--sand); color: var(--text-dark); padding: clamp(72px, 10vw, 128px) 0; }
.contact-inner { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.contact h2 { margin-top: 24px; font-size: clamp(42px, 6vw, 76px); }
.lead { margin-top: 20px; font-size: 19px; color: var(--text-soft); max-width: 30ch; }
.contact-deco { width: 120px; margin-top: 48px; opacity: .9; }

.form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 44px);
  box-shadow: 0 1px 0 rgba(11, 43, 38, .04), 0 30px 60px -30px rgba(11, 43, 38, .25);
  border: 1px solid var(--sand-200);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.field label { font-size: 15px; font-weight: 600; color: var(--text-dark); }
.field input, .field textarea {
  font: inherit; font-size: 16px; color: var(--text-dark);
  background: #F8F6F0; border: 1.5px solid var(--sand-200); border-radius: var(--radius-md);
  padding: 14px 16px; width: 100%;
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.field textarea { resize: vertical; min-height: 160px; }
.field input::placeholder, .field textarea::placeholder { color: #8A9A95; }
.field input:hover, .field textarea:hover { border-color: #CFC8B5; }
.field input:focus, .field textarea:focus {
  outline: none; background: var(--white); border-color: var(--green-800);
  box-shadow: 0 0 0 4px rgba(197, 240, 74, .55);
}
.field input:user-invalid, .field textarea:user-invalid { border-color: var(--danger); }

.rgpd { font-size: 14px; color: var(--text-soft); }
.rgpd a { color: var(--text-dark); text-underline-offset: 3px; }
.form-foot { margin-top: 24px; display: flex; align-items: center; flex-wrap: wrap; gap: 16px 20px; }
.form-status { font-size: 15px; font-weight: 500; }
.form-status.is-ok { color: #1F6B3A; }
.form-status.is-error { color: var(--danger); }

.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--green-900); color: var(--sage); padding: 36px 0; border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px 32px; }
.brand-small .brand-mark { width: 32px; height: 32px; }
.brand-small .brand-word { font-size: 19px; }
.copyright { font-size: 15px; }
.footer-link { font-size: 15px; color: var(--white); text-underline-offset: 4px; }
.footer-link:hover { color: var(--lime); }

/* ---------- Pages de texte (mentions légales, 404) ---------- */
.page { background: var(--sand); color: var(--text-dark); padding: 140px 0 96px; min-height: 70vh; }
.page .container { max-width: 820px; }
.page h1 { font-size: clamp(40px, 6vw, 64px); margin: 24px 0 40px; }
.page h2 { font-size: 24px; letter-spacing: -0.02em; margin: 44px 0 12px; }
.page p, .page li { color: var(--text-soft); }
.page p + p { margin-top: 10px; }
.page strong { color: var(--text-dark); }
.page a { color: var(--text-dark); text-underline-offset: 3px; }
.page ul { padding-left: 20px; margin: 10px 0 0; }
.page-header { background: var(--green-800); }
.page-header .site-header { position: relative; }
.back { display: inline-flex; gap: 8px; margin-top: 48px; font-weight: 600; text-decoration: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero { min-height: auto; padding: 116px 0 64px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { justify-self: start; width: min(72%, 320px); order: -1; margin-bottom: 8px; }
  .contact-inner { grid-template-columns: 1fr; }
  .contact-deco { display: none; }
  .lead { max-width: none; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .nav { height: 72px; }
  .brand-mark { width: 34px; height: 34px; }
  .brand-word { font-size: 20px; }
  .btn-sm { font-size: 14px; padding: 9px 14px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .hero-art { width: min(64%, 240px); }
  .kicker { font-size: 12px; }
  .form-foot .btn { width: 100%; justify-content: center; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
.page-header + .page { padding-top: 64px; }
