/*
Theme Name: Unclic Coming Soon
Theme URI: https://unclic.ma
Author: Unclic.ma
Author URI: https://unclic.ma
Description: Thème WordPress "Coming Soon" premium pour Unclic.ma — plateforme marocaine intelligente dédiée aux appels d'offres publics et privés. Design B2B SaaS, bleu professionnel et vert innovation, compte à rebours, formulaire de notification de lancement, structure SEO-ready (meta, Open Graph, Schema.org).
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: unclic-coming-soon
*/

:root{
  --navy:#0B1F3A;
  --navy-2:#0E2648;
  --blue:#1B4B91;
  --blue-light:#3B7DE0;
  --green:#16A97A;
  --green-light:#3FCB9C;
  --bg:#F6F8FB;
  --surface:#FFFFFF;
  --ink:#0F1B2D;
  --slate:#54617A;
  --slate-soft:#8590A6;
  --line:#E4E9F1;
  --shadow: 0 1px 2px rgba(15,27,45,.04);
  --maxw: 1180px;
  --radius: 14px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font-family:'Inter', -apple-system, sans-serif;
  font-size:16px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
h1,h2,h3,.font-display{
  font-family:'Space Grotesk', 'Inter', sans-serif;
  font-weight:600;
  letter-spacing:-0.01em;
  margin:0;
  color:var(--navy);
}
p{margin:0}
a{color:inherit;text-decoration:none}
img,svg{display:block;max-width:100%}
ul{margin:0;padding:0;list-style:none}
button{font-family:inherit;cursor:pointer}
.wrap{max-width:var(--maxw); margin:0 auto; padding:0 32px}
section{position:relative}

@media (prefers-reduced-motion: reduce){
  *{animation-duration:0.001ms !important; animation-iteration-count:1 !important; transition-duration:0.001ms !important; scroll-behavior:auto !important}
}

:focus-visible{outline:2px solid var(--blue-light); outline-offset:3px; border-radius:4px}

/* ---------- reveal on scroll (single, restrained pattern) ---------- */
.reveal{opacity:0; transform:translateY(18px); transition:opacity .7s ease, transform .7s ease}
.reveal.is-visible{opacity:1; transform:translateY(0)}

/* ================= HEADER ================= */
.site-header{
  position:absolute; top:0; left:0; right:0; z-index:20;
  padding:28px 0 0;
}
.site-header .wrap{display:flex; align-items:center; justify-content:space-between}
.logo{display:flex; align-items:center; gap:10px; color:#fff}
.logo-mark{width:34px; height:34px; flex:0 0 auto}
.logo img.logo-mark-img{width:34px; height:34px; object-fit:contain}
.logo-word{font-family:'Space Grotesk',sans-serif; font-weight:700; font-size:19px; color:#fff; letter-spacing:-0.01em}
.logo-word span{color:var(--green-light)}
.header-note{font-size:13px; color:rgba(255,255,255,.65)}

/* ================= HERO ================= */
.hero{
  background:
    radial-gradient(1000px 560px at 82% -10%, rgba(63,203,156,.18), transparent 60%),
    radial-gradient(900px 500px at 8% 110%, rgba(59,125,224,.20), transparent 60%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
  padding:132px 0 96px;
  overflow:hidden;
}
.hero .wrap{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap:56px;
  align-items:center;
}
.hero-eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  color:var(--green-light); font-size:14px; font-weight:500;
  margin-bottom:22px;
}
.hero-eyebrow::before{content:""; width:6px; height:6px; border-radius:50%; background:var(--green-light)}
.hero h1{
  color:#fff;
  font-size:clamp(34px, 4vw, 52px);
  line-height:1.12;
  max-width:16ch;
}
.hero-sub{
  color:rgba(255,255,255,.72);
  font-size:17.5px;
  max-width:46ch;
  margin-top:22px;
}
.hero-cta{display:flex; gap:14px; margin-top:34px; flex-wrap:wrap}
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  min-height:46px;
  padding:14px 26px; border-radius:10px;
  font-size:15px; font-weight:600;
  border:1px solid transparent;
  transition:transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover{transform:translateY(-1px)}
.btn-primary{
  background:linear-gradient(135deg, var(--green) 0%, var(--green-light) 100%);
  color:#062718;
  box-shadow:0 10px 24px -8px rgba(22,169,122,.55);
}
.btn-secondary{
  background:transparent;
  color:#fff;
  border-color:rgba(255,255,255,.28);
}
.btn-secondary:hover{background:rgba(255,255,255,.06)}

.hero-art{position:relative}
.hero-art svg{width:100%; height:auto}

/* ================= COUNTDOWN ================= */
.countdown{
  background:var(--surface);
  margin-top:-1px;
  padding:56px 0 64px;
  border-bottom:1px solid var(--line);
}
.countdown-inner{
  display:flex; align-items:center; justify-content:space-between; gap:40px; flex-wrap:wrap;
}
.countdown h2{font-size:22px; max-width:22ch}
.countdown-sub{color:var(--slate); font-size:14.5px; margin-top:6px}
.timer{display:flex; gap:14px}
.timer-unit{
  width:76px; text-align:center;
  background:var(--bg);
  border:1px solid var(--line);
  border-radius:12px;
  padding:14px 0 10px;
}
.timer-unit strong{
  display:block; font-family:'Space Grotesk',sans-serif;
  font-size:28px; font-weight:700; color:var(--navy);
  font-variant-numeric: tabular-nums;
}
.timer-unit span{font-size:11.5px; color:var(--slate-soft); letter-spacing:.02em}

/* ================= INTRO ================= */
.intro{padding:96px 0 72px}
.intro .wrap{max-width:760px; text-align:center}
.intro h2{font-size:clamp(26px,3vw,34px); line-height:1.25}
.intro p{color:var(--slate); font-size:17px; margin-top:18px}

/* ================= FEATURES ================= */
.features{padding:24px 0 100px}
.section-head{max-width:640px; margin:0 auto 52px; text-align:center}
.section-head h2{font-size:clamp(26px,3vw,32px)}
.feature-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:1px;
  background:var(--line);
  border:1px solid var(--line);
  border-radius:var(--radius);
  overflow:hidden;
}
.feature{
  background:var(--surface);
  padding:34px 30px;
  transition:background .2s ease;
}
.feature:hover{background:#FBFCFE}
.feature-icon{
  width:38px; height:38px;
  display:flex; align-items:center; justify-content:center;
  border-radius:9px;
  margin-bottom:18px;
}
.feature:nth-child(6n+1) .feature-icon,
.feature:nth-child(6n+3) .feature-icon,
.feature:nth-child(6n+5) .feature-icon{background:rgba(27,75,145,.08)}
.feature:nth-child(6n+2) .feature-icon,
.feature:nth-child(6n+4) .feature-icon,
.feature:nth-child(6n+6) .feature-icon{background:rgba(22,169,122,.10)}
.feature-icon svg{width:20px; height:20px}
.feature h3{font-size:16.5px; font-weight:600}
.feature p{color:var(--slate); font-size:14.5px; margin-top:9px; line-height:1.65}

/* ================= WHY US ================= */
.why{
  background:var(--navy);
  padding:92px 0;
}
.why .wrap{
  display:grid;
  grid-template-columns:.85fr 1.15fr;
  gap:60px;
}
.why h2{color:#fff; font-size:clamp(26px,3vw,32px); max-width:14ch}
.why-intro-text{color:rgba(255,255,255,.6); margin-top:16px; font-size:15px; max-width:32ch}
.why-list{display:grid; grid-template-columns:1fr 1fr; gap:36px 40px}
.why-item{border-top:1px solid rgba(255,255,255,.14); padding-top:18px}
.why-item h3{color:#fff; font-size:16px; font-weight:600}
.why-item p{color:rgba(255,255,255,.58); font-size:14px; margin-top:8px; line-height:1.6}

/* ================= SEO BLOCK ================= */
.seo-block{padding:80px 0}
.seo-block .wrap{max-width:820px}
.seo-block p{color:var(--slate); font-size:15.5px; line-height:1.85}

/* ================= NEWSLETTER ================= */
.newsletter{
  padding:0 0 100px;
}
.newsletter-card{
  background:linear-gradient(135deg, var(--blue) 0%, #143a72 100%);
  border-radius:20px;
  padding:56px 56px;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:48px;
  align-items:center;
  position:relative;
  overflow:hidden;
}
.newsletter-card::after{
  content:"";
  position:absolute; inset:0;
  background:radial-gradient(500px 300px at 100% 0%, rgba(63,203,156,.28), transparent 60%);
  pointer-events:none;
}
.newsletter-copy h2{color:#fff; font-size:clamp(22px,2.6vw,28px); max-width:16ch}
.newsletter-copy p{color:rgba(255,255,255,.68); font-size:14.5px; margin-top:12px; max-width:34ch}
.form-row{display:flex; flex-direction:column; gap:12px}
.field label{display:block; font-size:12.5px; color:rgba(255,255,255,.7); margin-bottom:6px}
.field input, .field select{
  width:100%;
  min-height:46px;
  padding:13px 14px;
  border-radius:9px;
  border:1px solid rgba(255,255,255,.22);
  background:rgba(255,255,255,.08);
  color:#fff;
  font-size:14.5px;
  font-family:inherit;
}
.field input::placeholder{color:rgba(255,255,255,.42)}
.field select option{color:#0F1B2D}
.newsletter-form .btn-primary{width:100%; margin-top:4px; border:none}
.form-note{font-size:12px; color:rgba(255,255,255,.45); margin-top:10px}
.form-success{
  display:none;
  align-items:center; gap:10px;
  background:rgba(63,203,156,.15);
  border:1px solid rgba(63,203,156,.4);
  color:#DFFBEF;
  padding:14px 16px;
  border-radius:10px;
  font-size:14px;
  margin-top:6px;
}
.form-success.is-visible{display:flex}
.form-error{
  display:none;
  color:#FFD9D9;
  background:rgba(220,60,60,.15);
  border:1px solid rgba(220,60,60,.4);
  padding:12px 14px;
  border-radius:10px;
  font-size:13px;
  margin-top:6px;
}
.form-error.is-visible{display:block}

/* ================= FOOTER ================= */
.site-footer{
  background:var(--navy-2);
  padding:56px 0 30px;
  border-top:1px solid rgba(255,255,255,.06);
}
.footer-top{
  display:flex; justify-content:space-between; gap:40px; flex-wrap:wrap;
  padding-bottom:34px;
  border-bottom:1px solid rgba(255,255,255,.08);
}
.footer-brand .logo-word{color:#fff}
.footer-brand p{color:rgba(255,255,255,.5); font-size:14px; margin-top:12px; max-width:32ch}
.footer-contact{display:flex; flex-direction:column; gap:10px; font-size:14px}
.footer-contact a{color:rgba(255,255,255,.78)}
.footer-contact a:hover{color:var(--green-light)}
.social-row{display:flex; gap:12px; margin-top:6px}
.social-row a{
  width:34px; height:34px; border-radius:8px;
  border:1px solid rgba(255,255,255,.14);
  display:flex; align-items:center; justify-content:center;
}
.social-row a:hover{border-color:var(--green-light)}
.social-row svg{width:15px; height:15px; opacity:.75}
.footer-bottom{
  display:flex; justify-content:space-between; align-items:center;
  padding-top:22px; flex-wrap:wrap; gap:10px;
}
.footer-bottom p{color:rgba(255,255,255,.4); font-size:12.5px}

/* ================= RESPONSIVE ================= */

/* Prevent any decorative element (gradients, SVG art) from causing
   horizontal scroll on narrow viewports. */
html, body{overflow-x:hidden; width:100%}
img, svg, video{max-width:100%; height:auto}

/* ---- Tablet / small laptop (≤ 1024px) ---- */
@media (max-width: 1024px){
  .wrap{padding:0 28px}
  .hero{padding:124px 0 84px}
  .hero .wrap{gap:44px}
  .feature-grid{grid-template-columns:1fr 1fr}
  .why .wrap{gap:44px}
}

/* ---- Tablet portrait / large phone (≤ 860px) ---- */
@media (max-width: 860px){
  .hero .wrap{grid-template-columns:1fr}
  .hero-art{order:-1; max-width:320px; margin:0 auto}
  .hero h1{max-width:20ch}
  .hero-sub{max-width:none}
  .why .wrap{grid-template-columns:1fr}
  .why-intro-text{max-width:none}
  .newsletter-card{grid-template-columns:1fr; padding:40px 32px; gap:32px}
  .newsletter-copy p{max-width:none}
  .countdown-inner{flex-direction:column; align-items:flex-start; gap:24px}
}

/* ---- Phone (≤ 640px) ---- */
@media (max-width: 640px){
  .wrap{padding:0 20px}

  .site-header{padding:20px 0 0}
  .header-note{display:none}

  .hero{padding:104px 0 64px}
  .hero-eyebrow{font-size:13px; margin-bottom:16px}
  .hero h1{font-size:clamp(28px, 7.5vw, 36px); line-height:1.18; max-width:none}
  .hero-sub{font-size:15.5px; margin-top:16px}
  .hero-art{max-width:240px}
  .hero-cta{flex-direction:column; gap:10px; margin-top:26px}
  .hero-cta .btn{width:100%}

  .countdown{padding:40px 0 44px}
  .countdown h2{font-size:19px; max-width:none}
  .timer{gap:8px; flex-wrap:wrap; justify-content:flex-start; width:100%}
  .timer-unit{width:calc(25% - 6px); min-width:60px; padding:12px 0 9px}
  .timer-unit strong{font-size:20px}
  .timer-unit span{font-size:10.5px}

  .intro{padding:56px 0 48px}
  .intro h2{font-size:22px}
  .intro p{font-size:15.5px; margin-top:14px}

  .features{padding:12px 0 64px}
  .section-head{margin-bottom:32px}
  .section-head h2{font-size:22px}
  .feature-grid{grid-template-columns:1fr; border-radius:12px}
  .feature{padding:26px 22px}

  .why{padding:56px 0}
  .why h2{font-size:22px; max-width:none}
  .why-list{grid-template-columns:1fr; gap:26px}

  .seo-block{padding:48px 0}
  .seo-block p{font-size:14.5px; line-height:1.75}

  .newsletter{padding:0 0 64px}
  .newsletter-card{padding:32px 20px; border-radius:16px}
  .newsletter-copy h2{font-size:21px; max-width:none}
  .newsletter-form .btn-primary{padding:13px 20px}

  .site-footer{padding:40px 0 24px}
  .footer-top{flex-direction:column; gap:26px; padding-bottom:24px}
  .footer-bottom{flex-direction:column; align-items:flex-start; gap:6px}
}

/* ---- Small phone (≤ 380px) ---- */
@media (max-width: 380px){
  .wrap{padding:0 16px}
  .hero h1{font-size:26px}
  .timer-unit{width:calc(50% - 4px)}
  .newsletter-card{padding:28px 16px}
  .btn{padding:13px 18px; font-size:14px}
}

/* ---- Landscape phones (short viewport height) ---- */
@media (max-width: 900px) and (max-height: 480px) and (orientation: landscape){
  .hero{padding:96px 0 48px}
  .hero-art{display:none}
}

/* ---- Touch devices: avoid hover-only affordances feeling stuck ---- */
@media (hover: none){
  .btn:hover, .feature:hover{transform:none}
  .btn-secondary:hover{background:transparent}
  .feature:hover{background:var(--surface)}
}
