/* =========================================================
   TACTIC Littoral — Landing
   Charte : extraite du logo
   ========================================================= */

:root {
  --teal: #0db3b2;
  --teal-dark: #079392;
  --purple: #673f91;
  --orange: #f08219;
  --green: #89bd24;
  --red: #d52419;
  --ink: #161616;
  --ink-2: #282828;
  --text: #2a2a2e;
  --text-soft: #5b5b63;
  --muted: #8a8a93;
  --line: #ececf0;
  --bg: #ffffff;
  --bg-soft: #fafafb;
  --bg-tint: #f3f7f8;
  --bg-dark: #0f1113;
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(16,24,40,.04), 0 1px 3px rgba(16,24,40,.06);
  --shadow: 0 10px 30px -12px rgba(16,24,40,.12), 0 4px 10px -4px rgba(16,24,40,.06);
  --shadow-lg: 0 30px 60px -20px rgba(16,24,40,.18), 0 10px 20px -8px rgba(16,24,40,.10);
  --ease: cubic-bezier(.2,.7,.2,1);
  --container: 1200px;
  --sans: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s var(--ease); }
button { font: inherit; }

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

/* =========================================================
   UTILS
   ========================================================= */

.eyebrow {
  display: inline-block;
  font-family: var(--display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--teal-dark);
  padding: 6px 12px;
  background: rgba(13,179,178,.08);
  border: 1px solid rgba(13,179,178,.18);
  border-radius: 999px;
  margin-bottom: 18px;
}
.eyebrow--light {
  color: #9be8e7;
  background: rgba(155,232,231,.08);
  border-color: rgba(155,232,231,.22);
}
.muted { color: var(--muted); }
.small { font-size: 13px; }

.grad { background-clip: text; -webkit-background-clip: text; color: transparent; }
.grad--teal   { background-image: linear-gradient(90deg, #0db3b2, #16d3cc); }
.grad--purple { background-image: linear-gradient(90deg, #673f91, #a26fd6); }

/* =========================================================
   BUTTONS
   ========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -.01em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn--primary {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 6px 20px -10px rgba(13,179,178,.45), inset 0 0 0 1px rgba(255,255,255,.04);
}
.btn--primary:hover { background: var(--teal); transform: translateY(-1px); box-shadow: 0 14px 30px -14px rgba(13,179,178,.7); }

/* Variante teal pour le header — plus on-brand et meilleur contraste sur fond clair */
.nav .btn--primary {
  background: var(--teal);
  color: #fff;
  font-weight: 600;
  letter-spacing: -.005em;
  box-shadow: 0 4px 12px -4px rgba(13,179,178,.45);
}
.nav .btn--primary:hover {
  background: var(--teal-dark);
  box-shadow: 0 10px 24px -8px rgba(13,179,178,.55);
}

.btn--ghost {
  background: var(--bg-soft);
  color: var(--ink);
  border-color: var(--ink);
}
.btn--ghost:hover { background: var(--orange); border-color: var(--orange); color: #fff; }

.btn--dark {
  background: var(--ink);
  color: #fff;
}
.btn--dark:hover { background: var(--orange); }

.btn--sm { padding: 10px 18px; font-size: 14px; }
.btn--block { width: 100%; padding: 16px 22px; }

/* =========================================================
   HEADER
   ========================================================= */

.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: height .35s var(--ease), box-shadow .35s var(--ease), background .35s var(--ease);
}
.header.is-scrolled {
  background: rgba(255,255,255,.95);
  box-shadow: 0 6px 24px -12px rgba(16,24,40,.12);
}
.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 84px;
  transition: height .35s var(--ease);
}
.header.is-scrolled .header__inner { height: 68px; }

/* Brand: mark + wordmark qui s'escamote au scroll */
.brand {
  display: flex; align-items: center; gap: 14px;
  text-decoration: none;
}
.brand__mark {
  height: 44px; width: auto;
  flex-shrink: 0;
  transition: height .35s var(--ease), transform .35s var(--ease);
}
.header.is-scrolled .brand__mark { height: 38px; }

.brand__wordmark {
  display: flex; flex-direction: column; justify-content: center;
  line-height: 1;
  white-space: nowrap;
}

.brand__name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -.02em;
  color: var(--ink);
}
.brand__sub {
  font-family: var(--display);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin-top: 6px;
}

/* Navigation */
.nav {
  display: flex; align-items: center; gap: 4px;
}
.nav a {
  padding: 9px 16px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink);
  border-radius: 999px;
  position: relative;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.nav a:not(.btn):hover {
  color: var(--teal-dark);
  background: rgba(13,179,178,.08);
}
.nav .btn { margin-left: 10px; }

.burger { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.burger span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: transform .25s var(--ease), opacity .25s var(--ease); }

@media (max-width: 880px) {
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0; background: #fff; padding: 16px; border-top: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav.is-open { display: flex; align-items: stretch; }
  .nav a { padding: 14px 16px; }
  .nav .btn { margin: 8px 16px 0; }
  .burger { display: block; }
  .burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .burger.is-open span:nth-child(2) { opacity: 0; }
  .burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* =========================================================
   HERO
   ========================================================= */

.hero {
  position: relative;
  padding: 90px 0 40px;
  overflow: hidden;
  isolation: isolate;
}
.hero__bg {
  position: absolute; inset: 0;
  z-index: -1;
  pointer-events: none;
}
.blob {
  position: absolute;
  width: 540px; height: 540px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .55;
  animation: float 16s ease-in-out infinite;
}
.blob--teal   { background: #0db3b2; top: -120px; left: -140px; animation-delay: 0s; }
.blob--purple { background: #673f91; top: 140px; right: -160px; opacity: .4; animation-delay: -5s; }
.blob--orange { background: #f08219; bottom: -180px; left: 30%; opacity: .35; animation-delay: -10s; }

@media (max-width: 650px) {
  .blob { display: none; }
}

@keyframes float {
  0%,100% { transform: translateY(0) translateX(0) scale(1); }
  50%     { transform: translateY(-30px) translateX(20px) scale(1.05); }
}

.grid-pattern {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(22,22,22,.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(22,22,22,.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at top, rgba(0,0,0,.6), transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at top, rgba(0,0,0,.6), transparent 70%);
}

.hero__content {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 60px;
  align-items: center;
  padding-top: 40px;
}
@media (max-width: 960px) {
  .hero__content { grid-template-columns: 1fr; gap: 48px; padding-top: 20px; }
}

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-soft);
  box-shadow: var(--shadow-sm);
  margin-bottom: 28px;
}
.pill__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 3px rgba(13,179,178,.2);
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{transform:scale(1);opacity:1;} 50%{transform:scale(1.2);opacity:.7;} }

.hero__title {
  font-family: var(--display);
  font-size: clamp(38px, 5.5vw, 68px);
  line-height: 1.02;
  letter-spacing: -.03em;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 22px;
}
.hero__lead {
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--text-soft);
  max-width: 580px;
  margin: 0 0 36px;
}
.hero__cta {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero__trust {
  list-style: none; padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
  max-width: 580px;
}
.hero__trust li { display: flex; flex-direction: column; gap: 4px; }
.hero__trust strong {
  font-family: var(--display);
  font-size: 30px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.03em;
}
.hero__trust span {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.4;
}

/* Hero visual - card stack */
.card-stack {
  position: relative;
  height: 520px;
  perspective: 1400px;
}
.vcard {
  position: absolute;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-lg);
  width: 88%;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.vcard__header {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; }
.dot--teal { background: var(--teal); }
.dot--orange { background: var(--orange); }
.dot--purple { background: var(--purple); }
.vcard h3 {
  font-family: var(--display);
  font-size: 22px;
  margin: 0 0 8px;
  letter-spacing: -.01em;
  color: var(--ink);
}
.vcard p {
  margin: 0;
  color: var(--text-soft);
  font-size: 14.5px;
  line-height: 1.55;
}
.vcard--1 { top: 0;   right: 0;   transform: rotate(-3deg); z-index: 3; }
.vcard--2 { top: 170px; left: 0;  transform: rotate(2deg);  z-index: 2; }
.vcard--3 { bottom: 0; right: 0;  transform: rotate(-1deg); z-index: 1; }
.card-stack:hover .vcard--1 { transform: rotate(-4deg) translateY(-6px); }
.card-stack:hover .vcard--2 { transform: rotate(3deg)  translateY(-4px); }
.card-stack:hover .vcard--3 { transform: rotate(-2deg) translateY(-2px); }

.avatars { display: flex; margin-top: 16px; }
.avatars span {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--c);
  color: #fff;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 700;
  border: 2px solid #fff;
  margin-left: -8px;
}
.avatars span:first-child { margin-left: 0; }

.chips { display: flex; gap: 6px; margin-top: 16px; flex-wrap: wrap; }
.chips span {
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 500;
  background: var(--bg-tint);
  border: 1px solid var(--line);
  color: var(--text-soft);
  border-radius: 999px;
}

/* Badges colorés pour domaines d'expertise */
.tag-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 18px;
}
.t-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px 5px 9px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -.005em;
  border-radius: 999px;
  background: color-mix(in srgb, var(--c) 11%, transparent);
  color: color-mix(in srgb, var(--c) 82%, var(--ink));
  border: 1px solid color-mix(in srgb, var(--c) 22%, transparent);
  transition: transform .2s var(--ease), background .2s var(--ease);
}
.t-badge::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--c);
  flex-shrink: 0;
}
.t-badge:hover {
  transform: translateY(-1px);
  background: color-mix(in srgb, var(--c) 16%, transparent);
}

@media (max-width: 960px) {
  .card-stack { height: 460px; max-width: 420px; margin: 0 auto; }
}

/* =========================================================
   MARQUEE
   ========================================================= */

.marquee {
  overflow: hidden;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
  --gap: 40px;
}
.marquee__track {
  display: flex;
  gap: var(--gap);
  width: max-content;
  animation: marquee 40s linear infinite;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink-2);
  letter-spacing: -.01em;
}
.marquee__track span:nth-child(odd) { color: var(--ink-2); }
.marquee__track span:nth-child(even) { color: var(--teal); opacity: .5; }
@keyframes marquee {
  to { transform: translateX(calc(-50% - var(--gap) / 2)); }
}

/* =========================================================
   SECTIONS
   ========================================================= */

.section {
  padding: 110px 0;
  position: relative;
}
.section--alt { background: var(--bg-soft); }
.section--dark { background: var(--bg-dark); color: #e7e7ee; }
.section--dark h2, .section--dark .section__lead { color: #fff; }
.section--contact { background: linear-gradient(180deg, var(--bg-soft) 0%, #fff 100%); }

.section__header {
  max-width: 760px;
  margin: 0 auto 60px;
  text-align: center;
}
.section__header h2 {
  font-family: var(--display);
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1.08;
  letter-spacing: -.025em;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 18px;
}
.section__lead {
  font-size: clamp(15px, 1.3vw, 17.5px);
  color: var(--text-soft);
  margin: 0;
}
.section--dark .section__lead { color: #b3b3bd; }

@media (max-width: 720px) {
  .section { padding: 72px 0; }
  .section__header { margin-bottom: 40px; }
}

/* =========================================================
   BENTO MISSIONS
   ========================================================= */

.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.bento__item {
  grid-column: span 1;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
  position: relative;
  overflow: hidden;
}
.bento__item--lg { grid-column: span 1; }

.bento__item::after {
  content: "";
  position: absolute;
  right: -60px; top: -60px;
  width: 180px; height: 180px;
  background: var(--accent);
  opacity: 0;
  border-radius: 50%;
  filter: blur(40px);
  transition: opacity .4s var(--ease);
  pointer-events: none;
}
.bento__item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
}
.bento__item:hover::after { opacity: .15; }

.bento__icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
  border-radius: 14px;
  margin-bottom: 20px;
}
.bento__icon svg { width: 26px; height: 26px; }
.bento__item h3 {
  font-family: var(--display);
  font-size: 22px;
  margin: 0 0 8px;
  letter-spacing: -.015em;
  color: var(--ink);
}
.bento__item p {
  margin: 0;
  color: var(--text-soft);
  font-size: 14.5px;
}

@media (max-width: 960px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento__item, .bento__item--lg { grid-column: span 1; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; }
}

/* =========================================================
   SPLIT — POUR QUI
   ========================================================= */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.split__card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  color: var(--text);
  border-radius: var(--radius-lg);
  padding: 44px 36px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .3s var(--ease);
}
.split__card > .btn { margin-top: auto; align-self: flex-start; }
.split__card:hover { transform: translateY(-4px); }

.split__ribbon {
  align-self: flex-start;
  display: inline-block;
  padding: 6px 12px;
  background: var(--c);
  color: #fff;
  font-family: var(--display);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  border-radius: 999px;
  margin-bottom: 20px;
}
.split__card h3 {
  font-family: var(--display);
  font-size: clamp(22px, 2.2vw, 28px);
  color: var(--ink);
  margin: 0 0 12px;
  letter-spacing: -.015em;
}
.split__card > p {
  color: var(--text-soft);
  margin: 0 0 24px;
  font-size: 15.5px;
}

.checklist { list-style: none; padding: 0; margin: 0 0 32px; }
.checklist li {
  position: relative;
  padding: 10px 0 10px 32px;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
  color: var(--text);
}
.checklist li:last-child { border-bottom: 0; }
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 14px;
  width: 20px; height: 20px;
  background:
    linear-gradient(135deg, var(--teal), var(--teal-dark));
  border-radius: 50%;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 12l5 5 9-11'/%3E%3C/svg%3E") center/60% no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 12l5 5 9-11'/%3E%3C/svg%3E") center/60% no-repeat;
}

@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; }
  .split__card { padding: 32px 24px; }
}

/* =========================================================
   TERRITOIRE
   ========================================================= */

.territoire {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.territoire h2 {
  font-family: var(--display);
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1.08;
  letter-spacing: -.025em;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 20px;
}
.territoire p {
  color: var(--text-soft);
  font-size: 16.5px;
  margin: 0 0 24px;
}
.cities {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-bottom: 28px;
}
.city {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  transition: all .25s var(--ease);
}
.city:hover {
  border-color: var(--teal);
  color: var(--teal-dark);
  transform: translateY(-2px);
}

.map {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  aspect-ratio: 4/5;
  box-shadow: var(--shadow);
}
.map svg { width: 100%; height: 100%; }
.city-pin .pulse {
  transform-origin: center;
  animation: pinPulse 2.4s ease-in-out infinite;
  animation-delay: var(--d);
}
@keyframes pinPulse {
  0%   { transform: scale(.5); opacity: 1; }
  70%  { transform: scale(2);   opacity: 0; }
  100% { transform: scale(.5); opacity: 0; }
}

@media (max-width: 860px) {
  .territoire { grid-template-columns: 1fr; gap: 40px; }
  .map { max-width: 520px; margin: 0 auto; }
}

/* =========================================================
   BOARD / GOUVERNANCE
   ========================================================= */

.board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.board__card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex; flex-direction: column; gap: 12px;
  transition: all .3s var(--ease);
}
.board__card:hover {
  border-color: var(--c, var(--teal));
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.board__role {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  background: color-mix(in srgb, var(--c) 12%, transparent);
  color: var(--c);
  align-self: flex-start;
}
.board__card strong {
  font-family: var(--display);
  font-size: 19px;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -.01em;
}
@media (max-width: 780px) { .board { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .board { grid-template-columns: 1fr; } }

/* =========================================================
   CONTACT
   ========================================================= */

.contact {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 60px;
  align-items: start;
}
.contact__aside h2 {
  font-family: var(--display);
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--ink);
  margin: 0 0 18px;
  font-weight: 700;
}
.contact__aside > p {
  color: var(--text-soft);
  margin: 0 0 32px;
  font-size: 16px;
}
.contact__info {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 16px;
}
.contact__info li {
  display: flex; align-items: center; gap: 12px;
  font-size: 14.5px;
  color: var(--text);
}
.contact__info svg {
  width: 20px; height: 20px;
  color: var(--teal);
  flex-shrink: 0;
}
.contact__info a:hover { color: var(--teal-dark); }

.contact__form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.form__choice {
  border: 0; margin: 0 0 28px; padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.form__choice legend {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 12px;
  padding: 0;
}
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice__box {
  display: block;
  padding: 18px 18px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all .2s var(--ease);
  position: relative;
}
.choice__box::before {
  content: "";
  position: absolute; top: 14px; right: 14px;
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 2px solid var(--line);
  transition: all .2s var(--ease);
}
.choice input:checked + .choice__box {
  border-color: var(--teal);
  background: rgba(13,179,178,.04);
}
.choice input:checked + .choice__box::before {
  border-color: var(--teal);
  background: radial-gradient(circle, var(--teal) 40%, transparent 45%);
}
.choice__title {
  display: block;
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 4px;
  padding-right: 24px;
}
.choice__desc {
  display: block;
  font-size: 13px;
  color: var(--text-soft);
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}
.field {
  display: flex; flex-direction: column; gap: 6px;
}
.field--full { grid-column: 1 / -1; margin-bottom: 14px; }
.field > span {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  font: inherit;
  color: var(--ink);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(13,179,178,.12);
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b5b63' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 40px;
}

/* Tags */
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.tag input { position: absolute; opacity: 0; pointer-events: none; }
.tag span {
  display: inline-block;
  padding: 8px 14px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-soft);
  cursor: pointer;
  transition: all .2s var(--ease);
  user-select: none;
}
.tag input:checked + span {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.tag span:hover { border-color: var(--ink); color: var(--ink); }

.consent {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13px;
  color: var(--text-soft);
  margin: 8px 0 20px;
  cursor: pointer;
}
.consent input {
  margin-top: 3px;
  accent-color: var(--teal);
}
.consent a {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 600;
}
.consent a:hover { color: var(--teal-dark); }

.field.has-error input,
.field.has-error textarea,
.field.has-error select { border-color: var(--red); }
.field__error {
  font-size: 12px;
  color: var(--red);
  margin-top: 4px;
}

/* reCAPTCHA — visibility conforme aux CGU Google */
.recaptcha-notice {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}
.recaptcha-notice a { color: var(--teal-dark); text-decoration: underline; }
.grecaptcha-badge { visibility: visible; z-index: 9999; }

.form__error {
  background: #fff2f2;
  border: 1px solid #f5b5b5;
  color: #8a1f1f;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 14px;
  margin-bottom: 12px;
}
.form__error ul { margin: 6px 0 0; padding-left: 18px; }

.form__success {
  display: none;
  position: absolute;
  inset: 0;
  background: #fff;
  border-radius: var(--radius-lg);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
  gap: 16px;
}
.form__success svg {
  width: 48px; height: 48px;
  color: #fff;
  background: var(--teal);
  border-radius: 50%;
  padding: 10px;
}
.form__success p { max-width: 320px; font-size: 16px; color: var(--text); }
.contact__form.is-sent .form__success { display: flex; }

[data-show-for] { display: none; }
.contact__form[data-type="membre"] .field[data-show-for="membre"],
.contact__form[data-type="projet"] .field[data-show-for="projet"] { display: flex; }
.contact__form[data-type="membre"] .form__row[data-show-for="membre"],
.contact__form[data-type="projet"] .form__row[data-show-for="projet"] { display: grid; }

/* Sous-champ conditionnel : apparaît quand "Autre" est sélectionné */
[data-show-if-role] { display: none; }
.form__row[data-role="autre"] [data-show-if-role="autre"] { display: flex; }

@media (max-width: 880px) {
  .contact { grid-template-columns: 1fr; gap: 40px; }
  .contact__form { padding: 28px 22px; }
  .form__row { grid-template-columns: 1fr; }
  .form__choice { grid-template-columns: 1fr; }
}

/* =========================================================
   FOOTER
   ========================================================= */

.footer {
  background: var(--ink);
  color: #b6b6c0;
  padding: 70px 0 30px;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.3fr 2fr;
  gap: 60px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer__brand p { margin: 16px 0 0; font-size: 14px; max-width: 320px; line-height: 1.6; }
.footer__logo {
  height: 56px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: .95;
}
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.footer__cols h4 {
  font-family: var(--display);
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin: 0 0 14px;
}
.footer__cols a {
  display: block;
  padding: 6px 0;
  font-size: 14px;
  color: #a3a3ae;
}
.footer__cols a:hover { color: #fff; }

.footer__bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  padding-top: 22px;
  font-size: 12.5px;
  color: #81818b;
}
@media (max-width: 780px) {
  .footer__inner { grid-template-columns: 1fr; gap: 40px; }
  .footer__cols { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 520px) {
  .footer__cols { grid-template-columns: 1fr 1fr; }
}

/* =========================================================
   REVEAL ANIMATIONS
   ========================================================= */

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

.custom-white{
  color: #fff !important;
}

/* =========================================================
   LEGAL PAGE
   ========================================================= */
.legal { padding-top: 140px; }
.legal__container { max-width: 820px; }
.legal__header { margin-bottom: 48px; }
.legal__header h1 {
  font-family: var(--display);
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.1;
  margin: 12px 0 20px;
  color: var(--text);
}
.legal__intro {
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
}
.legal__intro a { color: var(--teal-dark); }
.legal__block {
  margin-bottom: 36px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}
.legal__block:last-child { border-bottom: 0; }
.legal__block h2 {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 16px;
}
.legal__block p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  margin: 0 0 12px;
}
.legal__block ul {
  padding-left: 22px;
  margin: 8px 0 12px;
}
.legal__block li {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 6px;
}
.legal__block a {
  color: var(--teal-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal__block a:hover { color: var(--teal); }