/* AESVT Mohammedia — shared brand theme (matches the printed fiches) */
:root{
  --forest:#14301F;
  --leaf:#2E6B45;
  --moss:#4C8362;
  --sage:#8FAF9A;
  --mist:#E9F1EB;
  --paper:#F8FBF8;
  --page-bg:#DDE7DF;
  --amber:#D97706;
  --amber-bg:#FFF9F5;
  --card-shadow:0 10px 30px rgba(10,30,18,.12);
}
/* Site always renders on the light paper theme, regardless of system dark mode */

*{ box-sizing:border-box; }
body{
  margin:0;
  background:var(--page-bg);
  color:var(--forest);
  font-family:"Avenir Next","Segoe UI",system-ui,sans-serif;
  line-height:1.55;
}

a{ color:var(--leaf); }
img{ max-width:100%; }

/* ---------- header / nav ---------- */
.site-header{
  background:var(--paper); color:var(--forest); border-bottom:1px solid #DDE7DF;
  padding:.9rem 1.5rem;
  position:sticky; top:0; z-index:10;
  box-shadow:0 2px 12px rgba(0,0,0,.15);
  display:flex; align-items:center; justify-content:center;
  gap:1rem; flex-wrap:wrap;
}
.site-header .brand{ display:flex; align-items:center; gap:.7rem; text-decoration:none; color:var(--forest); }
.site-header .brand img{ height:34px; width:auto; display:block; position:absolute; left:1.5rem; top:50%; transform:translateY(-50%); }
.site-header .brand b{ font-family:Georgia,serif; letter-spacing:.5px; font-size:1.05rem; }
.site-header nav{ display:flex; gap:1.5rem; flex-wrap:wrap; position:absolute; right:1.5rem; }
@media (max-width:640px){
  .site-header{ padding:.65rem 1rem; gap:.4rem; }
  .site-header nav{ position:static; gap:1rem; }
  .site-header nav a{ font-size:.72rem; }
  .site-header .brand{ position:static; }
  .site-header .brand img{ position:static; transform:none; height:26px; }
  .site-header .brand b{ font-size:.92rem; }
}
.site-header nav a{
  color:var(--forest);
  text-decoration:none; font-size:.8rem;
  letter-spacing:1.5px; text-transform:uppercase; opacity:.75;
  padding:.3rem 0; border-bottom:2px solid transparent;
}
.site-header nav a:hover{ opacity:1; }
.site-header nav a.active{ opacity:1; border-bottom-color:var(--sage); }

/* ---------- layout ---------- */
.container{ max-width:960px; margin:0 auto; padding:2.5rem 1.25rem 4rem; }
.container.wide{ max-width:1120px; }

.eyebrow{
  font-size:.75rem; letter-spacing:2.5px; text-transform:uppercase;
  color:var(--moss); font-weight:600; margin:0 0 .4rem;
}

/* ---------- hero (home page) ---------- */
.hero{
  background:linear-gradient(160deg,var(--forest),var(--leaf));
  color:var(--mist);
  padding:4.5rem 1.5rem 5rem;
  text-align:center;
}
.hero .eyebrow{ color:var(--sage); }
.hero h1{
  font-family:Georgia,"Times New Roman",serif; font-size:clamp(2.1rem,5vw,3.2rem);
  margin:.4rem 0; color:#fff;
}
.hero p{ max-width:38rem; margin:.8rem auto 0; color:var(--mist); opacity:.9; }
.hero .cta-row{ margin-top:2rem; display:flex; gap:1rem; justify-content:center; flex-wrap:wrap; }

/* ---------- buttons ---------- */
.btn{
  display:inline-block; text-decoration:none; font-size:.85rem;
  letter-spacing:1px; text-transform:uppercase; padding:.75rem 1.6rem;
  border-radius:2mm; font-weight:600;
}
.btn-primary{ background:var(--amber); color:#fff; }
.btn-primary:hover{ background:#C4690A; }
.btn-outline{ border:.4mm solid var(--mist); color:var(--mist); }
.btn-outline:hover{ background:rgba(255,255,255,.1); }
.btn-outline-dark{ border:.4mm solid var(--leaf); color:var(--leaf); }
.btn-outline-dark:hover{ background:var(--mist); }

/* ---------- sections / cards ---------- */
section.block{ padding:3.5rem 1.25rem; }
section.block.alt{ background:var(--mist); }
.block-head{ text-align:center; max-width:40rem; margin:0 auto 2.4rem; }
.block-head h2{ font-family:Georgia,serif; font-size:2rem; margin:.3rem 0; }
.block-head p{ color:var(--moss); margin:0; }

.card-grid{
  display:grid; gap:1.4rem;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  max-width:1120px; margin:0 auto;
}
.panel{
  background:var(--paper); border-radius:3mm; padding:1.6rem;
  box-shadow:var(--card-shadow);
}
.panel h3{ font-family:Georgia,serif; margin:.2rem 0 .5rem; }
.panel p{ color:var(--forest); opacity:.85; margin:0; font-size:.92rem; }

/* ---------- footer ---------- */
.site-footer{
  background:var(--paper); color:var(--forest); border-bottom:1px solid #DDE7DF;
  padding:3rem 1.5rem 1.5rem;
}
.site-footer .foot-grid{
  max-width:1120px; margin:0 auto; display:grid; gap:2rem;
  grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
}
.site-footer h4{
  font-size:.75rem; letter-spacing:2px; text-transform:uppercase;
  color:var(--sage); margin:0 0 .8rem;
}
.site-footer a{ text-decoration:none; opacity:.85; }
.site-footer a:hover{ opacity:1; text-decoration:underline; }
.site-footer .brand-line{ display:flex; align-items:center; gap:.6rem; margin-bottom:.8rem; }
.site-footer .brand-line img{ height:30px; }
.site-footer .brand-line b{ font-family:Georgia,serif; }
.site-footer .bottom{
  max-width:1120px; margin:2.5rem auto 0; padding-top:1.2rem;
  border-top:1px solid rgba(255,255,255,.12);
  font-size:.75rem; opacity:.65; text-align:center;
}

/* simple centered footer used on pages without the full footer grid */
.site-footer.simple{
  text-align:center; padding:2.2rem 1.25rem 2.5rem; color:var(--moss); font-size:.8rem;
  background:var(--mist); border-top:1px solid #DDE7DF; border-bottom:none;
  display:flex; flex-direction:column; align-items:center; gap:.7rem;
}
.site-footer.simple img{ height:30px; width:auto; opacity:.9; }
.site-footer.simple p{ margin:0; max-width:32rem; line-height:1.5; }

/* ---------- article in-text images ---------- */
.article-figure {
  margin: 1.5rem 0;
  text-align: center;
}
.article-figure img {
  border-radius: 3mm;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  max-height: 400px;
  width: auto;
  max-width: 100%;
}
.article-gallery {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1.5rem 0;
  justify-content: center;
}
.article-gallery img {
  border-radius: 3mm;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  max-height: 250px;
  width: auto;
  flex-grow: 1;
  object-fit: cover;
}


/* two-up figure row used inside "Description botanique" sections */
.figures{
  display:grid; grid-template-columns:1fr 1fr;
  gap:1rem; margin-top:1rem;
}
.figures figure{ margin:0; }
.figures img{
  width:100%; aspect-ratio:4/3; object-fit:cover;
  border-radius:2mm; display:block; box-shadow:0 2mm 5mm rgba(20,48,31,.18);
}
.figures figcaption{ font-size:.78rem; color:var(--moss); margin-top:.35rem; text-align:center; }
@media (max-width:480px){
  .figures{ grid-template-columns:1fr 1fr; gap:.5rem; }
  .figures figcaption{ font-size:.68rem; }
}
