/* ══════════════════════════════════════════════════════════════
   CESO ENTREPRISE — global.css
   Styles communs : design system, nav, top-strip, footer,
   back-to-top, burger, animations, utilitaires, responsive.
   Chaque page conserve ses styles spécifiques dans un <style>
   inline ou un fichier CSS dédié.
══════════════════════════════════════════════════════════════ */

/* ─── Design System ─────────────────────────────────────────── */
:root {
  --ink: #0d0f14;
  --chalk: #f7f5f0;
  --gold: #c9a84c;
  --gold-lt: #f0d898;
  --azure: #1a4d8f;
  --azure-lt: #2e6ec4;
  --rouge: #c0392b;
  --mist: #e8edf6;
  --mid: #6b7280;
  --serif: "DM Serif Display", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
  --radius: 8px;
  --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 40px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.12);
}

/* ─── Reset & Base ───────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--sans);
  background: var(--chalk);
  color: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img,
svg {
  display: block;
  max-width: 100%;
}
h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  line-height: 1.12;
}
p {
  line-height: 1.78;
  color: #0c0c0c;
  font-size:.95rem;
  margin-bottom:20px;
}
a {
  color: inherit;
}

/* ─── Utilities ─────────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.gold {
  color: var(--gold);
}
.azure {
  color: var(--azure);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--mist);
  border: 1px solid #cbd5e8;
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--azure);
}

/* ─── Buttons ───────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--gold), #e8b84b);
  color: var(--ink);
  padding: 16px 32px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition:
    transform 0.25s,
    box-shadow 0.25s;
  box-shadow: 0 4px 30px rgba(201, 168, 76, 0.35);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 40px rgba(201, 168, 76, 0.5);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  padding: 16px 32px;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  transition:
    border-color 0.25s,
    background 0.25s;
}
.btn-secondary:hover {
  border-color: var(--gold);
  background: rgba(201, 168, 76, 0.1);
}

/* ─── Animations ────────────────────────────────────────────── */
@keyframes revealUp {
  from {
    opacity: 0;
    transform: translateY(36px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes floatY {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}
@keyframes shimmer {
  0%,
  100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
}

.reveal {
  animation: revealUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.reveal-d1 {
  animation-delay: 0.1s;
}
.reveal-d2 {
  animation-delay: 0.2s;
}
.reveal-d3 {
  animation-delay: 0.3s;
}
.reveal-d4 {
  animation-delay: 0.4s;
}
.reveal-d5 {
  animation-delay: 0.5s;
}
.float-anim {
  animation: floatY 5s ease-in-out infinite;
}

/* ─── Section base ──────────────────────────────────────────── */
section {
  padding: 96px 24px;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--azure);
  margin-bottom: 14px;
  display: block;
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 18px;
}
.section-sub {
  font-size: 1.1rem;
  color: var(--mid);
  max-width: 620px;
}

/* ─── TOP STRIP ─────────────────────────────────────────────── */
.top-strip {
  background: var(--ink);
  color: var(--gold-lt);
  text-align: center;
  padding: 10px 24px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.top-strip a {
  color: var(--gold);
  text-decoration: underline;
}
.top-strip a:hover {
  text-decoration: none;
}

/* ─── NAV ───────────────────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 245, 240, 0.93);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(201, 168, 76, 0.25);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  max-width: 1200px;
  margin: 0 auto;
  min-height: 64px;
}

/* Logo */
.nav-brand {
  text-decoration: none;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.nav-brand:not(:has(img)) {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--ink);
}
.nav-brand:not(:has(img)) span {
  color: var(--gold);
}
.nav-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
}

/* Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: #0c0c0c;
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
  padding-bottom: 2px;
}
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform 0.22s;
}
.nav-links a:hover,
.nav-links a.active {
  color: #000;
}
.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

.nav-cta {
  background: var(--ink) !important;
  color: var(--gold) !important;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-weight: 700 !important;
  transition: background 0.25s !important;
}
.nav-cta::after {
  display: none !important;
}
.nav-cta:hover {
  background: var(--gold) !important;
  color: #000 !important;
}
.nav-cta.active {
  background: var(--gold) !important;
  color: #000 !important;
}

/* Burger mobile */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: var(--radius);
  transition: background 0.2s;
}
.nav-burger:hover {
  background: var(--mist);
}
.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition:
    transform 0.3s,
    opacity 0.3s;
}
.nav-burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ─── BREADCRUMB ─── */
.breadcrumb {
  background: #fff;
  border-bottom: 1px solid #edeae2;
  padding: 12px 24px;
  z-index: 50;
}
.breadcrumb-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--mid);
}
.breadcrumb-inner a {
  color: var(--azure);
  text-decoration: none;
}
.breadcrumb-inner a:hover {
  color: var(--gold);
}
.breadcrumb-sep {
  color: #cbd5e1;
}

/* ─── BUTTONS ───────────────────────────────────────────── */
.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--gold), #e8b84b);
  color: var(--ink);
  padding: 15px 30px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  transition:
    transform 0.25s,
    box-shadow 0.25s;
  box-shadow: 0 4px 24px rgba(201, 168, 76, 0.4);
}
.btn-gold:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 40px rgba(201, 168, 76, 0.55);
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid var(--gold);
  color: #000;
  padding: 15px 28px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.92rem;
  transition:
    border-color 0.25s,
    background 0.25s;
  backdrop-filter: blur(8px);
}
.btn-outline:hover {
  border-color: var(--gold);
  background: rgba(201, 168, 76, 0.1);
}
.btn-azure {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--azure);
  color: #fff;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.92rem;
  transition:
    background 0.25s,
    transform 0.2s;
}
.btn-azure:hover {
  background: var(--azure-lt);
  transform: translateY(-2px);
}

/* ─── SECTION COMMUNE ─── */
.svc-section {
  padding: 88px 24px;
  scroll-margin-top: 130px;
}
.svc-section:nth-child(even) {
  background: #fff;
}
.svc-section:nth-child(odd) {
  background: var(--chalk);
}

.svc-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.svc-header {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 72px;
  align-items: start;
  margin-bottom: 56px;
}
.svc-header.reverse {
  direction: rtl;
}
.svc-header.reverse > * {
  direction: ltr;
}

.svc-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--mist);
  color: var(--azure);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 4px;
  margin-bottom: 16px;
}
.svc-h2 {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  margin-bottom: 18px;
  line-height: 1.15;
}
.svc-h3 {
  font-size: clamp(1.25rem, 3vw, 1.4rem);
  margin-bottom: 14px;
  line-height: 1.2;
}
.svc-h3 em {
  color: var(--gold);
  font-style: italic;
}
.svc-h4 {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 3vw, 1.25rem);
  margin-bottom: 12px;
  line-height: 1.25;
}
.svc-h4 em {
  color: var(--gold);
  font-style: italic;
}
.svc-h5 {
  font-family: var(--serif);
  font-size: clamp(1rem, 3vw, 1.1rem);
  margin-bottom: 10px;
  line-height: 1.3;
}
.svc-h5 em {
  color: var(--gold);
  font-style: italic;
}
.svc-h6 {
  font-family: var(--serif);
  font-size: clamp(0.9rem, 3vw, 1rem);
  margin-bottom: 8px;
  line-height: 1.35;
}
.svc-h6 em {
  color: var(--gold);
  font-style: italic;
}
.svc-lead {
  font-size: 1.05rem;
  color: #000;
  line-height: 1.8;
  margin-bottom: 24px;
}
.svc-body-text {
  font-size: 0.95rem;
  color: #000;
  line-height: 1.85;
  margin-bottom: 20px;
}
.svc-checklist {
  list-style: none;
  margin-bottom: 28px;
}
.svc-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--ink);
  padding: 8px 0;
  border-bottom: 1px solid #ede9df;
}
.svc-checklist li:last-child {
  border-bottom: none;
}
.svc-checklist .ck {
  color: var(--gold);
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 1px;
}
.svc-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  font-weight: 700;
  text-decoration: none;
  font-size: 0.9rem;
  transition: gap 0.25s;
}
.svc-link:hover {
  gap: 14px;
}

/* Image / visuel droite */
.svc-visual {
  border-radius: 14px;
  overflow: hidden;
  position: relative;
}
.svc-visual img {
  width: 100%;
  display: block;
  transition: transform 0.6s;
}
.svc-visual:hover img {
  transform: scale(1.04);
}
.svc-visual-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: var(--ink);
  color: var(--gold);
  padding: 10px 18px;
  border-radius: 8px;
  font-family: var(--serif);
  font-size: 1rem;
}

.svc-kpi-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}
.svc-kpi {
  background: var(--chalk);
  border-radius: 10px;
  padding: 20px 16px;
  text-align: center;
  border: 1px solid var(--gold);
}
.svc-kpi .kn {
  font-family: var(--serif);
  font-size: 2rem;
  color: #000;
  line-height: 1;
}
.svc-kpi .kl {
  font-size: 0.75rem;
  color: rgba(0, 0, 0, 0.8);
  margin-top: 6px;
}

/* ─── TECH STACK PILLS ─── */
.tech-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.pill {
  background: #fff;
  border: 1px solid #e5e7eb;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #374151;
}
.svc-section.dark .pill {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.7);
}

/* ─── WRAPPER ────────────────────────────────────────────────── */
.wrapper-container {
  background-color: #fff;
}
.wrapper {
  width: 1000px;
  margin: 0 auto;
  position: relative;
}

/* ─── Search ────────────────────────────────────────────────── */
.search-box {
  position: relative;
}

.search-box .btn-search {
  position: absolute;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
}

.btn-search {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--gold), #e8b84b);
  color: var(--ink);
  padding: 17px 30px;
  border-radius: 15px;
  font-weight: 700;
  transition:
    transform 0.25s,
    box-shadow 0.25s;
  border: none;
  cursor: pointer;
}

.search {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #fff;
  padding: 30px 24px;
}

input[type="search"] {
  padding: 20px 15px;
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 15px;
  outline: none;
  transition: 0.3s;
}

input[type="search"]:focus {
  border-color: #007bff;
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

/* ─── FOOTER ────────────────────────────────────────────────── */
footer {
  background: #080a0e;
  color: #fff;
  padding: 72px 24px 32px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}

.footer-brand {
  font-family: var(--serif);
  font-size: 1.8rem;
  margin-bottom: 16px;
}
.footer-brand span {
  color: var(--gold);
}
.footer-logo {
  height: 44px;
  width: auto;
  object-fit: contain;
  margin-bottom: 16px;
}
.footer-desc {
  font-size: 0.875rem;
  color: #f0f0f0;
  line-height: 1.7;
  margin-bottom: 24px;
}

.footer-social {
  display: flex;
  gap: 12px;
}
.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition:
    border-color 0.2s,
    color 0.2s;
}
.footer-social a:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.footer-col h2 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 20px;
}
.footer-col ul {
  list-style: none;
}
.footer-col ul li {
  margin-bottom: 10px;
}
.footer-col ul a {
  font-size: 0.875rem;
  color: #f0f0f0;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-col ul a:hover {
  color: var(--gold);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: #f0f0f0;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom a {
  color: #f0f0f0;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-bottom a:hover {
  color: var(--gold);
}

/* ─── BACK TO TOP ───────────────────────────────────────────── */
.back-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 99;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(201, 168, 76, 0.4);
  opacity: 0;
  transition:
    opacity 0.3s,
    transform 0.25s,
    box-shadow 0.25s;
}
.back-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(201, 168, 76, 0.5);
}

/* ─── Responsive : tablette ─────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .nav-links {
    display: none;
    flex-direction: column;
    gap: 0;
  }
  .nav-burger {
    display: flex;
  }

  /* Menu mobile ouvert */
  .nav-links.is-open {
    display: flex;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(247, 245, 240, 0.98);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(201, 168, 76, 0.2);
    padding: 16px 24px 24px;
    box-shadow: var(--shadow-md);
  }
  .nav-links.is-open a {
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    font-size: 1rem;
  }
  .nav-links.is-open a:last-child {
    border-bottom: none;
    margin-top: 8px;
  }
  .nav-links.is-open .nav-cta {
    width: 100%;
    justify-content: center;
    margin-top: 8px;
  }
}

@media (min-width: 1400px) {
  .wrapper {
    width: 1170px !important;
  }
}
