/* ==========================================================================
   JustiComm · page « Tous nos services » (/services/)
   v3, 23/10/2026 : même esprit que Publicité en ligne, Réseaux sociaux et Référencement local
   (fil d'Ariane, bandeau photos pétrole, texte clair dessous, surtitre + titre + phrase en italique) ;
   tailles de texte modestes ; corrections d'Octave, Pauline, Marius, Agathe et Thémis.
   Photos ChatGPT propres à la page (img/photos/*-justicomm-nice.webp). Préfixe : sv-
   ========================================================================== */

.sv-or { font-style: italic; color: var(--or-texte); }
.surface-sombre .sv-or, .surface-nuit .sv-or { color: var(--or-clair); }

/* Titres et textes en pleine largeur (règle de Raoudha, 22/10/2026) */
.sv-h2 {
  max-width: none; text-wrap: pretty; margin-top: var(--e-3);
  font-size: clamp(1.75rem, 1.5rem + 1vw, 2.375rem);   /* 28 → 38 (Raoudha : pas de textes énormes) */
  line-height: 1.12; letter-spacing: -0.01em;
}
.sv-texte { max-width: none; margin-top: var(--e-5); font-size: var(--t-corps); line-height: 1.6; color: var(--texte); }
.surface-sombre .sv-texte, .surface-nuit .sv-texte { color: var(--creme); }

.sv-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: clamp(1.75rem, 3vw, 2.25rem); }
.sv-actions--centre { justify-content: center; }
.sv-btn { min-height: 56px; padding-inline: 34px; }
.sv-actions .btn-cartouche { min-height: 56px; }
@media (max-width: 30em) { .sv-actions .btn-plaque, .sv-actions .btn-cartouche { width: 100%; padding-inline: 18px; letter-spacing: .06em; white-space: normal; text-align: center; } }

/* --------------------------------------------------------------------------
   1. Haut de page, comme Publicité en ligne et Réseaux sociaux :
      fil d'Ariane, bandeau visuel pétrole en pleine largeur, puis le texte sur fond clair
   -------------------------------------------------------------------------- */
body:has(.sv-haut) .entete__fond { opacity: 1; }   /* barre du haut avec son fond dès le départ */
.sv-haut { position: relative; padding: var(--h-entete) 0 clamp(2rem, 4vw, 3rem); background: var(--papier); }
.sv-ariane { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin: 0; padding-block: 0.9rem; font-size: 0.875rem; color: var(--taupe); }
.sv-ariane a { display: inline-flex; align-items: center; min-height: 44px; color: inherit; text-underline-offset: 3px; }
.sv-ariane { padding-block: 0.25rem !important; }
.sv-ariane [aria-current] { color: var(--encre); }
.sv-haut__bandeau { padding-block: clamp(1.5rem, 3vw, 2.5rem); background: radial-gradient(ellipse 60% 80% at 50% 40%, rgba(32, 80, 81, 0.6), transparent 70%), var(--petrole-900); }
.sv-haut__texte { margin-top: clamp(2.25rem, 4.5vw, 3.5rem); }
.sv-haut__titre { margin: 0; font-family: var(--f-titre); font-weight: 500; color: var(--petrole); }
.sv-haut__sur { display: flex; flex-wrap: wrap; margin-bottom: var(--e-4); font-size: 1rem; letter-spacing: 0.2em; line-height: 1.5; color: var(--texte-doux); }
.sv-haut__phrase { display: block; font-size: clamp(2rem, 1.4rem + 1.9vw, 3.25rem); line-height: 1.06; text-wrap: pretty; }
.sv-haut__accroche { margin-top: var(--e-5); font: italic 500 clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem) / 1.38 var(--f-titre); color: var(--petrole); text-wrap: pretty; }
.sv-haut__intro { margin-top: var(--e-2); font-size: var(--t-corps); line-height: 1.6; color: var(--encre); text-wrap: pretty; }
.sv-haut .sv-actions { margin-top: var(--e-5); gap: 12px 18px; }
.sv-engagements { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin: clamp(1.75rem, 3vw, 2.25rem) 0 0; padding: 0; list-style: none; font-size: 0.9375rem; color: var(--encre); }
.sv-engagements li { display: inline-flex; align-items: center; gap: 0.55rem; }
.sv-engagements li::before { content: "✓"; display: grid; place-items: center; width: 1.25rem; height: 1.25rem; border-radius: 50%; background: var(--petrole); font-size: 0.6875rem; color: var(--or); }
.sv-professions { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; margin: clamp(2rem, 4vw, 2.75rem) 0 0; padding: var(--e-3) 0 0; list-style: none; border-top: 1px solid var(--lin); font-size: 0.9375rem; color: var(--taupe); }
.sv-professions li { display: inline-flex; align-items: center; min-height: 36px; }

/* En-tête de section : surtitre, titre, phrase en italique (comme les autres pages de service) */
.sv-tete { margin-bottom: clamp(2rem, 4vw, 3rem); }
.sv-chapo { margin-top: var(--e-5); font: italic 500 clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem) / 1.4 var(--f-titre); color: var(--titre); text-wrap: pretty; }
.surface-nuit .sv-chapo, .surface-sombre .sv-chapo { color: var(--creme); }

/* Mosaïque de photos : une tuile par famille, puis un repère vers l'audit offert */
.sv-mosaique {
  position: relative; display: grid; gap: 14px;
  grid-template-columns: 1fr 1.25fr 1fr; grid-template-rows: clamp(18rem, 32vw, 28rem) auto;
}
.sv-tuile {
  position: relative; display: block; overflow: hidden; border-radius: 14px;
  background: var(--petrole);
  animation: sv-apparait .8s ease both;
}
.sv-tuile:nth-child(2) { animation-delay: .15s; }
.sv-tuile:nth-child(3) { animation-delay: .3s; }

.sv-tuile img { width: 100%; height: 100%; object-fit: cover; animation: sv-recul 4.5s cubic-bezier(.2, .6, .2, 1) both; }
@keyframes sv-recul { from { scale: 1.08; } to { scale: 1; } }
/* services de la famille, en bas de chaque photo */
.sv-tuile::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(transparent 55%, rgba(2, 24, 24, 0.85)); }
.sv-tuile__services { position: absolute; z-index: 2; left: 14px; right: 14px; bottom: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.sv-tuile__services span {
  padding: 5px 11px; border-radius: 999px; border: 1px solid rgba(242, 217, 172, 0.45);
  background: rgba(2, 24, 24, 0.55); backdrop-filter: blur(4px);
  font-size: 0.8125rem; letter-spacing: .02em; color: var(--creme);
}
.sv-tuile:hover .sv-tuile__services span { border-color: var(--or); }
@media (max-width: 47.99em) { .sv-tuile__services { display: none; } }
/* étiquettes en haut des tuiles */
.sv-tuile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(2, 24, 24, 0.88), rgba(2, 24, 24, 0.35) 28%, transparent 50%); }
.sv-tuile__etiquette {
  position: absolute; z-index: 1; left: 16px; top: 14px; display: inline-flex; align-items: baseline; gap: 10px;
  font-family: var(--f-titre); font-size: 1.25rem; color: var(--creme); text-shadow: 0 1px 12px rgba(2, 24, 24, 0.9);
}
.sv-tuile__etiquette b { font-weight: 600; font-style: italic; color: var(--or); }
@keyframes sv-apparait { from { opacity: 0; translate: 0 14px; } to { opacity: 1; translate: none; } }
@media (max-width: 47.99em) {
  .sv-mosaique { grid-template-columns: 1fr 1fr; grid-template-rows: 10rem 7.5rem auto; gap: 8px; }
  .sv-tuile--haute { grid-column: 2; grid-row: 1 / 3; }
  .sv-tuile:not(.sv-tuile--haute) { grid-column: 1; }
  .sv-tuile__etiquette { left: 12px; }
}

/* --------------------------------------------------------------------------
   2. Quel service choisir ? : une carte par situation
   -------------------------------------------------------------------------- */
.sv-choix__grille { list-style: none; margin: clamp(2rem, 4vw, 3rem) 0 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 48em) { .sv-choix__grille { grid-template-columns: 1fr 1fr; } }
.sv-choix__lien {
  display: flex; flex-direction: column; justify-content: space-between; gap: 14px; height: 100%;
  padding: 22px 24px; border-radius: 12px; background: var(--papier);
  border: 1px solid #D6CFC1; color: var(--encre); text-decoration: none;
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.sv-choix__lien:hover { border-color: var(--or-400); box-shadow: 0 10px 28px -16px rgba(6, 42, 43, 0.35); transform: translateY(-2px); }
.sv-choix__lien { flex-direction: row; align-items: flex-start; justify-content: flex-start; gap: 18px; }
.sv-choix__corps { display: flex; flex-direction: column; gap: 10px; }
.sv-choix__situation { font-size: var(--t-corps); line-height: 1.5; }
.sv-choix__service { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-titre); font-size: 1.3125rem; font-weight: 600; line-height: 1.15; color: var(--petrole); }
.sv-choix__service .ti { flex: none; width: 20px; height: 20px; fill: none; stroke: var(--or-texte); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: translate .25s ease; }
.sv-choix__lien:hover .ti { translate: 4px 0; }
.sv-choix__item--audit { grid-column: 1 / -1; }
.sv-choix__item--audit .sv-choix__lien { background: var(--petrole); border-color: var(--petrole); color: var(--creme); }
.sv-choix__item--audit .sv-choix__service { color: var(--or-clair); }
.sv-choix__item--audit .ti { stroke: var(--or); }


/* --------------------------------------------------------------------------
   3 à 5. Les familles : visuel composé d'un côté, liste des services de l'autre
   -------------------------------------------------------------------------- */
.sv-famille__grille { display: grid; gap: clamp(2.5rem, 5vw, 4.5rem); align-items: center; }
@media (min-width: 62em) {
  .sv-famille__grille { grid-template-columns: 0.95fr 1.05fr; }
  .sv-famille__grille--inverse .sv-visuel { order: 2; }
}

/* Visuel : grande photo + carte flottante (téléphone, conversation) + grand numéro doré */
.sv-visuel { position: relative; padding: 0 clamp(1.5rem, 6vw, 4.5rem) clamp(2.5rem, 6vw, 4rem) 0; }
.sv-famille__grille--inverse .sv-visuel { padding: 0 0 clamp(2.5rem, 6vw, 4rem) clamp(1.5rem, 6vw, 4.5rem); }
.sv-visuel__fond {
  display: block; width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; border-radius: 14px;
}
.sv-visuel__fond--site { object-position: 38% 50%; }
.sv-visuel__carte {
  position: absolute; right: 0; bottom: 0; width: 42%; border-radius: 12px;
  box-shadow: 0 18px 40px -20px rgba(2, 24, 24, 0.5), 0 0 0 5px rgba(255, 253, 248, 0.9);
}
.sv-famille__grille--inverse .sv-visuel__carte { right: auto; left: 0; }
.sv-visuel__carte--tel { aspect-ratio: 4 / 5; object-fit: cover; }

/* Conversation d'exemple (Automatiser) */
.sv-chat {
  position: absolute; right: 0; bottom: 0; width: min(330px, 62%);
  padding: 16px; border-radius: 12px; background: #FFFDF8; color: var(--encre);
  box-shadow: 0 18px 40px -20px rgba(2, 24, 24, 0.45), 0 0 0 1px #D6CFC1;
  display: grid; gap: 10px;
}
.sv-chat__tete { display: flex; align-items: center; gap: 8px; font-size: 0.9375rem; font-weight: 500; color: var(--petrole); padding-bottom: 8px; border-bottom: 1px solid #E5DFD3; }
.sv-chat__pastille { width: 10px; height: 10px; border-radius: 50%; background: #2E9E6A; box-shadow: 0 0 0 3px rgba(46, 158, 106, .2); }
.sv-chat__exemple { margin-left: auto; font-size: 0.8125rem; font-weight: 400; color: var(--or-texte); font-style: italic; }
.sv-chat__bulle { margin: 0; padding: 10px 13px; border-radius: 14px 14px 14px 4px; background: #EEEAE1; font-size: 0.9375rem; line-height: 1.45; }
.sv-chat__bulle--client { justify-self: end; max-width: 88%; border-radius: 14px 14px 4px 14px; background: var(--petrole); color: var(--creme); }
.sv-chat__choix { display: flex; gap: 8px; margin: 0; }
.sv-chat__choix span { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--or-400); font-size: 0.875rem; color: var(--petrole); }
.section .sv-chat p + p { margin-top: 0; }

/* Liste des services : une ligne par service, toute la ligne est cliquable */
.sv-liste { list-style: none; margin: clamp(1.75rem, 3vw, 2.5rem) 0 0; padding: 0; border-top: 1px solid var(--filet-couleur); }
.sv-ligne {
  position: relative; display: grid; grid-template-columns: 56px 1fr 24px; gap: 18px; align-items: center;
  padding: 20px 12px; border-bottom: 1px solid var(--filet-couleur);
  transition: background-color .25s ease;
}
.sv-ligne:hover { background: rgba(224, 189, 142, 0.12); }
.sv-ligne__icone { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--petrole); }
.surface-sombre .sv-ligne__icone { background: var(--or); }
.sv-ligne__icone svg { width: 26px; height: 26px; fill: none; stroke: var(--or); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.surface-sombre .sv-ligne__icone svg { stroke: var(--petrole-profond); }
.sv-ligne__titre { font-family: var(--f-titre); font-size: clamp(1.3125rem, 1.2rem + .4vw, 1.5625rem); font-weight: 600; line-height: 1.12; }
.sv-ligne__lien { color: var(--titre); text-decoration: none; }
.sv-ligne__lien::after { content: ""; position: absolute; inset: 0; }
.sv-ligne__lien:focus-visible { outline: none; }
.sv-ligne:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
.sv-ligne__texte { margin-top: 6px; font-size: var(--t-corps); line-height: 1.5; color: var(--texte); }
.sv-ligne__fleche { width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: translate .25s ease; }
.sv-ligne:hover .sv-ligne__fleche { translate: 5px 0; }
@media (max-width: 30em) {
  .sv-ligne { grid-template-columns: 44px 1fr; gap: 14px; padding-inline: 4px; }
  .sv-ligne__icone { width: 44px; height: 44px; }
  .sv-ligne__icone svg { width: 22px; height: 22px; }
  .sv-ligne__fleche { display: none; }
}

/* --------------------------------------------------------------------------
   6. Audit offert : texte et fiche des points examinés
   -------------------------------------------------------------------------- */
.sv-audit__grille { display: grid; gap: clamp(2.5rem, 5vw, 4rem); align-items: center; }
@media (min-width: 62em) { .sv-audit__grille { grid-template-columns: 1.1fr 1fr; } }
.sv-audit__visuel { position: relative; padding-bottom: clamp(7rem, 16vw, 9rem); }
.sv-audit__photo { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 14px; }
.sv-audit__visuel .sv-fiche { position: absolute; left: clamp(-1rem, -2vw, 0rem); right: 22%; bottom: 0; }
@media (max-width: 47.99em) { .sv-audit__visuel { padding-bottom: 0; } .sv-audit__visuel .sv-fiche { position: relative; left: auto; right: auto; margin: -3rem 12px 0; } }
.sv-fiche {
  position: relative; padding: clamp(1.75rem, 3vw, 2.5rem); border-radius: 12px;
  background: #FFFDF8; border: 1px solid #D6CFC1;
  box-shadow: 0 18px 40px -24px rgba(6, 42, 43, 0.4);
}
.sv-fiche__titre { font-size: var(--t-legende); letter-spacing: .14em; text-transform: uppercase; color: var(--or-texte); }
.sv-fiche__liste { list-style: none; margin: var(--e-4) 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; }
@media (max-width: 30em) { .sv-fiche__liste { grid-template-columns: 1fr; } }
.sv-fiche__liste li { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: center; font-size: 1rem; line-height: 1.35; color: var(--encre); }
.sv-fiche__liste svg { width: 24px; height: 24px; fill: none; stroke: var(--petrole); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sv-fiche__pied { margin-top: var(--e-5); padding-top: var(--e-4); border-top: 2px solid var(--petrole); font-family: var(--f-titre); font-style: italic; font-size: 1.25rem; color: var(--petrole); }

/* --------------------------------------------------------------------------
   7. Encadré fort : spécialisation (centré, pleine largeur)
   -------------------------------------------------------------------------- */
.sv-fort, .sv-final { position: relative; isolation: isolate; overflow: hidden; }
.sv-fond { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.sv-fort::before, .sv-final::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(rgba(6, 42, 43, 0.86), rgba(2, 24, 24, 0.92)); }
.sv-fort { text-align: center; padding-block: clamp(5rem, 10vw, 8rem); }
.sv-fort__titre { margin-inline: auto; }
.sv-fort__texte {
  margin: var(--e-6) auto 0; max-width: none;
  font-family: var(--f-titre); font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.625rem);  /* 20 → 26 */
  line-height: 1.4; color: var(--creme);
}
.sv-fort__filet { display: block; width: 72px; height: 2px; margin: 0 auto var(--e-6); background: var(--or); }

/* --------------------------------------------------------------------------
   9. Bandeau final
   -------------------------------------------------------------------------- */
.sv-final { padding-block: clamp(4rem, 8vw, 7rem); }
.sv-final::before { background: linear-gradient(90deg, rgba(2, 24, 24, 0.94) 0%, rgba(2, 24, 24, 0.8) 45%, rgba(2, 24, 24, 0.35) 100%) !important; }
.sv-final__texte { max-width: 36rem; }
.sv-final__contact { justify-content: flex-start !important; }
.sv-final__titre { color: var(--creme); max-width: none; }
.sv-final__titre em { font-style: italic; color: var(--or-clair); }
.sv-final__texte { margin: var(--e-5) 0 0; font-size: clamp(1.125rem, 1.05rem + .3vw, 1.3125rem); line-height: 1.5; color: var(--creme); }
.sv-final__contact { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 16px; margin-top: var(--e-6); font-size: var(--t-corps); color: var(--creme-doux); }
.sv-final__contact a { color: var(--creme); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(224, 189, 142, 0.5); }
.sv-final__contact a:hover { color: var(--or-clair); }

/* Slogan : les mots arrivent un à un, puis un fil doré se trace sous « à la confiance » (une fois, 2,6 s) */
.sv-slogan {
  position: relative; display: block; width: fit-content; margin-top: var(--e-3);
  font-family: var(--f-titre); font-weight: 500; line-height: 1.08; letter-spacing: -0.01em;
  font-size: clamp(2.25rem, 1.7rem + 2vw, 3.25rem); color: var(--creme);
}
.sv-slogan__or { font-style: italic; color: var(--or-clair); }
.sv-slogan__mot { display: inline-block; }
.sv-slogan__fil { position: absolute; left: 0; right: 0; bottom: -0.18em; height: 2px; background: linear-gradient(90deg, transparent, var(--or) 30%, var(--or-clair)); transform-origin: left; }
.js .sv-final__contenu:not(.est-visible) .sv-slogan__mot { opacity: 0; translate: 0 .35em; }
.js .sv-final__contenu:not(.est-visible) .sv-slogan__fil { scale: 0 1; }
.js .sv-slogan__mot { transition: opacity .6s ease, translate .6s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(.15s + var(--i) * .22s); }
.js .sv-slogan__fil { transition: scale 1.1s cubic-bezier(.4, 0, .2, 1) 1.4s; }

.sv-contacts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: var(--e-6); }
.sv-contact {
  display: inline-flex; align-items: center; gap: 14px; min-height: 64px; padding: 12px 22px 12px 16px;
  border-radius: 12px; border: 1px solid rgba(224, 189, 142, 0.4); background: rgba(2, 24, 24, 0.45);
  color: var(--creme); text-decoration: none; transition: border-color .2s ease, background-color .2s ease;
}
.sv-contact:hover { border-color: var(--or); background: rgba(224, 189, 142, 0.1); }
.sv-contact svg { flex: none; width: 36px; height: 36px; padding: 8px; border-radius: 50%; background: var(--or); fill: none; stroke: var(--petrole-profond); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sv-contact .ti { fill: none; stroke: var(--petrole-profond); stroke-width: 1.4; }
.sv-contact span { display: grid; font-size: 0.9375rem; color: var(--creme-doux); line-height: 1.35; }
.sv-contact b { font-weight: 500; font-size: 1.0625rem; color: var(--creme); }
@media (max-width: 30em) { .sv-contact { width: 100%; } }
.sv-final__lien { margin-top: var(--e-5); font-size: 0.9375rem; }
.sv-final__lien a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--or-clair); text-underline-offset: 4px; }
.sv-final__lien .ti { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }

/* Moins d'animations : tout est en place d'emblée */
@media (prefers-reduced-motion: reduce) {
  .sv-tuile, .sv-tuile img { animation: none; }
  .js .sv-final__contenu .sv-slogan__mot { opacity: 1 !important; translate: none !important; transition: none; }
  .js .sv-final__contenu .sv-slogan__fil { scale: 1 !important; transition: none; }
  .sv-choix__lien, .sv-ligne, .ti { transition: none; }
}
