/* ════════════════════════════════════════════════════════════════
   AFP CONSEIL — Feuille de style principale
   Palette : Bleu marine #0f1f3d / Or #C9A84C / Blanc / Gris clair
════════════════════════════════════════════════════════════════ */

/* ─── POLICES AUTO-HÉBERGÉES ────────────────────────────────────────────── */
@font-face {
  font-family: 'Playfair Display';
  src: url('fonts/playfair-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Playfair Display';
  src: url('fonts/playfair-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('fonts/inter-300.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('fonts/inter-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('fonts/inter-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('fonts/inter-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

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

:root {
  --navy:       #0f1f3d;
  --navy-light: #162a52;
  --navy-mid:   #1e3a6e;
  --gold:       #C9A84C;
  --gold-light: #ddc06e;
  --gold-pale:  #f7f0dc;
  --white:      #ffffff;
  --gray-50:    #f8f9fb;
  --gray-100:   #eef0f4;
  --gray-300:   #c8cdd8;
  --gray-500:   #7a8299;
  --gray-700:   #3d4561;
  --text:       #1a1f2e;
  --radius:     12px;
  --radius-sm:  6px;
  --shadow-sm:  0 2px 12px rgba(15,31,61,.08);
  --shadow-md:  0 8px 32px rgba(15,31,61,.14);
  --shadow-lg:  0 20px 60px rgba(15,31,61,.2);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── TYPOGRAPHY ────────────────────────────────────────────────────────── */
h1, h2, h3 {
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1.2;
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; }

/* ─── BUTTONS ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: 'Inter', sans-serif;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201,168,76,.4);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.5);
}
.btn-outline:hover {
  background: rgba(255,255,255,.1);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-full { width: 100%; justify-content: center; }

/* ─── SECTION COMMONS ───────────────────────────────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-tag {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-pale);
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 16px;
}
.section-tag--light {
  background: rgba(201,168,76,.2);
  color: var(--gold-light);
}
.section-title {
  color: var(--navy);
  margin-bottom: 16px;
}
.section-header--light .section-title { color: var(--white); }
.section-sub {
  color: var(--gray-500);
  max-width: 600px;
  margin: 0 auto;
  font-size: .95rem;
}
.section-header--light .section-sub { color: rgba(255,255,255,.65); }

/* ════════════════════════════════════════════════════════════════
   NAVBAR
════════════════════════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0;
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}
.navbar.scrolled {
  background: var(--navy);
  box-shadow: var(--shadow-md);
  padding: 0;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  transition: height var(--transition);
}
.navbar.scrolled .nav-inner {
  height: 68px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
}
.logo-img {
  height: 52px;
  width: auto;
  object-fit: contain;
  display: block;
  border-radius: 6px;
  transition: opacity var(--transition);
}
.logo-img:hover { opacity: .85; }
.logo-img--footer {
  height: 48px;
  border-radius: 6px;
  opacity: .85;
}
/* Conservé au cas où les spans seraient encore présents ailleurs */
.logo-afp { color: var(--gold); }
.logo-conseil { color: var(--white); }

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-links a {
  color: rgba(255,255,255,.82);
  font-size: .9rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  background: rgba(255,255,255,.08);
}
.nav-legal {
  color: var(--gray-300) !important;
  font-size: .82rem !important;
}

/* Burger (mobile) */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.burger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* ════════════════════════════════════════════════════════════════
   HERO
════════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: url("image_fond.jpg") center/cover no-repeat;
  overflow: hidden;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(6,14,30,.88) 0%,
    rgba(15,31,61,.78) 50%,
    rgba(22,42,82,.65) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 100px;
  padding-bottom: 80px;
  max-width: 780px;
}
.hero-tag {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(201,168,76,.4);
  padding: 6px 18px;
  border-radius: 50px;
  margin-bottom: 28px;
}
.hero-title {
  color: var(--white);
  margin-bottom: 24px;
  text-shadow: 0 2px 24px rgba(0,0,0,.3);
}
.hero-title span { color: var(--gold); }
.hero-sub {
  color: rgba(255,255,255,.78);
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 40px;
}
.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 52px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(8px);
  border-radius: 50px;
  padding: 10px 20px;
  font-size: .82rem;
  color: rgba(255,255,255,.75);
  font-weight: 500;
}
.orias-icon { width: 18px; height: 18px; border-radius: 3px; }

/* Scroll indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.hero-scroll-indicator span {
  display: block;
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255,255,255,.4);
  border-radius: 12px;
  position: relative;
}
.hero-scroll-indicator span::after {
  content: '';
  position: absolute;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--gold);
  border-radius: 2px;
  animation: scrollBounce 2s ease-in-out infinite;
}
@keyframes scrollBounce {
  0%, 100% { top: 7px; opacity: 1; }
  50%       { top: 18px; opacity: .4; }
}

/* ════════════════════════════════════════════════════════════════
   TRUST STRIP
════════════════════════════════════════════════════════════════ */
.trust-strip {
  background: var(--navy);
  padding: 40px 0;
}
.trust-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}
.trust-item {
  text-align: center;
  padding: 16px 48px;
  flex: 1;
  min-width: 180px;
}
.trust-item strong {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: var(--gold);
  margin-bottom: 4px;
}
.trust-item p {
  font-size: .85rem;
  color: rgba(255,255,255,.6);
}
.trust-divider {
  width: 1px;
  height: 48px;
  background: rgba(255,255,255,.12);
  flex-shrink: 0;
}

/* ════════════════════════════════════════════════════════════════
   SERVICES
════════════════════════════════════════════════════════════════ */
.services {
  padding: 120px 0;
  background: var(--gray-50);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px 32px 36px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transform: scaleX(0);
  transition: transform var(--transition);
  transform-origin: left;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 60px;
  height: 60px;
  background: var(--gold-pale);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--gold);
  transition: var(--transition);
}
.service-icon svg { width: 30px; height: 30px; }
.service-card:hover .service-icon {
  background: var(--gold);
  color: var(--white);
}

.service-card h3 {
  color: var(--navy);
  margin-bottom: 14px;
}
.service-card p {
  color: var(--gray-500);
  font-size: .92rem;
  flex: 1;
  margin-bottom: 24px;
}
.card-link {
  font-size: .88rem;
  font-weight: 600;
  color: var(--gold);
  transition: var(--transition);
  margin-top: auto;
}
.card-link:hover { color: var(--navy); letter-spacing: .02em; }

/* ════════════════════════════════════════════════════════════════
   COURTIER
════════════════════════════════════════════════════════════════ */
.courtier {
  padding: 120px 0;
  background: var(--white);
}
.courtier-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: center;
}
.courtier-visual {
  display: flex;
  justify-content: center;
}
.courtier-shape {
  width: 360px;
  height: 360px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  border-radius: 40% 60% 60% 40% / 40% 40% 60% 60%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  animation: morphBlob 8s ease-in-out infinite;
}
@keyframes morphBlob {
  0%, 100% { border-radius: 40% 60% 60% 40% / 40% 40% 60% 60%; }
  33%       { border-radius: 60% 40% 40% 60% / 60% 60% 40% 40%; }
  66%       { border-radius: 50% 50% 60% 40% / 50% 40% 60% 50%; }
}
.courtier-icon-big svg {
  width: 160px;
  height: 160px;
}
.courtier-accent-dot {
  position: absolute;
  border-radius: 50%;
  background: var(--gold);
}
.courtier-dot-1 {
  width: 18px; height: 18px;
  top: 20px; right: 32px;
  opacity: .7;
}
.courtier-dot-2 {
  width: 10px; height: 10px;
  bottom: 30px; left: 24px;
  opacity: .5;
}

.courtier-text { padding-right: 0; }
.courtier-text .section-tag { margin-bottom: 12px; }
.courtier-text .section-title { margin-bottom: 20px; }
.courtier-lead {
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: 16px;
}
.courtier-text p {
  color: var(--gray-500);
  margin-bottom: 16px;
  font-size: .95rem;
}
.courtier-points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 24px;
  margin: 32px 0 40px;
}
.courtier-point {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .9rem;
  color: var(--navy);
  font-weight: 500;
}
.point-bullet {
  width: 10px;
  height: 10px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ════════════════════════════════════════════════════════════════
   CONTACT
════════════════════════════════════════════════════════════════ */
.contact {
  padding: 120px 0;
  background: var(--navy);
  position: relative;
  overflow: hidden;
}
.contact::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,168,76,.06) 0%, transparent 70%);
}
.contact::after {
  content: '';
  position: absolute;
  bottom: -150px; left: -100px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,168,76,.04) 0%, transparent 70%);
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  position: relative;
  z-index: 1;
}

.contact-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  transition: var(--transition);
}
.contact-card:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(201,168,76,.4);
  transform: translateY(-4px);
}

.contact-ico {
  width: 56px;
  height: 56px;
  background: rgba(201,168,76,.15);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
}
.contact-ico svg { width: 24px; height: 24px; }

.contact-card strong {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
}
.contact-card p {
  color: rgba(255,255,255,.75);
  font-size: .92rem;
  line-height: 1.6;
}
.contact-card a {
  color: rgba(255,255,255,.75);
  transition: var(--transition);
}
.contact-card a:hover { color: var(--gold); }

/* ════════════════════════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════════════════════════ */
.footer {
  background: #080f1e;
  padding-top: 80px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.footer-brand .logo { margin-bottom: 20px; }
.footer-brand p {
  color: rgba(255,255,255,.45);
  font-size: .85rem;
  line-height: 1.8;
  margin-bottom: 12px;
}
.footer-address {
  font-size: .82rem !important;
  color: rgba(255,255,255,.3) !important;
}

.footer-links h4 {
  font-family: 'Inter', sans-serif;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.footer-links ul { display: flex; flex-direction: column; gap: 12px; }
.footer-links li a {
  color: rgba(255,255,255,.5);
  font-size: .88rem;
  transition: var(--transition);
}
.footer-links li a:hover { color: var(--white); padding-left: 4px; }

.footer-bottom {
  padding: 24px 0;
}
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom p {
  font-size: .8rem;
  color: rgba(255,255,255,.28);
}
.footer-bottom a {
  font-size: .8rem;
  color: rgba(255,255,255,.4);
  transition: var(--transition);
}
.footer-bottom a:hover { color: var(--gold); }

/* ════════════════════════════════════════════════════════════════
   MENTIONS LÉGALES (page séparée)
════════════════════════════════════════════════════════════════ */
.legal-page {
  padding: 140px 0 80px;
  min-height: 100vh;
}
.legal-page .legal-header {
  margin-bottom: 56px;
}
.legal-page .legal-header h1 {
  color: var(--navy);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-top: 16px;
}
.legal-body {
  max-width: 800px;
}
.legal-section {
  margin-bottom: 48px;
}
.legal-section h2 {
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--gold-pale);
  display: flex;
  align-items: center;
  gap: 10px;
}
.legal-section h2::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 20px;
  background: var(--gold);
  border-radius: 2px;
}
.legal-section p {
  color: var(--gray-700);
  font-size: .92rem;
  line-height: 1.8;
  margin-bottom: 10px;
}
.legal-section a { color: var(--navy); text-decoration: underline; }

/* ════════════════════════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════════════════════════ */

/* ── Bouton fermeture menu mobile (caché par défaut) ────────────────────── */
.nav-close {
  display: none;
}

/* ── Tablette large (960px) ─────────────────────────────────────────────── */
@media (max-width: 960px) {
  .section-header { margin-bottom: 48px; }

  .courtier-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .courtier-visual { order: -1; }
  .courtier-shape { width: 280px; height: 280px; }

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

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  .footer-brand { grid-column: 1 / -1; }
}

/* ── Tablette portrait / grand mobile (640px) ──────────────────────────── */
@media (max-width: 640px) {
  /* Sections */
  .services  { padding: 72px 0; }
  .courtier  { padding: 72px 0; }
  .contact   { padding: 72px 0; }
  .footer    { padding-top: 56px; }
  .section-header { margin-bottom: 40px; }

  /* Hero */
  .hero-content { padding-top: 110px; padding-bottom: 60px; }
  .hero-sub { font-size: 1rem; }
  .hero-sub br { display: none; }
  .hero-cta { flex-direction: column; gap: 12px; }
  .btn { width: 100%; justify-content: center; }
  .hero-badge { font-size: .78rem; padding: 8px 14px; }

  /* Trust strip */
  .trust-grid  { flex-direction: column; gap: 0; }
  .trust-item  { padding: 14px 24px; min-width: unset; width: 100%; }
  .trust-divider {
    width: 80%;
    height: 1px;
    background: rgba(255,255,255,.1);
  }

  /* Services */
  .services-grid { grid-template-columns: 1fr; gap: 20px; }
  .service-card  { padding: 32px 24px; }

  /* Courtier */
  .courtier-shape  { width: 220px; height: 220px; }
  .courtier-points { grid-template-columns: 1fr; gap: 12px; }

  /* Contact */
  .contact-cards { grid-template-columns: 1fr; gap: 16px; }
  .contact-card  { padding: 28px 20px; flex-direction: row; text-align: left; }

  /* Footer */
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-brand { grid-column: auto; }
  .footer-bottom .container { flex-direction: column; text-align: center; gap: 8px; }

  /* Logo */
  .logo-img { height: 42px; }

  /* Burger menu */
  .burger { display: flex; }

  .nav-links {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--navy);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    z-index: 999;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    font-size: 1.25rem;
    padding: 14px 40px;
    width: 100%;
    text-align: center;
  }

  /* Bouton ✕ pour fermer le menu */
  .nav-close {
    display: flex;
    position: absolute;
    top: 20px; right: 20px;
    background: none;
    border: none;
    color: rgba(255,255,255,.6);
    font-size: 1.6rem;
    cursor: pointer;
    padding: 8px;
    line-height: 1;
    transition: color var(--transition);
  }
  .nav-close:hover { color: var(--white); }
}

/* ── Petit mobile (400px) ──────────────────────────────────────────────── */
@media (max-width: 400px) {
  .hero-title { font-size: 2rem; }
  .hero-tag   { font-size: .72rem; }
  .container  { padding: 0 16px; }
  .service-card { padding: 28px 18px; }
  .contact-card { flex-direction: column; text-align: center; align-items: center; }
  .courtier-shape { width: 180px; height: 180px; }
  .courtier-icon-big svg { width: 120px; height: 120px; }
}
