/* =========================================================
   FP OFFICE SOLUTION — Feuille de style principale
   Palette : Bleu marine / Blanc / Corail
   ========================================================= */

:root {
  --navy-900: #071F3D;
  --navy-800: #0A3D75;
  --navy-700: #0B4A8F;
  --coral: #FF5757;
  --coral-dark: #E23F3F;
  --coral-light: #F7C5C5;
  --coral-tint: #FFF1F1;
  --white: #FFFFFF;
  --off-white: #F7F8FA;
  --ink: #16233A;
  --grey-600: #57647A;
  --grey-300: #DCE2EA;
  --radius: 14px;
  --shadow-sm: 0 2px 10px rgba(7, 31, 61, 0.06);
  --shadow-md: 0 12px 30px rgba(7, 31, 61, 0.10);
  --container: 1160px;
  --transition: 0.25s ease;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  margin: 0;
  overflow-x: hidden;
  font-family: "Poppins", "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Poppins", "Segoe UI", Arial, sans-serif;
  color: var(--navy-900);
  line-height: 1.25;
  margin: 0 0 .6em;
  font-weight: 600;
}

h1 { font-size: clamp(2.1rem, 4vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; color: var(--grey-600); }

a { color: var(--navy-800); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--coral); }

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

ul { margin: 0; padding: 0; list-style: none; }

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

.section {
  padding: 88px 0;
}

.section--tight { padding: 56px 0; }

.section--alt {
  background: var(--off-white);
}

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--coral-dark);
  font-weight: 700;
  margin-bottom: 14px;
}

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

.section-head p { max-width: 560px; margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .96rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn--coral {
  background: var(--coral);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(255, 87, 87, 0.35);
}
.btn--coral:hover { background: var(--coral-dark); color: var(--white); }

.btn--outline {
  background: transparent;
  border-color: rgba(255,255,255,0.55);
  color: var(--white);
}
.btn--outline:hover { border-color: var(--white); color: var(--white); background: rgba(255,255,255,0.08); }

.btn--navy {
  background: var(--navy-800);
  color: var(--white);
}
.btn--navy:hover { background: var(--navy-900); color: var(--white); }

.btn--ghost-navy {
  background: transparent;
  border-color: var(--navy-800);
  color: var(--navy-800);
}
.btn--ghost-navy:hover { background: var(--navy-800); color: var(--white); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--grey-300);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img { height: 56px; width: 56px; object-fit: contain; }
.brand-text { line-height: 1.15; }
.brand-text strong { display: block; font-size: 1.05rem; color: var(--navy-900); font-weight: 700; letter-spacing: .01em; }
.brand-text span { display: block; font-size: .72rem; color: var(--coral-dark); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }

.main-nav ul { display: flex; align-items: center; gap: 34px; }
.main-nav a {
  color: var(--navy-900);
  font-weight: 500;
  font-size: .95rem;
  position: relative;
  padding: 6px 0;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--coral);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.main-nav a:hover::after,
.main-nav a[aria-current="page"]::after { transform: scaleX(1); }
.main-nav a[aria-current="page"] { color: var(--coral-dark); }

.header-actions { display: flex; align-items: center; gap: 18px; }
.header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--navy-900);
  font-size: .95rem;
}
.header-phone svg { flex-shrink: 0; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--navy-900);
  margin: 5px 0;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: radial-gradient(1100px 500px at 85% -10%, rgba(255,87,87,0.18), transparent 60%), linear-gradient(160deg, var(--navy-900), var(--navy-800));
  color: var(--white);
  overflow: hidden;
}
.hero .container {
  padding-top: 96px;
  padding-bottom: 96px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero-copy .eyebrow { color: var(--coral-light); }
.hero h1 { color: var(--white); }
.hero-copy p.lead {
  color: rgba(255,255,255,0.82);
  font-size: 1.12rem;
  max-width: 520px;
}
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 30px; }

.hero-badges {
  display: flex;
  gap: 26px;
  margin-top: 46px;
  flex-wrap: wrap;
}
.hero-badges div { color: rgba(255,255,255,0.72); font-size: .84rem; }
.hero-badges strong { display: block; color: var(--white); font-size: 1.4rem; font-weight: 700; }

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-visual .ring {
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  border: 2px solid rgba(255,87,87,0.35);
}
.hero-visual .card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow-md);
  max-width: 320px;
  color: var(--ink);
}
.hero-visual .card img { height: 64px; width: 64px; margin-bottom: 16px; }
.hero-visual .card h3 { margin-bottom: 6px; }
.hero-visual .card p { margin-bottom: 0; font-size: .92rem; }

/* ---------- Trust strip ---------- */
.trust-strip {
  background: var(--white);
  border-bottom: 1px solid var(--grey-300);
}
.trust-strip .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-top: 34px;
  padding-bottom: 34px;
  text-align: center;
}
.trust-item { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.trust-item svg { color: var(--coral); }
.trust-item span { font-weight: 600; color: var(--navy-900); font-size: .92rem; }

/* ---------- Cards / grids ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.card {
  background: var(--white);
  border: 1px solid var(--grey-300);
  border-radius: var(--radius);
  padding: 34px 30px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }

.card .icon-wrap {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: var(--coral-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--coral);
}

.card ul { margin-top: 14px; }
.card ul li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
  font-size: .93rem;
  color: var(--grey-600);
}
.card ul li::before {
  content: "";
  position: absolute;
  left: 0; top: .55em;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--coral);
}

/* ---------- About preview / split sections ---------- */
.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.split.reverse { grid-template-columns: 1.1fr 0.9fr; }
.split.reverse .split-visual { order: 2; }

.split-visual {
  background: linear-gradient(160deg, var(--navy-900), var(--navy-800));
  border-radius: 22px;
  padding: 50px 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 340px;
  position: relative;
  overflow: hidden;
}
.split-visual::before {
  content: "";
  position: absolute;
  width: 260px; height: 260px;
  border-radius: 50%;
  border: 2px solid rgba(255,87,87,0.3);
  top: -60px; right: -60px;
}
.split-visual img { max-width: 220px; position: relative; }
.split-visual svg { width: 100%; max-width: 380px; height: auto; position: relative; }

.split-copy .stat-row {
  display: flex;
  gap: 30px;
  margin: 26px 0;
  flex-wrap: wrap;
}
.stat-box strong { display: block; font-size: 1.8rem; color: var(--navy-900); font-weight: 700; }
.stat-box span { font-size: .82rem; color: var(--grey-600); }

/* ---------- Timeline (about page) ---------- */
.timeline { position: relative; margin-top: 20px; padding-left: 32px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 8px; top: 6px; bottom: 6px;
  width: 2px;
  background: var(--grey-300);
}
.timeline-item { position: relative; padding-bottom: 34px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -32px; top: 4px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--coral);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--coral);
}
.timeline-item .date {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  color: var(--coral-dark);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 6px;
}
.timeline-item h3 { margin-bottom: 6px; }
.timeline-item p { margin-bottom: 0; }

/* ---------- Values grid ---------- */
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.value-item { text-align: center; }
.value-item .icon-wrap {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--navy-900);
  color: var(--coral-light);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}

/* ---------- Process steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding-top: 8px; }
.step .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--coral);
  color: var(--white);
  font-weight: 700;
  margin-bottom: 18px;
}

/* ---------- Quote / CTA banner ---------- */
.quote-banner {
  background: var(--coral-tint);
  border-radius: 22px;
  padding: 54px 60px;
  text-align: center;
  position: relative;
}
.quote-banner p {
  font-size: 1.35rem;
  color: var(--navy-900);
  font-weight: 500;
  font-style: italic;
  max-width: 760px;
  margin: 0 auto;
  line-height: 1.5;
}
.quote-banner span.who {
  display: block;
  margin-top: 18px;
  font-size: .9rem;
  color: var(--coral-dark);
  font-weight: 700;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.cta-banner {
  background: linear-gradient(135deg, var(--navy-900), var(--navy-800));
  border-radius: 24px;
  padding: 64px;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.cta-banner::after {
  content: "";
  position: absolute;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: rgba(255,87,87,0.14);
  right: -160px; bottom: -220px;
}
.cta-banner h2 { color: var(--white); }
.cta-banner p { color: rgba(255,255,255,0.78); max-width: 560px; margin: 0 auto 30px; }
.cta-banner .hero-cta { justify-content: center; }

/* ---------- Testimonial / secteurs ---------- */
.tags { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; }
.tag {
  background: var(--off-white);
  border: 1px solid var(--grey-300);
  padding: 9px 18px;
  border-radius: 999px;
  font-size: .88rem;
  font-weight: 500;
  color: var(--navy-900);
}

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 44px;
  align-items: start;
}
.contact-card {
  background: var(--navy-900);
  color: var(--white);
  border-radius: var(--radius);
  padding: 36px 32px;
}
.contact-card h3 { color: var(--white); }
.contact-line {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 22px;
}
.contact-line svg { color: var(--coral-light); flex-shrink: 0; margin-top: 3px; }
.contact-line strong { display: block; color: var(--white); font-size: .95rem; }
.contact-line span, .contact-line a { color: rgba(255,255,255,0.75); font-size: .92rem; }
.contact-line a:hover { color: var(--coral-light); }
.social-row { display: flex; gap: 12px; margin-top: 28px; }
.social-row a {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
}
.social-row a:hover { background: var(--coral); }

.form-card {
  background: var(--white);
  border: 1px solid var(--grey-300);
  border-radius: var(--radius);
  padding: 40px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: .86rem; font-weight: 600; color: var(--navy-900); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: 10px;
  border: 1.5px solid var(--grey-300);
  font-family: inherit;
  font-size: .95rem;
  color: var(--ink);
  background: var(--off-white);
  transition: border-color var(--transition), background var(--transition);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--coral);
  background: var(--white);
}
.field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: .82rem; color: var(--grey-600); margin-top: 4px; }

.map-wrap { border-radius: var(--radius); overflow: hidden; margin-top: 28px; border: 1px solid var(--grey-300); }
.map-wrap iframe { width: 100%; height: 320px; border: 0; display: block; }

/* ---------- FAQ ---------- */
.faq-item {
  border-bottom: 1px solid var(--grey-300);
  padding: 22px 0;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--navy-900);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--coral);
  transition: transform var(--transition);
  flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin-top: 14px; margin-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-900);
  color: rgba(255,255,255,0.75);
  padding: 64px 0 26px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.8fr 1fr;
  gap: 40px;
  padding-bottom: 42px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; }
.footer-brand img { height: 48px; width: 48px; }
.footer-brand strong { color: var(--white); font-size: 1.05rem; }
.footer-col h4 { color: var(--white); font-size: .92rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 18px; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col a { color: rgba(255,255,255,0.72); font-size: .92rem; }
.footer-col a:hover { color: var(--coral-light); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 26px;
  font-size: .82rem;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom a { color: rgba(255,255,255,0.6); }

/* ---------- Page hero (sous-pages) ---------- */
.page-hero {
  background: linear-gradient(160deg, var(--navy-900), var(--navy-800));
  color: var(--white);
  padding: 64px 0 70px;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute;
  width: 360px; height: 360px;
  border-radius: 50%;
  border: 2px solid rgba(255,87,87,0.25);
  right: -120px; top: -140px;
}
.page-hero .eyebrow { color: var(--coral-light); }
.page-hero h1 { color: var(--white); margin-bottom: 14px; }
.page-hero p { color: rgba(255,255,255,0.8); max-width: 640px; }
.breadcrumb { font-size: .85rem; color: rgba(255,255,255,0.6); margin-bottom: 18px; }
.breadcrumb a { color: rgba(255,255,255,0.75); }
.breadcrumb a:hover { color: var(--coral-light); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .split, .split.reverse { grid-template-columns: 1fr; }
  .split.reverse .split-visual { order: 0; }
  .grid-3, .values-grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .trust-strip .container { grid-template-columns: repeat(2, 1fr); }
}

/* Nav switches to the hamburger/off-canvas menu earlier than the content
   grids collapse, so there's no cramped in-between zone where "Qui je suis"
   and the phone number wrap onto extra lines. */
@media (max-width: 1024px) {
  .main-nav { position: fixed; top: 74px; left: 0; right: 0; height: calc(100vh - 74px); height: calc(100dvh - 74px); background: var(--white); padding: 30px 24px; transform: translateX(100%); transition: transform var(--transition); overflow-y: auto; z-index: 400; }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; align-items: flex-start; gap: 22px; }
  .main-nav a { font-size: 1.1rem; white-space: normal; }
  .header-phone { display: none; }
  .nav-toggle { display: block; }
  .brand img { height: 42px; width: 42px; }
  .brand-text strong { font-size: .92rem; }
  .brand-text span { font-size: .62rem; }
  .header-actions { gap: 10px; }
  .header-actions .btn--coral { display: none; }
}

@media (max-width: 760px) {
  .grid-3, .grid-2, .values-grid, .steps { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .quote-banner, .cta-banner { padding: 40px 26px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .section { padding: 60px 0; }
}
