/* ==========================================================================
   Mondial Télécom — feuille de style principale
   Palette issue du logo : bleu #0090D8, turquoise #009A9A, vert #78C060
   ========================================================================== */

:root {
  --blue: #0090d8;
  --blue-dark: #007cbb;
  --teal: #009a9a;
  --green: #78c060;
  --green-dark: #5ea845;
  --ink: #0b3b4e;
  --text: #12333f;
  --soft: #3f5f6d;
  --muted: #5d7c88;
  --line: #e4eef2;
  --wash: #f4fafc;
  --white: #ffffff;
  --gradient: linear-gradient(115deg, #0090d8 0%, #009a9a 52%, #78c060 100%);
  --shadow-sm: 0 4px 20px rgba(11, 59, 78, 0.07);
  --shadow-md: 0 12px 30px rgba(0, 144, 216, 0.18);
  --shadow-lg: 0 24px 50px rgba(11, 59, 78, 0.22);
  --radius: 16px;
  --radius-sm: 9px;
  --site: 1240px;
  --font-display: "Sora", "Segoe UI", "Noto Sans Hebrew", "Arial Hebrew", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", "Noto Sans Hebrew", "Arial Hebrew", system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

img { max-width: 100%; height: auto; display: block; }

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--blue); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.015em;
  text-wrap: pretty;
}

p { margin: 0; text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }

.container {
  width: 100%;
  max-width: var(--site);
  margin: 0 auto;
  padding-inline: 20px;
}

.header .container { padding-inline: 16px; }

.section { padding-block: clamp(48px, 6vw, 84px); }
.section--wash { background: var(--wash); border-block: 1px solid var(--line); }
.section--tight { padding-block: clamp(36px, 4vw, 56px); }

.kicker {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.section-head p { color: var(--muted); max-width: 340px; font-size: 15px; }

h1 { font-size: clamp(30px, 4vw, 46px); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(26px, 3vw, 38px); font-weight: 700; }
h3 { font-size: clamp(19px, 2vw, 22px); font-weight: 700; }

/* -------------------------------------------------------------------------- */
/* Boutons                                                                    */
/* -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
  white-space: nowrap;
  font-family: var(--font-body);
}

.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--blue); color: var(--white); }
.btn--primary:hover { background: var(--blue-dark); color: var(--white); }
.btn--gradient { background: var(--gradient); color: var(--white); font-weight: 700; }
.btn--gradient:hover { color: var(--white); }
.btn--outline { border-color: var(--blue); color: var(--blue); background: transparent; }
.btn--outline:hover { background: var(--wash); color: var(--blue); }
.btn--white { background: var(--white); color: var(--ink); font-weight: 700; }
.btn--white:hover { color: var(--ink); }
.btn--ghost-light { border-color: rgba(255, 255, 255, 0.6); color: var(--white); }
.btn--ghost-light:hover { background: rgba(255, 255, 255, 0.14); color: var(--white); }
.btn--block { width: 100%; }

/* -------------------------------------------------------------------------- */
/* Barre supérieure + en-tête                                                 */
/* -------------------------------------------------------------------------- */

.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-block: 12px;
}

.header__logo { flex: none; }
.header__logo img { height: 42px; width: auto; max-width: none; }

.nav { display: flex; align-items: center; gap: 16px; flex: 1 1 auto; min-width: 0; overflow: hidden; }

.nav a {
  font-weight: 600;
  font-size: 13.5px;
  color: var(--soft);
  white-space: nowrap;
  padding-block: 6px;
  border-bottom: 2px solid transparent;
}

.nav a:hover { color: var(--blue); }
.nav a.is-active { color: var(--blue); border-bottom-color: var(--blue); }

.header__actions { display: flex; align-items: center; gap: 12px; margin-inline-start: auto; flex: none; }

.lang {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
}

.lang a,
.lang .lang__current {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 5px 9px;
  color: var(--soft);
  font: inherit;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  line-height: 1;
  text-decoration: none;
  transition: border-color 0.18s ease, color 0.18s ease, background-color 0.18s ease;
}

.lang svg { border-radius: 2px; display: block; flex: none; box-shadow: 0 0 0 1px rgba(11, 59, 78, 0.12); }
.lang a:hover { color: var(--blue); border-color: var(--blue); }
.lang .lang__current { color: var(--blue); border-color: var(--blue); background: var(--wash); }

.header__client { display: none; }

.burger {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  cursor: pointer;
  position: relative;
}

.burger span {
  position: absolute;
  left: 13px;
  right: 13px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 22px; }
.burger span:nth-child(3) { top: 28px; }

.burger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--white);
}

.mobile-nav.is-open { display: block; }

.mobile-nav__inner { display: flex; flex-direction: column; gap: 4px; padding-block: 16px; }

.mobile-nav a {
  padding: 13px 14px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15.5px;
  color: var(--soft);
}

.mobile-nav a.is-active { background: var(--wash); color: var(--blue); }
.mobile-nav .btn { margin-top: 8px; }
.mobile-nav .lang { padding: 12px 14px 4px; }

/* -------------------------------------------------------------------------- */
/* Héros                                                                      */
/* -------------------------------------------------------------------------- */

.hero {
  background: var(--gradient);
  color: var(--white);
}

.hero h1, .hero h2 { color: var(--white); }

.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  padding-block: clamp(44px, 5.5vw, 80px);
}

.hero--simple .hero__inner { grid-template-columns: 1fr; }
.hero--simple .hero__text { max-width: 760px; }

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 100px;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero__text p { font-size: clamp(15px, 1.3vw, 18px); max-width: 500px; margin-top: 16px; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero__kicker { font-size: 13px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; margin-bottom: 14px; }

.hero__card {
  background: var(--white);
  border-radius: 18px;
  padding: 14px;
  box-shadow: var(--shadow-lg);
}

.hero__card img { border-radius: 12px; width: 100%; }

.hero__card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 16px 8px 6px;
}

.hero__card-label {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
}

.hero__card-price {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  color: var(--text);
  margin-top: 4px;
}

.hero__card-price small { font-size: 14px; font-weight: 600; color: var(--muted); }
.hero__card-note { font-size: 13px; color: var(--muted); font-weight: 600; }

/* -------------------------------------------------------------------------- */
/* Bandeau de promesses                                                       */
/* -------------------------------------------------------------------------- */

.promises { border-bottom: 1px solid var(--line); }

.promises__inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding-block: 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--soft);
}

.promises li { display: flex; align-items: center; gap: 9px; }

.promises li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--blue);
  flex: none;
}

.promises li:nth-child(3n + 2)::before { background: var(--teal); }
.promises li:nth-child(3n)::before { background: var(--green); }

/* -------------------------------------------------------------------------- */
/* Grilles et cartes                                                          */
/* -------------------------------------------------------------------------- */

.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.grid--split { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: clamp(28px, 4vw, 56px); align-items: center; }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}

.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15px; }
.card__link { display: inline-block; margin-top: 14px; font-weight: 600; font-size: 14.5px; color: var(--blue); }
.card__step { font-family: var(--font-display); font-size: 15px; font-weight: 800; color: var(--blue); margin-bottom: 14px; }
.card--soft { background: var(--wash); border-color: transparent; box-shadow: none; }

/* Cartes d'offres */

.offer {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.offer--featured { box-shadow: var(--shadow-md); }

.offer__head { padding: 20px 26px; color: var(--white); }
.offer__head--blue { background: var(--blue); }
.offer__head--gradient { background: var(--gradient); }
.offer__head--green { background: var(--green); color: var(--ink); }
.offer__head h3 { color: inherit; font-size: 19px; }
.offer__head p { font-size: 13px; opacity: 0.92; margin-top: 3px; }

.offer__head-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }

.offer__tag {
  background: var(--white);
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 100px;
  white-space: nowrap;
}

.offer__body { display: flex; flex-direction: column; gap: 18px; padding: 26px; flex: 1; }

.offer__price {
  display: flex;
  align-items: baseline;
  gap: 7px;
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.offer__price span { font-family: var(--font-body); font-size: 15px; font-weight: 500; color: var(--muted); }

.offer__features { display: flex; flex-direction: column; gap: 11px; font-size: 15px; color: var(--soft); flex: 1; }
.offer__features li { display: flex; gap: 10px; }
.offer__features li::before { content: "·"; color: var(--blue); font-weight: 700; }
.offer--green .offer__features li::before { color: var(--green-dark); }
.offer--featured .offer__features li::before { color: var(--teal); }

/* -------------------------------------------------------------------------- */
/* Tableau comparatif                                                         */
/* -------------------------------------------------------------------------- */

.table-wrap { overflow-x: auto; }

table.compare {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 15px;
}

table.compare th {
  background: var(--wash);
  color: var(--muted);
  font-size: 12.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 14px 16px;
  text-align: start;
}

table.compare td { padding: 16px; border-bottom: 1px solid var(--line); color: var(--soft); }
table.compare td:first-child { font-weight: 600; color: var(--text); }
table.compare td:last-child { font-family: var(--font-display); font-weight: 700; color: var(--ink); }

/* -------------------------------------------------------------------------- */
/* Bandeau contact                                                            */
/* -------------------------------------------------------------------------- */

.cta {
  border-radius: 20px;
  background: var(--gradient);
  color: var(--white);
  padding: clamp(28px, 4vw, 52px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(24px, 3vw, 44px);
  align-items: center;
}

.cta h2 { color: var(--white); margin-bottom: 12px; }
.cta__list { display: flex; flex-direction: column; gap: 11px; }

.cta__item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  background: var(--white);
  color: var(--ink);
  border-radius: 12px;
  padding: 16px 22px;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
}

.cta__item small { font-family: var(--font-body); font-size: 13px; font-weight: 600; color: var(--muted); }
.cta__item--email { font-family: var(--font-body); font-size: 15px; font-weight: 600; word-break: break-all; }

/* -------------------------------------------------------------------------- */
/* Formulaire                                                                 */
/* -------------------------------------------------------------------------- */

.form { display: flex; flex-direction: column; gap: 16px; }
.form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 13px; font-weight: 600; color: var(--soft); }

.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: 15px;
  padding: 12px 14px;
  border: 1px solid #d9e7ec;
  border-radius: var(--radius-sm);
  background: #fbfdfe;
  color: var(--text);
  width: 100%;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--blue);
  outline-offset: 0;
  border-color: transparent;
}

.field textarea { resize: vertical; min-height: 110px; }
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: #d14343; background: #fff7f7; }
.field__error { font-size: 13px; color: #b3261e; font-weight: 600; display: none; }
.field.has-error .field__error { display: block; }

.form__note { font-size: 13px; color: var(--muted); }

.form__status { display: none; border-radius: var(--radius-sm); padding: 14px 16px; font-size: 14px; font-weight: 600; }
.form__status.is-visible { display: block; }
.form__status--ok { background: #eef8ec; color: var(--green-dark); }
.form__status--error { background: #fdeeee; color: #b3261e; }

.info-card { border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.info-card__label { font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue); margin-bottom: 7px; }
.info-card__value { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--ink); }
.info-card p { font-size: 15px; color: var(--soft); }
.info-card:nth-child(2) .info-card__label { color: var(--teal); }
.info-card:nth-child(3) .info-card__label { color: var(--green-dark); }

/* -------------------------------------------------------------------------- */
/* Contenu éditorial (mentions légales, confidentialité)                      */
/* -------------------------------------------------------------------------- */

.prose { max-width: 780px; display: flex; flex-direction: column; gap: 18px; }
.prose h2 { font-size: clamp(20px, 2.2vw, 26px); margin-top: 18px; }
.prose p, .prose li { color: var(--soft); font-size: 16px; }
.prose ul { display: flex; flex-direction: column; gap: 8px; padding-inline-start: 20px; list-style: disc; }

/* -------------------------------------------------------------------------- */
/* Média / images d'illustration                                              */
/* -------------------------------------------------------------------------- */

.media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); background: var(--wash); }
.media img { width: 100%; }
.media--floating { position: relative; }

.media__badge {
  position: absolute;
  inset-block-end: -16px;
  inset-inline-end: -16px;
  background: var(--green);
  color: var(--ink);
  border-radius: 14px;
  padding: 14px 20px;
  box-shadow: 0 14px 30px rgba(94, 168, 69, 0.3);
}

.media__badge strong { font-family: var(--font-display); font-size: 15px; display: block; }
.media__badge span { font-size: 13px; font-weight: 600; }

/* -------------------------------------------------------------------------- */
/* Pied de page                                                               */
/* -------------------------------------------------------------------------- */

.footer { background: var(--ink); color: #b9d6e1; }
.footer a { color: #b9d6e1; }
.footer a:hover { color: var(--white); }

.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 34px;
  padding-block: clamp(40px, 5vw, 58px) 28px;
}

.footer__logo { background: var(--white); border-radius: 10px; padding: 10px 14px; width: fit-content; }
.footer__logo img { height: 38px; width: auto; }
.footer p { font-size: 14px; margin-top: 16px; max-width: 290px; }
.footer h4 { color: var(--white); font-size: 14px; margin-bottom: 14px; font-family: var(--font-body); }
.footer ul { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer__social { display: flex; gap: 10px; margin-top: 18px; }

.footer__social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-block: 18px;
  font-size: 13px;
  color: #a8c8d5;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer__bottom a { color: #a8c8d5; text-decoration: underline; }

/* -------------------------------------------------------------------------- */
/* Boutons flottants téléphone / WhatsApp                                     */
/* -------------------------------------------------------------------------- */

.floating {
  position: fixed;
  inset-block-end: 18px;
  inset-inline-end: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 70;
}

.floating a {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  box-shadow: 0 10px 24px rgba(11, 59, 78, 0.28);
  transition: transform 0.18s ease;
}

.floating a:hover { transform: translateY(-2px); color: var(--white); }
.floating__phone { background: var(--blue); }
.floating__whatsapp { background: #25d366; }
.floating svg { width: 26px; height: 26px; fill: currentColor; }

/* -------------------------------------------------------------------------- */
/* Page 404                                                                   */
/* -------------------------------------------------------------------------- */

.error-page { text-align: center; padding-block: clamp(60px, 9vw, 120px); }
.error-page__code { font-family: var(--font-display); font-size: clamp(60px, 12vw, 120px); font-weight: 800; color: var(--blue); line-height: 1; }
.error-page p { color: var(--muted); margin-block: 14px 26px; }

/* -------------------------------------------------------------------------- */
/* Animations légères                                                         */
/* -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .btn:hover { transform: none; }
}

/* -------------------------------------------------------------------------- */
/* RTL (hébreu)                                                               */
/* -------------------------------------------------------------------------- */

[dir="rtl"] .offer__features li::before,
[dir="rtl"] .promises li::before { transform: scaleX(-1); }
[dir="rtl"] table.compare th,
[dir="rtl"] table.compare td { text-align: right; }

/* -------------------------------------------------------------------------- */
/* Points de rupture                                                          */
/* -------------------------------------------------------------------------- */

@media (max-width: 1160px) {
  .nav, .header__actions { display: none; }
  .burger { display: block; margin-inline-start: auto; }
  .hero__inner { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .section-head { align-items: flex-start; }
  .cta { padding: 26px; }
  .cta__item { font-size: 17px; }
  .media__badge { inset-inline-end: 12px; inset-block-end: -12px; }
}

@media (max-width: 520px) {
  .container { padding-inline: 16px; }
  .footer__inner { grid-template-columns: 1fr; }
  .header__logo img { height: 34px; }
  .hero__actions .btn { width: 100%; }
  .floating a { width: 50px; height: 50px; }
}


/* -------------------------------------------------------------------------- */
/* Souscription en ligne                                                      */
/* -------------------------------------------------------------------------- */

.steps { display: flex; flex-direction: column; gap: 26px; }

.step {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.step__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 24px;
  background: var(--wash);
  border-bottom: 1px solid var(--line);
}

.step__num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.step__head h2 { font-size: clamp(17px, 1.9vw, 20px); }
.step__body { padding: 24px; display: flex; flex-direction: column; gap: 18px; }
.step__lead { font-size: 14.5px; color: var(--muted); }

.line-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #fcfeff;
}

.line-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.line-card__title { font-family: var(--font-display); font-size: 16px; font-weight: 700; color: var(--ink); }

.line-card__remove {
  background: none;
  border: 0;
  color: #b3261e;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 6px;
}

.line-card__remove:hover { background: #fdeeee; }

.choice-group { display: flex; flex-wrap: wrap; gap: 10px; }

.choice {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid #d9e7ec;
  border-radius: 10px;
  padding: 11px 16px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--soft);
  cursor: pointer;
  background: var(--white);
  transition: border-color 0.18s ease, color 0.18s ease, background-color 0.18s ease;
  min-height: 46px;
}

.choice input { position: absolute; opacity: 0; width: 0; height: 0; }
.choice__dot { width: 16px; height: 16px; border-radius: 50%; border: 2px solid #c3d8e0; flex: none; transition: border-color 0.18s ease, box-shadow 0.18s ease; }
.choice input:checked ~ .choice__dot { border-color: var(--blue); box-shadow: inset 0 0 0 3px var(--blue); }
.choice:has(input:checked) { border-color: var(--blue); color: var(--blue); background: var(--wash); }
.choice input:focus-visible ~ .choice__dot { outline: 2px solid var(--blue); outline-offset: 2px; }

.check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid #d9e7ec;
  border-radius: 12px;
  padding: 16px 18px;
  cursor: pointer;
  background: var(--white);
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.check:has(input:checked) { border-color: var(--blue); background: var(--wash); }
.check input { width: 20px; height: 20px; accent-color: var(--blue); flex: none; margin-top: 1px; }
.check__text { font-size: 15px; font-weight: 600; color: var(--text); }
.check__note { display: block; font-size: 13.5px; font-weight: 400; color: var(--muted); margin-top: 4px; }

.summary {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  background: var(--wash);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.summary h3 { font-size: 16px; }
.summary ul { display: flex; flex-direction: column; gap: 8px; font-size: 14.5px; color: var(--soft); }
.summary li { display: flex; justify-content: space-between; gap: 12px; }
.summary li span:last-child { font-weight: 700; color: var(--ink); white-space: nowrap; }

.summary__total {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
}

.summary__empty { font-size: 14.5px; color: var(--muted); }

.is-hidden { display: none !important; }

@media (max-width: 520px) {
  .choice { width: 100%; }
  .step__body { padding: 18px; }
  .step__head { padding: 16px 18px; }
}


/* -------------------------------------------------------------------------- */
/* Accessibilité : lien d'évitement et états de focus                         */
/* -------------------------------------------------------------------------- */

.skip-link {
  position: absolute;
  inset-inline-start: 12px;
  inset-block-start: -60px;
  z-index: 100;
  background: var(--white);
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
  padding: 12px 18px;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 6px 18px rgba(11, 59, 78, 0.2);
  transition: inset-block-start 0.16s ease;
}

.skip-link:focus { inset-block-start: 0; color: var(--ink); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
  border-radius: 4px;
}

.hero a:focus-visible,
.cta a:focus-visible,
.footer a:focus-visible {
  outline-color: var(--white);
}

.field__legend { font-size: 13px; font-weight: 600; color: var(--soft); }

/* Le libellé des lignes de souscription reste lisible en RTL */
[dir="rtl"] .summary li,
[dir="rtl"] .summary__total { text-align: start; }


/* -------------------------------------------------------------------------- */
/* Classes utilitaires (remplacent les anciens attributs style=)              */
/* Nécessaires pour respecter une Content-Security-Policy stricte.            */
/* -------------------------------------------------------------------------- */

.mt-16 { margin-top: 16px; }
.mt-18 { margin-top: 18px; }
.mt-22 { margin-top: 22px; }
.mb-22 { margin-bottom: 22px; }
.mw-820 { max-width: 820px; }
.text-16 { font-size: 16px; }
.items-start { align-items: start; }
.stack-12 { display: flex; flex-direction: column; gap: 12px; }
.stack-16 { display: flex; flex-direction: column; gap: 16px; }

/* Champ anti-robots : hors de l'écran, jamais masqué par display:none
   (certains robots ignorent les champs cachés de cette façon). */
.honeypot {
  position: absolute;
  inset-inline-start: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Lien de secours affiché dans les messages d'erreur du formulaire */
.form__status a { text-decoration: underline; color: inherit; }

/* -------------------------------------------------------------------------- */
/* Animations : le contenu reste visible si JavaScript est absent             */
/* La classe « js » est posée sur <html> par js/main.js.                      */
/* -------------------------------------------------------------------------- */

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }


/* -------------------------------------------------------------------------- */
/* Souscription : affichages conditionnels en CSS pur                         */
/* Ces règles fonctionnent avec ET sans JavaScript (sélecteur :has).          */
/* -------------------------------------------------------------------------- */

/* Bloc de portabilité : visible seulement si « Portabilité » est coché */
.line-card [data-port-block] { display: none; }
.line-card:has([data-number-port]:checked) [data-port-block] { display: grid; }

/* Option numéro français : masquée si le forfait choisi l'inclut déjà */
.line-card:has([data-plan] option[data-fr-included="1"]:checked) [data-fr-option] { display: none; }
.line-card [data-fr-included-note] { display: none; }
.line-card:has([data-plan] option[data-fr-included="1"]:checked) [data-fr-included-note] { display: block; }

/* Opérateur internet : visible seulement si la fibre est cochée */
[data-internet-operator] { display: none; }
.step:has([data-internet]:checked) [data-internet-operator] { display: flex; }

/* Message affiché lorsque JavaScript est désactivé */
.noscript-note {
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
  font-size: 14.5px;
  color: var(--soft);
  line-height: 1.6;
}

/* Le bouton « Ajouter une ligne » n'a de sens qu'avec JavaScript */
.js-only { display: none; }
.js .js-only { display: inline-flex; }


/* -------------------------------------------------------------------------- */
/* Ancres de section : décalage sous l'en-tête fixe                           */
/* Sans cette règle, la cible d'un lien #ancre se place derrière le header    */
/* sticky. N'a aucun effet en dehors d'une navigation vers une ancre.         */
/* -------------------------------------------------------------------------- */

#international,
#comparatif,
#installation,
#pack,
#offres,
#contenu {
  scroll-margin-top: 90px;
}
