/* Les Echos de Perspicacite · echosdeperspicacite.com
   Meme famille que le site La Balade : palette, Fraunces + Outfit, grain papier. */
:root{
  --creme:#F3EDD3;
  --creme-fonce:#E8E0C4;
  --sapin:#002629;
  --sauge:#719571;          /* decor : bordures, pastilles */
  --sauge-fonce:#3F5A41;    /* vert du texte sur fond clair */
  --safran:#FBC04A;
  --braise:#C2612B;
  --encre:#16201d;
  --trait:#C9BF9B;
}
*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:5.5rem}
body{
  font-family:'Outfit',system-ui,sans-serif;font-weight:300;
  color:var(--encre);background:var(--creme);line-height:1.6;
  overflow-x:hidden;-webkit-font-smoothing:antialiased;
}
h1,h2,h3{font-family:'Fraunces',Georgia,serif;font-weight:500;line-height:1.1;letter-spacing:-.018em;color:var(--sapin)}
h1 em,h2 em{font-weight:400}
img,svg{max-width:100%;height:auto;display:block}
a{color:var(--sapin)}
a:hover{color:var(--sauge-fonce)}
::selection{background:var(--safran);color:var(--sapin)}
:focus-visible{outline:2px solid var(--braise);outline-offset:3px;border-radius:4px}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* grain : la texture papier */
body::after{
  content:"";position:fixed;inset:0;z-index:999;pointer-events:none;opacity:.05;mix-blend-mode:multiply;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wrap{max-width:1200px;margin:0 auto;padding:0 clamp(1.2rem,4vw,2.5rem)}
.eyebrow{font-size:.8rem;letter-spacing:.14em;text-transform:uppercase;color:var(--sauge-fonce);font-weight:600}
.fleche{font-weight:500;font-size:1.05rem;text-underline-offset:4px}

/* ---------- barre du haut ---------- */
.haut{position:sticky;top:0;z-index:60;background:rgba(243,237,211,.92);backdrop-filter:blur(10px);border-bottom:1px solid var(--creme-fonce)}
.haut .wrap{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.6rem 1rem;padding-top:.8rem;padding-bottom:.8rem}
.marque{display:flex;align-items:center;gap:.7rem;text-decoration:none;font-family:'Fraunces',Georgia,serif;font-size:1.3rem;color:var(--sapin)}
.marque img{width:40px;height:40px}
.marque em{color:var(--sauge-fonce)}
.menu{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem 1.4rem;font-size:.95rem;font-weight:400}
.menu a{text-decoration:none}
.langue{display:flex;align-items:center;gap:.25rem;border:1px solid var(--trait);border-radius:999px;padding:.2rem;font-size:.82rem;font-weight:500}
.langue > *{padding:.35rem .75rem;border-radius:999px}
.langue [aria-current]{background:var(--sapin);color:var(--creme)}
.btn{display:inline-block;background:var(--sapin);color:var(--creme);text-decoration:none;padding:1rem 1.6rem;border-radius:12px;font-weight:500;font-size:1.05rem;transition:background .2s,transform .2s}
.btn:hover{background:#0a3d3f;color:var(--creme);transform:translateY(-2px)}
.btn-petit{padding:.7rem 1.2rem;font-size:.95rem;border-radius:10px}
.btn-sauge{background:var(--sauge-fonce)}
.btn-sauge:hover{background:var(--sapin)}
@media (max-width:900px){.menu .lien-page{display:none}}
@media (max-width:480px){.marque{font-size:1.05rem}.marque img{width:32px;height:32px}.menu .btn{display:none}}

/* ---------- ouverture ---------- */
.ouverture{display:flex;flex-wrap:wrap;gap:3.5rem;align-items:center;padding-top:clamp(3rem,8vw,6rem);padding-bottom:clamp(3rem,7vw,5rem)}
.ouverture-texte{flex:999 1 560px;min-width:0;display:flex;flex-direction:column;gap:1.5rem}
.ouverture h1{font-size:clamp(2.3rem,5.6vw,4rem);line-height:1.05}
.ouverture .chapo{font-size:clamp(1.08rem,2vw,1.25rem);max-width:620px}
.actions{display:flex;flex-wrap:wrap;gap:1rem 1.4rem;align-items:center}
.ouverture-figure{flex:1 1 340px;display:flex;justify-content:center;padding:1.6rem}
.rond{width:min(360px,70vw);aspect-ratio:1;border-radius:50%;background:var(--creme-fonce);outline:2px dotted var(--sauge);outline-offset:22px;display:flex;align-items:center;justify-content:center}
.rond img{width:58%}

/* ---------- bandes ---------- */
.bande{background:var(--creme-fonce)}
.bloc{padding-top:clamp(3.5rem,8vw,6rem);padding-bottom:clamp(3.5rem,8vw,6rem);display:flex;flex-direction:column;gap:2.6rem}
.entete{display:flex;flex-direction:column;gap:.75rem;max-width:720px}
.entete h2,.entete-large h2{font-size:clamp(1.9rem,4.2vw,2.75rem)}
.entete p:not(.eyebrow){font-size:1.12rem}
.entete-large{display:flex;flex-wrap:wrap;gap:1.5rem 2rem;justify-content:space-between;align-items:flex-end}

/* ---------- la semaine ---------- */
.trio{display:grid;grid-template-columns:repeat(auto-fit,minmax(270px,1fr));gap:1.5rem}
.rdv{background:var(--creme);border-radius:18px;padding:2rem;display:flex;flex-direction:column;gap:.75rem}
.rdv .quand{font-size:.9rem;font-weight:600;color:var(--encre);display:flex;align-items:center;gap:.5rem}
.rdv .quand::before{content:"";width:9px;height:9px;border-radius:50%;background:var(--braise);flex:none}
.rdv h3{font-size:1.75rem}
.rdv p:last-child{font-size:1.05rem}

/* ---------- le voyage ---------- */
.phases{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:1rem;list-style:none}
.phase{background:var(--creme);border:1.5px dashed var(--trait);border-radius:18px;padding:1.4rem;display:flex;flex-direction:column;gap:.6rem;min-height:200px}
.phase-tete{display:flex;align-items:center;justify-content:space-between;gap:.5rem}
.phase .num{width:40px;height:40px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-family:'Fraunces',Georgia,serif;font-size:1rem;border:1.5px dashed var(--sauge);color:var(--sauge-fonce);flex:none}
.phase .ici{display:none;font-size:.75rem;font-weight:600;background:var(--safran);color:var(--sapin);border-radius:999px;padding:.25rem .6rem;text-align:center;line-height:1.2}
.phase h3{font-size:1.5rem;color:inherit}
.phase .devise{font-size:.95rem;line-height:1.5;font-style:italic}
.phase .dates{font-size:.82rem;opacity:.8;margin-top:auto}

/* la phase en cours et les phases passees : pilotees par assets/voyage.js */
html[data-phase="1"] .phase:nth-child(1),html[data-phase="2"] .phase:nth-child(2),html[data-phase="3"] .phase:nth-child(3),
html[data-phase="4"] .phase:nth-child(4),html[data-phase="5"] .phase:nth-child(5),html[data-phase="6"] .phase:nth-child(6){background:var(--sapin);color:var(--creme);border:1.5px solid var(--sapin)}
html[data-phase="1"] .phase:nth-child(1) .num,html[data-phase="2"] .phase:nth-child(2) .num,html[data-phase="3"] .phase:nth-child(3) .num,
html[data-phase="4"] .phase:nth-child(4) .num,html[data-phase="5"] .phase:nth-child(5) .num,html[data-phase="6"] .phase:nth-child(6) .num{background:var(--safran);color:var(--sapin);border:0}
html[data-phase="1"] .phase:nth-child(1) .ici,html[data-phase="2"] .phase:nth-child(2) .ici,html[data-phase="3"] .phase:nth-child(3) .ici,
html[data-phase="4"] .phase:nth-child(4) .ici,html[data-phase="5"] .phase:nth-child(5) .ici,html[data-phase="6"] .phase:nth-child(6) .ici{display:block}
html[data-phase="2"] .phase:nth-child(-n+1),html[data-phase="3"] .phase:nth-child(-n+2),html[data-phase="4"] .phase:nth-child(-n+3),
html[data-phase="5"] .phase:nth-child(-n+4),html[data-phase="6"] .phase:nth-child(-n+5){border:1.5px solid var(--sauge)}
html[data-phase="2"] .phase:nth-child(-n+1) .num,html[data-phase="3"] .phase:nth-child(-n+2) .num,html[data-phase="4"] .phase:nth-child(-n+3) .num,
html[data-phase="5"] .phase:nth-child(-n+4) .num,html[data-phase="6"] .phase:nth-child(-n+5) .num{background:var(--sauge-fonce);color:var(--creme);border:0}

/* ---------- les derniers echos ---------- */
.cartes{display:grid;grid-template-columns:repeat(auto-fit,minmax(290px,1fr));gap:1.5rem}
.carte{text-decoration:none;background:var(--creme);border-radius:18px;overflow:hidden;display:flex;flex-direction:column;color:var(--encre);transition:transform .2s}
.carte:hover{transform:translateY(-3px);color:var(--encre)}
.carte-haut{height:150px;background:var(--sapin);color:var(--safran);display:flex;align-items:flex-end;padding:1.2rem 1.6rem;font-family:'Fraunces',Georgia,serif;font-style:italic;font-size:1.9rem;line-height:1}
.carte:nth-child(2) .carte-haut{background:var(--sauge-fonce);color:var(--creme)}
.carte:nth-child(3) .carte-haut{background:var(--braise);color:var(--creme)}
.carte-corps{padding:1.6rem;display:flex;flex-direction:column;gap:.6rem}
.carte .source{font-size:.82rem;color:var(--sauge-fonce);font-weight:600}
.carte .titre{font-family:'Fraunces',Georgia,serif;font-weight:400;font-size:1.35rem;line-height:1.3;color:var(--sapin)}

/* ---------- erald ---------- */
.erald{display:flex;flex-wrap:wrap;gap:3rem;align-items:center;padding-top:clamp(3.5rem,8vw,6rem);padding-bottom:clamp(3.5rem,8vw,6rem)}
.erald-figure{flex:1 1 300px;display:flex;justify-content:center;align-items:center}
.erald-figure div{width:240px;height:240px;border-radius:50%;background:var(--sapin);display:flex;align-items:center;justify-content:center}
.erald-figure img{width:58%}
.erald-texte{flex:999 1 560px;min-width:0;display:flex;flex-direction:column;gap:1.1rem}
.erald-texte h2{font-size:clamp(1.9rem,4.2vw,2.75rem)}
.erald-texte .fort{font-size:1.18rem}
.erald-texte p{font-size:1.05rem}

/* ---------- le pont vers La Balade ---------- */
.pont-zone{padding-bottom:clamp(3.5rem,8vw,6rem)}
.pont{border:1.5px dashed var(--sauge);border-radius:22px;padding:clamp(1.6rem,4vw,3rem);display:flex;flex-wrap:wrap;gap:2rem;align-items:center;justify-content:space-between}
.pont-texte{flex:999 1 520px;min-width:0;display:flex;flex-direction:column;gap:.75rem}
.pont h2{font-size:clamp(1.5rem,3.2vw,2.1rem);line-height:1.15}
.pont p:not(.eyebrow){font-size:1.05rem}

/* ---------- abonnement ---------- */
.abonnement{background:var(--sapin);color:var(--creme)}
.abonnement .wrap{max-width:760px;padding-top:clamp(3.5rem,8vw,6rem);padding-bottom:clamp(3.5rem,8vw,6rem);display:flex;flex-direction:column;gap:1.5rem;align-items:center;text-align:center}
.abonnement h2{color:var(--creme);font-size:clamp(2rem,4.6vw,3rem)}
.abonnement h2 em{color:var(--safran)}
.abonnement .promesse{font-size:1.12rem;opacity:.92}
/* l'encart Substack a un texte fonce : il lui faut un fond clair */
.encart{background:var(--creme);border-radius:18px;padding:.6rem;width:100%;max-width:500px}
.encart iframe{display:block;width:100%;height:320px;border:0;border-radius:12px;background:#fff}
.abonnement .note{font-size:.88rem;opacity:.78}
.abonnement .note a{color:var(--creme)}

/* ---------- pied ---------- */
.pied{border-top:1px solid var(--creme-fonce)}
.pied .wrap{padding-top:2.4rem;padding-bottom:2.4rem;display:flex;flex-wrap:wrap;gap:1.4rem;justify-content:space-between;align-items:center;font-size:.95rem;font-weight:400}
.pied .devise{font-family:'Fraunces',Georgia,serif;font-style:italic;color:var(--sauge-fonce)}
.pied nav{display:flex;flex-wrap:wrap;gap:.6rem 1.25rem}
.pied .fin{flex-basis:100%;font-size:.8rem;opacity:.75;font-weight:300}

/* ---------- pages de texte (confidentialite, echos anglais) ---------- */
.texte{max-width:720px;margin:0 auto;padding:clamp(2.5rem,6vw,4.5rem) clamp(1.2rem,4vw,2.5rem)}
.texte h1{font-size:clamp(2rem,4.6vw,3rem);margin:.6rem 0 1rem}
.texte h2{font-size:1.55rem;margin:2.4rem 0 .7rem}
.texte h3{font-size:1.15rem;margin:1.5rem 0 .4rem;font-family:'Outfit',system-ui,sans-serif;font-weight:600;letter-spacing:0}
.texte p,.texte li{font-size:1.05rem;margin-bottom:.8rem}
.texte ul{padding-left:1.2rem}

@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}.btn,.carte{transition:none}.btn:hover,.carte:hover{transform:none}}
@media (max-width:900px){br.large{display:none}}
@media (max-width:600px){.phase{min-height:0}}

/* ---------- c'est quoi, un echo ---------- */
.bloc-court{padding-bottom:clamp(2.5rem,6vw,4rem);gap:1.8rem}
.trois-temps{list-style:none;display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:1.2rem 2.5rem;counter-reset:temps}
.trois-temps li{counter-increment:temps;font-size:1.12rem;padding-top:1rem;border-top:1.5px solid var(--sauge)}
.trois-temps li::before{content:counter(temps);display:block;font-family:'Fraunces',Georgia,serif;font-style:italic;font-size:1.6rem;color:var(--braise);line-height:1;margin-bottom:.5rem}
.trois-temps strong{font-family:'Fraunces',Georgia,serif;font-weight:500;font-size:1.3rem;color:var(--sapin)}

/* ---------- les dix voix ---------- */
.les-voix{list-style:none;display:grid;grid-template-columns:repeat(5,1fr);gap:1.1rem}
.voix{background:var(--creme);border-radius:18px;padding:1.3rem 1.1rem 1.4rem;display:flex;flex-direction:column;align-items:center;text-align:center;gap:.4rem}
.voix img{width:min(128px,70%);height:auto;margin-bottom:.4rem}
.voix h3{font-size:1.3rem}
.voix p{font-size:.95rem;line-height:1.45}
.relance{font-family:'Fraunces',Georgia,serif;font-style:italic;font-size:clamp(1.25rem,2.6vw,1.6rem);color:var(--sapin);text-align:center}
@media (max-width:1000px){.les-voix{grid-template-columns:repeat(3,1fr)}}
@media (max-width:600px){.les-voix{grid-template-columns:repeat(2,1fr);gap:.8rem}.voix{padding:1rem .7rem}.voix h3{font-size:1.1rem}.voix p{font-size:.88rem}}

/* ---------- les mots d'erald ---------- */
.mots-erald{font-family:'Fraunces',Georgia,serif;font-style:italic;font-size:1.25rem;line-height:1.45;color:var(--sapin);border-left:3px solid var(--safran);padding-left:1.1rem}
.erald-figure div{width:min(280px,70vw);height:auto;aspect-ratio:1}
.erald-figure img{width:66%}
.marque img{width:44px;height:44px}
.rond img{width:66%}
.btn-safran{background:var(--safran);color:var(--sapin);font-weight:600}
.btn-safran:hover{background:#ffd06b;color:var(--sapin)}
.abonnement .note{max-width:560px}
/* cartes posees sur le fond creme (archive anglaise) : un trait pour les detacher */
#archive .carte{border:1.5px solid var(--trait)}
#archive .carte:hover{border-color:var(--sauge)}
.rond picture{display:contents}

/* ---------- les dix voix : vignettes + cadre de lecture ---------- */
.aide-voix{font-size:.9rem;color:var(--sauge-fonce);font-weight:400;margin-bottom:-1.4rem}
.les-voix{grid-template-columns:repeat(10,minmax(0,1fr));gap:.7rem}
.voix{padding:.9rem .4rem .8rem;cursor:pointer;border:2px solid transparent;transition:border-color .2s,transform .2s;gap:.2rem}
.voix img{width:min(84px,80%);margin-bottom:.2rem}
.voix h3{font-size:.95rem;line-height:1.15}
.voix-fn{display:none}
.voix:hover,.voix.active{border-color:var(--sapin);transform:translateY(-3px)}
.voix.active{background:var(--creme);box-shadow:0 8px 22px rgba(0,38,41,.12)}
.voix:focus-visible{outline:2px solid var(--braise);outline-offset:3px}
.voix-detail{display:none}
/* sans script : chaque vignette porte son texte */
html:not(.voix-js) .les-voix{grid-template-columns:repeat(auto-fit,minmax(260px,1fr))}
html:not(.voix-js) .voix-detail,html:not(.voix-js) .voix-fn{display:block;text-align:left;font-size:.95rem}
.cadre-voix{background:var(--sapin);color:var(--creme);border-radius:22px;padding:clamp(1.4rem,3.5vw,2.6rem);display:flex;flex-wrap:wrap;gap:1.5rem 2.6rem;align-items:center;min-height:19rem}
.cadre-voix[hidden]{display:none}
.cadre-figure{flex:0 0 auto;width:min(190px,45vw);aspect-ratio:1;border-radius:50%;background:var(--creme);display:flex;align-items:center;justify-content:center;margin:0 auto}
.cadre-figure img{width:74%}
.cadre-texte{flex:1 1 420px;min-width:0;display:flex;flex-direction:column;gap:.7rem}
.cadre-texte h3{color:var(--safran);font-size:clamp(1.7rem,3.4vw,2.3rem)}
.cadre-fn{font-size:.82rem;letter-spacing:.12em;text-transform:uppercase;font-weight:600;opacity:.85}
.cadre-corps{display:flex;flex-direction:column;gap:.7rem}
.cadre-corps p{font-size:1.12rem;line-height:1.6}
.cadre-corps .voix-ligne{font-size:1rem;opacity:.95}
.cadre-corps strong{color:var(--safran);font-weight:600;margin-right:.35rem}
.cadre-corps .voix-q{font-family:'Fraunces',Georgia,serif;font-style:italic;font-size:1.2rem}
.cadre-corps .voix-q strong{font-family:'Outfit',system-ui,sans-serif;font-style:normal;font-size:1rem}
@media (max-width:1000px){.les-voix{grid-template-columns:repeat(5,minmax(0,1fr))}}
@media (max-width:600px){.les-voix{gap:.45rem}.voix{padding:.5rem .2rem;border-radius:14px}.voix h3{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}.voix img{width:88%;margin:0}.cadre-voix{min-height:0}.cadre-corps p{font-size:1.02rem}}
@media (prefers-reduced-motion:reduce){.voix{transition:none}.voix:hover,.voix.active{transform:none}}
