:root {
  --navy: #0f172a;
  --ink: #1e293b;
  --slate: #475569;
  --mist: #94a3b8;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-soft: #f0fdfa;
  --teal: #14b8a6;
  --teal-d: #0d9488;
  --amber: #b45309;
  --amber-bg: #fffbeb;
  --wa: #25d366;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', system-ui, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.7; -webkit-font-smoothing: antialiased; }
a { color: var(--teal-d); }
img { max-width: 100%; height: auto; }

/* Barre du haut */
.a-nav { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.a-nav-in { max-width: 1100px; margin: 0 auto; padding: .9rem 1rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.a-logo { font-family: 'DM Serif Display', serif; font-size: 1.45rem; color: var(--navy); text-decoration: none; }
.a-logo span { color: var(--teal); }
.a-logo sup { font-family: 'Inter', sans-serif; font-size: .55rem; color: var(--teal); letter-spacing: .08em; text-transform: uppercase; }
.a-links { display: flex; align-items: center; gap: 1.4rem; list-style: none; }
.a-links a { color: var(--slate); text-decoration: none; font-size: .88rem; font-weight: 500; }
.a-links a:hover, .a-links a.active { color: var(--teal-d); }
.a-btn { display: inline-flex; align-items: center; gap: .4rem; background: var(--teal); color: #fff !important; padding: .6rem 1.2rem; border-radius: 999px; font-weight: 600; font-size: .85rem; text-decoration: none; transition: background .2s; }
.a-btn:hover { background: var(--teal-d); }
.a-btn-ghost { background: transparent; color: var(--teal-d) !important; border: 1px solid var(--teal); }
.a-btn-ghost:hover { background: var(--bg-soft); }
.a-btn-wa { background: var(--wa); }
.a-btn-wa:hover { background: #1ebe5a; }
@media (max-width: 720px) { .a-links .a-hide-m { display: none; } .a-links { gap: .8rem; } }

/* En-tête de la liste */
.a-hero { background: linear-gradient(160deg, #0f172a 0%, #1e293b 60%, #0f2027 100%); color: #fff; padding: 4.5rem 1rem 4rem; text-align: center; }
.a-hero h1 { font-family: 'DM Serif Display', serif; font-weight: 400; font-size: clamp(2rem, 5vw, 3rem); line-height: 1.15; margin-bottom: 1rem; }
.a-hero h1 em { color: #2dd4bf; }
.a-hero p { max-width: 640px; margin: 0 auto; color: #cbd5e1; font-size: 1.02rem; }
.a-eyebrow { display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #2dd4bf; background: rgba(20,184,166,.12); border: 1px solid rgba(20,184,166,.3); padding: .35rem .9rem; border-radius: 999px; margin-bottom: 1.2rem; }

/* Grille des articles */
.a-wrap { max-width: 1100px; margin: 0 auto; padding: 3.5rem 1rem; }
.a-filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.a-filter { border: 1px solid var(--line); background: #fff; color: var(--slate); padding: .45rem 1rem; border-radius: 999px; font-size: .82rem; cursor: pointer; font-family: inherit; }
.a-filter.active, .a-filter:hover { border-color: var(--teal); color: var(--teal-d); background: var(--bg-soft); }
.a-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.a-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 18px; padding: 1.6rem; text-decoration: none; color: inherit; background: #fff; transition: transform .25s, box-shadow .25s, border-color .25s; }
.a-card:hover { transform: translateY(-3px); box-shadow: 0 14px 40px rgba(15,23,42,.08); border-color: rgba(20,184,166,.45); }
.a-card-cat { font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--teal-d); margin-bottom: .6rem; }
.a-card h2 { font-family: 'DM Serif Display', serif; font-weight: 400; font-size: 1.35rem; line-height: 1.3; color: var(--navy); margin-bottom: .7rem; }
.a-card p { color: var(--slate); font-size: .92rem; flex: 1; }
.a-card-meta { margin-top: 1.1rem; font-size: .78rem; color: var(--mist); }
.a-empty { color: var(--slate); text-align: center; padding: 2rem; }

/* Bandeau d'aide */
.a-help { margin-top: 3.5rem; background: var(--bg-soft); border: 1px solid rgba(20,184,166,.25); border-radius: 20px; padding: 2rem; display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; justify-content: space-between; }
.a-help h2 { font-family: 'DM Serif Display', serif; font-weight: 400; font-size: 1.5rem; color: var(--navy); margin-bottom: .3rem; }
.a-help p { color: var(--slate); font-size: .95rem; max-width: 560px; }
.a-help-ctas { display: flex; flex-wrap: wrap; gap: .6rem; }

/* Article */
.a-article { max-width: 760px; margin: 0 auto; padding: 2.5rem 1rem 3rem; }
.a-crumbs { font-size: .8rem; color: var(--mist); margin-bottom: 1.4rem; }
.a-crumbs a { color: var(--mist); text-decoration: none; }
.a-crumbs a:hover { color: var(--teal-d); }
.a-article h1 { font-family: 'DM Serif Display', serif; font-weight: 400; font-size: clamp(1.9rem, 4.5vw, 2.6rem); line-height: 1.2; color: var(--navy); margin-bottom: 1rem; }
.a-byline { font-size: .85rem; color: var(--slate); border-bottom: 1px solid var(--line); padding-bottom: 1.2rem; margin-bottom: 1.8rem; }
.a-article h2 { font-family: 'DM Serif Display', serif; font-weight: 400; font-size: 1.6rem; color: var(--navy); margin: 2.4rem 0 .8rem; line-height: 1.3; }
.a-article h3 { font-size: 1.08rem; color: var(--navy); margin: 1.6rem 0 .5rem; }
.a-article p, .a-article li { font-size: 1.02rem; color: var(--ink); }
.a-article p { margin-bottom: 1rem; }
.a-article ul, .a-article ol { margin: 0 0 1.2rem 1.3rem; }
.a-article li { margin-bottom: .45rem; }
.a-tldr { background: var(--bg-soft); border-left: 4px solid var(--teal); border-radius: 0 14px 14px 0; padding: 1.2rem 1.4rem; margin-bottom: 2rem; }
.a-tldr strong { display: block; color: var(--teal-d); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .4rem; }
.a-tldr p:last-child, .a-tldr ul:last-child { margin-bottom: 0; }
.a-warn { background: var(--amber-bg); border: 1px solid #fde68a; border-radius: 14px; padding: 1rem 1.2rem; margin: 2rem 0; font-size: .92rem; }
.a-warn strong { color: var(--amber); }
.a-cta { background: linear-gradient(160deg, #0f172a, #1e293b); color: #fff; border-radius: 20px; padding: 2rem; margin: 2.5rem 0; text-align: center; }
.a-cta h2 { color: #fff; margin-top: 0; }
.a-cta p { color: #cbd5e1; }
.a-cta .a-help-ctas { justify-content: center; margin-top: 1rem; }
.a-faq details { border: 1px solid var(--line); border-radius: 12px; padding: .9rem 1.1rem; margin-bottom: .6rem; }
.a-faq summary { cursor: pointer; font-weight: 600; color: var(--navy); }
.a-faq details p { margin: .7rem 0 0; }
.a-sources { font-size: .85rem; color: var(--slate); border-top: 1px solid var(--line); margin-top: 2.5rem; padding-top: 1.2rem; }
.a-sources li { font-size: .85rem; }

/* Pied de page */
.a-foot { border-top: 1px solid var(--line); padding: 2rem 1rem; text-align: center; font-size: .8rem; color: var(--mist); }
.a-foot a { color: var(--slate); margin: 0 .6rem; text-decoration: none; }
.a-foot a:hover { color: var(--teal-d); }

/* Illustrations */
.a-card-img { display: block; margin: -1.6rem -1.6rem 1.2rem; border-radius: 18px 18px 0 0; overflow: hidden; aspect-ratio: 16 / 9; background: var(--bg-soft); }
.a-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.a-card:hover .a-card-img img { transform: scale(1.04); }

.a-cover { position: relative; min-height: 420px; display: flex; align-items: flex-end; color: #fff; background: #0f172a center / cover no-repeat; }
.a-cover::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(15,23,42,.92) 0%, rgba(15,23,42,.55) 45%, rgba(15,23,42,.15) 100%); }
.a-cover-in { position: relative; width: 100%; max-width: 760px; margin: 0 auto; padding: 5rem 1rem 2.6rem; }
.a-cover .a-crumbs, .a-cover .a-crumbs a { color: rgba(255,255,255,.75); }
.a-cover h1 { font-family: 'DM Serif Display', serif; font-weight: 400; font-size: clamp(2rem, 5vw, 3rem); line-height: 1.15; margin: .4rem 0 1rem; color: #fff; }
.a-cover .a-byline { color: rgba(255,255,255,.8); border: 0; padding: 0; margin: 0; }
.a-cover-credit { position: absolute; right: .8rem; bottom: .6rem; font-size: .68rem; color: rgba(255,255,255,.6); z-index: 1; }
.a-cover-credit a { color: inherit; }
.a-article.a-after-cover { padding-top: 2rem; }

.a-fig { margin: 2rem 0; }
.a-fig img { width: 100%; border-radius: 16px; display: block; aspect-ratio: 16 / 9; object-fit: cover; }
.a-fig figcaption { font-size: .8rem; color: var(--mist); margin-top: .5rem; text-align: center; }
.a-fig figcaption a { color: inherit; }

/* Frise jour par jour */
.a-steps { list-style: none; margin: 1.5rem 0 2rem !important; padding: 0; position: relative; }
.a-steps::before { content: ''; position: absolute; left: 22px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--teal), rgba(20,184,166,.15)); }
.a-steps li { position: relative; padding: 0 0 1.4rem 64px; margin: 0 !important; }
.a-step-num { position: absolute; left: 0; top: 0; width: 46px; height: 46px; border-radius: 50%; background: #fff; border: 2px solid var(--teal); color: var(--teal-d); font-weight: 700; font-size: .75rem; display: flex; align-items: center; justify-content: center; text-align: center; line-height: 1.1; }
.a-steps h3 { margin: .15rem 0 .35rem !important; }
.a-steps p { margin: 0 !important; }

.a-grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin: 1.5rem 0 2rem; }
.a-tile { border: 1px solid var(--line); border-radius: 14px; padding: 1.1rem 1.2rem; background: #fff; }
.a-tile strong { display: block; color: var(--navy); margin-bottom: .3rem; }
.a-tile p { font-size: .92rem !important; color: var(--slate) !important; margin: 0 !important; }
@media (max-width: 600px) { .a-cover { min-height: 340px; } }

.f-social { display: flex; gap: .9rem; justify-content: center; margin-top: .9rem; }
.f-social a { color: var(--slate); display: inline-flex; margin: 0 !important; transition: color .2s; }
.f-social a:hover { color: var(--teal-d); }

/* Cartes : lien étendu à toute la carte, bouton Partager à côté de la date */
.a-card { position: relative; }
.a-card-link { color: inherit; text-decoration: none; }
.a-card-link::after { content: ''; position: absolute; inset: 0; border-radius: 18px; z-index: 1; }
.a-card-foot { display: flex; align-items: center; justify-content: space-between; gap: .8rem; margin-top: 1.1rem; }
.a-card-foot .a-card-meta { margin-top: 0; }

/* Bouton unique « Partager » */
.a-partage { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: .4rem; border: 1px solid var(--line); background: #fff; color: var(--navy); border-radius: 99px; padding: .45rem .85rem; font: 600 .8rem/1 'Inter', system-ui, sans-serif; cursor: pointer; }
.a-partage svg { width: 16px; height: 16px; flex: none; }
.a-partage:hover { border-color: var(--teal); color: var(--teal-d); }
.a-partage-bloc { display: flex; justify-content: flex-end; margin: 1.4rem 0; }

/* Fenêtre de partage */
html.a-sheet-ouvert { overflow: hidden; }
.a-sheet { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: flex-end; justify-content: center; }
.a-sheet[hidden] { display: none; }
.a-sheet-fond { position: absolute; inset: 0; background: rgba(15,23,42,.55); }
.a-sheet-boite { position: relative; width: 100%; max-width: 440px; background: #fff; border-radius: 20px 20px 0 0; padding: 1.1rem 1.1rem calc(1.2rem + env(safe-area-inset-bottom)); box-shadow: 0 -10px 40px rgba(15,23,42,.2); }
@media (min-width: 600px) { .a-sheet { align-items: center; } .a-sheet-boite { border-radius: 20px; } }
.a-sheet-tete { display: flex; align-items: center; justify-content: space-between; margin-bottom: .8rem; color: var(--navy); }
.a-sheet-fermer { width: 36px; height: 36px; border: 0; border-radius: 50%; background: #f1f5f9; color: var(--navy); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.a-sheet-apercu { display: flex; gap: .75rem; align-items: center; padding: .6rem; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 1rem; }
.a-sheet-apercu img { width: 96px; height: 54px; object-fit: cover; border-radius: 8px; flex: none; }
.a-sheet-apercu div { display: flex; flex-direction: column; min-width: 0; }
.a-sheet-t { font-weight: 600; font-size: .9rem; line-height: 1.3; color: var(--navy); }
.a-sheet-u { font-size: .75rem; color: var(--mist); }
.a-sheet-grille { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem .4rem; }
.a-sheet-opt { display: flex; flex-direction: column; align-items: center; gap: .4rem; border: 0; background: none; padding: .3rem 0; color: var(--ink); text-decoration: none; font: 500 .74rem/1.2 'Inter', system-ui, sans-serif; text-align: center; cursor: pointer; }
.a-sheet-opt svg { width: 22px; height: 22px; box-sizing: content-box; padding: 13px; border-radius: 50%; background: #f1f5f9; color: var(--navy); }
.a-sheet-opt.fb svg { background: #1877f2; color: #fff; }
.a-sheet-opt.wa svg { background: #25d366; color: #fff; }
.a-sheet-opt.ms svg { background: #0a7cff; color: #fff; }
.a-sheet-opt.ig svg { background: linear-gradient(45deg, #f9ce34, #ee2a7b, #6228d7); color: #fff; }
.a-sheet-info { margin-top: .9rem; font-size: .8rem; color: var(--teal-d); background: var(--bg-soft); border-radius: 10px; padding: .6rem .75rem; }
