:root {
  --blue: #0d67b5;
  --blue-dark: #0b3f73;
  --blue-soft: #eef6ff;
  --orange: #f48b18;
  --text: #14324d;
  --muted: #63778c;
  --card: #ffffff;
  --line: #e7eef6;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: #f4f8fc;
  color: var(--text);
  font-family: Inter, Segoe UI, Arial, sans-serif;
}

.page {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  background: #fff;
  box-shadow: 0 24px 60px rgba(11, 63, 115, .12);
}

/* ── Topbar ── */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 48px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.logo img { height: 64px; width: auto; display: block; }

.logo { text-decoration: none; display: inline-flex; align-items: center; }

.nav {
  display: flex;
  gap: 32px;
  font-size: 15px;
  color: #35506d;
  align-items: center;
}

.nav a { color: inherit; text-decoration: none; }

.nav .btn {
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  font-weight: 700;
}

/* ── Nav dropdown ── */
.nav-toggle { display: none; }

.nav-dropdown { position: relative; }

/* Invisible hover bridge to prevent accidental menu close when moving the mouse */
.nav-dropdown::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 14px;
}

.nav-dropdown-toggle {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  color: inherit;
  text-decoration: none;
  font: inherit;
  background: transparent;
  border: none;
  padding: 0;
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(11,63,115,.12);
  min-width: 280px;
  padding: 8px;
  z-index: 100;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu { display: flex; flex-direction: column; }

.nav-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s;
}

.nav-dropdown-menu a:hover { background: var(--blue-soft); color: var(--blue); }

.nav-dropdown-menu a i { color: var(--blue); width: 16px; text-align: center; }

/* ── Hero ── */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 30px;
  padding: 58px 48px 54px;
  background: linear-gradient(180deg, #ffffff 0%, #f6fbff 100%);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: auto auto -100px -40px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle at center, rgba(13, 103, 181, .14), rgba(13, 103, 181, 0));
  border-radius: 50%;
}

.eyebrow {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  background: #edf6ff;
  color: var(--blue);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .2px;
}

h1 {
  font-size: 56px;
  line-height: 1.02;
  margin: 18px 0 18px;
  color: #0f2f4d;
  max-width: 720px;
}

.sub {
  font-size: 20px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 660px;
  margin: 0 0 30px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 36px;
}

.primary {
  background: var(--orange);
  color: #fff;
  padding: 16px 24px;
  border-radius: 16px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 16px 30px rgba(244, 139, 24, .28);
}

.secondary {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--blue-dark);
  padding: 16px 22px;
  border-radius: 16px;
  font-weight: 700;
  text-decoration: none;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 720px;
}

.mini-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 16px 18px;
  box-shadow: 0 10px 24px rgba(16, 55, 92, .05);
}

.mini-card strong {
  display: block;
  font-size: 28px;
  color: var(--blue-dark);
  margin-bottom: 5px;
}

.mini-card span { font-size: 14px; color: var(--muted); }

/* ── Visual / Photo ── */
.visual { position: relative; min-height: 560px; }

.shape {
  position: absolute;
  inset: 10px 0 0 40px;
  border-radius: 34px;
  background: linear-gradient(145deg, #eef7ff, #d9ecff);
  transform: rotate(-4deg);
}

.photo {
  position: absolute;
  right: 0;
  top: 0;
  width: 95%;
  height: 100%;
  border-radius: 34px;
  overflow: hidden;
  box-shadow: 0 22px 44px rgba(8, 45, 84, .22);
}

.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.03);
}

.photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(13, 103, 181, .20), rgba(13, 103, 181, .04) 45%, rgba(255, 255, 255, 0) 100%);
}

.floating {
  position: absolute;
  left: 0;
  bottom: 30px;
  width: 360px;
  background: #fff;
  border-radius: 26px;
  padding: 22px 24px;
  box-shadow: 0 20px 50px rgba(15, 47, 77, .16);
  border: 1px solid rgba(231, 238, 246, .9);
}

.floating .title {
  font-size: 14px;
  font-weight: 800;
  color: var(--orange);
  letter-spacing: .3px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.floating p { margin: 0; font-size: 16px; line-height: 1.6; color: #486174; }

/* ── Sections ── */
section { padding: 32px 48px; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 24px;
}

.section-head h2 { font-size: 38px; line-height: 1.1; margin: 0; color: #0f2f4d; }

.section-head p {
  margin: 0;
  max-width: 620px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

/* ── Services ── */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px 24px;
  box-shadow: 0 10px 24px rgba(16, 55, 92, .05);
}

.service-media {
  margin: 0 0 18px;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #edf5ff;
  border: 1px solid #dce9f8;
}

.service-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .3s ease;
}

.service:hover .service-media img {
  transform: scale(1.03);
}

.icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--blue), #2c8ae0);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 24px;
  margin-bottom: 16px;
}

.service h3 { margin: 0 0 10px; font-size: 25px; color: #0f2f4d; }

.service p { margin: 0; color: var(--muted); line-height: 1.65; font-size: 16px; }

/* ── Band ── */
.band {
  margin: 18px 48px 8px;
  border-radius: 32px;
  padding: 34px 38px;
  background: linear-gradient(120deg, var(--blue-dark), var(--blue));
  color: #fff;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 24px;
  align-items: center;
}

.band h3 { font-size: 34px; line-height: 1.15; margin: 0 0 10px; }

.band p { margin: 0; color: rgba(255, 255, 255, .88); font-size: 18px; line-height: 1.6; }

.band ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 18px;
}

.band li { padding-left: 18px; position: relative; font-weight: 600; color: #fff; }

.band li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
}

/* ── Contact ── */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding-bottom: 56px;
}

.contact-card,
.contact-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 28px;
  box-shadow: 0 10px 24px rgba(16, 55, 92, .05);
}

.contact-card h3,
.contact-form h3 { font-size: 30px; margin: 0 0 14px; color: #0f2f4d; }

.contact-card p { margin: 0 0 20px; color: var(--muted); font-size: 17px; line-height: 1.7; }

.info { display: grid; gap: 14px; }

.info .row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.bullet {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: #eef6ff;
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  flex: 0 0 42px;
}

.label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .2px;
  color: #7d91a4;
  font-weight: 700;
  margin-bottom: 4px;
}

.value { font-size: 18px; color: #16344f; font-weight: 700; }

.subvalue { font-size: 15px; color: var(--muted); }

/* ── Form ── */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.field { display: flex; flex-direction: column; gap: 8px; }

.field label { font-size: 14px; font-weight: 700; color: #38536f; }

.field input,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #f9fbfe;
  font-size: 15px;
  color: #274760;
  outline: none;
}

.field textarea { min-height: 140px; resize: none; }

.full { grid-column: 1 / -1; }

.flash-toast {
  position: fixed;
  left: 50%;
  top: 16px;
  transform: translateX(-50%) translateY(-12px);
  opacity: 0;
  width: min(92vw, 760px);
  padding: 14px 16px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  z-index: 3000;
  box-shadow: 0 14px 30px rgba(15, 47, 77, .2);
  pointer-events: none;
  transition: opacity .28s ease, transform .28s ease;
}

.flash-toast-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.flash-toast-hidden {
  opacity: 0;
  transform: translateX(-50%) translateY(-10px);
}

.flash-toast-success {
  background: #eafaf0;
  border: 1px solid #b7e8c6;
  color: #1a6d38;
}

.flash-toast-error {
  background: #fff0f0;
  border: 1px solid #f2c1c1;
  color: #a23a3a;
}

.form-alert {
  border-radius: 14px;
  padding: 12px 14px;
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 600;
}

.form-alert-success {
  background: #eafaf0;
  border: 1px solid #b7e8c6;
  color: #1a6d38;
}

.form-alert-error {
  background: #fff0f0;
  border: 1px solid #f2c1c1;
  color: #a23a3a;
}

.hp-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.submit {
  display: inline-block;
  margin-top: 14px;
  background: var(--orange);
  color: #fff;
  border: none;
  border-radius: 16px;
  padding: 16px 22px;
  font-size: 16px;
  font-weight: 800;
  box-shadow: 0 16px 30px rgba(244, 139, 24, .22);
  cursor: pointer;
}

/* ── Footer ── */
.footer {  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding: 22px 48px;
  background: #0d2238;
  color: #d7e5f1;
  font-size: 14px;
}

.footer strong { color: #fff; }

.footer a { color: inherit; text-decoration: none; }

/* ══════════════════════════════════════════
   PAGES INTÉRIEURES
══════════════════════════════════════════ */

/* ── Page hero (bannière haut de page) ── */
.page-hero {
  padding: 56px 48px 48px;
  background: linear-gradient(180deg, #ffffff 0%, #f0f7ff 100%);
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.page-hero h1 { font-size: 48px; line-height: 1.05; margin: 14px auto 16px; color: #0f2f4d; text-align: center; max-width: 800px; }

.page-hero p { font-size: 19px; color: var(--muted); max-width: 680px; margin: 0 auto; line-height: 1.65; }

/* ── CTA section ── */
.cta-section {
  text-align: center;
  padding: 56px 48px;
  background: var(--blue-soft);
}

.cta-section h2 { font-size: 36px; color: #0f2f4d; margin: 0 0 12px; }

.cta-section p { color: var(--muted); font-size: 18px; margin: 0 0 28px; }

/* ── À propos ── */
.about-section { padding: 48px 48px 40px; }

.about-grid {
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 48px;
  align-items: start;
}

.about-text h2 { font-size: 36px; color: #0f2f4d; margin: 14px 0 18px; }

.about-text p { color: var(--muted); font-size: 17px; line-height: 1.75; margin: 0 0 16px; }

.about-values {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 28px;
}

.about-value {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 10px;
  text-align: center;
}

.about-value i { font-size: 22px; color: var(--blue); }

.about-value span { font-size: 13px; font-weight: 700; color: var(--text); }

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.stat-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px 18px;
  text-align: center;
  box-shadow: 0 10px 24px rgba(16,55,92,.05);
}

.stat-card strong { display: block; font-size: 34px; color: var(--blue-dark); margin-bottom: 6px; }

.stat-card span { font-size: 14px; color: var(--muted); }

/* ── Services page ── */
.services-lg { padding-bottom: 8px; }

.service-link {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform .15s, box-shadow .15s;
}

.service-link:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(16,55,92,.1);
}

.service-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  color: var(--blue);
  font-weight: 700;
  font-size: 14px;
}

/* ── Service detail (sous-pages) ── */
.service-detail { padding: 48px 48px 56px; }

.service-detail-grid {
  display: grid;
  grid-template-columns: 1.4fr .6fr;
  gap: 40px;
  align-items: start;
}

.service-detail-content h2 { font-size: 32px; color: #0f2f4d; margin: 0 0 18px; }

.service-detail-content p { color: var(--muted); font-size: 17px; line-height: 1.75; margin: 0 0 28px; }

.service-items { display: grid; gap: 12px; }

.service-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 16px;
  color: var(--text);
}

.service-item i { color: var(--blue); margin-top: 3px; flex-shrink: 0; }

.cta-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px 24px;
  box-shadow: 0 10px 28px rgba(16,55,92,.07);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  position: sticky;
  top: 24px;
}

.cta-card i { color: var(--blue); }

.cta-card h3 { font-size: 22px; color: #0f2f4d; margin: 0; }

.cta-card p { color: var(--muted); font-size: 15px; line-height: 1.6; margin: 0; }

.cta-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
  font-weight: 600;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  width: 100%;
  text-align: left;
}

.cta-contact span { display: flex; align-items: center; gap: 8px; }

.cta-contact i { color: var(--blue); width: 14px; }

/* ── Blog ── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.blog-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 26px 22px;
  box-shadow: 0 10px 24px rgba(16,55,92,.05);
  display: flex;
  flex-direction: column;
}

.blog-cat {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 12px;
  align-self: flex-start;
}

.blog-card h3 { font-size: 20px; color: #0f2f4d; margin: 0 0 10px; line-height: 1.3; }

.blog-card p { color: var(--muted); font-size: 15px; line-height: 1.65; margin: 0; flex: 1; }

.blog-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}

.blog-link {
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
}

/* ── Contact select ── */
.field select {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #f9fbfe;
  font-size: 15px;
  color: #274760;
  outline: none;
  appearance: none;
}

/* ══════════════════════════════════════════
   RESPONSIVE — TABLET (≤ 1024px)
══════════════════════════════════════════ */
@media (max-width: 1024px) {

  /* Nav */
  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px; height: 42px;
    border: none;
    background: var(--blue-soft);
    color: var(--blue);
    border-radius: 12px;
    font-size: 18px;
    cursor: pointer;
  }

  .nav {
    display: none;
    flex-direction: column;
    gap: 4px;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: #fff;
    border-top: 1px solid var(--line);
    padding: 16px 24px 24px;
    box-shadow: 0 16px 40px rgba(11,63,115,.1);
    z-index: 200;
  }

  .nav.nav-open { display: flex; }

  .nav a { font-size: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); text-align: center; }

  .nav .btn {
    margin-top: 8px;
    border-radius: 12px;
    text-align: center;
    padding: 14px;
    border: none;
    border-bottom: none;
    align-self: center;
    width: fit-content;
    min-width: 220px;
  }

  .nav-dropdown-toggle {
    width: auto;
    display: inline-flex;
    justify-content: center;
    text-align: center;
    margin: 0 auto;
  }

  .nav-dropdown { width: 100%; text-align: center; }

  .nav-dropdown-menu {
    display: none;
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    background: var(--blue-soft);
    border-radius: 12px;
    margin-top: 4px;
    padding: 4px 8px;
  }

  .nav-dropdown.dropdown-open .nav-dropdown-menu { display: flex; flex-direction: column; }

  .nav-dropdown::after { display: none; }

  .topbar { position: relative; padding: 14px 24px; }

  /* Hero */
  .hero {
    grid-template-columns: 1fr;
    padding: 40px 24px 32px;
    gap: 32px;
  }

  .visual { min-height: 380px; }

  h1 { font-size: 40px; }

  .floating { width: 100%; max-width: 360px; }

  /* Services */
  .services { grid-template-columns: repeat(2, 1fr); }

  .service-media { margin-bottom: 16px; }

  /* Band */
  .band {
    margin: 16px 24px 8px;
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Contact */
  .contact { grid-template-columns: 1fr; }

  /* À propos */
  .about-grid { grid-template-columns: 1fr; }

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

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

  /* Service detail */
  .service-detail-grid { grid-template-columns: 1fr; }

  .cta-card { position: static; }

  /* Blog */
  .blog-grid { grid-template-columns: repeat(2, 1fr); }

  /* Page hero */
  .page-hero { padding: 40px 24px 36px; }

  .page-hero h1 { font-size: 38px; }

  section { padding: 28px 24px; }

  .section-head { flex-direction: column; align-items: flex-start; gap: 12px; }

  .service-detail { padding: 32px 24px 48px; }

  .about-section { padding: 36px 24px 32px; }

  .cta-section { padding: 40px 24px; }
}

/* ══════════════════════════════════════════
   RESPONSIVE — MOBILE (≤ 640px)
══════════════════════════════════════════ */
@media (max-width: 640px) {

  .flash-toast {
    top: 10px;
    width: calc(100vw - 18px);
    padding: 12px 13px;
    font-size: 13px;
  }

  h1 { font-size: 32px; }

  .page-hero h1 { font-size: 30px; }

  .page-hero p { font-size: 16px; }

  /* Hero */
  .hero { padding: 32px 16px 28px; }

  .visual { min-height: 280px; }

  .floating { width: calc(100% - 16px); bottom: 12px; left: 8px; padding: 16px; }

  .floating p { font-size: 14px; }

  .hero-actions { flex-direction: column; align-items: stretch; }

  .hero-actions a { text-align: center; }

  .mini-grid { grid-template-columns: 1fr; }

  /* Nav */
  .topbar { padding: 12px 16px; }

  .logo img { height: 48px; }

  /* Services */
  .services { grid-template-columns: 1fr; }

  .service { padding: 20px 18px 22px; }

  .service h3 { font-size: 23px; }

  .service p { font-size: 16px; }

  /* Band */
  .band { margin: 12px 16px 8px; padding: 24px 20px; }

  .band h3 { font-size: 24px; }

  .band ul { grid-template-columns: 1fr; gap: 8px; }

  /* Contact */
  .grid2 { grid-template-columns: 1fr; }

  .contact { padding-bottom: 32px; }

  /* À propos */
  .about-values { grid-template-columns: repeat(2, 1fr); }

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

  .stat-card strong { font-size: 26px; }

  /* Blog */
  .blog-grid { grid-template-columns: 1fr; }

  /* Sections */
  section { padding: 24px 16px; }

  .page-hero { padding: 32px 16px 28px; }

  .service-detail { padding: 24px 16px 40px; }

  .about-section { padding: 28px 16px; }

  .cta-section { padding: 32px 16px; }

  .cta-section h2 { font-size: 26px; }

  /* Footer */
  .footer {
    flex-direction: column;
    text-align: center;
    padding: 20px 16px;
    gap: 8px;
  }

  /* Section head */
  .section-head h2 { font-size: 28px; }

  .section-head p { font-size: 15px; }
}

