/* ============================================================
   ALKEMISTA — feuille de style unique
   Charte : Bouteille #163527 · Argile #D9A796 · Lin #F3EDE6 · Rouille #A8563A
   Typographies : Newsreader (titres, italique) · Sora (texte)
   Conception mobile-first. NE PAS MODIFIER sauf indication du guide.
   ============================================================ */

:root{
  --bouteille:#163527;
  --argile:#D9A796;
  --lin:#F3EDE6;
  --rouille:#A8563A;
  --sauge:#8FA48F;
  --or:#C68A3D;
  --sable:#DCD6C8;
  --encre:rgba(22,53,39,.82);
  --encre-douce:rgba(22,53,39,.62);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  background:var(--lin);
  color:var(--encre);
  font-family:'Sora',sans-serif;
  font-size:16px;
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%;display:block}
a{color:var(--rouille)}

h1,h2,h3{
  font-family:'Newsreader',serif;
  font-style:italic;
  font-weight:500;
  color:var(--bouteille);
  line-height:1.15;
  margin:0 0 .5em;
}
h1{font-size:2.1rem}
h2{font-size:1.7rem}
h3{font-size:1.25rem}

.kicker{
  font:600 .72rem/1.4 'Sora',sans-serif;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:var(--rouille);
  margin:0 0 10px;
}
.wrap{max-width:1060px;margin:0 auto;padding:0 22px}
section{padding:64px 0}
@media(min-width:900px){section{padding:88px 0}}

/* Apparition douce au défilement (désactivée si l'utilisateur
   préfère réduire les animations) */
.reveal{opacity:0;transform:translateY(20px);transition:opacity .6s ease,transform .6s ease}
.reveal.vu{opacity:1;transform:none}
@media(prefers-reduced-motion:reduce){
  .reveal{opacity:1;transform:none;transition:none}
  .hero .spore{animation:none}
  *{scroll-behavior:auto}
}

/* ---------- En-tête ---------- */
.site-header{
  background:var(--bouteille);
  position:sticky;top:0;z-index:50;
}
.header-in{
  max-width:1060px;margin:0 auto;padding:14px 22px;
  display:flex;align-items:center;justify-content:space-between;gap:16px;
}
.brand{display:flex;align-items:center;gap:10px;text-decoration:none}
.brand svg{width:34px;height:34px;flex:none}
.brand-name{
  font-family:'Newsreader',serif;font-weight:500;font-size:1.35rem;color:var(--lin);
}
/* Sélecteur de langue FR/EN (injecté par site.js) */
.lang-switch{
  font:600 .75rem 'Sora',sans-serif;letter-spacing:.06em;
  color:var(--lin);text-decoration:none;
  border:1px solid rgba(243,237,230,.35);border-radius:999px;padding:6px 12px;
}
.lang-switch:hover{border-color:var(--argile);color:var(--argile)}
@media(max-width:899px){.lang-switch{margin-left:auto;margin-right:12px}}
@media(min-width:900px){.lang-switch{position:absolute;top:20px;right:22px}}

.nav-toggle{
  background:none;border:0;padding:8px;cursor:pointer;display:block;
}
.nav-toggle span{
  display:block;width:22px;height:2px;background:var(--lin);margin:5px 0;transition:.2s;
}
.site-nav{
  display:none;
  position:absolute;left:0;right:0;top:100%;
  background:var(--bouteille);
  padding:10px 22px 24px;
  flex-direction:column;gap:4px;
  border-top:1px solid rgba(243,237,230,.12);
}
.site-nav.open{display:flex}
.site-nav a{
  color:var(--lin);text-decoration:none;font-weight:500;font-size:1rem;
  padding:10px 0;border-bottom:1px solid rgba(243,237,230,.08);
}
.site-nav a[aria-current="page"]{color:var(--argile)}
.site-nav a.nav-cta{
  margin-top:12px;background:var(--rouille);color:var(--lin);
  text-align:center;padding:12px 22px;border-radius:999px;border:0;font-weight:600;
  transition:transform .2s ease,filter .2s ease;
}
.site-nav a.nav-cta:hover{filter:brightness(1.08);transform:translateY(-1px)}
@media(min-width:900px){
  /* Ordinateur : logo seul, plus grand, centré — navigation en dessous */
  .header-in{flex-direction:column;gap:12px;padding:20px 22px 14px}
  .brand svg{width:48px;height:48px}
  .brand-name{font-size:1.8rem}
  .nav-toggle{display:none}
  .site-nav{
    display:flex;position:static;flex-direction:row;align-items:center;
    justify-content:center;flex-wrap:wrap;gap:22px;
    background:none;padding:0;border:0;
  }
  .site-nav a{border:0;padding:6px 0;font-size:.92rem}
  .site-nav a.nav-cta{margin:0;padding:10px 16px}
}

/* ---------- Boutons ---------- */
.btn{
  display:inline-block;background:var(--rouille);color:var(--lin);
  font:600 1rem 'Sora',sans-serif;text-decoration:none;
  padding:15px 30px;border-radius:999px;border:0;cursor:pointer;
  transition:transform .2s ease,filter .2s ease,box-shadow .2s ease;
}
.btn:hover{filter:brightness(1.08);transform:translateY(-2px);box-shadow:0 10px 24px rgba(168,86,58,.35)}
.btn-ghost{
  display:inline-block;color:var(--bouteille);font-weight:600;text-decoration:none;
  padding:14px 4px;border-bottom:2px solid var(--argile);
}

/* ---------- Héros (accueil) ---------- */
.hero{
  background:var(--bouteille);color:var(--lin);padding:88px 0 96px;
  position:relative;overflow:hidden;
  min-height:88svh;display:flex;align-items:center;text-align:center;
}
.hero .wrap{position:relative;z-index:1;width:100%}
.hero.hero-photo{background-size:cover;background-position:center}
.credit-photo{
  position:absolute;right:16px;bottom:12px;z-index:1;
  font:500 .68rem 'Sora',sans-serif;letter-spacing:.04em;
  color:rgba(243,237,230,.55);
}
.hero .kicker{color:var(--argile)}
.hero h1{color:var(--lin);max-width:18em;margin-inline:auto}
.hero-mark{width:92px;height:92px;display:block;margin:0 auto 26px}
/* Entrée en scène : le héros se lève, élément par élément */
@keyframes lever{from{opacity:0;transform:translateY(26px)}to{opacity:1;transform:none}}
.hero .hero-mark{animation:lever .7s ease both}
.hero .kicker{animation:lever .7s ease .12s both}
.hero h1{animation:lever .7s ease .24s both}
.hero p.lede{animation:lever .7s ease .38s both}
.hero .hero-actions{animation:lever .7s ease .52s both}
.hero .hero-quote{animation:lever .7s ease .68s both}
@media(prefers-reduced-motion:reduce){
  .hero .hero-mark,.hero .kicker,.hero h1,.hero p.lede,.hero .hero-actions,.hero .hero-quote{animation:none}
}
/* Spores : particules organiques flottantes du héros (injectées par site.js) */
.hero .spore{
  position:absolute;border-radius:50%;pointer-events:none;z-index:0;
  animation:flotter 9s ease-in-out infinite alternate;
}
@keyframes flotter{
  from{transform:translate(0,0) scale(1)}
  to{transform:translate(14px,-26px) scale(1.15)}
}
.hero p.lede{font-size:1.05rem;color:rgba(243,237,230,.85);max-width:34em;margin-inline:auto}
.hero-actions{display:flex;flex-wrap:wrap;gap:16px;align-items:center;justify-content:center;margin-top:30px}
.hero .btn-ghost{color:var(--lin);border-color:var(--or)}
.hero-quote{
  margin:52px auto 0;padding:22px 26px;border-left:3px solid var(--or);
  background:rgba(243,237,230,.06);border-radius:0 14px 14px 0;max-width:36em;
  text-align:left;display:flex;gap:18px;align-items:center;
}
.hero-quote>img{width:86px;height:108px;border-radius:14px;object-fit:cover;object-position:center top;flex:none;background:var(--sable)}
.hero-quote p{font-family:'Newsreader',serif;font-style:italic;font-size:1.15rem;margin:0;color:var(--lin)}
.hero-quote cite{display:block;font:500 .8rem 'Sora',sans-serif;font-style:normal;color:var(--argile);margin-top:10px}
@media(min-width:900px){
  .hero p.lede{font-size:1.15rem}
  .hero-mark{width:104px;height:104px}
}

/* ---------- Cartes & grilles ---------- */
.grid{display:grid;gap:22px}
@media(min-width:760px){
  .grid-2{grid-template-columns:1fr 1fr}
  .grid-3{grid-template-columns:1fr 1fr 1fr}
  .grid-4{grid-template-columns:1fr 1fr 1fr 1fr}
}
.card{
  background:#fff;border-radius:22px;padding:30px;
  border:1px solid rgba(22,53,39,.05);
  transition:transform .25s ease,box-shadow .25s ease;
}
.card:hover{transform:translateY(-4px);box-shadow:0 16px 38px rgba(22,53,39,.10)}
.card h3{margin-top:0}
.card .tagline{font:600 .78rem/1.5 'Sora',sans-serif;letter-spacing:.08em;text-transform:uppercase;color:var(--rouille)}

/* ---------- Section sombre ---------- */
.section-sombre{background:var(--bouteille);color:rgba(243,237,230,.88)}
.section-sombre h2,.section-sombre h3{color:var(--lin)}
.section-sombre .kicker{color:var(--argile)}
.section-sombre .card{background:rgba(243,237,230,.07);color:rgba(243,237,230,.88)}
.section-sombre .card h3{color:var(--lin)}

/* ---------- Méthode : les 4 temps ---------- */
.temps{counter-reset:t}
.temps .card{position:relative;padding-top:34px}
.temps .card::before{
  counter-increment:t;content:counter(t,decimal-leading-zero);
  position:absolute;top:18px;right:22px;
  font-family:'Newsreader',serif;font-size:1.5rem;color:var(--argile);
}

/* ---------- Témoignages ---------- */
.temoignage{
  background:#fff;border-radius:22px;padding:30px;
  display:flex;flex-direction:column;gap:16px;
  border:1px solid rgba(22,53,39,.05);
  transition:transform .25s ease,box-shadow .25s ease;
}
.temoignage:hover{transform:translateY(-4px);box-shadow:0 16px 38px rgba(22,53,39,.10)}
.temoignage blockquote{margin:0;font-family:'Newsreader',serif;font-style:italic;font-size:1.08rem;color:var(--bouteille)}
/* Place aux gens : grand portrait en tête de témoignage */
.temoignage .photo-haute{
  width:100%;aspect-ratio:4/5;object-fit:cover;object-position:center top;
  border-radius:16px;background:var(--sable);
}
.temoignage .qui{display:flex;align-items:center;gap:14px}
.temoignage .qui img{width:64px;height:64px;border-radius:50%;object-fit:cover;background:var(--sable)}
.temoignage .qui strong{display:block;color:var(--bouteille);font-size:.95rem}
.temoignage .qui span{font-size:.82rem;color:var(--encre-douce)}
.temoignage-collectif{border-left:3px solid var(--argile)}

/* ---------- Offres ---------- */
.offre dl{margin:14px 0 0}
.offre dt{font:600 .72rem/1.4 'Sora',sans-serif;letter-spacing:.1em;text-transform:uppercase;color:var(--rouille);margin-top:14px}
.offre dd{margin:2px 0 0;font-size:.95rem}
.offre ul{margin:4px 0 0;padding-left:18px;font-size:.95rem}

/* ---------- Articles / Regards ---------- */
.article-liste{list-style:none;margin:0;padding:0;display:grid;gap:14px}
.article-liste li{background:#fff;border-radius:12px}
.article-liste a{
  display:grid;grid-template-columns:54px 1fr;column-gap:18px;align-items:center;
  padding:18px 24px;text-decoration:none;color:var(--bouteille);
}
/* Estampe : vignette organique aux couleurs de la charte, générée
   automatiquement — aucune image à fournir, la couleur tourne d'elle-même */
.article-liste a::before{
  content:"";grid-row:1/3;width:54px;height:54px;border-radius:50%;
  background-color:var(--bouteille);
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cpath d='M40,150 C60,120 90,110 130,120 C110,135 85,145 40,150 Z' fill='%23F3EDE6'/%3E%3Cpath d='M70,110 C90,85 118,78 150,88 C132,100 110,108 70,110 Z' fill='%23F3EDE6' opacity='.55'/%3E%3Ccircle cx='168' cy='48' r='6' fill='%23F3EDE6' opacity='.7'/%3E%3C/svg%3E");
  background-size:72%;background-repeat:no-repeat;background-position:center;
}
.article-liste li:nth-child(4n+2) a::before{background-color:var(--rouille)}
.article-liste li:nth-child(4n+3) a::before{background-color:var(--sauge)}
.article-liste li:nth-child(4n) a::before{background-color:var(--or)}
.article-liste .titre,.article-liste .meta{grid-column:2}
.article-liste a:hover{background:rgba(217,167,150,.12);border-radius:12px}
.article-liste .titre{font-family:'Newsreader',serif;font-style:italic;font-size:1.15rem;display:block}
.article-liste .meta{font-size:.8rem;color:var(--encre-douce);margin-top:4px;display:block}
.badge-externe{font-size:.72rem;color:var(--rouille);font-weight:600}

.article-corps{max-width:680px;margin:0 auto}
.article-corps p{margin:0 0 1.2em}
.article-corps .refs{font-size:.9rem;color:var(--encre-douce);padding-left:18px}
.article-corps .refs li{margin-bottom:.5em}
.article-corps .refs a{word-break:break-all}
.article-corps figure{margin:2.2em 0}
.article-corps figure img{width:100%;border-radius:16px}
.article-corps figcaption{font-size:.75rem;color:var(--encre-douce);margin-top:8px;text-align:right}
.bande-photo{margin:0;position:relative}
.bande-photo img{width:100%;max-height:520px;object-fit:cover;display:block}
.bande-photo figcaption{
  position:absolute;right:16px;bottom:12px;
  font:500 .68rem 'Sora',sans-serif;color:rgba(243,237,230,.75);
  text-shadow:0 1px 6px rgba(0,0,0,.5);
}
.article-corps h2{font-size:1.35rem;margin-top:1.8em}
.estampe{
  width:76px;height:76px;border-radius:50%;background:var(--bouteille);
  display:flex;align-items:center;justify-content:center;margin:0 0 20px;
}
.estampe svg{width:46px;height:46px}
.article-corps blockquote{
  margin:1.5em 0;padding:14px 20px;border-left:3px solid var(--argile);
  font-family:'Newsreader',serif;font-style:italic;color:var(--bouteille);
}
.article-meta{font-size:.85rem;color:var(--encre-douce);margin-bottom:2em}

/* ---------- Bloc contact (sur chaque page) ---------- */
.contact{background:var(--bouteille);color:rgba(243,237,230,.88)}
.contact h2{color:var(--lin)}
.contact .kicker{color:var(--argile)}
.contact-actions{display:flex;flex-wrap:wrap;gap:14px;margin:22px 0 34px}
.contact-actions a{
  display:inline-block;text-decoration:none;font-weight:600;
  padding:13px 22px;border-radius:10px;
}
.contact-actions .tel{background:var(--rouille);color:var(--lin)}
.contact-actions .mail{border:1.5px solid var(--argile);color:var(--lin)}
form.contact-form{display:grid;gap:14px;max-width:480px}
form.contact-form label{font:600 .8rem 'Sora',sans-serif;color:var(--argile)}
form.contact-form input,form.contact-form textarea{
  width:100%;padding:12px 14px;border-radius:10px;border:1px solid rgba(243,237,230,.25);
  background:rgba(243,237,230,.08);color:var(--lin);font:400 1rem 'Sora',sans-serif;
}
form.contact-form input::placeholder,form.contact-form textarea::placeholder{color:rgba(243,237,230,.4)}
form.contact-form button{justify-self:start}
.hidden{display:none}

/* ---------- Pied de page ---------- */
.site-footer{
  background:var(--bouteille);border-top:1px solid rgba(243,237,230,.12);
  padding:30px 0 40px;color:rgba(243,237,230,.6);font-size:.85rem;
}
.footer-in{
  max-width:1060px;margin:0 auto;padding:0 22px;
  display:flex;flex-wrap:wrap;gap:18px;align-items:center;justify-content:space-between;
}
.footer-in .sig{font:600 .68rem/1.6 'Sora',sans-serif;letter-spacing:.12em;text-transform:uppercase;color:var(--argile)}
.footer-in a{color:rgba(243,237,230,.8)}

/* ---------- Divers ---------- */
.portrait{border-radius:14px;filter:grayscale(1)}
.note-fournir{
  background:rgba(198,138,61,.15);border:1px dashed var(--or);
  border-radius:10px;padding:10px 16px;font-size:.85rem;color:var(--encre);
}
