/* ==========================================================================
   FC Recrutement — Design System
   ========================================================================== */

:root {
  /* Palette */
  --color-burgundy-900: #2a0a1e;
  --color-burgundy-800: #3a1028;
  --color-burgundy-700: #4a1834;
  --color-burgundy-600: #5c2044;
  --color-gold-500: #e5b968;
  --color-gold-600: #d4a24c;
  --color-gold-400: #ecc78a;
  --color-cream: #f7f2ea;
  --color-cream-dark: #ede4d3;
  --color-white: #ffffff;
  --color-ink: #1a0912;
  --color-muted: #6b5b60;
  --color-line: rgba(255, 255, 255, 0.12);
  --color-line-dark: rgba(42, 10, 30, 0.12);

  /* Typographie */
  --font-serif: "Playfair Display", "Cormorant Garamond", Georgia, serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Espacements */
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2.5rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;

  /* Rayons */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  /* Ombres */
  --shadow-sm: 0 2px 8px rgba(42, 10, 30, 0.08);
  --shadow-md: 0 8px 24px rgba(42, 10, 30, 0.12);
  --shadow-lg: 0 20px 48px rgba(42, 10, 30, 0.18);
  --shadow-gold: 0 8px 24px rgba(229, 185, 104, 0.35);

  /* Transitions */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.3s;

  /* Container */
  --container: 1200px;
  --container-narrow: 960px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-ink);
  background: var(--color-cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

/* Prevent grid/flex children from expanding beyond their track (min-width: auto bug) */
.hero-grid > *,
.about-grid > *,
.final-cta-grid > *,
.footer-grid > *,
.contact-grid > *,
.formation-detail-grid > * {
  min-width: 0;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}

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

input,
textarea,
select {
  font: inherit;
  color: inherit;
}

ul,
ol {
  list-style: none;
}

/* ==========================================================================
   Typography
   ========================================================================== */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  line-height: 1.1;
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
}

h3 {
  font-size: 1.25rem;
}

h4 {
  font-size: 1.05rem;
}

p {
  margin-bottom: var(--space-md);
}

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

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold-500);
  margin-bottom: var(--space-md);
  display: inline-block;
}

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

.text-muted {
  color: var(--color-muted);
}

/* ==========================================================================
   Layout
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container-narrow {
  max-width: var(--container-narrow);
}

section {
  padding: var(--space-3xl) 0;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-2xl);
}

.section-header h2 {
  margin-bottom: var(--space-md);
}

.section-header p {
  color: var(--color-muted);
  font-size: 1.05rem;
}

.section-dark {
  background: var(--color-burgundy-900);
  color: var(--color-cream);
  position: relative;
  overflow: hidden;
}

.section-dark .section-header p {
  color: rgba(247, 242, 234, 0.75);
}

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

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.9rem 1.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  transition: all var(--dur) var(--ease);
  cursor: pointer;
  white-space: nowrap;
  border: 2px solid transparent;
}

.btn:focus-visible {
  outline: 2px solid var(--color-gold-500);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--color-gold-500);
  color: var(--color-burgundy-900);
  box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
  background: var(--color-gold-400);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(229, 185, 104, 0.45);
}

.btn-outline {
  background: transparent;
  color: var(--color-cream);
  border-color: rgba(247, 242, 234, 0.3);
}

.btn-outline:hover {
  border-color: var(--color-gold-500);
  color: var(--color-gold-500);
  transform: translateY(-2px);
}

.btn-outline-dark {
  background: transparent;
  color: var(--color-burgundy-900);
  border-color: var(--color-burgundy-900);
}

.btn-outline-dark:hover {
  background: var(--color-burgundy-900);
  color: var(--color-gold-500);
}

.btn-outline-light {
  background: transparent;
  color: var(--color-cream);
  border-color: var(--color-gold-500);
}

.btn-outline-light:hover {
  background: var(--color-gold-500);
  color: var(--color-burgundy-900);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(229, 185, 104, 0.35);
}

.btn-lg {
  padding: 1.1rem 2.25rem;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

.btn svg {
  width: 18px;
  height: 18px;
}

/* ==========================================================================
   Header / Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-burgundy-900);
  border-bottom: 1px solid var(--color-line);
  transition: box-shadow var(--dur) var(--ease);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: var(--space-lg);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--color-cream);
  flex-shrink: 0;
}

.nav-brand .logo {
  width: 44px;
  height: 44px;
}

.nav-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.nav-brand-name {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.nav-brand-tagline {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-gold-500);
  opacity: 0.9;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav-menu a {
  color: var(--color-cream);
  font-size: 0.9rem;
  font-weight: 500;
  position: relative;
  padding: 0.5rem 0;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-gold-500);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--dur) var(--ease);
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--color-gold-500);
}

.nav-menu a.active::after,
.nav-menu a:hover::after {
  transform: scaleX(1);
}

.nav-cta {
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  background: none;
  border: none;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-cream);
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  background: var(--color-burgundy-900);
  color: var(--color-cream);
  position: relative;
  overflow: hidden;
  padding: var(--space-2xl) 0 var(--space-3xl);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 20%, rgba(229, 185, 104, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 10% 80%, rgba(92, 32, 68, 0.4) 0%, transparent 60%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(135deg, transparent 30%, rgba(229, 185, 104, 0.04) 100%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-title {
  margin-bottom: var(--space-lg);
}

.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(247, 242, 234, 0.8);
  margin-bottom: var(--space-xl);
  max-width: 500px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
}

.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xl);
}

.hero-feature {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.hero-feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(229, 185, 104, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gold-500);
  flex-shrink: 0;
}

.hero-feature-icon svg {
  width: 20px;
  height: 20px;
}

.hero-feature-label {
  font-size: 0.85rem;
  line-height: 1.3;
}

/* ==========================================================================
   Hero form card
   ========================================================================== */
.form-card {
  background: rgba(58, 16, 40, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-lg);
}

.form-card h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  margin-bottom: var(--space-xs);
  color: var(--color-cream);
}

.form-card-subtitle {
  color: rgba(247, 242, 234, 0.7);
  font-size: 0.9rem;
  margin-bottom: var(--space-lg);
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: var(--space-xs);
  color: rgba(247, 242, 234, 0.85);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  color: var(--color-cream);
  font-size: 0.95rem;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: rgba(247, 242, 234, 0.4);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-gold-500);
  background: rgba(255, 255, 255, 0.09);
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%23e5b968' d='M6 8L0 0h12z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

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

.form-footer {
  text-align: center;
  font-size: 0.8rem;
  color: rgba(247, 242, 234, 0.6);
  margin-top: var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
}

.form-footer .dot {
  opacity: 0.5;
}

.form-feedback {
  margin-top: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  border-radius: 8px;
  font-size: 0.9rem;
  line-height: 1.5;
}

.form-feedback-error {
  background: rgba(220, 53, 69, 0.08);
  border: 1px solid rgba(220, 53, 69, 0.3);
  color: #b02a37;
}

.form-feedback-success {
  background: rgba(25, 135, 84, 0.08);
  border: 1px solid rgba(25, 135, 84, 0.3);
  color: #146c43;
}

/* Light variant (for Contact page etc.) */
.form-card-light {
  background: var(--color-white);
  color: var(--color-ink);
  border: 1px solid var(--color-line-dark);
}

.form-card-light h3 {
  color: var(--color-ink);
}

.form-card-light .form-card-subtitle {
  color: var(--color-muted);
}

.form-card-light .form-group label {
  color: var(--color-ink);
}

.form-card-light .form-input,
.form-card-light .form-select,
.form-card-light .form-textarea {
  background: var(--color-cream);
  border-color: var(--color-line-dark);
  color: var(--color-ink);
}

.form-card-light .form-input::placeholder,
.form-card-light .form-textarea::placeholder {
  color: var(--color-muted);
}

.form-card-light .form-footer {
  color: var(--color-muted);
}

/* ==========================================================================
   Domain cards (light section)
   ========================================================================== */
.domains-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.domain-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  display: flex;
  flex-direction: column;
}

.domain-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.domain-card-media {
  aspect-ratio: 16 / 10;
  background: var(--color-burgundy-800);
  position: relative;
  overflow: hidden;
}

.domain-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.domain-card-body {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  flex-grow: 1;
}

.domain-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(90, 24, 52, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-burgundy-800);
  margin-bottom: var(--space-xs);
}

.domain-card-icon svg {
  width: 22px;
  height: 22px;
}

.domain-card h3 {
  color: var(--color-burgundy-900);
}

.domain-card p {
  color: var(--color-muted);
  font-size: 0.95rem;
  flex-grow: 1;
}

.domain-card-link {
  color: var(--color-burgundy-800);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  margin-top: var(--space-sm);
}

.domain-card-link:hover {
  color: var(--color-gold-600);
}

.domain-card-link svg {
  width: 16px;
  height: 16px;
  transition: transform var(--dur) var(--ease);
}

.domain-card-link:hover svg {
  transform: translateX(4px);
}

/* ==========================================================================
   Why us
   ========================================================================== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-xl);
}

.why-item {
  text-align: center;
}

.why-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(229, 185, 104, 0.12);
  border: 1px solid rgba(229, 185, 104, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
  color: var(--color-gold-500);
}

.why-icon svg {
  width: 28px;
  height: 28px;
}

.why-item h3 {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-cream);
  margin-bottom: var(--space-sm);
}

.why-item p {
  color: rgba(247, 242, 234, 0.7);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ==========================================================================
   Programs (flagship formations)
   ========================================================================== */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-lg);
}

.program-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.program-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.program-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--color-burgundy-800);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gold-500);
  margin: 0 auto;
}

.program-card-icon svg {
  width: 24px;
  height: 24px;
}

.program-card h3 {
  text-align: center;
  color: var(--color-burgundy-900);
  font-size: 1.1rem;
  min-height: 3em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.program-card-desc {
  text-align: center;
  color: var(--color-muted);
  font-size: 0.9rem;
}

.program-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  margin: var(--space-sm) 0;
}

.program-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  font-size: 0.9rem;
  color: var(--color-ink);
}

.program-list li::before {
  content: "";
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  margin-top: 3px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'><path fill='none' stroke='%235c2044' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M2 7l3.5 3.5L12 3.5'/></svg>") no-repeat center;
  background-size: contain;
}

.program-duration {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  color: var(--color-burgundy-800);
  font-weight: 600;
  font-size: 0.9rem;
  padding-top: var(--space-sm);
  border-top: 1px solid var(--color-line-dark);
  margin-top: auto;
}

.program-duration svg {
  width: 16px;
  height: 16px;
}

.programs-cta {
  text-align: center;
  margin-top: var(--space-2xl);
}

/* ==========================================================================
   Audience
   ========================================================================== */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-xl);
  text-align: center;
}

.audience-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

.audience-icon {
  width: 56px;
  height: 56px;
  color: var(--color-burgundy-800);
}

.audience-icon svg {
  width: 100%;
  height: 100%;
}

.audience-item h3 {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-burgundy-900);
}

.audience-item p {
  color: var(--color-muted);
  font-size: 0.9rem;
  max-width: 200px;
}

/* ==========================================================================
   About + Testimonials
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-2xl);
  align-items: center;
}

.about-card {
  display: flex;
  gap: var(--space-lg);
  align-items: flex-start;
}

.about-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-burgundy-700), var(--color-burgundy-900));
  flex-shrink: 0;
  border: 2px solid var(--color-gold-500);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gold-500);
}

.about-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-avatar svg {
  width: 50%;
  height: 50%;
}

.about-body h2 {
  color: var(--color-cream);
  margin-bottom: var(--space-md);
  font-size: 2rem;
}

.about-body p {
  color: rgba(247, 242, 234, 0.8);
  font-size: 0.95rem;
  margin-bottom: var(--space-md);
}

.about-signature {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--color-gold-500);
  font-style: italic;
  margin-bottom: 0;
}

.about-role {
  font-size: 0.8rem;
  color: rgba(247, 242, 234, 0.6);
  margin-bottom: var(--space-lg);
}

.testimonials {
  position: relative;
}

.testimonials h3 {
  color: var(--color-cream);
  margin-bottom: var(--space-lg);
  font-family: var(--font-serif);
  font-size: 1.5rem;
}

.testimonial-track {
  overflow: hidden;
  border-radius: var(--radius-md);
}

.testimonial-slides {
  display: flex;
  transition: transform 0.5s var(--ease);
}

.testimonial-slide {
  flex: 0 0 100%;
  padding: var(--space-xl);
  background: rgba(58, 16, 40, 0.5);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
}

.testimonial-quote {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--color-cream);
  font-style: italic;
  margin-bottom: var(--space-lg);
  position: relative;
  padding-left: var(--space-lg);
}

.testimonial-quote::before {
  content: "\201C";
  position: absolute;
  left: -8px;
  top: -12px;
  font-size: 3.5rem;
  color: var(--color-gold-500);
  line-height: 1;
  font-family: var(--font-serif);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-burgundy-700);
  border: 1px solid var(--color-gold-500);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gold-500);
  font-weight: 600;
  font-size: 0.9rem;
}

.testimonial-name {
  font-weight: 600;
  color: var(--color-cream);
  font-size: 0.95rem;
}

.testimonial-role {
  font-size: 0.8rem;
  color: rgba(247, 242, 234, 0.6);
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: var(--space-xs);
  margin-top: var(--space-md);
}

.testimonial-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(247, 242, 234, 0.3);
  cursor: pointer;
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease);
  border: none;
  padding: 0;
}

.testimonial-dot.active {
  background: var(--color-gold-500);
  transform: scale(1.3);
}

/* ==========================================================================
   Final CTA (with decorative arcs)
   ========================================================================== */
.final-cta {
  background: var(--color-cream);
  position: relative;
  overflow: hidden;
}

.final-cta::before {
  content: "";
  position: absolute;
  left: -100px;
  bottom: -100px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  border: 2px solid var(--color-gold-500);
  opacity: 0.3;
  pointer-events: none;
}

.final-cta::after {
  content: "";
  position: absolute;
  left: -50px;
  bottom: -50px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  border: 2px solid var(--color-gold-500);
  opacity: 0.5;
  pointer-events: none;
}

.final-cta-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
  position: relative;
  z-index: 1;
}

.final-cta h2 {
  color: var(--color-burgundy-900);
  margin-bottom: var(--space-md);
}

.final-cta p {
  color: var(--color-muted);
  max-width: 480px;
}

.final-cta-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  align-items: center;
}

.final-cta-contact {
  font-size: 0.9rem;
  color: var(--color-muted);
  margin-bottom: var(--space-xs);
}

.final-cta-email {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--color-burgundy-800);
  font-weight: 500;
}

.final-cta-email:hover {
  color: var(--color-gold-600);
}

.final-cta-email svg {
  width: 16px;
  height: 16px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--color-burgundy-900);
  color: var(--color-cream);
  padding: var(--space-3xl) 0 var(--space-lg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr 1.3fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
}

.footer-brand p {
  font-size: 0.9rem;
  color: rgba(247, 242, 234, 0.65);
  margin-top: var(--space-md);
  max-width: 260px;
}

.footer-social {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}

.footer-social a:hover {
  background: var(--color-gold-500);
  color: var(--color-burgundy-900);
}

.footer-social svg {
  width: 16px;
  height: 16px;
}

.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-cream);
  margin-bottom: var(--space-md);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-col a {
  color: rgba(247, 242, 234, 0.7);
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: var(--color-gold-500);
}

.footer-contact li {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: rgba(247, 242, 234, 0.7);
  font-size: 0.9rem;
  margin-bottom: var(--space-sm);
}

.footer-contact svg {
  width: 16px;
  height: 16px;
  color: var(--color-gold-500);
  flex-shrink: 0;
}

.footer-cta {
  margin-top: var(--space-md);
}

.footer-bottom {
  border-top: 1px solid var(--color-line);
  padding-top: var(--space-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
  font-size: 0.85rem;
  color: rgba(247, 242, 234, 0.55);
}

.footer-bottom-links {
  display: flex;
  gap: var(--space-lg);
}

.footer-bottom-links a:hover {
  color: var(--color-gold-500);
}

/* ==========================================================================
   Modal (Calendly)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 9, 18, 0.85);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: var(--space-md);
}

.modal-overlay.active {
  display: flex;
  animation: fadeIn var(--dur) var(--ease);
}

.modal {
  background: var(--color-cream);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
}

.modal-header {
  padding: var(--space-lg) var(--space-xl);
  border-bottom: 1px solid var(--color-line-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--color-white);
}

.modal-header h3 {
  color: var(--color-burgundy-900);
  font-family: var(--font-serif);
  font-size: 1.3rem;
}

.modal-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-cream);
  color: var(--color-burgundy-900);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--dur) var(--ease);
}

.modal-close:hover {
  background: var(--color-burgundy-900);
  color: var(--color-cream);
}

.modal-close svg {
  width: 18px;
  height: 18px;
}

.modal-body {
  flex-grow: 1;
  overflow: auto;
  min-height: 600px;
}

.modal-body iframe {
  width: 100%;
  height: 100%;
  min-height: 600px;
  border: none;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ==========================================================================
   Page hero (interior pages)
   ========================================================================== */
.page-hero {
  background: var(--color-burgundy-900);
  color: var(--color-cream);
  padding: var(--space-3xl) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 30%, rgba(229, 185, 104, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 15% 70%, rgba(92, 32, 68, 0.3) 0%, transparent 60%);
  pointer-events: none;
}

.page-hero > * {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  margin-bottom: var(--space-md);
}

.page-hero p {
  color: rgba(247, 242, 234, 0.75);
  font-size: 1.1rem;
  max-width: 640px;
  margin: 0 auto;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  font-size: 0.85rem;
  color: rgba(247, 242, 234, 0.6);
  margin-bottom: var(--space-lg);
}

.breadcrumbs a:hover {
  color: var(--color-gold-500);
}

.breadcrumbs svg {
  width: 12px;
  height: 12px;
  opacity: 0.5;
}

/* ==========================================================================
   Utility
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   PAGE ACCUEIL � Nouveaux composants (refonte)
   ========================================================================== */

/* Section spacing helpers */
.section-pad {
  padding: var(--space-2xl) 0;
}

.section-alt {
  background: var(--color-cream);
}

.section-lead {
  font-size: 1.05rem;
  color: var(--color-body);
  line-height: 1.65;
  margin-top: var(--space-md);
  max-width: 60ch;
  margin-left: auto;
  margin-right: auto;
}

/* Hero enhancements */
.hero-sectors {
  display: block;
  margin-top: var(--space-sm);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-gold-500);
}

.hero-trust {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-line-dark);
}

.hero-trust-item strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--color-burgundy-900);
  margin-bottom: 0.15rem;
}

.hero-trust-item span {
  font-size: 0.85rem;
  color: var(--color-muted);
  line-height: 1.5;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
}

.hero-visual-glow {
  position: absolute;
  inset: -20% -10%;
  background: radial-gradient(circle at 60% 40%, rgba(229, 185, 104, 0.35), transparent 60%);
  filter: blur(40px);
  z-index: 0;
  pointer-events: none;
}

.hero-visual-card {
  position: relative;
  z-index: 1;
  background: var(--color-white);
  padding: var(--space-md);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 60px rgba(42, 10, 30, 0.15);
  max-width: 380px;
  border: 1px solid rgba(229, 185, 104, 0.25);
}

.hero-visual-card img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  display: block;
}

.hero-visual-caption {
  padding: var(--space-md) var(--space-sm) var(--space-sm);
  text-align: center;
}

.hero-visual-caption p {
  color: var(--color-body);
  font-size: 0.95rem;
  margin: 0.25rem 0 0;
}

/* Double expertise cards */
.dual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.dual-card {
  padding: var(--space-xl);
  border-radius: var(--radius-md);
  min-width: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.dual-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(42, 10, 30, 0.12);
}

.dual-card-cabinet {
  background: linear-gradient(135deg, var(--color-burgundy-900), #3d1530);
  color: var(--color-cream);
  border: 1px solid rgba(229, 185, 104, 0.3);
}

.dual-card-cabinet .eyebrow,
.dual-card-cabinet h3 {
  color: var(--color-gold-500);
}

.dual-card-cabinet .dual-list li {
  color: rgba(247, 242, 234, 0.85);
}

.dual-card-cabinet .dual-list li::before {
  background: var(--color-gold-500);
}

.dual-card-cabinet .dual-link {
  color: var(--color-gold-500);
}

.dual-card-formation {
  background: var(--color-white);
  border: 1px solid var(--color-line-dark);
}

.dual-card-formation .eyebrow {
  color: var(--color-burgundy-800);
}

.dual-card-formation h3 {
  color: var(--color-burgundy-900);
}

.dual-card-header h3 {
  font-size: 1.4rem;
  margin-top: 0.25rem;
  line-height: 1.25;
}

.dual-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.dual-list li {
  padding: 0.4rem 0 0.4rem 1.4rem;
  position: relative;
  font-size: 0.95rem;
  line-height: 1.55;
}

.dual-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.9rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-burgundy-900);
}

.dual-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--color-burgundy-900);
  margin-top: auto;
  padding-top: var(--space-sm);
  transition: gap var(--dur) var(--ease);
}

.dual-link:hover {
  gap: 0.7rem;
}

/* Sectors mini grid (home) */
.sectors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.sector-mini {
  background: var(--color-white);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-line-dark);
  text-align: center;
  min-width: 0;
}

.sector-mini-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto var(--space-md);
  border-radius: 50%;
  background: var(--color-burgundy-900);
  color: var(--color-gold-500);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sector-mini h3 {
  color: var(--color-burgundy-900);
  font-size: 1.15rem;
  margin-bottom: var(--space-sm);
}

.sector-mini p {
  font-size: 0.92rem;
  color: var(--color-body);
  line-height: 1.55;
}

/* Flagship program block */
.flagship-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-xl);
  margin-top: var(--space-xl);
  background: var(--color-white);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-line-dark);
  box-shadow: 0 12px 32px rgba(42, 10, 30, 0.06);
}

.flagship-body {
  min-width: 0;
}

.flagship-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm) var(--space-lg);
  padding-bottom: var(--space-lg);
  margin-bottom: var(--space-lg);
  border-bottom: 1px solid var(--color-line-dark);
  font-size: 0.9rem;
  color: var(--color-body);
}

.flagship-meta-item strong {
  color: var(--color-burgundy-900);
}

.flagship-body h3 {
  color: var(--color-burgundy-900);
  font-size: 1.3rem;
  margin-bottom: var(--space-md);
}

.flagship-modules {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-lg);
  counter-reset: mod;
}

.flagship-modules li {
  counter-increment: mod;
  padding: 0.6rem 0 0.6rem 3rem;
  position: relative;
  line-height: 1.55;
  border-bottom: 1px dashed var(--color-line-dark);
}

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

.flagship-modules li::before {
  content: counter(mod, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.55rem;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--color-gold-500);
  font-weight: 500;
  width: 2rem;
  text-align: right;
}

.flagship-modules li strong {
  color: var(--color-burgundy-900);
}

.flagship-actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.flagship-side {
  background: var(--color-cream);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  min-width: 0;
}

.flagship-side h4 {
  color: var(--color-burgundy-900);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: var(--space-md) 0 0.25rem;
}

.flagship-side h4:first-child {
  margin-top: 0;
}

.flagship-side p {
  font-size: 0.9rem;
  color: var(--color-body);
  line-height: 1.55;
  margin: 0;
}

.flagship-side a {
  color: var(--color-burgundy-900);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Method cards */
.method-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.method-card {
  background: var(--color-white);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-line-dark);
  min-width: 0;
  transition: transform var(--dur) var(--ease);
}

.method-card:hover {
  transform: translateY(-3px);
}

.method-num {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--color-gold-500);
  line-height: 1;
  margin-bottom: var(--space-sm);
  font-weight: 500;
}

.method-card h3 {
  color: var(--color-burgundy-900);
  font-size: 1.1rem;
  margin-bottom: var(--space-sm);
}

.method-card p {
  color: var(--color-body);
  font-size: 0.94rem;
  line-height: 1.6;
}

/* ==========================================================================
   PAGE ACCUEIL � Responsive
   ========================================================================== */

@media (max-width: 900px) {
  .dual-grid {
    grid-template-columns: 1fr;
  }
  .flagship-grid {
    grid-template-columns: 1fr;
    padding: var(--space-lg);
  }
}

@media (max-width: 768px) {
  .hero-trust {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
  }
  .hero-visual-card {
    max-width: 300px;
  }
  .flagship-meta {
    flex-direction: column;
    gap: var(--space-xs);
  }
}


/* Hero - Trust indicators sur fond sombre (correctif contraste) */
.hero .hero-trust-item strong {
  color: var(--color-gold-500);
}

.hero .hero-trust-item span {
  color: rgba(247, 242, 234, 0.7);
}

.hero .hero-trust {
  border-top-color: rgba(247, 242, 234, 0.15);
}

.hero .hero-visual-caption p {
  color: var(--color-body);
}

.hero .hero-sectors {
  color: var(--color-gold-500);
}


/* Portraits ronds avec bordure doree (accueil + a propos) � pas le hero */
.about-visual img {
  border-radius: 50%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  width: 100%;
  max-width: 340px;
  height: auto;
  border: 6px solid var(--color-gold-500);
  box-shadow: 0 20px 45px rgba(42, 10, 30, 0.18), 0 0 0 12px rgba(229, 185, 104, 0.12);
  display: block;
  margin: 0 auto;
}
