/* =============================================================
   JULIEN ROUSSEAU — DSI de Transition
   CSS principal — Site vitrine
   ============================================================= */

/* === RESET & BASE === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 82px; /* compense le header sticky (66px + marge) */
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

ul, ol {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

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

abbr {
  text-decoration: none;
  cursor: default;
}

/* === DESIGN TOKENS === */
:root {
  /* Colors */
  --color-navy:       #0d1b2a;
  --color-navy-mid:   #132030;
  --color-navy-light: #1a3050;
  --color-accent:     #c0883a;
  --color-accent-h:   #d09848;
  --color-white:      #ffffff;
  --color-off-white:  #f6f7f9;
  --color-gray-100:   #f0f2f5;
  --color-gray-200:   #e3e7ed;
  --color-gray-400:   #9aa3b2;
  --color-gray-600:   #5a6577;
  --color-text:       #1b2333;
  --color-text-mid:   #47546a;
  --color-text-light: #6b7a94;

  /* Typography */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --font-tracking-tight: -0.03em;
  --font-tracking-wide:  0.06em;

  /* Layout */
  --container:         1120px;
  --container-pad:     clamp(1.25rem, 5vw, 2.5rem);
  --section-pad:       clamp(4rem, 8vw, 6rem);

  /* Radii */
  --r-sm:   3px;
  --r:      6px;
  --r-lg:   12px;

  /* Shadows */
  --shadow-sm: 0 1px 8px rgba(13, 27, 42, 0.07);
  --shadow:    0 3px 16px rgba(13, 27, 42, 0.1);
  --shadow-lg: 0 8px 48px rgba(13, 27, 42, 0.15);

  /* Transitions */
  --t: 0.2s ease;
}

/* === ACCESSIBILITY === */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--color-accent);
  color: var(--color-white);
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  z-index: 9999;
  border-radius: 0 0 var(--r) 0;
}

.skip-link:focus {
  top: 0;
  outline: 3px solid var(--color-white);
  outline-offset: 2px;
}

/* Focus visible global */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

/* === LAYOUT === */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

/* === HEADER === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--color-navy);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  transition: box-shadow 0.3s ease;
}

.site-header--scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

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

.logo {
  display: flex;
  flex-direction: column;
  gap: 1px;
  flex-shrink: 0;
}

.logo-name {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: 0.01em;
}

.logo-title {
  font-size: 0.6875rem;
  color: var(--color-accent);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-weight: 600;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 1.875rem;
}

.main-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.62);
  letter-spacing: 0.01em;
  transition: color var(--t);
  padding: 0.375rem 0;
  position: relative;
}

.main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--color-accent);
  transition: width var(--t);
}

.main-nav a:hover {
  color: var(--color-white);
}

.main-nav a:hover::after {
  width: 100%;
}

.nav-cta {
  color: var(--color-accent) !important;
  background: rgba(192, 136, 58, 0.08);
  border: 1px solid rgba(192, 136, 58, 0.35);
  padding: 0.5rem 1.25rem !important;
  border-radius: 2px;
  font-weight: 600 !important;
  transition: background var(--t), border-color var(--t), color var(--t) !important;
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  background: var(--color-accent) !important;
  border-color: var(--color-accent) !important;
  color: var(--color-white) !important;
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  color: var(--color-white);
  border-radius: var(--r-sm);
}

.mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform var(--t), opacity var(--t);
}

.mobile-menu-btn[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.mobile-menu-btn[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.mobile-menu-btn[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* === HERO === */
.hero {
  background: var(--color-navy);
  padding: clamp(4.5rem, 10vw, 7.5rem) 0 clamp(4rem, 8vw, 6.5rem);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 72% 40%, rgba(192, 136, 58, 0.06) 0%, transparent 55%);
  pointer-events: none;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 5rem;
  align-items: center;
  position: relative;
}

.hero-eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-accent);
  font-weight: 700;
  margin-bottom: 1.125rem;
}

.hero-name {
  font-size: clamp(2.75rem, 5.5vw, 4rem);
  font-weight: 800;
  color: var(--color-white);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin-bottom: 1.5rem;
}

.hero-tagline {
  font-size: clamp(1rem, 1.8vw, 1.1875rem);
  color: rgba(255, 255, 255, 0.68);
  max-width: 540px;
  line-height: 1.75;
  margin-bottom: 2.5rem;
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-bottom: 2.75rem;
  padding-bottom: 2.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  flex-wrap: wrap;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.stat-value {
  font-size: clamp(1.125rem, 2.2vw, 1.375rem);
  font-weight: 800;
  color: var(--color-white);
  letter-spacing: -0.015em;
}


.stat-label {
  font-size: 0.6875rem;
  color: var(--color-gray-400);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 500;
}

.hero-actions {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  flex-wrap: wrap;
}

.hero-portrait {
  position: relative;
  flex-shrink: 0;
}

.hero-portrait img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--r);
  box-shadow: var(--shadow-lg);
  filter: grayscale(15%) contrast(1.02);
}

/* === BUTTONS === */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent);
  color: var(--color-white);
  font-size: 0.9375rem;
  font-weight: 700;
  padding: 0.875rem 1.875rem;
  border-radius: var(--r-sm);
  letter-spacing: 0.01em;
  transition: background var(--t), transform var(--t), box-shadow var(--t);
  box-shadow: 0 2px 10px rgba(192, 136, 58, 0.32);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--color-accent-h);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(192, 136, 58, 0.42);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-block {
  width: 100%;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 0.875rem 1.375rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--r-sm);
  transition: color var(--t), border-color var(--t), background var(--t);
  letter-spacing: 0.01em;
}

.btn-ghost:hover {
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.06);
}

/* === CONTEXT STRIP === */
.context-strip {
  background: var(--color-navy-mid);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 1.125rem 0;
}

.context-list {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.context-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.55);
  padding: 0.5rem 2.25rem;
  border-right: 1px solid rgba(255, 255, 255, 0.09);
}

.context-list li:last-child {
  border-right: none;
}

.context-list strong {
  color: var(--color-white);
  font-weight: 600;
}

.context-marker {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-accent);
  flex-shrink: 0;
}

/* === SECTION HEADERS === */
.section-header {
  text-align: center;
  max-width: 660px;
  margin: 0 auto 3.5rem;
}

.section-header--left {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
  max-width: 520px;
}

.section-header h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.375rem);
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: var(--font-tracking-tight);
  line-height: 1.2;
  margin-bottom: 0.875rem;
}

.section-lead {
  font-size: 1.0625rem;
  color: var(--color-text-mid);
  line-height: 1.65;
}

.section-lead--light {
  color: rgba(255, 255, 255, 0.58);
  font-style: italic;
}

/* === INTERVENTIONS === */
.section-interventions {
  padding: var(--section-pad) 0;
  background: var(--color-white);
}

.section-interventions .section-header {
  margin-bottom: 3rem;
}

.interventions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--color-gray-200);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--r);
  overflow: hidden;
}

.card-intervention {
  background: var(--color-white);
  padding: 2.5rem 2.25rem 2rem;
  position: relative;
  transition: background var(--t);
}

.card-intervention::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 0;
  background: var(--color-accent);
  transition: height 0.3s ease;
}

.card-intervention:hover {
  background: var(--color-off-white);
}

.card-intervention:hover::before {
  height: 100%;
}

.card-num {
  display: block;
  font-size: 0.625rem;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: var(--font-tracking-wide);
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.card-intervention h3 {
  font-size: 1.1875rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: var(--font-tracking-tight);
  margin-bottom: 0.875rem;
  line-height: 1.3;
}

.card-intervention p {
  font-size: 0.9375rem;
  color: var(--color-text-mid);
  line-height: 1.75;
}

.card-scope {
  font-size: 0.8125rem !important;
  color: var(--color-text-light) !important;
  margin-top: 1.5rem !important;
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-gray-200);
  letter-spacing: 0.01em;
}

/* === PARCOURS === */
.section-parcours {
  padding: var(--section-pad) 0;
  background: var(--color-navy);
}

.section-parcours .section-header h2 {
  color: var(--color-white);
}

.parcours-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 5rem;
  align-items: start;
  margin-bottom: 4rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.parcours-text p {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.parcours-text p:last-child {
  margin-bottom: 0;
}

.parcours-chiffres {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 1.5rem;
  flex-shrink: 0;
}

.chiffre {
  display: flex;
  flex-direction: column;
}

.chiffre-valeur {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--color-white);
  letter-spacing: -0.03em;
  line-height: 1;
}

.chiffre-unite {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-accent);
  letter-spacing: 0.04em;
  margin-top: 2px;
  margin-bottom: 0.375rem;
}

.chiffre-label {
  font-size: 0.8125rem;
  color: var(--color-gray-400);
  line-height: 1.45;
}

/* Différenciateurs */
.differenciateurs {
  /* child of section-parcours container */
}

.diff-titre {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: -0.015em;
  margin-bottom: 1.75rem;
}

.diff-grille {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.diff-item {
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: var(--r);
}

.diff-item strong {
  display: block;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 0.625rem;
  line-height: 1.4;
}

.diff-item p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.7;
}

/* === CONTACT === */
.section-contact {
  padding: var(--section-pad) 0;
  background: var(--color-off-white);
}

/* Contact cards */
.contact-headline {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 3.5rem;
}

.contact-headline h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.375rem);
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: var(--font-tracking-tight);
  margin-bottom: 0.875rem;
}

.contact-headline p {
  font-size: 1.0625rem;
  color: var(--color-text-mid);
  line-height: 1.65;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--color-gray-200);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--r);
  overflow: hidden;
}

.contact-card {
  background: var(--color-white);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.contact-card-label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--font-tracking-wide);
  color: var(--color-accent);
}

.contact-card-value {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.4;
  transition: color var(--t);
  word-break: break-word;
}

a.contact-card-value:hover {
  color: var(--color-accent);
}

/* Bouton Calendly dans la contact-card */
.contact-card-value--btn {
  background: none;
  border: none;
  padding: 0;
  text-align: left;
  cursor: pointer;
  font-family: var(--font);
  color: var(--color-text);
  transition: color var(--t);
}

.contact-card-value--btn:hover {
  color: var(--color-accent);
}

.contact-card-value--text {
  font-size: 0.9375rem !important;
  font-weight: 400 !important;
  color: var(--color-text-mid) !important;
  line-height: 1.65 !important;
}

.contact-card-note {
  font-size: 0.8125rem;
  color: var(--color-text-light);
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--color-gray-100);
}

/* === FOOTER === */
.site-footer {
  background: var(--color-navy);
  padding: 2.5rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.footer-name {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--color-white);
}

.footer-role {
  font-size: 0.8125rem;
  color: var(--color-gray-400);
}

.footer-nav {
  display: flex;
  gap: 2rem;
  align-items: center;
  flex-wrap: wrap;
}

.footer-nav a {
  font-size: 0.875rem;
  color: var(--color-gray-400);
  transition: color var(--t);
}

.footer-nav a:hover {
  color: var(--color-white);
}

.footer-bottom p {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.3);
}

/* === RESPONSIVE — 1024px === */
@media (max-width: 1024px) {
  .hero-layout {
    grid-template-columns: 1fr 300px;
    gap: 3.5rem;
  }

  .parcours-layout {
    grid-template-columns: 1fr 300px;
    gap: 3.5rem;
  }
}

/* === RESPONSIVE — 900px === */
@media (max-width: 900px) {
  .hero-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero-portrait {
    max-width: 300px;
    margin: 0 auto;
  }

  .hero-portrait img {
    height: 320px;
  }

  .hero-stats {
    gap: 1.75rem;
  }

  .parcours-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
    padding-bottom: 3rem;
  }

  .parcours-chiffres {
    grid-template-columns: repeat(4, 1fr);
    width: 100%;
  }

  .diff-grille {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

}

/* === RESPONSIVE — 768px (mobile nav) === */
@media (max-width: 768px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 66px;
    left: 0;
    right: 0;
    background: var(--color-navy);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.5rem 0 1rem;
  }

  .main-nav.is-open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 0 var(--container-pad);
  }

  .main-nav a {
    display: block;
    padding: 0.875rem 0;
    font-size: 0.9375rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .main-nav ul li:last-child a {
    border-bottom: none;
  }

  .nav-cta {
    border: none !important;
    border-radius: 0 !important;
    padding: 0.875rem 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .interventions-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .context-list li {
    padding: 0.5rem 1.25rem;
    font-size: 0.8125rem;
  }

  .footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .footer-nav {
    gap: 1.5rem;
  }
}

/* === RESPONSIVE — 640px === */
@media (max-width: 640px) {
  .hero-portrait {
    max-width: 240px;
    margin: 0 auto;
  }

  .hero-portrait img {
    height: 280px;
  }

  .parcours-chiffres {
    grid-template-columns: repeat(2, 1fr);
  }

  .context-list {
    flex-direction: column;
    align-items: flex-start;
  }

  .context-list li {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    width: 100%;
    padding: 0.75rem 0;
  }

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

  .hero-stats {
    gap: 1.25rem;
  }
}

/* === PRINT === */
@media print {
  .site-header,
  .context-strip,
  .hero-portrait,
  .section-contact,
  .mobile-menu-btn,
  .site-footer {
    display: none;
  }

  .hero {
    padding: 2rem 0;
    background: white;
  }

  .hero-name,
  .hero-tagline,
  .stat-value,
  .hero-eyebrow {
    color: black;
  }

  .section-parcours {
    background: white;
  }

  .section-parcours .section-header h2,
  .parcours-text p,
  .diff-titre,
  .diff-item strong,
  .diff-item p,
  .chiffre-valeur,
  .chiffre-label {
    color: black;
  }
}
