/* ==========================================================================
   Only Digital — pages.css (v4, 28/10/2026)
   Les pages de services (contenu pris tel quel sur www : .hero-service, .service-corps, .bloc, .liste-prix, .tarifs,
   .cartes, .zones, .bandeau-contact) et le blog (index, cartes, article). Chargée après style.css sur ces pages
   seulement ; les jetons (couleurs, rayons, ombres, grain) viennent de style.css, les deux thèmes compris.
   La couleur de la marque de la page vient de <body data-marque="…"> (les règles [data-marque] de style.css posent
   --b-bg / --b-fg / --b-hover / --b-bord, héritées) : elle remplit les boutons, le halo du premier écran, la formule
   vedette et la ligne mise en évidence ; la structure (filets, numéros, puces) garde le bleu de la maison.
   ========================================================================== */

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.point { margin: 0 .1em; }

/* --------------------------------------------------------------------------
   La ligne de marque : Only Digital › la marque (› le blog › l'article)
   -------------------------------------------------------------------------- */
.fil-marque { padding: 14px 0 0; font-size: .88rem; color: var(--ink-3); }
.fil { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.fil li { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.fil li + li::before { content: "›"; color: var(--ink-3); font-size: 1.1em; line-height: 1; }
.fil a { color: var(--ink-3); transition: color .2s; }
.fil a:hover { color: var(--ink); }
.fil [aria-current] { color: var(--ink); font-weight: 600; }
.fil [aria-current] span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: min(62vw, 52ch); }
.fil .lm { width: 24px; height: 24px; }

/* --------------------------------------------------------------------------
   Page de service : le premier écran (h1, accroche, parfois l'image)
   -------------------------------------------------------------------------- */
.page-service { --halo-marque: var(--halo); }
@supports (color: color-mix(in srgb, red 50%, blue)) {
  .page-service { --halo-marque: color-mix(in srgb, var(--b-bg) 26%, transparent); }
  :root[data-theme="light"] .page-service { --halo-marque: color-mix(in srgb, var(--b-bg) 13%, transparent); }
}
.hero-service { position: relative; isolation: isolate; padding: clamp(22px, 3.4vw, 44px) 0 clamp(26px, 3.6vw, 48px); }
.hero-service::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(46% 80% at 78% 36%, var(--halo-marque) 0%, transparent 70%);
}
.hero-service h1 { max-width: 18ch; font-size: clamp(2.1rem, 1.3rem + 2.6vw, 3.4rem); font-weight: 650; letter-spacing: -.03em; line-height: 1.04; }
.hero-service h1 + p { margin-top: 1rem; max-width: 36em; font-size: clamp(1.05rem, .98rem + .4vw, 1.2rem); line-height: 1.55; color: var(--ink-2); }
.avec-visuel { display: grid; gap: clamp(24px, 4vw, 56px); align-items: center; }
@media (min-width: 900px) { .avec-visuel { grid-template-columns: minmax(0, 1.1fr) minmax(0, 520px); } }
.hero-visuel img { width: 100%; height: auto; border-radius: var(--r); border: 1px solid var(--line-2); box-shadow: var(--shadow-2); background: var(--surface-2); }
@media (max-width: 899px) { .hero-visuel { max-width: 560px; } }

/* --------------------------------------------------------------------------
   Le corps : des blocs lisibles (36 em, soit environ 70 caractères en DM Sans), des titres avec un court filet
   -------------------------------------------------------------------------- */
.service-corps { max-width: 900px; margin-inline: auto; padding: clamp(8px, 1.5vw, 16px) 0 clamp(24px, 3vw, 40px); overflow-wrap: anywhere; }
.service-corps .bloc + .bloc { margin-top: clamp(36px, 5vw, 60px); }
.service-corps .bloc > * + * { margin-top: 1rem; }
.service-corps .bloc > h2 { margin: 0 0 1rem; font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2rem); letter-spacing: -.02em; line-height: 1.12; }
.service-corps .bloc > h2::before { content: ""; display: block; width: 36px; height: 3px; border-radius: 3px; margin-bottom: 14px; background: var(--brand); transition: width .3s var(--ease), background .3s; }
.service-corps p { max-width: 36em; }
.service-corps strong { color: var(--ink); font-weight: 600; }
.service-corps .bloc a:not(.bouton) { color: var(--brand); text-decoration: underline; text-underline-offset: .18em; text-decoration-thickness: 1px; }
.service-corps .bloc a:not(.bouton):hover { color: var(--brand-ink); }
.service-corps [id] { scroll-margin-top: calc(var(--header-h) + 24px); }

/* listes simples : la petite pointe de la maison */
.service-corps .bloc > ul:not([class]) { display: grid; gap: .55rem; max-width: 36em; }
.service-corps .bloc > ul:not([class]) > li { position: relative; padding-left: 1.5rem; }
.service-corps .bloc > ul:not([class]) > li::before { content: ""; position: absolute; left: .2rem; top: .62em; width: 7px; height: 7px; border-radius: 2px; background: var(--brand); transform: rotate(45deg); }

/* étapes numérotées */
.service-corps .bloc > ol { list-style: none; counter-reset: etape; display: grid; gap: 14px; max-width: 36em; }
.service-corps .bloc > ol > li { position: relative; min-height: 38px; padding: .3rem 0 .3rem 54px; counter-increment: etape; }
.service-corps .bloc > ol > li::before {
  content: counter(etape); position: absolute; left: 0; top: 0; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); border: 1px solid var(--brand-soft-2);
  font-weight: 700; font-size: .95rem; line-height: 1; font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------------------
   Lignes de prix : le nom à gauche, le prix à droite, puis le bouton (ajouté par site.js)
   -------------------------------------------------------------------------- */
.liste-prix { margin-top: 1.2rem; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-1); overflow: hidden; }
.liste-prix > li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; padding: 14px 18px; transition: background .3s; }
.liste-prix > li + li { border-top: 1px solid var(--line); }
.liste-prix > li > span { flex: 1 1 24ch; min-width: 0; color: var(--ink-2); line-height: 1.45; }
.liste-prix > li > strong { margin-left: auto; white-space: nowrap; font-weight: 700; font-variant-numeric: tabular-nums; }
.liste-prix > li:target { background: var(--brand-soft); box-shadow: inset 4px 0 0 var(--b-bg, var(--brand)); }
@media (max-width: 560px) {
  .liste-prix > li { padding: 12px 14px; }
  .liste-prix > li > span { flex-basis: 100%; }
  .liste-prix > li > strong { margin-left: 0; }
  .liste-prix > li > .reserver { margin-left: auto; }
}

/* --------------------------------------------------------------------------
   Formules : des cartes côte à côte, la vedette liserée de la couleur de la marque
   -------------------------------------------------------------------------- */
.tarifs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 16px; margin-top: 1.2rem; }
.tarif {
  position: relative; display: flex; flex-direction: column; padding: 22px 20px 20px;
  border-radius: var(--r); border: 1px solid var(--line); box-shadow: var(--shadow-1);
  background: linear-gradient(180deg, var(--reflet), transparent 45%), var(--surface);
  transition: border-color .3s, box-shadow .3s;
}
.tarif.vedette { border-color: var(--b-bg, var(--brand)); box-shadow: 0 0 0 1px var(--b-bg, var(--brand)), var(--shadow-2); }
.tarif:target { border-color: var(--b-bg, var(--brand)); box-shadow: 0 0 0 1px var(--b-bg, var(--brand)), 0 0 0 6px var(--brand-soft), var(--shadow-2); }
.tarif > h3 { margin: 0 0 .35rem; font-size: 1.15rem; }
.tarif > .montant { margin: 0; font-size: 1.75rem; font-weight: 650; letter-spacing: -.02em; line-height: 1.1; color: var(--ink); font-variant-numeric: tabular-nums; }
.tarif > p:not(.montant) { margin: .4rem 0 0; font-size: .9rem; line-height: 1.45; color: var(--ink-3); }
.tarif > ul { display: grid; gap: .45rem; margin: 1rem 0 1.25rem; font-size: .93rem; line-height: 1.45; color: var(--ink-2); }
.tarif > ul > li { position: relative; padding-left: 1.5rem; }
.tarif > ul > li::before { content: ""; position: absolute; left: 0; top: .32em; width: 15px; height: 15px; border-radius: 50%; background: var(--brand-soft); border: 1px solid var(--brand-soft-2); }
.tarif > ul > li::after { content: ""; position: absolute; left: 4.5px; top: calc(.32em + 4px); width: 6px; height: 3.5px; border-left: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: rotate(-45deg); }
.tarif > .reserver { margin-top: auto; align-self: flex-start; }

/* --------------------------------------------------------------------------
   Cartes (ce que nous faisons), cartes avec images, zones
   -------------------------------------------------------------------------- */
.cartes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 14px; margin-top: 1.2rem; }
.cartes > li {
  display: grid; gap: 6px; align-content: start; padding: 18px 18px 20px;
  border-radius: 16px; border: 1px solid var(--line); box-shadow: var(--shadow-1);
  background: linear-gradient(180deg, var(--reflet), transparent 45%), var(--surface);
}
.cartes > li > strong { font-size: 1.02rem; line-height: 1.3; }
.cartes > li > span { font-size: .94rem; line-height: 1.5; color: var(--ink-2); }
.cartes.avec-images { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.cartes.avec-images > li { padding: 0; gap: 0; overflow: hidden; }
.cartes.avec-images img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.cartes.avec-images > li > strong { padding: 14px 18px 4px; }
.cartes.avec-images > li > span { padding: 0 18px 18px; }
.zones { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 1.1rem; }
.zones > li { font-size: .84rem; font-weight: 600; padding: .4rem .85rem; border-radius: 999px; background: var(--brand-soft); color: var(--brand-ink); border: 1px solid var(--brand-soft-2); }
.note-ia { margin-top: 1.4rem; font-size: .82rem; color: var(--ink-3); }

/* --------------------------------------------------------------------------
   Les boutons du contenu (couleur de la marque) et « Réserver » (petit, même couleur, bulle WhatsApp)
   -------------------------------------------------------------------------- */
.bouton, .reserver {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  border-radius: 999px; border: 1px solid var(--b-bord, transparent);
  font: inherit; font-weight: 600; line-height: 1.2; text-align: center; cursor: pointer;
  background: var(--b-bg, var(--btn)); color: var(--b-fg, #fff);
  box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .12);
  transition: transform .25s var(--ease), background .2s, color .2s, box-shadow .25s;
}
.bouton { min-height: 48px; padding: .75rem 1.4rem; font-size: .98rem; }
.reserver { display: flex; min-width: 112px; min-height: 36px; padding: .4rem .95rem .4rem .8rem; font-size: .86rem; white-space: nowrap; }
/* La place du bouton est réservée par la feuille avant que le script ne l'ajoute (aucun saut de mise en page) :
   une ligne de prix, une formule ou un bloc qui porte une ancre reçoit un espace de la taille du bouton tant que
   celui-ci n'y est pas ; sans script, rien n'est réservé. */
.liste-prix > li[id]:not(:has(> .reserver))::after, .tarif[id]:not(:has(> .reserver))::after, .bloc[id]:not(:has(> .reserver))::after {
  content: ""; display: block; flex: none; width: 112px; height: 36px;
}
.tarif[id]:not(:has(> .reserver))::after { margin-top: auto; }
.bloc[id]:not(:has(> .reserver))::after { margin-top: 1rem; }
@media (max-width: 560px) { .liste-prix > li[id]:not(:has(> .reserver))::after { margin-left: auto; } }
html.no-js .liste-prix > li[id]::after, html.no-js .tarif[id]::after, html.no-js .bloc[id]::after { display: none; }
.bouton:hover, .reserver:hover { background: var(--b-hover, var(--btn-hover)); color: var(--b-fg, #fff); transform: translateY(-1px); }
.ligne-bouton { margin-top: 1.3rem; }
.bouton-wa::before, .reserver::before {
  content: ""; flex: none; width: 18px; height: 18px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3a9 9 0 0 0-7.7 13.6L3 21l4.5-1.2A9 9 0 1 0 12 3Z' fill='none' stroke='%23000' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3a9 9 0 0 0-7.7 13.6L3 21l4.5-1.2A9 9 0 1 0 12 3Z' fill='none' stroke='%23000' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.reserver::before { width: 15px; height: 15px; }

/* une ligne, une formule ou un bloc atteint par son ancre (Google Merchant) : visible, sous l'en-tête */
.bloc:target { position: relative; }
.bloc:target::before { content: ""; position: absolute; left: clamp(-14px, -1.2vw, -8px); top: -6px; bottom: -6px; width: 4px; border-radius: 4px; background: var(--b-bg, var(--brand)); }
.bloc:target > h2::before { width: 56px; background: var(--b-bg, var(--brand)); }

/* --------------------------------------------------------------------------
   La bande de fin « Parlons de votre projet » : le bleu de la maison, en matière, le bouton blanc
   -------------------------------------------------------------------------- */
.bandeau-contact {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 28px;
  padding: clamp(24px, 3.4vw, 40px); border-radius: var(--r); color: #fff;
  background: linear-gradient(160deg, #0C5FBF 0%, #0051A8 48%, #003F85 100%); box-shadow: var(--shadow-2);
}
.bandeau-contact::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 90% at 86% 8%, rgba(255, 255, 255, .17) 0%, transparent 60%),
    radial-gradient(45% 70% at 6% 100%, rgba(0, 0, 0, .22) 0%, transparent 60%);
}
.bandeau-contact::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: var(--grain); background-size: 220px 220px; opacity: .11; }
html[data-fond="degrade"] .bandeau-contact::after, html[data-fond="uni"] .bandeau-contact::after { display: none; }
html[data-fond="uni"] .bandeau-contact { background: #0051A8; }
html[data-fond="uni"] .bandeau-contact::before { display: none; }
.bandeau-contact h2 { margin: 0 0 .3rem; font-size: clamp(1.4rem, 1.2rem + .9vw, 1.9rem); color: #fff; }
.bandeau-contact p { margin: 0; max-width: 36em; color: rgba(255, 255, 255, .9); }
.bandeau-contact .bouton-wa { background: #fff; color: #0051A8; border-color: transparent; box-shadow: 0 12px 28px -14px rgba(0, 0, 0, .5); }
.bandeau-contact .bouton-wa:hover { background: #EAF1FC; color: #0051A8; }
.bandeau-contact :focus-visible { outline-color: #fff; }
.cta-fin { max-width: 900px; margin: clamp(8px, 1.5vw, 16px) auto clamp(44px, 6vw, 72px); }

/* --------------------------------------------------------------------------
   Le blog : l'index et ses cartes
   -------------------------------------------------------------------------- */
.blog-index { padding: clamp(18px, 3vw, 36px) 0 clamp(40px, 6vw, 72px); }
.blog-tete { max-width: 640px; margin-bottom: clamp(24px, 3.4vw, 40px); }
.blog-tete h1 { margin: 0 0 .85rem; font-size: clamp(2.1rem, 1.3rem + 2.4vw, 3.1rem); }
.blog-tete .accroche, .article-tete .accroche { margin: 0; }
.blog-tete .kicker::before, .article-tete .kicker::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: currentColor; transform: rotate(45deg); }
.blog-grille { display: grid; gap: clamp(16px, 2vw, 24px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.blog-carte { min-width: 0; }
.carte-article {
  display: flex; flex-direction: column; height: 100%; overflow: hidden; color: inherit;
  border-radius: var(--r); border: 1px solid var(--line); box-shadow: var(--shadow-1), inset 0 1px 0 var(--reflet);
  background: linear-gradient(180deg, var(--reflet), transparent 45%), var(--surface);
  transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .4s var(--ease), box-shadow .4s, border-color .3s;
}
.carte-article:hover, .carte-article:focus-visible {
  transform: translateY(-5px) perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  box-shadow: var(--shadow-2); border-color: var(--brand-soft-2);
}
.carte-visuel { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.carte-visuel img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.carte-article:hover .carte-visuel img { transform: scale(1.04); }
.carte-corps { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 16px 18px 18px; }
.carte-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: .8rem; color: var(--ink-3); }
.carte-meta .lm { width: 22px; height: 22px; }
.carte-titre { font-size: 1.15rem; font-weight: 600; line-height: 1.3; letter-spacing: -.01em; color: var(--ink); }
.carte-resume { font-size: .94rem; line-height: 1.5; color: var(--ink-2); }
.carte-lire { display: inline-flex; align-items: center; gap: .4rem; margin-top: auto; padding-top: 6px; font-size: .88rem; font-weight: 600; color: var(--brand); }
.carte-lire .fleche { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.carte-article:hover .carte-lire .fleche { transform: translateX(3px); }

/* --------------------------------------------------------------------------
   Un article : titre, date et temps de lecture, image, corps à 36 em (environ 70 caractères), appel, sources, retour
   -------------------------------------------------------------------------- */
.article { padding: clamp(14px, 2.4vw, 28px) 0 clamp(40px, 6vw, 72px); }
.article-tete { max-width: 760px; margin: 0 auto clamp(22px, 3vw, 32px); }
.article-tete h1 { margin: 0 0 1rem; font-size: clamp(1.9rem, 1.2rem + 2.3vw, 3rem); }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .9rem; color: var(--ink-3); }
.article-marque .lm { width: 28px; height: 28px; }
.article-visuel { max-width: 760px; margin: 0 auto clamp(26px, 3.6vw, 44px); }
/* la hauteur est bornée (une image carrée ne remplit pas l'écran) ; la boîte se calcule avant l'image, aucun saut */
.article-visuel img { width: 100%; height: auto; max-height: min(440px, 56vw); object-fit: cover; border-radius: var(--r); border: 1px solid var(--line-2); box-shadow: var(--shadow-2); background: var(--surface-2); }
.article-corps, .article-cta, .article-sources, .article-retour { max-width: 36em; margin-inline: auto; }
.article-corps { font-size: 1.06rem; line-height: 1.7; overflow-wrap: anywhere; }
.article-corps h2 { margin: 2.1rem 0 .8rem; font-size: clamp(1.4rem, 1.15rem + .9vw, 1.8rem); letter-spacing: -.02em; line-height: 1.15; }
.article-corps h2::before { content: ""; display: block; width: 36px; height: 3px; border-radius: 3px; margin-bottom: 12px; background: var(--brand); }
.article-corps > :first-child { margin-top: 0; }
.article-corps p { margin: 0 0 1.1rem; }
.article-corps ul { display: grid; gap: .5rem; margin: 0 0 1.2rem; }
.article-corps ul > li { position: relative; padding-left: 1.5rem; }
.article-corps ul > li::before { content: ""; position: absolute; left: .2rem; top: .68em; width: 7px; height: 7px; border-radius: 2px; background: var(--brand); transform: rotate(45deg); }
.article-corps ol { list-style: none; counter-reset: etape; display: grid; gap: 12px; margin: 0 0 1.2rem; padding: 0; }
.article-corps ol > li { position: relative; min-height: 36px; padding: .25rem 0 .25rem 50px; counter-increment: etape; }
.article-corps ol > li::before {
  content: counter(etape); position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); border: 1px solid var(--brand-soft-2);
  font-weight: 700; font-size: .92rem; line-height: 1; font-variant-numeric: tabular-nums;
}
.article-corps strong { color: var(--ink); font-weight: 600; }
.article-corps a { color: var(--brand); text-decoration: underline; text-underline-offset: .18em; text-decoration-thickness: 1px; }
.article-corps a:hover { color: var(--brand-ink); }
.article-cta { margin-top: 1.6rem; }
.article-sources { margin-top: clamp(32px, 4vw, 48px); padding-top: 22px; border-top: 1px solid var(--line); }
.article-sources h2 { margin: 0 0 .8rem; font-size: .78rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-3); }
.article-sources ul { display: grid; gap: .5rem; font-size: .92rem; line-height: 1.5; }
.article-sources a { color: var(--ink-2); text-decoration: underline; text-underline-offset: .18em; text-decoration-color: var(--line-2); overflow-wrap: anywhere; }
.article-sources a:hover { color: var(--brand); text-decoration-color: currentColor; }
.source-date { margin-left: .3em; font-size: .86em; color: var(--ink-3); }
.article-retour { margin-top: clamp(26px, 3vw, 36px); }
.article-retour a { display: inline-flex; align-items: center; gap: .5rem; min-height: 40px; font-weight: 600; color: var(--ink-2); transition: color .2s; }
.article-retour a:hover { color: var(--brand); }
.article-retour .fleche { width: 18px; height: 18px; transform: rotate(180deg); transition: transform .25s var(--ease); }
.article-retour a:hover .fleche { transform: rotate(180deg) translateX(3px); }
