/* ==========================================================================
   5a7Pro - Design System & Modern Chic Styles
   Palette: Obsidian Navy, Warm Champagne Gold, Pure Alabaster
   ========================================================================== */

:root {
  --navy-deep: #0B1325;
  --navy-surface: #121F38;
  --navy-border: rgba(18, 31, 56, 0.08);
  --navy-text: #0F172A;
  --navy-muted: #526077;
  --navy-subtle: #8A98AD;

  --gold: #C5A880;
  --gold-light: #DFC7A5;
  --gold-dark: #9E825A;
  --gold-tint: rgba(197, 168, 128, 0.12);

  --bg-page: #FAFAF9;
  --bg-card: #FFFFFF;
  --bg-subtle: #F4F4F2;

  --border-light: rgba(15, 23, 42, 0.08);
  --border-gold: rgba(197, 168, 128, 0.35);

  --shadow-sm: 0 2px 8px rgba(11, 19, 37, 0.04);
  --shadow-md: 0 12px 30px -4px rgba(11, 19, 37, 0.06), 0 4px 12px -2px rgba(11, 19, 37, 0.03);
  --shadow-lg: 0 24px 48px -12px rgba(11, 19, 37, 0.10);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;

  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Browser Surface Details */
::selection {
  background: var(--gold-light);
  color: var(--navy-deep);
}

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

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  color: var(--navy-text);
  background-color: var(--bg-page);
  line-height: 1.65;
  letter-spacing: -0.01em;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  color: var(--navy-deep);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

p {
  color: var(--navy-muted);
}

/* Header & Navigation */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 249, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  transition: all var(--transition-fast);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
  gap: 32px;
}

.logo {
  text-decoration: none;
  display: flex;
  flex-direction: column;
}

.logo-brand {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  line-height: 1;
}

.logo-mark {
  font-size: 1.68rem;
  font-weight: 700;
  font-family: 'Playfair Display', Georgia, serif;
  letter-spacing: -0.02em;
  color: var(--navy-deep);
  line-height: 1;
}

.logo-accent {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.4rem;
  color: var(--gold-dark);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
}

.logo-tag {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--navy-subtle);
  margin-top: 4px;
}

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

.nav a {
  text-decoration: none;
  color: var(--navy-muted);
  font-weight: 500;
  font-size: 0.92rem;
  transition: color var(--transition-fast);
  position: relative;
}

.nav a:hover {
  color: var(--navy-deep);
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 1.5px;
  background: var(--gold);
  transition: width var(--transition-fast);
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: all var(--transition-smooth);
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-sm {
  padding: 9px 20px;
  font-size: 0.86rem;
}

.btn-primary {
  background: var(--gold);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(197, 168, 128, 0.35);
}

.btn-primary:hover {
  background: var(--gold-dark);
  box-shadow: 0 6px 20px rgba(197, 168, 128, 0.45);
  transform: translateY(-1px);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.45);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--navy-deep);
  color: #FFFFFF;
  padding: 10px 22px;
  font-size: 0.9rem;
}

.btn-secondary:hover {
  background: var(--navy-surface);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.btn-block {
  width: 100%;
  padding: 14px 24px;
  font-size: 1rem;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 86vh;
  display: flex;
  align-items: center;
  background-color: var(--navy-deep);
  background-image: url('images/hero-bg.jpg');
  background-image: url('images/hero-bg.webp');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  color: #FFFFFF;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(11, 19, 37, 0.95) 0%, rgba(11, 19, 37, 0.82) 55%, rgba(11, 19, 37, 0.65) 100%);
  backdrop-filter: blur(1px);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  padding: 96px 0;
}

.hero h1 {
  font-size: clamp(2.3rem, 4.8vw, 3.8rem);
  color: #FFFFFF;
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: rgba(255, 255, 255, 0.85);
  max-width: 620px;
  line-height: 1.7;
  margin-bottom: 40px;
  font-weight: 300;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.hero-ctas .btn {
  padding: 14px 28px;
  font-size: 0.98rem;
}

.hero-pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 32px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.pillar-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.pillar-icon {
  width: 24px;
  height: 24px;
  stroke: var(--gold-light);
  flex-shrink: 0;
}

.pillar-title {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  color: #FFFFFF;
}

.pillar-desc {
  display: block;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.65);
}

/* Sections Shared */
.section {
  padding: 104px 0;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}

.section-header h2 {
  font-size: clamp(2rem, 3.2vw, 2.7rem);
  margin-bottom: 16px;
}

.lead {
  font-size: 1.08rem;
  color: var(--navy-muted);
  line-height: 1.7;
}

/* Concept Cards */
.concept {
  background: var(--bg-page);
}

.concept-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.concept-card {
  background: var(--bg-card);
  padding: 40px 30px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

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

.concept-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: var(--gold-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.concept-icon-wrap svg {
  width: 26px;
  height: 26px;
  stroke: var(--gold-dark);
}

.concept-card h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.concept-card p {
  font-size: 0.92rem;
  line-height: 1.65;
}

/* Formations Section */
.formations {
  background: #FFFFFF;
}

.formations-grid {
  display: grid;
  gap: 36px;
}

.formation-card {
  display: grid;
  grid-template-columns: 320px 1fr;
  background: var(--bg-page);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--transition-smooth), transform var(--transition-smooth);
}

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

.formation-img-wrap {
  position: relative;
  overflow: hidden;
  background: var(--navy-deep);
}

.formation-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.formation-card:hover .formation-img-wrap img {
  transform: scale(1.04);
}

.formation-body {
  padding: 36px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.formation-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 16px;
}

.badge {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-dark);
  background: var(--gold-tint);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
}

.formation-duration {
  font-size: 0.82rem;
  color: var(--navy-subtle);
  font-weight: 500;
}

.formation-card h3 {
  font-size: 1.45rem;
  margin-bottom: 20px;
}

.formation-points {
  margin-bottom: 28px;
}

.points-label,
.pain-title,
.gain-title {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: var(--navy-subtle);
  margin-top: 14px;
  margin-bottom: 6px;
}

.gain-title {
  color: var(--gold-dark);
}

.formation-points ul {
  list-style: none;
  margin-bottom: 12px;
}

.formation-points li {
  position: relative;
  padding-left: 20px;
  font-size: 0.92rem;
  color: var(--navy-muted);
  margin-bottom: 5px;
  line-height: 1.5;
}

.formation-points li::before {
  content: '•';
  position: absolute;
  left: 4px;
  color: var(--navy-subtle);
}

.formation-points ul.gains li {
  color: var(--navy-text);
  font-weight: 500;
}

.formation-points ul.gains li::before {
  content: '✓';
  color: var(--gold-dark);
  font-weight: 700;
  left: 0;
}

.formation-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
  gap: 16px;
}

.funding-hint {
  font-size: 0.85rem;
  color: var(--gold-dark);
  font-weight: 600;
}

/* Funding Section */
.funding-section {
  background: var(--bg-subtle);
}

.funding-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.funding-card {
  background: #FFFFFF;
  padding: 40px 32px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.funding-step {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 16px;
}

.funding-card h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.funding-card p {
  font-size: 0.93rem;
  line-height: 1.65;
}

/* Benefits Grid */
.benefits {
  background: #FFFFFF;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}

.benefit-card {
  padding: 28px;
  border-left: 2px solid var(--gold);
  background: var(--bg-page);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.benefit-card h4 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.benefit-card p {
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Contact Section */
.contact {
  background: var(--navy-deep);
  color: #FFFFFF;
}

.contact h2 {
  color: #FFFFFF;
  font-size: clamp(2rem, 3.2vw, 2.6rem);
  margin-bottom: 16px;
}

.contact .lead {
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 32px;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  align-items: start;
}

.contact-reassurances {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.reassurance-item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.88);
}

.reassurance-item svg {
  width: 20px;
  height: 20px;
  stroke: var(--gold-light);
  flex-shrink: 0;
}

.contact-form-panel {
  background: rgba(255, 255, 255, 0.04);
  padding: 40px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-sm);
  color: #FFFFFF;
  font-family: inherit;
  font-size: 0.92rem;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.form-group select option {
  background: var(--navy-deep);
  color: #FFFFFF;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  background: rgba(255, 255, 255, 0.14);
  border-color: var(--gold);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.form-disclaimer {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
  margin-top: 4px;
}

/* Confirmation d'envoi */
.form-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 44px 28px;
}

.form-success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gold-tint);
  border: 1px solid rgba(197, 168, 128, 0.45);
  color: var(--gold-light);
  margin-bottom: 6px;
}

.form-success-icon svg {
  width: 30px;
  height: 30px;
}

.form-success h3 {
  color: #FFFFFF;
  font-size: 1.45rem;
  margin: 0;
}

.form-success p {
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.65;
  max-width: 400px;
  margin: 0;
}

.form-success-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
}

.form-success-other {
  color: var(--gold-light);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(197, 168, 128, 0.4);
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.form-success-other:hover {
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.6);
}

.contact-form.is-hidden {
  display: none;
}

/* Footer */
.footer {
  background: #070D1A;
  color: rgba(255, 255, 255, 0.7);
  padding-top: 72px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-container {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  padding-bottom: 56px;
}

.footer-brand {
  max-width: 420px;
}

.footer-brand .logo-text {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.7rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.footer-brand .logo-text span {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.45rem;
  color: var(--gold);
  font-weight: 600;
  margin-left: 3px;
}

.footer-tagline {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.65;
}

.footer-links {
  display: flex;
  gap: 56px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-heading {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 6px;
}

.footer-col a {
  text-decoration: none;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.65);
  transition: color var(--transition-fast);
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 24px 0;
}

.footer-bottom-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.45);
}

/* Responsive Media Queries */
@media (max-width: 960px) {
  .formation-card {
    grid-template-columns: 1fr;
  }
  .formation-img-wrap {
    height: 220px;
  }
  .contact-wrapper {
    grid-template-columns: 1fr;
  }
  .header-container {
    flex-wrap: wrap;
  }
  .nav {
    display: none;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 72px 0;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .hero-pillars {
    grid-template-columns: 1fr;
  }
  .footer-container {
    flex-direction: column;
  }
  .footer-links {
    flex-direction: column;
    gap: 32px;
  }
  .footer-bottom-container {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}
