/* =============================================
   RESET & ROOT
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:   #140f4b;
  --heading:   #170f5f;
  --accent:    #3b28cc;
  --white:     #ffffff;
  --off:       #f7f7fb;
  --border:    #e4e4ee;
  --text:      #170f5f;
  --body:      #3d3d5c;
  --muted:     #7070a0;
  --font:      'DM Sans', sans-serif;
  --r:         4px;
  --r-pill:    50px;
  --shadow:    0 2px 16px rgba(20,15,75,.07);
  --t:         all .22s ease;
  --max:       1200px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--body);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 40px;
}

/* =============================================
   TYPOGRAPHY
   ============================================= */
h1, h2, h3, h4 {
  font-family: var(--font);
  color: var(--heading);
  line-height: 1.2;
}

h1 {
  font-size: clamp(1.9rem, 3.2vw, 2.8rem);
  font-weight: 400;
}

h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.5rem);
  font-weight: 400;
}

h3 { font-size: 1rem; font-weight: 600; }

/* Medtronic eyebrow — sentence case, 16px, dark gray, no caps */
.eyebrow {
  display: block;
  font-size: 16px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
  color: #3c3c3c;
  margin-bottom: 10px;
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-size: .9rem;
  font-weight: 500;
  padding: 11px 28px;
  border-radius: var(--r-pill);
  border: 1.5px solid transparent;
  transition: var(--t);
  cursor: pointer;
  white-space: nowrap;
}

.btn-outline {
  border-color: var(--heading);
  color: var(--heading);
  background: transparent;
}
.btn-outline:hover {
  background: var(--heading);
  color: var(--white);
}

.btn-text-link {
  border-color: transparent;
  color: var(--heading);
  background: transparent;
  padding-left: 0;
  padding-right: 0;
  font-weight: 600;
}
.btn-text-link::after { content: ' \2192'; transition: transform .2s ease; }
.btn-text-link:hover { opacity: .75; }

.btn-primary {
  background: var(--heading);
  color: var(--white);
  border-color: var(--heading);
}
.btn-primary:hover { background: var(--primary); border-color: var(--primary); }

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

/* =============================================
   HEADER — structure Medtronic exacte
   Rangée 1 : Logo | Search | Pays (fond blanc)
   Rangée 2 : Nav links (fond blanc, séparateur)
   ============================================= */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: 0 1px 0 var(--border);
}

/* --- Rangée 1 --- */
.header-top {
  display: flex;
  align-items: center;
  height: 64px;
  padding: 0 40px;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
  text-decoration: none;
}

.logo-mark { flex-shrink: 0; }

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-a3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--heading);
  letter-spacing: -.5px;
}

.logo-sub {
  font-size: 9px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-top: 3px;
}

/* Barre de recherche centrée */
.header-search {
  flex: 1;
  max-width: 520px;
  margin: 0 auto;
  position: relative;
}

.header-search input {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: var(--r-pill);
  padding: 9px 44px 9px 18px;
  font-family: var(--font);
  font-size: .875rem;
  color: var(--text);
  outline: none;
  background: var(--white);
  transition: border-color .2s ease;
}

.header-search input:focus { border-color: var(--heading); }

.search-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--heading);
  padding: 4px;
  display: flex;
  align-items: center;
}

/* Localisation France */
.header-location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .875rem;
  font-weight: 400;
  color: var(--heading);
  flex-shrink: 0;
  margin-left: auto;
}

/* --- Rangée 2 : Nav --- */
.header-nav {
  display: flex;
  align-items: center;
  height: 48px;
  padding: 0 40px;
  border-top: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  height: 100%;
  flex: 1;
}

.nav a {
  color: var(--heading);
  font-size: .9rem;
  font-weight: 600;
  padding: 0 22px 0 0;
  height: 100%;
  display: flex;
  align-items: center;
  border-bottom: 2px solid transparent;
  transition: var(--t);
  white-space: nowrap;
}

.nav a:hover {
  border-bottom-color: var(--heading);
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
  margin-left: auto;
  cursor: pointer;
}

.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--heading);
  border-radius: 2px;
}

/* =============================================
   HERO — split : texte gauche | image droite
   ============================================= */
.hero {
  padding-top: 112px; /* 64 header-top + 48 header-nav */
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - 112px);
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 72px 60px 72px 60px;
  background: var(--white);
}

.hero-content .eyebrow {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #3c3c3c;
  margin-bottom: 14px;
}

.hero-content h1 { margin-bottom: 20px; }

.hero-content > p {
  font-size: 1rem;
  color: var(--body);
  line-height: 1.78;
  margin-bottom: 36px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.hero-img-wrap {
  overflow: hidden;
}

.hero-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

/* =============================================
   SECTION GENERIQUE
   ============================================= */
.section { padding: 88px 0; }

.section-head-med {
  text-align: center;
  margin-bottom: 64px;
}

.section-head-med .eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 13px;
  font-weight: 600;
  color: #3c3c3c;
}

.section-line {
  width: 40px;
  height: 3px;
  background: var(--accent);
  margin: 0 auto 20px;
  border-radius: 2px;
}

.section-cta-center {
  text-align: center;
  margin-top: 52px;
}

/* =============================================
   SERVICES / ENGAGEMENTS
   ============================================= */
.services-section { background: var(--white); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
}

.svc {
  background: var(--white);
  padding: 40px 32px 44px;
  transition: background .22s ease;
}

.svc:hover { background: var(--off); }

.svc-num {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.svc h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 14px;
  line-height: 1.3;
}

.svc p {
  font-size: .875rem;
  color: var(--body);
  line-height: 1.78;
}

/* =============================================
   A PROPOS
   ============================================= */
.about-section { background: var(--white); }

.about-img-wrap {
  width: 100%;
  height: 55vh;
  min-height: 380px;
  overflow: hidden;
}

.about-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.about-body {
  background: var(--white);
  padding: 48px 60px 72px;
}

.about-body-inner { max-width: 720px; }

.about-body-inner h2 { margin-bottom: 18px; }

.about-body-inner p {
  font-size: .97rem;
  color: var(--body);
  line-height: 1.8;
  margin-bottom: 16px;
}

.clients-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.clients-wrap span {
  background: var(--off);
  color: var(--heading);
  font-size: 12px;
  font-weight: 500;
  padding: 5px 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
}

/* =============================================
   MARQUES
   ============================================= */
.marques {
  background: var(--white);
  padding: 64px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.marques-top {
  text-align: center;
  margin-bottom: 40px;
}

.marques-top h2 { font-size: 1.3rem; margin-bottom: 6px; }
.marques-top p { font-size: .875rem; color: var(--muted); }

.marquee-outer { position: relative; overflow: hidden; }

.fade-l, .fade-r {
  position: absolute;
  top: 0; bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}

.fade-l { left: 0; background: linear-gradient(to right, #fff, transparent); }
.fade-r { right: 0; background: linear-gradient(to left, #fff, transparent); }

@keyframes mscroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.marquee-track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: mscroll 28s linear infinite;
  align-items: center;
  padding: 4px 0;
}

.marquee-track:hover { animation-play-state: paused; }

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  flex-shrink: 0;
  opacity: .7;
  transition: opacity .22s ease;
}

.brand:hover { opacity: 1; }

.brand img {
  height: 36px;
  width: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.brand.text-only span {
  display: flex;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--heading);
}

.brand:not(.text-only) span { display: none; }

/* =============================================
   AVIS
   ============================================= */
.avis-section { background: var(--off); }

.avis-summary {
  display: flex;
  justify-content: center;
  margin-bottom: 48px;
}

.avis-score-block {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--white);
  padding: 20px 28px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
}

.avis-note-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avis-note {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--heading);
  line-height: 1;
}

.avis-stars-big { color: #fbbf24; font-size: 16px; letter-spacing: 1px; }
.avis-count { font-size: 12px; color: var(--muted); display: block; margin-top: 3px; }

.avis-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.avis-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 28px;
  transition: var(--t);
}

.avis-card:hover {
  box-shadow: 0 8px 32px rgba(20,15,75,.08);
  transform: translateY(-3px);
}

.avis-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.avis-stars { color: #fbbf24; font-size: 15px; letter-spacing: 1px; }
.avis-quote-icon { color: var(--border); }

.avis-text {
  font-size: .875rem;
  line-height: 1.75;
  color: var(--body);
  margin-bottom: 20px;
}

.avis-author { display: flex; align-items: center; gap: 12px; }

.avis-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--c, var(--accent));
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.avis-author-info { flex: 1; min-width: 0; }

.avis-author-info strong {
  display: block;
  font-size: .875rem;
  font-weight: 600;
  color: var(--heading);
}

.avis-author-info span { font-size: .75rem; color: var(--muted); }
.avis-google-g { margin-left: auto; flex-shrink: 0; }
.avis-google-logo { flex-shrink: 0; }

/* =============================================
   CONTACT
   ============================================= */
.contact-section { background: var(--white); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}

.contact-left h2 { margin-bottom: 16px; }

.contact-left > p {
  color: var(--body);
  font-size: .95rem;
  line-height: 1.75;
  margin-bottom: 36px;
}

.contact-infos { display: flex; flex-direction: column; gap: 20px; }

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

.cinfo-icon {
  width: 38px;
  height: 38px;
  background: var(--off);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--heading);
  flex-shrink: 0;
}

.cinfo strong {
  display: block;
  font-size: .875rem;
  font-weight: 600;
  color: var(--heading);
  margin-bottom: 3px;
}

.cinfo p { font-size: .85rem; color: var(--body); line-height: 1.6; }

.contact-form {
  background: var(--off);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 40px;
}

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

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

.field label {
  font-size: .8rem;
  font-weight: 600;
  color: var(--heading);
  text-transform: uppercase;
  letter-spacing: .5px;
}

.field input,
.field select,
.field textarea {
  font-family: var(--font);
  font-size: .9rem;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 10px 14px;
  outline: none;
  transition: border-color .2s ease;
  -webkit-appearance: none;
}

.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--heading); }

.field textarea { resize: vertical; min-height: 110px; }

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--primary);
  color: rgba(255,255,255,.7);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr;
  gap: 60px;
  padding-top: 60px;
  padding-bottom: 52px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.footer-logo { margin-bottom: 20px; }

.footer-desc {
  font-size: .875rem;
  line-height: 1.75;
  color: rgba(255,255,255,.55);
  max-width: 320px;
}

.footer h4 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255,255,255,.4);
  margin-bottom: 18px;
}

.footer ul { display: flex; flex-direction: column; gap: 10px; }

.footer ul a {
  font-size: .875rem;
  color: rgba(255,255,255,.65);
  transition: color .2s ease;
}

.footer ul a:hover { color: var(--white); }

.footer-bottom { padding: 20px 0; }

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-bottom span { font-size: .8rem; color: rgba(255,255,255,.35); }

/* =============================================
   REVEAL
   ============================================= */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .55s ease calc(var(--d, 0s)), transform .55s ease calc(var(--d, 0s));
}

.reveal.visible { opacity: 1; transform: translateY(0); }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .avis-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .header-top { padding: 0 20px; height: 56px; }
  .header-nav { padding: 0 20px; }
  .header-search { max-width: none; }
  .header-location { display: none; }
  .nav { display: none; }
  .burger { display: flex; }
  /* Hero : empilé sur mobile */
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 104px; /* 56+48 */
  }
  .hero-content { padding: 40px 20px 40px; }
  .hero-img-wrap { height: 55vw; min-height: 240px; }
  .hero-actions { gap: 16px; }
  .about-img-wrap { height: 50vw; min-height: 260px; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .avis-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .services-grid { grid-template-columns: 1fr; }
}
