/* ============================================================
   Formation SECUFER Paris - design system rassurant et pro
   Palette : navy + safety red. Sober, médical, autoritaire.
   ============================================================ */

:root {
  --c-bg: #ffffff;
  --c-bg-soft: #f5f7fb;
  --c-bg-deep: #0b2545;
  --c-navy: #0b2545;
  --c-navy-light: #13315c;
  --c-text: #1d2434;
  --c-text-light: #4a5568;
  --c-muted: #6b7588;
  --c-line: #e5eaf2;
  --c-red: #c8102e;
  --c-red-dark: #9b0c23;
  --c-amber: #f4a261;
  --c-green: #2a9d8f;
  --c-success: #16a34a;
  --shadow-sm: 0 1px 2px rgba(11, 37, 69, 0.05), 0 1px 3px rgba(11, 37, 69, 0.08);
  --shadow-md: 0 4px 12px rgba(11, 37, 69, 0.08), 0 2px 4px rgba(11, 37, 69, 0.06);
  --shadow-lg: 0 12px 32px rgba(11, 37, 69, 0.10), 0 4px 8px rgba(11, 37, 69, 0.06);
  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 22px;
  --gutter: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
  color: var(--c-text);
  background: var(--c-bg);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--c-navy); text-decoration: none; }
a:hover { color: var(--c-red); }

h1, h2, h3, h4 {
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
  color: var(--c-navy);
  line-height: 1.25;
  margin: 0 0 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
h1 { font-size: 2.4rem; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }

p { margin: 0 0 14px; }
ul, ol { margin: 0 0 16px; padding-left: 22px; }
li { margin-bottom: 6px; }
strong { color: var(--c-navy); }

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

/* ===== Top bar ===== */
.topbar {
  background: var(--c-navy);
  color: #cfd8e3;
  font-size: 0.88rem;
  padding: 7px 0;
}
.topbar .container {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  flex-wrap: wrap;
}
.topbar a { color: #fff; font-weight: 600; }
.topbar a:hover { color: var(--c-amber); }
.topbar-info { display: flex; gap: 18px; flex-wrap: wrap; }

/* ===== Header / Nav ===== */
.site-header {
  background: var(--c-bg);
  border-bottom: 1px solid var(--c-line);
  position: sticky; top: 0; z-index: 100;
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0;
  gap: 24px;
}
.brand {
  display: inline-flex; flex-direction: column; line-height: 1.1;
}
.brand-main {
  font-weight: 900; color: var(--c-navy);
  font-size: 1.25rem; letter-spacing: -0.01em;
}
.brand-sub {
  font-size: 0.78rem; color: var(--c-muted); font-weight: 600;
  margin-top: 3px; letter-spacing: 0.02em;
}
.nav {
  display: flex; align-items: center; gap: 4px;
}
.nav a {
  padding: 8px 13px;
  color: var(--c-text);
  font-weight: 600;
  font-size: 0.94rem;
  border-radius: var(--radius-sm);
  transition: background 0.15s, color 0.15s;
}
.nav a:hover { background: var(--c-bg-soft); color: var(--c-navy); }
.nav a.active { color: var(--c-red); }
.nav-cta {
  background: var(--c-red);
  color: #fff !important;
  padding: 10px 18px !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 12px rgba(200, 16, 46, 0.25);
  transition: all 0.15s;
}
.nav-cta:hover {
  background: var(--c-red-dark) !important;
  color: #fff !important;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none; background: none; border: 1px solid var(--c-line);
  padding: 8px 12px; border-radius: var(--radius-sm); cursor: pointer;
  font-size: 1.1rem;
}

/* ===== Hero ===== */
.hero {
  background: linear-gradient(180deg, #f7f9fc 0%, #eef2f8 100%);
  padding: 64px 0 72px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; top: -120px; right: -160px;
  width: 480px; height: 480px;
  background: radial-gradient(closest-side, rgba(11,37,69,0.06), transparent);
  border-radius: 50%;
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
}
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
}
.hero h1 { font-size: 2.6rem; margin-bottom: 18px; }
@media (max-width: 760px) {
  h1 { font-size: 1.85rem; }
  .hero h1 { font-size: 1.85rem; }
  h2 { font-size: 1.45rem; }
}
.hero-pre {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--c-line);
  color: var(--c-navy); font-weight: 700;
  padding: 6px 14px; border-radius: 99px; font-size: 0.84rem;
  margin-bottom: 16px;
}
.hero-pre::before {
  content: ""; width: 8px; height: 8px;
  border-radius: 50%; background: var(--c-success);
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.18);
}
.hero p.lead {
  font-size: 1.13rem; color: var(--c-text-light);
  max-width: 56ch;
}
.hero-cta {
  display: flex; gap: 14px; flex-wrap: wrap;
  margin-top: 26px;
}
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  font-weight: 700; font-size: 1rem;
  text-decoration: none;
  border: none; cursor: pointer;
  transition: all 0.15s;
}
.btn-primary {
  background: var(--c-red); color: #fff;
  box-shadow: 0 6px 20px rgba(200, 16, 46, 0.28);
}
.btn-primary:hover {
  background: var(--c-red-dark); color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(200, 16, 46, 0.35);
}
.btn-ghost {
  background: #fff; color: var(--c-navy);
  border: 1px solid var(--c-line);
}
.btn-ghost:hover {
  border-color: var(--c-navy); color: var(--c-navy);
  box-shadow: var(--shadow-md);
}
.hero-trust {
  display: flex; flex-wrap: wrap; gap: 22px; margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid var(--c-line);
}
.trust-pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.92rem; color: var(--c-text);
  font-weight: 600;
}
.trust-pill svg { width: 18px; height: 18px; color: var(--c-success); }

.hero-image {
  display: flex; justify-content: center;
}
.hero-image img {
  width: 100%; max-width: 520px; height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* ===== Sections ===== */
section { padding: 64px 0; }
section.alt { background: var(--c-bg-soft); }
section.dark {
  background: var(--c-navy); color: #d1dbe6;
}
section.dark h1, section.dark h2, section.dark h3 { color: #fff; }
section.dark .eyebrow { color: var(--c-amber); }

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 44px;
}
.section-head.left { text-align: left; margin-left: 0; }
.eyebrow {
  display: inline-block;
  color: var(--c-red);
  font-weight: 800; font-size: 0.85rem;
  text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 10px;
}

/* ===== Grids and Cards ===== */
.grid {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.card {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(11, 37, 69, 0.18);
}
.card-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(200, 16, 46, 0.08);
  color: var(--c-red);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.card-icon svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 10px; font-size: 1.15rem; }
.card p { margin: 0; color: var(--c-text-light); font-size: 0.96rem; }

.card-feature {
  padding: 30px 28px;
}
.card-feature h3 { font-size: 1.3rem; }

/* ===== Stat row ===== */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 18px;
  margin: 32px 0;
}
.stat {
  text-align: center;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 24px 16px;
}
.stat-value {
  font-size: 2.1rem; font-weight: 900; color: var(--c-navy);
  line-height: 1; margin-bottom: 6px;
  letter-spacing: -0.02em;
}
.stat-label {
  font-size: 0.9rem; color: var(--c-muted);
  font-weight: 600;
}

/* ===== Programme blocks (formation pages) ===== */
.programme {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin-bottom: 22px;
}
.programme .step-num {
  display: inline-block;
  background: var(--c-navy); color: #fff;
  font-weight: 800; font-size: 0.85rem;
  padding: 4px 12px; border-radius: 99px;
  margin-bottom: 10px;
}
.programme h3 {
  margin-bottom: 12px; font-size: 1.2rem;
}
.programme ul { margin-bottom: 0; }
.programme ul li { margin-bottom: 8px; }

/* ===== Tables ===== */
.tbl {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 0.97rem;
}
.tbl thead { background: var(--c-bg-soft); }
.tbl th, .tbl td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--c-line);
}
.tbl th { color: var(--c-navy); font-weight: 700; }
.tbl tr:last-child td { border-bottom: none; }
.tbl tbody tr:hover { background: rgba(11, 37, 69, 0.03); }

/* ===== Testimonials ===== */
.testimonials {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.testimonial {
  background: #fff;
  border-left: 4px solid var(--c-red);
  border-radius: var(--radius);
  padding: 22px 26px;
  box-shadow: var(--shadow-sm);
}
.testimonial p.quote {
  font-style: italic;
  color: var(--c-text);
  margin-bottom: 14px;
}
.testimonial .meta {
  display: flex; align-items: center; gap: 12px;
  border-top: 1px solid var(--c-line);
  padding-top: 12px;
}
.testimonial .avatar {
  width: 38px; height: 38px;
  background: var(--c-navy);
  color: #fff;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.95rem;
}
.testimonial .who {
  font-size: 0.88rem;
}
.testimonial .who strong { display: block; color: var(--c-navy); }
.testimonial .who span { color: var(--c-muted); }
.stars { color: var(--c-amber); font-size: 0.95rem; letter-spacing: 1px; }

/* ===== FAQ ===== */
.faq details {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 0;
  margin-bottom: 12px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.faq details[open] {
  border-color: var(--c-navy);
  box-shadow: var(--shadow-md);
}
.faq summary {
  padding: 18px 22px;
  cursor: pointer;
  font-weight: 700; color: var(--c-navy);
  font-size: 1.02rem;
  list-style: none;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute; right: 22px; top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem; color: var(--c-red);
  transition: transform 0.2s;
}
.faq details[open] summary::after { content: "−"; }
.faq .answer { padding: 0 22px 22px; color: var(--c-text-light); }
.faq .answer p:last-child { margin-bottom: 0; }

/* ===== CTA banner ===== */
.cta-banner {
  background: linear-gradient(120deg, var(--c-navy) 0%, var(--c-navy-light) 100%);
  color: #fff;
  padding: 56px 0;
  text-align: center;
}
.cta-banner h2 { color: #fff; margin-bottom: 12px; }
.cta-banner p { color: #c8d3e0; max-width: 56ch; margin: 0 auto 24px; }
.cta-banner .btn-primary { box-shadow: 0 10px 28px rgba(200, 16, 46, 0.45); }

/* ===== Profil formateur ===== */
.profile {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 28px;
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 22px;
  align-items: start;
}
@media (max-width: 600px) {
  .profile { grid-template-columns: 1fr; }
}
.profile-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-navy), var(--c-navy-light));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; font-weight: 900;
}
.profile h3 { margin-bottom: 4px; }
.profile .title {
  color: var(--c-red); font-weight: 700; font-size: 0.95rem;
  margin-bottom: 14px;
}
.profile .creds {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-top: 12px;
}
.profile .creds span {
  background: var(--c-bg-soft); padding: 4px 10px;
  border-radius: 99px; font-size: 0.82rem;
  color: var(--c-navy); font-weight: 600;
}

/* ===== Contact form ===== */
.form-wrap {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-md);
}
.form-row {
  display: grid; gap: 16px;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 16px;
}
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form-group { display: flex; flex-direction: column; }
.form-group label {
  font-weight: 600; color: var(--c-navy);
  font-size: 0.92rem; margin-bottom: 6px;
}
.form-group input, .form-group select, .form-group textarea {
  padding: 11px 14px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
  font-size: 0.97rem;
  font-family: inherit;
  background: #fff;
  color: var(--c-text);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--c-navy);
  box-shadow: 0 0 0 3px rgba(11, 37, 69, 0.10);
}
.form-group textarea { min-height: 130px; resize: vertical; }

/* ===== Listes check ===== */
ul.check {
  list-style: none; padding-left: 0;
}
ul.check li {
  position: relative; padding-left: 30px;
  margin-bottom: 10px;
}
ul.check li::before {
  content: "✓";
  position: absolute; left: 0; top: -1px;
  width: 22px; height: 22px;
  background: var(--c-success); color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; font-weight: 800;
}

ul.cross {
  list-style: none; padding-left: 0;
}
ul.cross li {
  position: relative; padding-left: 30px;
  margin-bottom: 10px;
  color: var(--c-text-light);
}
ul.cross li::before {
  content: "×";
  position: absolute; left: 0; top: -2px;
  width: 22px; height: 22px;
  background: #fee2e2; color: var(--c-red);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; font-weight: 800;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--c-navy);
  color: #c8d3e0;
  padding: 56px 0 24px;
  font-size: 0.95rem;
}
.site-footer a { color: #d8e2ec; }
.site-footer a:hover { color: var(--c-amber); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 36px;
  margin-bottom: 32px;
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.site-footer h4 {
  color: #fff; font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-brand .brand-main { color: #fff; font-size: 1.3rem; }
.footer-brand .brand-sub { color: #97a5b5; }
.footer-brand p { font-size: 0.92rem; line-height: 1.6; margin-top: 14px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  display: flex; justify-content: space-between; flex-wrap: wrap;
  gap: 12px;
  color: #97a5b5; font-size: 0.85rem;
}

/* ===== Sticky CTA mobile ===== */
.mobile-cta {
  display: none;
  position: fixed; bottom: 16px; left: 16px; right: 16px; z-index: 90;
  background: var(--c-red); color: #fff;
  padding: 14px 18px;
  border-radius: var(--radius);
  text-align: center;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(200, 16, 46, 0.45);
}

/* ===== Responsive nav ===== */
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: #fff;
    border-bottom: 1px solid var(--c-line);
    flex-direction: column; align-items: stretch;
    padding: 12px;
    display: none;
    box-shadow: var(--shadow-md);
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; }
  .mobile-cta { display: block; }
}

/* ===== Utilities ===== */
.center { text-align: center; }
.spacer { height: 32px; }
.note {
  background: #fff7ed;
  border-left: 4px solid var(--c-amber);
  padding: 14px 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 18px 0;
  color: var(--c-text);
}
.note strong { color: var(--c-navy); }

/* Breadcrumbs */
.crumbs {
  font-size: 0.86rem; color: var(--c-muted);
  padding: 14px 0;
  background: var(--c-bg-soft);
  border-bottom: 1px solid var(--c-line);
}
.crumbs a { color: var(--c-muted); }
.crumbs a:hover { color: var(--c-navy); }
.crumbs strong { color: var(--c-navy); font-weight: 600; }
