/*
 * Editions Corinthe — feuille de style commune du site statique.
 * Reprend les tokens et composants des maquettes (editions-corinthe/design) :
 * Inter (texte), Space Grotesk (titres), accent #0B7285, conteneur 1200px.
 * Les anciens CSS Joomla (Helix3, Bootstrap, SP Page Builder) ne sont plus chargés :
 * la section « Contenu hérité » en reprend uniquement ce dont les pages internes ont besoin.
 */

/* ---------- Tokens ---------- */
:root {
  --ink: #0F2233;
  --ink-2: #3A4A58;
  --muted: #5B6B78;
  --bg-soft: #F5F7F8;
  --line: #E1E6EA;
  --line-2: #C9D3DA;
  --accent: #0B7285;
  --accent-hover: #085A69;
  --accent-tint: #E3F1F3;
  --alert-bg: #FFF4E0;
  --alert-line: #F3D9A8;
  --alert-ink: #6B4100;
  --on-dark: #D5DEE5;
  --dark-line: #2A4053;
  --radius: 14px;
  --container: 1200px;
  --font-text: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-title: "Space Grotesk", Inter, system-ui, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
/* Focus visible partout : indispensable pour la navigation au clavier (AA). */
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 8px; text-decoration: none;
}
.skip-link:focus { top: 8px; color: #fff; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: 10px;
  border: 1px solid transparent; font: inherit; font-weight: 600; font-size: 16px;
  text-decoration: none; cursor: pointer; line-height: 1.2; white-space: nowrap;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-hover); color: #fff; }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent-hover); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--accent-tint); color: var(--ink); }
.btn--outline-light { border-color: #5B7385; color: #fff; }
.btn--outline-light:hover { background: rgba(255,255,255,.08); color: #fff; }
.btn--sm { min-height: 44px; padding: 10px 18px; font-size: 15px; border-radius: 8px; }
.btn svg { flex: none; }

/* ---------- Barre utilitaire ---------- */
.utility { background: var(--ink); color: var(--on-dark); font-size: 13px; }
.utility__inner {
  max-width: var(--container); margin: 0 auto; padding: 8px 24px;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 24px;
}
.utility__group { display: flex; flex-wrap: wrap; gap: 4px 20px; align-items: center; }
.utility a { color: #fff; text-decoration: none; padding: 4px 0; }
.utility a:hover { text-decoration: underline; color: #fff; }

/* ---------- En-tête ---------- */
.site-header { border-bottom: 1px solid var(--line); background: #fff; position: relative; z-index: 20; }
.site-header__inner {
  max-width: var(--container); margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; text-decoration: none; flex: none; }
.brand img { height: 48px; width: auto; display: block; }
.site-nav { display: flex; flex-wrap: wrap; gap: 2px; align-items: center; font-size: 15px; font-weight: 500; }
.site-nav a { padding: 12px 10px; white-space: nowrap; color: var(--ink); text-decoration: none; border-radius: 6px; min-height: 44px; display: inline-flex; align-items: center; }
.site-nav a:hover { color: var(--accent-hover); background: var(--bg-soft); }
.site-nav a[aria-current="page"] { color: var(--accent); font-weight: 600; box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.site-header__actions { display: flex; gap: 10px; align-items: center; }
.header-tools { display: none; gap: 4px; }
.icon-btn {
  width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: transparent;
  color: var(--ink); cursor: pointer; border-radius: 8px;
}
.icon-btn:hover { background: var(--bg-soft); color: var(--accent-hover); }

/* En dessous de 1180px la barre (logo + 6 liens + 2 boutons) ne tient plus : bascule en menu repliable. */
@media (max-width: 1180px) {
  .site-header__inner { flex-wrap: wrap; }
  .brand img { height: 40px; }
  .header-tools { display: flex; }
  .site-header__actions { display: none; }
  /* Menu replié seulement quand le JS est actif : sans JS il reste entièrement visible. */
  .js .site-nav, .js .site-header__actions { display: none; }
  .js .site-header.is-open .site-nav {
    display: flex; flex-direction: column; align-items: stretch; width: 100%; order: 3; padding-bottom: 8px;
  }
  .js .site-header.is-open .site-nav a { border-top: 1px solid var(--line); border-radius: 0; box-shadow: none !important; }
  .js .site-header.is-open .site-header__actions { display: flex; width: 100%; order: 4; padding-bottom: 8px; }
  .js .site-header.is-open .site-header__actions .btn { flex: 1; }
  .site-nav { width: 100%; order: 3; }
  .site-nav a { flex: 1 1 auto; }
}
@media (max-width: 960px) {
  .brand img { height: 36px; }
}

/* ---------- Bandeau d'alerte V3 (désactivable) ---------- */
.alert-v3 { background: var(--alert-bg); border-bottom: 1px solid var(--alert-line); color: var(--alert-ink); font-size: 15px; }
.alert-v3[hidden] { display: none; }
.alert-v3__inner {
  max-width: var(--container); margin: 0 auto; padding: 12px 24px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px;
}
.alert-v3__text { flex: 1 1 380px; }
.alert-v3 a { color: var(--alert-ink); font-weight: 600; }
.alert-v3__close { border: 0; background: transparent; color: var(--alert-ink); width: 44px; height: 44px; border-radius: 8px; cursor: pointer; display: grid; place-items: center; margin: -8px -10px -8px 0; }
.alert-v3__close:hover { background: rgba(107,65,0,.1); }

/* ---------- Sections génériques ---------- */
.section { padding: 88px 0; }
.section--soft { background: var(--bg-soft); }
.section--tight-top { padding-top: 32px; }
.eyebrow { font-size: 14px; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: 1px; }
.h-xl { font-family: var(--font-title); font-weight: 700; font-size: 56px; line-height: 1.05; letter-spacing: -1px; margin: 0; }
.h-lg { font-family: var(--font-title); font-weight: 700; font-size: 40px; line-height: 1.15; letter-spacing: -.5px; margin: 0; }
.h-md { font-family: var(--font-title); font-weight: 700; font-size: 32px; line-height: 1.2; letter-spacing: -.5px; margin: 0; }
.lead { font-size: 19px; line-height: 1.6; color: var(--ink-2); margin: 0; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.cards { display: flex; flex-wrap: wrap; gap: 24px; }
.card {
  flex: 1 1 300px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  display: flex; flex-direction: column; gap: 10px;
}
.card h3 { margin: 0; font-size: 20px; }
.card p { margin: 0; color: var(--ink-2); line-height: 1.6; }
.card__kicker { font-size: 14px; color: var(--muted); font-weight: 600; }
.card--dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.card--dark h3 { color: #fff; }
.card--dark p { color: var(--on-dark); }
.card--dark .card__kicker { color: #8FD3DE; }
.card .card__link { font-weight: 600; margin-top: auto; }

/* ---------- Hero ---------- */
.hero { background: var(--bg-soft); }
.hero__inner { max-width: var(--container); margin: 0 auto; padding: 88px 24px 96px; display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.hero__text { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero__visual { flex: 1 1 480px; min-width: 0; }
.pill { align-self: flex-start; padding: 6px 12px; border-radius: 999px; background: var(--accent-tint); color: var(--accent-hover); font-size: 14px; font-weight: 600; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.checks { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 15px; color: var(--ink-2); }
.checks li { display: flex; gap: 8px; align-items: center; }
.checks svg { flex: none; }

.window {
  background: #fff; border: 1px solid #DCE3E8; border-radius: 16px; overflow: hidden;
  box-shadow: 0 24px 60px rgba(15,34,51,.12);
}
.window__bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: #FAFBFC; font-size: 13px; color: var(--muted); }
.window__bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); display: block; }
.window__bar span { margin-left: 12px; }
.window img { display: block; width: 100%; height: auto; }

/* ---------- Fonctionnalités ---------- */
.features { display: flex; flex-wrap: wrap; gap: 20px; }
.feature { flex: 1 1 340px; padding: 24px; background: var(--bg-soft); border-radius: var(--radius); display: flex; gap: 16px; align-items: flex-start; }
.feature__icon { width: 44px; height: 44px; flex: none; border-radius: 10px; background: #fff; border: 1px solid #DCE3E8; display: grid; place-items: center; }
.feature h3 { margin: 0 0 6px; font-size: 18px; }
.feature p { margin: 0; color: var(--ink-2); line-height: 1.55; font-size: 15px; }

/* ---------- Versions (cartes) ---------- */
.versions { display: flex; flex-wrap: wrap; gap: 20px; }
.version-card { flex: 1 1 250px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.version-card--highlight { border: 2px solid var(--accent); }
.version-card__head { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 28px; }
.version-card h2, .version-card h3 { margin: 0; font-family: var(--font-title); font-size: 24px; }
.version-card__tag { padding: 4px 10px; border-radius: 999px; background: var(--accent-tint); color: var(--accent-hover); font-size: 12px; font-weight: 600; }
.version-card--highlight .version-card__tag { background: var(--accent); color: #fff; }
.version-card__quote { margin: 0; font-style: italic; color: var(--ink-2); line-height: 1.55; font-size: 15px; }
.version-card__text { margin: 0; line-height: 1.55; font-size: 15px; flex: 1; }
.version-card__img { border-radius: 10px; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 40px; }

.checklist { list-style: none; margin: 0; padding: 16px 0 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; font-size: 15px; color: var(--ink-2); }
.checklist li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.45; }
.checklist svg { flex: none; margin-top: 1px; }

/* ---------- Bloc sombre (conformité, CTA) ---------- */
.band { background: var(--ink); color: #fff; border-radius: 20px; padding: 48px; display: flex; flex-wrap: wrap; gap: 32px 40px; align-items: center; justify-content: space-between; }
.band__text { flex: 1 1 420px; display: flex; flex-direction: column; gap: 14px; }
.band h2 { margin: 0; color: #fff; font-family: var(--font-title); font-size: 32px; letter-spacing: -.5px; }
.band p { margin: 0; color: var(--on-dark); line-height: 1.6; font-size: 17px; }
.band__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Références & témoignages ---------- */
.logos { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
.logos a { display: grid; place-items: center; height: 88px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.logos a:hover { border-color: var(--accent); }
/* Les logos d'origine ont des tailles très variées : on les cale dans une boîte commune. */
.logos img { max-width: 100%; max-height: 64px; width: auto; height: auto; object-fit: contain; border-radius: 0; }
.quotes { display: flex; flex-wrap: wrap; gap: 20px; }
.quote { flex: 1 1 320px; margin: 0; padding: 28px 32px; background: var(--bg-soft); border-radius: var(--radius); font-size: 17px; line-height: 1.6; color: var(--ink-2); display: flex; flex-direction: column; gap: 16px; }
.quote p { margin: 0; }
.quote footer { display: flex; align-items: center; gap: 14px; font-size: 14px; color: var(--muted); }
.quote footer img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; background: #fff; border: 1px solid var(--line); }
.quote footer strong { display: block; color: var(--ink); font-size: 15px; }

/* ---------- Contact ---------- */
.contact { display: flex; flex-wrap: wrap; gap: 56px; }
.contact__info { flex: 1 1 360px; display: flex; flex-direction: column; gap: 18px; }
.contact__lines { display: flex; flex-direction: column; gap: 6px; font-size: 16px; margin-top: 8px; }
.contact__lines a { color: var(--ink); font-weight: 600; text-decoration: none; }
.contact__lines a:hover { color: var(--accent-hover); text-decoration: underline; }
.note-box { padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: 12px; display: flex; flex-direction: column; gap: 8px; font-size: 15px; color: var(--ink-2); }
.note-box strong { font-size: 16px; color: var(--ink); }
.map { border: 0; width: 100%; height: 320px; border-radius: var(--radius); display: block; }
.form { flex: 1 1 480px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.form fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; min-width: 0; }
.form legend { font-weight: 600; font-size: 15px; margin-bottom: 10px; padding: 0; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chip span { display: flex; align-items: center; min-height: 44px; padding: 10px 16px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 15px; }
.chip input:checked + span { border: 2px solid var(--accent); background: var(--accent-tint); font-weight: 600; color: var(--accent-hover); padding: 9px 15px; }
.chip input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.fields { display: flex; flex-wrap: wrap; gap: 16px; }
.field { flex: 1 1 200px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.field input, .field textarea {
  min-height: 46px; border: 1px solid var(--line-2); border-radius: 8px; padding: 0 12px;
  font: inherit; font-weight: 400; color: var(--ink); background: #fff;
}
.field textarea { padding: 12px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 3px solid var(--accent-tint); border-color: var(--accent); }
.form > .field { flex: none; } /* le flex-basis 200px des champs en ligne ne doit pas s'appliquer en hauteur */
.form__hint { font-size: 13px; color: var(--muted); margin: 0; }
.form .btn { width: 100%; min-height: 52px; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--ink); color: var(--on-dark); }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer__inner { max-width: var(--container); margin: 0 auto; padding: 64px 24px 32px; display: flex; flex-wrap: wrap; gap: 40px; }
.site-footer__brand { flex: 2 1 280px; display: flex; flex-direction: column; gap: 12px; }
/* Le logo (fond clair) est posé sur un cartouche blanc, sans modification de l'image. */
.site-footer__logo { align-self: flex-start; background: #fff; border-radius: 10px; padding: 10px 14px; display: flex; }
.site-footer__logo img { height: 36px; width: auto; display: block; }
.site-footer__col { flex: 1 1 180px; display: flex; flex-direction: column; gap: 4px; }
.site-footer__col strong { color: #fff; margin-bottom: 6px; }
.site-footer__col a { padding: 6px 0; display: inline-block; }
.site-footer__bottom {
  max-width: var(--container); margin: 0 auto; padding: 20px 24px 32px; border-top: 1px solid var(--dark-line);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px;
}
.site-footer__bottom nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.site-footer__bottom a { text-decoration: underline; padding: 6px 0; }

/* ---------- Page « Versions » : comparatif ---------- */
.page-hero { background: var(--bg-soft); }
.page-hero__inner { max-width: var(--container); margin: 0 auto; padding: 64px 24px 48px; display: flex; flex-direction: column; gap: 16px; align-items: center; text-align: center; }
.page-hero h1 { margin: 0; font-family: var(--font-title); font-size: 48px; line-height: 1.1; letter-spacing: -1px; max-width: 820px; }
.page-hero p { margin: 0; font-size: 18px; color: var(--ink-2); max-width: 680px; }
.breadcrumb { font-size: 14px; color: var(--muted); }
.breadcrumb a { color: var(--accent); }
.legend { margin: 14px 0 0; font-size: 14px; color: var(--muted); }

/* =====================================================================
   Contenu hérité (pages internes issues de Joomla / SP Page Builder)
   Seules les classes réellement présentes dans les pages sont reprises.
   ===================================================================== */
.legacy { padding-bottom: 32px; }
.legacy .sppb-section { padding: 44px 0; }
.legacy .sppb-row-container, .legacy .sppb-container-inner { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.legacy .sppb-row { display: flex; flex-wrap: wrap; margin: 0 -12px; }
.legacy [class*="sppb-col-"] { flex: 0 0 100%; max-width: 100%; padding: 0 12px; min-width: 0; }
@media (min-width: 700px) {
  .legacy .sppb-col-sm-12, .legacy .sppb-col-xs-12 { flex-basis: 100%; max-width: 100%; }
  .legacy .sppb-col-sm-9 { flex-basis: 75%; max-width: 75%; }
  .legacy .sppb-col-sm-8 { flex-basis: 66.666%; max-width: 66.666%; }
  .legacy .sppb-col-sm-6 { flex-basis: 50%; max-width: 50%; }
  .legacy .sppb-col-sm-4 { flex-basis: 33.333%; max-width: 33.333%; }
  .legacy .sppb-col-sm-3 { flex-basis: 25%; max-width: 25%; }
}
@media (min-width: 900px) {
  .legacy .sppb-col-md-12 { flex-basis: 100%; max-width: 100%; }
  .legacy .sppb-col-md-9 { flex-basis: 75%; max-width: 75%; }
  .legacy .sppb-col-md-8 { flex-basis: 66.666%; max-width: 66.666%; }
  .legacy .sppb-col-md-6 { flex-basis: 50%; max-width: 50%; }
  .legacy .sppb-col-md-4 { flex-basis: 33.333%; max-width: 33.333%; }
  .legacy .sppb-col-md-3 { flex-basis: 25%; max-width: 25%; }
}
/* Texte plus lisible que le gris clair/poids 300 hérité de l'ancien thème. */
.legacy { font-size: 17px; color: var(--ink-2); }
.legacy .sppb-addon { margin-bottom: 20px; }
.legacy .sppb-empty-space { height: 16px; }
.legacy h1, .legacy .sppb-addon-title { font-family: var(--font-title); font-weight: 700; font-size: 40px; letter-spacing: -.5px; margin: 0 0 20px; color: var(--ink); }
.legacy h2 { font-family: var(--font-title); font-weight: 700; font-size: 30px; letter-spacing: -.3px; margin: 0 0 16px; color: var(--ink); }
.legacy h3 { font-family: var(--font-title); font-weight: 600; font-size: 22px; margin: 0 0 12px; color: var(--ink); }
.legacy h4, .legacy h5 { font-weight: 600; font-size: 18px; margin: 0 0 10px; color: var(--ink); }
.legacy p { margin: 0 0 14px; line-height: 1.65; }
.legacy ul, .legacy ol { padding-left: 22px; margin: 0 0 14px; line-height: 1.65; }
.legacy li { margin-bottom: 6px; }
.legacy strong, .legacy b { color: var(--ink); }
/* Neutralise les polices et gris codés en dur dans le contenu exporté. */
.legacy [style*="font-family"] { font-family: inherit !important; }
.legacy .sppb-text-center { text-align: center; }
.legacy .sppb-text-right { text-align: right; }
.legacy .sppb-text-left { text-align: left; }
.legacy img { border-radius: 10px; }
.legacy .sppb-img-responsive { display: inline-block; }
.legacy iframe { border: 0; max-width: 100%; }

/* Bandeau d'introduction (ancienne classe « textombre ») */
.legacy .sppb-section:has(.textombre) { background: var(--bg-soft); padding: 56px 0; }
.legacy .textombre { text-align: center; }
.legacy .textombre h1, .legacy .textombre h2 { margin-left: auto; margin-right: auto; max-width: 860px; text-shadow: none; }
.legacy .textombre h1 { font-size: 44px; }
.legacy .textombre h2 { font-size: 24px; font-weight: 500; color: var(--ink-2); font-family: var(--font-text); letter-spacing: 0; }

/* Boutons SP Page Builder */
.legacy .sppb-btn, .legacy a.sppb-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 12px 22px;
  background: var(--accent); color: #fff !important; border: 0; border-radius: 10px; font-weight: 600; text-decoration: none;
}
.legacy .sppb-btn:hover { background: var(--accent-hover); }

/* Encadré d'information (ancien alert Bootstrap codé en ligne) */
.legacy .alert {
  background: var(--accent-tint) !important; border: 1px solid #BFDFE5 !important; color: var(--ink) !important;
  border-radius: 12px !important; padding: 20px !important; line-height: 1.6;
}

/* Tableaux */
.legacy .sppb-addon-content:has(> table) { overflow-x: auto; }
.legacy table { width: 100% !important; border-collapse: collapse; font-size: 15px; }
.legacy td, .legacy th { padding: 11px 14px; border-top: 1px solid #EEF1F3; vertical-align: top; }
.legacy td:first-child { text-align: left !important; width: auto !important; }
.legacy td a { color: var(--ink); text-decoration-color: var(--line-2); }
.legacy td a:hover { color: var(--accent-hover); }
.legacy table .sppb-img-responsive { border-radius: 0; }
/* Cellules de coches du comparatif (classe posée à la génération des pages) */
.legacy td.tick { text-align: center; color: var(--accent); font-weight: 600; vertical-align: middle; }
.legacy td.tick, .legacy td.tick * { font-size: 16px; }
/* Tableau à une seule ligne = en-tête du comparatif */
.legacy tbody:has(> tr:only-child) tr { background: var(--bg-soft); }
.legacy tbody:has(> tr:only-child) td { color: var(--ink); font-weight: 600; border-top: 0; vertical-align: middle; }
.legacy table span[style*="font-size"] { font-size: inherit !important; }
@media (max-width: 700px) {
  .legacy table { font-size: 14px; }
  .legacy td, .legacy th { padding: 10px 6px; }
  .legacy td:first-child { padding-left: 12px; }
  /* Comparatif : en-tête et tableaux de coches doivent partager les mêmes largeurs de colonnes,
     sinon les titres (Initiale…Connect) ne tombent plus au-dessus des coches. */
  .legacy table:has(td.tick) td:first-child,
  .legacy table:has(tr:only-child > td:nth-child(5)) td:first-child { width: 28% !important; }
  .legacy table:has(td.tick) td.tick { width: 18%; }
  .legacy table:has(tr:only-child > td:nth-child(5)) td:not(:first-child) { width: 18% !important; font-size: 10.5px !important; padding: 10px 2px; letter-spacing: 0; }
  .legacy table:has(tr:only-child > td:nth-child(5)) td:first-child { font-size: 11px !important; }
}

/* Accordéon : l'ancien site l'affichait déjà entièrement déplié, on garde ce comportement sans JS. */
.legacy .sppb-panel { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 14px; overflow: hidden; background: #fff; }
.legacy .sppb-panel-heading { padding: 14px 20px; background: #fff; }
.legacy .sppb-panel-title { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--accent); }
.legacy .sppb-toggle-direction { display: none; }
.legacy .sppb-panel-collapse { display: block !important; }
.legacy .sppb-panel-body { padding: 0; }
.legacy .sppb-panel-body .sppb-addon { margin: 0; }

/* Témoignages */
.legacy .sppb-addon-testimonial { background: var(--bg-soft); border-radius: var(--radius); padding: 28px; height: 100%; text-align: left; }
.legacy .sppb-addon-testimonial .fa-quote-left { display: none; }
.legacy .sppb-addon-testimonial-review { font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.legacy .sppb-addon-testimonial-footer a { display: flex; align-items: center; gap: 14px; margin-top: 16px; color: var(--muted); text-decoration: none; font-size: 14px; }
.legacy .sppb-addon-testimonial-avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: #fff; border: 1px solid var(--line); flex: none; }
.legacy .sppb-addon-testimonial-client strong { color: var(--ink); font-size: 15px; }

/* Plan du site (balisage généré par l'ancien module de plan de site) */
.legacy .rsseo-sitemap-menu { margin-bottom: 32px; }
.legacy .rsseo_title { font-family: var(--font-title); font-weight: 700; font-size: 24px; color: var(--ink); margin-bottom: 12px; }
.legacy .rsseo_links, .legacy .rsseo_links_small { list-style: none; padding-left: 0; margin: 0; }
.legacy .rsseo_links_small { padding-left: 20px; margin: 4px 0 10px; border-left: 2px solid var(--line); }
.legacy .rsseo_links li { margin-bottom: 4px; }
.legacy .rsseo_links a { display: inline-block; padding: 6px 0; }

/* Vidéos */
.legacy .sppb-embed-responsive { position: relative; aspect-ratio: 16 / 9; width: 100%; max-width: 820px; border-radius: var(--radius); overflow: hidden; background: #000; }
.legacy .sppb-embed-responsive iframe { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .btn { white-space: normal; text-align: center; }
  .section { padding: 56px 0; }
  .h-xl { font-size: 36px; letter-spacing: -.5px; line-height: 1.08; }
  .h-lg { font-size: 30px; }
  .h-md { font-size: 26px; }
  .lead { font-size: 17px; }
  .hero__inner { padding: 40px 16px 44px; gap: 32px; }
  .container, .utility__inner, .alert-v3__inner, .site-header__inner, .site-footer__inner, .site-footer__bottom { padding-left: 16px; padding-right: 16px; }
  .cta-row .btn { flex: 1 1 100%; min-height: 52px; }
  .band { padding: 32px 24px; }
  .band h2 { font-size: 26px; }
  .band__actions .btn { flex: 1 1 100%; }
  .page-hero h1 { font-size: 34px; }
  .page-hero__inner { padding: 44px 16px 32px; }
  .form { padding: 20px; }
  .contact { gap: 32px; }
  .legacy .sppb-row-container, .legacy .sppb-container-inner { padding: 0 16px; }
  .legacy h1, .legacy .sppb-addon-title, .legacy .textombre h1 { font-size: 30px; }
  .legacy h2 { font-size: 24px; }
  .legacy .textombre h2 { font-size: 19px; }
  .legacy .sppb-section { padding: 28px 0; }
}
/* La barre utilitaire est masquée sur mobile (comme dans la maquette Mobile) : le téléphone reste
   accessible via l'icône du header, et l'e-mail / l'assistance via le menu et le pied de page. */
@media (max-width: 640px) {
  .utility { display: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
