/* ============================================================
   louermaclim.fr — Styles des pages SEO locales (cocon villes)
   Palette teal de la charte. Réutilise /css/style.css pour
   header / footer / boutons / FAQ ; ce fichier stylise les
   sections spécifiques aux landing pages "ville".
   ============================================================ */

.seo main { display: block; }

/* ---------- Icône-badge réutilisable ---------- */
.seo-ic {
  width: 48px; height: 48px; border-radius: 13px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--teal-soft); color: var(--teal); margin-bottom: 16px;
}
.seo-ic svg { width: 24px; height: 24px; }
.dark .seo-ic { background: rgba(255,255,255,.1); color: #7fe0d9; }

/* Icône dans les boutons CTA standards (À propos, FAQ) */
.seo .btn { display: inline-flex; align-items: center; gap: 8px; }
.seo .btn svg { width: 18px; height: 18px; flex: 0 0 auto; }

/* FAQ réutilisée depuis la landing : on lui redonne son rythme vertical */
.seo .faq { padding: 84px 0; }
@media (max-width: 880px) { .seo .faq { padding: 60px 0; } }

/* ---------- Rythme des sections ---------- */
.seo-section { padding: 84px 0; }
.seo-section.alt { background: #eef4f5; }
.seo-section.dark { background: linear-gradient(160deg, #0e4666, #0a3650); color: #d7e7ef; }
.seo-section.dark h2, .seo-section.dark h3 { color: #fff; }

.seo-head { max-width: 760px; margin-bottom: 48px; }
.seo-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.seo-head .eyebrow { color: var(--teal); }
.dark .seo-head .eyebrow { color: #7fe0d9; }
.seo-section h2 { font-size: clamp(1.55rem, 3vw, 2.1rem); font-weight: 800; line-height: 1.18; letter-spacing: -.5px; color: var(--primary); }
.seo-section .seo-sub { color: var(--muted); margin-top: 12px; font-size: 1.04rem; }
.dark .seo-section .seo-sub, .dark .seo-sub { color: #a9c6d6; }

/* ============================================================
   HERO
   ============================================================ */
.seo-hero {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(135deg, #0e4666 0%, #0f7d8a 55%, #0f8f8a 100%);
  padding: 76px 0 78px;
}
.seo-hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.07) 1.4px, transparent 1.4px);
  background-size: 26px 26px; opacity: .6;
}
.seo-hero::after {
  content: ""; position: absolute; right: -160px; top: -160px;
  width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(126,224,217,.22), transparent 70%);
}
.seo-hero .wrap { position: relative; z-index: 1; }
.seo-hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 52px; align-items: center; }

.seo-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22);
  padding: 7px 15px; border-radius: 999px; margin-bottom: 22px;
}
.seo-eyebrow svg { width: 15px; height: 15px; color: #9fece6; }
.seo-hero h1 { font-size: clamp(1.85rem, 4.4vw, 2.85rem); line-height: 1.1; font-weight: 800; letter-spacing: -.5px; }
.seo-hero h1 .accent { color: #aef2ea; }
.seo-hero .seo-lead { margin-top: 18px; font-size: 1.1rem; line-height: 1.6; max-width: 56ch; opacity: .96; }

.seo-hero-actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.btn-call {
  display: inline-flex; align-items: center; gap: 9px;
  background: #25d366; color: #fff; font-weight: 800;
  padding: 14px 24px; border-radius: 999px; font-size: 1.05rem;
  box-shadow: 0 12px 26px rgba(0,0,0,.18); transition: transform .08s, box-shadow .2s, background .2s;
}
.btn-call:hover { transform: translateY(-1px); box-shadow: 0 16px 32px rgba(0,0,0,.24); background: #1da851; }
.btn-call svg { width: 19px; height: 19px; fill: currentColor; }
.btn-ghost-light {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1.6px solid rgba(255,255,255,.55); color: #fff; font-weight: 700;
  padding: 12px 22px; border-radius: 999px; transition: background .15s;
}
.btn-ghost-light:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-ghost-light svg { width: 17px; height: 17px; }

.hero-trust { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero-trust span {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18);
  padding: 8px 14px; border-radius: 999px; font-size: .85rem; font-weight: 600;
}
.hero-trust svg { width: 15px; height: 15px; color: #8ef0c6; flex: 0 0 auto; }

/* Visuel produit */
.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-visual .card {
  position: relative; z-index: 1;
  background: #fff; border-radius: 22px; padding: 26px;
  box-shadow: 0 34px 70px rgba(7,40,58,.4); max-width: 380px; width: 100%;
}
.hero-visual .card img { border-radius: 12px; width: 100%; height: auto; }
.hero-badge {
  position: absolute; left: -14px; top: 26px; z-index: 3;
  background: var(--teal); color: #fff; border-radius: 14px;
  padding: 12px 16px; box-shadow: 0 14px 28px rgba(15,143,138,.45);
}
.hero-badge b { display: block; font-size: 1.45rem; font-weight: 800; line-height: 1; }
.hero-badge span { font-size: .76rem; opacity: .92; color: #fff; }
.hero-rating {
  position: absolute; right: -10px; bottom: 22px; z-index: 3;
  background: #fff; color: var(--ink); border-radius: 12px;
  padding: 10px 14px; box-shadow: 0 14px 28px rgba(7,40,58,.22);
  display: flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 600;
}
.hero-rating .stars { color: #f5a623; letter-spacing: 1px; }

/* ---------- Barre de stats (sous le hero) ---------- */
.seo-statbar { background: #fff; border-bottom: 1px solid var(--line); }
.seo-statbar .wrap {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
}
.seo-stat { display: flex; align-items: center; gap: 14px; padding: 26px 20px; }
.seo-stat + .seo-stat { border-left: 1px solid var(--line); }
.seo-stat .seo-ic { margin: 0; width: 44px; height: 44px; flex: 0 0 auto; }
.seo-stat b { display: block; font-size: 1.3rem; font-weight: 800; color: var(--primary); line-height: 1.1; }
.seo-stat span { font-size: .85rem; color: var(--muted); }

/* ============================================================
   SPLIT 2 colonnes
   ============================================================ */
.seo-split { display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; }
.seo-split p { margin-bottom: 16px; color: var(--muted); line-height: 1.7; }
.seo-split .img-col img { border-radius: 18px; box-shadow: var(--shadow); width: 100%; height: auto; }
.seo-split .btn { margin-top: 8px; }

/* ============================================================
   Grilles de cartes
   ============================================================ */
.poi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 22px; }
.poi-card {
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 28px;
  transition: transform .12s, box-shadow .2s, border-color .2s;
}
.poi-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #cfe0e2; }
.poi-card h3 { font-size: 1.12rem; color: var(--primary); margin-bottom: 8px; }
.poi-card p { color: var(--muted); font-size: .96rem; line-height: 1.6; }

/* Types (dark) */
.types-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.type-card { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: 16px; padding: 28px; }
.type-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.type-card p { color: #a9c6d6; font-size: .95rem; line-height: 1.6; }

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }
.service-card {
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 28px;
  transition: transform .12s, box-shadow .2s, border-color .2s;
}
.service-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #cfe0e2; }
.service-card h3 { font-size: 1.12rem; color: var(--primary); margin-bottom: 8px; }
.service-card p { color: var(--muted); font-size: .96rem; line-height: 1.6; }

/* ============================================================
   Étapes numérotées (dimensionnement)
   ============================================================ */
.steps { list-style: none; counter-reset: s; display: grid; grid-template-columns: 1fr 1fr; gap: 22px 40px; }
.steps li { counter-increment: s; position: relative; padding-left: 60px; min-height: 44px; }
.steps li::before {
  content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: 0;
  width: 44px; height: 44px; border-radius: 13px;
  background: var(--teal-soft); color: var(--teal); font-weight: 800; font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
}
.steps li b { color: var(--primary); display: block; margin-bottom: 3px; }
.steps li span { color: var(--muted); font-size: .95rem; line-height: 1.55; }

/* ============================================================
   Do / Don't
   ============================================================ */
.dodont { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.dodont-col {
  border: 1px solid var(--line); border-radius: 18px; padding: 30px 32px;
  transition: transform .12s, box-shadow .2s;
}
.dodont-col:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.dodont-col.do { background: linear-gradient(180deg, #f0faf5, #ffffff 60%); border-color: #cdeeda; }
.dodont-col.dont { background: linear-gradient(180deg, #fdf2f4, #ffffff 60%); border-color: #f6d6dc; }
.dodont-head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; padding-bottom: 18px; border-bottom: 1px solid; }
.dodont-col.do .dodont-head { border-color: #cdeeda; }
.dodont-col.dont .dodont-head { border-color: #f6d6dc; }
.dodont-badge {
  width: 50px; height: 50px; border-radius: 14px; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
}
.dodont-col.do .dodont-badge { background: var(--green); color: #fff; box-shadow: 0 8px 18px rgba(31,157,107,.35); }
.dodont-col.dont .dodont-badge { background: var(--red); color: #fff; box-shadow: 0 8px 18px rgba(216,58,82,.32); }
.dodont-badge svg { width: 26px; height: 26px; }
.dodont-head h3 { font-size: 1.2rem; color: var(--primary); margin: 0; }
.dodont-head span.tag { display: block; font-size: .8rem; font-weight: 600; color: var(--muted); margin-top: 2px; }
.dodont-col ul { list-style: none; display: grid; gap: 14px; }
.dodont-col li { display: flex; align-items: flex-start; gap: 12px; font-size: .97rem; color: #33424b; line-height: 1.5; }
.dodont-col li .li-ic {
  width: 24px; height: 24px; border-radius: 50%; flex: 0 0 auto; margin-top: 1px;
  display: flex; align-items: center; justify-content: center;
}
.dodont-col.do li .li-ic { background: #d9f3e3; color: var(--green); }
.dodont-col.dont li .li-ic { background: #fbe0e5; color: var(--red); }
.dodont-col li .li-ic svg { width: 15px; height: 15px; }

/* ============================================================
   Contexte + stats (dark)
   ============================================================ */
.context-split { display: grid; grid-template-columns: 1.25fr 1fr; gap: 52px; align-items: start; }
.context-split p { margin-bottom: 16px; line-height: 1.7; color: #c6dde9; }
.stats-list { list-style: none; display: grid; gap: 14px; }
.stats-list li { display: flex; align-items: center; gap: 14px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: 13px; padding: 16px 18px; }
.stats-list .seo-ic { margin: 0; width: 42px; height: 42px; flex: 0 0 auto; }
.stats-list b { display: block; font-size: 1.3rem; font-weight: 800; color: #fff; line-height: 1.1; }
.stats-list span { font-size: .86rem; color: #a9c6d6; }

/* ============================================================
   Quartiers
   ============================================================ */
.quartiers-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.quartier { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; display: flex; gap: 14px; align-items: flex-start; }
.quartier svg { width: 20px; height: 20px; color: var(--teal); flex: 0 0 auto; margin-top: 2px; }
.quartier strong { color: var(--primary); display: block; margin-bottom: 2px; }
.quartier span { color: var(--muted); font-size: .9rem; }

/* ============================================================
   Méthode 4 étapes (dark)
   ============================================================ */
.method-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; }
.method-step { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: 16px; padding: 28px; position: relative; }
.method-step .n { position: absolute; right: 22px; top: 20px; font-size: 1.6rem; font-weight: 800; color: rgba(127,224,217,.35); line-height: 1; }
.method-step h3 { margin: 6px 0 8px; }
.method-step p { color: #a9c6d6; font-size: .95rem; line-height: 1.6; }

/* ============================================================
   Carte
   ============================================================ */
.seo-map iframe { width: 100%; height: 420px; border: 0; border-radius: 18px; display: block; box-shadow: var(--shadow); }

/* ============================================================
   Maillage (mère + voisines)
   ============================================================ */
.mere-link {
  display: flex; align-items: center; gap: 18px;
  background: linear-gradient(135deg, #0e4666, #0f8f8a); color: #fff;
  border-radius: 18px; padding: 26px 30px; margin-bottom: 26px;
  transition: transform .12s, box-shadow .2s;
}
.mere-link:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(14,70,102,.3); color: #fff; }
.mere-link .seo-ic { margin: 0; background: rgba(255,255,255,.16); color: #fff; flex: 0 0 auto; }
.mere-link strong { font-size: 1.15rem; display: block; }
.mere-link span { opacity: .9; font-size: .95rem; }
.mere-link .chev { margin-left: auto; }
.mere-link .chev svg { width: 26px; height: 26px; }

.neighbors-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.neighbor {
  background: #fff; border: 1px solid var(--line); border-radius: 13px;
  padding: 16px 18px; display: flex; justify-content: space-between; align-items: center; gap: 10px;
  transition: border-color .2s, transform .1s;
}
.neighbor:hover { border-color: var(--teal); transform: translateY(-2px); }
.neighbor strong { color: var(--primary); font-size: 1rem; }
.neighbor .go { color: var(--teal); display: inline-flex; }
.neighbor .go svg { width: 18px; height: 18px; }

/* Cards villes (mère) */
.villes-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }
.ville-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 28px; transition: transform .12s, box-shadow .2s, border-color .2s; }
.ville-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--teal); }
.ville-card .seo-ic { margin-bottom: 14px; }
.ville-card strong { display: block; font-size: 1.2rem; color: var(--primary); }
.ville-card .meta { font-size: .82rem; color: #8a98a0; margin-bottom: 10px; }
.ville-card p { color: var(--muted); font-size: .95rem; line-height: 1.6; margin-bottom: 12px; }
.ville-card .go { color: var(--teal); font-weight: 700; font-size: .94rem; display: inline-flex; align-items: center; gap: 6px; }
.ville-card .go svg { width: 17px; height: 17px; }
.ville-card .stretched { position: absolute; inset: 0; z-index: 1; }

/* ============================================================
   Bandeau CTA bas
   ============================================================ */
.seo-cta-band {
  position: relative; overflow: hidden; text-align: center; color: #fff;
  background: linear-gradient(135deg, #0f8f8a, #0e4666); padding: 76px 20px;
}
.seo-cta-band::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.06) 1.4px, transparent 1.4px);
  background-size: 26px 26px;
}
.seo-cta-band > * { position: relative; z-index: 1; }
.seo-cta-band h2 { color: #fff; font-size: clamp(1.6rem, 3.2vw, 2.2rem); margin-bottom: 14px; letter-spacing: -.5px; }
.seo-cta-band p { opacity: .94; max-width: 56ch; margin: 0 auto 26px; font-size: 1.05rem; }
.seo-cta-band .btn-call { font-size: 1.12rem; padding: 15px 28px; }

/* ============================================================
   CTA intermédiaire (strip)
   ============================================================ */
.cta-strip-section { padding: 44px 0; }
.cta-strip {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px;
  background: linear-gradient(135deg, #0f8f8a, #0e4666); color: #fff;
  border-radius: 22px; padding: 32px 38px; box-shadow: 0 20px 44px rgba(14,70,102,.24);
  position: relative; overflow: hidden;
}
.cta-strip::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.07) 1.4px, transparent 1.4px);
  background-size: 24px 24px;
}
.cta-strip > * { position: relative; z-index: 1; }
.cta-strip h3 { font-size: 1.35rem; color: #fff; line-height: 1.25; }
.cta-strip p { opacity: .92; font-size: .98rem; margin-top: 5px; max-width: 52ch; }
.cta-strip .cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ============================================================
   Fil d'Ariane
   ============================================================ */
.breadcrumb { font-size: .85rem; color: var(--muted); padding: 16px 0; }
.breadcrumb a { color: var(--primary-light); }
.breadcrumb a:hover { color: var(--teal); }

/* ============================================================
   Animations
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  /* Apparition au scroll (la classe .reveal est ajoutée par seo-anim.js) */
  .seo .reveal {
    opacity: 0; transform: translateY(20px);
    transition: opacity .65s ease, transform .65s cubic-bezier(.2,.7,.2,1);
    will-change: opacity, transform;
  }
  .seo .reveal.in { opacity: 1; transform: none; }

  /* Flottement continu et discret des éléments du hero */
  .seo-hero .card { animation: seoFloat 6s ease-in-out infinite; }
  .hero-badge { animation: seoFloat 5s ease-in-out infinite; }
  .hero-rating { animation: seoFloat 5.5s ease-in-out infinite .4s; }
  .seo-hero::after { animation: seoGlow 9s ease-in-out infinite; }
}
@keyframes seoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}
@keyframes seoGlow {
  0%, 100% { opacity: .8; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .seo-statbar .wrap { grid-template-columns: 1fr 1fr; }
  .seo-stat:nth-child(3) { border-left: 0; }
  .seo-stat { border-top: 1px solid var(--line); }
  .seo-stat:nth-child(-n+2) { border-top: 0; }
}
@media (max-width: 880px) {
  .seo-section { padding: 60px 0; }
  .seo-hero-grid, .seo-split, .context-split { grid-template-columns: 1fr; gap: 36px; }
  .seo-hero { padding: 60px 0 64px; }
  .steps { grid-template-columns: 1fr; }
  .dodont { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .seo-statbar .wrap { grid-template-columns: 1fr; }
  .seo-stat { border-left: 0 !important; border-top: 1px solid var(--line); }
  .seo-stat:first-child { border-top: 0; }
  .seo-hero-actions { flex-direction: column; align-items: stretch; }
  .btn-call, .btn-ghost-light { justify-content: center; }
}
