/* ==========================================================================
   Marotta Consulting — feuille de style principale
   Identité : bleu nuit + bordeaux, titres serif, texte Montserrat.
   ========================================================================== */

:root {
  --night: #0b0a2e;        /* fond sombre principal */
  --navy: #16145f;         /* bleu nuit de la marque */
  --indigo: #2b27a8;
  --ink: #050416;          /* titres sur fond clair */
  --text: #290005;         /* texte courant */
  --muted: rgba(5, 4, 22, 0.58);
  --red: #a30015;          /* bordeaux : boutons / accents */
  --red-bright: #d1102b;
  --red-dark: #7d0010;
  --cream: #f6f3ee;        /* fond clair chaleureux */
  --soft: #f7f7f7;
  --white: #ffffff;

  --serif: "Times New Roman", Times, Georgia, serif;
  --sans: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 14px;
  --shadow: 0 18px 40px rgba(5, 4, 22, 0.1);
  --container: 1200px;
  --header-h: 84px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* grain léger (bruit SVG) */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--red); color: var(--white); }

img { max-width: 100%; display: block; }
a { color: var(--red); }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.05;
  margin: 0 0 0.6em;
}
em { font-style: italic; }

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

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 1.2em;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
}
.kicker::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}

/* ---------- Écran d'intro (accueil) ---------- */

.preloader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: center;
  background: var(--night);
  color: var(--white);
  /* filet de sécurité : disparaît même si le JS échoue */
  animation: preloader-out 0.8s var(--ease) 2.6s forwards;
}
.js .preloader { display: grid; }
.preloader svg { width: 150px; height: auto; overflow: visible; }
.preloader path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  animation: draw 1.2s var(--ease) 0.1s forwards;
}
.preloader-name {
  position: absolute;
  bottom: 12vh;
  font-size: 0.75rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  opacity: 0;
  animation: fade-in 0.6s ease 0.6s forwards;
}
.is-loaded .preloader { animation: preloader-out 0.9s var(--ease) forwards; }
.js.skip-intro .preloader { display: none; }

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade-in { to { opacity: 1; } }
@keyframes preloader-out {
  to { transform: translateY(-100%); visibility: hidden; }
}

/* ---------- Boutons ---------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.95em 2em;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.4s var(--ease), border-color 0.4s, transform 0.3s var(--ease);
}
/* remplissage qui monte au survol */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  transform: translateY(101%);
  transition: transform 0.5s var(--ease);
}
.btn:hover::before { transform: translateY(0); }
.btn svg { width: 1.1em; height: 1.1em; transition: transform 0.4s var(--ease); }
.btn:hover svg { transform: translateX(4px); }

.btn-primary { background: var(--red); color: var(--white); }
.btn-primary::before { background: var(--ink); }

.btn-outline { border-color: rgba(255, 255, 255, 0.45); color: var(--white); }
.btn-outline::before { background: var(--white); }
.btn-outline:hover { color: var(--night); }

.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark::before { background: var(--red); }

/* ---------- En-tête ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background-color 0.4s, transform 0.5s var(--ease), box-shadow 0.4s;
}
.site-header.is-solid,
.page-inner .site-header.is-solid {
  background: rgba(11, 10, 46, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}
.site-header.is-hidden { transform: translateY(-100%); }

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  text-decoration: none;
}
.logo-mark {
  font-family: var(--serif);
  font-size: 2.3rem;
  letter-spacing: -0.04em;
  line-height: 1;
  transition: transform 0.5s var(--ease);
}
.logo:hover .logo-mark { transform: rotate(-6deg) scale(1.05); }
.logo-name {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.05;
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--white);
  padding: 8px;
  cursor: pointer;
}
.nav-toggle svg { width: 28px; height: 28px; }

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.main-nav a:not(.btn) {
  position: relative;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color 0.3s;
}
.main-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease);
}
.main-nav a:not(.btn):hover,
.main-nav a[aria-current="page"] { color: var(--white); }
.main-nav a:not(.btn):hover::after,
.main-nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.main-nav .btn { padding: 0.65em 1.5em; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; }
.main-nav .btn-primary::before { background: var(--white); }
.main-nav .btn-primary:hover { color: var(--night); }

/* ---------- Fond animé (aurores) ---------- */

.hero,
.page-hero,
.cta-xl {
  position: relative;
  overflow: hidden;
  background: var(--night);
  color: rgba(255, 255, 255, 0.78);
  isolation: isolate;
}
.aurora {
  position: absolute;
  inset: -20%;
  z-index: -2;
  pointer-events: none;
}
.aurora span {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.75;
  will-change: transform;
}
.aurora span:nth-child(1) {
  width: 55vw; height: 55vw;
  left: 45%; top: 5%;
  background: var(--indigo);
  animation: float-a 18s ease-in-out infinite alternate;
}
.aurora span:nth-child(2) {
  width: 40vw; height: 40vw;
  left: 60%; top: 45%;
  background: var(--red);
  opacity: 0.55;
  animation: float-b 22s ease-in-out infinite alternate;
}
.aurora span:nth-child(3) {
  width: 35vw; height: 35vw;
  left: 5%; top: 55%;
  background: var(--navy);
  animation: float-c 16s ease-in-out infinite alternate;
}
@keyframes float-a { to { transform: translate(-18vw, 12vh) scale(1.15); } }
@keyframes float-b { to { transform: translate(-25vw, -18vh) scale(0.85); } }
@keyframes float-c { to { transform: translate(20vw, -10vh) scale(1.2); } }

/* grain par-dessus */
.hero::after,
.page-hero::after,
.cta-xl::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--grain);
  opacity: 0.14;
  mix-blend-mode: overlay;
  pointer-events: none;
}

/* ---------- Bandeau d'accueil ---------- */

.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 40px) 0 110px;
}
/* photo discrète à droite */
.hero-photo {
  position: absolute;
  inset: 0 0 0 38%;
  z-index: -2;
  background: url("../images/hero.png") center / cover no-repeat;
  opacity: 0.22;
  mix-blend-mode: luminosity;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 45%);
  mask-image: linear-gradient(90deg, transparent, #000 45%);
}
/* halo qui suit la souris */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(520px circle at var(--mx, 70%) var(--my, 40%), rgba(209, 16, 43, 0.22), transparent 60%);
  transition: background 0.2s;
  pointer-events: none;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 2em;
  padding: 8px 18px 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  background: rgba(255, 255, 255, 0.04);
}
.pulse {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3ddc84;
}
.pulse::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid #3ddc84;
  animation: pulse 2s ease-out infinite;
}
@keyframes pulse { from { transform: scale(0.6); opacity: 1; } to { transform: scale(2.2); opacity: 0; } }

.hero-title {
  color: var(--white);
  font-size: clamp(3rem, 9vw, 7.4rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin-bottom: 0.35em;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero-title .line > span { display: inline-block; }
.hero-title em {
  font-style: italic;
  background: linear-gradient(90deg, #ff5a6e, var(--red-bright) 40%, #ff8a5c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* mot qui change tout seul */
.rotator { display: inline-block; }
.rotator em { display: inline-block; transition: transform 0.6s var(--ease), opacity 0.6s var(--ease), filter 0.6s; }
.rotator.is-out em { transform: translateY(-60%); opacity: 0; filter: blur(6px); }
.rotator.is-in em { transform: translateY(60%); opacity: 0; filter: blur(6px); transition: none; }

.hero-lead {
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  max-width: 560px;
  margin: 0 0 2.4em;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-decoration: none;
}
.scroll-cue::after {
  content: "";
  width: 1px;
  height: 46px;
  background: linear-gradient(rgba(255, 255, 255, 0.8), transparent);
  animation: cue 2s var(--ease) infinite;
  transform-origin: top;
}
@keyframes cue {
  0% { transform: scaleY(0); }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* apparition du titre au chargement */
.js .hero-title .line > span,
.js .hero-eyebrow,
.js .hero-lead,
.js .hero-actions {
  transform: translateY(110%);
  opacity: 0;
}
.js .hero-eyebrow,
.js .hero-lead,
.js .hero-actions { transform: translateY(30px); }
.is-loaded .hero-title .line > span,
.is-loaded .hero-eyebrow,
.is-loaded .hero-lead,
.is-loaded .hero-actions {
  transform: none;
  opacity: 1;
  transition: transform 1.2s var(--ease), opacity 1.2s var(--ease);
}
.is-loaded .hero-eyebrow { transition-delay: 0.1s; }
.is-loaded .hero-title .line:nth-child(1) > span { transition-delay: 0.2s; }
.is-loaded .hero-title .line:nth-child(2) > span { transition-delay: 0.32s; }
.is-loaded .hero-title .line:nth-child(3) > span { transition-delay: 0.44s; }
.is-loaded .hero-lead { transition-delay: 0.6s; }
.is-loaded .hero-actions { transition-delay: 0.72s; }

/* ---------- Bandeau défilant ---------- */

.marquee {
  position: relative;
  overflow: hidden;
  padding: 24px 0;
  background: var(--ink);
  color: var(--white);
  border-top: 1px solid rgba(255, 107, 125, 0.45);
  border-bottom: 1px solid rgba(255, 107, 125, 0.45);
  transform: rotate(-1deg) scale(1.02);
  margin: -24px 0 0;
  z-index: 2;
  box-shadow: 0 24px 40px rgba(5, 4, 22, 0.22);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  display: inline-flex;
  align-items: center;
  gap: 40px;
  padding-right: 40px;
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  font-style: italic;
  white-space: nowrap;
}
/* un mot sur deux en contour, séparés par un simple filet */
.marquee-track span:nth-child(even) {
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.75);
}
.marquee-track span::after {
  content: "";
  width: 56px;
  height: 1px;
  background: #ff6b7d;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */

.section { padding: 120px 0; }
.section-soft { background: var(--soft); }

.section-head { max-width: 820px; margin-bottom: 60px; }
.big-title {
  font-size: clamp(2.4rem, 5.5vw, 4.4rem);
  letter-spacing: -0.02em;
}
.big-title em { color: var(--red); }

.section-title {
  text-align: center;
  font-size: clamp(2rem, 4.4vw, 3rem);
  letter-spacing: -0.01em;
}
.section-intro {
  max-width: 760px;
  margin: 0 auto 60px;
  text-align: center;
  color: var(--muted);
}

/* Les 4 piliers (liste interactive) */
.pillars { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(5, 4, 22, 0.15); }
.pillar {
  position: relative;
  display: grid;
  grid-template-columns: 80px 1fr 1.2fr 60px;
  align-items: center;
  gap: 24px;
  padding: 34px 28px;
  border-bottom: 1px solid rgba(5, 4, 22, 0.15);
  color: var(--ink);
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.5s var(--ease), padding 0.5s var(--ease);
}
.pillar::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, var(--night), var(--navy) 60%, var(--red));
  clip-path: inset(100% 0 0 0);
  transition: clip-path 0.6s var(--ease);
}
.pillar:hover,
.pillar:focus-visible { color: var(--white); padding-left: 44px; }
.pillar:hover::before,
.pillar:focus-visible::before { clip-path: inset(0 0 0 0); }
.pillar-num { font-size: 0.85rem; font-weight: 600; letter-spacing: 0.1em; opacity: 0.55; }
.pillar-name {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.6vw, 3.6rem);
  line-height: 1;
  transition: transform 0.5s var(--ease);
}
.pillar:hover .pillar-name { transform: translateX(10px); font-style: italic; }
.pillar-desc { color: inherit; opacity: 0.7; }
.pillar-arrow {
  justify-self: end;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid currentColor;
  transition: transform 0.5s var(--ease), background 0.4s, color 0.4s;
}
.pillar-arrow svg { width: 20px; height: 20px; }
.pillar:hover .pillar-arrow { transform: rotate(-45deg); background: var(--white); color: var(--red); border-color: var(--white); }

/* Manifeste (s'éclaire mot à mot) */
.manifesto {
  padding: 140px 0 100px;
  background: var(--ink);
  color: var(--white);
}
.manifesto .kicker { color: #ff6b7d; }
.manifesto-text {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.9rem, 4.4vw, 3.6rem);
  line-height: 1.18;
  letter-spacing: -0.01em;
}
.manifesto-text .w { opacity: 0.16; transition: opacity 0.3s; }
.manifesto-text .w.is-lit { opacity: 1; }
.manifesto-text .accent { font-style: italic; color: #ff6b7d; }
.no-js .manifesto-text .w, .manifesto-text:not(.is-split) { opacity: 1; }

/* Méthode en 4 étapes */
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  list-style: none;
  margin: 90px 0 0;
  padding: 40px 0 0;
  counter-reset: step;
}
.steps::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, #ff6b7d, rgba(255, 255, 255, 0.25));
  transform: scaleX(var(--progress, 0));
  transform-origin: left;
  transition: transform 1.6s var(--ease);
}
.steps.is-in { --progress: 1; }
.steps li { position: relative; }
.steps li::before {
  content: "";
  position: absolute;
  top: -46px;
  left: 0;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ff6b7d;
  box-shadow: 0 0 0 6px rgba(255, 107, 125, 0.15);
}
.steps h3 { color: var(--white); font-size: 1.9rem; margin-bottom: 0.3em; }
.steps h3 span { display: block; margin-bottom: 0.6em; font-family: var(--sans); font-size: 0.75rem; letter-spacing: 0.2em; color: rgba(255, 255, 255, 0.5); }
.steps p { margin: 0; color: rgba(255, 255, 255, 0.65); font-size: 0.98rem; }

/* Situations de vie (« Quand me contacter ») */
.life-intro { margin: 0; max-width: 640px; color: var(--muted); }
.life-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.life-group {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px 26px 32px;
  border-top: 3px solid transparent;
  transition: border-color 0.4s, box-shadow 0.5s var(--ease);
}
.life-group:hover { border-top-color: var(--red); box-shadow: 0 26px 50px rgba(5, 4, 22, 0.14); }
.life-group h3 { font-size: 1.7rem; margin-bottom: 0.9em; }
.life-group h3 span {
  display: block;
  margin-bottom: 0.5em;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--red);
}
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.chip {
  position: relative;
  display: block;
  padding: 10px 40px 10px 16px;
  border: 1px solid rgba(5, 4, 22, 0.12);
  border-radius: 10px;
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.4;
  text-decoration: none;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.chip::after {
  content: "→";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translate(-6px, -50%);
  opacity: 0;
  transition: opacity 0.3s, transform 0.4s var(--ease);
}
.chip:hover,
.chip:focus-visible { background: var(--red); border-color: var(--red); color: var(--white); }
.chip:hover::after,
.chip:focus-visible::after { opacity: 1; transform: translate(0, -50%); }

/* Grand appel à l'action */
.cta-xl { padding: 140px 0 110px; }
.cta-xl-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 40px;
}
.cta-xl h2 {
  color: var(--white);
  font-size: clamp(3rem, 9vw, 7.5rem);
  letter-spacing: -0.03em;
  line-height: 0.95;
  margin: 0;
}
.cta-xl h2 em { color: #ff6b7d; }

/* badge rond qui tourne */
.badge {
  position: relative;
  display: grid;
  place-items: center;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  color: var(--white);
  text-decoration: none;
  transition: transform 0.4s var(--ease);
}
.badge-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  animation: spin 16s linear infinite;
}
.badge-ring text { font-family: var(--sans); font-size: 10.5px; font-weight: 600; letter-spacing: 3.2px; text-transform: uppercase; fill: currentColor; }
.badge-core {
  display: grid;
  place-items: center;
  width: 108px;
  height: 108px;
  border-radius: 50%;
  background: var(--red);
  transition: transform 0.5s var(--ease), background 0.4s;
}
.badge-core svg { width: 34px; height: 34px; transition: transform 0.5s var(--ease); }
.badge:hover .badge-core { transform: scale(1.12); background: var(--red-bright); }
.badge:hover .badge-core svg { transform: rotate(-45deg); }
.badge:hover .badge-ring { animation-duration: 5s; }
@keyframes spin { to { transform: rotate(360deg); } }

.cta-contacts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 80px;
  padding-top: 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}
.cta-contacts small {
  display: block;
  margin-bottom: 6px;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}
.cta-contacts a,
.cta-contacts span {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  color: var(--white);
  text-decoration: none;
}
.cta-contacts a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 0.5s var(--ease); }
.cta-contacts a:hover { background-size: 100% 1px; }

/* ---------- Pages intérieures ---------- */

.page-hero {
  padding: calc(var(--header-h) + 90px) 0 90px;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: -30%;
  z-index: -2;
  background:
    radial-gradient(40% 50% at 80% 30%, rgba(43, 39, 168, 0.9), transparent 70%),
    radial-gradient(30% 40% at 95% 90%, rgba(163, 0, 21, 0.7), transparent 70%),
    radial-gradient(35% 45% at 10% 100%, rgba(22, 20, 95, 0.9), transparent 70%);
  filter: blur(40px);
  animation: drift 20s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: translate(-6%, 4%) rotate(8deg); } }
.page-hero h1 {
  color: var(--white);
  font-size: clamp(3rem, 8vw, 6rem);
  letter-spacing: -0.02em;
  margin: 0;
  animation: rise 1.2s var(--ease) both 0.1s;
}
.breadcrumb {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  margin: 0 0 1em;
  animation: rise 1s var(--ease) both;
}
.breadcrumb a { color: rgba(255, 255, 255, 0.85); }
@keyframes rise { from { opacity: 0; transform: translateY(40px); } }

/* Cartes « nos solutions » */
.solutions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.solution {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}
.solution:hover { transform: translateY(-8px); box-shadow: 0 30px 60px rgba(5, 4, 22, 0.16); }
/* Illustrations dessinées (bleu nuit + bordeaux) */
.solution-media {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(60% 70% at 78% 18%, rgba(43, 39, 168, 0.85), transparent 70%),
    radial-gradient(50% 60% at 12% 100%, rgba(163, 0, 21, 0.6), transparent 70%),
    var(--night);
}
.solution-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  opacity: 0.12;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.illu {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  fill: none;
  stroke: var(--white);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  overflow: visible;
}
.illu .soft { stroke: rgba(255, 255, 255, 0.35); stroke-width: 2; }
.illu .accent { stroke: #ff6b7d; }
.illu .accent-fill { fill: #ff6b7d; stroke: none; }

/* le trait se dessine quand la carte apparaît */
.illu .draw {
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1.6s var(--ease) calc(var(--d, 0s) + 0.2s);
}
.solution.reveal:not(.is-in) .illu .draw { stroke-dashoffset: 1; transition: none; }

/* bouclier : ondes et étincelles */
.illu-shield .ring { stroke: rgba(255, 107, 125, 0.4); stroke-width: 1.5; transform-origin: 200px 152px; animation: ring 3.6s ease-out infinite; }
.illu-shield .ring-2 { animation-delay: 1.8s; }
@keyframes ring { from { transform: scale(0.75); opacity: 0.9; } to { transform: scale(1.35); opacity: 0; } }
.illu .spark circle { animation: twinkle 2.4s ease-in-out infinite; }
.illu .spark circle:nth-child(2) { animation-delay: 0.8s; }
.illu .spark circle:nth-child(3) { animation-delay: 1.6s; }
@keyframes twinkle { 50% { opacity: 0.15; } }
.illu-shield > path { transform-origin: 200px 152px; transition: transform 0.6s var(--ease), stroke-dashoffset 1.6s var(--ease) calc(var(--d, 0s) + 0.2s); }
.solution:hover .illu-shield > path { transform: scale(1.06); }

/* parapluie : la pluie tombe, la toile se balance au survol */
.illu-umbrella .rain line { stroke: rgba(255, 255, 255, 0.45); stroke-width: 2; animation: rain 1.6s linear infinite; }
.illu-umbrella .rain line:nth-child(2n) { animation-delay: 0.5s; }
.illu-umbrella .rain line:nth-child(3n) { animation-delay: 1s; }
@keyframes rain { from { transform: translate(0, -20px); opacity: 0; } 30% { opacity: 1; } to { transform: translate(-10px, 40px); opacity: 0; } }
.illu-umbrella .canopy { transform-origin: 200px 168px; transition: transform 0.8s var(--ease); }
.solution:hover .illu-umbrella .canopy { transform: rotate(-6deg) scale(1.04); }

/* croissance : les barres montent, la pousse grandit au survol */
.illu-growth .bars rect { fill: rgba(255, 255, 255, 0.08); stroke: rgba(255, 255, 255, 0.25); stroke-width: 1.5; transform-box: fill-box; transform-origin: bottom; transition: transform 1.2s var(--ease); }
.illu-growth .bars rect:nth-child(2) { transition-delay: 0.1s; }
.illu-growth .bars rect:nth-child(3) { transition-delay: 0.2s; }
.illu-growth .bars rect:nth-child(4) { transition-delay: 0.3s; }
.solution.reveal:not(.is-in) .illu-growth .bars rect { transform: scaleY(0); }
.illu-growth .plant { transform-origin: 200px 240px; transition: transform 0.8s var(--ease); }
.solution:hover .illu-growth .plant { transform: scale(1.12); }
.solution-body { display: flex; flex-direction: column; flex: 1; padding: 30px 28px 32px; }
.solution h3 { font-size: 1.8rem; }
.solution p { color: var(--muted); flex: 1; }
.solution .btn { align-self: flex-start; }

/* Page « Qui suis-je » */
.about {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 70px;
  align-items: center;
}
.about-figure { position: relative; margin: 0; }
.about-figure::before {
  content: "";
  position: absolute;
  inset: 24px -24px -24px 24px;
  border: 1px solid var(--red);
  border-radius: var(--radius);
  z-index: -1;
  transition: transform 0.8s var(--ease);
}
.about-figure:hover::before { transform: translate(-12px, -12px); }
.about-photo {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: linear-gradient(135deg, var(--navy), var(--red));
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 20%;
}
.eyebrow {
  margin: 0 0 0.6em;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.about h2 { font-size: clamp(2.6rem, 5vw, 4rem); margin-bottom: 0.2em; }
.about-role { margin: 0 0 1.6em; font-weight: 600; color: var(--muted); }
.about-tagline { font-family: var(--serif); font-style: italic; font-size: 1.6rem; line-height: 1.3; color: var(--ink); margin: 0 0 1em; }
.quote {
  margin: 0 0 2em;
  padding: 4px 0 4px 26px;
  border-left: 2px solid var(--red);
}

/* Page Contact */
.contact-layout {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 56px;
  align-items: start;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px;
}
.card h2 { font-size: 2.2rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid transparent;
  border-bottom: 1px solid rgba(5, 4, 22, 0.25);
  border-radius: 8px 8px 0 0;
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
}
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; background: var(--white); border-color: var(--red); box-shadow: 0 8px 20px rgba(163, 0, 21, 0.08); }
.field textarea { min-height: 170px; resize: vertical; }
.form-note { font-size: 0.85rem; color: var(--muted); margin: 0; }

.alert { display: none; padding: 14px 18px; border-radius: 8px; margin-bottom: 20px; font-weight: 500; }
.alert.is-visible { display: block; animation: rise 0.6s var(--ease); }
.alert-success { background: #e7f5ec; color: #135c2e; }

.contact-side h2 { font-size: 2.2rem; }
.contact-items { display: grid; gap: 22px; }
.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--text);
  text-decoration: none;
}
.contact-item-icon {
  flex: none;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--white);
  box-shadow: var(--shadow);
  color: var(--red);
  transition: background 0.4s, color 0.4s, transform 0.4s var(--ease);
}
.contact-item-icon svg { width: 22px; height: 22px; }
a.contact-item:hover .contact-item-icon { background: var(--red); color: var(--white); transform: rotate(-10deg) scale(1.08); }

/* Pages de texte */
.prose { max-width: 800px; margin: 0 auto; }
.prose h2 { font-size: 2rem; margin-top: 1.8em; }
.prose p, .prose li { color: #3a2a2c; }

/* CTA simple (pages intérieures) */
.cta {
  position: relative;
  padding: 90px 0;
  text-align: center;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.8);
  overflow: hidden;
}
.cta h2 { color: var(--white); font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: 0.3em; }
.cta p { margin: 0 auto 1.8em; max-width: 620px; }

/* ---------- Pied de page ---------- */

.site-footer {
  position: relative;
  background: var(--night);
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.95rem;
  overflow: hidden;
}
/* grand nom en filigrane */
.site-footer::before {
  content: "Marotta";
  position: absolute;
  left: 50%;
  bottom: -0.22em;
  transform: translateX(-50%);
  font-family: var(--serif);
  font-size: clamp(6rem, 24vw, 22rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.1);
  white-space: nowrap;
  pointer-events: none;
}
.site-footer a { color: rgba(255, 255, 255, 0.8); text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.footer-grid {
  position: relative;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding: 80px 24px clamp(120px, 18vw, 240px);
}
.footer-grid h2 {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1.2em;
}
.footer-grid > div:first-child h2 { font-family: var(--serif); font-size: 1.8rem; letter-spacing: 0; text-transform: none; font-weight: 400; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 0.5em; }
.footer-grid p { margin: 0 0 0.5em; }
.footer-bottom { position: relative; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.footer-bottom .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  padding-bottom: 20px;
}
.footer-bottom p { margin: 0; font-size: 0.85rem; }
.social {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: background 0.3s, transform 0.4s var(--ease);
}
.social:hover { background: var(--red); border-color: var(--red); transform: rotate(-10deg); }
.social svg { width: 16px; height: 16px; }

/* ---------- Apparitions au défilement ---------- */

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s var(--ease), transform 1.1s var(--ease);
    transition-delay: var(--delay, 0s);
  }
  .reveal.is-in { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 991px) {
  .solutions { grid-template-columns: 1fr 1fr; }
  .life-grid { grid-template-columns: 1fr 1fr; }
  .about, .contact-layout { grid-template-columns: 1fr; gap: 50px; }
  .about-figure { max-width: 420px; margin: 0 auto; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 70px; }
  .steps li::before { display: none; }
  .pillar { grid-template-columns: 60px 1fr 52px; }
  .pillar-desc { grid-column: 2 / 3; grid-row: 2; }
  .pillar-arrow { grid-row: 1 / 3; grid-column: 3; }
}

@media (max-width: 820px) {
  :root { --header-h: 70px; }
  .logo-mark { font-size: 1.9rem; }
  .logo-name { font-size: 0.85rem; }

  .nav-toggle { display: block; }
  .main-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: var(--night);
    padding: 20px 24px 32px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    clip-path: inset(0 0 100% 0);
    transition: clip-path 0.5s var(--ease);
  }
  .main-nav.is-open { clip-path: inset(0 0 0 0); }
  .main-nav ul { flex-direction: column; align-items: flex-start; gap: 22px; }
  .main-nav a:not(.btn) { font-family: var(--serif); font-size: 2rem; letter-spacing: 0; text-transform: none; }
  .site-header.menu-open { background: var(--night); }

  .cta-xl-inner { grid-template-columns: 1fr; }
  .badge { width: 160px; height: 160px; }
  .cta-contacts { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  body { font-size: 1rem; }
  .section { padding: 80px 0; }
  .manifesto { padding: 100px 0 80px; }
  .cta-xl { padding: 100px 0 80px; }
  .solutions, .form-grid, .steps, .life-grid { grid-template-columns: 1fr; }
  .pillar { padding: 26px 8px; gap: 14px; grid-template-columns: 36px 1fr 44px; }
  .pillar:hover { padding-left: 16px; }
  .pillar-arrow { width: 44px; height: 44px; }
  .card { padding: 26px 20px; }
  .hero-photo { inset: 0; opacity: 0.12; }
  .footer-bottom .container { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .marquee-track, .aurora span, .badge-ring { animation: none !important; }
}
