/* ==========================================================
   Spartanway Formation — feuille de style principale
   ========================================================== */
:root {
  --violet: #464476;
  --violet-dark: #2b2950;
  --night: #16152e;
  --gold: #f4b942;
  --gold-soft: #ffe3a3;
  --orange: #f39a1e;
  --ink: #1f1e33;
  --muted: #5f5d78;
  --bg: #ffffff;
  --bg-soft: #f5f4fa;
  --line: #e4e2ef;
  --radius: 22px;
  --shadow: 0 18px 40px -18px rgba(43, 41, 80, .35);
  --font-title: "Montserrat", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-title); line-height: 1.15; margin: 0 0 .6em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 800; text-transform: uppercase; letter-spacing: -.01em; }
p { margin: 0 0 1em; }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--soft { background: var(--bg-soft); }
.eyebrow {
  display: inline-block; font-family: var(--font-title); font-weight: 700;
  font-size: .8rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--violet); margin-bottom: 14px;
}
.eyebrow::before { content: ""; display: inline-block; width: 28px; height: 2px; background: var(--gold); vertical-align: middle; margin-right: 10px; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 720px; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 28px; border-radius: 999px; border: 2px solid transparent;
  font-family: var(--font-title); font-weight: 700; font-size: .95rem;
  text-decoration: none; cursor: pointer; transition: transform .25s, box-shadow .25s, background .25s, color .25s;
}
.btn--gold { background: var(--gold); color: var(--night); box-shadow: 0 10px 30px -8px rgba(244, 185, 66, .7); }
.btn--gold:hover { transform: translateY(-3px); box-shadow: 0 16px 34px -8px rgba(244, 185, 66, .85); }
.btn--ghost { border-color: rgba(255,255,255,.5); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--violet-dark); }
.btn--violet { background: var(--violet); color: #fff; }
.btn--violet:hover { background: var(--violet-dark); transform: translateY(-3px); }
.btn svg { width: 18px; height: 18px; transition: transform .25s; }
.btn:hover svg { transform: translateX(4px); }

/* ---------- En-tête ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background .35s, box-shadow .35s, padding .35s;
  padding: 18px 0;
}
.header.is-solid, .header--solid { background: rgba(22, 21, 46, .92); backdrop-filter: blur(10px); box-shadow: 0 6px 30px rgba(0,0,0,.2); padding: 10px 0; }
.header .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.brand__logo { width: 84px; height: 84px; border-radius: 50%; box-shadow: 0 6px 20px rgba(0,0,0,.25); transition: transform .6s, width .35s, height .35s; }
.header.is-solid .brand__logo, .header--solid .brand__logo { width: 64px; height: 64px; }
@media (max-width: 560px) { .brand__logo { width: 64px; height: 64px; } }
.brand:hover .brand__logo { transform: rotate(-12deg) scale(1.05); }
.brand__name { font-family: var(--font-title); font-weight: 800; letter-spacing: .06em; line-height: 1.05; font-size: 1.05rem; }
.brand__name small { display: block; font-weight: 500; font-size: .68rem; letter-spacing: .3em; color: var(--gold); }

.nav { display: flex; align-items: center; gap: 26px; }
.nav a { white-space: nowrap; }
.nav a { color: #fff; text-decoration: none; font-weight: 600; font-size: .95rem; position: relative; }
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 100%;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.nav a:not(.btn):hover::after, .nav a.active::after { transform: scaleX(1); }
.nav a.active { color: var(--gold); }
.nav .btn { padding: 10px 22px; }
.burger { display: none; background: none; border: 0; cursor: pointer; width: 44px; height: 44px; padding: 10px; }
.burger span { display: block; height: 2px; background: #fff; margin: 5px 0; transition: transform .3s, opacity .3s; }

@media (max-width: 1100px) {
  .burger { display: block; }
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(320px, 85vw); flex-direction: column; align-items: flex-start;
    background: var(--night); padding: 100px 32px 32px; gap: 24px;
    transform: translateX(100%); visibility: hidden; transition: transform .4s cubic-bezier(.7,0,.2,1), visibility 0s .4s;
  }
  .nav.open { transform: none; visibility: visible; transition: transform .4s cubic-bezier(.7,0,.2,1); box-shadow: -20px 0 60px rgba(0,0,0,.4); }
  .nav a { font-size: 1.15rem; }
  .burger { position: relative; z-index: 60; }
  .burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .burger.open span:nth-child(2) { opacity: 0; }
  .burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ==========================================================
   HERO animé — le phare
   ========================================================== */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; overflow: hidden; color: #fff;
  background: radial-gradient(ellipse at 75% 30%, #3a3870 0%, var(--violet-dark) 40%, var(--night) 100%);
  isolation: isolate;
}
/* photo de fond : zoom lent + voile violet aux couleurs de la marque */
.hero__photo {
  position: absolute; inset: 0; z-index: -4; overflow: hidden;
}
.hero__photo::before {
  content: ""; position: absolute; inset: -4%;
  background: url("../images/accueil.avif") center 62% / cover no-repeat;
  filter: saturate(1.15) contrast(1.05);
  animation: kenburns 28s ease-in-out infinite alternate;
}
/* vidéo en boucle par-dessus la photo */
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -3; }
/* voile violet aux couleurs de la marque, pour la lisibilité du texte */
.hero__overlay {
  position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(22,21,46,.85) 0%, rgba(22,21,46,.2) 30%, rgba(22,21,46,.15) 65%, rgba(22,21,46,.9) 100%),
    linear-gradient(90deg, rgba(22,21,46,.92) 0%, rgba(43,41,80,.72) 40%, rgba(70,68,118,.3) 70%, rgba(22,21,46,.45) 100%);
}
@keyframes kenburns {
  from { transform: scale(1) translateX(0); }
  to { transform: scale(1.12) translateX(-2%); }
}
.hero__stars { position: absolute; inset: 0; z-index: -3; }
.hero__stars span {
  position: absolute; width: 2px; height: 2px; border-radius: 50%; background: #fff;
  animation: twinkle var(--d, 3s) ease-in-out infinite; animation-delay: var(--delay, 0s); opacity: .2;
}
@keyframes twinkle { 50% { opacity: 1; transform: scale(1.6); } }

/* faisceau lumineux qui balaie */
.hero__beam {
  position: absolute; z-index: -2;
  right: 14%; bottom: 36%; width: 0; height: 0;
}
.hero__beam::before {
  content: ""; position: absolute; left: -160vmax; top: -160vmax; width: 320vmax; height: 320vmax;
  background: conic-gradient(from 0deg,
    transparent 0deg, rgba(255, 227, 163, .0) 4deg, rgba(255, 227, 163, .35) 11deg, rgba(255, 227, 163, .0) 18deg,
    transparent 180deg, rgba(255, 227, 163, .0) 184deg, rgba(255, 227, 163, .18) 191deg, rgba(255, 227, 163, .0) 198deg, transparent 360deg);
  -webkit-mask: radial-gradient(circle, #000 0%, #000 20%, transparent 55%);
          mask: radial-gradient(circle, #000 0%, #000 20%, transparent 55%);
  animation: sweep 9s linear infinite;
}
@keyframes sweep { to { transform: rotate(360deg); } }

@keyframes pulse { 50% { transform: scale(1.25); opacity: .7; } }


.hero__content { position: relative; z-index: 2; padding: 104px 0 0; max-width: 700px; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 10px;
  border: 1px solid rgba(255,255,255,.2); border-radius: 999px; background: rgba(255,255,255,.06);
  font-size: .85rem; margin-bottom: 16px; backdrop-filter: blur(6px);
}
.hero__badge i { width: 10px; height: 10px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 rgba(244,185,66,.7); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 12px rgba(244,185,66,0); } 100% { box-shadow: 0 0 0 0 rgba(244,185,66,0); } }
.hero h1 { font-size: clamp(2.3rem, min(5vw, 7.4vh), 3.9rem); font-weight: 900; text-transform: uppercase; letter-spacing: -.02em; margin-bottom: 16px; }
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line > span { display: inline-block; transform: translateY(110%); animation: rise .9s cubic-bezier(.2,.8,.2,1) forwards; }
.hero h1 .line:nth-child(2) > span { animation-delay: .15s; }
.hero h1 .line:nth-child(3) > span { animation-delay: .3s; }
@keyframes rise { to { transform: none; } }
.typed { color: var(--gold); border-right: 3px solid var(--gold); padding-right: 4px; animation: caret .8s step-end infinite; white-space: nowrap; }
@keyframes caret { 50% { border-color: transparent; } }
.hero__text { font-size: 1.1rem; color: rgba(255,255,255,.82); max-width: 560px; margin-bottom: 22px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.fade-up { opacity: 0; transform: translateY(24px); animation: fadeUp .9s .6s cubic-bezier(.2,.8,.2,1) forwards; }
.fade-up.d2 { animation-delay: .8s; }
.fade-up.d3 { animation-delay: 1s; }
@keyframes fadeUp { to { opacity: 1; transform: none; } }

.scroll-hint {
  position: absolute; left: 50%; bottom: 26px; z-index: 3; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.5); border-radius: 20px;
}
.scroll-hint::after {
  content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px;
  background: var(--gold); border-radius: 2px; animation: scrollDot 1.8s infinite;
}
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

@media (max-width: 880px) {
  .hero__content { padding: 120px 0 0; }
}

/* ---------- Chiffres clés ---------- */
.stats { position: relative; z-index: 5; margin-top: -60px; }
.stats__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); background: #fff;
  border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
}
.stat { padding: 34px 24px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-family: var(--font-title); font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 900; color: var(--violet); line-height: 1; }
.stat span { color: var(--muted); font-size: .92rem; }
@media (max-width: 760px) {
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

/* ---------- Mission ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }
.mission__visual { position: relative; aspect-ratio: 1; max-width: 460px; margin-inline: auto; width: 100%; }
.mission__visual .ring { position: absolute; inset: 0; border-radius: 50%; border: 2px dashed rgba(70,68,118,.25); animation: sweep 40s linear infinite; }
.mission__visual .ring--2 { inset: 12%; border-style: solid; border-color: rgba(244,185,66,.4); animation-duration: 25s; animation-direction: reverse; }
.mission__visual .ring--2::before { content: ""; position: absolute; top: -8px; left: 50%; width: 14px; height: 14px; border-radius: 50%; background: var(--gold); }
.mission__visual img { position: absolute; inset: 22%; width: 56%; height: 56%; background: #fff; border-radius: 50%; box-shadow: var(--shadow); padding: 8px; }
.checks { list-style: none; padding: 0; margin: 24px 0 32px; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; }
.checks li::before {
  content: ""; flex: none; width: 24px; height: 24px; border-radius: 50%; margin-top: 1px;
  background: var(--violet) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f4b942' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center/14px no-repeat;
}

/* ---------- Dispositifs ---------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 50px; }
@media (max-width: 960px) { .cards-3 { grid-template-columns: 1fr; } }
.offer {
  position: relative; background: #fff; border-radius: var(--radius); padding: 38px 32px;
  border: 1px solid var(--line); transition: transform .35s, box-shadow .35s, border-color .35s; overflow: hidden;
}
.offer::before {
  content: ""; position: absolute; inset: auto 0 0; height: 4px; background: linear-gradient(90deg, var(--violet), var(--gold));
  transform: scaleX(0); transform-origin: left; transition: transform .4s;
}
.offer:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: transparent; }
.offer:hover::before { transform: scaleX(1); }
.offer__num { position: absolute; top: 18px; right: 24px; font-family: var(--font-title); font-size: 4rem; font-weight: 900; color: var(--bg-soft); line-height: 1; }
.icon-box {
  width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; margin-bottom: 22px;
  background: linear-gradient(135deg, var(--violet), var(--violet-dark)); color: var(--gold);
}
.icon-box svg { width: 30px; height: 30px; }
.offer h3 { font-size: 1.2rem; text-transform: uppercase; }
.offer p { color: var(--muted); }
.link-more { font-weight: 700; color: var(--violet); text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.link-more:hover { color: var(--gold); }

/* ---------- Secteurs ---------- */
.sectors { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 50px; }
@media (max-width: 880px) { .sectors { grid-template-columns: repeat(2, 1fr); } }
.sector {
  position: relative; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; color: #fff;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 22px;
  background: var(--g, linear-gradient(135deg, #464476, #2b2950));
  transition: transform .4s;
}
.sector::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 80% 10%, rgba(255,255,255,.18), transparent 55%); }
.sector svg { position: absolute; top: 22px; left: 22px; width: 46px; height: 46px; color: var(--gold); transition: transform .5s; }
.sector:hover { transform: translateY(-6px) rotate(-1deg); }
.sector:hover svg { transform: scale(1.2) rotate(-8deg); }
.sector h3 { margin: 0; font-size: clamp(.95rem, 1.8vw, 1.15rem); text-transform: uppercase; position: relative; z-index: 1; }

/* ---------- Étapes / timeline ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 56px; position: relative; counter-reset: step; }
.steps::before { content: ""; position: absolute; top: 30px; left: 12%; right: 12%; height: 2px; background: linear-gradient(90deg, var(--violet), var(--gold)); }
.step { text-align: center; position: relative; }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 60px; height: 60px; margin: 0 auto 20px; border-radius: 50%;
  background: #fff; border: 3px solid var(--violet); color: var(--violet); font-family: var(--font-title); font-weight: 900; font-size: 1.3rem;
  position: relative; z-index: 1; transition: background .3s, color .3s;
}
.step:hover::before { background: var(--violet); color: var(--gold); }
.step h3 { font-size: 1.02rem; text-transform: uppercase; }
.step p { color: var(--muted); font-size: .95rem; }
@media (max-width: 880px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .steps::before { display: none; }
}
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 48px auto 0; display: grid; gap: 14px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 0 24px; transition: box-shadow .3s; }
.faq details[open] { box-shadow: var(--shadow); border-color: transparent; }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 36px 20px 0; position: relative;
  font-family: var(--font-title); font-weight: 700;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.6rem; color: var(--violet); transition: transform .3s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); color: var(--gold); }
.faq details p { color: var(--muted); padding-bottom: 8px; }

/* ---------- Bandeau CTA ---------- */
.cta {
  position: relative; overflow: hidden; border-radius: 30px; color: #fff; padding: clamp(40px, 6vw, 70px);
  background: linear-gradient(120deg, var(--violet-dark), var(--violet));
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px;
}
.cta::before {
  content: ""; position: absolute; right: -120px; top: -120px; width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, rgba(244,185,66,.45), transparent 65%); animation: pulse 5s ease-in-out infinite;
}
.cta h2 { margin: 0 0 8px; position: relative; }
.cta p { margin: 0; opacity: .85; position: relative; }
.cta .btn { position: relative; }

/* ---------- Pied de page ---------- */
.footer { background: var(--night); color: rgba(255,255,255,.75); padding: 70px 0 28px; margin-top: 0; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr; } }
.footer h4 { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .1em; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--gold); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 50px; padding-top: 24px; font-size: .85rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

/* ---------- En-tête des pages intérieures ---------- */
.page-hero {
  position: relative; overflow: hidden; color: #fff; padding: 170px 0 90px;
  background: radial-gradient(ellipse at 80% 20%, #3a3870, var(--violet-dark) 45%, var(--night));
}
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 900; text-transform: uppercase; }
.page-hero p { max-width: 640px; color: rgba(255,255,255,.82); font-size: 1.1rem; }
.page-hero .hero__beam { right: 8%; bottom: 20%; }
.breadcrumb { font-size: .85rem; opacity: .7; margin-bottom: 14px; }
.breadcrumb a { text-decoration: none; }

/* ==========================================================
   Page Formations — encarts carrés
   ========================================================== */
.filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 36px 0 44px; }
.filter {
  border: 1.5px solid var(--line); background: #fff; color: var(--ink); cursor: pointer;
  padding: 10px 20px; border-radius: 999px; font-weight: 600; font-family: var(--font-body); font-size: .92rem;
  transition: all .25s;
}
.filter:hover { border-color: var(--violet); color: var(--violet); }
.filter.active { background: var(--violet); border-color: var(--violet); color: #fff; }

.formations { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 28px; }
@media (max-width: 960px) { .formations { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .formations { grid-template-columns: 1fr; } }

.formation { text-decoration: none; color: inherit; display: block; transition: opacity .35s, transform .35s; }
.formation.is-hidden { display: none; }
.formation__tile {
  position: relative; aspect-ratio: 1; border-radius: 28px; overflow: hidden; isolation: isolate;
  background: var(--g, linear-gradient(135deg, #464476, #2b2950));
  box-shadow: 0 14px 30px -18px rgba(22,21,46,.6);
}
/* photo optionnelle : style="--img:url(images/xxx.jpg)" */
.formation__tile::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: var(--img, none) center/cover no-repeat; transition: transform .7s cubic-bezier(.2,.8,.2,1);
}
.formation__tile::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(22,21,46,0) 35%, rgba(22,21,46,.85) 100%);
}
/* encarts avec photo : léger voile violet pour l'harmonie, icône de fond masquée */
/* photos claires : voile uniquement en bas, juste pour la lisibilité du titre */
.formation__tile[style*="--img"]::after {
  background: linear-gradient(180deg, rgba(22,21,46,0) 0%, rgba(22,21,46,0) 52%, rgba(22,21,46,.72) 100%);
}
.formation__tile[style*="--img"] .formation__title { text-shadow: 0 1px 8px rgba(0,0,0,.35); }
.formation__tile[style*="--img"] .formation__tag { background: rgba(22,21,46,.45); }
.formation__tile[style*="--img"] .formation__art { display: none; }
.formation__art { position: absolute; inset: 0; display: grid; place-items: center; z-index: -1; transition: transform .7s cubic-bezier(.2,.8,.2,1); }
.formation__art svg { width: 44%; height: 44%; color: rgba(255,255,255,.14); }
.formation__tag {
  position: absolute; top: 18px; left: 18px; padding: 6px 12px; border-radius: 999px;
  background: rgba(255,255,255,.16); backdrop-filter: blur(6px); color: #fff; font-size: .75rem; font-weight: 600; letter-spacing: .04em;
}
.formation__title {
  position: absolute; left: 22px; right: 22px; bottom: 20px; display: flex; align-items: center; gap: 12px;
  color: #fff; font-family: var(--font-title); font-weight: 700; font-size: 1.12rem; line-height: 1.25;
}
.formation__title i { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--gold); color: var(--night); }
.formation__title i svg { width: 22px; height: 22px; }
.formation__arrow {
  position: absolute; top: 18px; right: 18px; width: 42px; height: 42px; border-radius: 50%; background: #fff; color: var(--violet);
  display: grid; place-items: center; transform: scale(0) rotate(-45deg); transition: transform .4s cubic-bezier(.2,.8,.2,1);
}
.formation__arrow svg { width: 18px; height: 18px; }
.formation:hover .formation__tile::before, .formation:hover .formation__art { transform: scale(1.08); }
.formation:hover .formation__arrow { transform: none; }
.formation__desc { margin: 16px 4px 0; color: var(--muted); font-size: .96rem; }
.formation__meta { display: flex; gap: 16px; margin: 8px 4px 0; font-size: .82rem; font-weight: 600; color: var(--violet); }

/* ==========================================================
   Page Accompagnement à l'ouverture
   ========================================================== */
.page-hero--photo { padding: 190px 0 110px; }
.page-hero__bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.page-hero__bg::before {
  content: ""; position: absolute; inset: -4%;
  background: var(--hero-img, url("../images/accueil.avif")) center 60% / cover no-repeat;
  animation: kenburns 28s ease-in-out infinite alternate;
}
.page-hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(22,21,46,.85) 0%, rgba(22,21,46,.3) 40%, rgba(22,21,46,.9) 100%),
    linear-gradient(90deg, rgba(22,21,46,.95) 0%, rgba(43,41,80,.8) 45%, rgba(70,68,118,.35) 100%);
}
.page-hero--photo .container { position: relative; z-index: 1; }
.page-hero__lead { font-size: clamp(1.2rem, 2.2vw, 1.5rem) !important; color: #fff !important; font-family: var(--font-title); font-weight: 500; line-height: 1.4; }
.page-hero__lead strong { color: var(--gold); font-weight: 700; }
.eyebrow--light { color: var(--gold); }

.cert-badge {
  display: inline-flex; align-items: center; gap: 12px; padding: 8px 20px 8px 8px; border-radius: 999px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(8px);
  color: #fff; text-decoration: none; transition: background .25s, transform .25s;
}
.cert-badge:hover { background: rgba(255,255,255,.16); transform: translateY(-2px); }
.cert-badge__icon { width: 40px; height: 40px; border-radius: 50%; background: var(--gold); color: var(--night); display: grid; place-items: center; }
.cert-badge__icon svg { width: 22px; height: 22px; }
.cert-badge strong { display: block; font-family: var(--font-title); font-size: .9rem; line-height: 1.2; }
.cert-badge small { font-size: .78rem; opacity: .8; }

.conviction {
  position: relative; margin: 28px 0 0; padding: 22px 26px 22px 30px; border-radius: 18px;
  background: linear-gradient(120deg, rgba(244,185,66,.16), rgba(244,185,66,.05));
  border-left: 5px solid var(--gold);
  font-family: var(--font-title); font-weight: 700; font-size: 1.15rem; line-height: 1.45; color: var(--violet-dark);
}
.conviction em { font-style: normal; color: var(--violet); background: linear-gradient(transparent 62%, rgba(244,185,66,.5) 62%); }
.conviction__label { display: block; font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: #b47d1c; margin-bottom: 6px; }

.key-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.key-tile {
  aspect-ratio: 1; border-radius: 26px; padding: 26px; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px;
  transition: transform .35s; position: relative; overflow: hidden;
}
.key-tile:hover { transform: translateY(-6px) rotate(-1deg); }
.key-tile strong { font-family: var(--font-title); font-size: clamp(2.6rem, 5vw, 3.6rem); font-weight: 900; line-height: 1; margin-bottom: auto; }
.key-tile svg { width: 42px; height: 42px; margin-bottom: auto; }
.key-tile__title { font-family: var(--font-title); font-weight: 800; font-size: 1.1rem; text-transform: uppercase; }
.key-tile__sub { font-size: .9rem; opacity: .8; }
.key-tile--violet { background: linear-gradient(140deg, var(--violet), var(--violet-dark)); color: #fff; }
.key-tile--violet strong { color: var(--gold); }
.key-tile--gold { background: linear-gradient(140deg, #f7c65c, var(--gold)); color: var(--night); }
.key-tile--light { background: var(--bg-soft); color: var(--violet-dark); }
.key-tile--light svg { color: var(--violet); }
.key-tile--outline { border: 2px solid var(--line); color: var(--violet-dark); }
.key-tile--outline svg { color: var(--gold); }
.key-tiles .key-tile:nth-child(2), .key-tiles .key-tile:nth-child(4) { transform: translateY(28px); }
.key-tiles .key-tile:nth-child(2):hover, .key-tiles .key-tile:nth-child(4):hover { transform: translateY(22px) rotate(1deg); }
@media (max-width: 480px) {
  .key-tile { padding: 18px; border-radius: 20px; }
  .key-tile__title { font-size: .92rem; }
  .key-tile__sub { font-size: .8rem; }
}

.section--dark { background: radial-gradient(ellipse at 20% 0%, #3a3870, var(--violet-dark) 45%, var(--night)); color: #fff; }
.section--dark .lead { color: rgba(255,255,255,.75); }
.phases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 54px; position: relative; }
@media (max-width: 960px) { .phases { grid-template-columns: 1fr; } }
.phase {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: 24px; padding: 30px;
  backdrop-filter: blur(6px); transition: transform .35s, background .35s, border-color .35s;
}
.phase:hover { transform: translateY(-8px); background: rgba(255,255,255,.09); border-color: rgba(244,185,66,.5); }
.phase--highlight { background: linear-gradient(160deg, rgba(244,185,66,.22), rgba(244,185,66,.04)); border-color: rgba(244,185,66,.45); }
.phase__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.phase__num { font-family: var(--font-title); font-weight: 900; font-size: 2.6rem; line-height: 1; color: var(--gold); }
.phase__when { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.1); }
.phase h3 { font-size: 1.25rem; text-transform: uppercase; }
.checks--light { margin: 18px 0 0; }
.checks--light li { font-weight: 400; color: rgba(255,255,255,.88); }
.checks--light li::before { background-color: rgba(244,185,66,.2); }

.adn { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 50px; }
@media (max-width: 760px) { .adn { grid-template-columns: 1fr; } }
.adn__card {
  display: flex; gap: 20px; align-items: flex-start; background: #fff; border-radius: 22px; padding: 30px;
  border: 1px solid var(--line); transition: transform .35s, box-shadow .35s;
}
.adn__card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.adn__card .icon-box { flex: none; margin: 0; }
.adn__card h3 { font-size: 1.12rem; }
.adn__card p { color: var(--muted); margin: 0; }

/* ---------- Carte Qualiopi (accueil) ---------- */
.fade-up.d4 { animation-delay: 1.2s; }
.qualiopi-card {
  display: flex; align-items: center; gap: 12px; margin-top: 18px; max-width: 360px;
  background: #fff; border-radius: 18px; padding: 10px 20px 10px 10px;
  box-shadow: 0 16px 40px -14px rgba(0,0,0,.55);
}
.qualiopi-card img { width: 96px; height: auto; flex: none; }
.qualiopi-card p { margin: 0; font-size: .8rem; line-height: 1.45; color: var(--muted); }
.qualiopi-card strong { color: var(--violet-dark); }
.footer-qualiopi {
  display: flex; align-items: center; gap: 10px; margin-top: 20px; max-width: 300px;
  background: #fff; border-radius: 14px; padding: 8px 16px 8px 8px;
}
.footer-qualiopi img { width: 80px; height: auto; flex: none; }
.footer-nda { margin: 10px 0 0; font-size: .78rem; color: rgba(255,255,255,.55); }
.footer-qualiopi p { margin: 0; font-size: .74rem; line-height: 1.4; color: var(--muted); }
.footer-qualiopi strong { color: var(--violet-dark); }
@media (max-width: 480px) {
  .qualiopi-card { gap: 10px; padding-right: 14px; }
  .qualiopi-card img { width: 84px; }
  .qualiopi-card p { font-size: .74rem; }
}

/* ==========================================================
   Grand trait orange avec boucle, en décor dans les bandeaux
   ========================================================== */
.page-hero > .container { position: relative; z-index: 2; }
.deco-loop {
  position: absolute; z-index: 1; pointer-events: none; overflow: visible;
  right: 3%; bottom: 5%; width: min(24vw, 380px); height: auto;
  /* le trait naît en douceur, sans toucher le texte */
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 22%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 22%);
}
.page-hero .deco-loop { bottom: 6px; width: min(21vw, 300px); }
/* --d0 = moment où le trait commence à se dessiner */
.deco-loop { --d0: .6s; }
.hero .deco-loop { --d0: 1.2s; bottom: 150px; }

/* ---------- Bandeau « Ils nous font confiance » (accueil) ---------- */
.trust { position: relative; z-index: 2; padding: 18px 0 80px; }
.trust__label {
  display: block; margin-bottom: 14px; font-size: .74rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(255,255,255,.6);
}
.trust__label::after { content: ""; display: inline-block; vertical-align: middle; width: 60px; height: 1px; margin-left: 14px; background: rgba(255,255,255,.3); }
/* bande qui défile en continu ; bords estompés ; pause au survol */
.trust__viewport {
  overflow: hidden; max-width: 760px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}
.trust__list {
  list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: nowrap; align-items: center; width: max-content;
  animation: trustScroll 32s linear infinite;
}
.trust__viewport:hover .trust__list { animation-play-state: paused; }
@keyframes trustScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.trust__list li { display: flex; align-items: center; flex: none; height: 38px; padding-right: 48px; opacity: .78; transition: opacity .3s; }
.trust__list li:hover { opacity: 1; }
/* logos fournis : forcés en noir et blanc (blanc sur le fond sombre) */
.trust__list img { max-height: 38px; max-width: 150px; width: auto; filter: grayscale(1) brightness(0) invert(1); }
/* en attendant les logos : le nom en lettres blanches */
.trust__name { color: #fff; font-family: var(--font-title); font-weight: 800; font-size: 1.05rem; letter-spacing: .02em; text-transform: uppercase; white-space: nowrap; }
.trust__name--script { font-family: Georgia, "Times New Roman", serif; font-style: italic; font-weight: 700; text-transform: none; font-size: 1.3rem; }
.trust__name--wide { letter-spacing: .3em; }
@media (max-width: 880px) {
  .trust { padding-bottom: 150px; }
  .hero .deco-loop { bottom: 64px; }
  .trust__list li { padding-right: 32px; }
  .trust__name { font-size: .9rem; }
}
.deco-loop path {
  fill: none; stroke: var(--orange); stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1;
}
/* 1. la boucle puis la tour, d'un seul trait */
.deco-loop__line, .deco-loop__glow { animation: loopDraw 3s var(--d0) cubic-bezier(.5,0,.3,1) forwards; }
.deco-loop__line { stroke-width: 8; }
.deco-loop__glow { stroke-width: 22; opacity: .18; filter: blur(5px); }
/* 2. la lanterne et le dôme */
.deco-loop__lantern { stroke-width: 6; animation: loopDraw 1s calc(var(--d0) + 2.6s) ease-out forwards; }
/* 3. les bandes et la porte, plus fines */
.deco-loop__details { stroke-width: 4; opacity: .75; animation: loopDraw 1s calc(var(--d0) + 3.1s) ease-out forwards; }
@keyframes loopDraw { to { stroke-dashoffset: 0; } }
@media (max-width: 880px) {
  .deco-loop, .page-hero .deco-loop { width: 36vw; right: 4vw; bottom: 4px; opacity: .8; }
  .page-hero { padding-bottom: 130px; }
  .scroll-hint { display: none; }
}

/* ==========================================================
   Fiches formation (objectifs, programme, infos pratiques)
   ========================================================== */
.fiche-hero { padding-bottom: 120px; }
.fiche-hero h1 { max-width: 760px; }
.fiche-tag {
  display: inline-block; margin-bottom: 14px; padding: 6px 14px; border-radius: 999px;
  background: var(--gold); color: var(--night); font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
.fiche-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.fiche-chips span {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); backdrop-filter: blur(6px); font-size: .9rem; font-weight: 600;
}
.fiche-chips svg { width: 18px; height: 18px; color: var(--gold); }

.fiche-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; }
@media (max-width: 980px) { .fiche-layout { grid-template-columns: 1fr; } .fiche-aside { order: -1; } }
.fiche-block { margin-bottom: 64px; }
.fiche-block h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.fiche-objectifs { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 24px; }
@media (max-width: 680px) { .fiche-objectifs { grid-template-columns: 1fr; } }
.fiche-objectifs > div { background: var(--bg-soft); border-radius: 22px; padding: 28px; }
.fiche-objectifs h3 { font-size: 1.05rem; text-transform: uppercase; color: var(--violet); margin-bottom: 6px; }
.fiche-objectifs p { color: var(--muted); font-size: .92rem; margin-bottom: 0; }
.fiche-objectifs .checks { margin: 16px 0 0; }
.fiche-objectifs .checks li { font-size: .95rem; }

.programme { list-style: none; padding: 0; margin: 28px 0 0; position: relative; }
.programme::before { content: ""; position: absolute; left: 27px; top: 10px; bottom: 10px; width: 2px; background: linear-gradient(var(--violet), var(--gold)); }
.module { display: flex; gap: 22px; align-items: flex-start; padding: 0 0 26px; position: relative; }
.module__num {
  flex: none; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; position: relative; z-index: 1;
  background: #fff; border: 3px solid var(--violet); color: var(--violet); font-family: var(--font-title); font-weight: 900; transition: background .3s, color .3s;
}
.module:hover .module__num { background: var(--violet); color: var(--gold); }
.module > div { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px 22px; flex: 1; transition: box-shadow .3s, transform .3s; }
.module:hover > div { box-shadow: var(--shadow); transform: translateX(4px); }
.module h3 { font-size: 1.05rem; margin-bottom: 4px; }
.module p { margin: 0; color: var(--muted); font-size: .95rem; }
.fiche-note { margin-top: 8px; padding: 16px 20px; border-radius: 14px; background: rgba(244,185,66,.14); border-left: 4px solid var(--gold); }
.fiche-note a { color: var(--violet); font-weight: 700; }

.fiche-infos { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 680px) { .fiche-infos { grid-template-columns: 1fr; } }
.fiche-info { border: 1px solid var(--line); border-radius: 20px; padding: 26px; }
.fiche-info .icon-box { width: 50px; height: 50px; border-radius: 14px; margin-bottom: 14px; }
.fiche-info .icon-box svg { width: 24px; height: 24px; }
.fiche-info h3 { font-size: 1rem; text-transform: uppercase; }
.fiche-info p { margin: 0; color: var(--muted); font-size: .93rem; }

@media (min-width: 981px) and (min-height: 860px) { .fiche-aside { position: sticky; top: 100px; } }
.fiche-card { background: linear-gradient(160deg, var(--violet), var(--violet-dark)); color: #fff; border-radius: 26px; padding: 30px; box-shadow: var(--shadow); }
.fiche-card h3 { font-size: 1.1rem; text-transform: uppercase; color: var(--gold); }
.fiche-card dl { margin: 18px 0 24px; }
.fiche-card dt { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.fiche-card dd { margin: 2px 0 14px; font-size: .95rem; }
.fiche-card__small { margin: 12px 0 0; font-size: .8rem; text-align: center; opacity: .7; }

/* ---------- Section POEI / France Travail ---------- */
.poei-intro { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .poei-intro { grid-template-columns: 1fr; } }
.poei-box { background: linear-gradient(160deg, var(--violet), var(--violet-dark)); color: #fff; border-radius: 26px; padding: clamp(26px, 4vw, 38px); box-shadow: var(--shadow); }
.poei-box h3 { color: var(--gold); font-size: 1.2rem; text-transform: uppercase; }
.poei-box p { color: rgba(255,255,255,.88); }
.poei-facts { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; }
.poei-facts li { padding: 12px 16px; border-radius: 14px; background: rgba(255,255,255,.08); font-size: .94rem; line-height: 1.5; }
.poei-facts strong { color: var(--gold); margin-right: 4px; }
.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 44px; }
@media (max-width: 960px) { .benefits { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .benefits { grid-template-columns: 1fr; } }
.benefit { border: 1px solid var(--line); border-radius: 22px; padding: 28px; background: #fff; transition: transform .35s, box-shadow .35s; }
.benefit:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.benefit .icon-box { width: 54px; height: 54px; border-radius: 16px; margin-bottom: 16px; }
.benefit .icon-box svg { width: 26px; height: 26px; }
.benefit h3 { font-size: 1.05rem; }
.benefit p { margin: 0; color: var(--muted); font-size: .95rem; }
.steps--5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 980px) { .steps--5 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps--5 { grid-template-columns: 1fr; } }
.poei-note { text-align: center; color: var(--muted); font-size: .85rem; max-width: 720px; margin: 28px auto 0; }
/* l'ancre #poei arrive sous le menu fixe, pas derrière */
#poei { scroll-margin-top: 70px; }
/* liens vers la POEI depuis l'accueil */
.poei-chip {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; padding: 7px 14px; border-radius: 999px;
  background: rgba(244,185,66,.16); color: #9a6a12; font-size: .85rem; font-weight: 700; text-decoration: none; transition: background .25s;
}
.poei-chip::before { content: "?"; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--gold); color: var(--night); font-size: .72rem; }
.poei-chip:hover { background: rgba(244,185,66,.32); }
.offer .poei-chip { display: flex; width: fit-content; }
.poei-banner {
  display: flex; align-items: center; gap: 24px; margin-top: 34px; padding: 22px 28px; border-radius: 24px;
  background: linear-gradient(120deg, var(--violet-dark), var(--violet)); color: #fff; text-decoration: none;
  box-shadow: var(--shadow); position: relative; overflow: hidden; transition: transform .35s;
}
.poei-banner::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 240px; height: 240px; border-radius: 50%;
  background: radial-gradient(circle, rgba(244,185,66,.35), transparent 65%);
}
.poei-banner:hover { transform: translateY(-4px); }
.poei-banner__badge {
  flex: none; display: grid; place-items: center; width: 74px; height: 74px; border-radius: 20px;
  background: var(--gold); color: var(--night); font-family: var(--font-title); font-weight: 900; font-size: 1.05rem; letter-spacing: .04em;
}
.poei-banner__text { display: grid; gap: 4px; position: relative; z-index: 1; }
.poei-banner__text strong { font-family: var(--font-title); font-size: 1.25rem; }
.poei-banner__text span { color: rgba(255,255,255,.82); font-size: .95rem; }
.poei-banner__arrow {
  flex: none; margin-left: auto; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; color: var(--violet); position: relative; z-index: 1; transition: transform .3s;
}
.poei-banner__arrow svg { width: 20px; height: 20px; }
.poei-banner:hover .poei-banner__arrow { transform: translateX(6px); }
@media (max-width: 600px) {
  .poei-banner { flex-wrap: wrap; gap: 16px; padding: 22px; }
  .poei-banner__badge { width: 58px; height: 58px; }
  .poei-banner__arrow { display: none; }
}
.hero-pill {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding: 8px 16px; border-radius: 999px;
  background: rgba(244,185,66,.16); border: 1px solid rgba(244,185,66,.5); color: #fff; font-size: .88rem; font-weight: 600; text-decoration: none;
  transition: background .25s;
}
.hero-pill:hover { background: rgba(244,185,66,.3); }
.hero-pill b { color: var(--gold); }

/* ---------- Les associés (accueil, Notre approche) ---------- */
.associes { text-align: center; max-width: 860px; margin: 0 auto; }
.associes__duo { display: flex; justify-content: center; gap: clamp(32px, 8vw, 110px); margin: 34px 0 30px; flex-wrap: wrap; }
.associe { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.associe img {
  width: clamp(150px, 18vw, 200px); height: clamp(150px, 18vw, 200px); border-radius: 50%; object-fit: cover;
  border: 5px solid #fff; box-shadow: 0 0 0 3px var(--gold), var(--shadow); transition: transform .4s;
}
.associe:hover img { transform: scale(1.04) rotate(-2deg); }
.associe figcaption { display: grid; gap: 2px; }
.associe strong { font-family: var(--font-title); font-size: 1.12rem; color: var(--violet-dark); }
.associe span { color: var(--muted); font-size: .9rem; }
.associes__texte { font-size: 1.12rem; color: var(--muted); max-width: 720px; margin: 0 auto 10px; }
.associes__credo {
  font-family: var(--font-title); font-weight: 800; font-style: italic; font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--violet); margin: 0; line-height: 1.3;
}
.associes__credo::after { content: ""; display: block; width: 90px; height: 4px; margin: 18px auto 0; border-radius: 4px; background: var(--orange); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 50px; }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info { display: grid; gap: 18px; align-content: start; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-item .icon-box { width: 52px; height: 52px; margin: 0; flex: none; border-radius: 14px; }
.contact-item .icon-box svg { width: 24px; height: 24px; }
.contact-item strong { display: block; font-family: var(--font-title); }
.form { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(24px, 4vw, 44px); display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } }
.form label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 6px; }
.form input, .form select, .form textarea {
  width: 100%; padding: 13px 16px; border: 1.5px solid var(--line); border-radius: 12px; font: inherit; color: var(--ink); background: var(--bg-soft);
  transition: border-color .25s, background .25s;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--violet); background: #fff; }
.form textarea { min-height: 140px; resize: vertical; }
.form .hp { position: absolute; left: -9999px; }
.form-msg { padding: 14px 18px; border-radius: 12px; font-weight: 600; }
.form-msg.ok { background: #e7f7ee; color: #19734a; }
.form-msg.err { background: #fdecec; color: #a12a2a; }

/* ---------- Mentions ---------- */
.prose { max-width: 820px; }
.prose h2 { font-size: 1.3rem; margin-top: 2em; }

/* ---------- Apparition au scroll ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s cubic-bezier(.2,.8,.2,1), transform .9s cubic-bezier(.2,.8,.2,1); transition-delay: var(--rd, 0s); }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
  .reveal { opacity: 1; transform: none; }
}
