/*
Theme Name: Astra Child - Optimtenders
Theme URI: https://blog.optimtenders.com
Description: Thème enfant Astra pour le blog Optimtenders (marchés publics algériens)
Author: Optimtenders
Template: astra
Version: 1.0.0
Text Domain: astra-child-optimtenders
*/

:root{
  --ot-teal:#17a88c;
  --ot-teal-hover:#148f77;
  --ot-navy:#1E3A5F;
  --ot-bg:#f2f4f7;
  --ot-card:#ffffff;
  --ot-text:#1a1a2e;
  --ot-text-secondary:#6b7280;
  --ot-radius:8px;

  /* Tokens alignés sur optimtenders.com (site marketing) */
  --ot-brand-navy:#0d1b2a;
  --ot-brand-green:#3dbf8c;
  --ot-brand-green-dark:#2a9b70;
  --ot-brand-green-light:#e8f7f1;
  --ot-brand-grey-mid:#6b7a8d;
  --ot-brand-border:#e0eae5;
  --ot-nav-link:#2c3e50;
}

body{
  background:var(--ot-bg);
  color:var(--ot-text);
  font-family:'Inter',-apple-system,BlinkMacSystemFont,sans-serif;
  font-weight:400;
  font-size:16px;
  line-height:1.7;
}

h1,h2,h3,h4,h5,h6{
  font-family:'Inter',sans-serif;
  font-weight:700;
  color:var(--ot-navy);
}

a{ color:var(--ot-teal); }

/* Buttons */
.ot-btn{
  display:inline-block;
  border-radius:6px;
  padding:10px 24px;
  font-weight:600;
  text-decoration:none;
  transition:all .2s ease;
  cursor:pointer;
  border:2px solid transparent;
}
.ot-btn-primary{
  background:var(--ot-teal);
  color:#fff !important;
}
.ot-btn-primary:hover{ background:var(--ot-teal-hover); }
.ot-btn-secondary{
  background:transparent;
  border:2px solid var(--ot-teal);
  color:var(--ot-teal) !important;
}
.ot-btn-secondary:hover{ background:var(--ot-teal); color:#fff !important; }

/* Header — répliqué sur la navbar du site marketing optimtenders.com */
.ot-header{
  background:hsla(0,0%,100%,.96);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  border-bottom:1px solid var(--ot-brand-border);
  position:sticky; top:0; z-index:999;
}
.ot-header-inner{
  max-width:1200px; margin:0 auto; padding:0 64px; height:68px;
  display:flex; align-items:center; justify-content:space-between;
}
.ot-logo{
  display:flex; align-items:center; gap:10px;
  text-decoration:none; letter-spacing:-.02em;
}
.ot-logo-mark{ height:32px; width:32px; object-fit:contain; }
.ot-logo-word{ font-size:19px; font-weight:900; color:var(--ot-brand-navy); }
.ot-logo-chip{
  background:var(--ot-brand-green-light); color:var(--ot-teal);
  border-radius:6px; padding:4px 10px; font-size:12px; font-weight:600;
}
.ot-nav{ display:flex; gap:28px; align-items:center; }
.ot-nav a{ color:var(--ot-nav-link); text-decoration:none; font-weight:500; font-size:16px; transition:color .2s; }
.ot-nav a:hover{ color:var(--ot-teal); }
.ot-header-cta{ margin-left:20px; }
.ot-header .ot-hamburger{ display:none; background:none !important; border:none !important; box-shadow:none !important; font-size:1.6rem; cursor:pointer; color:var(--ot-brand-navy); padding:4px; }

@media (max-width:900px){
  .ot-header-inner{ padding:0 20px; height:60px; }
  .ot-nav{
    display:none; flex-direction:column; position:absolute; top:100%; left:0; right:0;
    background:#fff; padding:16px 24px; box-shadow:0 4px 10px rgba(0,0,0,.08);
  }
  .ot-nav.is-open{ display:flex; }
  .ot-header .ot-hamburger{ display:block; }
  .ot-header-cta{ display:none; }
}

/* Hero */
.ot-hero{
  background:var(--ot-navy); color:#fff; text-align:center;
  padding:70px 24px;
}
.ot-hero h1{ color:#fff; font-size:2.4rem; margin-bottom:12px; }
.ot-hero p{ color:#cdd7e3; font-size:1.15rem; max-width:600px; margin:0 auto; }

/* Layout */
.ot-container{ max-width:1200px; margin:0 auto; padding:48px 24px; }
.ot-layout{ display:grid; grid-template-columns:2fr 1fr; gap:40px; }
@media (max-width:900px){ .ot-layout{ grid-template-columns:1fr; } }

/* Featured article */
.ot-featured{
  background:var(--ot-card); border-radius:12px; overflow:hidden;
  box-shadow:0 2px 12px rgba(0,0,0,.06);
  display:grid; grid-template-columns:60% 40%; margin-bottom:40px;
}
.ot-featured img{ width:100%; height:100%; object-fit:cover; min-height:280px; }
.ot-featured-content{ padding:32px; display:flex; flex-direction:column; justify-content:center; }
.ot-featured-content h2{ font-size:1.6rem; margin-bottom:12px; }
.ot-featured-content p{ color:var(--ot-text-secondary); }

/* Badge */
.ot-badge{
  display:inline-block; background:var(--ot-teal); color:#fff;
  border-radius:999px; padding:4px 14px; font-size:.75rem; font-weight:600;
  text-decoration:none; margin-bottom:10px;
}

/* Article grid */
.ot-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
@media (max-width:700px){ .ot-grid{ grid-template-columns:1fr; } }
.ot-card{
  background:var(--ot-card); border-radius:var(--ot-radius); overflow:hidden;
  box-shadow:0 1px 6px rgba(0,0,0,.06);
  display:flex; flex-direction:column;
}
.ot-card img{ width:100%; height:180px; object-fit:cover; border-radius:8px 8px 0 0; }
.ot-card-body{ padding:20px; display:flex; flex-direction:column; flex:1; }
.ot-card-body h3{ font-size:1.1rem; margin:0 0 10px; }
.ot-card-body p{ color:var(--ot-text-secondary); font-size:.95rem;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.ot-card-meta{ color:var(--ot-text-secondary); font-size:.82rem; margin:10px 0; }
.ot-card-link{ color:var(--ot-teal); font-weight:600; text-decoration:none; margin-top:auto; }

/* Sidebar */
.ot-sidebar-box{ background:var(--ot-card); border-radius:var(--ot-radius); padding:24px; margin-bottom:24px; box-shadow:0 1px 6px rgba(0,0,0,.06); }
.ot-sidebar-box h3{ font-size:1.05rem; margin-bottom:16px; }
.ot-mini-post{ display:flex; gap:12px; margin-bottom:14px; text-decoration:none; }
.ot-mini-post img{ width:64px; height:64px; object-fit:cover; border-radius:6px; flex-shrink:0; }
.ot-mini-post span{ color:var(--ot-text); font-size:.92rem; font-weight:600; line-height:1.4; }
.ot-pill{
  display:inline-block; background:#e7f7f3; color:var(--ot-teal); border-radius:999px;
  padding:6px 14px; font-size:.85rem; font-weight:600; text-decoration:none; margin:0 6px 8px 0;
}
.ot-pill:hover{ background:var(--ot-teal); color:#fff; }
.ot-newsletter input[type="email"]{
  width:100%; padding:10px 14px; border:1px solid #d1d5db; border-radius:6px; margin-bottom:12px;
}

/* Pagination */
.ot-pagination{ display:flex; gap:8px; justify-content:center; margin-top:40px; }
.ot-pagination a, .ot-pagination span{
  display:inline-flex; align-items:center; justify-content:center;
  width:36px; height:36px; border-radius:6px; text-decoration:none; color:var(--ot-text);
  background:#fff; box-shadow:0 1px 4px rgba(0,0,0,.06);
}
.ot-pagination .current{ background:var(--ot-teal); color:#fff; }

/* Single article */
.ot-breadcrumb{ font-size:.88rem; color:var(--ot-text-secondary); margin-bottom:16px; }
.ot-breadcrumb a{ color:var(--ot-text-secondary); text-decoration:none; }
.ot-article-header h1{ font-size:2rem; max-width:800px; margin:14px 0; }
.ot-article-meta{ color:var(--ot-text-secondary); font-size:.9rem; display:flex; gap:14px; align-items:center; }
.ot-cover{ width:100%; border-radius:8px; margin:24px 0; }
.ot-article-content{ max-width:720px; }
.ot-article-content h2{ border-left:3px solid var(--ot-teal); padding-left:14px; margin:32px 0 16px; }
.ot-article-content ul li::marker{ color:var(--ot-teal); }
.ot-article-content a{ color:var(--ot-teal); text-decoration:underline; }
.ot-article-content blockquote{
  background:var(--ot-bg); border-left:4px solid var(--ot-teal);
  padding:16px 20px; margin:24px 0; color:var(--ot-text);
}
.ot-sticky-sidebar{ position:sticky; top:100px; }
.ot-cta-box{ background:var(--ot-navy); color:#fff; border-radius:8px; padding:20px; text-align:center; }
.ot-cta-box a{ color:#fff; text-decoration:none; font-weight:600; }
.ot-related{ margin-top:60px; }

/* ===== Editorial homepage ===== */
.ot-eyebrow{
  display:inline-block; text-transform:uppercase; letter-spacing:.08em;
  font-size:.78rem; font-weight:700; color:var(--ot-teal); margin-bottom:14px;
}
.ot-dot{ color:var(--ot-text-secondary); }

.ot-editorial-hero{
  display:grid; grid-template-columns:1.1fr .9fr; align-items:stretch;
  min-height:560px; background:var(--ot-navy);
}
@media (max-width:900px){ .ot-editorial-hero{ grid-template-columns:1fr; min-height:auto; } }
.ot-editorial-hero-media{ overflow:hidden; }
.ot-editorial-hero-media img{ width:100%; height:100%; object-fit:cover; min-height:320px; display:block; }
.ot-editorial-hero-content{
  padding:64px 56px; display:flex; flex-direction:column; justify-content:center;
  background:var(--ot-navy); color:#fff;
}
@media (max-width:900px){ .ot-editorial-hero-content{ padding:44px 28px; } }
.ot-editorial-hero-content h1{ font-size:2.6rem; line-height:1.15; margin:0 0 18px; color:#fff; }
.ot-editorial-hero-content h1 a{ color:#fff; text-decoration:none; }
.ot-editorial-hero-content h1 a:hover{ color:#9fe6d6; }
.ot-editorial-hero-content p{ color:#cdd7e3; font-size:1.05rem; margin-bottom:24px; }
.ot-editorial-meta{ color:#9fb0c3; font-size:.9rem; margin-bottom:28px; display:flex; gap:10px; }

.ot-editorial-intro{ background:var(--ot-card); padding:64px 24px; text-align:center; }
.ot-editorial-intro-inner{ max-width:680px; margin:0 auto; }
.ot-editorial-intro-inner h2{ font-size:1.8rem; margin-bottom:16px; }
.ot-editorial-intro-inner p{ color:var(--ot-text-secondary); font-size:1.05rem; }

.ot-editorial-grid-section{ padding:24px 0 72px; }
.ot-section-heading{ display:flex; align-items:center; gap:20px; margin-bottom:36px; }
.ot-section-heading h2{ font-size:1.6rem; white-space:nowrap; margin:0; }
.ot-section-line{ height:2px; flex:1; background:linear-gradient(90deg,var(--ot-teal),transparent); }

.ot-grid-editorial .ot-card{ transition:transform .2s ease, box-shadow .2s ease; }
.ot-grid-editorial .ot-card:hover{ transform:translateY(-4px); box-shadow:0 10px 24px rgba(23,168,140,.14); }
.ot-card-editorial h3{ font-size:1.15rem; margin:0 0 10px; }
.ot-card-editorial h3 a{ color:var(--ot-navy); text-decoration:none; }
.ot-card-editorial h3 a:hover{ color:var(--ot-teal); }

.ot-empty-state{ text-align:center; color:var(--ot-text-secondary); padding:40px 0; }

.ot-editorial-cta{ background:var(--ot-navy); color:#fff; padding:72px 24px; text-align:center; }
.ot-editorial-cta-inner{ max-width:600px; margin:0 auto; }
.ot-editorial-cta-inner h2{ color:#fff; font-size:1.8rem; margin-bottom:14px; }
.ot-editorial-cta-inner p{ color:#cdd7e3; margin-bottom:28px; }

/* Footer — répliqué sur le footer du site marketing optimtenders.com (thème clair) */
.ot-footer{ background:#fff; border-top:1px solid var(--ot-brand-border); padding:56px 24px 24px; }

.ot-footer-top{ max-width:1200px; margin:0 auto 40px; }
.ot-footer-logo{ display:flex; align-items:center; gap:10px; text-decoration:none; margin-bottom:14px; }
.ot-footer-logo .ot-logo-mark{ height:32px; width:32px; }
.ot-footer-logo .ot-logo-word{ font-size:19px; font-weight:900; color:var(--ot-brand-navy); }
.ot-footer-tagline{ color:var(--ot-brand-grey-mid); max-width:480px; margin:0; }

.ot-footer-grid{
  max-width:1200px; margin:0 auto; display:grid;
  grid-template-columns:1fr 1fr 1fr 1.4fr; gap:40px; margin-bottom:40px;
}
@media (max-width:800px){ .ot-footer-grid{ grid-template-columns:1fr 1fr; } }
.ot-footer h4{ color:var(--ot-brand-navy); margin-bottom:16px; font-size:.95rem; }
.ot-footer a{ color:var(--ot-brand-grey-mid); text-decoration:none; display:block; margin-bottom:10px; font-size:.92rem; transition:color .2s; }
.ot-footer a:hover{ color:var(--ot-teal); }
.ot-footer-cta-col p{ color:var(--ot-brand-grey-mid); font-size:.92rem; margin-bottom:16px; }
.ot-footer-trial-btn{
  display:inline-block; background:var(--ot-brand-green-dark); color:#fff !important;
  border:none; border-radius:4px; padding:.7rem 1.4rem; font-weight:500; font-size:14px;
  text-decoration:none; transition:background-color .2s;
}
.ot-footer-trial-btn:hover{ background:var(--ot-teal-hover); }

.ot-footer-bottom{
  max-width:1200px; margin:0 auto; padding-top:22px; border-top:1px solid var(--ot-brand-border);
  display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px; font-size:12px; color:#9aabb7;
}
.ot-footer-legal{ display:flex; gap:22px; }
.ot-footer-legal a{ display:inline; margin:0; color:#9aabb7; }
.ot-footer-legal a:hover{ color:var(--ot-teal); }
