:root {
  --primary: #0a4f7a;
  --primary-dark: #07253a;
  --secondary: #d3a13f;
  --bg: #f4f8fb;
  --text: #12273a;
  --muted: #5c7183;
  --white: #ffffff;
  --radius: 14px;
  --radius-xl: 24px;
  --shadow: 0 10px 30px rgba(7, 37, 58, 0.12);
  --transition: .3s ease;
}

html { scroll-behavior: smooth; }
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Manrope', sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top left, #f9fcff 0%, #eef5fa 45%, #edf2f7 100%);
  min-height: 100vh;
  padding-top: 66px;
}
main { min-height: 60vh; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }
img { max-width: 100%; height: auto; }
a { color: var(--primary); text-decoration: none; transition: var(--transition); }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal-left { transform: translateX(-30px); }
.reveal-right { transform: translateX(30px); }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }

.site-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: .6rem 0;
  background: linear-gradient(115deg, rgba(7,37,58,.92), rgba(10,79,122,.9));
  backdrop-filter: blur(10px);
}
.site-navbar.scrolled { box-shadow: 0 8px 24px rgba(7, 37, 58, 0.22); }
.navbar-inner { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.navbar-brand { display: flex; align-items: center; gap: .6rem; color: #fff; }
.navbar-logo { border-radius: 50%; border: 2px solid rgba(255,255,255,.35); }
.brand-text { color: #fff; font-size: .9rem; }
.brand-sub { display: block; color: #f0d7a3; font-size: .72rem; letter-spacing: .2px; }
.navbar-menu {
  list-style: none;
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #0a4f7a;
  padding: .8rem 1rem;
  flex-direction: column;
  gap: .4rem;
}
.site-navbar .nav-link { color: rgba(255,255,255,.86); padding: .55rem .8rem; border-radius: 999px; font-size: .9rem; display: block; text-align: left; }
.site-navbar .nav-link:hover { color: #fff; background: rgba(255,255,255,.16); }
.nav-link-highlight { background: var(--secondary); color: #352100 !important; font-weight: 700; }
.navbar-toggle { display: flex; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; }
.navbar-toggle span { width: 24px; height: 2px; background: #fff; border-radius: 3px; }
.navbar-menu.open { display: flex; }

.section-generic-top { padding-top: 2.5rem; }
.section-header { text-align: center; margin-bottom: 2.4rem; }
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.55rem;
  margin-bottom: .6rem;
}
.section-title-small { font-size: 1.25rem; }
.section-subtitle { color: var(--muted); max-width: 760px; margin: 0 auto; }

.hero-section {
  position: relative;
  min-height: auto;
  padding: 3.5rem 0 2.5rem;
  display: flex;
  align-items: center;
  background: url('/images/banniere-catramed.jpg') center/cover no-repeat;
}
.hero-bg-pattern { position: absolute; inset: 0; background: linear-gradient(130deg, rgba(7,37,58,.88), rgba(10,79,122,.56)); }
.hero-container { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr; gap: 1.5rem; align-items: center; }
.hero-badge { display: inline-block; padding: .35rem .8rem; border-radius: 999px; background: rgba(211,161,63,.2); color: #ffe8b7; margin-bottom: .95rem; font-size: .84rem; }
.hero-title { color: #fff; font-size: 1.85rem; line-height: 1.15; margin-bottom: .9rem; }
.hero-description { color: rgba(255,255,255,.9); max-width: 620px; margin-bottom: 1.1rem; font-size: .96rem; }
.hero-buttons { display: flex; gap: .8rem; flex-wrap: wrap; }
.btn-hero-primary,
.btn-hero-secondary,
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .75rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
}
.btn-hero-primary { background: var(--secondary); color: #2e1d00; }
.btn-hero-primary:hover { transform: translateY(-2px); }
.btn-hero-secondary { border: 1px solid rgba(255,255,255,.48); color: #fff; }
.btn-hero-secondary:hover { background: rgba(255,255,255,.14); }
.hero-flyer-frame { border-radius: var(--radius-xl); overflow: hidden; box-shadow: 0 16px 40px rgba(0,0,0,.25); border: 2px solid rgba(255,255,255,.25); max-width: 420px; margin: 0 auto; }
.hero-flyer-img { width: 100%; height: 100%; object-fit: cover; }

.section-services,
.section-about,
.section-contact,
.section-collaborateurs,
.actualites-section,
.references-page { padding: 3.2rem 0; }
.section-services,
.section-collaborateurs,
.references-page,
.flyer-belt-section { background: var(--bg); }

.services-grid,
.specialised-grid,
.collaborateurs-grid,
.actualites-grid,
.references-layout { display: grid; gap: 1.4rem; }
.services-grid-main { grid-template-columns: 1fr; margin-bottom: 2.2rem; }
.specialised-grid { grid-template-columns: 1fr; }
.collaborateurs-grid { grid-template-columns: 1fr; }
.actualites-grid { grid-template-columns: 1fr; }
.references-layout { grid-template-columns: 1fr; }

.service-card,
.spec-card,
.collaborateur-card,
.actu-card,
.references-card,
.contact-info-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.service-card:hover,
.spec-card:hover,
.collaborateur-card:hover,
.actu-card:hover,
.contact-info-item:hover { transform: translateY(-5px); }
.service-card--featured { outline: 2px solid rgba(211,161,63,.5); }
.service-icon,
.spec-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(10,79,122,.1);
  color: var(--primary);
  margin-bottom: .9rem;
}
.service-title { margin-bottom: .45rem; }

.collaborateur-card { position: relative; overflow: hidden; }
.collaborateur-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,79,122,.05), rgba(211,161,63,.07));
  opacity: 0;
  transition: var(--transition);
}
.collaborateur-card:hover::before { opacity: 1; }
.collab-logo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: .8rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #0a4f7a, #1f7aaa);
  animation: floatLogo 3.4s ease-in-out infinite;
}
.collab-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
@keyframes floatLogo {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.about-grid,
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; align-items: center; }
.about-image { border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow); }
.about-content p { color: var(--muted); margin-bottom: .75rem; }
.about-full-name { color: var(--primary); font-weight: 700; }
.about-stats { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: .9rem; }
.stat-item { background: #eef5fa; border-radius: 12px; padding: .6rem .9rem; text-align: center; }
.stat-number { display: block; font-weight: 800; color: var(--primary); }
.stat-label { font-size: .78rem; color: var(--muted); }

.contact-info-block { display: flex; flex-direction: column; gap: 1rem; }
.contact-info-item i { font-size: 1.3rem; color: var(--primary); margin-right: .75rem; }
.contact-info-item { display: flex; align-items: flex-start; }
.contact-cta-card {
  border-radius: var(--radius-xl);
  padding: 2rem;
  background: linear-gradient(150deg, #0a4f7a, #0f6a8c);
  color: #fff;
  box-shadow: var(--shadow);
}
.contact-cta-card h3,
.contact-cta-card p { color: #fff; }
.contact-cta-icon { font-size: 2.2rem; margin-bottom: .7rem; }
.btn-whatsapp { background: #25d366; color: #fff; margin-top: .85rem; }

.site-footer {
  background: linear-gradient(130deg, #07253a, #0a4f7a);
  color: rgba(255,255,255,.86);
  padding: 3rem 0 1.4rem;
}
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-bottom: 1.6rem; }
.footer-logo-link img { border-radius: 50%; }
.footer-tagline { color: #f0d7a3; margin-top: .65rem; }
.footer-desc { color: rgba(255,255,255,.7); font-size: .9rem; }
.footer-heading { color: #fff; margin-bottom: .7rem; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: .45rem; }
.footer-links a { color: rgba(255,255,255,.78); font-size: .9rem; }
.footer-links a:hover { color: #fff; }
.footer-contact-list li { display: flex; gap: .5rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.2); padding-top: .9rem; text-align: center; color: rgba(255,255,255,.65); font-size: .85rem; }

.actualites-hero { padding: 4.2rem 0 0; }
.flyer-belt-section { padding: 2rem 0 1rem; overflow: hidden; }
.flyer-belt-header { text-align: center; margin-bottom: 1rem; }
.flyer-belt-track { display: flex; gap: 1rem; width: max-content; animation: scrollBelt 32s linear infinite; }
.flyer-belt-track:hover { animation-play-state: paused; }
.flyer-belt-item { flex: 0 0 170px; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.flyer-belt-item img { width: 100%; height: 220px; object-fit: cover; }
@keyframes scrollBelt {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.actu-card { padding: 0; overflow: hidden; }
.actu-card-img { height: 180px; }
.actu-card-img img { width: 100%; height: 100%; object-fit: cover; }
.actu-card-body { padding: 1.15rem; }
.actu-date { display: inline-block; padding: .2rem .6rem; border-radius: 999px; background: rgba(10,79,122,.12); color: var(--primary); font-size: .74rem; margin-bottom: .45rem; }
.actu-title { margin-bottom: .45rem; }
.actu-text { color: var(--muted); font-size: .92rem; margin-bottom: .55rem; }
.actu-link { font-weight: 700; color: var(--primary); }

.references-list { list-style: none; display: grid; gap: .7rem; margin-top: .9rem; }
.references-list li i { width: 18px; color: var(--primary); margin-right: .4rem; }
.references-card h2 { margin-bottom: .65rem; }
.references-card-highlight { border: 1px solid rgba(211,161,63,.5); }
.references-help { margin-top: .7rem; color: var(--muted); font-size: .88rem; }

.flash-container { position: fixed; top: 72px; right: .8rem; z-index: 2000; max-width: 400px; }
.display-title { text-align: center; padding: 1.5rem; }

@media (min-width: 480px) {
  body { padding-top: 68px; }
  .container { padding: 0 1.15rem; }
  .section-title { font-size: 1.75rem; }
  .hero-title { font-size: 2.05rem; }
  .flyer-belt-item { flex-basis: 200px; }
  .flyer-belt-item img { height: 250px; }
  .actu-card-img { height: 200px; }
}

@media (min-width: 576px) {
  .services-grid-main,
  .specialised-grid,
  .collaborateurs-grid,
  .actualites-grid,
  .references-layout { grid-template-columns: repeat(2, 1fr); }
  .section-title { font-size: 1.95rem; }
  .hero-title { font-size: 2.25rem; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  body { padding-top: 74px; }
  .navbar-toggle { display: none; }
  .brand-text { font-size: 1rem; }
  .navbar-menu {
    position: static;
    display: flex !important;
    background: transparent;
    padding: 0;
    flex-direction: row;
    gap: .35rem;
    align-items: center;
  }
  .navbar-menu li { width: auto; }
  .site-navbar .nav-link { display: inline-block; text-align: center; padding: .45rem .8rem; font-size: .88rem; }
  .hero-section { min-height: 76vh; padding: 4rem 0 3rem; }
  .hero-title { font-size: 2.55rem; }
  .section-services,
  .section-about,
  .section-contact,
  .section-collaborateurs,
  .actualites-section,
  .references-page { padding: 4rem 0; }
  .about-grid,
  .contact-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
}

@media (min-width: 992px) {
  .hero-container { grid-template-columns: 1.05fr .95fr; gap: 2rem; }
  .hero-title { font-size: 2.8rem; }
  .services-grid-main { grid-template-columns: repeat(3, 1fr); }
  .specialised-grid,
  .collaborateurs-grid { grid-template-columns: repeat(3, 1fr); }
  .actualites-grid { grid-template-columns: repeat(3, 1fr); }
  .references-layout { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1200px) {
  .container { padding: 0 1.25rem; }
  .section-title { font-size: 2.2rem; }
  .hero-section { min-height: 88vh; }
  .hero-title { font-size: 3rem; }
  .specialised-grid,
  .collaborateurs-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.4fr; }
  .flyer-belt-item { flex-basis: 250px; }
  .flyer-belt-item img { height: 320px; }
  .actu-card-img { height: 220px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
