/* ================================================================
   style.css — PF24 QSE — Feuille de style principale
   Fichier à placer à la RACINE du dépôt GitHub
   ================================================================ */

/* ---- VARIABLES ---- */
:root {
  --navy:    #0B1B33;
  --navy-l:  #16294A;
  --navy-xl: #1E3A66;
  --white:   #FFFFFF;
  --grey-bg: #F4F6F9;
  --grey-l:  #E8ECF2;
  --grey-t:  #5B6472;
  --grey-m:  #8A95A3;
  --green:   #1E9E63;
  --green-l: #E5F6ED;
  --orange:  #E8821C;
  --orange-l:#FFF0E0;
  --red:     #D63B3B;
  --red-l:   #FDE8E8;
  --r:       14px;
  --r-sm:    9px;
  --shadow:     0 4px 20px rgba(11,27,51,.09);
  --shadow-lg:  0 8px 36px rgba(11,27,51,.14);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--navy);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a  { color: inherit; text-decoration: none; }

/* ---- LAYOUT ---- */
.container    { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.container-sm { max-width: 760px;  margin: 0 auto; padding: 0 20px; }

.section     { padding: 90px 0; }
.section-sm  { padding: 60px 0; }
.section-alt { background: var(--grey-bg); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr;             gap: 24px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr;         gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr);      gap: 20px; }

/* ---- TYPOGRAPHY ---- */
.section-label {
  font-size: 12px; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: var(--green);
  margin-bottom: 14px; display: block;
}
.section-title {
  font-size: clamp(26px, 4vw, 42px); font-weight: 900;
  line-height: 1.15; margin-bottom: 18px;
}
.section-sub {
  font-size: 17px; color: var(--grey-t); line-height: 1.7; max-width: 620px;
}

/* ---- CARD ---- */
.card {
  background: var(--white); border-radius: var(--r);
  border: 1.5px solid var(--grey-l); padding: 28px;
  box-shadow: var(--shadow);
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: 10px; font-size: 15px; font-weight: 700;
  border: none; cursor: pointer; font-family: var(--font);
  transition: transform .1s, box-shadow .15s, opacity .15s;
}
.btn:hover   { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:active  { transform: scale(.98); }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-l); }
.btn-green   { background: var(--green); color: #fff; }
.btn-green:hover { background: #178a55; }
.btn-outline { background: transparent; color: var(--navy); border: 2px solid var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-white   { background: #fff; color: var(--navy); }
.btn-white:hover { background: var(--grey-bg); }
.btn-lg      { padding: 17px 34px; font-size: 16px; border-radius: 11px; }

/* ---- BADGES / TAGS ---- */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700;
}
.badge-green  { background: var(--green-l); color: var(--green); }
.badge-orange { background: var(--orange-l); color: var(--orange); }
.badge-red    { background: var(--red-l); color: var(--red); }
.badge-navy   { background: var(--navy); color: #fff; }

/* ================================================================
   NAVIGATION
   ================================================================ */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.95); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--grey-l); padding: 14px 0;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1100px; margin: 0 auto; padding: 0 20px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 900; font-size: 20px; color: var(--navy);
}
.logo-mark {
  width: 38px; height: 38px; background: var(--navy); border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 13px; font-weight: 900; flex-shrink: 0;
}
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  font-size: 14.5px; font-weight: 600; color: var(--grey-t);
  transition: color .15s;
}
.nav-links a:hover { color: var(--navy); }
.nav-links a.active { color: var(--navy); font-weight: 800; }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-hamburger {
  display: none; background: none; border: none;
  cursor: pointer; padding: 6px;
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--navy); margin: 4px 0; border-radius: 2px;
}
.mobile-menu {
  display: none; background: #fff;
  padding: 16px 20px; border-top: 1px solid var(--grey-l);
}
.mobile-menu a {
  display: block; padding: 12px 0; font-weight: 600; font-size: 15px;
  border-bottom: 1px solid var(--grey-l); color: var(--navy);
}
.mobile-menu a:last-of-type { border-bottom: none; }
.mobile-menu .btn { margin-top: 14px; width: 100%; }

/* ================================================================
   FOOTER
   ================================================================ */
.footer {
  background: var(--navy); color: #fff; padding: 60px 0 32px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 48px; margin-bottom: 48px;
}
.footer-logo {
  font-size: 22px; font-weight: 900; margin-bottom: 14px;
  display: flex; align-items: center; gap: 10px;
}
.footer-logo .logo-mark {
  background: #fff; color: var(--navy);
  width: 36px; height: 36px; font-size: 12px; border-radius: 8px;
}
.footer-tagline {
  font-size: 14px; font-weight: 700; opacity: .9;
  margin-bottom: 10px; color: #6FDFAC;
}
.footer-desc { font-size: 14px; opacity: .65; line-height: 1.7; max-width: 340px; }
.footer-email {
  color: rgba(255,255,255,.7); font-size: 14px;
  margin-top: 14px; display: block;
}
.footer-email:hover { color: #fff; }
.footer-col h4 {
  font-size: 11px; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; opacity: .5; margin-bottom: 16px;
}
.footer-col a {
  display: block; font-size: 14px; opacity: .7;
  margin-bottom: 9px; transition: opacity .15s;
}
.footer-col a:hover { opacity: 1; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: 13px; opacity: .5; }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { font-size: 13px; opacity: .5; transition: opacity .15s; }
.footer-legal a:hover { opacity: 1; }

/* ================================================================
   PAGE HERO (pages secondaires)
   ================================================================ */
.page-hero {
  background: linear-gradient(155deg, var(--navy) 0%, var(--navy-xl) 100%);
  color: #fff; padding: 70px 0 60px;
}
.page-hero .ph-label {
  font-size: 12px; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: #6FDFAC;
  margin-bottom: 14px; display: block;
}
.page-hero h1 {
  font-size: clamp(26px, 4vw, 44px); font-weight: 900;
  line-height: 1.15; margin-bottom: 16px;
}
.page-hero p {
  font-size: 17px; opacity: .82; line-height: 1.75; max-width: 640px;
}
.page-hero .ph-btns {
  display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px;
}
.btn-ghost-white {
  background: rgba(255,255,255,.12); color: #fff;
  padding: 17px 28px; border-radius: 11px;
  font-size: 16px; font-weight: 700;
  border: 1px solid rgba(255,255,255,.2);
  transition: background .15s;
}
.btn-ghost-white:hover { background: rgba(255,255,255,.2); }

/* ================================================================
   CONTENU PAGES LÉGALES
   ================================================================ */
.legal-content {
  padding: 60px 0 90px;
}
.legal-content .container { max-width: 820px; }
.legal-content .last-update {
  font-size: 13px; color: var(--grey-m); margin-bottom: 40px;
  padding-bottom: 20px; border-bottom: 1px solid var(--grey-l);
}
.legal-content h2 {
  font-size: 20px; font-weight: 900; margin: 42px 0 14px;
  padding-bottom: 10px; border-bottom: 2px solid var(--grey-l); color: var(--navy);
}
.legal-content h3 {
  font-size: 16px; font-weight: 800; margin: 22px 0 10px;
}
.legal-content p, .legal-content li {
  font-size: 15px; color: #374151; line-height: 1.8; margin-bottom: 10px;
}
.legal-content ul { margin-left: 20px; margin-bottom: 14px; }
.legal-content a { color: var(--navy); text-decoration: underline; font-weight: 600; }
.legal-content a:hover { color: var(--green); }
.legal-content strong { color: var(--navy); }

.info-box {
  background: var(--grey-bg); border-left: 4px solid var(--navy);
  border-radius: 0 10px 10px 0; padding: 20px 24px;
  margin: 20px 0; font-size: 15px; line-height: 1.85;
}
.info-box.green { border-color: var(--green); }
.info-box.warn  { border-color: var(--orange); background: var(--orange-l); }
.todo-box {
  background: #FFFBEB; border: 1.5px dashed #F59E0B;
  border-radius: 10px; padding: 20px 24px; margin-top: 36px;
  font-size: 14.5px; line-height: 1.8;
}
.todo-box strong { color: #92400E; display: block; margin-bottom: 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; }
.placeholder {
  background: #FEF3C7; border: 1px dashed #D97706;
  border-radius: 6px; padding: 2px 10px; font-weight: 700;
  color: #92400E; display: inline-block; font-size: 14px;
}

/* ================================================================
   FAQ ACCORDION
   ================================================================ */
.faq-list, .faq-sm {
  max-width: 760px; margin: 48px auto 0;
  display: flex; flex-direction: column; gap: 10px;
}
.faq-item {
  border: 1.5px solid var(--grey-l); border-radius: var(--r);
  overflow: hidden; background: var(--white);
}
.faq-q {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 19px 22px; cursor: pointer; font-size: 15px; font-weight: 700;
  transition: background .15s;
}
.faq-q:hover { background: var(--grey-bg); }
.faq-arrow { color: var(--grey-t); transition: transform .25s; flex-shrink: 0; font-size: 18px; }
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-a {
  max-height: 0; overflow: hidden; transition: max-height .3s ease;
  font-size: 14.5px; color: var(--grey-t); line-height: 1.75;
}
.faq-a-inner { padding: 4px 22px 20px; }
.faq-item.open .faq-a { max-height: 350px; }

/* ================================================================
   STICKY BAR MOBILE
   ================================================================ */
.sticky-bar {
  display: none; position: fixed; bottom: 0; left: 0; right: 0;
  background: #fff; border-top: 1px solid var(--grey-l);
  padding: 12px 16px; z-index: 99;
  box-shadow: 0 -4px 20px rgba(11,27,51,.1); gap: 10px;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4, .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .nav-links, .nav-cta { display: none; }
  .nav { padding: 0; }
  .nav-inner { min-height: 74px; max-height: 80px; padding: 8px 24px; }
  .nav-hamburger { display: flex; flex-direction: column; justify-content: center; width: 32px; height: 32px; padding: 0; }
  .sticky-bar { display: flex; }
  body { padding-bottom: 68px; }
}
@media (max-width: 560px) {
  .page-hero { padding: 50px 0 44px; }
  .page-hero h1 { font-size: 26px; }
}
