/* =========================================
   Accès Subventions — Style Principal
   ========================================= */

:root {
  --navy:       #0B1F3A;
  --gold:       #C09B4A;
  --gold-light: #D4B06A;
  --white:      #FFFFFF;
  --off-white:  #F7F5F1;
  --gray-light: #E8E4DE;
  --gray-mid:   #8A8078;
  --text:       #1C1C1C;
  --card-bg:    #FFFFFF;
  --shadow:     0 4px 24px rgba(11,31,58,0.10);
  --radius:     6px;
  --font-main:  'Cormorant Garamond', Georgia, serif;
  --font-body:  'Inter', 'Helvetica Neue', Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--off-white);
  line-height: 1.65;
}

/* ── GOOGLE FONTS (chargées via HTML) ── */

/* =========================================
   NAVIGATION
   ========================================= */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 60px;
  height: 70px;
  border-bottom: 2px solid var(--gold);
}

.nav-logo {
  font-family: var(--font-main);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.04em;
}

.nav-logo span { color: var(--gold); }

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gray-light);
  text-decoration: none;
  transition: color 0.2s;
}

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

/* ── Hamburger ── */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-burger span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
  transform-origin: center;
}

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

/* ── Menu mobile ── */
.mobile-menu {
  display: none;
  position: fixed;
  top: 70px; left: 0; right: 0;
  z-index: 99;
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 28px 28px 36px;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.mobile-menu.is-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-menu ul a {
  display: block;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-light);
  text-decoration: none;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: color 0.2s;
}

.mobile-menu ul a:hover { color: var(--gold); }

/* =========================================
   HERO
   ========================================= */
.hero {
  min-height: 100vh;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 40px 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 30%, rgba(192,155,74,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 6px 18px;
  border-radius: 2px;
  margin-bottom: 28px;
}

.hero h1 {
  font-family: var(--font-main);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 600;
  color: var(--white);
  line-height: 1.12;
  letter-spacing: 0.01em;
  max-width: 820px;
  margin: 0 auto 24px;
}

.hero h1 em {
  font-style: normal;
  color: var(--gold);
}

.hero-sub {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: var(--gray-light);
  max-width: 600px;
  margin: 0 auto 48px;
  font-weight: 300;
  line-height: 1.8;
}

.btn-primary {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 16px 40px;
  border-radius: var(--radius);
  transition: background 0.2s, transform 0.15s;
}

.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
}

.btn-secondary {
  display: inline-block;
  border: 1.5px solid rgba(255,255,255,0.35);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 15px 36px;
  border-radius: var(--radius);
  margin-left: 16px;
  transition: border-color 0.2s, color 0.2s;
}

.btn-secondary:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin-top: 80px;
  padding-top: 60px;
  border-top: 1px solid rgba(255,255,255,0.10);
}

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

.stat-number {
  font-family: var(--font-main);
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--gold);
  display: block;
}

.stat-label {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-mid);
  margin-top: 4px;
}

/* =========================================
   SECTIONS GÉNÉRALES
   ========================================= */
section { padding: 100px 40px; }

.section-inner { max-width: 1180px; margin: 0 auto; }

.section-header { text-align: center; margin-bottom: 64px; }

.section-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--font-main);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 18px;
}

.section-desc {
  font-size: 1rem;
  color: var(--gray-mid);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.8;
}

.divider {
  width: 48px;
  height: 3px;
  background: var(--gold);
  margin: 20px auto 0;
  border-radius: 2px;
}

/* =========================================
   SECTION SPECIALITES
   ========================================= */
#specialites { background: var(--off-white); }

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.pillar-card {
  background: var(--card-bg);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius);
  padding: 40px 36px;
  position: relative;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  overflow: hidden;
}

.pillar-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.pillar-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(192,155,74,0.30);
}

.pillar-card:hover::after { transform: scaleX(1); }

/* Carte centrale (5e pilier) */
.pillars-grid .pillar-card:nth-child(5) {
  grid-column: 2 / 3;
}

.pillar-number {
  font-family: var(--font-main);
  font-size: 3.2rem;
  font-weight: 600;
  color: var(--gray-light);
  line-height: 1;
  margin-bottom: 20px;
  display: block;
}

.pillar-icon {
  width: 44px;
  height: 44px;
  background: rgba(192,155,74,0.10);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.3rem;
}

.pillar-name {
  font-family: var(--font-main);
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
}

.pillar-program {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.pillar-desc {
  font-size: 0.9rem;
  color: var(--gray-mid);
  line-height: 1.75;
}

.pillar-highlight {
  display: inline-block;
  margin-top: 18px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--navy);
  background: rgba(192,155,74,0.12);
  padding: 5px 14px;
  border-radius: 3px;
  letter-spacing: 0.06em;
}

/* =========================================
   SECTION CONSTRUCTION
   ========================================= */
#construction { background: var(--white); }

.construction-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 64px;
  align-items: start;
}

.construction-content .section-title {
  text-align: left;
  margin-bottom: 20px;
}

.construction-content .section-tag {
  display: block;
  text-align: left;
  margin-bottom: 10px;
}

.construction-intro {
  font-size: 1rem;
  color: var(--gray-mid);
  line-height: 1.85;
  margin-bottom: 44px;
  max-width: 560px;
}

.construction-pillars {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.construction-item {
  display: flex;
  gap: 20px;
  padding: 28px;
  border: 1px solid var(--gray-light);
  border-radius: var(--radius);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.construction-item:hover {
  border-color: rgba(192,155,74,0.35);
  box-shadow: var(--shadow);
}

.ci-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: rgba(192,155,74,0.10);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.ci-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}

.ci-title {
  font-family: var(--font-main);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 10px;
}

.ci-desc {
  font-size: 0.88rem;
  color: var(--gray-mid);
  line-height: 1.8;
}

/* Aside / Badge */
.construction-aside { position: sticky; top: 90px; }

.construction-badge {
  background: var(--navy);
  border-radius: 8px;
  padding: 44px 36px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.construction-badge::before {
  content: '';
  position: absolute;
  bottom: -60px; left: -60px;
  width: 220px; height: 220px;
  border-radius: 50%;
  border: 50px solid rgba(192,155,74,0.07);
  pointer-events: none;
}

.badge-icon {
  font-size: 2.4rem;
  margin-bottom: 16px;
}

.badge-title {
  font-family: var(--font-main);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 14px;
  line-height: 1.25;
}

.badge-desc {
  font-size: 0.85rem;
  color: var(--gray-mid);
  line-height: 1.8;
  margin-bottom: 28px;
}

.badge-stats {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
}

.badge-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: rgba(255,255,255,0.04);
  border-radius: 4px;
}

.badge-num {
  font-family: var(--font-main);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gold);
}

.badge-lbl {
  font-size: 0.75rem;
  color: var(--gray-mid);
  letter-spacing: 0.08em;
}

/* =========================================
   SECTION APPROCHE
   ========================================= */
#approche { background: var(--navy); }

#approche .section-title { color: var(--white); }
#approche .section-desc  { color: var(--gray-mid); }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius);
  overflow: hidden;
}

.step-item {
  padding: 44px 36px;
  background: rgba(255,255,255,0.03);
  border-right: 1px solid rgba(255,255,255,0.07);
  transition: background 0.2s;
}

.step-item:last-child { border-right: none; }
.step-item:hover { background: rgba(192,155,74,0.07); }

.step-num {
  font-family: var(--font-main);
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--gold);
  opacity: 0.5;
  display: block;
  margin-bottom: 16px;
}

.step-title {
  font-family: var(--font-main);
  font-size: 1.2rem;
  color: var(--white);
  font-weight: 600;
  margin-bottom: 12px;
}

.step-text {
  font-size: 0.85rem;
  color: var(--gray-mid);
  line-height: 1.75;
}

/* =========================================
   SECTION CONTACT (CTA)
   ========================================= */
#contact { background: var(--white); }

.cta-box {
  background: var(--navy);
  border-radius: 8px;
  padding: 80px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 320px; height: 320px;
  border-radius: 50%;
  border: 60px solid rgba(192,155,74,0.08);
  pointer-events: none;
}

.cta-box .section-title { color: var(--white); margin-bottom: 16px; }
.cta-box .section-desc  { color: var(--gray-mid); margin-bottom: 40px; }

/* =========================================
   FORMULAIRE DE CONTACT
   ========================================= */
.form-wrapper {
  margin-top: 60px;
  background: var(--off-white);
  border: 1px solid var(--gray-light);
  border-radius: 8px;
  padding: 60px;
}

.form-header {
  text-align: center;
  margin-bottom: 48px;
}

.form-title {
  font-family: var(--font-main);
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 10px;
}

.form-subtitle {
  font-size: 0.9rem;
  color: var(--gray-mid);
}

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

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

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

.form-group label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
}

.required { color: var(--gold); }

.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  border: 1.5px solid var(--gray-light);
  border-radius: var(--radius);
  padding: 14px 18px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
  appearance: none;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238A8078' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  padding-right: 44px;
  cursor: pointer;
}

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(192,155,74,0.12);
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: #bbb5aa; }

.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 12px;
  flex-wrap: wrap;
}

.form-note {
  font-size: 0.8rem;
  color: var(--gray-mid);
  letter-spacing: 0.02em;
}

.btn-submit {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: none;
  padding: 17px 44px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
}

.btn-submit:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Message de succès */
.form-success {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 40px;
  gap: 16px;
}

.form-success-icon {
  width: 64px;
  height: 64px;
  background: rgba(192,155,74,0.12);
  border: 2px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--gold);
}

.form-success h4 {
  font-family: var(--font-main);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--navy);
}

.form-success p {
  font-size: 0.95rem;
  color: var(--gray-mid);
}

/* =========================================
   FOOTER
   ========================================= */
footer {
  background: #07121F;
  color: var(--gray-mid);
  padding: 40px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-logo {
  font-family: var(--font-main);
  font-size: 1.2rem;
  color: var(--white);
}

.footer-logo span { color: var(--gold); }

.footer-info {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-align: center;
}

.footer-copy {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 1024px) {
  nav { padding: 0 32px; }

  .construction-layout {
    grid-template-columns: 1fr;
  }

  .construction-aside { position: static; }

  .form-wrapper { padding: 44px 36px; }

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

  .pillars-grid .pillar-card:nth-child(5) {
    grid-column: 1 / -1;
    max-width: 440px;
    margin: 0 auto;
    width: 100%;
  }

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

  .step-item:nth-child(2) { border-right: none; }
  .step-item:nth-child(3) { border-top: 1px solid rgba(255,255,255,0.07); }
  .step-item:nth-child(4) {
    border-right: none;
    border-top: 1px solid rgba(255,255,255,0.07);
  }
}

@media (max-width: 768px) {
  nav { padding: 0 24px; }
  .nav-links { display: none; }
  .nav-cta   { display: none; }
  .nav-burger { display: flex; }
  .mobile-menu { display: block; }

  .hero { padding: 120px 24px 60px; }
  .hero-stats { gap: 32px; flex-wrap: wrap; }

  section { padding: 70px 24px; }

  .pillars-grid { grid-template-columns: 1fr; }
  .pillars-grid .pillar-card:nth-child(5) { grid-column: 1; max-width: 100%; }

  .steps-grid { grid-template-columns: 1fr; }
  .step-item  { border-right: none; border-top: 1px solid rgba(255,255,255,0.07); }
  .step-item:first-child { border-top: none; }

  .cta-box { padding: 50px 28px; }

  .form-wrapper { padding: 32px 20px; }
  .form-row { grid-template-columns: 1fr; }
  .form-footer { flex-direction: column; align-items: flex-start; }
  .btn-submit { width: 100%; text-align: center; }

  footer {
    flex-direction: column;
    gap: 12px;
    text-align: center;
    padding: 32px 24px;
  }
}
