/* ============================================================
   VERILIS — style-diogene.css (v2)
   Couche additionnelle chargee APRES style.css, uniquement sur
   la page Syndrome de Diogene. Ne modifie rien ailleurs :
   tout est porte par body.svc-diogene. Supprimer ce fichier
   suffit a revenir a l'ancien rendu.
   ============================================================ */

/* ---------- 1. Respiration : on casse le rythme uniforme ---------- */
body.svc-diogene section{padding:96px 0}
body.svc-diogene .svc-head,
body.svc-diogene .service-split>div:first-child{position:relative}

/* Petit filet orange au-dessus des titres de section : repere visuel
   qui remplace la succession de blocs identiques. */
body.svc-diogene .svc-head::before,
body.svc-diogene .service-split>div:first-child::before{
  content:"";display:block;width:38px;height:3px;border-radius:2px;
  background:var(--accent);margin-bottom:18px;
}
body.svc-diogene .service-method .service-split>div:first-child::before{background:var(--accent-light)}

/* ---------- 2. Bandeau discretion ---------- */
.discretion{background:var(--navy);color:#fff;position:relative;overflow:hidden}
.discretion::before{
  content:"";position:absolute;inset:0;
  background:radial-gradient(760px 380px at 50% -10%,rgba(var(--accent-rgb),.16),transparent 62%);
  pointer-events:none;
}
.discretion .wrap{position:relative;text-align:center}
.discretion h2{color:#fff;margin-inline:auto}
.discretion>.wrap>p{color:rgba(255,255,255,.78);margin:14px auto 0;font-size:16.5px;max-width:60ch}
.discretion-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:44px;text-align:left}
.discretion-grid article{
  background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.12);
  border-radius:var(--r);padding:26px 24px;
}
.discretion-grid .ico{
  width:40px;height:40px;border-radius:11px;display:grid;place-items:center;margin-bottom:16px;
  background:rgba(var(--accent-rgb),.16);border:1px solid rgba(var(--accent-rgb),.42);
}
.discretion-grid .ico svg{width:19px;height:19px;stroke:var(--accent-light);fill:none;stroke-width:2;
  stroke-linecap:round;stroke-linejoin:round}
.discretion-grid h3{color:#fff;font-size:16px;margin-bottom:7px}
.discretion-grid p{color:rgba(255,255,255,.72);font-size:14.5px}

/* ---------- 3. Avant / apres : curseur comparatif ---------- */
.ba{background:#fff}
.ba-head{max-width:720px;margin-bottom:34px}
.ba-head::before{content:"";display:block;width:38px;height:3px;border-radius:2px;
  background:var(--accent);margin-bottom:18px}
.ba-head p{margin-top:10px;font-size:16.5px}

.ba-item{position:relative;border-radius:var(--r);overflow:hidden;
  box-shadow:var(--shadow);border:1px solid var(--line-soft);
  aspect-ratio:16/10;background:#E3E8EE;user-select:none;touch-action:pan-y}
.ba-item img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;pointer-events:none}
/* Le calque "apres" garde exactement la taille du cadre : on ne le
   retrecit pas, on le DECOUPE. C'est ce qui garantit que les deux photos
   restent parfaitement superposees quand on deplace le curseur. */
.ba-after{position:absolute;inset:0;clip-path:inset(0 50% 0 0);will-change:clip-path}
.ba-after img{width:100%;height:100%;object-fit:cover}

.ba-label{position:absolute;top:14px;z-index:3;padding:6px 13px;border-radius:999px;
  font-size:11.5px;font-weight:800;letter-spacing:.09em;text-transform:uppercase;
  background:rgba(7,30,56,.72);color:#fff;backdrop-filter:blur(5px)}
.ba-label.is-before{right:14px}
.ba-label.is-after{left:14px;background:rgba(var(--accent-rgb),.9)}

.ba-handle{position:absolute;top:0;bottom:0;width:3px;background:#fff;z-index:4;
  transform:translateX(-50%);box-shadow:0 0 0 1px rgba(7,30,56,.18)}
.ba-handle::after{
  content:"";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);
  width:46px;height:46px;border-radius:50%;background:#fff;
  box-shadow:0 6px 18px rgba(7,30,56,.28);
  background-image:
    linear-gradient(to right,transparent 44%,var(--navy) 44%,var(--navy) 46%,transparent 46%),
    linear-gradient(to right,transparent 54%,var(--navy) 54%,var(--navy) 56%,transparent 56%);
}
.ba-range{position:absolute;inset:0;z-index:5;width:100%;height:100%;margin:0;opacity:0;cursor:ew-resize}
.ba-item:focus-within .ba-handle::after{box-shadow:0 0 0 3px var(--accent),0 6px 18px rgba(7,30,56,.28)}
.ba-hint{margin-top:12px;font-size:13.5px;color:var(--muted);display:flex;align-items:center;gap:8px}
.ba-hint svg{width:16px;height:16px;stroke:var(--accent-2);fill:none;stroke-width:2;
  stroke-linecap:round;stroke-linejoin:round;flex:none}

/* ---------- 4. Deroule en veritable frise ---------- */
body.svc-diogene .service-steps{grid-template-columns:1fr;gap:0;position:relative;padding-left:34px}
body.svc-diogene .service-steps::before{
  content:"";position:absolute;left:15px;top:14px;bottom:14px;width:2px;
  background:linear-gradient(180deg,rgba(140,184,232,.55),rgba(140,184,232,.1));
}
body.svc-diogene .service-steps article{
  background:none;border:0;border-radius:0;padding:0 0 26px;position:relative;
}
body.svc-diogene .service-steps article:last-child{padding-bottom:0}
body.svc-diogene .service-steps span{
  position:absolute;left:-34px;top:0;margin:0;width:31px;min-width:31px;height:31px;
  border-radius:50%;background:var(--navy-2);border:2px solid rgba(140,184,232,.6);
  color:var(--accent-light);font-size:13px;padding:0;
}
body.svc-diogene .service-steps h3{margin-bottom:4px;padding-top:5px}

/* ---------- 5. Tarifs : la ligne la plus frequente ressort ---------- */
body.svc-diogene .price-list .row{transition:background .16s ease}
body.svc-diogene .price-list .row:hover{background:#FAFBFC}
body.svc-diogene .price-list .row.is-common{
  background:var(--accent-soft);border-left:3px solid var(--accent);
}
body.svc-diogene .price-list .row.is-common span{font-weight:700;color:var(--navy)}
body.svc-diogene .price-list .row.is-common strong{color:var(--accent-2)}
.row-tag{display:inline-block;margin-left:9px;padding:2px 8px;border-radius:999px;
  background:var(--accent);color:#fff;font-size:10.5px;font-weight:800;
  letter-spacing:.07em;text-transform:uppercase;vertical-align:1px}

/* ---------- 6. Galerie : legendes plus sobres ---------- */
body.svc-diogene .gallery3 figcaption{
  background:linear-gradient(180deg,transparent,rgba(6,20,38,.86));
  font-size:12.5px;font-weight:650;letter-spacing:.01em;padding:22px 15px 13px;
}

/* ---------- 7. Apparition douce au defilement ---------- */
body.svc-diogene [data-reveal]{opacity:0;transform:translateY(14px);
  transition:opacity .55s ease,transform .55s ease}
body.svc-diogene [data-reveal].is-in{opacity:1;transform:none}
@media (prefers-reduced-motion:reduce){
  body.svc-diogene [data-reveal]{opacity:1;transform:none;transition:none}
}

/* ---------- 8. Responsive ---------- */
@media (max-width:900px){
  .discretion-grid{grid-template-columns:1fr}
  .ba-item{aspect-ratio:4/3}
}
@media (max-width:760px){
  body.svc-diogene section{padding:64px 0}
  .discretion-grid{margin-top:32px}
  .ba-label{font-size:10.5px;padding:5px 10px}
  .ba-handle::after{width:38px;height:38px}
}

/* ---------- 9. En-tete : bouton d'appel unique ----------
   Sur cette page, la barre du haut ne propose qu'une seule action :
   appeler. Le lien tel: est automatiquement compte comme conversion
   par main.js, sans code supplementaire. */
body.svc-diogene .nav-call{gap:8px;padding-inline:20px}
body.svc-diogene .nav-call .ico{font-size:16px;line-height:1;transform:translateY(-1px)}
@media (max-width:760px){
  body.svc-diogene .nav-call{padding-inline:15px}
}

/* ---------- 10. Barre mobile a deux actions ----------
   La feuille principale prevoit trois colonnes ; sans cette regle,
   la troisieme resterait vide et laisserait une bande grise a droite. */
body.svc-diogene .mobile-cta{grid-template-columns:1fr 1fr}

/* ============================================================
   v2 — REFONTE VISUELLE

   Trois ajouts, tous autonomes : ils ne dépendent d'aucune classe
   de style.css, donc ils s'affichent correctement quoi qu'il arrive.
     · « Où nous intervenons » — la page ne disait nulle part où
       VERILIS se déplace ni sous quel délai ;
     · « Ce que deviennent vos affaires » — la question que se pose
       toute famille avant d'appeler ;
     · un bandeau de réassurance sous l'en-tête.
   Plus une dégradation propre du comparateur avant/après tant que
   les photos « après » ne sont pas fournies.
   ============================================================ */

body.svc-diogene{
  --dio-navy:var(--navy,#0C2E52);
  --dio-navy-2:var(--navy-2,#14456F);
  --dio-orange:var(--accent,#2E7FD4);
  --dio-orange-2:var(--accent-2,#2168B4);
  --dio-orange-soft:var(--accent-soft,#EDF4FC);
  --dio-ink:var(--text,#0C2E52);
  --dio-muted:var(--muted,#5A6B7D);
  --dio-line:var(--line-soft,#E6EBF1);
  --dio-radius:var(--r,16px);
  --dio-shadow:var(--shadow,0 10px 30px rgba(12,46,82,.08));
}

/* Une section sur deux prend un fond très légèrement teinté : c'est ce
   qui donne du relief à une page longue sans ajouter de décoration. */
body.svc-diogene .service-method{background:#F7F9FC}
body.svc-diogene .page-head .lead{font-size:17.5px;line-height:1.65;max-width:56ch}
body.svc-diogene .page-head-media img{border-radius:var(--dio-radius);box-shadow:var(--dio-shadow)}

/* ---------- Comparateur : dégradation propre ----------
   Tant qu'aucune photo « après » n'existe, le curseur, la poignée et
   l'étiquette disparaissent et le bloc devient une simple photo
   légendée. Aucune image cassée ne s'affiche jamais. */
.ba-item.is-single .ba-after,
.ba-item.is-single .ba-handle,
.ba-item.is-single .ba-range,
.ba-item.is-single .ba-label.is-after{display:none}
.ba-item.is-single{cursor:default}
.ba-item.is-single + .ba-hint{display:none}

/* ---------- Où nous intervenons ---------- */
.dio-zone{background:var(--dio-navy);color:#fff;position:relative;overflow:hidden}
.dio-zone::after{content:"";position:absolute;inset:0;pointer-events:none;
  background:radial-gradient(620px 320px at 88% 6%,rgba(var(--accent-rgb),.18),transparent 60%)}
.dio-zone .wrap{position:relative}
.dio-zone-grid{display:grid;grid-template-columns:1.05fr .95fr;gap:52px;align-items:start}
.dio-zone h2{color:#fff;margin:0 0 14px;font-size:30px;letter-spacing:-.02em;line-height:1.15}
.dio-zone h2::before{content:"";display:block;width:38px;height:3px;border-radius:2px;
  background:var(--dio-orange);margin-bottom:18px}
.dio-zone p{color:rgba(255,255,255,.76);font-size:16.5px;line-height:1.7;margin:0 0 14px;max-width:52ch}
.dio-zone strong{color:#fff;font-weight:650}
.dio-facts{display:grid;gap:12px;margin:0;padding:0;list-style:none}
.dio-fact{display:flex;gap:14px;align-items:flex-start;background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.12);border-radius:14px;padding:18px 20px}
.dio-fact svg{width:20px;height:20px;flex:none;margin-top:2px;stroke:var(--accent-light);fill:none;
  stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.dio-fact b{display:block;color:#fff;font-size:15.5px;font-weight:650;margin-bottom:3px}
.dio-fact span{display:block;color:rgba(255,255,255,.72);font-size:14.5px;line-height:1.6}

/* ---------- Ce que deviennent les affaires ---------- */
.dio-tri{background:#fff}
.dio-tri-head{max-width:640px;margin-bottom:38px}
.dio-tri-head::before{content:"";display:block;width:38px;height:3px;border-radius:2px;
  background:var(--dio-orange);margin-bottom:18px}
.dio-tri-head h2{margin:0 0 12px;font-size:30px;letter-spacing:-.02em;line-height:1.15;color:var(--dio-ink)}
.dio-tri-head p{margin:0;color:var(--dio-muted);font-size:16.5px;line-height:1.7}
.dio-tri-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.dio-tri-card{border:1px solid var(--dio-line);border-radius:var(--dio-radius);padding:26px 24px;
  background:#fff;transition:border-color .16s ease,box-shadow .16s ease}
.dio-tri-card:hover{border-color:#CFD8E3;box-shadow:var(--dio-shadow)}
.dio-tri-card .num{display:inline-grid;place-items:center;width:34px;height:34px;border-radius:10px;
  background:var(--dio-orange-soft);color:var(--dio-orange-2);font-size:14px;font-weight:800;margin-bottom:16px}
.dio-tri-card h3{margin:0 0 8px;font-size:17px;color:var(--dio-ink);letter-spacing:-.01em}
.dio-tri-card p{margin:0;color:var(--dio-muted);font-size:14.8px;line-height:1.65}
.dio-tri-note{margin-top:26px;display:flex;gap:12px;align-items:flex-start;background:#F7F9FC;
  border:1px solid var(--dio-line);border-left:3px solid var(--dio-orange);border-radius:12px;padding:16px 18px}
.dio-tri-note svg{width:19px;height:19px;flex:none;margin-top:2px;stroke:var(--dio-orange-2);fill:none;
  stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.dio-tri-note p{margin:0;font-size:14.8px;line-height:1.65;color:var(--dio-ink)}

/* ---------- Bandeau de réassurance ---------- */
.dio-trust{background:#F7F9FC;border-top:1px solid var(--dio-line);
  border-bottom:1px solid var(--dio-line);padding:26px 0 !important}
.dio-trust-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;text-align:center}
.dio-trust-item{display:flex;flex-direction:column;align-items:center;gap:7px}
.dio-trust-item svg{width:22px;height:22px;stroke:var(--dio-orange);fill:none;stroke-width:1.8;
  stroke-linecap:round;stroke-linejoin:round}
.dio-trust-item b{font-size:14.5px;color:var(--dio-ink);font-weight:650;letter-spacing:-.01em}
.dio-trust-item span{font-size:13px;color:var(--dio-muted);line-height:1.5}

/* ---------- Responsive des nouveaux blocs ---------- */
@media (max-width:980px){
  .dio-zone-grid{grid-template-columns:1fr;gap:34px}
  .dio-tri-grid{grid-template-columns:1fr 1fr}
}
@media (max-width:900px){
  .dio-trust-grid{grid-template-columns:1fr 1fr;gap:22px}
}
@media (max-width:760px){
  .dio-zone h2,.dio-tri-head h2{font-size:25px}
  .dio-tri-grid{grid-template-columns:1fr}
  .dio-tri-note{padding:14px 15px}
}
