/* ------------------------------------------------------------------
   Fiche service : gabarit commun aux 6 pages service-*.html
   Depend de css/rwe-shared.css (tokens, header, boutons, footer).
   ------------------------------------------------------------------ */

/* ---------- Fil d'ariane ---------- */
.crumb{
  display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-bottom:22px;
  font-family:"IBM Plex Mono",monospace; font-size:.72rem;
  text-transform:uppercase; letter-spacing:.09em; color:var(--muted);
}
.crumb a{ color:var(--muted); text-decoration:none; }
.crumb a:hover{ color:var(--green-d); }
.crumb svg{ width:12px; height:12px; opacity:.5; }

/* ---------- Hero ---------- */
.sv-hero{ background:var(--bg); padding:52px 0 60px; }
.sv-hero-grid{ display:grid; grid-template-columns:minmax(0,1.15fr) minmax(0,1fr); gap:46px; align-items:center; }
.sv-hero-photo{
  border-radius:24px; overflow:hidden; aspect-ratio:4/3;
  border:6px solid var(--tint,#e4f1e1);
  box-shadow:0 20px 44px rgba(35,75,44,.16);
}
.sv-hero-photo img{ width:100%; height:100%; object-fit:cover; display:block; }
.sv-hero .accent{
  /* pastille de couleur du service, posee par --accent sur .sv-hero */
  display:inline-grid; place-items:center; width:64px; height:64px;
  border-radius:20px; background:var(--tint,#e4f1e1); color:var(--accent,var(--green));
  margin-bottom:20px;
}
.sv-hero .accent svg{ width:38px; height:38px; }
.sv-hero h1{
  font-family:"Bricolage Grotesque",sans-serif; font-weight:800;
  font-size:clamp(2.1rem,4.6vw,3.1rem); letter-spacing:-.025em;
  margin:0 0 16px; color:var(--ink); max-width:20ch;
}
.sv-hero .lede{ margin:0 0 28px; color:var(--muted); font-size:1.12rem; max-width:58ch; }
.sv-hero .cta-row{ display:flex; gap:12px; flex-wrap:wrap; }

/* ---------- Corps : contenu + colonne laterale ---------- */
.sv-body{ background:var(--bg-soft); padding:64px 0 88px; }
.sv-body .wrap{ display:grid; grid-template-columns:minmax(0,1.9fr) minmax(0,1fr); gap:44px; align-items:start; }

.sv-main h2{
  font-family:"Bricolage Grotesque",sans-serif; font-weight:800;
  font-size:1.5rem; letter-spacing:-.015em; margin:0 0 16px; color:var(--ink);
}
.sv-main section + section{ margin-top:46px; }
.sv-main p{ margin:0 0 14px; color:var(--ink); font-size:1.02rem; line-height:1.7; }
.sv-main p:last-child{ margin-bottom:0; }

/* Etapes numerotees */
.etapes{ list-style:none; margin:0; padding:0; display:grid; gap:14px; counter-reset:etape; }
.etapes li{
  counter-increment:etape;
  display:grid; grid-template-columns:auto 1fr; gap:16px; align-items:start;
  background:var(--card); border:1px solid rgba(31,61,43,.1);
  border-radius:16px; padding:18px 20px;
}
.etapes li::before{
  content:counter(etape,decimal-leading-zero);
  font-family:"IBM Plex Mono",monospace; font-size:.8rem; font-weight:500;
  color:var(--accent,var(--green-d));
  background:var(--tint,#e4f1e1); border-radius:10px;
  width:38px; height:38px; display:grid; place-items:center;
}
.etapes b{
  display:block; font-family:"Bricolage Grotesque",sans-serif;
  font-weight:700; font-size:1.02rem; color:var(--forest); margin-bottom:4px;
}
.etapes span{ color:var(--muted); font-size:.95rem; line-height:1.6; }

/* Liste a puces cochees */
.coches{ list-style:none; margin:0; padding:0; display:grid; gap:11px; }
.coches li{ display:grid; grid-template-columns:auto 1fr; gap:11px; align-items:start; font-size:1rem; }
.coches svg{ width:19px; height:19px; margin-top:3px; color:var(--accent,var(--green)); flex:none; }

/* Bloc de contenu manquant : visible et assume, plutot qu'un texte invente.
   Site YMYL : on n'ecrit pas de promesse que le cabinet n'a pas formulee. */
.a-fournir{
  border:1px dashed rgba(31,61,43,.28); border-radius:16px;
  padding:22px 24px; background:rgba(255,255,255,.55);
}
.a-fournir p{ margin:0; color:var(--muted); font-size:.95rem; }
.a-fournir .etiquette{
  display:inline-block; margin-bottom:8px;
  font-family:"IBM Plex Mono",monospace; font-size:.64rem;
  text-transform:uppercase; letter-spacing:.1em; color:var(--green-d);
}

/* ---------- Colonne laterale ---------- */
.sv-aside{ position:sticky; top:20px; display:grid; gap:18px; }
.encart{
  background:var(--card); border:1px solid rgba(31,61,43,.1);
  border-radius:20px; padding:24px;
}
.encart h2{
  font-family:"Bricolage Grotesque",sans-serif; font-weight:700;
  font-size:1.05rem; margin:0 0 16px; color:var(--ink);
}
.fiche{ list-style:none; margin:0; padding:0; display:grid; gap:14px; }
.fiche li{ display:grid; gap:2px; }
.fiche dt, .fiche .cle{
  font-family:"IBM Plex Mono",monospace; font-size:.64rem;
  text-transform:uppercase; letter-spacing:.09em; color:var(--muted);
}
.fiche .val{ font-size:.97rem; color:var(--forest); font-weight:500; }

.encart-cta{ background:var(--forest); color:#fff; }
.encart-cta h2{ color:#fff; }
.encart-cta p{ margin:0 0 18px; color:#b9c7bd; font-size:.94rem; line-height:1.6; }
.encart-cta .btn{ width:100%; justify-content:space-between; }
.encart-cta .encart-tel{
  margin:14px 0 0; text-align:center; line-height:1.7;
  color:#b9c7bd; font-size:.9rem;
}
.encart-tel a{ color:inherit; text-decoration:none; white-space:nowrap; }
.encart-tel a:hover{ color:#fff; text-decoration:underline; }

/* ---------- Autres services ---------- */
.autres{ background:var(--bg); padding:72px 0 88px; }
.autres-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.autre{
  position:relative; display:flex; flex-direction:column; overflow:hidden;
  background:var(--card); border:1px solid rgba(31,61,43,.1);
  border-radius:20px;
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.autre:hover,.autre:focus-within{ transform:translateY(-4px); box-shadow:0 18px 38px rgba(35,75,44,.16); border-color:rgba(31,61,43,.2); }
.autre-media{ display:block; aspect-ratio:16/9; overflow:hidden; background:var(--bg-soft); }
.autre-media img{ display:block; width:100%; height:100%; object-fit:cover; transition:transform .35s ease; }
.autre:hover .autre-media img,.autre:focus-within .autre-media img{ transform:scale(1.04); }
.autre-copy{ display:flex; flex:1; flex-direction:column; align-items:flex-start; padding:20px 22px 22px; }
.autre h3{
  font-family:"Bricolage Grotesque",sans-serif; font-weight:700;
  font-size:1.08rem; line-height:1.25; margin:0 0 8px; color:var(--ink);
}
.autre h3 a{ color:inherit; text-decoration:none; }
.autre h3 a::after{ content:""; position:absolute; inset:0; }
.autre p{ margin:0; color:var(--muted); font-size:.93rem; line-height:1.6; }
.autre-link{ display:flex; align-items:center; gap:8px; margin-top:auto; padding-top:16px; color:var(--green-d); font-size:.88rem; font-weight:600; }
.autre-link span{ display:grid; place-items:center; width:26px; height:26px; border-radius:50%; background:var(--bg-soft); font-size:1rem; transition:transform .18s ease,background .18s ease; }
.autre:hover .autre-link span,.autre:focus-within .autre-link span{ transform:translateX(3px); background:#e4f1e1; }
.autre h3 a:focus-visible{ outline:3px solid var(--green); outline-offset:4px; border-radius:3px; }

/* Variante sans photo : utilisée sur « À propos » et « Approche ».
   Les pictogrammes SVG étaient rendus à leur taille intrinsèque et poussaient
   le texte au bas des cartes. */
.autre > .ico{
  width:64px; height:64px; flex:none;
  margin:28px 24px 20px;
}
.autre > .ico + h3{ margin:0 24px 10px; }
.autre > .ico + h3 + p{ margin:0 24px 24px; }
.autre > .ico + h3 + p:last-child{ padding-bottom:0; }

/* ---------- Bandeau CTA ---------- */
.cta-band{ background:var(--forest); color:#fff; padding:64px 0; }
.cta-band .wrap{ display:flex; align-items:center; justify-content:space-between; gap:34px; flex-wrap:wrap; }
.cta-band h2{
  font-family:"Bricolage Grotesque",sans-serif; font-weight:800;
  font-size:clamp(1.6rem,3vw,2.2rem); letter-spacing:-.02em; margin:0 0 10px; max-width:22ch;
}
.cta-band p{ margin:0; color:#b9c7bd; max-width:46ch; }
.cta-band .btn-ghost{ background:transparent; color:#fff; --bd:rgba(255,255,255,.3); }
.cta-actions{ display:flex; gap:12px; flex-wrap:wrap; }

/* ---------- Responsive ---------- */
@media (max-width:980px){
  .sv-hero-grid{ grid-template-columns:1fr; gap:30px; }
  .sv-hero-photo{ order:-1; }
  .sv-body .wrap{ grid-template-columns:1fr; gap:34px; }
  .sv-aside{ position:static; }
  .autres-grid{ grid-template-columns:1fr 1fr; }
}
@media (max-width:640px){
  .sv-hero{ padding:36px 0 44px; }
  .sv-body{ padding:44px 0 64px; }
  .autres{ padding:48px 0 64px; }
  .autres-grid{ grid-template-columns:1fr; }
  .cta-band .wrap{ flex-direction:column; align-items:flex-start; }
}

/* ------------------------------------------------------------------
   Bloc « exemple » : contenu de demonstration, a remplacer.
   Distinct de .a-fournir (qui, lui, ne montre rien) : ici le contenu est
   affiche pour donner a voir la page finie, mais il est faux. Sur un site
   YMYL, aucun titre ni diplome ne doit pouvoir etre pris pour un fait :
   d'ou le liftage visuel et l'etiquette.
   ------------------------------------------------------------------ */
.exemple{
  position:relative;
  border:1px dashed #cf9a33; border-radius:16px;
  padding:26px 24px 22px; background:#fdf8ee;
}
.exemple::before{
  content:"Exemple à remplacer";
  position:absolute; top:-10px; left:18px;
  font-family:"IBM Plex Mono",ui-monospace,monospace;
  font-size:.6rem; text-transform:uppercase; letter-spacing:.1em;
  color:#8a6520; background:#fdf8ee; padding:0 8px;
}

/* ------------------------------------------------------------------
   Bandeau « brouillon » : page de remplissage.
   Le contenu est plausible mais n'a pas ete ecrit ni valide par le
   cabinet. Il tient la maquette debout en attendant la vraie ligne
   editoriale. Visible et non discret : il doit etre impossible de
   publier ces pages sans s'en apercevoir.
   ------------------------------------------------------------------ */
.brouillon{
  display:flex; align-items:flex-start; gap:12px;
  margin:0 0 30px; padding:16px 20px;
  border:1px dashed #cf9a33; border-left-width:4px; border-radius:14px;
  background:#fdf8ee; color:#6b5119;
}
.brouillon svg{ width:20px; height:20px; flex:none; margin-top:2px; color:#cf9a33; }
.brouillon b{
  display:block; font-family:"IBM Plex Mono",ui-monospace,monospace;
  font-size:.64rem; text-transform:uppercase; letter-spacing:.1em; margin-bottom:4px;
}
.brouillon span{ font-size:.92rem; line-height:1.6; }
