/* ==========================================================================
   FAZ ADVICE — Feuille de style principale
   ========================================================================== */

:root {
  --primary: #0078c8;
  --primary-dark: #00539b;
  --primary-light: #29b6f6;
  --navy: #0a1f3d;
  --ink: #111418;
  --gray-700: #4a5568;
  --gray-500: #6b7684;
  --gray-300: #d7dce3;
  --bg-light: #f6f8fb;
  --white: #ffffff;
  --radius: 14px;
  --shadow-sm: 0 2px 10px rgba(10, 31, 61, 0.06);
  --shadow-md: 0 12px 32px rgba(10, 31, 61, 0.12);
  --container: 1180px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 96px 0; }

h1, h2, h3, h4 {
  font-family: "Poppins", "Inter", sans-serif;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
}

h2 { font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -0.5px; }
h3 { font-size: 21px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--primary);
  display: inline-block;
}

.section-head {
  max-width: 640px;
  margin-bottom: 56px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--gray-700); margin-top: 14px; font-size: 16px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(0, 120, 200, 0.28);
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(0, 120, 200, 0.35); }
.btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--white);
}
.btn-outline:hover { background: rgba(255, 255, 255, 0.12); border-color: var(--white); }
.btn-dark-outline {
  background: transparent;
  border-color: var(--gray-300);
  color: var(--navy);
}
.btn-dark-outline:hover { border-color: var(--primary); color: var(--primary); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 999;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(10, 31, 61, 0.06);
  transition: box-shadow .2s var(--ease);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo img { height: 42px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--navy);
  position: relative;
  padding: 6px 0;
  transition: color .2s var(--ease);
}
.nav-links a:hover { color: var(--primary); }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--primary);
  transition: width .25s var(--ease);
}
.nav-links a:hover::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 18px; }
.nav-actions .btn-primary { padding: 12px 24px; font-size: 14px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .25s var(--ease), opacity .25s var(--ease); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  padding: 180px 0 0;
  background:
    radial-gradient(circle at 85% 10%, rgba(41, 182, 246, 0.35), transparent 45%),
    linear-gradient(135deg, var(--navy) 0%, #0e2b52 55%, var(--primary-dark) 100%);
  color: var(--white);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 75%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
  padding-bottom: 90px;
}
.hero .eyebrow { color: var(--primary-light); justify-content: center; }
.hero .eyebrow::before { background: var(--primary-light); }
.hero h1 {
  color: var(--white);
  font-size: clamp(34px, 5.4vw, 58px);
  letter-spacing: -1px;
}
.hero h1 span { color: var(--primary-light); }
.hero p.lead {
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  max-width: 600px;
  margin: 22px auto 36px;
}
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.hero-stats {
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.06);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(6px);
}
.hero-stats .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 40px 24px;
}
.stat { text-align: center; }
.stat .num {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 3vw, 38px);
  color: var(--white);
}
.stat .num span { color: var(--primary-light); }
.stat .label {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 6px;
}

/* ==========================================================================
   Services / Expertises
   ========================================================================== */
.services { background: var(--white); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.service-card {
  background: var(--bg-light);
  border: 1px solid rgba(10, 31, 61, 0.06);
  border-radius: var(--radius);
  padding: 34px 28px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  background: var(--white);
}
.service-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  color: var(--white);
}
.service-icon svg { width: 26px; height: 26px; }
.service-card h3 { margin-bottom: 10px; }
.service-card p { color: var(--gray-700); font-size: 14.8px; margin-bottom: 16px; }
.service-card .tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--primary-dark);
  background: rgba(0, 120, 200, 0.09);
  padding: 5px 11px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.service-card .more {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.service-card .more svg { width: 14px; height: 14px; transition: transform .2s var(--ease); }
.service-card:hover .more svg { transform: translateX(4px); }

/* ==========================================================================
   Conviction / statement band
   ========================================================================== */
.conviction {
  background: var(--navy);
  color: var(--white);
  text-align: center;
  padding: 88px 0;
  position: relative;
  overflow: hidden;
}
.conviction::after {
  content: "";
  position: absolute;
  width: 520px; height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(41,182,246,0.18), transparent 70%);
  top: -220px; right: -160px;
}
.conviction .eyebrow { justify-content: center; color: var(--primary-light); }
.conviction .eyebrow::before { background: var(--primary-light); }
.conviction h2 { color: var(--white); max-width: 780px; margin: 0 auto; }
.conviction h2 em { font-style: normal; color: var(--primary-light); }
.conviction p { color: rgba(255,255,255,0.75); max-width: 620px; margin: 20px auto 0; font-size: 16px; }

/* ==========================================================================
   Méthode
   ========================================================================== */
.method { background: var(--bg-light); }
.method-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}
.method-step {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 24px;
  border: 1px solid rgba(10,31,61,0.06);
  position: relative;
}
.method-step .num {
  font-family: "Poppins", sans-serif;
  font-size: 40px;
  font-weight: 700;
  color: rgba(0, 120, 200, 0.16);
  margin-bottom: 6px;
}
.method-step h3 { margin-bottom: 8px; font-size: 18px; }
.method-step p { font-size: 14px; color: var(--gray-700); }
.method-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%; right: -24px;
  width: 24px; height: 2px;
  background: var(--gray-300);
  display: none;
}

/* ==========================================================================
   About
   ========================================================================== */
.about { background: var(--white); }
.about .container {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: center;
}
.about-media { position: relative; }
.about-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  width: 100%;
  aspect-ratio: 4/3.2;
  object-fit: cover;
}
.about-media .badge {
  position: absolute;
  bottom: -22px; left: -22px;
  background: var(--white);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.about-media .badge .num { font-family: "Poppins", sans-serif; font-weight: 700; font-size: 26px; color: var(--primary); }
.about-media .badge .txt { font-size: 12.5px; color: var(--gray-700); line-height: 1.3; max-width: 110px; }
.about-body p { color: var(--gray-700); margin-bottom: 16px; font-size: 15.5px; }
.about-list { margin-top: 24px; display: grid; gap: 12px; }
.about-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 14.8px; color: var(--navy); font-weight: 500; }
.about-list li svg { flex: none; width: 20px; height: 20px; color: var(--primary); margin-top: 1px; }

/* ==========================================================================
   Référentiels / Expertise grid
   ========================================================================== */
.referentiels { background: var(--bg-light); }
.ref-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.ref-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 26px 24px;
  border: 1px solid rgba(10,31,61,0.06);
}
.ref-card h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary-dark);
  margin-bottom: 14px;
  font-weight: 700;
}
.ref-card ul { display: grid; gap: 9px; }
.ref-card li { font-size: 14.5px; color: var(--gray-700); padding-left: 16px; position: relative; }
.ref-card li::before {
  content: "";
  position: absolute; left: 0; top: 8px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

/* ==========================================================================
   Clients
   ========================================================================== */
.clients { background: var(--white); text-align: center; }
.clients .section-head { margin-bottom: 44px; }
.clients-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  align-items: center;
}
.client-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border: 1px solid rgba(10, 31, 61, 0.08);
  border-radius: 12px;
  padding: 22px 18px;
  height: 96px;
  transition: box-shadow .25s var(--ease), transform .25s var(--ease), border-color .25s var(--ease);
}
.client-logo:hover { box-shadow: var(--shadow-sm); border-color: rgba(0, 120, 200, 0.25); transform: translateY(-3px); }
.client-logo img { max-height: 42px; max-width: 100%; object-fit: contain; }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact {
  background: linear-gradient(135deg, var(--navy) 0%, #0e2b52 60%, var(--primary-dark) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.contact::before {
  content: "";
  position: absolute;
  width: 460px; height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(41,182,246,0.2), transparent 70%);
  bottom: -220px; left: -140px;
}
.contact .container {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
.contact-info .eyebrow { color: var(--primary-light); }
.contact-info .eyebrow::before { background: var(--primary-light); }
.contact-info h2 { color: var(--white); margin-bottom: 16px; }
.contact-info p { color: rgba(255,255,255,0.78); margin-bottom: 30px; font-size: 15.5px; max-width: 420px; }
.contact-details { display: grid; gap: 18px; }
.contact-details .item { display: flex; gap: 14px; align-items: flex-start; }
.contact-details .icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  flex: none;
}
.contact-details .icon svg { width: 18px; height: 18px; }
.contact-details .txt-label { font-size: 12.5px; color: rgba(255,255,255,0.55); text-transform: uppercase; letter-spacing: 0.5px; }
.contact-details .txt-value { font-size: 15px; font-weight: 600; }

.contact-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-md);
}
.contact-form h3 { color: var(--navy); margin-bottom: 6px; }
.contact-form .sub { color: var(--gray-500); font-size: 14px; margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-group { margin-bottom: 16px; display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 13px; font-weight: 600; color: var(--navy); }
.form-group input,
.form-group select,
.form-group textarea {
  border: 1.5px solid var(--gray-300);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14.5px;
  font-family: inherit;
  color: var(--ink);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
  background: var(--white);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(0,120,200,0.12);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.contact-form .btn-primary { width: 100%; margin-top: 4px; }
.form-note { font-size: 12px; color: var(--gray-500); margin-top: 12px; text-align: center; }
.form-status { font-size: 13.5px; margin-top: 10px; text-align: center; display: none; }
.form-status.ok { color: #1a8a4c; display: block; }
.form-status.err { color: #c0392b; display: block; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: #081627; color: rgba(255,255,255,0.7); padding: 64px 0 24px; }
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand img { height: 38px; margin-bottom: 16px; }
.footer-brand p { font-size: 14px; line-height: 1.7; max-width: 280px; color: rgba(255,255,255,0.55); }
.footer-col h4 { color: var(--white); font-size: 14px; margin-bottom: 18px; letter-spacing: 0.3px; }
.footer-col ul { display: grid; gap: 11px; }
.footer-col a { font-size: 14px; color: rgba(255,255,255,0.6); transition: color .2s var(--ease); }
.footer-col a:hover { color: var(--primary-light); }
.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: rgba(255,255,255,0.45);
}
.footer-bottom a:hover { color: var(--white); }
.socials { display: flex; gap: 10px; }
.socials 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 .2s var(--ease);
}
.socials a:hover { background: var(--primary); }
.socials svg { width: 16px; height: 16px; }

/* ==========================================================================
   Reveal animation
   ========================================================================== */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-reveal].in-view { opacity: 1; transform: translateY(0); }

/* Back to top */
.to-top {
  position: fixed;
  right: 24px; bottom: 24px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0; pointer-events: none;
  transform: translateY(10px);
  transition: opacity .25s var(--ease), transform .25s var(--ease);
  z-index: 900;
  border: none;
  cursor: pointer;
}
.to-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.to-top svg { width: 20px; height: 20px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .method-grid { grid-template-columns: repeat(2, 1fr); }
  .ref-grid { grid-template-columns: repeat(2, 1fr); }
  .clients-strip { grid-template-columns: repeat(3, 1fr); }
  .about .container { grid-template-columns: 1fr; }
  .about-media { max-width: 420px; margin: 0 auto; }
  .contact .container { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  section { padding: 64px 0; }
  .nav-links, .nav-actions .btn-primary { display: none; }
  .nav-toggle { display: flex; }
  .site-header.open .nav-links {
    display: flex;
    position: absolute;
    top: 78px; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px 28px;
    gap: 18px;
    box-shadow: var(--shadow-md);
  }
  .site-header.open .nav-actions .btn-primary { display: inline-flex; margin: 4px 24px 20px; }
  .hero { padding-top: 150px; }
  .hero-stats .container { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: 1fr; }
  .method-grid { grid-template-columns: 1fr; }
  .ref-grid { grid-template-columns: 1fr 1fr; }
  .clients-strip { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .about-media .badge { left: 12px; bottom: -18px; padding: 14px 16px; }
}
