/* =====================================================================
   Esaote Medical France — Support commercial IRM
   Charte graphique reprise de esaote.com (valeurs exactes du CSS live)
   Rouge Esaote #CD0000 · Anthracite #282828 · Police Gotham (subst. Montserrat)
   ===================================================================== */

:root {
  /* Couleurs de marque (extraites du CSS d'esaote.com) */
  --red: #cd0000;          /* --text-active : couleur cœur de marque */
  --red-logo: #cc0000;
  --red-bright: #fd0000;
  --red-crimson: #a50025;
  --grad-red: linear-gradient(90deg, #a50025 0%, #cd0000 55%, #fd0000 100%);

  --ink: #282828;          /* --text-normal : texte principal */
  --ink-soft: #575757;
  --muted: #878787;        /* texte secondaire */
  --white: #ffffff;
  --wash: #f7f7f7;         /* bande de section grise */
  --wash-2: #fbfbfd;
  --line: #ececec;         /* séparateurs */
  --line-2: #cccccc;       /* bordures inputs */

  --success-bg: #cdeaca; --success-bd: #58b548; --success-tx: #3b7826;

  /* Layout — quasi plein écran, marges latérales fines */
  --w-1: 100%;
  --w-2: 1440px;
  --pad-x: clamp(14px, 2.2vw, 48px);
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 4px rgba(0, 0, 0, .07);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, .10);
  --shadow-lg: 0 24px 70px rgba(0, 0, 0, .30);

  --font: "Montserrat", "Helvetica Neue", Arial, "Segoe UI", sans-serif;
}

/* ------------------------------ Reset ------------------------------ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--red); text-decoration: none; }
h1, h2, h3, h4 { margin: 0 0 .4em; line-height: 1.15; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1rem; }
ul { margin: 0; padding: 0; list-style: none; }

/* ------------------------------ Utils ------------------------------ */
.container { width: 100%; max-width: var(--w-1); margin: 0 auto; padding-inline: var(--pad-x); }
/* le bloc de titre reste lisible et centré même en pleine largeur */
.section__head { max-width: 820px; }
.section { padding: clamp(3.5rem, 7vw, 6.5rem) 0; }
.section--grey { background: var(--wash); }
.section--ink { background: var(--ink); color: var(--white); }
.section__head { max-width: 760px; margin: 0 auto clamp(2rem, 4vw, 3.5rem); text-align: center; }
.kicker {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--red); margin-bottom: .9rem;
}
.section__head h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); font-weight: 800; }
.section__head p { color: var(--muted); font-size: 1.05rem; }
.section--ink .section__head p { color: #cfcfcf; }

/* red rule bar (motif esaote) */
.rule { height: 5px; width: 64px; background: var(--grad-red); border-radius: 3px; }
.rule--center { margin: 1.1rem auto 0; }

/* ------------------------------ Buttons ------------------------------ */
.btn {
  --btn-bg: var(--red); --btn-fg: #fff; --btn-bd: var(--red);
  display: inline-flex; align-items: center; gap: .55rem;
  background: var(--btn-bg); color: var(--btn-fg); border: 2px solid var(--btn-bd);
  padding: .8rem 1.6rem; border-radius: 6px; font-weight: 700; font-size: .95rem;
  cursor: pointer; transition: transform .12s ease, background .15s ease, color .15s ease, box-shadow .15s ease;
  font-family: inherit; text-align: center; white-space: nowrap;
}
.btn:hover { background: var(--red-crimson); border-color: var(--red-crimson); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--red); }
.btn--ghost:hover { --btn-fg: #fff; }
.btn--light { --btn-bg: #fff; --btn-fg: var(--red); --btn-bd: #fff; }
.btn--light:hover { --btn-fg: #fff; background: rgba(255,255,255,.12); border-color: #fff; }
.btn--on-dark.btn--ghost { --btn-fg: #fff; --btn-bd: rgba(255,255,255,.6); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn--lg { padding: 1rem 2rem; font-size: 1.02rem; }

/* ------------------------------ Header ------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.96);
  backdrop-filter: saturate(1.1) blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-header__bar { display: flex; align-items: center; gap: 1.5rem; height: 72px; }
.brand { display: flex; align-items: center; gap: .75rem; }
.brand img { height: 30px; width: auto; }
.brand__tag {
  font-size: .62rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
  color: var(--muted); border-left: 1px solid var(--line-2); padding-left: .75rem;
}
.nav { display: flex; align-items: center; gap: 1.6rem; margin-left: auto; }
.nav a { color: var(--ink); font-weight: 600; font-size: .92rem; position: relative; }
.nav a:not(.btn):hover { color: var(--red); }
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0; background: var(--red); transition: width .2s ease;
}
.nav a:not(.btn):hover::after { width: 100%; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; margin-left: auto; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .2s; }

/* ------------------------------ Hero ------------------------------ */
.hero {
  position: relative; min-height: 620px; display: flex; align-items: center;
  color: #fff; overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(20,20,20,.82) 0%, rgba(30,30,30,.55) 45%, rgba(30,30,30,.15) 100%);
}
.hero .container { position: relative; z-index: 1; min-width: 0; }
.hero__inner { max-width: 640px; }
.hero .kicker { color: #ff6b6b; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 900; margin-bottom: .5rem; }
.hero h1 .accent { color: var(--red-bright); }
.hero__lead { font-size: clamp(1.05rem, 1.8vw, 1.3rem); color: #eaeaea; max-width: min(34em, 100%); margin-bottom: 1.8rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .9rem; }

/* ------------------------------ Piliers ------------------------------ */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.pillar {
  background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--red);
  border-radius: var(--radius); padding: 2rem 1.7rem; box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease;
}
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.pillar__icon {
  width: 56px; height: 56px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(205,0,0,.07); color: var(--red); margin-bottom: 1.1rem;
}
.pillar__icon svg { width: 30px; height: 30px; }
.pillar h3 { font-size: 1.25rem; font-weight: 800; }
.pillar p { color: var(--ink-soft); font-size: .96rem; margin: 0; }

/* ------------------------------ Produits ------------------------------ */
/* 4 IRM sur une seule ligne : tout visible d'un coup */
.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.product-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
  cursor: pointer; text-align: left; padding: 0; font-family: inherit; color: inherit;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: #ddd; }
.product-card:focus-visible { outline: 3px solid rgba(205,0,0,.4); outline-offset: 2px; }
.product-card__media {
  position: relative; aspect-ratio: 16 / 11; background: #f2f3f5 center/cover no-repeat;
  display: grid; place-items: center; overflow: hidden;
}
.product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.product-card:hover .product-card__media img { transform: scale(1.04); }
.product-card__tag {
  position: absolute; top: 12px; left: 12px; background: rgba(255,255,255,.94); color: var(--red);
  font-size: .7rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: .35rem .7rem; border-radius: 20px; box-shadow: var(--shadow-sm);
}
.product-card__body { padding: 1.4rem 1.5rem 1.6rem; border-top: 3px solid var(--red); flex: 1; display: flex; flex-direction: column; }
.product-card__body h3 { font-size: 1.4rem; font-weight: 800; margin-bottom: .1rem; }
.product-card__sub { color: var(--muted); font-size: .85rem; font-weight: 600; margin-bottom: .7rem; }
.product-card__pitch { color: var(--ink-soft); font-size: .93rem; margin-bottom: 1.1rem; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.product-card__cta { display: inline-flex; align-items: center; gap: .5rem; color: var(--red); font-weight: 700; font-size: .92rem; }
.product-card__cta svg { width: 16px; height: 16px; transition: transform .2s ease; }
.product-card:hover .product-card__cta svg { transform: translateX(4px); }

/* ------------------------------ Modale (façon StudApp, habillage Esaote) --- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000; display: none;
  background: rgba(0, 0, 0, .55); padding: 3vh 3vw;
  align-items: center; justify-content: center;
  opacity: 0; transition: opacity .18s ease;
}
.modal-overlay.is-open { display: flex; opacity: 1; }
.modal {
  background: #fff; border-radius: var(--radius-lg); width: min(1040px, 100%);
  max-height: 94vh; display: flex; flex-direction: column; overflow: hidden;
  box-shadow: var(--shadow-lg); transform: translateY(12px) scale(.98);
  transition: transform .22s cubic-bezier(.2,.7,.3,1);
}
.modal-overlay.is-open .modal { transform: none; }
.modal__close {
  position: absolute; top: 14px; right: 14px; z-index: 3;
  width: 42px; height: 42px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.92); color: var(--ink); font-size: 22px; line-height: 1;
  display: grid; place-items: center; box-shadow: var(--shadow-sm); transition: background .15s, color .15s, transform .15s;
}
.modal__close:hover { background: var(--red); color: #fff; transform: rotate(90deg); }
.modal__scroll { overflow-y: auto; }
.modal__media { position: relative; aspect-ratio: 16 / 8; background: #eef0f3; }
.modal__media img { width: 100%; height: 100%; object-fit: cover; }
.modal__media .modal__tag {
  position: absolute; left: 20px; bottom: 16px; background: var(--red); color: #fff;
  font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  padding: .4rem .85rem; border-radius: 20px;
}
.modal__body { padding: clamp(1.5rem, 3vw, 2.4rem); display: grid; grid-template-columns: 1.6fr 1fr; gap: 2rem; }
.modal__title { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 800; margin-bottom: .15rem; }
.modal__tagline { color: var(--red); font-weight: 700; font-size: 1.05rem; margin-bottom: 1rem; }
.modal__pitch { color: var(--ink-soft); font-size: 1rem; }
.modal__benefits { margin-top: 1.2rem; display: grid; gap: .7rem; }
.modal__benefits li { display: flex; gap: .65rem; align-items: flex-start; font-size: .95rem; }
.modal__benefits svg { flex: none; width: 20px; height: 20px; color: var(--red); margin-top: 2px; }
.modal__aside { background: var(--wash); border-radius: var(--radius); padding: 1.4rem; align-self: start; }
.modal__aside h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; margin-bottom: .8rem; }
.spec-row { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.spec-row:last-of-type { border-bottom: 0; }
.spec-row dt { color: var(--muted); }
.spec-row dd { margin: 0; font-weight: 700; text-align: right; }
.modal__audience { margin-top: 1rem; font-size: .85rem; color: var(--ink-soft); }
.modal__audience strong { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: .35rem; }
.modal__cta { margin-top: 1.2rem; display: grid; }

/* ------------------------------ Stats (rentabilité) ------------------------------ */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.stat {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem 1.4rem; text-align: center; box-shadow: var(--shadow-sm);
}
.stat__num { font-size: clamp(1.9rem, 3.4vw, 2.6rem); font-weight: 900; color: var(--red); line-height: 1; }
.stat__num small { font-size: .5em; font-weight: 800; }
.stat__label { color: var(--ink-soft); font-size: .92rem; margin-top: .5rem; }
.finance-note { text-align: center; color: var(--muted); font-size: .85rem; margin-top: 1.8rem; }

/* ------------------------------ RSE ------------------------------ */
.rse { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.rse__item { text-align: center; padding: 1.2rem; }
.rse__item .rse__ic {
  width: 62px; height: 62px; margin: 0 auto 1rem; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255,255,255,.08); color: #fff;
  border: 1px solid rgba(255,255,255,.18);
}
.rse__item svg { width: 30px; height: 30px; }
.rse__item h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: .25rem; }
.rse__item p { font-size: .88rem; color: #c9c9c9; margin: 0; }

/* ------------------------------ Cible ------------------------------ */
.audience { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; max-width: 900px; margin: 0 auto; }
.audience span {
  background: #fff; border: 1px solid var(--line); border-radius: 30px;
  padding: .65rem 1.3rem; font-weight: 600; font-size: .95rem; box-shadow: var(--shadow-sm);
}
.audience span::before { content: "•"; color: var(--red); margin-right: .5rem; font-weight: 900; }

/* ------------------------------ Contact ------------------------------ */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2.5rem; align-items: center; }
.contact-card {
  background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--red);
  border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow-sm);
}
.contact-card h3 { font-size: 1.3rem; font-weight: 800; margin-bottom: .1rem; }
.contact-card .role { color: var(--muted); font-weight: 600; margin-bottom: 1.2rem; }
.contact-list li { display: flex; align-items: center; gap: .8rem; padding: .55rem 0; border-bottom: 1px solid var(--line); font-size: .96rem; }
.contact-list li:last-child { border-bottom: 0; }
.contact-list svg { width: 20px; height: 20px; color: var(--red); flex: none; }
.contact-cta { text-align: center; }
.contact-cta h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; }
.contact-cta p { color: var(--muted); margin-bottom: 1.6rem; }

/* ------------------------------ Footer ------------------------------ */
.site-footer { background: var(--ink); color: #b9b9b9; padding: 2.5rem 0 1.6rem; font-size: .85rem; }
.site-footer__top { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; justify-content: space-between; padding-bottom: 1.5rem; border-bottom: 1px solid rgba(255,255,255,.12); }
.site-footer__brand img { height: 26px; filter: brightness(0) invert(1); opacity: .92; }
.site-footer__links { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.site-footer__links a { color: #d5d5d5; font-weight: 600; }
.site-footer__links a:hover { color: #fff; }
.site-footer__legal { padding-top: 1.4rem; color: #8b8b8b; line-height: 1.7; }
.site-footer__legal .disclaimer { color: #767676; font-size: .78rem; }

/* marqueur de placeholder (neutre visuellement ; sert de repère pour retrouver
   les infos fictives à corriger — e-mail, téléphone, dates de démo) */
.ph { text-decoration: none; }

/* ------------------------------ RDV page ------------------------------ */
.page-hero { background: var(--grad-red); color: #fff; padding: clamp(2.6rem, 6vw, 4.2rem) 0; }
.page-hero h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 900; }
.page-hero p { color: rgba(255,255,255,.9); margin: 0; max-width: 46em; }
.rdv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
.placeholder-box {
  border: 2px dashed var(--line-2); border-radius: var(--radius); padding: 2rem; background: var(--wash-2); text-align: center;
}
.placeholder-box .badge {
  display: inline-block; background: rgba(205,0,0,.08); color: var(--red); font-weight: 700;
  font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; padding: .4rem .9rem; border-radius: 20px; margin-bottom: 1rem;
}
.calendar-mock { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 1.2rem; }
.calendar-mock span { aspect-ratio: 1; display: grid; place-items: center; border-radius: 6px; background: #fff; border: 1px solid var(--line); font-size: .8rem; color: var(--muted); }
.calendar-mock span.free { border-color: var(--red); color: var(--red); font-weight: 700; cursor: pointer; }
.calendar-mock span.free:hover { background: var(--red); color: #fff; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow-sm); }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: .4rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: .75rem .9rem; border: 1px solid var(--line-2); border-radius: 6px;
  font-family: inherit; font-size: .95rem; background: #fff; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(205,0,0,.12); }
.field textarea { resize: vertical; min-height: 90px; }
.form-success { display: none; background: var(--success-bg); border: 1px solid var(--success-bd); color: var(--success-tx); border-radius: 8px; padding: 1rem 1.2rem; font-weight: 600; margin-bottom: 1.2rem; }
.form-success.is-visible { display: block; }

/* ------------------------------ Responsive ------------------------------ */
/* produits : 4 colonnes en grand écran → 2 en dessous de 1180px → 1 en mobile */
@media (max-width: 1180px) { .products, .pillars { grid-template-columns: repeat(2, 1fr); } }

@media (max-width: 900px) {
  .modal__body { grid-template-columns: 1fr; }
  .contact-grid, .rdv-grid { grid-template-columns: 1fr; }
  .stats, .rse { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: .5rem 0; box-shadow: var(--shadow-md); }
  .nav.is-open { display: flex; }
  .nav a { padding: .9rem var(--pad-x); width: 100%; }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { margin: .6rem var(--pad-x); width: calc(100% - 2 * var(--pad-x)); justify-content: center; }
  .nav-toggle { display: block; }
  .pillars, .products { grid-template-columns: 1fr; }
  .brand__tag { display: none; }
}
@media (max-width: 480px) {
  .stats, .rse { grid-template-columns: 1fr; }
  input, select, textarea { font-size: 16px; } /* évite le zoom iOS */
}

/* accessibilité : réduire les animations si demandé */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
