/* ==========================================================================
   Mise en page propre au site de demonstration "plombier".
   Charge apres demo-base.css par toutes les pages de ce site : c'est ici
   que vit son architecture (et non dans un <style> recopie page par page).
   ========================================================================== */

/* ---- Signature Rive Droite : sobre, technique, sans fioriture ---- */
.btn, .btn-primary, .btn-outline { border-radius: 3px; }
.btn-primary { box-shadow: inset 0 0 0 2px rgba(255,255,255,0.28); transition: background 0.15s ease, box-shadow 0.15s ease; }
.btn-primary:hover { transform: none; filter: none; background: color-mix(in srgb, var(--accent) 85%, black); }
.card { border-radius: 3px; }
.card::before { display: none; }
.card::after {
  content: ''; position: absolute; width: 16px; height: 16px; top: 0; left: 0;
  border-top: 3px solid var(--accent); border-left: 3px solid var(--accent);
  opacity: 0; transition: opacity 0.2s ease;
}
.card:hover::after { opacity: 1; }
.icon-tile { border-radius: 3px; border: 2px solid var(--border); background: var(--bg-alt); transition: border-color 0.2s ease; }
.card:hover .icon-tile { border-color: var(--accent); }
/* =======================================================================
   Architecture propre a Rive Droite : une fiche d'intervention.
   Le numero d'urgence passe avant tout, le corps est en deux colonnes avec
   un rail collant. Aucune grille de cartes : listes, tableau, index.
   ======================================================================= */

.visuallyhidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* -- Barre d'urgence -- */
.barre-urgence { background: var(--accent); color: #fff; padding: 34px 0; }
.barre-urgence-inner { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between; }
.urgence-label { font-size: 13.5px; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.85; }
.urgence-titre {
  font-size: clamp(21px, 2.9vw, 28px); line-height: 1.2;
  margin-bottom: 4px; max-width: 20ch;
}
.urgence-numero {
  display: inline-block; margin: 8px 0 6px;
  font-family: var(--font-display); font-size: clamp(32px, 5vw, 48px);
  font-weight: 900; letter-spacing: -0.02em; color: #fff;
}
.urgence-numero:hover { text-decoration: underline; text-underline-offset: 6px; }
.urgence-sous { font-size: 15px; opacity: 0.9; }
.urgence-etat { display: grid; gap: 7px; font-size: 14.5px; }
.urgence-etat li { display: flex; align-items: center; gap: 8px; opacity: 0.95; }
.urgence-etat strong { font-weight: 800; }
.pastille { width: 9px; height: 9px; border-radius: 50%; background: #7ee2a8; box-shadow: 0 0 0 3px rgba(126,226,168,0.28); flex-shrink: 0; }

/* -- Corps : rail + contenu -- */
.fiche { padding: 64px 0 80px; }
.fiche-inner { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 56px; align-items: start; }
.fiche-rail { position: sticky; top: 90px; }
.rail-titre { font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-muted); margin-bottom: 12px; }
.rail-liens { display: flex; flex-direction: column; border-left: 2px solid var(--border); }
.rail-liens a {
  padding: 9px 0 9px 16px; margin-left: -2px; font-size: 15px; font-weight: 600;
  color: var(--text-muted); border-left: 2px solid transparent; transition: color .15s, border-color .15s;
}
.rail-liens a:hover { color: var(--accent); border-left-color: var(--accent); }
.rail-encart { margin-top: 28px; padding: 18px; background: var(--bg-alt); border: 1px solid var(--border); border-radius: 3px; }
.rail-encart-titre { font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent-texte); font-weight: 700; }
.rail-tel { display: block; margin: 8px 0 10px; font-family: var(--font-display); font-size: 21px; font-weight: 900; color: var(--accent-texte, var(--accent)); }
.rail-encart p { font-size: 13.5px; color: var(--text-muted); line-height: 1.55; }

/* -- Blocs de contenu -- */
.bloc { padding-bottom: 52px; margin-bottom: 52px; border-bottom: 1px solid var(--border); }
.bloc:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.bloc h2 { font-size: clamp(24px, 3.2vw, 31px); }
.bloc-intro { color: var(--text-muted); margin: 12px 0 26px; max-width: 62ch; }

/* services : liste de definitions, pas de cartes */
.liste-services { border-top: 1px solid var(--border); }
.service-ligne { display: grid; grid-template-columns: 250px minmax(0,1fr); gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--border); }
.service-ligne dt { font-family: var(--font-display); font-weight: 900; font-size: 16.5px; }
.service-ligne dd { color: var(--text-muted); font-size: 15px; line-height: 1.6; }

.lien-suite { display: inline-block; margin-top: 22px; font-weight: 700; color: var(--accent-texte, var(--accent)); border-bottom: 2px solid var(--accent); padding-bottom: 2px; }

/* tarifs : un vrai tableau */
.table-tarifs { width: 100%; border-collapse: collapse; font-size: 15px; }
.table-tarifs th, .table-tarifs td { text-align: left; padding: 13px 12px; border-bottom: 1px solid var(--border); }
.table-tarifs thead th { font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); background: var(--bg-alt); }
.table-tarifs tbody th { font-weight: 600; }
.table-tarifs td { text-align: right; font-family: var(--font-display); font-weight: 900; color: var(--accent-texte, var(--accent)); white-space: nowrap; }
.note-tarifs { margin-top: 14px; font-size: 13.5px; color: var(--text-muted); font-style: italic; }

/* communes : liste en colonnes avec delai */
.liste-communes { columns: 2; column-gap: 32px; }
.liste-communes li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--border); break-inside: avoid; font-size: 15px; }
.liste-communes span { color: var(--text-muted); font-size: 14px; }

.devis-actions { display: flex; gap: 14px; flex-wrap: wrap; }

@media (max-width: 900px) {
  .fiche-inner { grid-template-columns: minmax(0,1fr); gap: 34px; }
  .fiche-rail { position: static; }
  .rail-liens { flex-direction: row; flex-wrap: wrap; border-left: none; gap: 6px; }
  .rail-liens a { border: 1px solid var(--border); border-radius: 3px; padding: 8px 13px; margin-left: 0; }
  .service-ligne { grid-template-columns: minmax(0,1fr); gap: 6px; }
  .liste-communes { columns: 1; }
}

/* ---- Scroll : entree nette, glissee depuis la gauche ---- */
.reveal { transform: translateX(-26px); transition: opacity 0.4s ease, transform 0.45s cubic-bezier(.2,.8,.2,1); }
.reveal.in-view { transform: none; }
.reveal-stagger > * { transform: translateX(-20px); transition: opacity 0.35s ease, transform 0.4s cubic-bezier(.2,.8,.2,1); }
.reveal-stagger.in-view > * { transform: none; }
