/*
 * LINKER Hugo Base - Custom CSS
 * Note: TailwindCSS est chargé via CDN dans head.html
 * Ce fichier est pour les styles custom additionnels
 */

/* Base */
html {
  scroll-padding-top: 6rem;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

/* Transitions globales */
a, button {
  transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

/* Prose styling pour le contenu markdown */
.prose { max-width: 68ch; }
.prose h2 {
  font-size: 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
  line-height: 1.3;
}
.prose h3 {
  font-size: 1.25rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}
.prose p {
  margin-bottom: 1.5rem;
  line-height: 1.75;
  color: #374151;
}
.prose ul, .prose ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}
.prose ul { list-style-type: disc; }
.prose ol { list-style-type: decimal; }
.prose li {
  margin-bottom: 0.5rem;
  color: #374151;
}
.prose blockquote {
  border-left: 4px solid;
  padding: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: #57534e;
  background: #fafaf9;
  border-radius: 0 0.5rem 0.5rem 0;
}
.prose a {
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 500;
  transition: color 0.2s;
}
.prose a:hover {
  text-decoration-thickness: 2px;
}
.prose strong {
  font-weight: 600;
}
.prose img {
  border-radius: 0.5rem;
  margin: 1.5rem 0;
}

/* Tables */
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.9375rem;
  overflow-x: auto;
  display: block;
}
.prose thead {
  border-bottom: 2px solid #d1d5db;
}
.prose th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
  color: #111827;
  background: #f9fafb;
  white-space: nowrap;
}
.prose td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e5e7eb;
  color: #374151;
}
.prose tbody tr:hover {
  background: #f9fafb;
}
@media (max-width: 640px) {
  .prose th, .prose td {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
  }
}

/* Line clamp utilities */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Focus states pour accessibilité */
a:focus-visible, button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
  border-radius: 4px;
}

/* Pagination (Hugo internal template) */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #e5e7eb;
}
.pagination li {
  list-style: none;
}
.pagination a, .pagination .active {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s;
}
.pagination a {
  color: #374151;
  background: #f3f4f6;
}
.pagination a:hover {
  background: #e5e7eb;
}
.pagination .active {
  color: white;
  background: var(--tw-color-primary, #2563eb);
}
.pagination .disabled {
  opacity: 0.5;
  pointer-events: none;
}

/* Print styles */
@media print {
  header, footer, nav { display: none !important; }
  .prose { max-width: 100%; }
}

/* Table styling */
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}
.prose table th {
  background-color: #f3f4f6;
  padding: 0.75rem;
  text-align: left;
  font-weight: 600;
  border: 1px solid #e5e7eb;
}
.prose table td {
  padding: 0.75rem;
  border: 1px solid #e5e7eb;
}
.prose table tr:nth-child(even) {
  background-color: #f9fafb;
}

/* =====================================================================
   Pages locales (service, zone, service + ville, listes, devis)
   Refonte 04/12/2026 : même langage que l'accueil (hublot laiton, encre,
   ivoire, filets dorés). Préfixe lx-. Mobile d'abord.
   ===================================================================== */
:root{
  --lx-encre:#0f172a; --lx-encre-2:#1f2f52; --lx-laiton:#c8952c; --lx-laiton-fonce:#8a5f12;
  --lx-ivoire:#f6efe2; --lx-ivoire-2:#efe3cb; --lx-trait:#e7e5e4;
}
.lx-filet{display:block;width:2.5rem;height:3px;border-radius:9999px;background:linear-gradient(90deg,#9a6b17,#ecc56a,#9a6b17)}
.lx-rivet{background:radial-gradient(circle at 35% 30%,#fff7d6 0,#e0b64f 38%,#8a6017 72%,#4a320a 100%)}
.lx-bague{background:conic-gradient(from 200deg,#fbe9a8,#c99a3a 12%,#7d5716 24%,#d8b257 38%,#fff3c4 47%,#b4842c 58%,#6f4c13 70%,#dcb85e 84%,#fbe9a8)}
.lx-levre{background:radial-gradient(circle at 50% 50%,#3b2a10 62%,#8a6420 80%,#e2c06a 100%)}
/* fond du héros : lattes de teck très claires (écho du pont de l'accueil, sans le cadre) */
.lx-pont{background-color:var(--lx-ivoire);background-image:
  linear-gradient(180deg,rgba(255,252,244,.65),rgba(255,252,244,0) 55%),
  repeating-linear-gradient(to bottom,transparent 0,transparent calc(3.25rem - 1px),rgba(120,78,36,.13) calc(3.25rem - 1px),rgba(120,78,36,.13) 3.25rem),
  repeating-linear-gradient(to bottom,#f6efe2 0,#f6efe2 3.25rem,#f2e8d6 3.25rem,#f2e8d6 6.5rem)}
.lx-encre-fond{background-color:var(--lx-encre);background-image:radial-gradient(120% 90% at 85% 0%,rgba(200,149,44,.20),rgba(200,149,44,0) 55%),radial-gradient(90% 80% at 0% 100%,rgba(31,47,82,.9),rgba(15,23,42,0) 60%)}

/* Hublot */
.lx-hublot{position:relative;aspect-ratio:1/1;border-radius:9999px;padding:7%;box-shadow:0 22px 36px -18px rgba(28,18,8,.7)}
.lx-hublot__rivets{position:absolute;inset:0}
.lx-hublot__rivets span{position:absolute;inset:0}
.lx-hublot__rivets span::after{content:"";position:absolute;left:50%;top:1.9%;width:3.4%;aspect-ratio:1/1;transform:translateX(-50%);border-radius:9999px;background:radial-gradient(circle at 35% 30%,#fff7d6 0,#e0b64f 38%,#8a6017 72%,#4a320a 100%);box-shadow:0 1px 1px rgba(0,0,0,.45)}
.lx-hublot__levre{position:relative;height:100%;width:100%;border-radius:9999px;padding:3.5%}
.lx-hublot__verre{position:relative;height:100%;width:100%;border-radius:9999px;overflow:hidden;background:#d6d3d1;box-shadow:0 0 0 2px rgba(0,0,0,.4)}
.lx-hublot__verre img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.lx-hublot__reflet{pointer-events:none;position:absolute;inset:5%;border-radius:9999px;border:3px solid transparent;border-top-color:rgba(255,255,255,.55);transform:rotate(-38deg)}

/* Sommaire : un seul bloc ; replié sur téléphone, colonne collante sur grand écran */
.lx-sommaire__liste{counter-reset:lxs}
.lx-sommaire__liste a{counter-increment:lxs}
.lx-sommaire__liste a::before{content:counter(lxs,decimal-leading-zero);flex:none;width:1.75rem;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.72rem;letter-spacing:.04em;color:var(--lx-laiton-fonce);padding-top:.2rem}
.lx-sommaire__liste a[aria-current="true"]{color:#111827;background:#fff;box-shadow:inset 2px 0 0 var(--lx-laiton)}
@media (max-width:1023.98px){
  .lx-sommaire[data-ferme="1"] .lx-sommaire__liste{display:none}
}
.lx-sommaire__bascule[aria-expanded="true"] svg{transform:rotate(180deg)}

/* Corps découpé en sections */
.lx-sec{scroll-margin-top:6.5rem}
.lx-prose{font-family:var(--font-body);font-size:1.0625rem;line-height:1.8;color:#374151}
.lx-prose > :first-child{margin-top:0}
.lx-prose > :last-child{margin-bottom:0}
.lx-prose p{margin:0 0 1.15rem;color:#374151;line-height:1.8}
.lx-prose strong{color:#111827;font-weight:700}
.lx-prose a{color:#111827;font-weight:600;text-decoration:underline;text-decoration-color:var(--lx-laiton);text-decoration-thickness:2px;text-underline-offset:3px}
.lx-prose a:hover{color:var(--lx-encre-2);text-decoration-color:#9a6b17}
.lx-prose h3{font-family:var(--font-heading);font-size:1.2rem;line-height:1.35;font-weight:700;color:#111827;margin:1.75rem 0 .6rem}
.lx-prose ul,.lx-prose ol{margin:0 0 1.25rem;padding:0;list-style:none}
.lx-prose ul > li,.lx-prose ol > li{position:relative;padding-left:1.6rem;margin:0 0 .6rem;color:#374151}
.lx-prose ul > li::before{content:"";position:absolute;left:.2rem;top:.68em;width:.5rem;height:.5rem;border-radius:9999px;background:radial-gradient(circle at 35% 30%,#fff7d6 0,#e0b64f 38%,#8a6017 72%,#4a320a 100%)}
.lx-prose figure,.lx-prose img{margin:1.75rem 0}
.lx-prose img.lx-img,.prose img.lx-img{display:block;width:100%;height:auto;margin:2rem 0;border-radius:1rem;box-shadow:0 22px 40px -28px rgba(28,25,23,.55)}
.lx-chapo .lx-prose p{font-size:1.15rem;line-height:1.75;color:#1f2937}
@media (min-width:768px){.lx-chapo .lx-prose p{font-size:1.25rem}}

/* Livrables : la liste devient une grille de pièces cochées */
.lx-sec--livrables .lx-prose ul{display:grid;gap:.75rem;margin:1.25rem 0 1.5rem}
@media (min-width:640px){.lx-sec--livrables .lx-prose ul{grid-template-columns:repeat(2,minmax(0,1fr))}}
.lx-sec--livrables .lx-prose ul > li{margin:0;padding:1rem 1rem 1rem 3.1rem;border:1px solid var(--lx-trait);border-radius:.9rem;background:#fff;line-height:1.6;box-shadow:0 1px 2px rgba(28,25,23,.04)}
.lx-sec--livrables .lx-prose ul > li::before{left:1rem;top:1.05rem;width:1.35rem;height:1.35rem;background:var(--lx-encre) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ecc56a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/62% no-repeat}

/* Déroulé : la liste devient une frise numérotée */
.lx-sec--etapes.lx-pont{background-image:none;background-color:#f6efe2}
.lx-sec--etapes .lx-prose ul{counter-reset:lxe;margin:1.25rem 0 1.5rem}
.lx-sec--etapes .lx-prose ul > li{counter-increment:lxe;padding:0 0 1.1rem 3.25rem;margin:0;min-height:2.5rem}
.lx-sec--etapes .lx-prose ul > li::before{content:counter(lxe);left:0;top:0;width:2.25rem;height:2.25rem;display:flex;align-items:center;justify-content:center;font-family:var(--font-heading);font-weight:700;font-size:.95rem;color:#111827;background:#fff;box-shadow:0 0 0 2px var(--lx-laiton),0 6px 12px -8px rgba(28,18,8,.6)}
.lx-sec--etapes .lx-prose ul > li::after{content:"";position:absolute;left:1.08rem;top:2.5rem;bottom:.2rem;width:2px;background:repeating-linear-gradient(to bottom,#d6c29a 0,#d6c29a 4px,transparent 4px,transparent 8px)}
.lx-sec--etapes .lx-prose ul > li:last-child::after{display:none}

/* Coût : liste à filets */
.lx-sec--cout .lx-prose ul > li{padding:.7rem 0 .7rem 1.6rem;margin:0;border-bottom:1px solid rgba(120,78,36,.18)}
.lx-sec--cout .lx-prose ul > li::before{top:1.25rem}
.lx-sec--cout .lx-prose ul > li:last-child{border-bottom:0}

/* FAQ */
.lx-q .lx-prose h3{margin:0 0 .6rem;font-size:1.1rem}

/* Liens de maillage en cartes */
.lx-carte{position:relative;display:flex;gap:.9rem;align-items:center;height:100%;padding:1.05rem 1.1rem;border-radius:1rem;background:#fff;border:1px solid var(--lx-trait);box-shadow:0 1px 2px rgba(28,25,23,.05);transition:transform .25s ease,box-shadow .25s ease,border-color .25s ease;color:#111827}
.lx-carte:hover{transform:translateY(-2px);border-color:#d6d3d1;box-shadow:0 20px 34px -24px rgba(28,25,23,.5)}
.lx-carte:focus-visible{outline:2px solid var(--lx-laiton);outline-offset:3px}
.lx-carte__icone{flex:none;display:inline-flex;align-items:center;justify-content:center;width:2.6rem;height:2.6rem;border-radius:9999px;background:var(--lx-ivoire);color:#7a5414;box-shadow:inset 0 0 0 1px rgba(154,107,23,.35)}
.lx-carte--locale .lx-carte__icone{background:var(--lx-encre);color:#ecc56a;box-shadow:none}
.lx-carte__fleche{margin-left:auto;flex:none;align-self:center;color:#a8a29e;transition:transform .2s ease,color .2s ease}
.lx-carte:hover .lx-carte__fleche{transform:translateX(3px);color:#111827}

/* Formulaire de devis */
.lx-champ{display:block;width:100%;min-height:3rem;padding:.7rem .95rem;border-radius:.75rem;border:1px solid #d6d3d1;background:#fff;font-size:1rem;color:#111827;box-shadow:inset 0 1px 2px rgba(28,25,23,.04);transition:border-color .15s ease,box-shadow .15s ease}
.lx-champ::placeholder{color:#a8a29e}
.lx-champ:focus{outline:none;border-color:var(--lx-laiton);box-shadow:0 0 0 4px rgba(200,149,44,.18)}
.lx-champ[aria-invalid="true"]{border-color:#b91c1c;box-shadow:0 0 0 3px rgba(185,28,28,.12)}
select.lx-champ{appearance:none;-webkit-appearance:none;padding-right:2.6rem;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2378716c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right .85rem center;background-size:1.1rem}
textarea.lx-champ{min-height:9rem;line-height:1.6}
.lx-erreur{display:none;margin-top:.35rem;font-size:.85rem;color:#b91c1c}
.lx-erreur[data-visible="1"]{display:block}
.lx-puce-choix{display:inline-flex;align-items:center;min-height:2.5rem;padding:.45rem .9rem;border-radius:9999px;border:1px solid #d6d3d1;background:#fff;font-size:.9rem;color:#292524;cursor:pointer;transition:all .15s ease}
.lx-puce-choix:hover{border-color:#a8a29e}
.lx-puce-choix[aria-pressed="true"]{background:var(--lx-encre);border-color:var(--lx-encre);color:#fff}
@media (prefers-reduced-motion:reduce){.lx-carte,.lx-carte__fleche{transition:none}.lx-carte:hover{transform:none}}
.lx-etapes-devis{counter-reset:lxd}
.lx-etapes-devis > li{counter-increment:lxd}
.lx-etapes-devis > li::before{content:counter(lxd);position:absolute;left:1.25rem;top:1.15rem;width:2.1rem;height:2.1rem;display:flex;align-items:center;justify-content:center;border-radius:9999px;font-family:var(--font-heading);font-weight:700;color:#111827;background:radial-gradient(circle at 35% 30%,#fff3c4 0,#ecc56a 45%,#b4842c 100%);box-shadow:0 6px 14px -8px rgba(0,0,0,.8)}
.lx-etapes-devis > li.pl-16::before{left:1.1rem;top:1.25rem}
.lx-page-devis > p:first-child{font-size:1.1rem;color:#1f2937;margin-bottom:2rem;padding-bottom:1.75rem;border-bottom:1px solid var(--lx-trait)}
.lx-page-devis > p:last-child{margin-top:2rem;font-size:.9rem;color:#57534e}
.lx-devis fieldset{border:0;padding:0;margin:0;min-width:0}
body:has(#devis) .lx-footer-cta{display:none}
