/*
Theme Name: GRADEP
Theme URI: https://gradep.sn
Author: GRADEP
Description: Thème sur mesure pour le site du GRADEP (Grand Rassemblement des Énergies Positives), converti depuis le site statique HTML/CSS d'origine.
Version: 1.0
Text Domain: gradep
*/

/* ==========================================================================
   GRADEP — Grand Rassemblement des Énergies Positives
   Design tokens: charte graphique GRADEP (bleu #2e4899 / orange #f07f2b)
   Signature: constellation de points (motif du logotype) + coupe diagonale
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Big+Shoulders+Display:wght@600;700;800;900&family=Work+Sans:wght@400;500;600;700&display=swap');

:root{
  /* couleurs institutionnelles (charte graphique) */
  --blue:        #2e4899;
  --blue-deep:   #182451;
  --blue-mid:    #223a7d;
  --orange:      #f07f2b;
  --orange-deep: #cf5f14;

  /* tricolore Sénégal (utilisé en accent fin, comme dans la charte) */
  --sn-green: #00853f;
  --sn-yellow:#ffd100;
  --sn-red:   #e31b23;

  /* neutres */
  --paper:    #f4f5f7;
  --paper-2:  #ffffff;
  --ink:      #14171f;
  --ink-soft: #4a4f5c;
  --line:     #dcdfe6;

  /* typo */
  --f-display: 'Big Shoulders Display', sans-serif;
  --f-body: 'Work Sans', sans-serif;

  --container: 1180px;
  --radius: 4px;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family:var(--f-body);
  color:var(--ink);
  background:var(--paper);
  -webkit-font-smoothing:antialiased;
  line-height:1.55;
}
img{ max-width:100%; display:block; }
a{ color:inherit; }
h1,h2,h3,h4{
  font-family:var(--f-display);
  text-transform:uppercase;
  letter-spacing:0.01em;
  line-height:1.02;
  margin:0 0 .5em;
  font-weight:800;
}
p{ margin:0 0 1em; }
.container{
  max-width:var(--container);
  margin:0 auto;
  padding:0 24px;
}
:focus-visible{
  outline:3px solid var(--orange);
  outline-offset:2px;
}
@media (prefers-reduced-motion: reduce){
  *{ animation-duration:0.01ms !important; animation-iteration-count:1 !important; transition-duration:0.01ms !important; scroll-behavior:auto !important; }
}

/* ---------- tricolore bar ---------- */
.tricolor{
  height:4px;
  display:flex;
  width:100%;
}
.tricolor span{ flex:1; }
.tricolor .g{ background:var(--sn-green); }
.tricolor .y{ background:var(--sn-yellow); }
.tricolor .r{ background:var(--sn-red); }

/* ---------- eyebrow / kicker ---------- */
.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:.5em;
  font-family:var(--f-display);
  font-weight:700;
  font-size:.8rem;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--orange);
}
.eyebrow::before{
  content:'';
  width:22px; height:2px;
  background:var(--orange);
  display:inline-block;
}

/* ---------- buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  gap:.5em;
  font-family:var(--f-display);
  font-weight:700;
  font-size:1rem;
  letter-spacing:.03em;
  text-transform:uppercase;
  text-decoration:none;
  padding:.85em 1.6em;
  border-radius:var(--radius);
  border:2px solid transparent;
  cursor:pointer;
  transition:transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover{ transform:translateY(-2px); }
.btn-primary{ background:var(--orange); color:#fff; }
.btn-primary:hover{ background:var(--orange-deep); }
.btn-outline{ border-color:currentColor; color:inherit; background:transparent; }
.btn-outline:hover{ background:rgba(255,255,255,.1); }
.btn-outline.on-light{ color:var(--blue); border-color:var(--blue); }
.btn-outline.on-light:hover{ background:var(--blue); color:#fff; }
.btn-sm{ padding:.6em 1.1em; font-size:.85rem; }

/* ---------- header ---------- */
.site-header{
  position:sticky; top:0; z-index:100;
  background:rgba(244,245,247,.92);
  backdrop-filter:saturate(160%) blur(8px);
  border-bottom:1px solid var(--line);
}
.site-header .container{
  display:flex; align-items:center; justify-content:space-between;
  height:76px;
}
.brand{ display:flex; align-items:center; gap:12px; text-decoration:none; }
.brand img{ height:42px; width:auto; }
.brand-name{ display:flex; flex-direction:column; line-height:1.05; }
.brand-name b{ font-family:var(--f-display); font-weight:900; font-size:1.15rem; color:var(--blue); letter-spacing:.02em; }
.brand-name small{ font-size:.58rem; letter-spacing:.06em; color:var(--ink-soft); text-transform:uppercase; }

.nav{ display:flex; align-items:center; gap:6px; }
.nav a{
  font-family:var(--f-display);
  font-weight:700;
  font-size:.92rem;
  letter-spacing:.03em;
  text-transform:uppercase;
  text-decoration:none;
  color:var(--ink);
  padding:10px 14px;
  border-radius:var(--radius);
  position:relative;
}
.nav a:hover, .nav a.active{ color:var(--blue); }
.nav a.active::after{
  content:'';
  position:absolute; left:14px; right:14px; bottom:5px;
  height:3px; background:var(--orange);
}
.nav .btn{ margin-left:8px; }

.nav-toggle{
  display:none;
  background:none; border:0; cursor:pointer;
  width:44px; height:44px;
  flex-direction:column; align-items:center; justify-content:center; gap:5px;
}
.nav-toggle span{ width:24px; height:3px; background:var(--blue); border-radius:2px; }

@media (max-width:960px){
  .nav-toggle{ display:flex; }
  .nav{
    position:fixed; inset:76px 0 0 0;
    background:var(--paper-2);
    flex-direction:column; align-items:stretch;
    padding:18px 24px; gap:2px;
    transform:translateX(100%);
    transition:transform .25s ease;
    overflow:auto;
  }
  .nav.open{ transform:translateX(0); }
  .nav a{ padding:16px 6px; border-bottom:1px solid var(--line); font-size:1.1rem; }
  .nav .btn{ margin:14px 0 0; justify-content:center; }
}

/* ---------- hero ---------- */
.hero{
  position:relative;
  background:var(--blue-deep);
  color:#fff;
  overflow:hidden;
  clip-path:polygon(0 0,100% 0,100% 92%,0 100%);
  padding-bottom:70px;
}
.hero-inner{
  position:relative; z-index:2;
  padding:90px 0 40px;
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:40px;
  align-items:center;
}
.hero h1{
  font-size:clamp(2.6rem,5.4vw,4.6rem);
  color:#fff;
  margin-bottom:.3em;
}
.hero h1 em{
  font-style:normal;
  color:var(--orange);
}
.hero .lede{
  font-size:1.15rem;
  max-width:46ch;
  color:#dfe3ee;
  margin-bottom:1.6em;
}
.hero-cta{ display:flex; gap:14px; flex-wrap:wrap; }
#dots-canvas{
  width:100%; height:100%;
  position:absolute; inset:0;
  z-index:1; opacity:.55;
}
.hero-visual{
  position:relative; z-index:2;
  aspect-ratio:1/1;
  display:flex; align-items:center; justify-content:center;
}
.hero-visual svg{ width:100%; height:100%; max-width:420px; }

@media (max-width:860px){
  .hero-inner{ grid-template-columns:1fr; }
  .hero-visual{ display:none; }
}

/* ---------- brand showcase ---------- */
.brand-showcase{
  padding:56px 0;
  background:#fff;
  border-bottom:1px solid #ececec;
}
.brand-showcase-inner{
  display:flex;
  justify-content:center;
}
.brand-showcase-logo{
  width:100%;
  max-width:460px;
  height:auto;
}
@media (max-width:640px){
  .brand-showcase{ padding:40px 0; }
  .brand-showcase-logo{ max-width:320px; }
}

/* ---------- section basics ---------- */
section{ padding:84px 0; }
.section-head{ max-width:680px; margin-bottom:48px; }
.section-head h2{ font-size:clamp(1.9rem,3.6vw,2.8rem); color:var(--blue); }
.section-head p{ color:var(--ink-soft); font-size:1.05rem; }
.on-dark{ background:var(--blue-deep); color:#fff; }
.on-dark .section-head h2{ color:#fff; }
.on-dark .section-head p{ color:#c6cbdc; }
.on-orange{ background:var(--orange); color:#fff; }
.on-paper2{ background:var(--paper-2); }

/* ---------- axes (programme) grid ---------- */
.axes-grid{
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:2px;
  background:var(--line);
  border:1px solid var(--line);
}
.axis-card{
  background:var(--paper-2);
  padding:28px 20px;
  text-decoration:none;
  color:var(--ink);
  display:flex; flex-direction:column; gap:10px;
  min-height:220px;
  transition:background .15s ease, color .15s ease;
}
.axis-card:hover{ background:var(--blue); color:#fff; }
.axis-card:hover .axis-num{ color:var(--orange); }
.axis-num{
  font-family:var(--f-display); font-weight:900; font-size:2.2rem;
  color:var(--line);
  transition:color .15s ease;
}
.axis-card h3{ font-size:1.02rem; margin:0; line-height:1.15; }
.axis-card .tag{ font-size:.82rem; color:var(--ink-soft); margin-top:auto; }
.axis-card:hover .tag{ color:#dfe3ee; }

@media (max-width:960px){
  .axes-grid{ grid-template-columns:repeat(2,1fr); }
}
@media (max-width:560px){
  .axes-grid{ grid-template-columns:1fr; }
}

/* ---------- stats ---------- */
.stat-band{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:1px;
  background:rgba(255,255,255,.15);
  border-top:1px solid rgba(255,255,255,.15);
  border-bottom:1px solid rgba(255,255,255,.15);
}
.stat{
  background:var(--blue-deep);
  padding:34px 22px;
  text-align:left;
}
.stat b{
  display:block;
  font-family:var(--f-display); font-weight:900;
  font-size:clamp(2rem,4vw,2.9rem);
  color:var(--orange);
}
.stat span{ font-size:.85rem; color:#c6cbdc; text-transform:uppercase; letter-spacing:.04em; }
@media (max-width:760px){ .stat-band{ grid-template-columns:repeat(2,1fr); } }

/* ---------- cards (projets, org) ---------- */
.card-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:28px; }
.card-grid.cols-3{ grid-template-columns:repeat(3,1fr); }
@media (max-width:820px){ .card-grid{ grid-template-columns:1fr; } }

.proj-card{
  background:var(--paper-2);
  border:1px solid var(--line);
  border-radius:var(--radius);
  overflow:hidden;
  display:flex; flex-direction:column;
}
.proj-card .band{ height:8px; background:var(--orange); }
.proj-card.blue .band{ background:var(--blue); }
.proj-card-body{ padding:32px; flex:1; display:flex; flex-direction:column; }
.proj-card h3{ color:var(--blue); font-size:1.5rem; }
.proj-card .lede{ color:var(--ink-soft); margin-bottom:1.2em; }
.proj-card ul{ list-style:none; margin:0 0 1.4em; padding:0; display:grid; gap:8px; }
.proj-card ul li{ padding-left:20px; position:relative; font-size:.95rem; }
.proj-card ul li::before{
  content:''; position:absolute; left:0; top:.55em;
  width:7px; height:7px; border-radius:50%;
  background:var(--orange);
}
.proj-card.blue ul li::before{ background:var(--blue); }
.proj-card-foot{ margin-top:auto; display:flex; gap:12px; flex-wrap:wrap; }

/* ---------- footer ---------- */
.site-footer{ background:var(--blue-deep); color:#c6cbdc; padding:60px 0 24px; }
.foot-grid{
  display:grid;
  grid-template-columns:1.3fr 1fr 1fr 1fr;
  gap:32px;
  padding-bottom:40px;
  border-bottom:1px solid rgba(255,255,255,.14);
}
.foot-grid h4{ color:#fff; font-size:.95rem; margin-bottom:1em; }
.foot-grid a{ display:block; text-decoration:none; color:#c6cbdc; font-size:.92rem; padding:5px 0; }
.foot-grid a:hover{ color:var(--orange); }
.foot-brand img{ height:52px; margin-bottom:14px; }
.foot-brand p{ font-size:.88rem; max-width:32ch; color:#a6acc2; }
.foot-bottom{
  padding-top:22px;
  display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px;
  font-size:.82rem; color:#8890a8;
}
@media (max-width:760px){ .foot-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:480px){ .foot-grid{ grid-template-columns:1fr; } }

/* ---------- page header (interior pages) ---------- */
.page-hero{
  background:var(--blue-deep); color:#fff;
  padding:64px 0 56px;
  position:relative; overflow:hidden;
}
.page-hero .container{ position:relative; z-index:2; }
.page-hero h1{ color:#fff; font-size:clamp(2.2rem,4.6vw,3.4rem); }
.page-hero p{ color:#c6cbdc; max-width:60ch; font-size:1.05rem; }
.breadcrumb{ font-size:.8rem; letter-spacing:.05em; text-transform:uppercase; color:#8890a8; margin-bottom:1.2em; }
.breadcrumb a{ color:#c6cbdc; text-decoration:none; }

/* ---------- programme detail (axe blocks) ---------- */
.axe-block{ padding:64px 0; border-bottom:1px solid var(--line); }
.axe-block:nth-child(even){ background:var(--paper-2); }
.axe-head{ display:grid; grid-template-columns:110px 1fr; gap:28px; margin-bottom:36px; align-items:start; }
.axe-head .num{ font-family:var(--f-display); font-weight:900; font-size:4rem; color:var(--orange); line-height:1; }
.axe-head h2{ color:var(--blue); font-size:clamp(1.6rem,3vw,2.2rem); margin-bottom:.2em; }
.axe-head .baseline{ color:var(--ink-soft); font-style:normal; font-size:1.05rem; }
@media (max-width:640px){ .axe-head{ grid-template-columns:1fr; } .axe-head .num{ font-size:2.6rem; } }

.mesure-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:20px; }
@media (max-width:760px){ .mesure-grid{ grid-template-columns:1fr; } }
.mesure{
  border:1px solid var(--line); background:var(--paper);
  padding:22px 24px; border-radius:var(--radius);
}
.axe-block:nth-child(even) .mesure{ background:var(--paper); }
.mesure h4{ font-family:var(--f-body); font-weight:700; text-transform:none; letter-spacing:0; font-size:1.05rem; color:var(--blue); margin-bottom:.3em; }
.mesure .desc{ font-size:.88rem; color:var(--ink-soft); font-style:italic; margin-bottom:.7em; }
.mesure ul{ margin:0; padding-left:18px; font-size:.92rem; }
.mesure li{ margin-bottom:.4em; }

.axe-objectifs{
  margin-top:36px;
  display:grid; grid-template-columns:repeat(5,1fr); gap:1px;
  background:var(--line); border:1px solid var(--line);
}
.axe-objectifs div{ background:var(--blue); color:#fff; padding:18px 14px; text-align:center; }
.axe-objectifs b{ display:block; font-family:var(--f-display); font-weight:900; font-size:1.5rem; color:var(--orange); }
.axe-objectifs span{ font-size:.74rem; text-transform:uppercase; letter-spacing:.03em; }
@media (max-width:760px){ .axe-objectifs{ grid-template-columns:repeat(2,1fr); } }

/* ---------- organisation ---------- */
.org-tree{ display:grid; gap:20px; }
.org-level{ display:grid; gap:16px; }
.org-level.cols-1{ grid-template-columns:1fr; max-width:480px; margin:0 auto; }
.org-level.cols-3{ grid-template-columns:repeat(3,1fr); }
.org-level.cols-4{ grid-template-columns:repeat(4,1fr); }
@media (max-width:760px){ .org-level.cols-3,.org-level.cols-4{ grid-template-columns:1fr; } }
.org-box{
  background:var(--paper-2); border:1px solid var(--line); border-top:4px solid var(--orange);
  padding:20px 22px; border-radius:var(--radius);
}
.org-box.chief{ border-top-color:var(--blue); text-align:center; }
.org-box h4{ font-family:var(--f-display); text-transform:uppercase; color:var(--blue); font-size:1rem; margin-bottom:.35em; }
.org-box p{ font-size:.88rem; color:var(--ink-soft); margin:0; }

.value-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:20px; }
@media (max-width:820px){ .value-grid{ grid-template-columns:repeat(2,1fr); } }
.value-item{ text-align:left; }
.value-item .letter{ font-family:var(--f-display); font-weight:900; font-size:2.4rem; color:var(--orange); }
.value-item h4{ font-family:var(--f-body); text-transform:none; letter-spacing:0; font-size:1.05rem; color:var(--blue); margin:.2em 0; }
.value-item p{ font-size:.9rem; color:var(--ink-soft); }

/* ---------- projets page detail ---------- */
.module-list{ display:grid; gap:14px; margin-top:20px; }
.module-row{
  display:grid; grid-template-columns:170px 1fr auto; gap:18px; align-items:center;
  padding:16px 18px; background:var(--paper-2); border:1px solid var(--line); border-radius:var(--radius);
}
.module-row .name{ font-weight:600; }
.module-row .desc{ color:var(--ink-soft); font-size:.9rem; }
.chip{
  font-size:.72rem; text-transform:uppercase; letter-spacing:.04em; font-weight:700;
  padding:5px 10px; border-radius:20px; text-align:center; white-space:nowrap;
}
.chip.critique{ background:#fde3e3; color:#b3261e; }
.chip.mvp{ background:#e3ecff; color:var(--blue); }
@media (max-width:640px){ .module-row{ grid-template-columns:1fr; } }

.dept-strip{
  display:flex; flex-wrap:wrap; gap:8px; margin-top:24px;
}
.dept-strip span{
  font-size:.78rem; padding:6px 12px; border-radius:20px;
  background:var(--paper-2); border:1px solid var(--line); color:var(--ink-soft);
}

/* ---------- forms page ---------- */
.form-tabs{ display:flex; gap:2px; margin-bottom:36px; flex-wrap:wrap; background:var(--line); border:1px solid var(--line); }
.form-tab{
  flex:1; min-width:180px;
  background:var(--paper-2); border:0; padding:18px 16px; cursor:pointer;
  font-family:var(--f-display); font-weight:700; text-transform:uppercase; letter-spacing:.02em;
  font-size:.92rem; color:var(--ink-soft);
}
.form-tab.active{ background:var(--blue); color:#fff; }
.form-panel{ display:none; }
.form-panel.active{ display:block; }

.form-wrap{ display:grid; grid-template-columns:1fr 1fr; gap:48px; align-items:start; }
@media (max-width:860px){ .form-wrap{ grid-template-columns:1fr; } }
.form-side h3{ color:var(--blue); font-size:1.4rem; }
.form-side p{ color:var(--ink-soft); }
.form-side ul{ padding-left:18px; color:var(--ink-soft); font-size:.94rem; }
.form-side li{ margin-bottom:.5em; }

.field{ margin-bottom:18px; }
.field label{ display:block; font-size:.85rem; font-weight:600; margin-bottom:6px; }
.field .hint{ font-size:.78rem; color:var(--ink-soft); margin-top:4px; }
.field input, .field select, .field textarea{
  width:100%; padding:12px 14px; font-family:var(--f-body); font-size:.95rem;
  border:1px solid var(--line); border-radius:var(--radius); background:#fff; color:var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus{ border-color:var(--blue); }
.field.error input, .field.error select, .field.error textarea{ border-color:var(--sn-red); }
.field .err-msg{ display:none; color:var(--sn-red); font-size:.78rem; margin-top:4px; }
.field.error .err-msg{ display:block; }
.grid-2{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }
@media (max-width:520px){ .grid-2{ grid-template-columns:1fr; } }
.radio-group{ display:flex; gap:18px; flex-wrap:wrap; }
.radio-opt{ display:flex; align-items:center; gap:8px; font-size:.92rem; }
.radio-opt input{ width:auto; }

.form-success{
  display:none;
  background:#e8f5ee; border:1px solid var(--sn-green);
  padding:20px 22px; border-radius:var(--radius); margin-bottom:20px;
}
.form-success.show{ display:block; }
.form-success b{ color:#1b6b3f; }

/* ---------- misc ---------- */
.divider-quote{
  border-left:4px solid var(--orange);
  padding:6px 0 6px 22px;
  font-size:1.2rem;
  font-style:italic;
  color:var(--blue);
  max-width:60ch;
}
.cta-band{
  background:var(--orange); color:#fff; text-align:center; padding:64px 24px;
}
.cta-band h2{ color:#fff; }
.cta-band .btn-outline{ border-color:#fff; color:#fff; }
.cta-band .btn-outline:hover{ background:#fff; color:var(--orange); }

/* ---------- livre / book section ---------- */
.book-section .container{
  display:grid;
  grid-template-columns:300px 1fr;
  gap:56px;
  align-items:center;
}
@media (max-width:760px){
  .book-section .container{ grid-template-columns:1fr; }
}
.book-cover{
  position:relative;
}
.book-cover img{
  width:100%;
  border-radius:2px;
  box-shadow:0 24px 50px rgba(20,23,31,.35), 0 4px 10px rgba(20,23,31,.2);
}
.book-copy .eyebrow{ margin-bottom:.6em; }
.book-copy h2{ color:var(--blue); font-size:clamp(1.8rem,3.4vw,2.5rem); }
.book-copy .lede{ font-size:1.08rem; color:var(--ink-soft); max-width:56ch; }
.book-meta{
  display:flex; gap:28px; flex-wrap:wrap;
  margin:22px 0 28px;
  padding:18px 0;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}
.book-meta div{ font-size:.82rem; color:var(--ink-soft); }
.book-meta b{ display:block; font-family:var(--f-display); color:var(--blue); font-size:1rem; }

/* ---------- modale d'achat ---------- */
dialog.modal{
  border:0; border-radius:4px; padding:0;
  width:min(560px, 92vw);
  max-height:88vh;
  box-shadow:0 30px 70px rgba(20,23,31,.4);
}
dialog.modal::backdrop{ background:rgba(20,23,31,.6); }
.modal-head{
  display:flex; align-items:flex-start; justify-content:space-between; gap:16px;
  padding:26px 28px 0;
}
.modal-head h3{ color:var(--blue); font-size:1.3rem; margin-bottom:.2em; }
.modal-head p{ color:var(--ink-soft); font-size:.9rem; margin:0; }
.modal-close{
  background:none; border:0; cursor:pointer;
  font-size:1.4rem; line-height:1; color:var(--ink-soft);
  padding:4px 8px;
}
.modal-close:hover{ color:var(--orange); }
.modal-body{ padding:20px 28px 28px; overflow-y:auto; }
