/* ═══════════════════════════════════════════════════════════════
   CYBER ID — main.css  v2.0
   Architecture : Reset → Variables → Base → Accessibilité →
                  Utilitaires → Composants → Sections → Responsive
   WordPress    : wp_enqueue_style('cyber-id', get_template_directory_uri()
                  . '/assets/css/main.css', [], '2.0.0');
   Mobile-first : styles de base = mobile, min-width pour desktop
   ═══════════════════════════════════════════════════════════════ */


/* ── 1. RESET ─────────────────────────────────────────────── */
*, *::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: 'Inter', sans-serif; color: var(--dark-3); background: #fff; line-height: 1.6; }
ul, ol { list-style: none; }
a { text-decoration: none; color: inherit; }
img, svg { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }
address { font-style: normal; }
blockquote, cite { font-style: normal; }


/* ── 2. CSS CUSTOM PROPERTIES ────────────────────────────── */
:root {
  --blue:        #0984E3;
  --blue-dark:   #0766B5;
  --blue-light:  #E8F4FD;
  --dark:        #060E1F;
  --dark-2:      #0D1B35;
  --dark-3:      #1A2942;
  --yellow:      #F6C90E;
  --gray:        #64748B;
  --gray-light:  #F1F5F9;
  --white:       #FFFFFF;

  --radius-sm:   6px;
  --radius-md:   10px;
  --radius-lg:   12px;

  --shadow-sm:   0 2px 8px rgba(0,0,0,.06);
  --shadow-md:   0 8px 30px rgba(0,0,0,.1);
  --shadow-blue: 0 6px 20px rgba(9,132,227,.3);

  --transition:  .25s ease;
  --container:   1200px;
}


/* ── 3. BASE TYPOGRAPHY ──────────────────────────────────── */
h1, h2, h3, h4 { line-height: 1.2; color: var(--dark-3); }
p { line-height: 1.7; }


/* ── 4. ACCESSIBILITÉ ────────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--blue);
  color: #fff;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 700;
  z-index: 9999;
  transition: top .2s;
}
.skip-link:focus { top: 0; }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 3px;
}
:focus:not(:focus-visible) { outline: none; }


/* ── 5. UTILITAIRES ──────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.section-tag {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.section-tag::before {
  content: '';
  display: block;
  width: 24px; height: 2px;
  background: var(--blue);
}

.section-title {
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 800;
  color: var(--dark-3);
  margin-bottom: 18px;
}
.section-title span { color: var(--blue); }

.section-body {
  color: var(--gray);
  font-size: 15px;
  line-height: 1.8;
  max-width: 520px;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-header .section-body { margin: 0 auto; }

.btn-full { width: 100%; justify-content: center; }


/* ── 6. COMPOSANTS — BOUTONS ─────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  border: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: var(--shadow-blue);
}
.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(9,132,227,.4);
}

.btn-outline {
  border-color: rgba(255,255,255,.7);
  color: #fff;
}
.btn-outline:hover,
.btn-outline:focus-visible {
  background: rgba(255,255,255,.12);
}

.btn-outline-blue {
  border-color: var(--blue);
  color: var(--blue);
  background: transparent;
}
.btn-outline-blue:hover,
.btn-outline-blue:focus-visible {
  background: var(--blue);
  color: #fff;
}


/* ── 7. ANIMATIONS ───────────────────────────────────────── */
.reveal, .reveal-left, .reveal-right {
  opacity: 0;
  transition: opacity .65s ease, transform .65s ease;
}
.reveal       { transform: translateY(36px); }
.reveal-left  { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }

.reveal.visible,
.reveal-left.visible,
.reveal-right.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-left, .reveal-right {
    opacity: 1; transform: none; transition: none;
  }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}


/* ── 8. NAVBAR ───────────────────────────────────────────── */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
}

#navbar {
  padding: 16px 0;
  transition: all .3s ease;
}
#navbar.scrolled {
  background: var(--dark);
  box-shadow: 0 2px 20px rgba(0,0,0,.35);
  padding: 12px 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-logo { height: 44px; width: auto; }
.nav-logo-dark { display: none; }
#navbar.scrolled .nav-logo-light { display: none; }
#navbar.scrolled .nav-logo-dark { display: block; }

/* Mobile toggle */
.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  border-radius: var(--radius-sm);
}
.toggle-bar {
  display: block;
  width: 22px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all .25s ease;
}
#navbar.scrolled .toggle-bar { background: var(--dark-3); }

.nav-toggle[aria-expanded="true"] .toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Nav menu — mobile */
.nav-menu {
  display: none;
  flex-direction: column;
  gap: 0;
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  background: var(--white);
  box-shadow: 0 8px 30px rgba(0,0,0,.12);
  padding: 16px 0;
}
.nav-menu.open { display: flex; }
.nav-menu li a {
  display: block;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 500;
  color: var(--dark-3);
  border-left: 3px solid transparent;
  transition: all .2s;
}
.nav-menu li a:hover,
.nav-menu li a:focus-visible {
  color: var(--blue);
  border-left-color: var(--blue);
  background: var(--blue-light);
}

.nav-cta { display: none; }


/* ── 9. HERO ──────────────────────────────────────────────── */
#hero {
  background: var(--dark);
  background-image:
    radial-gradient(ellipse 70% 60% at 80% 50%, rgba(9,132,227,.18) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(9,132,227,.08) 0%, transparent 60%);
  padding: 110px 0 70px;
  position: relative;
  overflow: hidden;
}
#hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  gap: 48px;
  position: relative;
  z-index: 1;
}

.hero-content { text-align: center; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(9,132,227,.15);
  border: 1px solid rgba(9,132,227,.35);
  color: #60B8FF;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: 99px;
  margin-bottom: 24px;
}
.hero-badge .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--blue);
  animation: pulse 2s infinite;
}

.hero-h1 {
  font-size: clamp(30px, 7vw, 58px);
  font-weight: 900;
  line-height: 1.12;
  color: #fff;
  margin-bottom: 22px;
}
.hero-h1 span { color: var(--blue); }

.hero-sub {
  color: rgba(255,255,255,.65);
  font-size: 16px;
  line-height: 1.75;
  max-width: 480px;
  margin: 0 auto 36px;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 40px;
}

.hero-phone {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,.1);
}
.phone-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(9,132,227,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.phone-label { font-size: 11px; color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 2px; }
.phone-number { font-size: 18px; font-weight: 700; color: #fff; }

/* Hero visual — réduit sur mobile */
.hero-visual { display: flex; align-items: center; justify-content: center; }

/* Floats plus petits sur mobile */
.hero-float { padding: 7px 10px; gap: 7px; }
.float-icon  { width: 26px; height: 26px; font-size: 12px; }
.float-num   { font-size: 13px; }
.float-label { font-size: 9px; }

/* Positions hors du cercle-logo (ring 280px, inner 180px → marge 50px) */
.hero-float-1 { bottom: 5px;  left: 20px; }
.hero-float-2 { top: 0;       right: -8px; }
.hero-float-3 { bottom: 10px; right: -8px; left: auto; transform: none; }

.hero-ring {
  width: 280px; height: 280px;
  border-radius: 50%;
  border: 2px solid rgba(9,132,227,.3);
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.hero-ring::before {
  content: ''; position: absolute; inset: 16px;
  border-radius: 50%;
  border: 1px dashed rgba(9,132,227,.2);
}
.hero-ring-inner {
  width: 180px; height: 180px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(9,132,227,.4);
  background: var(--dark-2);
  display: flex; align-items: center; justify-content: center;
}
.hero-ring-inner img { width: 115px; height: auto; }

.hero-float {
  position: absolute;
  background: #fff;
  border-radius: var(--radius-md);
  padding: 8px;
  box-shadow: 0 8px 30px rgba(0,0,0,.2);
  display: flex; align-items: center; gap: 10px;
  z-index: 2;
}
.hero-float-1 { bottom: 20px; left: -16px; }
.hero-float-2 { top: 40px; right: -16px; }
.hero-float-3 { top: 50%; left: -16px; transform: translateY(-50%); }

.float-icon {
  width: 34px; height: 34px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
}
.float-icon.blue { background: var(--blue-light); }
.float-icon.yellow { background: #FFF9E6; }
.float-icon.green { background: #E8F8F0; }
.float-num { font-size: 16px; font-weight: 800; color: var(--dark-3); line-height: 1; }
.float-label { font-size: 10px; color: var(--gray); }

.orbit-dot { position: absolute; border-radius: 50%; background: var(--blue); }


/* ── 10. FEATURES STRIP ──────────────────────────────────── */
#features {
  background: #fff;
  padding-bottom: 72px;
}

.features-grid {
  display: flex;
  flex-direction: column;
  margin-top: -52px;
  position: relative;
  z-index: 2;
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.feature-card {
  background: #fff;
  padding: 32px 28px;
  border-bottom: 1px solid #EEF2F7;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  transition: background var(--transition);
}
.feature-card:last-child { border-bottom: none; }
.feature-card:hover { background: var(--blue); }
.feature-card:hover .fc-title,
.feature-card:hover .fc-body { color: rgba(255,255,255,.9) !important; }
.feature-card:hover .fc-icon { background: rgba(255,255,255,.15); }

.fc-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  background: var(--blue-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
  transition: background var(--transition);
}
.fc-title { font-size: 15px; font-weight: 700; color: var(--dark-3); margin-bottom: 6px; transition: color var(--transition); }
.fc-body { font-size: 13px; color: var(--gray); line-height: 1.6; transition: color var(--transition); }


/* ── 11. ABOUT ───────────────────────────────────────────── */
#about { padding: 80px 0; background: #fff; }

.about-grid { display: flex; flex-direction: column; gap: 48px; }

.about-img-wrap { display: block; position: relative; }

/* ── MOBILE (max-width: 1023px) ─────────────────────────────── */
@media (max-width: 1023px) {

  /* Empêche tout scroll horizontal */
  body { overflow-x: hidden; }

  /* Hero floating cards — taille réduite */
  .hero-float  { padding: 6px 8px; gap: 6px; }
  .float-icon  { width: 26px; height: 26px; font-size: 12px; }
  .float-num   { font-size: 13px; }
  .float-label { font-size: 9px; line-height: 1.3; }

  /* Hero floating cards — serrées autour du ring, jamais sur le logo
     float-2 : au-dessus centré | float-1 : dessous gauche | float-3 : dessous de float-1, droite */
  .hero-float-2 { top: 10px;   bottom: auto;  left: 50%; right: auto; transform: translateX(-50%); }
  .hero-float-1 { top: auto;   bottom: 10px;  left: 10px; right: auto; transform: none; }
  .hero-float-3 { top: auto;   bottom: -38px; left: auto; right: 10px; transform: none; }

  /* Espace supplémentaire entre le bloc texte/numéro et le visuel */
  .hero-visual { margin-top: 32px; }

  /* Espace pour la carte qui dépasse légèrement sous le ring */
  #hero { padding-bottom: 100px; }

  /* Contact — centrage du bloc intro sur mobile */
  .contact-info { text-align: center; }
  .contact-info .section-tag { align-items: center; }
  .contact-info .contact-title,
  .contact-info .contact-desc { text-align: center; }

  /* About — badge ne sort pas du cadre */
  .about-badge { left: 10px; bottom: 16px; }

  /* About — retire le décor qui déborde à droite sur petit écran */
  .about-img-frame::after { display: none; }

  /* Stats — texte des chiffres légèrement réduit */
  .stat-num { font-size: 38px; }
  .stat-plus { font-size: 22px; }
}

.about-img-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}
.about-img-frame img { width: 100%; height: 420px; object-fit: cover; }
.about-img-frame::after {
  content: '';
  position: absolute;
  bottom: -14px; right: -14px;
  width: 100%; height: 100%;
  border: 3px solid var(--blue);
  border-radius: var(--radius-lg);
  z-index: -1;
}

.about-badge {
  position: absolute;
  bottom: 28px; left: -20px;
  background: var(--yellow);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  z-index: 2;
  display: flex; align-items: center; gap: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
}
.badge-num { font-size: 28px; font-weight: 900; color: var(--dark-3); line-height: 1; }
.badge-text { font-size: 12px; font-weight: 600; color: var(--dark-3); }

.about-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid #EEF2F7;
  margin: 28px 0 20px;
  overflow-x: auto;
}
.tab-btn {
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all .2s;
  white-space: nowrap;
}
.tab-btn.active { color: var(--blue); border-bottom-color: var(--blue); }
.tab-btn:hover { color: var(--blue); }

.tab-content { display: none; }
.tab-content.active { display: block; }
[hidden] { display: none !important; }

.tab-body { font-size: 14px; color: var(--gray); line-height: 1.8; margin-bottom: 20px; }
.tab-body-highlight { font-weight: 700; color: var(--blue); font-size: 15px; }

.progress-item { margin-bottom: 16px; }
.progress-header {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  color: var(--dark-3);
  margin-bottom: 7px;
}
.progress-track { height: 6px; background: #EEF2F7; border-radius: 99px; overflow: hidden; }
.progress-fill {
  height: 100%;
  border-radius: 99px;
  background: var(--blue);
  width: 0%;
  transition: width 1.2s ease;
}


/* ── 12. SERVICES ────────────────────────────────────────── */
#services { padding: 80px 0; background: var(--gray-light); }

.services-header { text-align: center; margin-bottom: 48px; }

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.service-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 32px 24px;
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
  transition: all .3s ease;
}
.service-card:hover {
  border-color: var(--blue);
  box-shadow: 0 16px 48px rgba(9,132,227,.12);
  transform: translateY(-4px);
}
.service-card:hover .sc-arrow {
  color: #fff;
  background: var(--blue);
  border-color: var(--blue);
}
.service-card:hover .service-icon { background: var(--blue); }

.service-num {
  position: absolute; top: -10px; right: 20px;
  font-size: 72px; font-weight: 900;
  color: #F1F5F9; line-height: 1;
  user-select: none; pointer-events: none;
}
.service-icon {
  width: 56px; height: 56px;
  border-radius: var(--radius-md);
  background: var(--blue-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; margin-bottom: 18px;
  position: relative; z-index: 1;
  transition: background var(--transition);
}
.sc-title {
  font-size: 16px; font-weight: 700; color: var(--dark-3);
  margin-bottom: 10px; position: relative; z-index: 1;
}
.sc-body {
  font-size: 13px; color: var(--gray); line-height: 1.7;
  margin-bottom: 20px; position: relative; z-index: 1;
}
.sc-arrow {
  display: inline-flex;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1.5px solid #CBD5E1;
  align-items: center; justify-content: center;
  color: var(--gray); font-size: 14px;
  transition: all var(--transition);
  position: relative; z-index: 1;
}


/* ── 13. STATS ───────────────────────────────────────────── */
#stats {
  background: linear-gradient(135deg, #0766B5 0%, #0984E3 50%, #38BDF8 100%);
  padding: 72px 0;
  position: relative; overflow: hidden;
}
#stats::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 28px 28px;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  position: relative; z-index: 1;
}

.stat-item {
  text-align: center;
  padding: 24px 16px;
  border-bottom: 1px solid rgba(255,255,255,.15);
}
.stat-item:nth-child(odd) { border-right: 1px solid rgba(255,255,255,.15); }
.stat-item:nth-last-child(-n+2) { border-bottom: none; }

.stat-num { font-size: 48px; font-weight: 900; color: #fff; line-height: 1; margin-bottom: 6px; }
.stat-plus { font-size: 28px; color: var(--yellow); }
.stat-label { font-size: 13px; color: rgba(255,255,255,.75); font-weight: 500; }


/* ── 14. LOGOS ───────────────────────────────────────────── */
#logos {
  padding: 52px 0;
  background: #fff;
  border-top: 1px solid #EEF2F7;
  border-bottom: 1px solid #EEF2F7;
}
.logos-label {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 28px;
}
.logos-carousel {
  display: flex;
  align-items: center;
  gap: 16px;
}
.logos-viewport {
  overflow: hidden;
  flex: 1;
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}
.logos-track {
  display: flex;
  align-items: center;
  gap: 48px;
  width: max-content;
  will-change: transform;
}
.logos-track img {
  max-height: 52px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  filter: grayscale(1) opacity(.5);
  transition: filter var(--transition);
  flex-shrink: 0;
}
.logos-track img:hover { filter: grayscale(0) opacity(1); }
.logos-arrow {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid #d0d5dd;
  background: transparent;
  color: #d0d5dd;
  font-size: 26px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.logos-arrow:hover { background: #d0d5dd; color: #fff; }


/* ── 14a. NOS PARTENAIRES TECHNIQUES ── */
#partenaires-techniques {
  padding: 52px 0;
  background: #fff;
  border-top: 1px solid #EEF2F7;
  border-bottom: 1px solid #EEF2F7;
}

#partenaires-techniques .section-header {
  margin-bottom: 28px;
}


/* ── 14b. PARTENAIRES TECHNIQUES ─────────────────────────── */
#tech-partners {
  padding: 48px 0;
  background: var(--gray-light);
  border-top: 1px solid #EEF2F7;
  border-bottom: 1px solid #EEF2F7;
}

.tech-partners-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 24px 40px;
}

.tech-partner-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.tech-partner-badge img {
  max-height: 44px;
  width: auto;
  max-width: 100px;
  object-fit: contain;
  filter: grayscale(1) opacity(.5);
  transition: filter var(--transition);
}
.tech-partner-badge:hover img { filter: grayscale(0) opacity(1); }

.tech-partner-badge span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gray);
}

.tp-logo {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  font-weight: 900;
  color: #fff;
  opacity: .55;
  transition: opacity var(--transition);
}
.tech-partner-badge:hover .tp-logo { opacity: 1; }

.tp-google { background: #4285F4; }
.tp-meta   { background: #0866FF; }
.tp-crm    { background: var(--dark-3); font-size: 15px; }


/* ── 15. RÉALISATIONS ────────────────────────────────────── */
#realisations { padding: 80px 0; background: #fff; }

.portfolio-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 40px;
}
.filter-btn {
  padding: 8px 20px;
  border-radius: 99px;
  border: 1.5px solid #CBD5E1;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray);
  transition: all var(--transition);
}
.filter-btn:hover,
.filter-btn.active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.portfolio-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: #fff;
  transition: transform .3s, box-shadow .3s;
}
.portfolio-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(9,132,227,.15);
}
.portfolio-card.hidden { display: none; }

.portfolio-img { position: relative; overflow: hidden; }
.portfolio-img img {
  width: 100%; height: 220px;
  object-fit: cover;
  transition: transform .4s ease;
  display: block;
}
.portfolio-card:hover .portfolio-img img { transform: scale(1.05); }

.portfolio-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(6,14,31,.8) 0%, transparent 60%);
  display: flex; align-items: flex-end;
  padding: 20px;
  opacity: 0;
  transition: opacity .3s;
}
.portfolio-card:hover .portfolio-overlay { opacity: 1; }

.portfolio-img-no-photo {
  position: relative;
  height: 220px;
  background: linear-gradient(135deg, #0f1e38 0%, #1a3a5c 60%, #0a2a4a 100%);
  overflow: hidden;
}
.portfolio-img-no-photo::before {
  content: '🏠';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  font-size: 48px;
  opacity: .15;
}

/* Contact map */
.contact-map { margin-top: 28px; }
.map-link {
  display: block;
  text-decoration: none;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,.1);
  transition: transform var(--transition), box-shadow var(--transition);
}
.map-link:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.15); }
.map-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--blue);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 0 0 12px 12px;
}
.map-arrow { font-size: 16px; }

.portfolio-result {
  display: flex; flex-direction: column;
}
.result-num { font-size: 32px; font-weight: 900; color: var(--yellow); line-height: 1; }
.result-label { font-size: 12px; color: rgba(255,255,255,.8); }

.portfolio-info { padding: 20px 22px; }
.portfolio-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-light);
  padding: 4px 10px;
  border-radius: 99px;
  margin-bottom: 10px;
}
.portfolio-title { font-size: 17px; font-weight: 700; color: var(--dark-3); margin-bottom: 8px; }
.portfolio-desc { font-size: 13px; color: var(--gray); line-height: 1.6; }


/* ── 16. TÉMOIGNAGES ─────────────────────────────────────── */
#testimonials { padding: 80px 0; background: var(--gray-light); }

.testi-header { text-align: center; margin-bottom: 48px; }

.testi-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.testi-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: 0 4px 20px rgba(0,0,0,.05);
  transition: transform .3s, box-shadow .3s;
}
.testi-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(9,132,227,.1);
}
.testi-card.featured { background: var(--blue); }

.testi-quote {
  font-size: 56px; font-weight: 900;
  color: var(--blue-light); line-height: .8;
  margin-bottom: 14px;
}
.testi-card.featured .testi-quote { color: rgba(255,255,255,.2); }

.testi-text { font-size: 14px; color: var(--gray); line-height: 1.8; margin-bottom: 16px; }
.testi-card.featured .testi-text { color: rgba(255,255,255,.8); }

.testi-stars { color: var(--yellow); font-size: 14px; margin-bottom: 16px; }

.testi-author {
  display: flex; align-items: center; gap: 12px;
  border-top: 1px solid #EEF2F7;
  padding-top: 18px; margin-top: 18px;
}
.testi-card.featured .testi-author { border-top-color: rgba(255,255,255,.2); }

.testi-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--blue-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700;
  color: var(--blue); flex-shrink: 0;
}
.testi-card.featured .testi-avatar { background: rgba(255,255,255,.2); color: #fff; }

.testi-name { font-size: 14px; font-weight: 700; color: var(--dark-3); display: block; }
.testi-card.featured .testi-name { color: #fff; }

.testi-role { font-size: 12px; color: var(--gray); }
.testi-card.featured .testi-role { color: rgba(255,255,255,.6); }


/* ── 17. CTA BAND ────────────────────────────────────────── */
#cta-band {
  background: var(--dark);
  padding: 72px 0;
  position: relative; overflow: hidden;
}
#cta-band::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 80% 50%, rgba(9,132,227,.2), transparent);
}

.cta-band-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  text-align: center;
  position: relative; z-index: 1;
}

.cta-h2 {
  font-size: clamp(22px, 4vw, 38px);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}
.cta-h2 span { color: var(--blue); }
.cta-sub { color: rgba(255,255,255,.6); margin-top: 10px; font-size: 15px; }

.cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  flex-shrink: 0;
}


/* ── 18. FAQ ─────────────────────────────────────────────── */
#faq { padding: 80px 0; background: #fff; }

.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  border: 1.5px solid #E2E8F0;
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition);
}
.faq-item:has(.faq-question[aria-expanded="true"]) {
  border-color: var(--blue);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  background: none;
  border: none;
  text-align: left;
  font-size: 15px;
  font-weight: 600;
  color: var(--dark-3);
  transition: color var(--transition);
}
.faq-question:hover { color: var(--blue); }
.faq-question[aria-expanded="true"] { color: var(--blue); }

.faq-icon {
  font-size: 22px;
  font-weight: 300;
  color: var(--blue);
  flex-shrink: 0;
  width: 24px;
  text-align: center;
  transition: transform var(--transition);
  line-height: 1;
}
.faq-question[aria-expanded="true"] .faq-icon { transform: rotate(45deg); }

.faq-answer {
  padding: 0 20px 18px;
}
.faq-answer p {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.8;
}


/* ── 19. CONTACT ─────────────────────────────────────────── */
#contact { padding: 80px 0; background: var(--gray-light); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

.contact-title {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 800;
  color: var(--dark-3);
  margin-bottom: 14px;
  line-height: 1.2;
}
.contact-title span { color: var(--blue); }

.contact-desc {
  color: var(--gray);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 32px;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-item { display: flex; align-items: flex-start; gap: 14px; }

.ci-icon {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--blue-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
}

.ci-label {
  font-size: 11px;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 3px;
  display: block;
}
.ci-value { font-size: 14px; font-weight: 600; color: var(--dark-3); }
.ci-value a { color: var(--dark-3); }
.ci-value a:hover { color: var(--blue); }

.contact-form-wrap {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  box-shadow: var(--shadow-sm);
}

.form-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--dark-3);
  margin-bottom: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--dark-3);
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid #E2E8F0;
  background: #fff;
  font-size: 14px;
  color: var(--dark-3);
  outline: none;
  transition: border-color .2s;
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--blue);
}
.form-group textarea { resize: vertical; min-height: 100px; }

#form-status {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
  min-height: 20px;
}
#form-status.success { color: #16a34a; }
#form-status.error { color: #dc2626; }


/* ── 20. FOOTER ──────────────────────────────────────────── */
#site-footer { background: var(--dark); padding: 64px 0 0; }

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding-bottom: 52px;
}

.footer-logo { height: 48px; width: auto; margin-bottom: 18px; }
.footer-desc { font-size: 14px; color: rgba(255,255,255,.5); line-height: 1.8; margin-bottom: 22px; }

.footer-socials { display: flex; gap: 10px; }
.social-btn {
  width: 36px; height: 36px; border-radius: 50%;
  border: none;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  color: rgba(255,255,255,.6); font-size: 13px;
  transition: all .2s;
}
.social-btn img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .85;
  transition: opacity .2s, transform .2s;
}
.social-btn:hover { border-color: var(--blue); }
.social-btn:hover img { opacity: 1; transform: scale(1.08); }

.footer-heading {
  font-size: 15px; font-weight: 700; color: #fff;
  margin-bottom: 20px;
  position: relative; padding-bottom: 12px;
}
.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 28px; height: 2px;
  background: var(--blue);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a {
  font-size: 14px;
  color: rgba(255,255,255,.55);
  transition: color .2s;
  display: flex; align-items: center; gap: 8px;
}
.footer-links a::before { content: '›'; color: var(--blue); font-size: 16px; }
.footer-links a:hover { color: #fff; }

.footer-hours {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}
.footer-hours li {
  font-size: 14px;
  color: rgba(255,255,255,.55);
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
  display: flex; justify-content: space-between; gap: 16px;
}
.footer-hours li span:last-child { color: #fff; font-weight: 500; }

.newsletter-label { font-size: 13px; color: rgba(255,255,255,.5); margin-bottom: 10px; }

.footer-newsletter-form { display: flex; }
.newsletter-input {
  flex: 1;
  padding: 12px 14px;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  border: none;
  background: rgba(255,255,255,.08);
  color: #fff;
  font-size: 14px;
  outline: none;
  min-width: 0;
}
.newsletter-input::placeholder { color: rgba(255,255,255,.4); }
.newsletter-btn {
  padding: 12px 18px;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 18px;
  transition: background .2s;
}
.newsletter-btn:hover { background: var(--blue-dark); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  text-align: center;
}
.footer-copy { font-size: 13px; color: rgba(255,255,255,.4); }
.footer-legal { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; }
.footer-legal a { font-size: 13px; color: rgba(255,255,255,.4); }
.footer-legal a:hover { color: rgba(255,255,255,.8); }


/* ══════════════════════════════════════════════════════════════
   RESPONSIVE — TABLET  (min-width: 600px)
   ══════════════════════════════════════════════════════════════ */
@media (min-width: 600px) {

  .features-grid {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .feature-card {
    flex: 1 1 calc(50% - 1px);
    border-right: 1px solid #EEF2F7;
    border-bottom: 1px solid #EEF2F7;
  }
  .feature-card:nth-child(even) { border-right: none; }

  .services-grid { grid-template-columns: 1fr 1fr; }
  .testi-grid { grid-template-columns: 1fr 1fr; }
  .portfolio-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; }
}


/* ══════════════════════════════════════════════════════════════
   RESPONSIVE — DESKTOP  (min-width: 1024px)
   ══════════════════════════════════════════════════════════════ */
@media (min-width: 1024px) {

  .container { padding: 0 24px; }

  /* Navbar */
  .nav-toggle { display: none; }
  .nav-menu {
    display: flex !important;
    flex-direction: row;
    gap: 28px;
    position: static;
    background: none;
    box-shadow: none;
    padding: 0;
  }
  .nav-menu li a {
    display: inline;
    padding: 0;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255,255,255,.85);
    border-left: none;
    border-bottom: 2px solid transparent;
  }
  .nav-menu li a:hover { color: #fff; background: none; border-left: none; border-bottom-color: var(--blue); }
  #navbar.scrolled .nav-menu li a { color: rgba(255,255,255,.85); }
  #navbar.scrolled .nav-menu li a:hover { color: #fff; }
  .nav-cta { display: inline-flex; }

  /* Hero */
  #hero { padding: 130px 0 90px; }
  .hero-inner {
    flex-direction: row;
    align-items: center;
    gap: 60px;
  }
  .hero-content { text-align: left; flex: 1; }
  .hero-sub { margin: 0 0 36px; }
  .hero-ctas { justify-content: flex-start; }
  .hero-phone { justify-content: flex-start; }
  .hero-visual { display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
  .hero-ring { width: 380px; height: 380px; }
  .hero-ring-inner { width: 300px; height: 300px; }
  .hero-ring-inner img { width: 180px; }
  /* Restaurer floats desktop */
  .hero-float { padding: 8px; gap: 10px; }
  .float-icon  { width: 34px; height: 34px; font-size: 16px; }
  .float-num   { font-size: 16px; }
  .float-label { font-size: 10px; }
  .hero-float-1 { bottom: 20px; left: -16px; }
  .hero-float-2 { top: 40px;    right: -16px; }
  .hero-float-3 { top: 50%; bottom: auto; left: -16px; right: auto; transform: translateY(-50%); }

  /* Features */
  .features-grid {
    flex-direction: row;
  }
  .feature-card {
    flex: 1;
    border-right: 1px solid #EEF2F7;
    border-bottom: none;
  }
  .feature-card:last-child { border-right: none; }

  /* About */
  #about { padding: 100px 0; }
  .about-grid {
    flex-direction: row;
    gap: 80px;
    align-items: center;
  }
  .about-img-wrap { display: block; position: relative; flex: 1; }
  .about-content { flex: 1; }

  /* Services */
  #services { padding: 100px 0; }
  .services-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }

  /* Stats */
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .stat-item { border-right: 1px solid rgba(255,255,255,.2); border-bottom: none; }
  .stat-item:last-child { border-right: none; }
  .stat-item:nth-child(odd) { border-right: 1px solid rgba(255,255,255,.2); }

  /* Portfolio */
  #realisations { padding: 100px 0; }
  .portfolio-grid { grid-template-columns: repeat(3, 1fr); }
  .portfolio-img img { height: 240px; }

  /* Testimonials */
  #testimonials { padding: 100px 0; }
  .testi-grid { grid-template-columns: repeat(3, 1fr); }

  /* CTA band */
  .cta-band-inner {
    flex-direction: row;
    align-items: center;
    text-align: left;
    justify-content: space-between;
  }

  /* FAQ */
  #faq { padding: 100px 0; }

  /* Contact */
  #contact { padding: 100px 0; }
  .contact-grid { grid-template-columns: 1fr 1.2fr; gap: 80px; }
  .contact-form-wrap { padding: 40px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 48px; }
}
