/* Thème Undao professionnel et accessible */
:root {
  /* Fallback pour --vh avant JS */
  --vh: 1vh;
  --bg: #ffffff;
  --text: #1e293b;
  --muted: #475569;
  --primary: #0f3ea3; /* bleu profond */
  --primary-2: #2563eb; /* bleu moyen */
  --accent: #38bdf8;   /* bleu clair */
  --surface: #f8fafc;
  --surface-2: #eef2f7;
  --radius: 16px;
  --shadow-1: 0 4px 24px rgba(30,41,59,0.08);
  --shadow-2: 0 8px 32px rgba(37, 99, 235, 0.15);
  --nav-offset: 64px; /* pour le padding-top du body quand la nav est fixe */
}

html, body { background: var(--bg); color: var(--text); }
/* Stabilise l’apparition de la scrollbar pour éviter un léger saut de mise en page */
html { scrollbar-gutter: stable both-edges; }
/* Améliorations scroll iOS */
body { -webkit-overflow-scrolling: touch; overscroll-behavior-y: none; touch-action: pan-y; }

/* Désactivation temporaire du scroll-snap pendant les animations JS */
body.no-snap { scroll-snap-type: none !important; }

/* Lien d'accès rapide */
.skip-link {
  position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden;
}
.skip-link:focus {
  left: 1rem; top: 1rem; width: auto; height: auto; padding: .5rem .75rem; z-index: 1000;
  background: #fff; color: var(--primary); border-radius: 8px; box-shadow: var(--shadow-1);
}

/* Navbar améliorée */
.navbar-pro { transition: box-shadow .3s ease, background-color .3s ease; }
/* Retire le backdrop-filter coûteux pour fluidifier le premier scroll */
.navbar-pro.is-scrolled { box-shadow: var(--shadow-1); background: rgba(255,255,255,0.95); }

/* Navbar détaillée (depuis inline index) */
nav.navbar-pro {
  background: #fff;
  box-shadow: 0 4px 24px 0 rgba(30,41,59,0.08);
  padding: 0.5rem 0 0.5rem 0;
  margin-bottom: 0;
  position: fixed; /* fixe au viewport */
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 50;
  transition: box-shadow 0.3s;
}
/* décalage du contenu sous la navbar fixe (mis à jour via JS) */
body.has-fixed-nav { padding-top: var(--nav-offset, 64px); }
nav.navbar-pro .nav-logo { margin-left: 1.5rem; }
nav.navbar-pro .nav-link {
  color: #1e293b;
  font-weight: 600;
  border-radius: 0.75rem;
  /* padding réduit pour resserrer les options */
  padding: 0.5rem 0.8rem;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s;
}
nav.navbar-pro .nav-link:hover {
  background: linear-gradient(90deg, #2563eb 0%, #38bdf8 100%);
  color: #fff;
  box-shadow: 0 2px 8px 0 rgba(56,189,248,0.12);
  transform: translateY(-2px) scale(1.06);
}
/* Lien actif (aria-current) */
nav.navbar-pro .nav-link[aria-current="page"] {
  background: linear-gradient(90deg, #2563eb 0%, #38bdf8 100%);
  color: #fff;
  box-shadow: 0 2px 10px rgba(56,189,248,0.15);
}

/* Menu mobile */
#mobile-menu { backdrop-filter: blur(6px); z-index: 60; }
#mobile-menu a { display: block; padding: .75rem 1rem; border-radius: 10px; font-weight: 600; }
#mobile-menu a:hover { background: linear-gradient(90deg, var(--primary-2), var(--accent)); color: #fff; }
#mobile-menu a[aria-current="page"] { background: linear-gradient(90deg, var(--primary-2), var(--accent)); color: #fff; }

/* Cartes et vitres "glass" */
.glass {
  background: linear-gradient(180deg, rgba(255,255,255,0.75), rgba(255,255,255,0.6));
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
}
.elevated { box-shadow: var(--shadow-1); border-radius: var(--radius); }
.elevated-lg { box-shadow: var(--shadow-2); border-radius: calc(var(--radius) + 8px); }

/* Boutons unifiés */
.btn, .btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 1.5rem;
  font-weight: 700;
  padding: 0.75rem 1.25rem;
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 12px 0 rgba(30,64,175,0.10);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.btn:hover, .btn-cta:hover {
  background: linear-gradient(90deg, #2563eb 0%, #38bdf8 100%) !important;
  color: #fff !important;
  box-shadow: 0 4px 16px 0 rgba(56,189,248,0.18);
  transform: scale(1.05);
}
.btn:focus-visible, .btn-cta:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Variante bouton clair */
.btn--light {
  background: #fff;
  color: var(--primary);
  border: 1px solid rgba(37,99,235,0.25);
}
.btn--light:hover { color: #fff; }

/* Bouton icône rond */
.btn--icon {
  width: 40px; height: 40px;
  padding: 0; border-radius: 9999px;
}

/* Animations de révélation douces */
[data-reveal] { opacity: 0; transform: translateY(12px); transition: opacity .6s ease, transform .6s ease; }
[data-reveal].is-revealed { opacity: 1; transform: translateY(0); }

/* Réduction de mouvement */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* Sections arrondies + séparateurs subtils */
section {
  border-radius: 1.5rem;
  box-shadow: 0 2px 16px 0 rgba(30,41,59,0.04);
  margin-bottom: 0;
  background: #fff;
  padding-bottom: 0 !important;
}
/* Offset d’ancre propre sous la navbar sticky */
#produit, #faq, #apropos, #contact, #merci, #blog, #mentions { scroll-margin-top: var(--nav-offset, 80px); }

.card-pro {
  background: #f1f5f9;
  border-radius: 1.25rem;
  box-shadow: 0 2px 12px 0 rgba(30,41,59,0.06);
  padding: 2rem 1.5rem;
  margin-bottom: 1.5rem;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card-pro:hover {
  box-shadow: 0 6px 24px 0 rgba(56,189,248,0.14);
  transform: translateY(-4px) scale(1.03);
}

/* Footer */
.footer-pro { background: linear-gradient(90deg, var(--primary-2), var(--accent)); }
.footer-pro a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* Footer liens et icônes sociales */
footer.footer-pro {
  background: linear-gradient(90deg, #2563eb 0%, #38bdf8 100%);
  color: #fff;
  padding: 2.5rem 0 1.5rem 0;
  box-shadow: 0 -2px 16px 0 rgba(30,41,59,0.08);
  margin-top: 0; /* supprimé l'espace avant le footer */
}
.footer-links a { color: #fff; margin: 0 1rem; font-weight: 600; transition: color 0.2s; }
.footer-links a:hover { color: #e0e7ef; text-decoration: underline; }
.footer-links a[aria-current="page"] { text-decoration: underline; }
.footer-social img { width: 32px; height: 32px; margin: 0 0.5rem; filter: brightness(0) invert(1); transition: filter 0.2s, transform 0.2s; }
.footer-social img:hover { filter: brightness(1) invert(0.2) sepia(1) saturate(5) hue-rotate(180deg); transform: scale(1.12); }

/* Pleine hauteur viewport fiable (corrige iOS) */
/* Utilitaires de hauteur stables basés sur --vh (corrige iOS URL bar resize) */
.vh-100 { height: calc(var(--vh) * 100); }
.vh-90 { min-height: calc(var(--vh) * 90); }
.vh-80 { height: calc(var(--vh) * 80); }
.vh-screen { height: calc(var(--vh) * 100); }
/* Sur navigateurs modernes, utiliser svh pour une hauteur stable (évite le zoom à la disparition de la barre URL) */
@supports (height: 100svh) {
  .vh-100 { height: 100svh; }
  .vh-90 { min-height: 90svh; }
  .vh-80 { height: 80svh; }
  .vh-screen { height: 100svh; }
}

/* Override Tailwind pour éviter le 100vh instable sur mobile */
.min-h-screen { min-height: calc(var(--vh) * 100) !important; }
@supports (height: 100svh) {
  .min-h-screen { min-height: 100svh !important; }
}

/* Dégradé d’arrière-plan global appliqué sur body.app-bg */
body.app-bg {
  background: linear-gradient(135deg, #f8fafc 0%, #e0e7ef 100%);
}

/* Titres de section avec soulignement dégradé élégant */
.section-title { position: relative; display: inline-block; }
.section-title::after {
  content: "";
  display: block;
  width: 84px;
  height: 4px;
  margin: 0.5rem auto 0;
  border-radius: 9999px;
  background: linear-gradient(90deg, #2563eb, #38bdf8);
  box-shadow: 0 2px 10px rgba(56,189,248,0.25);
}

/* Overlay pour améliorer le contraste du héros */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.35) 35%, rgba(0,0,0,0.2) 100%);
}

/* Cartes vitrées plus premium au survol */
.glass:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); transition: transform .2s ease, box-shadow .2s ease; }

/* Préserver translateY(-50%) pour les boutons positionnés au milieu vertical */
.btn--preserve-ty-1-2:hover {
  transform: translateY(-50%) scale(1.05);
}

/* Dots de pagination harmonisés (bleus Undao) */
.anecdote-dots { margin-top: .75rem; display: flex; align-items: center; justify-content: center; gap: .4rem; }
.anecdote-dot {
  width: 8px; height: 8px; border-radius: 9999px;
  background: #dbeafe; /* bleu-100 sur fond clair */
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease, width .2s ease;
}
.anecdote-dot[aria-selected="true"] {
  width: 22px; border-radius: 6px;
  background: var(--primary-2);
  box-shadow: 0 4px 14px rgba(37,99,235,0.25);
}
.anecdote-dot:hover { transform: translateY(-1px); background: #bfdbfe; }

/* Barre de progression en dégradé de marque */
.anecdote-progress {
  position: relative; height: 3px; width: 100%; max-width: 560px; margin: .75rem auto 0;
  background: rgba(37,99,235,0.15); border-radius: 9999px; overflow: hidden;
}
.anecdote-progress__bar {
  display: block; width: 0; height: 100%; border-radius: inherit;
  background: linear-gradient(90deg, var(--primary-2), var(--accent));
  box-shadow: 0 2px 10px rgba(56,189,248,0.25);
  transition: width .2s linear;
}

/* Flèches: bordure adaptée au fond clair */
#left-btn, #right-btn { color: var(--primary); border: 1px solid rgba(37,99,235,0.25); background: #fff; }
#left-btn:hover, #right-btn:hover { color: var(--primary); }

/* Décor interne adouci pour éviter la saturation sur fond clair */
.anecdote-decor {
  position: absolute; inset: 0; pointer-events: none; opacity: .10;
  background:
    radial-gradient(60% 40% at 10% 10%, rgba(37,99,235,0.65), transparent 60%),
    radial-gradient(60% 40% at 90% 90%, rgba(56,189,248,0.5), transparent 60%);
  mix-blend-mode: multiply;
}

/* Ajuste la couleur des boutons nav sur fond bleu */
#left-btn, #right-btn { color: var(--primary); border: 1px solid rgba(37,99,235,0.25); }
#left-btn:hover, #right-btn:hover { color: var(--primary); }

/* Titres et contenus de carte */
.anecdote-title { display: block; overflow: visible; }
.anecdote-summary { display: block; overflow: visible; color: var(--muted); }

/* --- Grille d’articles --- */
.article-grid { align-items: stretch; }
.article-card {
  background: #fff;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-1);
  transition: transform .25s ease, box-shadow .25s ease;
  display: flex; flex-direction: column;
}
.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.article-card__img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform .35s ease;
  display: block;
}
@media (min-width: 640px) { .article-card__img { height: 260px; } }
.article-card:hover .article-card__img { transform: scale(1.05); }
.article-card__body {
  padding: 1rem 1.25rem 1.25rem;
  display: flex; flex-direction: column; gap: .5rem; flex: 1 1 auto;
}
.article-card__title { color: var(--primary); font-weight: 800; font-size: 1.125rem; line-height: 1.25; }
.article-card__desc {
  color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.article-card__cta {
  margin-top: auto;
  display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; color: var(--primary-2);
}
.article-card__cta::after { content: '→'; transition: transform .2s ease; }
.article-card:hover .article-card__cta::after { transform: translateX(2px); }

/* Mise en avant de la première carte (feature) */
.article-card--featured .article-card__img { height: 260px; }
@media (min-width: 1024px) { .article-card--featured .article-card__img { height: 360px; } }

/* Respiration avant le footer pour FAQ et Blog */
#faq, #blog { padding-bottom: 3rem !important; }
@media (min-width: 640px) { #faq, #blog { padding-bottom: 4rem !important; } }
@media (min-width: 1024px) { #faq, #blog { padding-bottom: 5rem !important; } }

/* Accessibilité focus visible sur cartes/badges */
.article-card a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.badge:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Article media + overlay */
.article-card__media { position: relative; overflow: hidden; }
.article-card__overlay {
  position: absolute; inset: 0; padding: 1rem 1.25rem 1.25rem;
  display: flex; flex-direction: column; justify-content: flex-end;
  background: linear-gradient(180deg, rgba(2,6,23,0.0) 0%, rgba(2,6,23,0.25) 40%, rgba(2,6,23,0.65) 100%);
  color: #fff; opacity: 0; transform: translateY(4px);
  transition: opacity .3s ease, transform .3s ease;
}
.article-card:hover .article-card__overlay { opacity: 1; transform: translateY(0); }
/* Mise en avant: overlay visible par défaut sur desktop */
@media (min-width: 1024px) { .article-card--featured .article-card__overlay { opacity: 1; transform: translateY(0); } }

.article-card__overlay .article-card__title { color: #fff; font-size: 1.375rem; line-height: 1.2; }
@media (min-width: 640px) { .article-card__overlay .article-card__title { font-size: 1.5rem; } }
.article-card__overlay .article-card__desc { color: #e2e8f0; -webkit-line-clamp: 3; }

/* Badge de catégorie sur image */
.article-card__badge {
  position: absolute; top: 12px; left: 12px;
  display: inline-flex; align-items: center; gap: .375rem;
  padding: .25rem .625rem; border-radius: 9999px; font-weight: 800; font-size: .75rem;
  background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(255,255,255,0.8)); color: var(--primary);
  border: 1px solid rgba(37,99,235,0.25); backdrop-filter: blur(6px);
  box-shadow: 0 8px 22px rgba(15,62,163,0.12);
}

/* Métadonnées sous les cartes */
.article-meta {
  margin-top: .25rem; display: flex; flex-wrap: wrap; align-items: center;
  gap: .25rem .75rem; color: #64748b; font-size: .875rem;
}
.article-meta span:not(:first-child) { position: relative; padding-left: .75rem; }
.article-meta span:not(:first-child)::before { content: '•'; position: absolute; left: 0; color: #cbd5e1; }

/* --- Filtres de catégories (badges header) premium --- */
.blog-header #category-filters {
  max-width: 100%; overflow-x: auto; padding: .25rem .25rem .4rem; display: flex; gap: .5rem; align-items: center;
  scroll-snap-type: x mandatory;
}
.blog-header #category-filters > .badge { scroll-snap-align: start; }

/* Conteneur des filtres: scroll horizontal fluide sur mobile (appliqué aussi hors .blog-header) */
#category-filters { max-width: 100%; overflow-x: auto; padding: .25rem .25rem .4rem; display: flex; gap: .5rem; align-items: center; scroll-snap-type: x mandatory; }
#category-filters > .badge { scroll-snap-align: start; }

/* Badges premium dans #category-filters (mêmes styles que .blog-header .badge) */
#category-filters .badge {
  position: relative; display: inline-flex; align-items: center; gap: .45rem;
  padding: .45rem .85rem; border-radius: 9999px; font-weight: 800; font-size: .85rem;
  background: #fff; color: var(--primary);
  border: 1px solid rgba(37,99,235,0.22);
  box-shadow: 0 4px 14px rgba(37,99,235,0.12), inset 0 0 0 9999px rgba(255,255,255,0.02);
  cursor: pointer; user-select: none;
  transition: background .25s ease, color .25s ease, box-shadow .25s ease, transform .2s ease, border-color .25s ease;
}
#category-filters .badge::before {
  content: ""; position: absolute; inset: -2px; border-radius: inherit; z-index: -1; opacity: 0;
  background: linear-gradient(90deg, rgba(37,99,235,0.35), rgba(56,189,248,0.35));
  transition: opacity .25s ease;
}
#category-filters .badge:hover {
  background: linear-gradient(90deg, #2563eb 0%, #38bdf8 100%); color: #fff; border-color: transparent;
  box-shadow: 0 8px 22px rgba(56,189,248,0.20);
  transform: translateY(-1px);
}
#category-filters .badge:hover::before { opacity: 1; }
#category-filters .badge--active {
  background: linear-gradient(90deg, #2563eb 0%, #38bdf8 100%); color: #fff; border-color: transparent;
  box-shadow: 0 10px 26px rgba(37,99,235,0.24);
}
#category-filters .badge__icon { width: 16px; height: 16px; display: inline-flex; align-items: center; justify-content: center; }
#category-filters .badge__icon svg { width: 16px; height: 16px; stroke: currentColor; }
#category-filters .badge--active .badge__icon { color: #fff; }

/* Séparateur conservé */
.blog-header::after { content: ""; display: block; height: 1px; width: 100%; margin-top: .5rem; background: linear-gradient(90deg, rgba(15,23,42,0.06), rgba(15,23,42,0.12), rgba(15,23,42,0.06)); }

/* --- Page Article --- */
.reading-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 60;
  background: linear-gradient(90deg, var(--primary-2), var(--accent));
  transform-origin: 0 0; transform: scaleX(0);
}

.article-hero {
  position: relative; overflow: hidden;
  min-height: 320px;
  display: flex; align-items: flex-end;
  border-radius: 0 0 1.5rem 1.5rem;
  box-shadow: 0 8px 32px rgba(37, 99, 235, 0.15);
  background-position: center; background-size: cover; background-repeat: no-repeat;
}
.article-hero__overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(2,6,23,0.35), rgba(2,6,23,0.55)); }
.article-hero__content { position: relative; z-index: 1; width: 100%; max-width: 64rem; margin: 0 auto; padding: 2.5rem 1rem 2.5rem; color: #fff; }
.article-hero h1 { font-size: clamp(1.875rem, 3.4vw, 3rem); line-height: 1.15; font-weight: 800; text-shadow: 0 2px 14px rgba(0,0,0,0.25); }
.article-hero p.lead { margin-top: .5rem; font-size: clamp(1rem, 1.6vw, 1.25rem); color: #e2e8f0; }

.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: .375rem .5rem; font-size: .875rem; margin-bottom: .5rem; color: #e2e8f0; }
.breadcrumb a { color: #e2e8f0; text-decoration: underline; text-underline-offset: 2px; }
.breadcrumb .sep { opacity: .6; }

.meta-chips { display: flex; flex-wrap: wrap; gap: .5rem .75rem; margin-top: .75rem; }
.meta-chip { display: inline-flex; align-items: center; gap: .375rem; padding: .35rem .65rem; border-radius: 9999px; font-weight: 700; font-size: .75rem; color: var(--primary); background: rgba(255,255,255,0.9); border: 1px solid rgba(37,99,235,0.2); box-shadow: 0 4px 12px rgba(15,62,163,0.12); }
.meta-chip .dot { width: 6px; height: 6px; border-radius: 9999px; background: var(--primary-2); }

.article-container { max-width: 56rem; margin: 0 auto; padding: 2rem 1rem 3rem; }
#article-content p { margin: 1rem 0; line-height: 1.8; font-size: 1.0625rem; color: #0f172a; }
#article-content p + p { margin-top: 1.25rem; }
#article-content a { color: var(--primary-2); text-decoration: underline; text-underline-offset: 2px; }
/* Assouplir pour les boutons dans le contenu d’article */
#article-content a.btn, #article-content a.btn-cta { color: #fff; text-decoration: none; }
#article-content a.btn:visited, #article-content a.btn-cta:visited { color: #fff; }

.share-block { display: flex; align-items: center; justify-content: flex-end; gap: .75rem; margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid #e2e8f0; }
.share-buttons { display: flex; gap: .5rem; flex-wrap: wrap; }
.share-btn { display: inline-flex; align-items: center; gap: .5rem; padding: .5rem .75rem; border-radius: .75rem; background: #f1f5f9; color: var(--primary); font-weight: 700; font-size: .875rem; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.share-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(2,6,23,0.08); background: #e2e8f0; }

/* --- Contact section raffinée --- */
.contact-section {
  position: relative;
  background: linear-gradient(135deg, #f8fafc 0%, #eef2f7 100%);
  overflow: hidden;
}
.contact-section::before {
  content: "";
  position: absolute; inset: -10% -10% auto -10%; height: 220px;
  background: radial-gradient(1200px 220px at 20% 0%, rgba(37,99,235,0.10), rgba(56,189,248,0.06) 35%, transparent 70%);
  pointer-events: none;
}

.contact-grid {
  display: grid; gap: 1rem; align-items: stretch;
  max-width: 72rem; margin: 0 auto; width: 100%;
  grid-template-columns: 1fr; /* mobile */
}
@media (min-width: 768px) {
  .contact-grid { grid-template-columns: 0.95fr 1.05fr; gap: 1.25rem; }
}
@media (min-width: 1024px) {
  .contact-grid { grid-template-columns: 1fr 1.15fr; gap: 1.5rem; }
}

/* Panneau d'informations */
.contact-info {
  position: relative;
  border-radius: 1.25rem;
  padding: 1.25rem; color: #0f172a;
  background: linear-gradient(160deg, rgba(37,99,235,0.08), rgba(56,189,248,0.06));
  border: 1px solid rgba(37,99,235,0.22);
  box-shadow: 0 8px 28px rgba(37,99,235,0.12), 0 2px 10px rgba(2,6,23,0.06);
  transition: transform .2s ease, box-shadow .2s ease;
}
/* En-tête de la carte (logo + titres) */
.contact-info__header { display: flex; align-items: center; gap: .75rem; margin-bottom: .5rem; }
.contact-info__logo { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; background: #fff; border: 1px solid rgba(37,99,235,0.18); box-shadow: 0 6px 18px rgba(37,99,235,0.18); }
.contact-info__subtitle { color: #475569; margin-top: .1rem; }

.contact-meta { list-style: none; padding: 0; margin: .5rem 0 1rem; display: grid; gap: .5rem; }
.contact-meta li { display: flex; align-items: center; gap: .625rem; color: #0f172a; }
.contact-meta__icon { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 9999px; background: #fff; color: var(--primary-2); box-shadow: 0 4px 14px rgba(37,99,235,0.12); border: 1px solid rgba(37,99,235,0.18); }
.contact-meta__link { color: var(--primary-2); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }

.contact-badges { display: flex; flex-wrap: wrap; gap: .5rem .6rem; margin-top: .25rem; }
.contact-badges .badge {
  background: #fff; color: var(--primary);
  border: 1px solid rgba(37,99,235,0.25);
  box-shadow: 0 2px 10px rgba(37,99,235,0.08);
  font-size: .8125rem; padding: .35rem .65rem; border-radius: 9999px; font-weight: 800;
}

/* Décor subtil (image splash existante) */
.contact-info__illustration {
  margin-top: 1rem; border-radius: 1rem; overflow: hidden; height: 120px;
  background: url('img/splash_2.jpg') center/cover no-repeat;
  filter: saturate(1.1) contrast(1.05);
  box-shadow: 0 10px 28px rgba(15,62,163,0.12);
}

/* Carte formulaire */
.contact-card {
  background: #fff; border-radius: 1.25rem; border: 1px solid #e6edf6; box-shadow: var(--shadow-2);
}
.contact-form { padding: 1.25rem; display: flex; flex-direction: column; gap: 1rem; }
@media (min-width: 640px) { .contact-form { padding: 1.5rem; gap: 1.125rem; } }
@media (min-width: 1024px) { .contact-form { padding: 2rem; gap: 1.25rem; } }
.contact-form__intro { color: #475569; font-size: .95rem; margin-bottom: .25rem; }

/* Champs avec labels flottants */
.field { position: relative; }
.field__icon {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: #64748b; width: 20px; height: 20px; pointer-events: none;
}
.field__input {
  width: 100%;
  border: 1px solid #e2e8f0; border-radius: .875rem;
  padding: .875rem 1rem .875rem 2.5rem; /* espace pour l'icône */
  background: #fff; color: #0f172a; font-size: 1rem; line-height: 1.2;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.field__input:focus { outline: none; border-color: rgba(37,99,235,0.55); box-shadow: 0 0 0 4px rgba(56,189,248,0.18); }
.field__input::placeholder { color: transparent; }

/* Textarea spécifique */
.field__textarea { min-height: 140px; resize: vertical; padding-top: 1.125rem; }

.field__label {
  position: absolute; left: 2.5rem; top: 50%; transform: translateY(-50%);
  color: #64748b; background: #fff; padding: 0 .25rem; pointer-events: none;
  transition: transform .15s ease, color .15s ease, top .15s ease, font-size .15s ease;
}
/* Flottant: focus ou valeur présente */
.field__input:focus + .field__label,
.field__input:not(:placeholder-shown) + .field__label {
  top: 0; transform: translateY(-50%) scale(0.95); color: var(--primary-2);
}
/* Meilleure lisibilité pour textarea quand flottant */
.field__textarea:focus + .field__label,
.field__textarea:not(:placeholder-shown) + .field__label { top: .5rem; }

/* Bouton full width sur mobile */
/* Centrer le bouton d’envoi sur toutes tailles */
.contact-form__submit { width: auto; align-self: center; padding-left: 1.25rem; padding-right: 1.25rem; }
@media (max-width: 639px) { .contact-form__submit { width: auto; } }
/* suppression de l’alignement à gauche sur desktop pour conserver le centrage */
/* (ancienne règle @media (min-width: 640px) supprimée) */

/* Focus visible pour accessibilité */
.field__input:focus-visible { outline: none; }
.contact-card:focus-within { box-shadow: 0 12px 40px rgba(37,99,235,0.18); border-color: rgba(37,99,235,0.25); }

/* Harmoniser la respiration de la section */
#contact { padding-bottom: 3rem !important; }
@media (min-width: 640px) { #contact { padding-bottom: 4rem !important; } }
@media (min-width: 1024px) { #contact { padding-bottom: 5rem !important; } }

/* Note de confidentialité du contact */
.contact-privacy {
  margin-top: .5rem; font-size: .85rem; color: #64748b;
}

/* --- Merci section premium --- */
.merci-section {
  position: relative; display: flex; align-items: center; justify-content: center;
  min-height: calc(var(--vh) * 85);
  padding: 3rem 1rem;
  background: linear-gradient(135deg, #f8fafc 0%, #eef2f7 100%);
}
.merci-surface {
  position: relative; width: 100%; max-width: 56rem; margin: 0 auto;
}
.merci-surface::before {
  /* 3x plus large/haut pour un fondu très progressif */
  inset: -15% -15% auto -15%;
  height: 960px;
  background: radial-gradient(3600px 960px at 50% 0%, rgba(37,99,235,0.10), rgba(56,189,248,0.06) 55%, transparent 95%);
}
.merci-surface::after {
  /* 3x plus développé en largeur/hauteur + blur accru */
  left: 0; right: 0; bottom: -120px; height: 600px;
  background: radial-gradient(90% 300% at 50% 0%, rgba(37,99,235,0.14), rgba(56,189,248,0.10) 65%, transparent 95%);
  filter: blur(96px);
}
.merci-card {
  position: relative; margin: 0 auto; text-align: center; color: #0f172a;
  background: #fff; border: 1px solid #e8eef7; border-radius: 1.5rem;
  /* Ombre adoucie et plus diffuse */
  box-shadow: 0 8px 24px rgba(2,6,23,0.06), 0 18px 48px rgba(37,99,235,0.14), 0 28px 80px rgba(56,189,248,0.10);
  padding: 2rem 1.25rem;
  z-index: 1;
  /* Ombre constante: pas de transition héritée */
  transition: box-shadow 0s;
}
/* Conserver la même ombre sur tous les états interactifs */
.merci-card:hover,
.merci-card:focus,
.merci-card:active {
  box-shadow: 0 8px 24px rgba(2,6,23,0.06), 0 18px 48px rgba(37,99,235,0.14), 0 28px 80px rgba(56,189,248,0.10);
}
@media (min-width: 640px) { .merci-card { padding: 2.5rem 2rem; } }
@media (min-width: 1024px) { .merci-card { padding: 3rem 2.5rem; } }

.merci-icon {
  width: 56px; height: 56px; margin: 0 auto 1rem; border-radius: 9999px;
  display: grid; place-items: center;
  background: linear-gradient(90deg, var(--primary-2), var(--accent));
  box-shadow: 0 10px 30px rgba(37,99,235,0.20);
}
.merci-title { font-weight: 900; font-size: clamp(1.5rem, 2.6vw, 2rem); color: var(--primary); }
.merci-subtitle { margin-top: .5rem; color: #475569; font-size: 1rem; }
.merci-actions { margin-top: 1.25rem; display: inline-flex; gap: .75rem; flex-wrap: wrap; justify-content: center; }

/* Accessibilité focus pour liens de la carte */
.merci-card a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* Légères animations au survol */
.merci-actions .btn:hover { transform: translateY(-1px) scale(1.03); }

/* Affinage visuel de la carte "Parlons de votre eau" (CSS only) */
.contact-info { z-index: 0; overflow: visible; }
/* Halos doux et symétriques autour de la carte de contact */
.contact-info::before,
.contact-info::after {
  content: "";
  position: absolute;
  left: -8%; right: -8%;
  pointer-events: none;
}
/* halo haut centré */
.contact-info::before {
  top: -40px; height: 140px;
  background: radial-gradient(70% 140% at 50% 0%, rgba(37,99,235,0.12), rgba(56,189,248,0.08) 55%, transparent 80%);
  filter: blur(24px);
}
/* halo bas centré */
.contact-info::after {
  bottom: -40px; height: 160px;
  background: radial-gradient(70% 160% at 50% 100%, rgba(37,99,235,0.10), rgba(56,189,248,0.06) 55%, transparent 80%);
  filter: blur(28px);
}
/* Titre et sous-titre plus lisibles et premium */
.contact-info__title { color: var(--primary); font-weight: 900; font-size: clamp(1.25rem, 2.2vw, 1.625rem); line-height: 1.2; margin: 0 0 .125rem; }
.contact-info__subtitle { color: #475569; font-size: .975rem; }

/* --- Section Articles liés (Lire aussi) --- */
.related-section { width: 100%; max-width: 64rem; margin: 0 auto 3rem; padding: 1rem; background: #fff; }
.related-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; align-items: stretch; }
@media (min-width: 640px) { .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; } }
@media (min-width: 1024px) { .related-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; } }
/* S’assurer que les cartes occupent toute la hauteur de leur cellule */
.related-card { height: 100%; }
/* Padding latéral responsive pour la section */
@media (min-width: 640px) { .related-section { padding-bottom: 1.25rem !important; padding-left: 1.25rem; padding-right: 1.25rem; } }
@media (min-width: 1024px) { .related-section { padding-bottom: 1.5rem !important; padding-left: 1.5rem; padding-right: 1.5rem; } }

/* Fixe la hauteur du hero pour éviter la croissance au hide de la barre URL mobile */
#hero {
  height: clamp(560px, 90vh, 820px);
  overflow: hidden;
  flex: 0 0 auto;
}
@supports (height: 100svh) {
  #hero {
    height: clamp(560px, 90svh, 820px);
  }
}

/* Typographie premium localisée (section Technologie de confiance) */
.typo-pro {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, 'Helvetica Neue', Arial, 'Noto Sans', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'kern' 1, 'liga' 1;
}
.typo-pro .section-title {
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.2;
  font-size: clamp(1.75rem, 2.6vw, 2.25rem); /* ~28 → 36px */
}
.typo-pro p {
  color: #334155; /* slate-700 affiné */
  line-height: 1.75;
  font-size: clamp(1rem, 1.05vw, 1.125rem); /* 16 → 18px */
}
.typo-pro ul li p {
  line-height: 1.7;
  font-size: 1rem; /* lisibilité constante des items */
}
.typo-pro strong {
  color: var(--primary);
  font-weight: 800;
}
/* Légère hausse de la petite taille pour le confort de lecture de cette section */
.typo-pro .text-sm { font-size: 0.95rem; color: #475569; }

/* Normalisation des SVG pour les puces de liste (section Technologie de confiance) */
.typo-pro ul li > span > svg {
  width: 18px;
  height: 18px;
  display: block;
  overflow: visible;
  color: currentColor;       /* hérite de text-white du conteneur */
  stroke: currentColor;      /* garantit le trait même si l’attribut est ignoré */
  fill: none;                /* évite tout remplissage imprévu */
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Empêcher le pictogramme de rétrécir (évite la troncature dans le flex) */
.typo-pro ul li > span { flex-shrink: 0; }

/* Affinage global des titres sous .typo-pro */
.typo-pro h1, .typo-pro h2, .typo-pro h3, .typo-pro h4 {
  letter-spacing: -0.005em;
  line-height: 1.2;
  text-wrap: balance;
}
/* Ne pas écraser les tailles existantes (gérées par classes utilitaires) */

/* Fallback iOS global: html/body en -webkit-fill-available pour stabiliser la hauteur disponible et éviter l’étirement au hide des barres. */
@supports (-webkit-touch-callout: none) and (not (height: 100svh)) {
  html, body {
    height: 100vh;
    min-height: 100vh;
  }
}

/* Image d’arrière-plan du hero via <img> (plus stable que background-image en webview) */
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  user-select: none;
  transform: translateZ(0); /* aide compositing */
}

/* --- Correctifs de stabilité de rendu (Safari/WebKit/Chrome) --- */
/* 1) Débloquer le flou de fond sur Safari et fiabiliser le paint des cartes */
.glass {
  -webkit-backdrop-filter: blur(8px);
}

/* 2) Créer une couche de composition sur les conteneurs à problèmes pour éviter l’apparition tardive au survol */
.feature-cards {
  isolation: isolate; /* contexte d’empilement suffisant */
}
/* Alléger les cartes de la section features (évite le coût du blur au scroll) */
.feature-cards .glass {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  /* fond figé légèrement opaque pour conserver l’aspect "verre" sans blur */
  background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(255,255,255,0.85));
}

/* Défilement fluide (respecte prefers-reduced-motion) */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Padding top global pour les ancres native/scrollIntoView sous navbar fixe */
html { scroll-padding-top: var(--nav-offset, 80px); }

/* Désactiver le scroll-snap sur les appareils tactiles pour éviter les à-coups */
@media (pointer: coarse) {
  body { scroll-snap-type: none !important; }
}

/* Offset d’ancre dynamique sous la navbar sticky (toutes sections clés) */
#produit, #faq, #apropos, #contact, #merci, #blog, #mentions { scroll-margin-top: var(--nav-offset, 80px); }

/* Bouton retour en haut */
.to-top {
  position: fixed; right: 16px; bottom: 16px; z-index: 70;
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; border-radius: 9999px;
  background: linear-gradient(90deg, var(--primary-2), var(--accent));
  color: #fff; box-shadow: 0 8px 22px rgba(37,99,235,0.25);
  border: none; cursor: pointer; opacity: 0; transform: translateY(8px);
  pointer-events: none; transition: opacity .25s ease, transform .25s ease, box-shadow .2s ease;
}
.to-top:hover { box-shadow: 0 10px 28px rgba(37,99,235,0.32); }
.to-top:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.to-top.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
@media (prefers-reduced-motion: reduce) {
  .to-top { transition: none; }
}

/* Optimisations ciblées pour l’encart visuel de la section Produit */
.produit-visual {
  /* Remplacer le shadow-2xl (coûteux) par une ombre plus légère et stable */
  box-shadow: 0 8px 28px rgba(2,6,23,0.10) !important;
  /* Limiter la zone de paint et éviter la propagation de styles */
  contain: paint;
  /* Créer une couche de composition pour lisser le scroll */
  will-change: transform;
  transform: translateZ(0);
}
.produit-visual > img {
  /* Favoriser le compositing GPU de l’image et éviter un repaint lourd */
  transform: translateZ(0);
  will-change: opacity, transform;
}

/* --- À PROPOS: Collage visuel, chiffres, timeline, piliers --- */
.about-collage { height: 360px; }
@media (min-width: 640px) { .about-collage { height: 420px; } }
@media (min-width: 768px) { .about-collage { height: 460px; } }
.about-photo { position: absolute; border-radius: 1rem; overflow: hidden; box-shadow: 0 12px 36px rgba(37,99,235,0.18); border: 1px solid rgba(37,99,235,0.12); background: #fff; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-photo--main { inset: auto 0 0 auto; right: 6%; bottom: 6%; width: 62%; height: 70%; transform: rotate(-2deg); }
.about-photo--s1 { top: 4%; left: 4%; width: 44%; height: 42%; transform: rotate(3deg); }
.about-photo--s2 { top: 38%; left: -2%; width: 36%; height: 40%; transform: rotate(-4deg); }
.about-badge { position: absolute; top: 6%; right: 0; transform: translateX(20%); background: linear-gradient(90deg, var(--primary-2), var(--accent)); color: #fff; font-weight: 900; font-size: .8rem; padding: .45rem .75rem; border-radius: 9999px; box-shadow: 0 10px 28px rgba(37,99,235,0.25); white-space: nowrap; }
.about-badge--alt { top: auto; bottom: 6%; left: 50%; right: auto; transform: translateX(-50%); background: #0ea5e9; }

/* Chiffres clés */
.about-stat { background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(255,255,255,0.85)); }
.stat-value { font-weight: 900; color: var(--primary); font-size: clamp(1.4rem, 3.2vw, 1.9rem); line-height: 1.1; }
.stat-label { margin-top: .25rem; color: #475569; font-size: .9rem; }

/* Timeline verticale */
.about-steps { position: relative; max-width: 48rem; margin: 0 auto; padding-left: 1rem; }
.about-steps::before { content: ""; position: absolute; left: 12px; top: 0; bottom: 0; width: 2px; background: linear-gradient(to bottom, rgba(37,99,235,0.3), rgba(56,189,248,0.25)); border-radius: 9999px; }
.about-step { position: relative; display: grid; grid-template-columns: 40px 1fr; gap: .75rem; padding: .5rem 0 .5rem .25rem; }
.about-step + .about-step { margin-top: .35rem; }
.about-step__icon { position: relative; z-index: 1; display: grid; place-items: center; width: 28px; height: 28px; margin-left: -2px; border-radius: 9999px; color: #fff; background: linear-gradient(135deg, #2563eb, #38bdf8); box-shadow: 0 8px 18px rgba(37,99,235,0.22); border: 3px solid #fff; }
.about-step__body h4 { margin: 0; font-weight: 800; color: var(--primary); }
.about-step__body p { margin: .15rem 0 0; color: #475569; font-size: .95rem; }

/* Cartes piliers */
.about-card { position: relative; background: #fff; border: 1px solid rgba(37,99,235,0.12); border-radius: 1rem; padding: 1rem; box-shadow: var(--shadow-1); transition: transform .2s ease, box-shadow .2s ease; }
.about-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.about-card h4 { font-weight: 900; color: var(--primary); margin: .25rem 0 .25rem; }
.about-card p { color: #475569; font-size: .95rem; }
.about-card__icon { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 9999px; color: #fff; background: linear-gradient(135deg, #2563eb, #38bdf8); box-shadow: 0 10px 22px rgba(37,99,235,0.22); }
.about-card__icon svg { width: 18px; height: 18px; stroke: currentColor; }

/* Ajustements responsives du collage */
@media (max-width: 639px) {
  .about-collage { display: none !important; }
  .about-photo--main { right: 2%; bottom: 6%; width: 70%; height: 68%; }
  .about-photo--s1 { top: 6%; left: 2%; width: 50%; height: 40%; }
  .about-photo--s2 { top: 42%; left: -4%; width: 42%; height: 38%; }
  .about-badge { top: 4%; right: -6%; }
}

/* --- Contact: améliorations complémentaires --- */
/* Rangées de champs en grille 1→2 colonnes */
.contact-form__row { display: grid; gap: .9rem; }
@media (min-width: 640px) { .contact-form__row.contact-form__row--2 { grid-template-columns: 1fr 1fr; gap: 1rem; } }

/* Select stylé avec chevron */
.field__select { appearance: none; -webkit-appearance: none; -moz-appearance: none; padding-right: 2.5rem; cursor: pointer; background-color: #fff; }
.field__chevron { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: #64748b; pointer-events: none; }
/* Label statique (ne flotte pas) pour select */
.field__label--static { top: 0; transform: translateY(-50%) scale(0.95); color: var(--primary-2); }

/* Réseaux sociaux dans le panneau d’info */
.contact-social { display: flex; align-items: center; gap: .5rem; margin-top: .75rem; }
.contact-social__link { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 9999px; background: #fff; color: var(--primary-2); border: 1px solid rgba(37,99,235,0.18); box-shadow: 0 6px 16px rgba(37,99,235,0.14); transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease; }
.contact-social__link:hover { transform: translateY(-1px) scale(1.03); box-shadow: 0 10px 22px rgba(37,99,235,0.22); background: linear-gradient(90deg, #2563eb, #38bdf8); color: #fff; }
.contact-social__link:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Consentement RGPD */
.consent { display: grid; grid-template-columns: 18px 1fr; align-items: flex-start; gap: .5rem; margin-top: .25rem; }
.consent input[type="checkbox"] { width: 18px; height: 18px; margin-top: .2rem; accent-color: var(--primary-2); }
.consent label { color: #475569; font-size: .925rem; }

/* Bouton d’envoi: état chargement */
.contact-form__submit.is-loading { pointer-events: none; opacity: .9; }
.contact-form__submit svg.spin { width: 18px; height: 18px; margin-right: .4rem; }
@keyframes spin { to { transform: rotate(360deg); } }
.spin { animation: spin 1s linear infinite; }

/* --- Blog surface décorative et amélioration visuelle --- */
.blog-surface { position: relative; }
.blog-deco {
  position: absolute; inset: -6% -4% auto -4%; height: 320px; pointer-events: none; z-index: 0;
  background:
    radial-gradient(60% 140% at 10% 0%, rgba(37,99,235,0.08), rgba(56,189,248,0.06) 45%, transparent 70%),
    radial-gradient(40% 120% at 90% 20%, rgba(2,132,199,0.10), rgba(59,130,246,0.08) 50%, transparent 80%);
  filter: blur(20px);
}

/* En-tête du blog plus aéré */
.blog-header { position: relative; z-index: 1; }
.blog-header::after {
  content: ""; display: block; height: 1px; width: 100%; margin-top: .5rem;
  background: linear-gradient(90deg, rgba(15,23,42,0.06), rgba(15,23,42,0.12), rgba(15,23,42,0.06));
}
/* Conteneur des filtres: scroll horizontal fluide sur mobile */
.blog-header #category-filters { max-width: 100%; overflow-x: auto; padding-bottom: .25rem; }
.blog-header #category-filters::-webkit-scrollbar { height: 6px; }
.blog-header #category-filters::-webkit-scrollbar-thumb { background: rgba(15,23,42,0.12); border-radius: 9999px; }

/* Cartes plus premium avec bordure dégradée au survol */
.article-card { position: relative; border: 1px solid #e6edf6; }
.article-card > * { position: relative; z-index: 1; }
.article-card::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; z-index: 0; opacity: 0;
  background: linear-gradient(135deg, rgba(37,99,235,0.28), rgba(56,189,248,0.26));
  transition: opacity .25s ease;
}
.article-card:hover { border-color: transparent; }
.article-card:hover::before { opacity: 1; }

/* Media: léger voile lumineux au survol */
.article-card__media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .25s ease;
  background: radial-gradient(80% 60% at 50% 20%, rgba(255,255,255,0.18), transparent 60%);
}
.article-card:hover .article-card__media::after { opacity: 1; }

/* Footer CTA pour les cartes non-featured */
.article-card__footer { margin-top: .5rem; display: flex; justify-content: flex-start; }
.article-card__cta { gap: .4rem; }
.article-card__cta svg { width: 16px; height: 16px; }
.article-card__cta::after { content: "→"; margin-left: .25rem; transition: transform .2s ease; }
.article-card:hover .article-card__cta::after { transform: translateX(2px); }

/* Ajustement overlay titre pour lisibilité */
.article-card__overlay .article-card__title { text-shadow: 0 2px 10px rgba(0,0,0,0.35); }

/* Petits raffinements des badges filtres */
.blog-header .badge { box-shadow: 0 3px 12px rgba(37,99,235,0.12); }
.blog-header .badge:hover { transform: translateY(-2px); }

/* --- Blog: outils (recherche, tri, compteur) --- */
.blog-tools { position: relative; z-index: 1; }
.field--compact .field__input { padding: .6rem .9rem .6rem 2.5rem; border-radius: .75rem; }
.field__input--search::placeholder { color: #94a3b8; opacity: 1; }
.field__input--search { padding-left: 2.5rem; }
.field__select--compact { padding: .55rem 2.25rem .55rem .75rem; border-radius: .75rem; }
.article-count { color: #64748b; font-size: .9rem; font-weight: 600; }
/* utilitaire accessibilité */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* --- Carrousel Anecdotes: scroll horizontal et snap --- */
.anecdote-track .carousel-container {
  display: flex; /* s'assure que le conteneur est en flex même si la classe change */
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  gap: 0; /* une carte par vue, sans gap pour un calcul simple */
}
.anecdote-track .carousel-container::-webkit-scrollbar { display: none; } /* WebKit */

/* Chaque carte occupe 100% de la largeur du viewport du carrousel */
.anecdote-track .anecdote-card {
  flex: 0 0 100% !important; /* base 100% pour occuper toute la vue */
  width: 100% !important;
  max-width: 100% !important; /* neutralise max-w-* utilitaires */
  scroll-snap-align: start; /* aligne exactement au début de la vue */
}

/* Masquer les flèches sur mobile */
@media (max-width: 640px) {
  #left-btn, #right-btn { display: none !important; }
}

/* Anecdote banner: neutraliser les effets pour intégration fluide */
.anecdote-banner {
  /* fond et ombres neutralisés */
  background: transparent !important;
  box-shadow: none !important;
  position: relative;
}
.anecdote-banner::before,
.anecdote-banner::after {
  /* supprimer les halos décoratifs */
  content: none !important;
  display: none !important;
}

/* --- Overrides spécifiques carrousel anecdote: 1 carte, pas d’arrondi/blur/mouvements --- */
.anecdote-banner,
.anecdote-track,
.anecdote-track .carousel-container,
.anecdote-track .anecdote-card {
  border-radius: 0 !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  box-shadow: none !important;
}
/* Pas de transition/animation ni transform pour éviter les déplacements visuels */
.anecdote-track .carousel-container { transition: none !important; }
.anecdote-track .anecdote-card { transition: none !important; transform: none !important; }
.anecdote-track .anecdote-card:hover { transform: none !important; }
/* Garantir 1 carte par vue (déjà défini plus haut, on renforce) */
.anecdote-track .anecdote-card { flex: 0 0 100% !important; width: 100% !important; max-width: 100% !important; }

/* --- Séparateurs décoratifs entre sections (ondes) --- */
.section-sep {
  position: relative;
  height: 64px;
  overflow: hidden;
  line-height: 0; /* supprime l'espace autour de l'inline SVG */
  margin-top: -1px; /* évite les coutures entre couleurs adjacentes */
}
.section-sep--sm { height: 48px; }
.section-sep--lg { height: 84px; }
.section-sep svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; color: inherit; }
.section-sep--flip svg { transform: rotate(180deg); }
