/*
Theme Name: UBN Speed France
Theme URI: https://ubn-speed.fr/
Author: OpenAI
Description: Thème UBN Speed France prêt à l'emploi, orienté suivi colis.
Version: 2.0.4
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: ubn-speed-france
*/

:root{
  --ubn-navy:#071633;
  --ubn-blue:#355cff;
  --ubn-blue-dark:#12308f;
  --ubn-gold:#f4cf4f;
  --ubn-red:#e43b32;
  --ubn-bg:#f6f8ff;
  --ubn-line:#dbe5ff;
  --ubn-text:#0b1633;
  --ubn-muted:#5f6b86;
  --ubn-card:#ffffff;
  --ubn-radius:24px;
  --ubn-shadow:0 18px 40px rgba(7,22,51,.10);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:Inter, Arial, sans-serif;
  color:var(--ubn-text);
  background:linear-gradient(180deg,#fbfcff 0%, #f4f7ff 100%);
}
a{text-decoration:none;color:var(--ubn-blue)}
img{max-width:100%;height:auto}
.container{width:min(1240px, calc(100% - 32px));margin:0 auto}
.site-header{
  position:sticky; top:0; z-index:999;
  background:rgba(255,255,255,.92);
  backdrop-filter:blur(14px);
  border-bottom:1px solid var(--ubn-line);
}
.header-inner{
  min-height:86px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
}
.brand{
  display:flex; align-items:center; gap:14px; min-width:0;
}
.brand-logo img,.custom-logo{
  display:block;
  height:58px; width:auto; max-width:220px; object-fit:contain;
}
.brand-fallback{
  width:58px;height:58px;border-radius:16px;
  display:grid;place-items:center;
  background:linear-gradient(135deg,var(--ubn-blue),var(--ubn-navy));
  color:#fff;font-weight:900;
}
.brand-text{min-width:0}
.brand-text strong{
  display:block; font-size:clamp(1.15rem,1.5vw,1.55rem);
  line-height:1.05; color:var(--ubn-navy);
}
.brand-text small{
  display:block; margin-top:5px; color:var(--ubn-muted);
  font-size:.92rem; line-height:1.2;
}
.main-nav{
  display:flex; align-items:center; gap:8px; flex-wrap:wrap;
}
.main-nav a{
  color:var(--ubn-navy); font-weight:800;
  padding:12px 14px; border-radius:14px;
}
.main-nav a:hover{background:#eef3ff}
.header-cta{display:flex; gap:10px; align-items:center}
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  min-height:50px; padding:0 20px; border-radius:16px;
  font-weight:900; border:1px solid transparent;
}
.btn-primary{
  background:linear-gradient(135deg,var(--ubn-blue),var(--ubn-navy));
  color:#fff;
  box-shadow:0 10px 22px rgba(53,92,255,.22);
}
.btn-secondary{
  background:#fff; color:var(--ubn-navy); border-color:var(--ubn-line);
}
.btn-accent{
  background:linear-gradient(135deg,var(--ubn-gold),#ffd96d);
  color:#111;
}
.hero{
  padding:54px 0 32px;
}
.hero-grid{
  display:grid; grid-template-columns:1.1fr .9fr; gap:0; align-items:stretch;
}
.hero-left{
  background:
    linear-gradient(180deg, rgba(244,207,79,.10) 0%, rgba(255,255,255,.78) 22%, rgba(228,59,50,.06) 100%);
  border:1px solid var(--ubn-line);
  border-right:none;
  border-radius:32px 0 0 32px;
  padding:34px;
  box-shadow:var(--ubn-shadow);
}
.hero-right{
  background:linear-gradient(180deg,#fff 0%, #fbfcff 100%);
  border:1px solid var(--ubn-line);
  border-radius:0 32px 32px 0;
  padding:30px;
  box-shadow:var(--ubn-shadow);
  display:flex; flex-direction:column; justify-content:space-between;
}
.eyebrow{
  display:inline-flex; align-items:center; gap:10px;
  min-height:40px; padding:0 16px; border-radius:999px;
  background:#fff; border:1px solid var(--ubn-line); font-weight:900;
}
.eyebrow i{
  width:12px; height:12px; border-radius:50%;
  background:linear-gradient(135deg,var(--ubn-gold),var(--ubn-red));
}
.hero h1{
  margin:20px 0 14px; font-size:clamp(2.5rem,4.8vw,5rem);
  line-height:.98; letter-spacing:-.04em;
}
.hero h1 .accent{color:var(--ubn-blue)}
.lead{
  margin:0 0 22px; color:var(--ubn-muted);
  font-size:1.12rem; max-width:720px; line-height:1.5;
}
.hero-actions{
  display:flex; gap:12px; flex-wrap:wrap; margin-bottom:22px;
}
.usp-row{
  display:grid; grid-template-columns:repeat(3,1fr); gap:14px;
}
.usp{
  background:#fff; border:1px solid var(--ubn-line);
  border-radius:18px; padding:15px 16px; font-weight:900;
  box-shadow:0 10px 24px rgba(7,22,51,.05);
}
.tracking-box h3{
  margin:0 0 8px; font-size:1.8rem; color:var(--ubn-navy);
}
.tracking-note{
  margin:0 0 18px; color:var(--ubn-muted); font-size:1rem;
}
.tracking-form{
  display:flex; flex-direction:column; gap:12px;
}
.tracking-form input[type="text"],
.tracking-form input[type="search"],
.tracking-form input[name="tracking_number"],
.tracking-form input[name="track"],
.tracking-form input[name="tracking-number"]{
  width:100%; min-height:56px; border-radius:16px;
  border:1px solid var(--ubn-line); padding:0 18px; font-size:1rem;
}
.tracking-form button,
.tracking-form input[type="submit"]{
  width:100%; min-height:54px; border:none; border-radius:16px;
  background:linear-gradient(135deg,var(--ubn-blue),var(--ubn-blue-dark));
  color:#fff; font-weight:900; cursor:pointer;
}
.tracking-mini{
  display:grid; grid-template-columns:1fr 1fr; gap:14px; margin-top:18px;
}
.mini-card{
  border:1px solid var(--ubn-line); border-radius:18px; padding:16px;
  background:#fff;
}
.mini-card strong{display:block; font-size:1.2rem; margin-bottom:8px}
.mini-card span{color:var(--ubn-muted)}
.hero-visual{
  margin-top:18px;
  min-height:170px;
  border-radius:24px;
  background:
    radial-gradient(circle at 80% 20%, rgba(244,207,79,.38), transparent 22%),
    radial-gradient(circle at 18% 35%, rgba(53,92,255,.16), transparent 18%),
    linear-gradient(135deg,#eef3ff,#f8faff);
  border:1px solid var(--ubn-line);
  position:relative;
  overflow:hidden;
}
.hero-visual:before{
  content:"";
  position:absolute; left:12%; bottom:24px;
  width:150px; height:68px; border-radius:20px 24px 10px 12px;
  background:linear-gradient(135deg,var(--ubn-blue),var(--ubn-navy));
  box-shadow:0 12px 24px rgba(7,22,51,.18);
}
.hero-visual:after{
  content:"";
  position:absolute; right:14%; bottom:30px;
  width:120px; height:84px; border-radius:18px;
  background:#fff; border:1px solid #d9e2ff;
  box-shadow:0 10px 20px rgba(7,22,51,.08);
}
.section{padding:46px 0}
.section-head{
  display:flex; justify-content:space-between; align-items:end; gap:16px;
  margin-bottom:22px; flex-wrap:wrap;
}
.section-head h2{
  margin:0; font-size:clamp(1.7rem,3vw,2.7rem); letter-spacing:-.03em;
}
.section-head p{margin:0; color:var(--ubn-muted)}
.tag{
  display:inline-flex; min-height:34px; align-items:center;
  padding:0 14px; border-radius:999px; background:#eef3ff; font-weight:900;
}
.cards-2{
  display:grid; grid-template-columns:1fr 1fr; gap:18px;
}
.local-card,.ship-card{
  background:#fff; border:1px solid var(--ubn-line); border-radius:24px;
  padding:24px; box-shadow:var(--ubn-shadow);
}
.local-card h3,.ship-card h3{margin:10px 0 8px; font-size:1.28rem}
.local-card p,.ship-card p{margin:0 0 10px; color:var(--ubn-muted); line-height:1.55}
.local-card .site-link{font-weight:900; word-break:break-word}
.ship-grid{
  display:grid; grid-template-columns:repeat(4,1fr); gap:18px;
}
.price{
  font-size:2rem; color:var(--ubn-blue); font-weight:900;
}
.price small{font-size:.95rem; color:var(--ubn-muted)}
.partner-strip{
  padding:16px 0; background:var(--ubn-navy); color:#fff;
}
.partner-label{
  margin-bottom:10px; text-transform:uppercase; letter-spacing:.08em;
  font-size:.85rem; opacity:.75; font-weight:800;
}
.marquee-wrap{display:flex; overflow:hidden; mask-image:linear-gradient(90deg,transparent,black 8%,black 92%,transparent)}
.marquee-track{
  display:flex; gap:14px; white-space:nowrap; min-width:max-content;
  animation:ubn-marquee 30s linear infinite;
}
.partner-pill{
  min-height:42px; padding:0 16px; border-radius:999px;
  display:inline-flex; align-items:center;
  border:1px solid rgba(255,255,255,.12); background:rgba(255,255,255,.08);
  font-weight:800;
}
@keyframes ubn-marquee{from{transform:translateX(0)}to{transform:translateX(-50%)}}
.site-footer{
  margin-top:24px; background:#04122d; color:#fff; padding-top:42px;
}
.footer-grid{
  display:grid; grid-template-columns:1.2fr .9fr .9fr .9fr; gap:24px; padding-bottom:26px;
}
.site-footer h4{margin:0 0 12px; font-size:1.05rem}
.site-footer p,.site-footer li,.site-footer a{color:rgba(255,255,255,.83)}
.site-footer ul{list-style:none; margin:0; padding:0}
.site-footer li+li{margin-top:10px}
.footer-bottom{
  border-top:1px solid rgba(255,255,255,.12); padding:16px 0 22px;
  color:rgba(255,255,255,.65);
}
.page-shell{padding:36px 0 56px}
.page-card{
  background:#fff; border:1px solid var(--ubn-line); border-radius:28px;
  padding:28px; box-shadow:var(--ubn-shadow);
}
@media (max-width:1100px){
  .hero-grid,.cards-2,.ship-grid,.footer-grid{grid-template-columns:1fr 1fr}
  .hero-grid{gap:18px}
  .hero-left,.hero-right{border-radius:32px;border-right:1px solid var(--ubn-line)}
}
@media (max-width:820px){
  .header-inner{flex-wrap:wrap; padding:14px 0; min-height:auto}
  .brand{width:100%}
  .main-nav{width:100%; order:3}
  .header-cta{width:100%}
  .header-cta .btn{flex:1}
  .hero-grid,.cards-2,.ship-grid,.footer-grid,.usp-row,.tracking-mini{grid-template-columns:1fr}
  .brand-logo img,.custom-logo{height:46px; max-width:150px}
  .hero-left,.hero-right{padding:22px; border-radius:24px}
}

/* v2.0.1 hero balance fix */
.hero-right .hero-visual{
  min-height:110px;
  max-height:110px;
  margin-top:14px;
}
.hero-visual{
  background:linear-gradient(135deg,#f5f8ff,#fbfcff);
}
.hero-visual:before{
  left:14%;
  bottom:18px;
  width:128px;
  height:52px;
}
.hero-visual:after{
  right:16%;
  bottom:22px;
  width:92px;
  height:64px;
}
@media (max-width:820px){
  .hero-right .hero-visual{
    min-height:84px;
    max-height:84px;
  }
}


/* v2.0.4 precise fixes */
.usp-row{
  display:none;
}
.site-footer .footer-brand{
  display:inline-flex;
  align-items:center;
  min-height:42px;
  padding:0 14px;
  border-radius:999px;
  background:linear-gradient(135deg,var(--ubn-gold),#ffd96d);
  color:#08142e;
  font-weight:900;
  margin-bottom:14px;
}
.site-footer .footer-brand-title{
  font-size:1.05rem;
  letter-spacing:.01em;
}
.site-footer .footer-address{
  margin-top:10px;
  line-height:1.7;
}
.site-footer .footer-slogan{
  margin:10px 0 0;
  font-weight:700;
}
