/*
Theme Name: UBN Speed Réunion
Theme URI: https://ubn-speed.re/
Author: OpenAI
Description: Thème UBN Speed Réunion basé sur le socle UBN Speed France, adapté aux parcours Réunion et compatible avec les plugins UBN.
Version: 2.2.2
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: ubn-speed-reunion
*/

: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.08fr .92fr; 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)}
.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,.step-card,.review-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,.step-card h3,.review-card h3{margin:10px 0 8px; font-size:1.28rem}
.local-card p,.ship-card p,.step-card p,.review-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}
.process-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:18px}
.step-number{
  width:52px; height:52px; display:grid; place-items:center;
  border-radius:18px; background:linear-gradient(135deg,var(--ubn-blue),var(--ubn-navy)); color:#fff; font-size:1.2rem; font-weight:900;
}
.step-card ul{margin:12px 0 0; padding-left:18px; color:var(--ubn-muted)}
.step-card li+li{margin-top:8px}
.review-grid{display:grid; grid-template-columns:1.1fr .9fr; gap:18px}
.review-score{
  display:flex; align-items:center; gap:18px; margin-top:14px;
}
.review-badge{
  min-width:110px; min-height:110px; border-radius:28px; display:grid; place-items:center;
  background:linear-gradient(135deg,var(--ubn-gold),#ffd96d); color:#08142e; font-size:2.2rem; font-weight:900;
}
.review-stars{font-size:1.25rem; letter-spacing:.08em}
.review-note{font-size:1.1rem; font-weight:800; color:var(--ubn-navy)}
.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 32s 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,.72); display:flex; justify-content:space-between; align-items:center; gap:16px; flex-wrap:wrap;
}
.footer-legal-menu{display:flex; gap:16px; flex-wrap:wrap}
.footer-legal-menu a{color:rgba(255,255,255,.72); font-weight:700}
.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)}
.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}
.page-shell--fullwidth{padding:0 0 28px}
.page-content-fullwidth{width:100%;margin:0;padding:24px 0 32px}
.ubn-fullwidth-page .site-footer{margin-top:0}
body.ubn-fullwidth-page .ubn-client-dashboard-wrap,
body.ubn-fullwidth-page .ubn-shell-wrap,
body.ubn-fullwidth-page .ubn-shell{width:min(100%, 1440px);margin:0 auto}
body.ubn-fullwidth-page .ubn-client-dashboard-wrap{padding:0 24px 24px;box-sizing:border-box}
body.ubn-fullwidth-page .ubn-shell-wrap,
body.ubn-fullwidth-page .ubn-shell{padding:0 24px 24px;box-sizing:border-box}
.page-shell--chrome-free{padding:0;background:transparent;min-height:100vh}
.page-content-fullwidth--chrome-free{padding:0;margin:0;width:100%}
body.ubn-fullwidth-page .page-shell--chrome-free .ubn-client-dashboard-wrap,
body.ubn-fullwidth-page .page-shell--chrome-free .ubn-shell-wrap,
body.ubn-fullwidth-page .page-shell--chrome-free .ubn-shell{width:100%;max-width:none;padding:0;margin:0}

@media (max-width:1100px){
  .hero-grid,.cards-2,.ship-grid,.footer-grid,.process-grid,.review-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,.process-grid,.review-grid{grid-template-columns:1fr}
  .brand-logo img,.custom-logo{height:46px; max-width:150px}
  .hero-left,.hero-right{padding:22px; border-radius:24px}
  body.ubn-fullwidth-page .ubn-client-dashboard-wrap,
  body.ubn-fullwidth-page .ubn-shell-wrap,
  body.ubn-fullwidth-page .ubn-shell{padding:0 14px 20px}
  .footer-bottom{align-items:flex-start}
}


/* Google Reviews widget integration */
.section .grw-review-slider,
.section .grw-content,
.section .wp-gr {max-width:100%;}
.review-grid > * {min-width:0;}
