/*
Theme Name: kanoni Tempo
Description: Assurance temporaire — thème multisite indépendant, articles partagés et parcours Allianceca.
Version: 1.0.0
Author: Allianceca
Text Domain: tempo
Requires CMS: 1.3.2
Requires PHP: 7.4
*/
:root{--ink:#002395;--muted:#59647e;--paper:#ffffff;--line:#dbe2f1;--red:#df1934;--cream:#f0f4ff;--font:Inter,"Helvetica Neue",Arial,sans-serif}*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:30px}body{margin:0;color:var(--ink);background:var(--paper);font-family:var(--font);font-size:16px;line-height:1.6}a{color:inherit;text-decoration:none}button{font:inherit}img{display:block;max-width:100%}.wrap{max-width:1240px;margin:auto;padding:0 36px}.topline{background:var(--ink);color:#ffffff;font-size:10px;letter-spacing:1.6px;padding:9px 6%;display:flex;justify-content:space-between}.topline a{letter-spacing:.4px}.nav{display:flex;align-items:center;justify-content:space-between;gap:28px;min-height:106px}.brand{display:flex;align-items:center;gap:12px;font-size:20px;font-weight:700;line-height:1.2;letter-spacing:-.7px}.brand small{display:block;font-size:8px;letter-spacing:1.9px;font-weight:500;margin-top:6px}.brand-symbol{width:40px;height:42px;font-size:37px;line-height:40px;text-align:center;border-radius:13px;background:var(--red);color:var(--ink);letter-spacing:-4px;padding-right:4px}nav{display:flex;align-items:center;gap:25px;font-size:12px;font-weight:600}.btn{display:inline-flex;align-items:center;justify-content:space-between;gap:28px;background:var(--ink);color:#fff;padding:18px 24px;border-radius:8px;font-size:13px;font-weight:600;transition:transform .18s,background .18s}.btn:hover{transform:translateY(-2px);background:#001a70}.btn.small{padding:14px 18px}.btn.red{background:var(--red);color:#ffffff}.btn.red:hover{background:#bc122a}.menu-toggle{display:none}.hero{background:var(--ink);color:var(--paper);overflow:hidden}.hero-grid{display:grid;grid-template-columns:1fr 1fr;min-height:620px;align-items:center;gap:25px}.hero-copy{padding:56px 0}.eyebrow{font-size:10px;font-weight:600;letter-spacing:1.6px;color:#edf2ff;display:block}.eyebrow i{display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--red);margin-right:8px}.eyebrow.dark{color:#002395}h1,h2,h3,p{margin-top:0}h1{font-size:clamp(42px,4.6vw,65px);font-weight:500;line-height:1.06;letter-spacing:-2.8px;margin:26px 0}h2{font-size:clamp(29px,3vw,42px);font-weight:500;line-height:1.17;letter-spacing:-1.5px;margin:20px 0 25px}h3{font-size:22px;line-height:1.25;letter-spacing:-.6px;font-weight:500}.hero-copy>p{color:#e0e8ff;max-width:420px;font-size:15px;line-height:1.8;margin:0 0 28px}.hero-notes{display:flex;gap:22px;font-size:11px;margin:24px 0 13px;color:#e6ecff}.hero-copy>small{font-size:9px;color:#c1ceef}.hero-art{position:relative;align-self:stretch;display:flex;align-items:center}.hero-art>img{width:115%;max-width:none;margin-left:-12px}.floating{position:absolute;left:6px;bottom:88px;background:#ffffff;color:var(--ink);border-radius:12px;padding:17px 20px;display:flex;align-items:center;gap:12px;box-shadow:0 14px 40px #000c3826;font-size:13px;font-weight:600}.floating small{font-size:8px;display:block;letter-spacing:1.4px;margin-top:3px}.pulse{width:10px;height:10px;background:#ed2939;border:3px solid #ffe3e6;border-radius:50%;box-sizing:content-box}.arrow{margin-left:25px;font-size:25px;font-weight:400}.art-label{position:absolute;right:0;bottom:35px;font-size:8px;line-height:1.8;letter-spacing:2px}.proof{display:flex;justify-content:space-between;align-items:center;gap:25px;padding-top:32px;padding-bottom:32px;border-bottom:1px solid var(--line)}.proof p{font-size:12px;line-height:1.5;margin:0}.proof strong{font-weight:500}.proof>span{font-size:9px;letter-spacing:1.5px;font-weight:600}.section{padding-top:85px;padding-bottom:85px}.section-title{display:flex;align-items:flex-end;justify-content:space-between;gap:30px;margin-bottom:34px}.section-title h2{margin-bottom:0}.section-title>p{font-size:12px;color:var(--muted);margin-bottom:5px;max-width:345px}.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}.need-card{display:flex;flex-direction:column;min-height:310px;border:1px solid var(--line);border-radius:12px;padding:28px;transition:background .2s}.need-card:hover{background:#f2f5fc}.number{font-size:12px;color:#6477a4;margin-bottom:35px}.need-card h3{max-width:255px}.need-card p{font-size:13px;color:var(--muted);line-height:1.8}.text-link{display:flex;justify-content:space-between;font-size:12px;font-weight:600;margin-top:auto;padding-top:20px}.quote-section{background:#eff3fd;padding:75px 0}.quote-grid{display:grid;grid-template-columns:1fr 1fr;gap:100px;align-items:center}.quote-grid h2{font-size:49px}.quote-grid>div>p{font-size:14px;color:var(--muted);max-width:385px}.underlink{font-size:12px;text-decoration:underline;text-underline-offset:6px}.quote-card{background:var(--paper);border-radius:16px;padding:35px}.quote-card h3{font-size:27px;margin-top:20px}.duration{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.duration button{background:transparent;border:1px solid var(--line);border-radius:8px;padding:13px;color:var(--ink);font-size:25px;line-height:1.3;cursor:pointer}.duration button small{display:block;font-size:10px}.duration button[aria-pressed=true]{background:var(--ink);color:#fff;border-color:var(--ink)}#duration-note{font-size:11px;margin:18px 0}.quote-card .btn{width:100%;font-size:12px;padding:17px}.quote-card>small{display:block;font-size:10px;line-height:1.7;color:var(--muted);margin-top:15px}.steps{display:grid;grid-template-columns:repeat(3,1fr);gap:60px;margin-top:43px}.steps span{display:block;background:#e6edff;border-radius:50%;text-align:center;width:40px;height:40px;line-height:40px;font-size:13px;margin-bottom:23px}.steps h3{font-size:19px}.steps p{font-size:13px;color:var(--muted)}.annual{background:var(--ink);border-radius:18px;color:var(--paper);padding:55px;display:grid;grid-template-columns:1fr 1fr;gap:60px}.annual h2{font-size:37px}.annual p{font-size:13px;color:#c8d5fb}.annual-links{align-self:center}.annual-links a{display:block;border-bottom:1px solid #6480c5;padding:24px 0;font-size:15px}.annual-links span{font-size:10px;color:#c2d1f5;margin-right:18px}.articles article{border:1px solid var(--line);border-radius:12px;overflow:hidden}.articles img{aspect-ratio:1.65;object-fit:cover;width:100%;background:#eaf0ff}.articles article a>div{padding:24px}.articles h3{font-size:20px;margin:18px 0 0;min-height:75px}.articles .eyebrow{font-size:8px}.faq-section{background:#f2f5fc;padding:75px 0}.faq-grid{display:grid;grid-template-columns:1fr 1fr;gap:80px}.faq-grid p{font-size:13px;color:var(--muted);max-width:365px}.faq-grid details{border-bottom:1px solid #d1daee;padding:20px 0}.faq-grid details:first-child{padding-top:0}.faq-grid summary{cursor:pointer;list-style:none;display:flex;justify-content:space-between;gap:20px;font-size:14px;line-height:1.5}.faq-grid summary::-webkit-details-marker{display:none}.faq-grid summary span{font-size:19px}.faq-grid details[open] summary span{transform:rotate(45deg)}.faq-grid details p{max-width:none;line-height:1.85;margin:18px 0 0}.last-cta{text-align:center;padding-top:75px;padding-bottom:80px}.last-cta h2{font-size:49px}.footer{background:var(--ink);color:#ffffff;padding:50px 0 20px}.footer-top{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #5c77bb;padding-bottom:30px}.footer-top p{font-size:12px;color:#d1dcfa;margin:0}.footer-links{display:flex;gap:35px;margin:26px 0;font-size:11px}.legal{font-size:10px;line-height:1.8;color:#c6d3f4;max-width:840px}.footer-bottom{border-top:1px solid #5c77bb;padding-top:18px;display:flex;justify-content:space-between;font-size:9px;color:#c6d3f4}.skip{position:absolute;top:-100px;left:15px;background:white;padding:12px;z-index:20}.skip:focus{top:5px}a:focus-visible,button:focus-visible,summary:focus-visible{outline:3px solid #ed2939;outline-offset:5px}.tempo-article{line-height:1.85}.tempo-article h1{font-size:44px}.cms-post-content{margin-top:35px}.cms-post-content img{max-width:100%;height:auto}.archive{min-height:70vh}.pagination{display:flex;flex-wrap:wrap;gap:20px;padding:30px 0}.pagination a{text-decoration:underline}@media(min-width:1500px){.hero-grid{min-height:670px}}@media(max-width:1000px){.wrap{padding-left:26px;padding-right:26px}.nav{min-height:90px}nav{gap:15px}nav>a:not(.btn){display:none}.hero-grid{min-height:590px}h1{font-size:50px}.hero-notes{flex-direction:column;gap:5px}.hero-art>img{width:125%}.quote-grid,.faq-grid{gap:45px}.annual{margin:0 26px;padding:40px;gap:35px}.need-card{padding:22px}.steps{gap:25px}}@media(max-width:680px){.topline{font-size:8px;justify-content:center;padding:9px}.topline>a{display:none}.wrap{padding-left:22px;padding-right:22px}.brand{font-size:17px}.brand small{font-size:7px}.nav{min-height:84px;position:relative}.menu-toggle{display:block;background:none;border:0;color:var(--ink);font-size:12px;padding:10px}.nav nav{display:none;position:absolute;top:80px;left:0;right:0;background:var(--paper);padding:25px;z-index:5;border-bottom:1px solid var(--line)}.nav nav.open{display:flex;flex-direction:column;align-items:stretch}.nav nav>a{display:block;text-align:center}.hero-grid{grid-template-columns:1fr;gap:0}.hero-copy{padding:43px 0 0}h1{font-size:48px;letter-spacing:-2px;max-width:420px}.hero-copy>p{font-size:14px}.hero-notes{flex-direction:row;gap:16px;font-size:10px}.hero-art{height:350px;margin-top:8px;overflow:hidden}.hero-art>img{width:110%;margin-left:-4%;align-self:flex-start;transform:translateY(-70px)}.floating{bottom:35px;left:0;padding:13px 16px}.art-label{bottom:18px;font-size:7px}.proof{display:grid;grid-template-columns:1fr 1fr;gap:22px;padding-top:25px;padding-bottom:25px}.proof>span{font-size:8px;line-height:1.8}.proof p{font-size:11px}.section{padding-top:55px;padding-bottom:55px}.section-title{display:block;margin-bottom:27px}.section-title>p,.section-title>.underlink{display:block;margin-top:20px}.cards,.quote-grid,.steps,.annual,.faq-grid{grid-template-columns:1fr;gap:20px}.need-card{min-height:255px}.number{margin-bottom:25px}.need-card h3{max-width:none}.quote-section,.faq-section{padding:50px 0}.quote-grid h2{font-size:39px}.quote-grid{gap:32px}.quote-card{padding:25px}.steps{gap:20px}.steps>div{padding-top:14px}.steps span{margin-bottom:15px}.annual{margin:0 16px;padding:32px 25px}.annual h2{font-size:33px}.annual-links a{padding:19px 0}.articles h3{min-height:0}.faq-grid{gap:25px}.last-cta{padding-top:55px;padding-bottom:60px}.last-cta h2{font-size:38px}.footer-top{display:block}.footer-top>p{margin-top:23px}.footer-links{display:grid;grid-template-columns:1fr 1fr;gap:17px}.footer-bottom{gap:20px;font-size:8px}.tempo-article h1{font-size:34px}.tempo-article{margin-top:35px!important}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important}}

.topline{border-bottom:3px solid transparent;border-image:linear-gradient(90deg,#002395 0 33.33%,#fff 33.33% 66.66%,#ed2939 66.66%) 1}.brand-symbol{color:#fff}.btn.red{color:#fff}.hero .eyebrow i{background:#ed2939}

/* Content languages share the theme navigation typography and colours. */
.cms-theme-languages { display: inline-flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.cms-theme-languages a { font: inherit; color: inherit; }
.cms-theme-languages [aria-current="true"] { font-weight: 700; text-decoration: underline; }
/* Vehicle slider (added for the mascot-illustration marketing slides) */
.hero-art.is-mascot>img{width:auto;max-width:78%;max-height:430px;margin:0 auto;align-self:center;display:block;transform:none}
.hero-slider-controls{display:flex;align-items:center;gap:16px;padding:18px 0 40px;font-size:11px;color:#e0e8ff}
.hero-slider-controls button{background:transparent;border:1px solid #4f68ac;color:#fff;border-radius:8px;padding:8px 14px;cursor:pointer;font-size:13px;font-family:inherit}
.hero-slider-controls button:hover{background:#0f2a86}
.hero-slider-controls button[aria-pressed=true]{background:#fff;color:var(--ink)}
@media(max-width:680px){.hero-art.is-mascot>img{max-width:88%;max-height:270px}.hero-slider-controls{flex-wrap:wrap;gap:10px;padding-bottom:30px}}
/* "Choisissez votre vehicule" grid - reuses the insurance theme's
   "hero-grid hero-grid--4 alliance-product-grid" / "hero-product-card"
   component (modules/cms/themes/insurance/style.css), translated to
   Tempo's own tokens, with veh-select__* overrides so the card's icon
   slot fits a full mascot photo instead of a small line icon. Each card
   links straight to the vehicle's own landing page (#estimateur anchor). */
.hero-grid{display:grid;gap:14px}
.hero-grid--4{grid-template-columns:repeat(4,1fr)}
.hero-product-card{display:flex;flex-direction:column;align-items:center;gap:8px;padding:20px 10px 16px;border:1px solid #e3e7f5;border-radius:14px;background:#fff;text-decoration:none;color:var(--ink);text-align:center;transition:border-color .15s,transform .15s,box-shadow .15s}
.hero-product-card:hover{border-color:#0f2a86;transform:translateY(-2px);box-shadow:0 10px 26px #00239514;color:var(--ink)}
.hero-product-card__name{font-size:13px;font-weight:600}
.hero-product-card__go{font-size:10px;color:var(--muted);display:flex;align-items:center;gap:4px;margin-top:auto}
.alliance-product-grid.veh-select{grid-template-columns:repeat(7,1fr)}
.veh-select__image{width:100%;height:76px;display:flex;align-items:center;justify-content:center;margin-bottom:0}
.veh-select__image img{width:auto;max-width:100%;height:100%;max-height:76px;object-fit:contain}
@media(max-width:1000px){.hero-grid--4,.alliance-product-grid.veh-select{grid-template-columns:repeat(4,1fr)}}
@media(max-width:680px){.hero-grid--4,.alliance-product-grid.veh-select{grid-template-columns:repeat(2,1fr)}}

/* Payment badges + trust label ("hero-payment-group") - same component
   reused from the insurance theme (functions.php::tempo_payment_group_html()
   mirrors hero_payment_group_html() there), shown in the header and next
   to the hero mascot art. */
.tempo-ico{vertical-align:-3px}
.hero-payment-group{display:flex;flex-direction:column;align-items:center;gap:8px}
.hero-payment-badges{list-style:none;display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px;margin:0;padding:0}
.hero-payment-badges img{display:block;width:38px;height:24px;object-fit:contain;border-radius:4px;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.15)}
.hero-payment-badges--topbar{justify-content:flex-start}
.hero-payment-badges--topbar img{width:28px;height:18px}
.tempo-payment-trust{display:inline-flex;align-items:center;gap:5px;font-size:11px;color:var(--muted)}


/* "Souscription en ligne, disponible 24/7" trust line used across CTAs. */
.quote-247{display:flex;align-items:center;gap:6px;font-size:11px;color:var(--muted);margin-top:14px}
.hero .quote-247{color:#c1ceef}

/* "Votre tarif en direct" simulateur (id="simulateur") - indicative price
   teaser that hands off to the matching vehicle's own #estimateur, rather
   than embedding the live form directly on the homepage. */
.simulateur{display:flex;flex-direction:column;gap:14px}
.simulateur__field{font-size:11px;font-weight:600;color:var(--muted);text-transform:uppercase;letter-spacing:.6px}
.simulateur__select{width:100%;padding:14px 16px;border:1px solid var(--line);border-radius:8px;font:inherit;font-size:15px;color:var(--ink);background:#fff}
.simulateur__price{display:flex;align-items:baseline;gap:10px;padding:14px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.simulateur__price-label{font-size:11px;color:var(--muted)}
.simulateur__price strong{font-size:28px;font-weight:600}
.simulateur__price small{font-size:12px;color:var(--muted);font-weight:400}

.live-quote-frame{width:100%;border:0;min-height:520px;display:block;background:transparent}

/* Per-vehicle landing page (vehicle-landing.php) */
.vehicle-hero{background:var(--ink);color:var(--paper);border-radius:0;display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:40px;padding-top:70px;padding-bottom:70px}
.vehicle-hero-copy>p{color:#e0e8ff;max-width:420px;font-size:15px;line-height:1.8;margin:0 0 28px}
.vehicle-hero-extra{margin-top:30px;color:#e0e8ff;font-size:13px;line-height:1.85}
.vehicle-hero-extra :is(h2,h3){color:#fff}
.vehicle-estimateur .section-title p{max-width:420px}
.registration-tabs-box{background:#fff;border:1px solid #e3e7f5;border-radius:16px;overflow:hidden}
.registration-tabs-nav{display:flex;border-bottom:1px solid #e3e7f5}
.registration-tabs-nav button{flex:1;padding:16px 14px;border:0;background:#f7f8fc;color:var(--ink);font-weight:600;font-size:14px;cursor:pointer;border-bottom:3px solid transparent}
.registration-tabs-nav button[aria-selected=true]{background:#fff;border-bottom-color:#0f2a86;color:#0f2a86}
.registration-tabs-panels{padding:26px}
.registration-tabs-panels h3{margin:0 0 10px;font-size:19px}
.registration-tabs-panels ul{margin:14px 0 0;padding-left:20px}
.registration-tabs-panels li{margin:6px 0}
@media(max-width:680px){.registration-tabs-nav{flex-direction:column}.registration-tabs-panels{padding:18px}}

/* Keep vehicle cards independent of the large hero slide layout. */
.hero-grid.alliance-product-grid.veh-select{min-height:0;align-items:stretch;grid-auto-rows:auto}
.veh-select__image{height:112px}
.veh-select__image img{height:112px;max-height:112px;width:100%;object-fit:contain}
.hero-art.is-mascot{flex-direction:column;justify-content:center;align-items:center;gap:20px;align-self:center;height:auto;overflow:visible;padding:24px 0}
.hero-art.is-mascot>img{width:100%;max-width:100%;height:auto;max-height:440px;object-fit:contain;transform:none}
.hero-art .hero-payment-trust{color:#e0e8ff}
.hero-payment-trust{display:inline-flex;align-items:center;gap:5px;font-size:11px;color:var(--muted)}
.topline{align-items:center;flex-wrap:wrap;gap:16px;padding:10px 24px}
.topline .hero-payment-badges{flex-wrap:nowrap;margin:0}
.brand-logo{width:auto;max-width:150px;max-height:54px;object-fit:contain}
@media(max-width:680px){
 .topline{gap:10px;justify-content:center}
 .hero-art.is-mascot{margin-top:0;padding:25px 0 10px}
 .hero-art.is-mascot>img{max-width:100%;max-height:320px}
 .vehicle-hero{grid-template-columns:1fr;gap:10px;padding-top:35px;padding-bottom:35px}
 .vehicle-hero .eyebrow{color:#e0e8ff}
 .veh-select__image,.veh-select__image img{height:100px;max-height:100px}
}
