/* ============================================================
   v2 — ajustements WordPress du design de la maquette (v2.css, importé).
   Ce que la maquette n'avait pas : contenu édité dans WordPress, images
   des articles, barre d'administration, formulaire réel, pages simples.
============================================================ */

/* Barre d'administration (connecté) : l'en-tête fixe passe dessous */
.admin-bar .entete { top: 32px; }
@media (max-width: 782px) { .admin-bar .entete { top: 46px; } }

/* Vignettes du blog : l'image de l'article recouvre le motif de la maquette */
.article .vignette img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; max-width: none;
}

/* Texte sans sommaire (pages simples, articles sans H2) */
.texte-article.texte-seul { margin-inline: auto; }

/* Contenu WordPress dans les articles et les pages simples */
.texte-article h3 { font-size: 1.3rem; margin: 2.2rem 0 .8rem; }
.texte-article a { color: var(--ciel); text-underline-offset: 3px; }
.texte-article img, .texte-article figure { max-width: 100%; height: auto; border-radius: 16px; margin: 2rem 0; }
.texte-article figure img { margin: 0; }
.texte-article figcaption { font-size: .88rem; color: var(--gris); margin-top: .6rem; }
.texte-article ol { padding-left: 1.4rem; margin: 0 0 1.4rem; }
.texte-article blockquote { margin: 2rem 0; padding: 1.2rem 1.6rem; border-left: 3px solid var(--ciel); background: #fff; border-radius: 0 16px 16px 0; }
.texte-article blockquote p { margin: 0; font: 400 1.35rem/1.35 var(--plume); font-style: italic; color: var(--encre); }
.texte-article table { width: 100%; border-collapse: collapse; margin: 0 0 1.6rem; font-size: .98rem; }
.texte-article th, .texte-article td { padding: .6rem .8rem; border-bottom: 1px solid var(--trait); text-align: left; }
.texte-article .btn { margin: 0 .6rem .6rem 0; }
.texte-article .btn-trait { color: var(--marine); border-color: var(--marine); }

/* Formulaire de contact : champ anti-robot invisible, message d'erreur */
.formulaire .piege { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.formulaire .erreur-envoi {
  margin: 1rem 0 0; padding: .8rem 1rem; border-radius: 12px;
  background: #fdecec; color: #9b1c1c; font-size: .95rem;
}
.formulaire button[disabled] { opacity: .7; cursor: wait; }

/* Contact direct : liens (la maquette avait des étiquettes) */
.bloc p a { color: inherit; }
.bloc .etiquettes a {
  font: 600 .75rem var(--texte); padding: .3rem .65rem; border-radius: 999px;
  background: var(--brume); color: var(--marine); text-decoration: none; transition: background .25s;
}
.bloc .etiquettes a:hover { background: var(--glace); }

/* Pages de localisation : services sur trois colonnes, sans illustration */
.services-local .carte { min-height: 0; }
.services-local .carte h3 { margin-top: 0; }
.zones { margin: 2rem 0 0; color: var(--gris); text-align: center; }

/* Pied de page : liens légaux */
.pied .bas a { color: inherit; text-decoration: none; }
.pied .bas a:hover { text-decoration: underline; }

/* Stack technique (page Data) : niveaux et pastilles sur fond sombre */
.pile-techno { padding: 2rem; border-radius: 24px; background: rgba(255,255,255,.04); border: 1px solid rgba(156,207,238,.15); }
.pile-techno .niveau { margin: 1.4rem 0 .2rem; color: var(--glace); font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.pile-techno .puces { margin-top: .6rem; }

/* Citation dans un texte sur fond clair (« Mon travail, c'est de les réveiller. ») */
.prose blockquote { margin-inline: 0; }

/* « Ce que je ne fais pas » (page IA) : piliers en colonne, croix rouge */
.duo .piliers-non { grid-template-columns: 1fr; margin-top: 0; }
.piliers-non .pilier::before { background: linear-gradient(#f87171, transparent); }
.piliers-non .pilier b i { font-style: normal; color: #f87171; margin-right: .3rem; }

/* Note sous une liste de pastilles (page Assurance) */
.note-puces { margin: 1.6rem 0 0; color: var(--gris); max-width: 44rem; }

/* Accueil : seconde phrase du héros (« Modernisons les ! ») */
.heros .relance { margin: -.4rem 0 1.2rem; font-size: clamp(1.6rem, 3.2vw, 2.4rem); line-height: 1.15; color: var(--ciel); }

/* Blocs texte + titre : alignés en haut (les textes longs ne font plus descendre le titre) */
.duo.haut { align-items: start; }

/* ============================================================
   Page Data — tableau de bord animé (courbe, barres, anneau)
   L'animation part quand le bloc apparaît (.vu, posée par v2.js).
============================================================ */
.tdb-colle { position: sticky; top: 120px; }
.tdb { position: relative; border-radius: 22px; background: #fff; overflow: visible;
  box-shadow: 0 50px 90px -40px rgba(1,40,64,.55), 0 0 0 1px var(--trait); }
.tdb-barre { height: 38px; display: flex; align-items: center; gap: 7px; padding: 0 16px; border-radius: 22px 22px 0 0;
  background: #eef3f7; border-bottom: 1px solid var(--trait); font-weight: 600; color: var(--gris); font-size: .78rem; }
.tdb-barre i { width: 10px; height: 10px; border-radius: 50%; background: #cfdbe4; }
.tdb-barre i:first-child { background: #ff8a7a; } .tdb-barre i:nth-child(2) { background: #ffd36b; } .tdb-barre i:nth-child(3) { background: #6fdc8c; }
.tdb-barre em { font-style: normal; margin-left: 10px; }
.tdb-corps { display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: auto auto; gap: 14px; padding: 18px; }
.tdb-carte { border-radius: 16px; background: var(--papier); border: 1px solid var(--trait); padding: 14px 16px 16px; position: relative; overflow: hidden; }
.tdb-carte small { display: block; margin-bottom: 10px; font-weight: 600; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gris); }
.tdb-courbe { grid-column: 1 / -1; }
.tdb-courbe svg { display: block; width: 100%; height: 150px; overflow: visible; }
.tdb-grille path { stroke: rgba(1,40,64,.08); stroke-width: 1; fill: none; }
.tdb-ligne { fill: none; stroke: var(--ciel); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1;
  transition: stroke-dashoffset 2.2s cubic-bezier(.4,0,.2,1) .3s; }
.tdb-aire { opacity: 0; transition: opacity 1.2s ease 1.6s; }
.tdb-point { fill: #fff; stroke: var(--ciel); stroke-width: 3; opacity: 0; transform-origin: 320px 18px; transform: scale(.3);
  transition: opacity .4s ease 2.3s, transform .5s cubic-bezier(.3,1.6,.5,1) 2.3s; }
.barres-tdb { height: 120px; display: flex; align-items: flex-end; gap: 9px; }
.barres-tdb i { flex: 1; height: var(--h); border-radius: 7px 7px 3px 3px; background: linear-gradient(var(--ciel), #8fd3ff);
  transform: scaleY(0); transform-origin: bottom; transition: transform .9s cubic-bezier(.2,.8,.2,1); }
.barres-tdb i:last-child { background: linear-gradient(#0a74b8, var(--ciel)); }
.barres-tdb i:nth-child(1) { transition-delay: .5s; } .barres-tdb i:nth-child(2) { transition-delay: .62s; } .barres-tdb i:nth-child(3) { transition-delay: .74s; }
.barres-tdb i:nth-child(4) { transition-delay: .86s; } .barres-tdb i:nth-child(5) { transition-delay: .98s; } .barres-tdb i:nth-child(6) { transition-delay: 1.1s; }
.tdb-anneau svg { display: block; width: 120px; height: 120px; margin: 0 auto; transform: rotate(-90deg); }
.tdb-anneau circle { fill: none; stroke-width: 14; }
.tdb-anneau .fond { stroke: rgba(1,40,64,.08); }
.tdb-anneau .valeur { stroke: var(--ciel); stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.6s cubic-bezier(.4,0,.2,1) .9s; }
.tdb .legende-ui { right: -12px; bottom: -16px; }

/* Animation : à l'apparition, ou tout de suite en mode capture / mouvement réduit */
.tdb.vu .tdb-ligne, .capture .tdb-ligne { stroke-dashoffset: 0; }
.tdb.vu .tdb-aire, .capture .tdb-aire { opacity: 1; }
.tdb.vu .tdb-point, .capture .tdb-point { opacity: 1; transform: scale(1); }
.tdb.vu .barres-tdb i, .capture .barres-tdb i { transform: scaleY(1); }
.tdb.vu .tdb-anneau .valeur, .capture .tdb-anneau .valeur { stroke-dashoffset: .28; }
/* Le point de la courbe respire une fois le tracé fini */
.tdb.vu .tdb-point { animation: tdb-respire 2.4s ease-in-out 2.9s infinite; }
@keyframes tdb-respire { 0%, 100% { stroke-width: 3; } 50% { stroke-width: 6; } }
@media (prefers-reduced-motion: reduce) {
  .tdb-ligne, .tdb-aire, .tdb-point, .barres-tdb i, .tdb-anneau .valeur { transition: none; animation: none; }
}
@media (max-width: 900px) { .tdb-colle { position: static; } }
