/* ============================================
   SPARKWAY — Feuille de style principale
   ============================================ */

/* ---------- Reset minimal ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.65;
  color: var(--dark);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.25s ease, color 0.25s ease;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ---------- Palette ---------- */
:root {
  --ink: #1F3A40;
  --ink-dark: #15282C;
  --gold: #A07535;
  --gold-soft: #C29659;
  --dark: #303B3D;
  --muted: #6A7679;
  --bg: #FAFAF7;
  --white: #FFFFFF;
  --line: #E5E5DE;
  --panel: #F2F1EB;
  --sage: #8FB3A6;

  --container: 1240px;
  --gutter: clamp(20px, 4vw, 48px);

  --font-display: 'Cormorant Garamond', 'Georgia', serif;
  --font-body: 'Manrope', -apple-system, sans-serif;
}

/* ---------- Container & layout helpers ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: clamp(60px, 9vw, 120px) 0;
}

.section--tight {
  padding: clamp(40px, 6vw, 80px) 0;
}

.section--dark {
  background: var(--ink);
  color: var(--white);
}

.section--panel {
  background: var(--panel);
}

/* ---------- Typography ---------- */
.kicker {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}

h1, .h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--ink);
}

h2, .h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(32px, 4.5vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ink);
}

h3, .h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.2;
  color: var(--ink);
}

.lead {
  font-family: var(--font-body);
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.55;
  color: var(--muted);
  font-weight: 400;
}

p {
  margin-bottom: 1.1em;
}

p:last-child {
  margin-bottom: 0;
}

em.gold {
  font-style: italic;
  color: var(--gold);
}

strong {
  font-weight: 600;
  color: var(--ink);
}

.section--dark h1,
.section--dark h2,
.section--dark h3 {
  color: var(--white);
}

.section--dark .kicker {
  color: var(--gold-soft);
}

.section--dark .lead {
  color: rgba(255, 255, 255, 0.75);
}

/* ---------- Decorative gold rule ---------- */
.rule-gold {
  width: 48px;
  height: 2px;
  background: var(--gold);
  margin: 24px 0;
  display: block;
}

.rule-gold--centered {
  margin: 24px auto;
}

/* ============================================
   HEADER (navigation)
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 247, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}

.site-header__logo {
  display: flex;
  align-items: center;
}

.site-header__logo img {
  height: 75px;
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.site-nav a {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--dark);
  letter-spacing: 0.01em;
  position: relative;
  padding: 4px 0;
}

.site-nav a:hover {
  color: var(--gold);
}

.site-nav a.is-active {
  color: var(--ink);
}

.site-nav a.is-active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1.5px;
  background: var(--gold);
}

.site-nav .btn {
  margin-left: 8px;
}

/* Burger menu (mobile) */
.menu-toggle {
  display: none;
  width: 32px;
  height: 32px;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.25s, opacity 0.25s;
}

.menu-toggle.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

@media (max-width: 840px) {
  .menu-toggle { display: flex; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0 var(--gutter);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    border-bottom: 1px solid var(--line);
  }
  .site-nav.is-open {
    max-height: 500px;
    padding: 24px var(--gutter) 40px;
  }
  .site-nav a {
    width: 100%;
    padding: 14px 0;
    font-size: 17px;
    border-bottom: 1px solid var(--line);
  }
  .site-nav a:last-of-type {
    border-bottom: none;
  }
  .site-nav .btn {
    margin: 16px 0 0;
  }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 2px;
  transition: all 0.25s ease;
  cursor: pointer;
}

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

.btn--primary:hover {
  background: var(--ink-dark);
  transform: translateY(-1px);
}

.btn--gold {
  background: var(--gold);
  color: var(--white);
}

.btn--gold:hover {
  background: #8E6232;
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
  padding: 12.5px 26.5px;
}

.btn--ghost:hover {
  background: var(--ink);
  color: var(--white);
}

.btn--ghost-light {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  padding: 12.5px 26.5px;
}

.btn--ghost-light:hover {
  background: var(--white);
  color: var(--ink);
  border-color: var(--white);
}

.btn .arrow {
  display: inline-block;
  transition: transform 0.25s ease;
}

.btn:hover .arrow {
  transform: translateX(4px);
}

/* ============================================
   HERO (used on Accueil)
   ============================================ */
.hero {
  padding: clamp(60px, 9vw, 120px) 0 clamp(40px, 6vw, 80px);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

@media (max-width: 880px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.hero__content {
  max-width: 580px;
}

.hero__title {
  margin-bottom: 28px;
}

.hero__sub {
  margin-bottom: 36px;
}

.hero__cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero__media {
  position: relative;
}

.hero__photo {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 4px;
  background: var(--panel);
}

.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero__photo::before {
  content: '';
  position: absolute;
  top: -16px;
  left: -16px;
  width: 110px;
  height: 110px;
  border-top: 2px solid var(--gold);
  border-left: 2px solid var(--gold);
  z-index: 2;
  pointer-events: none;
}

.hero__photo::after {
  content: '';
  position: absolute;
  bottom: -16px;
  right: -16px;
  width: 110px;
  height: 110px;
  border-bottom: 2px solid var(--gold);
  border-right: 2px solid var(--gold);
  z-index: 2;
  pointer-events: none;
}

/* ============================================
   GENERIC PAGE INTRO (for non-home pages)
   ============================================ */
.page-intro {
  padding: clamp(70px, 8vw, 110px) 0 clamp(40px, 5vw, 70px);
  text-align: center;
}

.page-intro__content {
  max-width: 760px;
  margin: 0 auto;
}

.page-intro h1 {
  margin-bottom: 24px;
}

/* ============================================
   CONTENT BLOCKS
   ============================================ */
.block {
  max-width: 820px;
  margin: 0 auto;
}

.block--narrow {
  max-width: 680px;
}

.block p {
  font-size: 18px;
  line-height: 1.7;
  color: var(--dark);
}

.block h2,
.block h3 {
  margin-bottom: 20px;
}

.block h2 + p,
.block h3 + p {
  margin-top: -4px;
}

/* ============================================
   SERVICES (3 cards preview)
   ============================================ */
.services-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 36px);
  margin-top: 56px;
}

@media (max-width: 880px) {
  .services-preview { grid-template-columns: 1fr; }
}

.service-card {
  padding: 40px 32px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px -20px rgba(31, 58, 64, 0.15);
  border-color: var(--gold);
}

.service-card__icon {
  font-size: 28px;
  margin-bottom: 24px;
  color: var(--gold);
}

.service-card__title {
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--ink);
  margin-bottom: 14px;
  line-height: 1.2;
}

.service-card__tagline {
  font-style: italic;
  color: var(--gold);
  margin-bottom: 14px;
  font-size: 15px;
}

.service-card__text {
  color: var(--muted);
  font-size: 15.5px;
  flex-grow: 1;
}

.service-card__link {
  margin-top: 24px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-transform: uppercase;
}

/* ============================================
   DETAILED SERVICE (services page)
   ============================================ */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(40px, 6vw, 80px);
  padding: clamp(50px, 7vw, 90px) 0;
  border-top: 1px solid var(--line);
}

.service-detail:first-of-type {
  border-top: none;
}

@media (max-width: 880px) {
  .service-detail { grid-template-columns: 1fr; gap: 30px; }
}

.service-detail__header h2 {
  margin-bottom: 16px;
}

.service-detail__tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  color: var(--gold);
  line-height: 1.3;
}

.service-detail__body p {
  font-size: 17px;
  color: var(--dark);
}

.steps {
  list-style: none;
  margin: 28px 0 0;
  counter-reset: step;
}

.steps li {
  display: grid;
  grid-template-columns: 56px 1fr;
  grid-template-rows: auto auto;
  column-gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  counter-increment: step;
}

.steps li:last-child {
  border-bottom: none;
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--gold);
  line-height: 1;
  grid-column: 1;
  grid-row: 1 / span 2;
}

.steps li strong {
  grid-column: 2;
  grid-row: 1;
  display: block;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink);
  margin-bottom: 4px;
}

.steps li span {
  grid-column: 2;
  grid-row: 2;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.5;
}

.for-whom {
  margin-top: 36px;
  padding: 24px 28px;
  background: var(--panel);
  border-left: 3px solid var(--gold);
  border-radius: 2px;
}

.for-whom strong {
  color: var(--gold);
  letter-spacing: 0.05em;
  font-size: 13px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
}

.for-whom p {
  margin: 0;
  font-size: 15.5px;
  color: var(--dark);
}

/* Modes within a service (used in Accompagnement) */
.modes {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.modes li {
  list-style: none;
  padding-left: 24px;
  position: relative;
  font-size: 16px;
  color: var(--dark);
}

.modes li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 12px;
  height: 1px;
  background: var(--gold);
}

.modes li strong {
  display: inline;
  font-weight: 600;
}

/* Recrutement separate block */
.recrutement-block {
  background: var(--ink);
  color: var(--white);
  padding: clamp(50px, 6vw, 80px);
  border-radius: 4px;
  margin-top: clamp(50px, 7vw, 80px);
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(30px, 5vw, 60px);
  align-items: center;
}

@media (max-width: 880px) {
  .recrutement-block { grid-template-columns: 1fr; padding: 40px 28px; }
}

.recrutement-block h2 {
  color: var(--white);
  margin-bottom: 12px;
}

.recrutement-block p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 16.5px;
  line-height: 1.65;
}

.recrutement-block .tagline {
  color: var(--gold-soft);
  font-style: italic;
  font-family: var(--font-display);
  font-size: 20px;
  margin-bottom: 0;
}

/* ============================================
   ABOUT PAGE
   ============================================ */
.about-hero {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
  padding: clamp(70px, 8vw, 110px) 0 clamp(40px, 6vw, 80px);
}

@media (max-width: 880px) {
  .about-hero { grid-template-columns: 1fr; }
}

.about-hero__photo {
  position: relative;
}

.about-hero__photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  border-radius: 4px;
  position: relative;
  z-index: 1;
}

.about-hero__photo::before {
  content: '';
  position: absolute;
  inset: 16px -16px -16px 16px;
  border: 2px solid var(--gold);
  border-radius: 4px;
  z-index: 0;
}

.about-hero--team {
  grid-template-columns: 0.55fr 1.45fr;
}

@media (max-width: 880px) {
  .about-hero--team { grid-template-columns: 1fr; }
}

/* Liste « Notre posture » (À propos) */
.posture-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 8px;
}
.posture-list li {
  font-size: 16px;
  line-height: 1.6;
  color: var(--dark);
}
.posture-list strong {
  color: var(--gold);
  font-weight: 600;
}

/* Accordéon parcours (À propos · L'équipe) */
.parcours {
  margin-top: 22px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.parcours > summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  transition: color 0.2s ease;
}

.parcours > summary::-webkit-details-marker { display: none; }

.parcours > summary:hover { color: var(--gold); }

.parcours__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex: none;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  color: var(--gold);
  font-size: 16px;
  line-height: 1;
  transition: background 0.2s ease, color 0.2s ease;
}

.parcours__icon::before { content: "+"; }
.parcours[open] .parcours__icon::before { content: "\2212"; }

.parcours > summary:hover .parcours__icon {
  background: var(--gold);
  color: var(--white);
}

.parcours__content { margin-top: 18px; }
.parcours__content p { margin-bottom: 14px; }
.parcours__content p:last-child { margin-bottom: 0; }

.about-content h2 {
  margin: 48px 0 16px;
}

.about-content h2:first-child {
  margin-top: 0;
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 56px;
  padding-top: 56px;
  border-top: 1px solid var(--line);
}

@media (max-width: 720px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
}

.stat {
  text-align: left;
}

.stat__num {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 48px);
  color: var(--gold);
  line-height: 1;
  margin-bottom: 10px;
  font-weight: 500;
}

.stat__label {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.45;
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(40px, 6vw, 80px);
  padding: clamp(40px, 5vw, 60px) 0 clamp(60px, 8vw, 100px);
}

@media (max-width: 880px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.contact-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 18px;
  align-items: start;
}

.contact-item__icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--panel);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
}

.contact-item__label {
  font-size: 12.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
  font-weight: 600;
}

.contact-item__value {
  font-size: 17px;
  color: var(--ink);
  font-weight: 500;
}

.contact-item__value a {
  border-bottom: 1px solid var(--gold);
  padding-bottom: 1px;
}

.contact-item__value a:hover {
  color: var(--gold);
}

.contact-form {
  background: var(--white);
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.contact-form h3 {
  margin-bottom: 24px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}

.form-row label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.03em;
}

.form-row input,
.form-row textarea {
  font-family: var(--font-body);
  font-size: 15px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: 2px;
  color: var(--dark);
  transition: border-color 0.25s;
  font-weight: 400;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--white);
}

.form-row textarea {
  resize: vertical;
  min-height: 120px;
}

.form-note {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 14px;
  font-style: italic;
}

/* ============================================
   CTA SECTION (final on each page)
   ============================================ */
.cta-section {
  text-align: center;
  padding: clamp(20px, 2.5vw, 34px) 0;
  background: var(--ink);
  color: var(--white);
}

.cta-section h2 {
  color: var(--white);
  margin-bottom: 24px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.cta-section .lead {
  max-width: 580px;
  margin: 0 auto 36px;
  color: rgba(255, 255, 255, 0.75);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--ink-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 70px 0 30px;
  font-size: 14.5px;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}

@media (max-width: 720px) {
  .site-footer__grid { grid-template-columns: 1fr; gap: 32px; }
}

.site-footer__brand img {
  height: 64px;
  margin-bottom: 20px;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.site-footer__tagline {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--gold-soft);
  font-size: 17px;
  line-height: 1.4;
  margin-top: 6px;
}

.site-footer__title {
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.site-footer ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-footer a:hover {
  color: var(--gold-soft);
}

.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  flex-wrap: wrap;
  gap: 10px;
}

/* ============================================
   ANIMATIONS (load-in)
   ============================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero__content > * { opacity: 0; animation: fadeUp 0.8s ease forwards; }
.hero__content .kicker { animation-delay: 0.1s; }
.hero__content .hero__title { animation-delay: 0.2s; }
.hero__content .hero__sub { animation-delay: 0.35s; }
.hero__content .hero__cta { animation-delay: 0.5s; }

.hero__media { opacity: 0; animation: fadeUp 1s ease 0.3s forwards; }

/* ============================================
   UTILITIES
   ============================================ */
.center { text-align: center; }
.no-margin-bottom { margin-bottom: 0; }