/* ===========================================================
   Site opérateur télécom — feuille de style
   Palette : blanc & orange
   =========================================================== */

:root {
  --orange: #FF7200;        /* orange relevé sur le logo Economictel */
  --orange-dark: #C25500;   /* variante foncée : liens et texte sur fond clair */
  --orange-light: #FF9440;
  --orange-soft: #FFF3EA;
  --orange-tint: #FFE3CE;

  --ink: #14181F;
  --ink-2: #3A4453;
  --ink-3: #6B7686;
  --line: #E7EAF0;
  --bg: #FFFFFF;
  --bg-2: #FAFBFC;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(20,24,31,.04), 0 8px 24px rgba(20,24,31,.06);
  --shadow-lg: 0 2px 4px rgba(20,24,31,.05), 0 18px 50px rgba(20,24,31,.10);
  --max: 1180px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

a { color: var(--orange-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  line-height: 1.2;
  margin: 0 0 .5em;
  letter-spacing: -.02em;
  font-weight: 700;
}
h1 { font-size: clamp(2rem, 5vw, 3.15rem); }
h2 { font-size: clamp(1.55rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.15rem; }
p  { margin: 0 0 1em; color: var(--ink-2); }

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

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; gap: 24px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.15rem; color: var(--ink);
  letter-spacing: -.03em; text-decoration: none;
}
.logo:hover { text-decoration: none; }
.logo-img { height: 48px; width: auto; display: block; }
.site-footer .logo-img { height: 56px; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  color: var(--ink-2); font-weight: 500; font-size: .95rem;
  padding: 8px 12px; border-radius: 8px; text-decoration: none; white-space: nowrap;
}
.nav-links a:hover { background: var(--orange-soft); color: var(--orange-dark); }
.nav-links a.active { color: var(--orange-dark); font-weight: 600; }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-phone { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; color: var(--ink); white-space: nowrap; font-size: .95rem; text-decoration: none; }
.nav-phone svg { color: var(--orange); flex: none; }
.nav-phone:hover { color: var(--orange-dark); text-decoration: none; }

.burger {
  display: none; background: none; border: 1px solid var(--line);
  border-radius: 9px; width: 42px; height: 40px; cursor: pointer;
  align-items: center; justify-content: center; padding: 0;
}
.burger span { display: block; width: 18px; height: 2px; background: var(--ink); position: relative; }
.burger span::before, .burger span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ink);
}
.burger span::before { top: -6px; }
.burger span::after  { top: 6px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: .95rem;
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 6px 18px rgba(242,107,33,.30); }
.btn-primary:hover { background: var(--orange-dark); color: #fff; }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--orange); color: var(--orange-dark); }
.btn-ghost { background: var(--orange-soft); color: var(--orange-dark); }
.btn-lg { padding: 15px 30px; font-size: 1rem; }

/* ---------- Hero ---------- */
.hero {
  padding: 84px 0 76px;
  background:
    radial-gradient(900px 420px at 88% -10%, var(--orange-tint), transparent 65%),
    radial-gradient(700px 380px at 5% 105%, var(--orange-soft), transparent 60%);
  border-bottom: 1px solid var(--line);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero p.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 42ch; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--orange-tint);
  color: var(--orange-dark); font-weight: 600; font-size: .8rem;
  letter-spacing: .06em; text-transform: uppercase;
  padding: 7px 14px; border-radius: 999px; margin-bottom: 22px;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }

.hero-card {
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow-lg); padding: 26px;
}
.hero-card h3 { margin-bottom: 16px; font-size: 1rem; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); }
.spec-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 13px 0; border-bottom: 1px dashed var(--line); font-size: .95rem;
}
.spec-row:last-child { border-bottom: 0; }
.spec-row span:first-child { color: var(--ink-2); }
.spec-row span:last-child { font-weight: 700; color: var(--ink); }

/* ---------- Sections ---------- */
.section { padding: 78px 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 46px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { font-size: 1.05rem; }

/* ---------- Grilles / cartes ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.card:hover { border-color: var(--orange-tint); box-shadow: var(--shadow); transform: translateY(-2px); }
.card h3 { margin-bottom: 8px; }
.card p { font-size: .95rem; margin-bottom: 0; }
.card-icon {
  width: 46px; height: 46px; border-radius: 12px; margin-bottom: 18px;
  background: var(--orange-soft); color: var(--orange-dark);
  display: grid; place-items: center; font-size: 22px;
}

/* ---------- Bandeau chiffres ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat strong { display: block; font-size: 2.3rem; font-weight: 800; color: var(--orange); letter-spacing: -.03em; }
.stat span { color: var(--ink-3); font-size: .92rem; }

/* ---------- Listes ---------- */
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li {
  position: relative; padding-left: 30px; margin-bottom: 12px; color: var(--ink-2); font-size: .97rem;
}
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--orange-soft); color: var(--orange-dark);
  display: grid; place-items: center; font-size: 12px; font-weight: 700;
}

/* ---------- Tableaux ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table { width: 100%; border-collapse: collapse; min-width: 640px; }
thead th {
  background: var(--orange-soft); color: var(--ink); text-align: left;
  font-size: .82rem; letter-spacing: .05em; text-transform: uppercase;
  padding: 15px 18px; font-weight: 700; white-space: nowrap;
}
tbody td { padding: 15px 18px; border-top: 1px solid var(--line); font-size: .95rem; color: var(--ink-2); }
tbody tr:hover { background: #FCFDFE; }
tbody td strong { color: var(--ink); }

/* ---------- Tarifs ---------- */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: start; }
.plan {
  background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 30px;
  display: flex; flex-direction: column; height: 100%;
}
.plan.featured { border: 2px solid var(--orange); box-shadow: var(--shadow-lg); position: relative; }
.plan .badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--orange); color: #fff; font-size: .72rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; padding: 6px 14px; border-radius: 999px;
}
.plan h3 { font-size: 1.25rem; margin-bottom: 4px; }
.plan .plan-sub { color: var(--ink-3); font-size: .9rem; margin-bottom: 20px; }
.price { font-size: 2.5rem; font-weight: 800; letter-spacing: -.03em; color: var(--ink); }
.price small { font-size: .95rem; font-weight: 500; color: var(--ink-3); letter-spacing: 0; }
.plan .check-list { margin: 22px 0 26px; flex: 1; }
.plan .btn { width: 100%; }

/* ---------- Produits (téléphones) ---------- */
.product {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.product:hover { border-color: var(--orange-tint); box-shadow: var(--shadow); transform: translateY(-2px); }
.product-media {
  aspect-ratio: 4/3; background: linear-gradient(160deg, var(--orange-soft), #fff);
  display: grid; place-items: center; border-bottom: 1px solid var(--line);
  font-size: 54px; color: var(--orange);
}
.product-media.photo { background: #fff; padding: 12px; }
.product-media.photo img { width: 100%; height: 100%; object-fit: contain; }
.grid-2 .product-media.photo { aspect-ratio: 16/9; }
.product-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.product-body h3 { margin-bottom: 2px; }
.product-tag {
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--orange-dark); background: var(--orange-soft);
  padding: 4px 10px; border-radius: 999px; margin-bottom: 12px; align-self: flex-start;
}
.product-body ul { margin: 12px 0 18px; padding-left: 18px; color: var(--ink-2); font-size: .9rem; }
.product-body ul li { margin-bottom: 5px; }
.product-foot {
  margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.product-price { font-weight: 800; font-size: 1.15rem; }
.product-price small { font-weight: 500; color: var(--ink-3); font-size: .8rem; }

/* ---------- Visuel produit dans une carte d'en-tête ---------- */
.media-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); padding: 18px; }
.media-card img { width: 100%; height: auto; }
.media-card figcaption { font-size: .85rem; color: var(--ink-3); text-align: center; margin-top: 8px; }
.card-link { display: inline-block; margin-top: 14px; font-weight: 600; font-size: .92rem; }

/* ---------- Étapes ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step { position: relative; padding-top: 54px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 0; left: 0;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--orange); color: #fff;
  display: grid; place-items: center; font-weight: 800;
}
.step h3 { font-size: 1.05rem; }
.step p { font-size: .93rem; margin: 0; }

/* ---------- FAQ ---------- */
.faq { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: 0; }
.faq summary {
  cursor: pointer; padding: 20px 24px; font-weight: 600; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--orange); font-size: 1.4rem; font-weight: 400; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details[open] summary { color: var(--orange-dark); }
.faq .faq-body { padding: 0 24px 22px; color: var(--ink-2); font-size: .96rem; }
.faq .faq-body p:last-child { margin-bottom: 0; }

/* ---------- CTA ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--orange), var(--orange-dark));
  color: #fff; border-radius: 20px; padding: 52px 44px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.cta-band h2 { color: #fff; margin-bottom: 6px; }
.cta-band p { color: rgba(255,255,255,.9); margin: 0; max-width: 52ch; }
.cta-band .btn { background: #fff; color: var(--orange-dark); }
.cta-band .btn:hover { background: #fff; color: var(--orange-dark); }

/* ---------- Formulaire ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .88rem; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: .95rem; color: var(--ink);
  padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; outline: none; transition: border-color .12s ease, box-shadow .12s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange-tint);
}
.field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: .82rem; color: var(--ink-3); }

/* Piège à robots : invisible pour les humains, rempli par les scripts */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Encadré info ---------- */
.callout {
  background: var(--orange-soft); border: 1px solid var(--orange-tint);
  border-left: 4px solid var(--orange); border-radius: var(--radius-sm);
  padding: 18px 22px; font-size: .95rem; color: var(--ink-2);
}
.callout strong { color: var(--ink); }

/* ---------- Page header interne ---------- */
.page-head {
  padding: 62px 0 54px; border-bottom: 1px solid var(--line);
  background: radial-gradient(800px 320px at 80% -20%, var(--orange-tint), transparent 60%);
}
.page-head h1 { margin-bottom: 12px; }
.page-head p { font-size: 1.1rem; max-width: 62ch; margin: 0; }
.breadcrumb { font-size: .85rem; color: var(--ink-3); margin-bottom: 16px; }
.breadcrumb a { color: var(--ink-3); }

/* ---------- Footer ---------- */
.site-footer { background: #0F1319; color: #A9B2C0; padding: 60px 0 28px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr; gap: 32px; }
.site-footer .logo { color: #fff; margin-bottom: 14px; }
.site-footer p { color: #8A94A3; font-size: .92rem; }
.site-footer h4 {
  color: #fff; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: #A9B2C0; font-size: .93rem; }
.site-footer a:hover { color: var(--orange-light); text-decoration: none; }
.footer-bottom {
  margin-top: 44px; padding-top: 22px; border-top: 1px solid #1E242E;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: .86rem; color: #6E7887;
}

.footer-bottom a { font-size: inherit; }
.lien-cookies {
  background: none; border: 0; padding: 0; margin: 0; font: inherit; color: inherit;
  text-decoration: underline; text-underline-offset: 2px; cursor: pointer;
}
.lien-cookies:hover { color: var(--orange-dark); }
.site-footer .lien-cookies:hover { color: var(--orange-light); }

/* ---------- Bandeau cookies ---------- */
.cookie-banner {
  position: fixed; z-index: 1000; left: 16px; right: 16px; bottom: 16px;
  max-width: 540px; margin-left: auto;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-lg); padding: 18px 20px;
  font-size: .9rem; color: var(--ink-2);
}
.cookie-banner strong { color: var(--ink); }
.cookie-banner p { margin: 0 0 14px; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-actions .btn { flex: 1 1 140px; justify-content: center; }

/* ---------- Utilitaires ---------- */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-3 { margin-top: 28px; }
.mb-0 { margin-bottom: 0; }
.muted { color: var(--ink-3); }
.small { font-size: .88rem; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .grid-4, .steps, .stats { grid-template-columns: repeat(2, 1fr); }
  .pricing { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1180px) {
  .burger { display: flex; }
  .nav-phone {
    justify-content: center; width: 42px; height: 40px;
    border: 1px solid var(--line); border-radius: 9px;
  }
  .nav-phone span { display: none; }
  .nav-phone svg { width: 18px; height: 18px; }
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 10px 24px 18px; display: none; box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 8px; border-radius: 8px; }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4, .steps, .stats, .form-grid { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .hero { padding: 56px 0 52px; }
  .cta-band { padding: 36px 26px; }
  .footer-grid { grid-template-columns: 1fr; }
}
