:root {
  --navy: #0f2d4f;
  --navy-dark: #081d35;
  --gold: #d4960a;
  --gold-light: #edb93e;
  --gold-bg: rgba(212, 150, 10, 0.08);
  --light: #f7f8fc;
  --white: #ffffff;
  --text: #1e2a36;
  --muted: #64717e;
  --border: rgba(15, 45, 79, 0.08);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.12);
  --shadow-xl: 0 20px 60px rgba(15, 23, 42, 0.15);
  --container: 75%;
  --radius: 16px;
  --radius-sm: 10px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  background: var(--light);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  content-visibility: auto;
}

/* ─────────────────────────────────
   Performance
   ───────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

a {
  color: inherit;
  text-decoration: none !important;
  transition: color var(--transition);
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

/* ─────────────────────────────────
   Container utility
   ───────────────────────────────── */
.container {
  width: var(--container);
  max-width: 1440px;
  margin-inline: auto;
}

/* ─────────────────────────────────
   Top bar
   ───────────────────────────────── */
.top-bar {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.top-bar__inner {
  width: var(--container);
  max-width: 1440px;
  margin-inline: auto;
  padding: 0.45rem 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.top-bar a {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

.top-bar a:hover {
  color: var(--gold-light);
}

/* ─────────────────────────────────
   Header / Navbar
   ───────────────────────────────── */
header {
  background: var(--navy);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05), var(--shadow-lg);
}

.navbar {
  width: var(--container);
  max-width: 1440px;
  margin-inline: auto;
  padding: 0.65rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.brand img {
  width: 110px;
}

nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2px;
}

nav li {
  position: relative;
}

nav a,
nav button {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
  font-weight: 500;
  font-size: 0.88rem;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
  font: inherit;
  cursor: pointer;
  white-space: nowrap;
}

nav a:hover,
nav a:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  text-decoration: none;
}

nav a[aria-current="page"] {
  background: var(--gold);
  color: var(--navy-dark);
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(212, 150, 10, 0.3);
}

nav button:hover,
nav button:focus-visible,
nav li.open > button {
  background: rgba(255, 255, 255, 0.1);
}

nav .submenu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: var(--white);
  color: var(--text);
  min-width: 220px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-xl);
  padding: 0.4rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

nav li:focus-within .submenu,
nav li:hover .submenu,
nav li.open .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

nav .submenu a {
  width: 100%;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-sm);
  color: var(--text);
}

nav .submenu a:hover {
  background: var(--light);
}

/* ─────────────────────────────────
   Hero
   ───────────────────────────────── */
.hero {
  position: relative;
  background: var(--navy-dark);
  color: #fff;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(8, 29, 53, 0.92) 0%,
    rgba(15, 45, 79, 0.6) 50%,
    rgba(15, 45, 79, 0.35) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  width: var(--container);
  max-width: 1440px;
  margin-inline: auto;
  padding: 5.5rem 0 4.5rem;
  display: grid;
  gap: 1.25rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 3.5vw + 0.8rem, 3.6rem);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.025em;
  max-width: 720px;
}

.hero p {
  font-size: 1.1rem;
  max-width: 620px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
}

.hero .button {
  width: fit-content;
}

/* Image illustration inline (ex. catalogue) */
.illustration {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.illustration img {
  width: 100%;
  height: auto;
  display: block;
}

/* ─────────────────────────────────
   Media + Text (image + texte côte à côte)
   ───────────────────────────────── */
.media-text {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.media-text--reverse .media-text__media {
  order: 2;
}

.media-text--reverse .media-text__body {
  order: 1;
}

.media-text__body {
  display: grid;
  gap: 0.75rem;
}

.media-text__body h2,
.media-text__body h3 {
  font-size: 1.4rem;
  color: var(--navy-dark);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.media-text__body p {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.7;
}

/* ─────────────────────────────────
   Buttons
   ───────────────────────────────── */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius-sm);
  background: var(--gold);
  color: var(--navy-dark);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.85rem;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  border: none;
  cursor: pointer;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  background: var(--gold-light);
  box-shadow: 0 8px 24px rgba(212, 150, 10, 0.35);
  text-decoration: none;
}

.button:active {
  transform: translateY(0);
}

.button--outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}

.button--outline:hover,
.button--outline:focus-visible {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 8px 24px rgba(15, 45, 79, 0.2);
}

/* ─────────────────────────────────
   Main content
   ───────────────────────────────── */
main {
  width: var(--container);
  max-width: 1440px;
  margin-inline: auto;
  padding: 4rem 0 5rem;
  display: grid;
  gap: 4.5rem;
}

.centered {
  text-align: center;
}

.w-100 {
  width: 100%;
}

.no-underline {
  text-decoration: none;
}

/* ─────────────────────────────────
   Section headers
   ───────────────────────────────── */
.section-header {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
}

.section-header h2 {
  font-size: clamp(1.6rem, 2vw + 0.6rem, 2.4rem);
  color: var(--navy-dark);
  font-weight: 800;
  letter-spacing: -0.02em;
  position: relative;
  padding-bottom: 0.75rem;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 48px;
  height: 3px;
  background: var(--gold);
  border-radius: 3px;
}

.section-header p {
  color: var(--muted);
  margin-top: 0.75rem;
  font-size: 1.02rem;
  max-width: 640px;
}

section.cerfa img {
  width: 3rem;
  margin: 0 auto 1rem;
}

/* ─────────────────────────────────
   Grids
   ───────────────────────────────── */
.grid {
  display: grid;
  gap: 1.75rem;
}

.grid--three {
  grid-template-columns: repeat(3, 1fr);
}

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

/* ─────────────────────────────────
   Cards
   ───────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 0.6rem;
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid var(--border);
  position: relative;
  z-index: 0;
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  z-index: 1;
}

.card h3 {
  margin: 0;
  font-size: 1.15rem;
  color: var(--navy);
  font-weight: 700;
}

.card p,
.card li {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.card ul {
  padding-left: 1.2rem;
  display: grid;
  gap: 0.3rem;
}

.card .button {
  margin-top: 0.5rem;
  width: fit-content;
}

/* ─────────────────────────────────
   Highlight block
   ───────────────────────────────── */
.highlight {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem;
  display: grid;
  gap: 0.75rem;
  border-left: 4px solid var(--gold);
  box-shadow: var(--shadow-sm);
}

.highlight h2 {
  font-size: 1.5rem;
  color: var(--navy-dark);
  font-weight: 800;
}

.highlight p {
  color: var(--muted);
  line-height: 1.7;
  font-size: 1.02rem;
  max-width: 700px;
}

/* ─────────────────────────────────
   Contact panel
   ───────────────────────────────── */
.contact-panel {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  padding: 2.5rem;
  display: grid;
  gap: 1rem;
  position: relative;
  overflow: hidden;
}

.contact-panel::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  background: var(--gold);
  opacity: 0.07;
  border-radius: 50%;
}

.contact-panel h2 {
  font-size: 1.5rem;
  font-weight: 800;
}

.contact-panel p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.98rem;
}

.contact-panel a {
  color: #fff;
  font-weight: 600;
}

.contact-panel .button {
  width: fit-content;
}

address {
  font-style: normal;
  display: grid;
  gap: 0.2rem;
  font-size: 0.95rem;
}

/* ─────────────────────────────────
   Footer
   ───────────────────────────────── */
footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 3rem 0;
  font-size: 0.92rem;
}

footer .footer-inner {
  width: var(--container);
  max-width: 1440px;
  margin-inline: auto;
}

footer .footer-columns {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  justify-items: center;
  text-align: center;
  margin-bottom: 2rem;
}

footer .footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

footer .footer-col address {
  margin-top: 1rem;
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

footer strong {
  color: #fff;
  font-size: 1rem;
}

footer a {
  color: rgba(255, 255, 255, 0.7);
}

footer a:hover {
  color: var(--gold-light);
}

footer .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 1.25rem;
  text-align: center;
  font-size: 0.85rem;
}

@media (max-width: 600px) {
  footer .footer-columns {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* ─────────────────────────────────
   Table
   ───────────────────────────────── */
.table-scroll {
  overflow-x: auto;
  border-radius: var(--radius);
}

.table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.table th,
.table td {
  padding: 0.85rem 1.1rem;
  text-align: left;
  font-size: 0.95rem;
}

.table thead {
  background: var(--navy);
  color: #fff;
}

.table thead th {
  font-weight: 600;
  letter-spacing: 0.02em;
}

.table tbody tr {
  transition: background var(--transition);
  border-bottom: 1px solid var(--border);
}

.table tbody tr:last-child {
  border-bottom: none;
}

.table tbody tr:nth-child(even) {
  background: rgba(15, 45, 79, 0.02);
}

.table tbody tr:hover {
  background: var(--gold-bg);
}

/* ─────────────────────────────────
   Timeline (étapes)
   ───────────────────────────────── */
.timeline {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 0;
  align-items: center;
}

.timeline__step {
  text-align: center;
  position: relative;
  justify-items: center;
}

.timeline__number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy-dark);
  font-weight: 800;
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  box-shadow: 0 4px 12px rgba(212, 150, 10, 0.3);
}

.timeline__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 1.6rem;
  padding: 0 0.25rem;
}

/* ─────────────────────────────────
   Blockquotes / Testimonials
   ───────────────────────────────── */
blockquote {
  margin: 0;
  padding: 1.5rem 1.75rem;
  border-radius: var(--radius);
  background: var(--white);
  border-left: 3px solid var(--gold);
  box-shadow: var(--shadow-sm);
  font-style: italic;
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--muted);
  transition: transform var(--transition), box-shadow var(--transition);
}

blockquote:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

blockquote footer {
  margin-top: 0.75rem;
  font-style: normal;
  color: var(--navy);
  background: transparent;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0;
}

/* ─────────────────────────────────
   Map
   ───────────────────────────────── */
.map {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.map iframe {
  display: block;
  width: 100%;
}

/* ─────────────────────────────────
   Floating call button (mobile)
   ───────────────────────────────── */
.fab-call {
  display: none;
}

@media (max-width: 640px) {
  .fab-call {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    bottom: 1.25rem;
    right: 1.25rem;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--navy-dark);
    box-shadow: 0 4px 16px rgba(212, 150, 10, 0.4);
    z-index: 100;
    transition: transform var(--transition), box-shadow var(--transition);
    text-decoration: none !important;
  }

  .fab-call:hover,
  .fab-call:focus-visible {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(212, 150, 10, 0.5);
    text-decoration: none;
  }
}

/* ─────────────────────────────────
   Responsive
   ───────────────────────────────── */
@media (max-width: 1280px) {
  :root {
    --container: 85%;
  }
}

@media (max-width: 1024px) {
  :root {
    --container: 90%;
  }

  .grid--three {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }

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

@media (max-width: 820px) {
  :root {
    --container: 92%;
  }

  nav ul {
    gap: 1px;
  }

  nav a,
  nav button {
    padding: 0.4rem 0.55rem;
    font-size: 0.82rem;
  }

  .hero__content {
    padding: 4rem 0 3rem;
  }

  main {
    padding: 3rem 0 3.5rem;
    gap: 3rem;
  }

  .highlight,
  .contact-panel {
    padding: 2rem;
  }

  .media-text {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .media-text--reverse .media-text__media,
  .media-text--reverse .media-text__body {
    order: unset;
  }

  .timeline {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .timeline__arrow {
    transform: rotate(90deg);
    padding: 0.25rem 0;
  }
}

@media (max-width: 640px) {
  :root {
    --container: 90%;
  }

  nav ul {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--white);
    color: var(--text);
    flex-direction: column;
    padding: 0.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-xl);
    min-width: 260px;
    border: 1px solid var(--border);
  }

  nav ul.open {
    display: flex;
  }

  nav a,
  nav button {
    color: var(--text);
    font-size: 0.92rem;
    padding: 0.6rem 1rem;
    width: 100%;
  }

  nav a[aria-current="page"] {
    background: var(--gold);
    color: var(--navy-dark);
  }

  nav .submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    padding: 0;
    background: transparent;
  }

  nav .submenu a {
    padding-left: 1.5rem;
  }

  .menu-toggle {
    display: inline-flex;
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.2);
    align-items: center;
    justify-content: center;
    background: transparent;
    color: #fff;
    cursor: pointer;
    font-size: 1.15rem;
    transition: background var(--transition);
  }

  .menu-toggle:hover {
    background: rgba(255, 255, 255, 0.08);
  }

  .hero h1 {
    font-size: clamp(1.8rem, 6vw, 2.4rem);
  }

  .hero__content {
    padding: 3.5rem 0 3rem;
  }

  main {
    padding: 2rem 0 2.5rem;
    gap: 2.5rem;
  }

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

  .highlight,
  .contact-panel {
    padding: 1.5rem;
  }

  .card {
    padding: 1.4rem;
  }

  .section-header h2 {
    font-size: 1.4rem;
  }

  .top-bar__inner {
    justify-content: center;
    text-align: center;
    font-size: 0.78rem;
  }

  footer .footer-bottom {
    font-size: 0.78rem;
    line-height: 1.5;
  }

  .table th,
  .table td {
    padding: 0.6rem 0.7rem;
    font-size: 0.85rem;
  }
}

@media (min-width: 641px) {
  .menu-toggle {
    display: none;
  }
}
