/*
 * 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-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;
}

/* ------------------------------------------------------------------
   nav/passerelle (voiliers-albas.com) — noyer, laiton, crème.
   Couleurs alignées sur le logo (médaillon hublot) et le hero bois.
   ------------------------------------------------------------------ */
.pa-strip { background: #2b1b11; color: #eadbc2; }
.pa-rivet { width: 7px; height: 7px; border-radius: 9999px; flex: none;
  background: radial-gradient(circle at 35% 35%, #f0c08f 0 30%, #b8743d 31% 70%, #7c4520 71%); }

.pa-nav { background: rgba(255, 252, 246, .94); -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid #eadfcc; transition: box-shadow .25s ease; }
.pa-nav::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, rgba(184,116,61,0) 0%, #c98b55 22%, #e2a66d 50%, #c98b55 78%, rgba(184,116,61,0) 100%); }
.pa-nav.is-scrolled { box-shadow: 0 6px 24px -12px rgba(43, 27, 17, .35); }
.pa-bar { height: 76px; transition: height .25s ease; }
.pa-logo img { height: 44px; transition: height .25s ease; }
.pa-nav.is-scrolled .pa-bar { height: 62px; }
.pa-nav.is-scrolled .pa-logo img { height: 38px; }
.pa-logo:focus-visible { box-shadow: 0 0 0 3px #fffcf6, 0 0 0 5px #b8743d; }

.pa-link { position: relative; display: block; padding: .55rem .8rem; font-size: .95rem; font-weight: 500;
  color: #4a3424; letter-spacing: .005em; border-radius: .375rem; white-space: nowrap; }
.pa-link::after { content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .25rem; height: 2px; border-radius: 2px;
  background: #b8743d; transform: scaleX(0); transform-origin: left center; transition: transform .28s cubic-bezier(.2,.7,.2,1); }
.pa-link:hover { color: #2b1b11; }
.pa-link:hover::after { transform: scaleX(1); }
.pa-link[aria-current] { color: #2b1b11; font-weight: 600; }
.pa-link[aria-current]::after { transform: scaleX(1); background: #f2a516; }
.pa-link:focus-visible { outline: none; box-shadow: 0 0 0 2px #b8743d; }
.pa-link--annexe { color: #8a6a50; font-weight: 500; }
.pa-sep { width: 1px; height: 22px; margin: 0 .6rem; background: linear-gradient(#eadfcc, #c98b55, #eadfcc); }

.pa-burger { position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 9999px; color: #2b1b11; background: #fff;
  border: 1px solid #e2cfb2; box-shadow: 0 1px 2px rgba(43,27,17,.08); }
.pa-burger:hover { border-color: #c98b55; }
.pa-burger:focus-visible { outline: none; box-shadow: 0 0 0 3px #fffcf6, 0 0 0 5px #b8743d; }
.pa-burger .pa-i-close { display: none; }
.pa-burger[aria-expanded="true"] { background: #2b1b11; color: #f7ecd6; border-color: #2b1b11; }
.pa-burger[aria-expanded="true"] .pa-i-open { display: none; }
.pa-burger[aria-expanded="true"] .pa-i-close { display: block; }
@media (min-width: 1024px) { .pa-burger { display: none; } }

.pa-panel { border-top: 1px solid #eadfcc; padding: .25rem 0 1.25rem; }
.pa-row { display: flex; align-items: center; gap: .9rem; padding: .95rem .25rem; font-size: 1rem; color: #3a2718;
  border-bottom: 1px solid #f0e6d6; }
.pa-row svg { color: #c98b55; flex: none; }
.pa-row:hover, .pa-row[aria-current] { color: #2b1b11; }
.pa-row[aria-current] { font-weight: 600; }
.pa-num { font-size: .78rem; font-weight: 700; color: #b8743d; font-variant-numeric: tabular-nums; min-width: 1.4rem; }
.pa-row[aria-current] .pa-num { color: #e08f00; }
.pa-panel-note { margin-top: 1rem; color: #8a6a50; line-height: 1.5; }

@media (prefers-reduced-motion: reduce) {
  .pa-bar, .pa-logo img, .pa-link::after, .pa-nav { transition: none; }
}

/* ------------------------------------------------------------------
   Home « atelier naval » (voiliers-albas.com) — système commun des sections.
   Prolonge la nav passerelle, le hero hublot et le lexique : noyer, laiton, crème.
   Préfixe al-. Aucun texte ajouté : uniquement forme, rythme et hiérarchie.
   ------------------------------------------------------------------ */
:root {
  --al-ink: #24170e; --al-text: #3b2b1f; --al-muted: #6b5544;
  --al-noyer: #2b1b11; --al-noyer-2: #3d2716;
  --al-brass: #b8743d; --al-brass-l: #d9a46f; --al-brass-d: #8a4f22;
  --al-cream: #fffcf6; --al-parch: #f6eedb; --al-sand: #f5eee1; --al-line: #e8dcc6;
  --al-amber: #f2a516;
  --al-rivet: radial-gradient(circle at 35% 30%, #ffe7d2 0, #d08a56 38%, #7a3f1e 72%, #3a1c0c 100%);
  --al-ring: conic-gradient(from 200deg, #f1c39a, #b06a3a 12%, #64341a 24%, #c27f4c 38%, #f8d6b4 47%, #9c5a30 58%, #5a2e16 70%, #c88956 84%, #f1c39a);
  --al-rope: repeating-linear-gradient(135deg, #b4844f 0, #b4844f 3px, #e8cfa4 3px, #e8cfa4 6px);
  --al-shadow: 0 1px 2px rgba(43,27,17,.06), 0 18px 36px -26px rgba(43,27,17,.5);
  --al-shadow-h: 0 2px 4px rgba(43,27,17,.08), 0 28px 48px -26px rgba(43,27,17,.6);
}

/* Fonds de section (cf. sections/_bg.html) */
.al-bg-white { background-color: #fffdf9; color: var(--al-text); }
.al-bg-light { background-color: var(--al-sand); color: var(--al-text); }
.al-bg-dark  { background-color: var(--al-noyer); color: #f3e6cf;
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent calc(4.5rem - 1px), rgba(0,0,0,.22) calc(4.5rem - 1px), rgba(0,0,0,.22) 4.5rem),
                    repeating-linear-gradient(90deg, rgba(255,230,200,.018) 0, rgba(255,230,200,.018) 1px, transparent 1px, transparent 10px); }
.al-sec { padding-block: 4.5rem; }
@media (min-width: 768px) { .al-sec { padding-block: 6.5rem; } }
.al-sec--tight { padding-block: 3.5rem; }
@media (min-width: 768px) { .al-sec--tight { padding-block: 4.5rem; } }

/* En-têtes de section */
.al-head { max-width: 46rem; margin-inline: auto; text-align: center; margin-bottom: 3rem; }
@media (min-width: 768px) { .al-head { margin-bottom: 3.5rem; } }
.al-h2 { font-family: var(--font-heading); font-weight: 700; color: var(--al-ink);
  font-size: clamp(1.75rem, 1.25rem + 1.55vw, 2.45rem); line-height: 1.14; letter-spacing: -.012em; text-wrap: balance; }
.al-bg-dark .al-h2 { color: #fbf1df; }
.al-lead { margin-top: 1rem; font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.65; color: var(--al-muted); text-wrap: balance; }
@media (min-width: 768px) { .al-lead { font-size: 1.125rem; } }
.al-bg-dark .al-lead { color: rgba(243,230,207,.78); }
.al-rope { display: block; width: 4.5rem; height: 6px; border-radius: 9999px; background-image: var(--al-rope); opacity: .9; }
.al-head .al-rope { margin: 1.4rem auto 0; }
.al-rivet { display: inline-block; flex: none; width: 7px; height: 7px; border-radius: 9999px; background: var(--al-rivet); box-shadow: 0 1px 1px rgba(0,0,0,.35); }
.al-eyebrow { display: inline-flex; align-items: center; gap: .55rem; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: #6b5544; }

/* Texte courant + liens éditoriaux */
.al-prose { font-family: var(--font-body); color: var(--al-text); font-size: 1.0625rem; line-height: 1.75; text-wrap: pretty; }
.al-prose > * + * { margin-top: 1.15em; }
.al-prose a, .al-link { color: var(--al-brass-d); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(184,116,61,.45);
  text-decoration-thickness: 1.5px; text-underline-offset: 4px; transition: color .2s, text-decoration-color .2s; }
.al-prose a:hover, .al-link:hover { color: var(--al-ink); text-decoration-color: var(--al-brass); }
.al-dropcap > p:first-child::first-letter { float: left; font-family: var(--font-heading); font-weight: 700; color: var(--al-brass-d);
  font-size: 4.15em; line-height: .8; margin: .06em .1em 0 -.02em; }

/* Boutons */
.al-btn { display: inline-flex; align-items: center; gap: .75rem; min-height: 48px; padding: .75rem 1.5rem; border-radius: 9999px;
  font-family: var(--font-body); font-weight: 600; font-size: .95rem; line-height: 1.2; color: #fbf1df; background: var(--al-noyer);
  box-shadow: 0 8px 18px -10px rgba(43,27,17,.85), inset 0 1px 0 rgba(255,255,255,.08); transition: background-color .2s, transform .2s, box-shadow .2s; }
.al-btn:hover { background: #4a2f1b; transform: translateY(-1px); box-shadow: 0 12px 22px -10px rgba(43,27,17,.9); }
.al-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px #fffcf6, 0 0 0 5px var(--al-brass); }
.al-btn .al-arrow { transition: transform .25s cubic-bezier(.2,.7,.2,1); }
.al-btn:hover .al-arrow, .group:hover .al-arrow { transform: translateX(3px); }
.al-btn--amber { color: var(--al-noyer); background: var(--al-amber); box-shadow: 0 8px 18px -10px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.35); }
.al-btn--amber:hover { background: #ffb933; }
.al-btn--amber:focus-visible { box-shadow: 0 0 0 3px var(--al-noyer), 0 0 0 5px var(--al-amber); }

/* Cartes et cadres photo */
.al-card { position: relative; display: flex; background: #fffdf8; border: 1px solid var(--al-line); border-radius: 14px;
  box-shadow: var(--al-shadow); overflow: hidden; transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s, border-color .3s; }
.al-card:hover { transform: translateY(-4px); box-shadow: var(--al-shadow-h); border-color: #d8b58b; }
.al-card:focus-within { border-color: var(--al-brass); }
.al-card .al-zoom { transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.al-card:hover .al-zoom { transform: scale(1.045); }
.al-stretch::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.al-stretch:focus-visible { outline: none; }
.al-stretch:focus-visible::after { box-shadow: inset 0 0 0 3px var(--al-brass); border-radius: 14px; }
.al-frame { padding: 6px; border-radius: 16px; background: var(--al-ring); box-shadow: 0 22px 40px -24px rgba(43,27,17,.75); }
.al-frame > .al-frame-in { position: relative; overflow: hidden; border-radius: 11px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.25); background: #d6c7b0; }
.al-num { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 9999px;
  background: var(--al-ring); box-shadow: 0 6px 12px -6px rgba(0,0,0,.6); }
.al-num > span { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 9999px;
  background: radial-gradient(circle at 50% 40%, #4a2b17, #24140a); color: #fbe7c6; font-family: var(--font-heading); font-weight: 700; font-size: 1rem; }
.al-idx { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .75rem; font-weight: 600; letter-spacing: .08em; color: var(--al-brass-d); font-variant-numeric: tabular-nums; }

/* Accordéons (accordion + faq) : registre de bord à filets */
.al-acc { border-top: 1px solid #dcc8a8; }
.al-acc details { border-bottom: 1px solid #dcc8a8; }
.al-acc summary { display: flex; align-items: center; gap: 1rem; padding: 1.35rem .25rem; cursor: pointer; list-style: none; border-radius: 8px; }
.al-acc summary::-webkit-details-marker { display: none; }
.al-acc summary:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--al-brass); }
.al-acc .al-q { flex: 1; font-family: var(--font-heading); font-weight: 700; font-size: 1.125rem; line-height: 1.35; color: var(--al-ink); transition: color .2s; }
@media (min-width: 768px) { .al-acc .al-q { font-size: 1.25rem; } }
.al-acc summary:hover .al-q { color: var(--al-brass-d); }
.al-tog { position: relative; flex: none; width: 34px; height: 34px; border-radius: 9999px; border: 1px solid #d3b48b; background: #fffdf8; transition: background-color .25s, border-color .25s, transform .3s; }
.al-tog::before, .al-tog::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.75px; border-radius: 2px; background: var(--al-brass-d); transform: translate(-50%,-50%); transition: transform .3s, background-color .25s; }
.al-tog::after { transform: translate(-50%,-50%) rotate(90deg); }
.al-acc summary:hover .al-tog { border-color: var(--al-brass); }
.al-acc details[open] .al-tog { background: var(--al-noyer); border-color: var(--al-noyer); }
.al-acc details[open] .al-tog::before, .al-acc details[open] .al-tog::after { background: #fbe7c6; }
.al-acc details[open] .al-tog::after { transform: translate(-50%,-50%) rotate(0deg); }
.al-acc .al-a { padding: 0 3.25rem 1.6rem .25rem; }
.al-acc .al-a.al-a--idx { padding-left: 2.85rem; }
@media (max-width: 639px) { .al-acc .al-a, .al-acc .al-a.al-a--idx { padding-right: .25rem; } }

@media (prefers-reduced-motion: reduce) {
  .al-card, .al-card .al-zoom, .al-btn, .al-btn .al-arrow, .al-tog, .al-tog::before, .al-tog::after { transition: none; }
  .al-card:hover, .al-btn:hover { transform: none; }
  .al-card:hover .al-zoom { transform: none; }
}
.al-arrow { display: inline-block; }
@supports ((initial-letter: 2) or (-webkit-initial-letter: 2)) {
  .al-dropcap > p:first-child::first-letter { float: none; font-size: inherit; line-height: inherit; margin: 0 .14em 0 0;
    -webkit-initial-letter: 2; initial-letter: 2; }
}
/* nav passerelle : entre 1024 et 1279 px, les 5 liens débordaient de ~40 px → espacement resserré */
@media (min-width: 1024px) and (max-width: 1279px) {
  .pa-link { padding: .55rem .5rem; font-size: .9rem; }
  .pa-link::after { left: .5rem; right: .5rem; }
  .pa-sep { margin: 0 .35rem; }
}
