/* ==========================================================================
   CHEREE, module de financement patrimonial pour réseaux de CGP
   Feuille de style partagée
   ========================================================================== */

:root{
  --navy: #101B2D;
  --navy-2: #16243B;
  --navy-3: #1E3050;
  --gold: #B08D57;
  --gold-light: #D9C6A0;
  --paper: #F7F4EE;
  --paper-2: #EFEAE0;
  --slate: #5B7089;
  --ink: #1C2430;
  --ink-soft: #4A5568;
  --line: #E1DACB;
  --line-dark: #2B3A56;
  --success: #4B7A5B;

  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "SF Mono", Consolas, monospace;

  --radius: 3px;
  --radius-lg: 6px;
  --container: 1180px;
  --shadow-card: 0 1px 2px rgba(16,27,45,0.06), 0 8px 24px rgba(16,27,45,0.06);
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body{
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img{ max-width: 100%; display: block; }
a{ color: inherit; }
h1,h2,h3,h4{ font-family: var(--font-display); margin: 0 0 0.5em; font-weight: 600; letter-spacing: -0.01em; color: var(--navy); }
p{ margin: 0 0 1em; text-align: justify; text-justify: inter-word;
  /* pas de cesure : on prefere un espacement un peu large a un mot coupe */
  -webkit-hyphens: none; hyphens: none; }
/* textes courts ou techniques : pas de justification ni de cesure */
.eyebrow, .offer-price, .form-note, .chip, .brand-tag, .sim-card__title,
.footer-bottom span, .offer-badge, .advantage-num, .step-num,
.faq-item summary, figcaption{ text-align: left; -webkit-hyphens: none; hyphens: none; }
ul{ margin: 0; padding: 0; list-style: none; }
button{ font-family: inherit; }

.container{ max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section{ padding: 88px 0; }
.section--tight{ padding: 56px 0; }
.section--dark{ background: var(--navy); color: rgba(247,244,238,0.9); }
.section--dark h1, .section--dark h2, .section--dark h3{ color: #fff; }
/* les cartes restent sur fond clair meme dans une section sombre :
   leurs titres doivent garder la couleur d'encre, sinon ils sont invisibles */
.section--dark .card h3, .section--dark .offer h3{ color: var(--navy); }
.section--paper2{ background: var(--paper-2); }

.eyebrow{
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.eyebrow::before{
  content: "";
  width: 22px; height: 1px;
  background: var(--gold);
  display: inline-block;
}

.section-head{ max-width: 640px; margin-bottom: 48px; }
.section-head p{ color: var(--ink-soft); font-size: 17px; }
.section--dark .section-head p{ color: rgba(247,244,238,0.75); }
.section-head p.eyebrow, .section--dark .section-head p.eyebrow{ font-size: 12px; color: var(--gold); }

h1{ font-size: clamp(34px, 4.4vw, 54px); line-height: 1.08; }
h2{ font-size: clamp(26px, 3vw, 36px); line-height: 1.15; }
h3{ font-size: 20px; line-height: 1.3; }

.lede{ font-size: 19px; color: var(--ink-soft); max-width: 620px; }
.section--dark .lede{ color: rgba(247,244,238,0.78); }

/* Buttons */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.btn:focus-visible{ outline: 2px solid var(--gold); outline-offset: 3px; }
.btn-primary{ background: var(--gold); color: var(--navy); }
.btn-primary:hover{ background: var(--gold-light); transform: translateY(-1px); }
.btn-ghost{ background: transparent; border-color: rgba(16,27,45,0.22); color: var(--navy); }
.btn-ghost:hover{ border-color: var(--navy); }
.section--dark .btn-ghost{ border-color: rgba(255,255,255,0.3); color: #fff; }
.section--dark .btn-ghost:hover{ border-color: #fff; }
.btn-block{ width: 100%; justify-content: center; }

/* Header */
.site-header{
  position: sticky; top: 0; z-index: 40;
  background: rgba(247,244,238,0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container{ display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand{ display: flex; flex-direction: column; text-decoration: none; line-height: 1; }
.brand-mark{ font-family: var(--font-display); font-weight: 600; font-size: 21px; color: var(--navy); letter-spacing: 0.05em; }
.brand-tag{ font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--slate); margin-top: 4px; }

.nav{ display: flex; align-items: center; gap: 36px; }
.nav-panel{ display: flex; align-items: center; gap: 36px; }
.nav-links{ display: flex; gap: 30px; }
.nav-links a{
  text-decoration: none; font-size: 15px; color: var(--ink-soft); font-weight: 500;
  padding: 6px 0; border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.nav-links a:hover, .nav-links a[aria-current="page"]{ color: var(--navy); border-color: var(--gold); }
.nav-cta{ display: flex; }
.nav-toggle{
  display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius);
  width: 42px; height: 42px; align-items: center; justify-content: center; cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after{
  content: ""; display: block; width: 18px; height: 2px; background: var(--navy); position: relative; transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle span::before{ position: absolute; top: -6px; }
.nav-toggle span::after{ position: absolute; top: 6px; }

@media (max-width: 1120px){
  .nav, .nav-panel{ gap: 24px; }
  .nav-links{ gap: 20px; }
  .nav-links a{ font-size: 14px; }
}

@media (max-width: 980px){
  .nav-toggle{ display: flex; }
  /* panneau deroulant : liens puis bouton, dans le flux, sans chevauchement */
  .nav-panel{
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(16,27,45,0.08);
    padding: 8px 24px 24px;
    max-height: calc(100vh - 76px); max-height: calc(100dvh - 76px);
    overflow-y: auto; -webkit-overflow-scrolling: touch;
  }
  .site-header.is-open .nav-panel{ display: flex; }
  .nav-links{ display: flex; flex-direction: column; gap: 0; }
  .nav-links a{ display: block; padding: 14px 0; font-size: 16px; border-bottom: 1px solid var(--line); }
  .nav-links a[aria-current="page"]{ border-bottom-color: var(--line); color: var(--navy); font-weight: 600; }
  .nav-cta{ margin-top: 20px; }
  .nav-cta .btn{ width: 100%; justify-content: center; }
  /* icone : trois traits deviennent une croix quand le menu est ouvert */
  .site-header.is-open .nav-toggle span{ background: transparent; }
  .site-header.is-open .nav-toggle span::before{ top: 0; transform: rotate(45deg); }
  .site-header.is-open .nav-toggle span::after{ top: 0; transform: rotate(-45deg); }
}

/* Hero */
.hero{ padding: 76px 0 34px; }
.hero-grid{ display: grid; grid-template-columns: 1fr 1.05fr; gap: 44px; align-items: center; }
.hero-actions{ display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.hero-chips{ display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); }
.chip{ font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--slate); }
.chip::before{ content: ""; display: inline-block; width: 10px; height: 1px;
  background: var(--gold); vertical-align: middle; margin-right: 9px; }

@media (max-width: 900px){
  .hero-grid{ grid-template-columns: 1fr; }
  .hero{ padding: 48px 0 64px; }
}

/* Simulator visual (signature element) */
.sim-card{
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 30px;
  color: #fff;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--line-dark);
}
.sim-card__head{ display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.sim-card__title{ font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-light); }
.sim-dot{ width: 7px; height: 7px; border-radius: 50%; background: var(--success); display: inline-block; margin-right: 6px; }
.sim-status{ font-family: var(--font-mono); font-size: 11px; color: rgba(255,255,255,0.6); }
.sim-row{ display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.1); font-family: var(--font-mono); font-size: 13.5px; }
.sim-row span:first-child{ color: rgba(255,255,255,0.55); }
.sim-row span:last-child{ color: #fff; }
.sim-output{ margin-top: 20px; padding: 18px; background: rgba(255,255,255,0.04); border: 1px dashed rgba(217,198,160,0.4); border-radius: var(--radius); }
.sim-output-label{ font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.5); margin-bottom: 8px; }
.sim-output-value{ font-family: var(--font-mono); font-size: 26px; color: var(--gold-light); }
.sim-output-value small{ font-size: 13px; color: rgba(255,255,255,0.5); font-weight: 400; }

/* Steps */
.steps{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: step; }
.step{ position: relative; padding-top: 8px; }
.step-num{ font-family: var(--font-mono); font-size: 34px; color: var(--gold); line-height: 1; margin-bottom: 16px; }
.step h3{ margin-bottom: 10px; }
.step p{ color: var(--ink-soft); font-size: 15px; margin: 0; }
@media (max-width: 900px){ .steps{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px){ .steps{ grid-template-columns: 1fr; } }

/* Cards grid */
.grid-3{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2{ display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 900px){ .grid-3{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px){ .grid-3, .grid-2{ grid-template-columns: 1fr; } }

.card{
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px; box-shadow: var(--shadow-card);
}
.card h3{ margin-bottom: 10px; }
.card p{ color: var(--ink-soft); font-size: 15px; margin: 0; }
.card-icon{
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(176,141,87,0.10); border: 1px solid rgba(176,141,87,0.28);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; color: var(--gold);
}
.card-icon svg{ width: 22px; height: 22px; display: block; }

/* Offers / pricing */
.offer{
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 34px; display: flex; flex-direction: column; box-shadow: var(--shadow-card);
}
.offer--featured{ border-color: var(--gold); position: relative; }
.offer-badge{
  position: absolute; top: -13px; left: 34px; background: var(--gold); color: var(--navy);
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 3px;
}
.offer-price{ font-family: var(--font-mono); font-size: 15px; color: var(--slate); margin: 14px 0 22px; }
.offer-list{ margin: 22px 0 28px; flex-grow: 1; }
.offer-list li{ display: flex; gap: 10px; padding: 8px 0; font-size: 14.5px; color: var(--ink-soft); border-top: 1px solid var(--line); }
.offer-list li:first-child{ border-top: none; }
.offer-list li::before{ content: "✓"; color: var(--gold); font-weight: 700; }

/* Testimonial / trust placeholder */
.placeholder-block{
  border: 1px dashed rgba(16,27,45,0.28); border-radius: var(--radius-lg);
  padding: 26px; text-align: center; color: var(--ink-soft); font-size: 13.5px;
  font-family: var(--font-mono); letter-spacing: 0.02em; background: rgba(16,27,45,0.02);
}
.section--dark .placeholder-block{ border-color: rgba(255,255,255,0.25); background: rgba(255,255,255,0.03); color: rgba(255,255,255,0.55); }

.logo-row{ display: flex; flex-wrap: wrap; gap: 18px; }
.logo-slot{
  flex: 1 1 160px; height: 64px; border: 1px dashed rgba(16,27,45,0.22); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 11px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.06em;
}

.photo-slot{
  width: 100%; aspect-ratio: 4/3; border-radius: var(--radius-lg);
  border: 1px dashed rgba(16,27,45,0.28); background: repeating-linear-gradient(135deg, rgba(16,27,45,0.03), rgba(16,27,45,0.03) 10px, transparent 10px, transparent 20px);
  display: flex; align-items: center; justify-content: center; text-align: center; padding: 20px;
  font-family: var(--font-mono); font-size: 12px; color: var(--ink-soft); letter-spacing: 0.03em;
}

/* FAQ */
.faq-item{ border-bottom: 1px solid var(--line); }
.faq-item summary{
  cursor: pointer; list-style: none; padding: 22px 0; font-family: var(--font-display);
  font-size: 18px; font-weight: 600; color: var(--navy); display: flex; justify-content: space-between; align-items: center; gap: 20px;
}
.faq-item summary::-webkit-details-marker{ display: none; }
.faq-item summary::after{ content: "+"; font-family: var(--font-mono); font-size: 22px; color: var(--gold); flex-shrink: 0; transition: transform .2s ease; }
.faq-item[open] summary::after{ transform: rotate(45deg); }
.faq-item p{ padding-bottom: 22px; margin: 0; color: var(--ink-soft); max-width: 700px; }

/* CTA band */
.cta-band{
  background: var(--navy); border-radius: var(--radius-lg); padding: 56px;
  display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; color: #fff;
}
.cta-band h2{ color: #fff; margin-bottom: 8px; }
.cta-band p{ color: rgba(255,255,255,0.7); margin: 0; }

/* Footer */
.site-footer{ background: var(--navy); color: rgba(247,244,238,0.65); padding: 64px 0 32px; }
.footer-grid{ display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-grid h4{ color: #fff; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 16px; }
.footer-grid a{ text-decoration: none; color: rgba(247,244,238,0.65); font-size: 14.5px; display: block; padding: 5px 0; }
.footer-grid a:hover{ color: #fff; }
.footer-bottom{ display: flex; justify-content: space-between; padding-top: 24px; font-size: 13px; flex-wrap: wrap; gap: 10px; }
@media (max-width: 780px){ .footer-grid{ grid-template-columns: 1fr 1fr; } }

/* Forms */
.form-grid{ display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-field{ display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.form-field.full{ grid-column: 1 / -1; }
.form-field label{ font-size: 13.5px; font-weight: 600; color: var(--navy); }
.form-field .req{ color: var(--gold); }
.form-field input, .form-field textarea{
  font-family: var(--font-body); font-size: 15px; padding: 13px 14px; border: 1px solid var(--line);
  border-radius: var(--radius); background: #fff; color: var(--ink); resize: vertical;
}
.form-field input:focus, .form-field textarea:focus{ outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }
.form-note{ font-size: 13px; color: var(--ink-soft); margin-top: 14px; }
.form-status{ font-size: 14px; margin-top: 16px; padding: 12px 14px; border-radius: var(--radius); display: none; }
.form-status.is-visible{ display: block; }
.form-status.ok{ background: rgba(75,122,91,0.12); color: var(--success); }
.form-status.err{ background: rgba(176,40,40,0.1); color: #a02828; }
@media (max-width: 640px){ .form-grid{ grid-template-columns: 1fr; } }

/* Page hero (secondary pages) */
.page-hero{ padding: 64px 0 56px; border-bottom: 1px solid var(--line); }
.page-hero .eyebrow{ margin-bottom: 20px; }

/* Value / about blocks */
.value-list{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px){ .value-list{ grid-template-columns: 1fr; } }
.value-item{ padding: 26px 0; border-top: 1px solid var(--line); }
.value-item h3{ margin-bottom: 8px; }
.value-item p{ color: var(--ink-soft); font-size: 15px; margin: 0; }

.split{ display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 900px){ .split{ grid-template-columns: 1fr; gap: 32px; } }

/* Avantages du credit */
.advantage-list{ max-width: 880px; }
.advantage-item{
  display: grid; grid-template-columns: 54px 1fr; gap: 24px;
  padding: 30px 0; border-top: 1px solid var(--line);
}
.advantage-item:first-child{ border-top: none; padding-top: 0; }
.advantage-num{
  font-family: var(--font-mono); font-size: 26px; color: var(--gold);
  line-height: 1.15; padding-top: 2px;
}
.advantage-item h3{ margin-bottom: 10px; }
.advantage-item p{ color: var(--ink-soft); font-size: 15.5px; margin: 0; }
@media (max-width: 560px){
  .advantage-item{ grid-template-columns: 1fr; gap: 8px; }
}

/* Avertissement reglementaire */
.disclaimer{
  border: 1px solid var(--line); border-left: 3px solid var(--gold);
  border-radius: var(--radius); background: rgba(16,27,45,0.02);
  padding: 24px 26px; max-width: 880px;
}
.disclaimer h4{
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 12px;
}
.disclaimer p{ font-size: 13.5px; color: var(--ink-soft); margin: 0 0 10px; }
.disclaimer p:last-child{ margin-bottom: 0; }

/* Comparatif de financement */
.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;
}
.cmp-frame{
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-card); background: #fff;
}
.cmp-wrap{ overflow-x: auto; -webkit-overflow-scrolling: touch; position: relative; }
.cmp{ width: 100%; min-width: 700px; border-collapse: collapse; }

.cmp thead td, .cmp thead th{ background: var(--navy); vertical-align: bottom; }
.cmp thead th{
  padding: 20px 22px; text-align: right; color: #fff;
  font-family: var(--font-display); font-weight: 600; position: relative;
}
.cmp thead th.is-featured{ background: var(--navy-3); }
.cmp-corner{ width: 30%; }
.cmp-th-title{ display: block; font-size: 18px; line-height: 1.2; }
.cmp-th-sub{
  display: block; margin-top: 6px; font-family: var(--font-mono); font-weight: 400;
  font-size: 10.5px; letter-spacing: 0.05em; color: var(--gold-light);
}
.cmp-flag{
  display: inline-block; margin-bottom: 10px; background: var(--gold); color: var(--navy);
  font-family: var(--font-mono); font-size: 9.5px; font-weight: 500; letter-spacing: 0.07em;
  text-transform: uppercase; padding: 4px 10px; border-radius: 999px;
}

.cmp tbody th, .cmp tfoot th{
  text-align: left; font-family: var(--font-body); font-weight: 500; font-size: 14.5px;
  color: var(--ink-soft); padding: 15px 22px; white-space: nowrap;
}
.cmp tbody td, .cmp tfoot td{
  text-align: right; font-family: var(--font-mono); font-size: 14.5px; font-weight: 500;
  color: var(--navy); padding: 15px 22px; white-space: nowrap;
}
.cmp tbody tr + tr th, .cmp tbody tr + tr td{ border-top: 1px solid var(--line); }
.cmp tbody td.is-featured{ background: rgba(176,141,87,0.07); }
.cmp .is-empty{ color: rgba(28,36,48,0.22); }

.cmp tbody tr.cmp-row-amount td{
  font-family: var(--font-display); font-size: 28px; font-weight: 600; color: var(--navy);
  padding-top: 26px; padding-bottom: 24px; line-height: 1.1;
}
.cmp tbody tr.cmp-row-amount th{
  padding-top: 26px; padding-bottom: 24px; font-size: 15px; color: var(--navy); font-weight: 600;
}
.cmp-gain{
  display: block; margin-top: 7px; font-family: var(--font-mono); font-size: 10.5px;
  font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; color: var(--gold);
}

.cmp tfoot th, .cmp tfoot td{ background: var(--paper-2); border-top: 2px solid var(--line); }
.cmp tfoot th{ color: var(--navy); font-weight: 600; }
.cmp tfoot td{ font-size: 20px; color: var(--gold); }
.cmp tfoot td.is-featured{ background: var(--paper-2); }

.cmp-note{
  font-size: 12.5px; color: var(--slate); text-align: center;
  max-width: 760px; margin: 22px auto 0;
}
@media (max-width: 760px){
  .cmp-note::before{ content: "Faites glisser le tableau pour voir les trois montages. "; color: var(--gold); }
}

/* Bande de points cles */
.keypoints{
  background: #fff;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 20px 0;
}
.keypoints-list{
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 10px 40px; margin: 0; padding: 0; list-style: none;
}
.keypoints-list li{
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--slate);
  display: inline-flex; align-items: center;
}
.keypoints-list li::before{
  content: ""; display: inline-block; width: 10px; height: 1px;
  background: var(--gold); margin-right: 9px;
}
@media (max-width: 560px){ .keypoints-list{ gap: 12px 24px; } }

/* Resserrement entre le bandeau et le comparatif */
#comparatif{ padding-top: 42px; }

/* Listes de caracteristiques */
.spec-list{ margin: 0; }
.spec-list > div{
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 10px 0; border-top: 1px solid var(--line);
}
.spec-list > div:first-child{ border-top: none; }
.spec-list dt{ font-size: 14px; color: var(--ink-soft); }
.spec-list dd{
  margin: 0; font-family: var(--font-mono); font-size: 13.5px; font-weight: 500;
  color: var(--navy); text-align: right;
}

/* Licence : socle compris */
.licence{
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card); max-width: 940px; padding: 34px 36px 30px;
}
.licence h3{ margin-bottom: 20px; }
.licence .offer-list{
  margin: 0; columns: 2; column-gap: 44px;
}
.licence .offer-list li{
  border-top: none; padding: 9px 0; break-inside: avoid;
}
@media (max-width: 700px){
  .licence{ padding: 28px 24px 24px; }
  .licence .offer-list{ columns: 1; }
}
.licence-note{
  font-size: 12.5px; color: var(--slate); margin: 24px 0 0;
  padding-top: 18px; border-top: 1px solid var(--line);
}

/* Aucune cesure sur l'ensemble du site */
html, body, p, li, dd, dt, h1, h2, h3, h4, summary, span, div, td, th{
  -webkit-hyphens: none; hyphens: none;
}

/* Champ piege a robots : hors ecran, jamais vu ni atteint par un visiteur */
.champ-piege{
  position: absolute; left: -9999px; top: auto;
  width: 1px; height: 1px; overflow: hidden;
}

/* Message d'erreur sous un champ de formulaire */
.field-error{
  display: none; margin: 0; padding-top: 6px;
  font-size: 13px; line-height: 1.45; color: #a02828; text-align: left;
}
.field-error.is-visible{ display: block; }
.form-field input.is-invalid,
.form-field textarea.is-invalid{
  border-color: #a02828; background: rgba(176,40,40,0.03);
}
.form-field input.is-invalid:focus,
.form-field textarea.is-invalid:focus{
  outline-color: #a02828; border-color: #a02828;
}

/* Adresse cliquable dans le bandeau de statut du formulaire */
.form-status a{ color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.form-status a:hover{ text-decoration-thickness: 2px; }

/* ==========================================================================
   Corrections d'affichage mobile (septembre 2026)
   ========================================================================== */

/* Tableau comparatif sur telephone : la colonne des libelles reste visible
   pendant que l'on fait glisser les montants */
@media (max-width: 760px){
  .cmp{ min-width: 540px; }
  .cmp thead th{ padding: 16px 12px; }
  .cmp-th-title{ font-size: 16px; }
  .cmp tbody td, .cmp tfoot td{ padding: 13px 12px; font-size: 13.5px; }
  .cmp tbody tr.cmp-row-amount td{ font-size: 20px; }
  .cmp tfoot td{ font-size: 16px; }
  .cmp tbody th, .cmp tfoot th, .cmp thead .cmp-corner{
    position: sticky; left: 0; z-index: 1;
    width: 128px; min-width: 128px; white-space: normal;
    padding: 13px 12px; font-size: 13px; line-height: 1.35;
    box-shadow: 1px 0 0 var(--line);
  }
  .cmp tbody th{ background: #fff; }
  .cmp tfoot th{ background: var(--paper-2); }
  .cmp thead .cmp-corner{ background: var(--navy); box-shadow: none; }
  .cmp-note{ text-align: left; }
}

/* Texte justifie : conserve sur ecran large ; sur telephone, les colonnes
   etroites sans cesure creusent de grands blancs entre les mots,
   le texte passe donc en alignement a gauche sous 600 px */
@media (max-width: 600px){
  p{ text-align: left; }
}
/* colonne etroite du pied de page : jamais justifiee */
.site-footer p{ text-align: left; }

/* Espacements reduits sur telephone */
@media (max-width: 640px){
  .section{ padding: 60px 0; }
  .section--tight{ padding: 44px 0; }
  #comparatif{ padding-top: 32px; }
  .hero{ padding: 40px 0 48px; }
  .page-hero{ padding: 44px 0 40px; }
  .section-head{ margin-bottom: 32px; }
  .lede{ font-size: 17px; }
  .card{ padding: 24px; }
  .cta-band{ padding: 32px 24px; gap: 24px; }
  .cta-band .btn{ width: 100%; justify-content: center; }
  .hero-actions .btn{ width: 100%; justify-content: center; }
  .faq-item summary{ font-size: 17px; }
}
@media (max-width: 400px){
  .footer-grid{ grid-template-columns: 1fr; gap: 28px; }
}
