/* Le Mag Lannion Lannuon, n°254
   Accueil : un hero en deux panneaux (aplat prune + photo), titre du dossier révélé mot à mot,
   puis le sommaire en cartes. Articles : mise en page de lecture épurée, façon Medium :
   colonne de 680 px, texte en serif, titres en Poppins, beaucoup de blanc. */
:root{
  --paper:#ffffff; --soft:#f5f6f8; --ink:#1d2227; --muted:#5b6570; --line:#e3e6ea;
  --navy:#0e3a5a; --framboise:#c8175d; --plum:#5b1f4a; --plum-deep:#3b1133; --pink:#f0b6dc; --sun:#ffd23f; --focus:#c2410c;
  --facile:#fff6d1; --facile-line:#a67c00;
  --b-image:#b83218; --b-coups:#4a6f00; --b-actu:#262c52; --b-angle:#5b1f4a; --b-projo:#77535d;
  --b-vous:#9a4e00; --b-chantier:#b0003c; --b-entre:#006b73; --b-tribunes:#4d5d6e; --b-agenda:#00639a;
  --t-image:#b83218; --t-coups:#4a6f00; --t-actu:#262c52; --t-angle:#5b1f4a; --t-projo:#77535d;
  --t-vous:#9a4e00; --t-chantier:#b0003c; --t-entre:#006b73; --t-tribunes:#4d5d6e; --t-agenda:#00639a;
  --f-display:"Poppins",system-ui,sans-serif;
  --f-serif:"Source Serif 4",Georgia,"Times New Roman",serif;
  --f-ui:"Atkinson Hyperlegible",Verdana,system-ui,sans-serif;
  --fs:1.125rem; --lh:1.65;
  --rub:var(--navy); --band:var(--navy);
}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){
  --paper:#14181c; --soft:#1c2228; --ink:#e7ebef; --muted:#a3adb7; --line:#2c343c;
  --navy:#8cc2ea; --focus:#fb923c; --facile:#2a2510; --facile-line:#e0b63a;
  --t-image:#ff9a82; --t-coups:#b4d96a; --t-actu:#aab4ff; --t-angle:#eaa9d6; --t-projo:#dcb3be;
  --t-vous:#ffb766; --t-chantier:#ff80a8; --t-entre:#62d3db; --t-tribunes:#b4c3d2; --t-agenda:#71c6f5;
  color-scheme:dark}}
:root[data-theme="dark"]{
  --paper:#14181c; --soft:#1c2228; --ink:#e7ebef; --muted:#a3adb7; --line:#2c343c;
  --navy:#8cc2ea; --focus:#fb923c; --facile:#2a2510; --facile-line:#e0b63a;
  --t-image:#ff9a82; --t-coups:#b4d96a; --t-actu:#aab4ff; --t-angle:#eaa9d6; --t-projo:#dcb3be;
  --t-vous:#ffb766; --t-chantier:#ff80a8; --t-entre:#62d3db; --t-tribunes:#b4c3d2; --t-agenda:#71c6f5;
  color-scheme:dark}

.r-image{--rub:var(--t-image);--band:var(--b-image)} .r-coups{--rub:var(--t-coups);--band:var(--b-coups)}
.r-actu{--rub:var(--t-actu);--band:var(--b-actu)} .r-angle{--rub:var(--t-angle);--band:var(--b-angle)}
.r-projo{--rub:var(--t-projo);--band:var(--b-projo)} .r-vous{--rub:var(--t-vous);--band:var(--b-vous)}
.r-chantier{--rub:var(--t-chantier);--band:var(--b-chantier)} .r-entre{--rub:var(--t-entre);--band:var(--b-entre)}
.r-tribunes{--rub:var(--t-tribunes);--band:var(--b-tribunes)} .r-agenda{--rub:var(--t-agenda);--band:var(--b-agenda)}

*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;overflow-x:clip}
body{margin:0;background:var(--paper);color:var(--ink);font-family:var(--f-ui);font-size:var(--fs);line-height:var(--lh)}
body.t-l{--fs:1.3rem} body.t-xl{--fs:1.55rem}
body.aere{--lh:2;letter-spacing:.03em;word-spacing:.12em}
body.aere main p, body.aere main li{margin-block-end:1.2em}
img{max-width:100%;height:auto;display:block}
a{color:var(--navy);text-underline-offset:.18em;text-decoration-thickness:.08em}
a:hover{text-decoration-thickness:.16em}
:focus-visible{outline:3px solid var(--focus);outline-offset:3px;border-radius:2px}
h1,h2,h3,h4{font-family:var(--f-display);line-height:1.18;text-wrap:balance;margin:0}
p{margin:0 0 1em}
sup{line-height:0}
.wrap{max-width:calc(72rem + 32px);margin-inline:auto;padding-inline:16px}
.visually-hidden{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

.br{font-style:italic;color:var(--muted)}
.br::before{content:"";display:inline-block;width:1.05em;height:.72em;margin-inline-end:.45em;vertical-align:-.04em;
  background:repeating-linear-gradient(to bottom,currentColor 0 1px,transparent 1px 2.4px);opacity:.75}

.skip{position:absolute;left:16px;top:-5rem;background:var(--navy);color:var(--paper);padding:.6em 1em;font-weight:700;z-index:30;border-radius:0 0 4px 4px}
.skip:focus{top:env(safe-area-inset-top,0px)}

/* ---------- En-tête : bandeau crème, logo et textes marine, « Mag » en framboise ---------- */
.site-head{--mast:#fff1dc;--mast-ink:#07304c;background:var(--mast);color:var(--mast-ink)}
.bar{display:flex;flex-wrap:wrap;gap:.5rem 1.5rem;align-items:center;justify-content:space-between;padding-block:.85rem}
.marque{display:flex;align-items:center;gap:1rem;text-decoration:none;color:var(--mast-ink);min-width:0}
.marque img{height:2.9rem;width:auto;flex:none}
.marque .sep{width:2px;align-self:stretch;background:var(--mast-ink);opacity:.35}
.marque .mag{display:flex;flex-direction:column;line-height:1.05}
.marque .mag b{font-family:var(--f-display);font-weight:800;font-size:1.9rem;letter-spacing:-.025em}
.marque .mag b em{font-style:normal;color:var(--framboise)}
.marque .mag small{font-family:var(--f-display);font-size:.85rem;font-weight:400;margin-top:.3rem}
.marque .mag small strong{font-weight:700}
.site-head :focus-visible{outline-color:var(--mast-ink)}
.reglages{font-size:.95rem}
.reglages summary{cursor:pointer;font-weight:700;color:var(--mast-ink);min-height:44px;display:flex;align-items:center;gap:.5rem;list-style:none}
.reglages summary::-webkit-details-marker{display:none}
.reglages summary::before{content:"Aa";font-family:var(--f-display);font-weight:800;border:2px solid currentColor;border-radius:4px;padding:0 .3em;font-size:.85em}
.reglages[open]{flex-basis:100%}
.ctrl{display:flex;flex-wrap:wrap;gap:.5rem 1.25rem;align-items:center;padding:.25rem 0 .4rem}
.grp{display:flex;gap:.35rem;align-items:center;flex-wrap:wrap}
.grp > span{color:var(--mast-ink);margin-inline-end:.25rem}
.reglages button{font:inherit;font-size:.95rem;min-height:44px;min-width:44px;padding:.35em .8em;border:2px solid var(--mast-ink);background:transparent;color:var(--mast-ink);border-radius:4px;cursor:pointer;font-weight:700}
.reglages button[aria-pressed="true"]{background:var(--mast-ink);color:#fff}
@media (max-width:560px){
  .site-head .bar{display:grid;grid-template-columns:minmax(0,1fr) auto;position:relative}
  .marque img{height:2.4rem}.marque{gap:.65rem}
  .marque .mag b{font-size:1.55rem;white-space:nowrap}
  .marque .mag small{font-size:.74rem}
  .reglages,.reglages[open]{flex-basis:auto;position:static}
  .reglages summary .lbl{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  .reglages[open] .ctrl{position:absolute;left:0;right:0;top:100%;z-index:20;background:var(--mast);padding:.75rem 16px 1rem}
}
.rubrique{font-family:var(--f-display);font-size:.85rem;font-weight:600;color:var(--rub);margin:0 0 .45rem;display:flex;flex-wrap:wrap;gap:.1rem .5rem;align-items:center}
.rubrique::before{content:"";width:.6rem;height:.6rem;border-radius:2px;background:var(--band)}
.rubrique [lang="br"]{color:var(--muted);font-weight:300;font-style:italic}

/* ==================== ACCUEIL ==================== */
/* Hero : photo pleine largeur, contenu posé dessus en bas, voile sombre neutre pour la lisibilité */
.une{position:relative;display:flex;align-items:flex-end;min-height:min(88vh,52rem);overflow:hidden;color:#fff;background:#1d2227}
@media (max-width:640px){.une{min-height:min(92vh,44rem)}}
.une-photo{position:absolute;inset:0;margin:0}
.une-photo img{width:100%;height:100%;object-fit:cover;object-position:50% 30%}
.une::after{content:"";position:absolute;inset:0;background:linear-gradient(to right,rgba(12,15,18,.6) 0%,rgba(12,15,18,.25) 55%,rgba(12,15,18,0) 80%),linear-gradient(to top,rgba(12,15,18,.9) 0%,rgba(12,15,18,.6) 45%,rgba(12,15,18,.2) 75%,rgba(12,15,18,.3) 100%)}
@media (max-width:640px){.une::after{background:linear-gradient(to top,rgba(12,15,18,.93) 0%,rgba(12,15,18,.8) 55%,rgba(12,15,18,.66) 80%,rgba(12,15,18,.5) 100%)}}
.une-in{position:relative;z-index:1;width:100%;padding-block:3rem 3.5rem}
.une-top{display:flex;flex-wrap:wrap;align-items:baseline;gap:.4rem 1.5rem;margin-bottom:1.5rem;font-family:var(--f-display)}
.lemag{margin:0;font-size:1rem}
.lemag b{font-weight:800}
.lemag span{font-weight:300;opacity:.85;margin-left:.5rem}
.une .kick{margin:0;font-weight:600;font-size:1rem;display:flex;gap:.6rem;align-items:center}
.une .kick::before{content:"";width:1.75rem;height:2px;background:currentColor}
.une .kick [lang]{font-weight:300;font-style:italic;opacity:.85}
.une h1{font-size:clamp(2.2rem,5.4vw,4.6rem);line-height:.98;letter-spacing:-.035em;font-weight:300;margin:0 0 1.5rem;max-width:14ch;text-shadow:0 2px 24px rgba(0,0,0,.25)}
.une h1 strong{font-weight:800;color:#ff5c93}
.une h1 .w{display:inline-block;overflow:hidden;vertical-align:top;padding-bottom:.1em;margin-bottom:-.1em}
.une h1 .w > span{display:inline-block}
.une-bas{display:grid;gap:1.25rem 3rem;grid-template-columns:minmax(0,1fr);align-items:end}
@media (min-width:900px){.une-bas{grid-template-columns:minmax(0,1fr) auto}}
.une .br{margin:0 0 .5rem;color:#fff;opacity:.9}
.une .acc{max-width:36rem;font-size:1.1em;margin:0;color:#fff}
.btn{justify-self:start;display:inline-flex;align-items:center;min-height:50px;padding:.6rem 1.5rem;border-radius:999px;background:#fff;color:#1d2227;font-family:var(--f-display);font-weight:600;text-decoration:none;white-space:nowrap}
.btn:hover{background:var(--sun)}
.une :focus-visible{outline-color:#fff}
@media (prefers-reduced-motion:no-preference){
  .une h1 .w > span{animation:monte .9s cubic-bezier(.2,.75,.15,1) both;animation-delay:calc(.25s + var(--i) * 70ms)}
  .une-top{animation:fondu .7s ease-out both;animation-delay:.1s}
  .une-bas{animation:fondu .8s ease-out both;animation-delay:.75s}
  .une-photo img{animation:zoom 4.5s ease-out both}
  @keyframes monte{from{transform:translateY(105%)}to{transform:none}}
  @keyframes fondu{from{opacity:0;transform:translateY(.5rem)}to{opacity:1;transform:none}}
  @keyframes zoom{from{transform:scale(1.12)}to{transform:scale(1)}}
}

/* Sommaire */
.sommaire{padding-block:4.5rem 1rem}
.sommaire > h2{font-size:clamp(1.9rem,4vw,2.6rem);font-weight:300;letter-spacing:-.015em;margin-bottom:2rem}
.sommaire > h2 strong{font-weight:800}
.cards{display:grid;gap:2.75rem 2rem;grid-template-columns:repeat(auto-fill,minmax(min(100%,19rem),1fr))}
.card{position:relative;display:flex;flex-direction:column;min-width:0}
.card .vis{aspect-ratio:3/2;border-radius:6px;overflow:hidden;background:var(--band);margin-bottom:1rem}
.card .vis img{width:100%;height:100%;object-fit:cover;transition:transform .5s ease}
.card .vis.txt{display:flex;align-items:flex-end;padding:1.1rem 1.25rem;color:#fff;font-family:var(--f-display);line-height:.9;font-size:2.6rem;letter-spacing:-.02em}
.card .vis.txt b{font-weight:800} .card .vis.txt span{font-weight:200}
.card h3{font-size:1.28em;font-weight:600;margin-bottom:.45rem}
.card h3 a{color:var(--ink);text-decoration:none}
.card h3 a::after{content:"";position:absolute;inset:0}
.card h3 a:focus-visible{outline:none}
.card:focus-within{outline:3px solid var(--focus);outline-offset:6px;border-radius:6px}
.card:hover h3 a{text-decoration:underline;text-decoration-color:var(--band);text-decoration-thickness:.1em}
@media (prefers-reduced-motion:no-preference){.card:hover .vis img{transform:scale(1.04)}}
.card .acc{color:var(--muted);margin:0;font-size:.97em}
.meta{margin-top:.75rem;display:flex;flex-wrap:wrap;gap:.4rem 1rem;font-size:.85em;color:var(--muted);align-items:center}
.badge{display:inline-flex;align-items:center;font-weight:700;color:var(--ink);background:var(--facile);border:1px solid var(--facile-line);border-radius:999px;padding:0 .65em}
/* catégorie au-dessus de l'image : étiquette pleine dans la couleur de la rubrique */
.cat{display:flex;flex-wrap:wrap;align-items:center;gap:.3rem .6rem;margin:0 0 .65rem}
.tag{display:inline-block;background:var(--band);color:#fff;font-family:var(--f-display);font-weight:700;font-size:.92rem;line-height:1.2;padding:.32rem .75rem;border-radius:4px}
.cat [lang="br"]{font-family:var(--f-display);font-weight:300;font-style:italic;font-size:.85rem;color:var(--muted)}
/* l'édito, en tête du sommaire */
.card.edito{grid-column:1/-1;display:grid;grid-template-columns:5.5rem minmax(0,1fr);gap:1.25rem;align-items:center;padding:1.25rem 1.4rem;background:var(--soft);border-radius:8px}
.card.edito img{width:5.5rem;height:5.5rem;border-radius:50%;object-fit:cover;object-position:top}
.card.edito h3{font-size:1.5em}
@media (min-width:900px){.card.edito{grid-template-columns:5.5rem minmax(0,1fr) minmax(0,1fr)}.card.edito .acc{align-self:center}}

/* ==================== ARTICLE (façon Medium) ==================== */
.progress{position:fixed;top:0;left:0;right:0;height:3px;z-index:25;pointer-events:none;padding-top:env(safe-area-inset-top,0px)}
.progress i{display:block;height:3px;width:100%;background:var(--band);transform-origin:0 50%;transform:scaleX(0)}
.col{max-width:42.5rem;margin-inline:auto}
.post{padding-block:3rem 1rem}
.post-head .rubrique{margin-bottom:1rem}
.post-head h1{font-size:clamp(2rem,5vw,2.75rem);font-weight:700;letter-spacing:-.02em;line-height:1.15;margin-bottom:.75rem}
.post-head h1 strong{font-weight:inherit}
.post-head .br{margin:-.25rem 0 .75rem}
.post-head .sous{font-family:var(--f-serif);font-size:1.3em;line-height:1.45;color:var(--muted);margin:0 0 2rem}
.byline{display:flex;align-items:center;gap:.8rem;padding-block:1rem;border-block:1px solid var(--line);margin-bottom:2.5rem;font-size:.92rem}
.avatar{flex:none;width:2.75rem;height:2.75rem;border-radius:50%;background:var(--navy);color:var(--paper);display:grid;place-items:center;font-family:var(--f-display);font-weight:800;font-size:1.15rem}
.byline p{margin:0;line-height:1.35}
.byline strong{display:block}
.byline span{color:var(--muted)}
.post-hero{max-width:62rem;margin:0 auto 2.75rem}
.post-hero img{width:100%;border-radius:4px;max-height:40rem;object-fit:cover}
.post-hero.portrait img{aspect-ratio:16/10;object-position:50% 55%}
.post-hero figcaption{text-align:center}

.corps{font-family:var(--f-serif);font-size:1.18em;line-height:1.7}
.corps p{margin:0 0 1.5em}
.chapo{font-family:var(--f-serif);font-size:1.3em;line-height:1.55;margin:0 0 2rem}
.corps h2{font-size:1.45em;font-weight:700;letter-spacing:-.01em;margin:2.2em 0 .5em;color:var(--ink)}
.corps h2 strong{font-weight:inherit}
.corps h3{font-size:1.12em;font-weight:700;margin:1.9em 0 .4em}
.corps ul{padding-left:1.25em;margin:0 0 1.5em}
.corps li{margin-block:.35em}
figure{margin:2.5rem 0}
figure img{width:100%;border-radius:3px}
figcaption{font-family:var(--f-ui);font-size:.85rem;color:var(--muted);margin-top:.6rem;text-align:center;line-height:1.45}
.signature{font-family:var(--f-ui);font-weight:700;font-size:.95rem;margin-top:1.5rem}
.signature span{display:block;font-weight:400;color:var(--muted)}
.portrait-f{float:right;width:6.5rem;height:6.5rem;margin:.3rem 0 1rem 1.5rem;border-radius:50%;object-fit:cover;object-position:top}
.note{font-size:.85em;color:var(--muted);font-style:italic}
.contact{font-family:var(--f-ui);font-size:.95rem;border-top:1px solid var(--line);padding-top:1.25rem;margin-top:2.5rem;color:var(--muted)}
.contact strong{color:var(--ink)}

/* exergue, à la Medium */
.exergue{margin:2.75rem 0;padding:0}
.exergue blockquote{margin:0;font-family:var(--f-serif);font-style:italic;font-size:1.45em;line-height:1.4;color:var(--ink);padding-left:1.4rem;border-left:3px solid var(--ink)}
.exergue blockquote p{margin:0}
.exergue figcaption{text-align:left;padding-left:1.6rem}

.toc{font-family:var(--f-ui);font-size:1rem;background:var(--soft);border-radius:6px;padding:1.1rem 1.35rem;margin:0 0 2.5rem}
.toc h2{font-size:1rem;font-weight:600;margin:0 0 .4rem;color:var(--ink)}
.toc ol{margin:0;padding-left:1.3em}

.facile{font-family:var(--f-ui);font-size:1rem;line-height:1.6;background:var(--facile);border-left:5px solid var(--facile-line);padding:1.1rem 1.25rem;margin:0 0 2.5rem;border-radius:0 6px 6px 0}
.facile h2{display:flex;gap:.6rem;align-items:center;margin:0 0 .5rem;font-size:1rem;font-weight:600;color:var(--ink)}
.facile svg{flex:none;width:2rem;height:2rem}
.facile ul{margin:0;padding-left:1.2em}

.encadre{font-family:var(--f-ui);font-size:1rem;line-height:1.6;background:var(--soft);border-radius:6px;padding:1.3rem 1.4rem;margin-block:2.5rem}
.encadre p{margin:0 0 .75em}
.encadre h2,.encadre h3{margin:0 0 .8rem;font-size:1.1rem;font-weight:700;color:var(--ink)}
.encadre ul{margin:0}
dl.chiffres{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,9rem),1fr));gap:1.25rem 1rem;margin:0}
dl.chiffres dt{font-family:var(--f-display);font-weight:800;font-size:1.65rem;line-height:1.05;color:var(--rub);font-variant-numeric:tabular-nums}
dl.chiffres dd{margin:.25rem 0 0;font-size:.88rem;color:var(--muted);line-height:1.4}
dl.chiffres > div.large{grid-column:1/-1}
.table-scroll{overflow-x:auto}
table{border-collapse:collapse;width:100%;font-family:var(--f-ui);font-size:.95rem}
caption{text-align:left;font-weight:700;margin-bottom:.4rem}
th,td{text-align:left;padding:.5rem .6rem;border-bottom:1px solid var(--line);vertical-align:top}
thead th{border-bottom:2px solid var(--ink)}
td.n{font-variant-numeric:tabular-nums;white-space:nowrap}

.bilingue{display:grid;gap:2rem;grid-template-columns:minmax(0,1fr)}
.bilingue > div{min-width:0}
.bilingue > [lang="br"]{border-top:1px solid var(--line);padding-top:1.5rem}
.bilingue > [lang="br"] h2{margin-top:0}

.breve{border-top:1px solid var(--line);padding-top:2rem;margin-top:2.5rem}
.breve:first-child{border-top:0;margin-top:0;padding-top:0}
.breve figure{margin:0 0 1.25rem}
.breve h2{margin:0 0 .2rem}
.breve .quand{font-family:var(--f-ui);font-weight:700;font-size:.95rem;color:var(--rub);margin-bottom:.6rem}

.tribune{border-top:1px solid var(--line);padding-top:2rem;margin-top:2.5rem}
.tribune h2{margin:0 0 .75rem}

.agenda-mois dl{margin:0}
.agenda-mois dt{font-family:var(--f-ui);font-weight:700;color:var(--rub);margin-top:1rem;font-size:.95em}
.agenda-mois dd{margin:0}

/* Fin d'article */
.fin{text-align:center;letter-spacing:1em;color:var(--muted);margin:3rem 0 0;font-size:1.4rem}
.suite{margin-top:3rem;padding-top:2rem;border-top:1px solid var(--line)}
.suite > h2{font-size:1.1rem;font-weight:700;margin-bottom:1.25rem}
.suite .cards{grid-template-columns:repeat(auto-fill,minmax(min(100%,15rem),1fr));gap:2rem}
.suite .card h3{font-size:1.1em}
.retour{margin-top:2.5rem;text-align:center;font-weight:700}

/* ---------- Pied ---------- */
.site-foot{background:var(--soft);border-top:1px solid var(--line);margin-top:4rem;padding-block:2.5rem 3rem;font-size:.9rem;color:var(--muted)}
.site-foot .wrap{display:grid;gap:1.5rem 2rem;grid-template-columns:repeat(auto-fit,minmax(min(100%,15rem),1fr))}
.site-foot h2{font-size:1rem;font-weight:600;color:var(--ink);margin-bottom:.5rem}
.site-foot ul{margin:0;padding-left:1.1em}
.site-foot p{margin:0 0 .4rem}
.site-foot .logo{margin-bottom:.75rem}

@media print{.reglages,.suite,.skip,.progress{display:none}body{background:#fff;color:#000}}
@media (max-width:899px){.card.edito .acc{grid-column:1/-1}}
@media (max-width:520px){.card.edito{grid-template-columns:4rem minmax(0,1fr);gap:1rem;padding:1rem}.card.edito img{width:4rem;height:4rem}.card.edito h3{font-size:1.2em}}
.logo-pied{height:3.5rem;width:auto;margin-bottom:.9rem}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .logo-pied{filter:brightness(0) invert(1)}}
:root[data-theme="dark"] .logo-pied{filter:brightness(0) invert(1)}
@media (max-width:400px){.une::after{background:linear-gradient(to top,rgba(12,15,18,.94) 0%,rgba(12,15,18,.84) 50%,rgba(12,15,18,.78) 100%)}}
mark.todo{background:#fff3a8;color:#3a2f00;padding:0 .2em;border-radius:2px;font-family:var(--f-ui);font-size:.92em}
.site-foot .mention{font-weight:700;margin-bottom:.6rem}
.site-foot .mention a{color:var(--ink)}
