/*
Theme Name: EPC Livre
Description: Habillage EPC (identite visuelle epc.sn / kaffrine.epc.sn) pour livre.epc.sn, page de vente "Mobilisons nos Energies Positives".
Template: twentytwentyfive
Author: EPC
Version: 1.0
*/

:root{
  --epc-navy:#0F2038;
  --epc-navy-2:#16304F;
  --epc-orange:#E0792F;
  --epc-orange-dim:#F0A868;
  --epc-blue:#2E6A9E;
  --epc-gold:#E7B23D;
  --epc-cream:#FBF8F3;
  --epc-ink:#16202B;
  --epc-ink-soft:#5B6672;
  --epc-line:#E6E1D6;
  --epc-white:#FFFFFF;
  --epc-radius:14px;
}

body{
  font-family:'Inter', sans-serif;
  background:var(--epc-cream);
  color:var(--epc-ink);
  -webkit-font-smoothing:antialiased;
}

h1, h2, h3, h4, .wp-block-post-title{
  font-family:'Sora', sans-serif;
}

/* ===== HEADER ===== */
.epc-livre-header{
  background:var(--epc-navy);
  color:#fff;
  padding:16px 32px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:16px;
}
.epc-livre-logo{
  display:flex;
  align-items:center;
  gap:12px;
  text-decoration:none;
  color:inherit;
}
.epc-livre-logo svg{ display:block; flex-shrink:0; }
.epc-livre-logo-text{ display:flex; flex-direction:column; line-height:1.2; }
.epc-livre-logo-text strong{
  font-family:'Sora', sans-serif;
  font-weight:800;
  font-size:16px;
  letter-spacing:0.02em;
}
.epc-livre-logo-text small{
  font-family:'IBM Plex Mono', monospace;
  font-size:10px;
  letter-spacing:0.12em;
  color:#9FB0C4;
}
.epc-livre-nav{ display:flex; gap:24px; flex-wrap:wrap; }
.epc-livre-nav a{
  color:#C9D2DB;
  text-decoration:none;
  font-size:14px;
  font-weight:500;
}
.epc-livre-nav a:hover{ color:#fff; }

/* ===== FOOTER ===== */
.epc-livre-footer{
  background:var(--epc-navy);
  color:#9FB0C4;
  text-align:center;
  padding:32px 24px;
  font-family:'Inter', sans-serif;
  font-size:13px;
}
.epc-livre-footer a{
  color:var(--epc-orange-dim);
  text-decoration:none;
}
.epc-livre-footer a:hover{ text-decoration:underline; }

/* ===== PAGE CONTENT ===== */
.wp-block-post-title{
  color:var(--epc-navy);
  text-align:center;
  max-width:700px;
  margin-left:auto;
  margin-right:auto;
}

.entry-content{
  max-width:900px;
  margin-left:auto;
  margin-right:auto;
  display:flex;
  flex-wrap:wrap;
  gap:40px;
  align-items:flex-start;
  justify-content:center;
}

.entry-content .wp-block-image{
  flex:0 0 260px;
  margin:0;
}
.entry-content .wp-block-image img{
  border-radius:var(--epc-radius);
  box-shadow:0 12px 32px rgba(15,32,56,0.18);
}

/* ===== FORMULAIRE D'ACHAT (shortcode epc_livre_achat) ===== */
.epc-livre-achat{
  flex:1 1 380px;
  max-width:440px;
  background:var(--epc-white);
  border:1px solid var(--epc-line);
  border-radius:var(--epc-radius);
  padding:32px;
  box-shadow:0 8px 24px rgba(15,32,56,0.08);
}
.epc-livre-achat h3{
  font-size:20px;
  margin:0 0 12px;
  color:var(--epc-navy);
}
.epc-livre-achat > p{
  font-family:'IBM Plex Mono', monospace;
  font-size:15px;
  color:var(--epc-ink-soft);
  margin:0 0 8px;
}
.epc-livre-achat > p strong{
  color:var(--epc-orange);
  font-size:18px;
}
.epc-livre-achat .epc-livre-instructions{
  background:var(--epc-cream);
  border-radius:10px;
  padding:16px 18px;
  margin:16px 0;
  font-size:14px;
  color:var(--epc-ink);
}
.epc-livre-achat .epc-livre-instructions ul{
  margin:8px 0;
  padding-left:20px;
}
.epc-livre-achat form{ margin-top:20px; }
.epc-livre-achat form p{ margin:0 0 16px; }
.epc-livre-achat label{
  display:block;
  font-size:13px;
  font-weight:600;
  color:var(--epc-ink);
  margin-bottom:6px;
}
.epc-livre-achat input[type="text"],
.epc-livre-achat input[type="email"],
.epc-livre-achat select{
  width:100%;
  padding:10px 12px;
  border:1px solid var(--epc-line);
  border-radius:8px;
  font-family:'Inter', sans-serif;
  font-size:14px;
  color:var(--epc-ink);
  background:var(--epc-cream);
}
.epc-livre-achat input:focus,
.epc-livre-achat select:focus{
  outline:2px solid var(--epc-blue);
  outline-offset:1px;
}
.epc-livre-achat button[type="submit"]{
  width:100%;
  background:var(--epc-orange);
  color:#191008;
  border:none;
  padding:13px 18px;
  border-radius:999px;
  font-weight:700;
  font-size:15px;
  font-family:'Inter', sans-serif;
  cursor:pointer;
}
.epc-livre-achat button[type="submit"]:hover{
  background:var(--epc-orange-dim);
}

@media (max-width: 640px){
  .entry-content{ flex-direction:column; align-items:center; }
  .epc-livre-achat{ max-width:100%; }
}
