/*
Theme Name: The Plug – Thème bloc
Theme URI: https://example.com/theplug
Author: The Plug
Description: Thème bloc (édition complète du site) en français pour l’agence « The Plug – Agence de performance ». Chaque section de l’accueil est un motif de blocs modifiable visuellement dans Apparence → Éditeur. Palette, polices et espacements sont définis dans theme.json. À utiliser avec l’extension « The Plug – Core » (contenus, formulaire de contact, SEO).
Version: 1.0.4
Requires at least: 6.7
Tested up to: 7.1
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: theplug-block
Domain Path: /languages
Tags: full-site-editing, block-patterns, custom-colors, custom-logo, editor-style, wide-blocks, accessibility-ready, translation-ready
*/

/* Feuille de style complémentaire (site + éditeur). Couleurs, polices, tailles et boutons viennent de theme.json ;
   ce fichier ajoute seulement les détails décoratifs que theme.json ne sait pas exprimer. */

:root{
	--tp-line:#D6DBE2;
	--tp-shadow:0 1px 2px rgba(12,44,82,.05),0 14px 40px -12px rgba(12,44,82,.18);
	--tp-shadow-lg:0 2px 4px rgba(12,44,82,.06),0 30px 60px -18px rgba(12,44,82,.30);
	--tp-r-lg:28px; --tp-r-md:20px;
}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;overflow-x:clip;overflow-wrap:break-word}
img,svg{max-width:100%;height:auto}
p{margin-block:0 1em}
:focus-visible{outline:3px solid var(--wp--preset--color--navy);outline-offset:3px;border-radius:6px}

/* Sections stack edge to edge (the global block gap would add white seams) */
.wp-site-blocks>*,.wp-site-blocks main>*{margin-block-start:0!important;margin-block-end:0!important}
:root :where(.is-layout-constrained)>.tp-section,:root :where(.is-layout-flow)>.tp-section{margin-block-start:0}
.tp-section{padding-block:clamp(4rem,8vw,7.5rem)}

/* Inline highlight: select a word in a heading and press the Italic button (Ctrl/Cmd+I) */
.wp-block-heading em,.tp-title em{font-style:normal;background:linear-gradient(transparent 66%,rgba(85,169,222,.5) 66%);padding:0 .08em}
.tp-hero .wp-block-heading em,.tp-page-hero em{background:linear-gradient(transparent 66%,rgba(255,255,255,.7) 66%)}
.has-deep-background-color em,.tp-cta-box em,.tp-approach em{background:none!important;color:var(--wp--preset--color--sky)}

.tp-eyebrow{font-family:var(--wp--preset--font-family--montserrat);font-weight:700;font-size:.75rem;line-height:1;letter-spacing:.2em;text-transform:uppercase;color:var(--wp--preset--color--blue);margin-bottom:1.1rem}
.tp-hero .tp-eyebrow,.tp-page-hero .tp-eyebrow{color:var(--wp--preset--color--navy)}
.tp-approach .tp-eyebrow,.tp-cta-box .tp-eyebrow{color:var(--wp--preset--color--sky)}
.tp-lead{font-size:var(--wp--preset--font-size--large);color:var(--wp--preset--color--slate);max-width:60ch}
.tp-center .tp-lead,.tp-lead.has-text-align-center{margin-inline:auto}
.tp-section-head{margin-bottom:clamp(2.2rem,5vw,3.8rem)}

/* ---------- Header ---------- */
.wp-site-blocks>header.wp-block-template-part{position:sticky;top:var(--wp-admin--admin-bar--height,0px);z-index:100}
.tp-header{position:relative;background:rgba(255,255,255,.92);box-shadow:0 1px 0 var(--tp-line),0 10px 30px -18px rgba(12,44,82,.35);padding-block:.7rem}
/* blur lives on a pseudo-element: backdrop-filter on the header itself would trap the fixed full-screen menu overlay */
.tp-header::before{content:"";position:absolute;inset:0;z-index:-1;-webkit-backdrop-filter:saturate(1.6) blur(14px);backdrop-filter:saturate(1.6) blur(14px)}
.tp-header .tp-brand{gap:.7rem;flex-wrap:nowrap}
.tp-header .tp-brand figure,.tp-footer-brand figure{flex:none;margin:0}
.tp-header .tp-brand img{width:49px!important;height:auto!important;display:block}
.tp-brand-text{gap:0!important;line-height:1}
.tp-brand-1,.tp-brand-1 a{font-family:var(--wp--preset--font-family--montserrat);font-weight:800;font-size:1.15rem;line-height:1;letter-spacing:.04em;color:var(--wp--preset--color--navy);text-decoration:none;margin:0}
.tp-brand-2,.tp-brand-2 a{font-family:var(--wp--preset--font-family--montserrat);font-weight:600;font-size:.56rem;line-height:1;letter-spacing:.2em;color:var(--wp--preset--color--slate);text-decoration:none;margin:.35rem 0 0}
.tp-footer .tp-brand-1,.tp-footer .tp-brand-1 a{color:#fff}
.tp-footer .tp-brand-2,.tp-footer .tp-brand-2 a{color:var(--wp--preset--color--sky)}
.tp-header .wp-block-navigation .wp-block-navigation-item__content{padding:.6rem .9rem;border-radius:999px;transition:background .2s}
.tp-header .wp-block-navigation .wp-block-navigation-item__content:hover{background:var(--wp--preset--color--chrome-light)}
.tp-header .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__submenu-container{border:1px solid var(--tp-line)!important;border-radius:var(--tp-r-md);box-shadow:var(--tp-shadow-lg);padding:.6rem!important;min-width:260px}
.tp-header .wp-block-navigation{margin-inline:auto}
.tp-header .is-menu-open .wp-block-navigation__container{gap:.2rem;width:100%}
.tp-header .is-menu-open .wp-block-navigation-item__content{font-size:1.05rem;padding:.8rem .2rem;border-radius:0;border-bottom:1px solid var(--tp-line)}
.tp-header .is-menu-open .wp-block-navigation__submenu-container{border:0!important;box-shadow:none!important;padding:0 0 .4rem 1rem!important;min-width:0}
.tp-header .is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content{font-size:.95rem;color:var(--wp--preset--color--slate);border-bottom:0}
.tp-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content{border-radius:12px;font-weight:500}
.tp-header .tp-header-cta .wp-block-button__link{padding:.7rem 1.2rem}
@media (max-width:1020px){
	.tp-header .tp-header-cta{display:none}
	/* collapse the menu into the hamburger below 1020px (core's default breakpoint is 600px) */
	.tp-header .wp-block-navigation__responsive-container-open:not(.always-shown){display:flex!important}
	.tp-header .wp-block-navigation__responsive-container:not(.is-menu-open){display:none!important}
	.tp-header .wp-block-navigation{margin-left:auto}
}

/* ---------- Buttons ---------- */
.wp-block-button__link{transition:transform .25s,box-shadow .25s,background .25s,color .25s}
.wp-block-button:not(.is-style-outline) .wp-block-button__link:hover{transform:translateY(-2px);box-shadow:0 16px 30px -10px rgba(5,28,72,.8)}
.wp-block-button.is-style-sky .wp-block-button__link:hover{box-shadow:0 12px 26px -10px rgba(0,0,0,.5)}
.tp-btn-lg .wp-block-button__link{padding:1.05rem 1.8rem!important;font-size:1rem!important}
.tp-btn-arrow .wp-block-button__link::after{content:"\2192";display:inline-block;margin-left:.6rem;transition:transform .25s}
.tp-btn-arrow .wp-block-button__link:hover::after{transform:translateX(4px)}
.tp-link-arrow a{font-weight:600;text-decoration:none}
.tp-link-arrow a::after{content:"\2192";margin-left:.45rem;display:inline-block;transition:transform .25s}
.tp-link-arrow a:hover::after{transform:translateX(4px)}

/* ---------- Hero ---------- */
.tp-hero{position:relative;overflow:hidden;text-align:center;padding-top:clamp(3rem,6vw,5.5rem);padding-bottom:clamp(3rem,6vw,5rem)}
.tp-hero::before,.tp-page-hero::before{content:"";position:absolute;inset:0;background-image:radial-gradient(rgba(5,28,72,.09) 1px,transparent 1.5px);background-size:26px 26px;-webkit-mask-image:linear-gradient(180deg,#000,transparent 75%);mask-image:linear-gradient(180deg,#000,transparent 75%);pointer-events:none}
.tp-hero::after{content:"";position:absolute;inset:-20% 0 auto 0;height:90%;background:radial-gradient(50% 55% at 50% 12%,rgba(255,255,255,.75),rgba(255,255,255,0) 70%);pointer-events:none}
.tp-hero>*{position:relative;z-index:1}
.tp-hero-title{font-size:var(--wp--preset--font-size--hero)!important;font-weight:800;letter-spacing:-.04em;line-height:1.02;max-width:15ch;margin-inline:auto;margin-bottom:.45em}
.tp-hero-text{font-size:var(--wp--preset--font-size--large);max-width:56ch;margin-inline:auto;margin-bottom:2.2rem}
.tp-hero-cards{margin-top:clamp(3rem,6vw,5rem)!important;max-width:1020px;margin-inline:auto!important;align-items:flex-end!important;gap:1.5rem!important;text-align:left}
.tp-hcard{background:#fff;border-radius:var(--tp-r-lg);padding:1.6rem 1.7rem;box-shadow:var(--tp-shadow-lg);border:1px solid rgba(255,255,255,.7);min-height:330px;display:flex;flex-direction:column;overflow:hidden;gap:0!important}
.tp-hcard-2{min-height:420px;padding:1.1rem 1.1rem 1.6rem}
.tp-hc-value{font-family:var(--wp--preset--font-family--montserrat);font-weight:800;font-size:clamp(2rem,3.4vw,2.9rem);line-height:1;letter-spacing:-.03em;margin:0 0 .3rem;color:var(--wp--preset--color--navy)}
.tp-hc-label{margin:0;color:var(--wp--preset--color--slate);font-weight:500;font-size:.98rem}
.tp-hcard-1 .tp-hc-value,.tp-hcard-1 .tp-hc-label,.tp-hcard-3 .tp-hc-value,.tp-hcard-3 .tp-hc-label{text-align:right}
.tp-hcard-2 .tp-hc-value,.tp-hcard-2 .tp-hc-label{padding-inline:.6rem}
.tp-hcard-2 .tp-hc-value{margin-top:1.1rem}
.tp-hc-photo{border-radius:20px;overflow:hidden;aspect-ratio:1/.95;background:linear-gradient(145deg,#051C48,#0E427E 60%,#55A9DE);display:grid;place-items:center;position:relative;padding:0!important}
.tp-hc-photo::before{content:"";position:absolute;inset:0;background:radial-gradient(60% 60% at 70% 20%,rgba(255,255,255,.25),transparent 70%)}
.tp-hc-photo figure{margin:0;position:relative;width:56%}
.tp-hc-photo img{width:100%;height:auto;filter:drop-shadow(0 12px 24px rgba(0,0,0,.35))}
.tp-hc-deco{margin:auto 0 0!important;align-self:center;width:100%;max-width:240px}
.tp-hcard-3 .tp-hc-deco{max-width:170px;margin-bottom:-.5rem!important}
.tp-hc-deco img{width:100%;height:auto;display:block}

/* ---------- Intro ---------- */
.tp-intro-title{font-size:clamp(2rem,4.2vw,3.3rem)!important;line-height:1.1;margin:0}
.tp-intro-body p{font-size:1.15rem;color:var(--wp--preset--color--slate)}
.wp-block-columns.tp-split{gap:clamp(2rem,6vw,6rem)!important}

/* ---------- Cards ---------- */
.wp-block-columns.tp-cards{gap:1.6rem!important}
.wp-block-columns.tp-cards>.wp-block-column{display:flex}
.tp-card{background:#fff;border:1px solid var(--tp-line);border-radius:var(--tp-r-lg);padding:2rem;box-shadow:0 1px 2px rgba(12,44,82,.04);transition:transform .35s cubic-bezier(.2,.8,.2,1),box-shadow .35s,border-color .35s;display:flex;flex-direction:column;flex:1;gap:0!important}
.tp-card:hover{transform:translateY(-6px);box-shadow:var(--tp-shadow-lg);border-color:transparent}
.tp-card h3{font-size:1.35rem;margin-bottom:.5em}
.tp-card p{color:var(--wp--preset--color--slate)}
.tp-card .tp-link-arrow{margin-top:auto;padding-top:.6rem;margin-bottom:0}
.tp-icon{width:58px;height:58px;display:grid;place-items:center;border-radius:18px;background:linear-gradient(145deg,#fff,#E3E7EC);border:1px solid var(--tp-line);margin:0 0 1.3rem}
.tp-icon img{width:28px!important;height:28px!important}

/* Centered button rows under card grids */
.tp-center-btn{margin-top:3rem!important}

/* ---------- Approach ---------- */
.tp-approach{color:#C9DAEC}
.tp-approach h2,.tp-approach h3{color:#fff}
.tp-approach .wp-block-columns{gap:clamp(2rem,6vw,6rem)!important}
.tp-steps{display:grid;gap:1.3rem}
.tp-step{display:flex;gap:1.8rem;padding:2rem 2.2rem;border-radius:var(--tp-r-lg);background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.14);transition:background .3s,transform .3s}
.tp-step:hover{background:rgba(255,255,255,.1);transform:translateX(6px)}
.tp-step .tp-step-no{font-family:var(--wp--preset--font-family--montserrat);font-weight:800;font-size:clamp(2.6rem,4vw,3.6rem);line-height:1;letter-spacing:-.04em;color:var(--wp--preset--color--sky);min-width:1.7em;margin:0}
.tp-step h3{font-size:1.5rem;margin-bottom:.5em}
.tp-step p{color:#C9DAEC;margin-bottom:.7em}
.tp-step p:last-child{margin:0}
.tp-step>.wp-block-group{flex:1;gap:0}
@media(max-width:600px){.tp-step{flex-direction:column;gap:.6rem;padding:1.6rem}}

/* ---------- Numbers ---------- */
.tp-numbers{padding-block:clamp(3.5rem,6vw,5.5rem);color:var(--wp--preset--color--deep)}
.tp-numbers-title{text-align:center;font-family:var(--wp--preset--font-family--montserrat);font-weight:700;font-size:.8rem;line-height:1;letter-spacing:.2em;text-transform:uppercase;margin-bottom:2.6rem;color:var(--wp--preset--color--deep)}
.wp-block-columns.tp-stats{gap:0!important}
.tp-stats>.wp-block-column{text-align:center;padding:.5rem 1.2rem;border-left:1px solid rgba(5,28,72,.22)}
.tp-stats>.wp-block-column:first-child{border-left:0}
.tp-stat-value{font-family:var(--wp--preset--font-family--montserrat);font-weight:800;font-size:var(--wp--preset--font-size--stat);line-height:1;letter-spacing:-.04em;color:var(--wp--preset--color--deep);margin:0 0 .6rem}
.tp-stat-label{margin:0;font-weight:600;color:var(--wp--preset--color--deep)}
@media(max-width:781px){.tp-stats>.wp-block-column{border-left:0;border-top:1px solid rgba(5,28,72,.22);padding-block:1.4rem}.tp-stats>.wp-block-column:first-child{border-top:0}}

/* ---------- Insights (query loop) ---------- */
.tp-posts .wp-block-post-template{gap:1.6rem}
.tp-post-card{background:#fff;border:1px solid var(--tp-line);border-radius:var(--tp-r-lg);overflow:hidden;height:100%;box-shadow:0 1px 2px rgba(12,44,82,.04);transition:transform .35s,box-shadow .35s;display:flex;flex-direction:column;gap:0!important}
.tp-post-card:hover{transform:translateY(-6px);box-shadow:var(--tp-shadow-lg)}
.tp-post-card .wp-block-post-featured-image{margin:0;background:linear-gradient(135deg,#051C48,#0E427E)}
.tp-post-card .wp-block-post-featured-image img{display:block}
.tp-post-body{padding:1.6rem 1.8rem 1.9rem;display:flex;flex-direction:column;flex:1;gap:.4rem}
.tp-post-body h3{font-size:1.25rem;margin:0}
.tp-post-body .wp-block-post-excerpt{color:var(--wp--preset--color--slate);font-size:.97rem;display:flex;flex-direction:column;flex:1}
.tp-post-body .wp-block-post-excerpt__more-text{margin-top:auto;margin-bottom:0}
.tp-post-body .wp-block-post-excerpt p{margin-bottom:.6em}
.tp-post-body .wp-block-post-excerpt__more-link{display:inline-block;margin-top:.4rem;font-weight:600;text-decoration:none}

/* ---------- CTA ---------- */
.tp-cta-wrap{padding-block:clamp(2rem,4vw,3rem) clamp(4rem,8vw,7rem)}
.tp-cta-box{position:relative;overflow:hidden;text-align:center;color:#fff;padding:clamp(3rem,7vw,5.5rem) clamp(1.5rem,5vw,4rem)!important;border-radius:clamp(28px,4vw,44px)}
.tp-cta-box::before{content:"";position:absolute;inset:auto 0 -60% 0;height:120%;background:radial-gradient(50% 60% at 50% 100%,rgba(85,169,222,.7),transparent 70%);pointer-events:none}
.tp-cta-box>*{position:relative}
.tp-cta-box h2{color:#fff;font-size:clamp(2rem,4.6vw,3.5rem)!important;max-width:20ch;margin-inline:auto;margin-bottom:.5em}
.tp-cta-box p{color:#D5E4F3;max-width:58ch;margin-inline:auto;margin-bottom:2rem;font-size:1.15rem}

/* ---------- Inner pages ---------- */
.tp-page-hero{position:relative;overflow:hidden;padding-block:clamp(3rem,6vw,5rem) clamp(3rem,6vw,4.5rem)}
.tp-page-hero>*{position:relative}
.tp-page-hero-in{max-width:1200px;margin-inline:auto;gap:0}
.tp-page-hero-in>*{margin-inline:0;max-width:none}
.tp-page-hero-in .tp-lead{max-width:60ch;color:var(--wp--preset--color--navy);font-size:var(--wp--preset--font-size--large);margin:0}
.tp-page-hero-in .wp-block-post-excerpt{max-width:60ch;margin:0}
.tp-page-hero .wp-block-post-title,.tp-page-hero h1{max-width:24ch;margin:0 0 .4em;font-weight:800;color:var(--wp--preset--color--navy)}
.tp-page-hero .wp-block-post-terms{margin-bottom:1.1rem}
.tp-page-hero .wp-block-post-terms a{text-decoration:none;color:inherit}
.tp-page-hero .tp-page-meta{font-weight:600;color:var(--wp--preset--color--deep);margin:1.2rem 0 0;gap:1.2rem}
.tp-page-meta .wp-block-post-date{color:inherit;font-size:inherit}
.tp-entry{padding-block:clamp(3rem,6vw,5rem)}
.tp-entry>*+*{margin-top:1.2em}
.tp-entry .wp-block-post-content{font-size:1.1rem}
.tp-entry .wp-block-post-content h2{font-size:clamp(1.6rem,3vw,2.2rem);margin-top:1.8em}
.tp-entry .wp-block-post-content h3{font-size:1.35rem;margin-top:1.5em}
.tp-entry .wp-block-post-content img,.tp-entry .wp-block-post-featured-image img{border-radius:var(--tp-r-md);height:auto}
.tp-entry .wp-block-post-content a{font-weight:600}
.tp-entry .wp-block-columns .wp-block-column{background:var(--wp--preset--color--chrome-light);border-radius:var(--tp-r-md);padding:1.4rem 1.6rem}
.tp-post-nav{margin-top:3rem;font-weight:600;gap:1rem}
.wp-block-query-pagination{gap:.5rem;margin-top:3rem}
.wp-block-query-pagination .page-numbers,.wp-block-query-pagination a{padding:.55rem 1rem;border-radius:12px;border:1px solid var(--tp-line);text-decoration:none;font-weight:600}
.wp-block-query-pagination .page-numbers.current{background:var(--wp--preset--color--navy);color:#fff;border-color:var(--wp--preset--color--navy)}
.wp-block-search__inside-wrapper{gap:.7rem}
.wp-block-search__input{border:1.5px solid #BBD0E4;border-radius:14px;padding:.85rem 1rem}
.wp-block-search__button{border-radius:999px;background:var(--wp--preset--color--navy);color:#fff;border:0;padding:.85rem 1.4rem;font-weight:600}

/* ---------- Footer ---------- */
.tp-footer{position:relative;overflow:hidden;color:#C5D6E8}
.tp-footer::before{content:"";position:absolute;inset:-30% 0 auto auto;width:60%;height:100%;background:radial-gradient(closest-side,rgba(85,169,222,.22),transparent);pointer-events:none}
.tp-footer>*{position:relative}
.tp-footer a{color:#C5D6E8;text-decoration:none;transition:color .2s}
.tp-footer a:hover{color:var(--wp--preset--color--sky)}
.tp-footer-top{padding-block:clamp(3.5rem,6vw,5.5rem) 3rem}
.tp-footer .wp-block-columns{gap:clamp(1.5rem,4vw,3.5rem)!important}
.tp-footer-brand{gap:.7rem;flex-wrap:nowrap}
.tp-footer-brand img{width:58px!important;height:auto!important;display:block}
.tp-footer-about{margin:1.4rem 0;max-width:34ch;font-size:.98rem}
.tp-f-title{font-family:var(--wp--preset--font-family--montserrat);font-weight:700;font-size:.78rem;line-height:1;letter-spacing:.18em;text-transform:uppercase;color:#fff;margin:0 0 1.3rem}
.tp-f-list{list-style:none;margin:0;padding:0;display:grid;gap:.65rem}
.tp-footer address{font-style:normal;color:#C5D6E8;font-size:.95rem;line-height:1.55;margin:1.2rem 0 0}
.tp-footer address strong{color:#fff}
.tp-footer .wp-block-social-links .wp-social-link{background:transparent;border:1px solid rgba(255,255,255,.25);border-radius:50%}
.tp-footer .wp-block-social-links .wp-social-link a,.tp-footer .wp-block-social-links.is-style-logos-only .wp-social-link{color:#fff!important}
.tp-footer .wp-block-social-links .wp-social-link a{padding:.55rem}
.tp-footer .wp-block-social-links .wp-social-link svg{fill:currentColor}
.tp-footer .wp-block-social-links .wp-social-link:hover{background:var(--wp--preset--color--sky);border-color:var(--wp--preset--color--sky)}
.tp-footer .wp-block-social-links .wp-social-link:hover a{color:var(--wp--preset--color--deep)!important}
.tp-footer-bottom{border-top:1px solid rgba(255,255,255,.12);padding-block:1.4rem;font-size:.9rem}
.tp-footer-bottom p{margin:0}
.tp-footer .wp-block-navigation{font-size:.9rem;font-weight:400}
.tp-footer .wp-block-navigation a{color:#C5D6E8!important}

/* ---------- Responsive ---------- */
@media(max-width:781px){
	.tp-hero-cards{gap:1.2rem!important}
	.tp-hcard,.tp-hcard-2{min-height:0}
	.tp-hc-photo{aspect-ratio:1/.6}
	.tp-hcard-1 .tp-hc-deco{max-width:180px;margin-top:1.2rem!important}
}

@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition-duration:.01ms!important}}


/* =====================================================================
   Ajouts v1.0 : défilement des plateformes, études de cas, témoignages,
   démarrage, FAQ, contact, équipe, pages de service
   ===================================================================== */

/* ---------- Bandeau de plateformes (défilement CSS) ---------- */
.tp-partners{padding-block:2.2rem 2.6rem;border-bottom:1px solid var(--tp-line)}
.tp-partners .tp-eyebrow{margin-bottom:1.4rem;color:var(--wp--preset--color--slate)}
.tp-marquee{display:flex;overflow:hidden;width:100%;-webkit-mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent);mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent)}
.tp-marquee-track{display:flex;flex:none;align-items:center;gap:3.5rem;margin:0!important;padding:0 1.75rem!important;list-style:none;min-width:100%;justify-content:space-around;animation:tp-scroll 38s linear infinite}
.tp-marquee:hover .tp-marquee-track{animation-play-state:paused}
.tp-marquee-track li{margin:0;white-space:nowrap}
.tp-partner{font-family:var(--wp--preset--font-family--montserrat);font-weight:700;font-size:1.15rem;letter-spacing:-.01em;color:var(--wp--preset--color--slate);text-decoration:none;opacity:.85;transition:color .2s,opacity .2s}
a.tp-partner:hover{color:var(--wp--preset--color--navy);opacity:1}
.tp-partner img{height:30px;width:auto;display:block;filter:grayscale(1);opacity:.75}
@keyframes tp-scroll{to{transform:translateX(-100%)}}
@media(prefers-reduced-motion:reduce){.tp-marquee-track{animation:none}.tp-marquee{overflow-x:auto}}
.wp-block-theplug-partners-marquee{margin-block:0}

/* ---------- Cartes à lien dans une liste automatique ---------- */
.tp-cards-query .wp-block-post-template{gap:1.6rem}
.tp-cards-query .tp-card{height:100%}
.tp-cards-query .wp-block-post-title{font-size:1.35rem;margin:0 0 .5em}
.tp-cards-query .wp-block-post-title a{text-decoration:none;color:inherit}
.tp-cards-query .wp-block-post-excerpt{display:flex;flex-direction:column;flex:1;color:var(--wp--preset--color--slate)}
.tp-cards-query .wp-block-post-excerpt__more-text{margin:auto 0 0}
.tp-cards-query .wp-block-post-excerpt__more-link{font-weight:600;text-decoration:none;display:inline-block;margin-top:.6rem}
.tp-cards-query .wp-block-post-excerpt__more-link::after{content:"\2192";margin-left:.45rem;display:inline-block;transition:transform .25s}
.tp-cards-query .wp-block-post-excerpt__more-link:hover::after{transform:translateX(4px)}
.tp-icon-lg{width:72px;height:72px;margin-bottom:1.4rem}
.tp-icon-lg img{width:34px!important;height:34px!important}

/* ---------- Études de cas ---------- */
.tp-case-card .wp-block-post-featured-image{aspect-ratio:16/10}
.tp-case-card .wp-block-post-featured-image img{width:100%;height:100%;object-fit:cover}
.tp-case-tags{font-family:var(--wp--preset--font-family--montserrat);font-weight:700;font-size:.72rem;letter-spacing:.14em;text-transform:uppercase;color:var(--wp--preset--color--blue);margin:0 0 .3rem}
.tp-case-tags:empty{display:none}
.tp-case-card .tp-post-body{gap:.6rem}
.tp-case-card .wp-block-read-more{margin-top:auto;font-weight:600;text-decoration:none;padding-top:.4rem}
.tp-case-card .wp-block-read-more::after{content:"\2192";margin-left:.45rem;display:inline-block;transition:transform .25s}
.tp-case-card .wp-block-read-more:hover::after{transform:translateX(4px)}
.tp-case-card .wp-block-post-excerpt{font-size:.97rem}
.tp-metric-row{list-style:none;margin:.4rem 0;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:.8rem}
.tp-metric-row li{background:var(--wp--preset--color--chrome-light);border-radius:16px;padding:.8rem 1rem;display:flex;flex-direction:column;gap:.15rem;margin:0}
.tp-metric-row strong{font-family:var(--wp--preset--font-family--montserrat);font-weight:800;font-size:1.45rem;letter-spacing:-.03em;line-height:1.1;color:var(--wp--preset--color--navy)}
.tp-metric-row span{font-size:.82rem;line-height:1.3;color:var(--wp--preset--color--slate)}
.tp-entry>.wp-block-theplug-case-metrics{margin-bottom:2.4rem}
.tp-entry .tp-metric-row li{padding:1.3rem 1.5rem}
.tp-entry .tp-metric-row strong{font-size:clamp(2rem,4vw,3rem)}

/* ---------- Témoignages (CSS scroll-snap) ---------- */
.tp-slider .tp-slider-track{display:flex!important;gap:1.5rem;overflow-x:auto;scroll-snap-type:x mandatory;padding:.4rem .2rem 1.4rem;margin:0;list-style:none;-webkit-overflow-scrolling:touch;scrollbar-width:thin}
.tp-slider .tp-slider-track>li{flex:0 0 min(440px,86%);scroll-snap-align:start;margin:0}
.tp-quote{background:#fff;border:1px solid var(--tp-line);border-radius:var(--tp-r-lg);padding:2rem 2.1rem;height:100%;box-shadow:0 1px 2px rgba(12,44,82,.04);display:flex;flex-direction:column;gap:0!important}
.tp-quote-mark{font-family:var(--wp--preset--font-family--montserrat);font-weight:800;font-size:4.2rem;line-height:.7;color:var(--wp--preset--color--sky);margin:0 0 .8rem}
.tp-quote-text,.tp-quote-text p{font-size:1.08rem;line-height:1.6;color:var(--wp--preset--color--navy)}
.tp-quote-text{flex:1}
.tp-quote-who{margin-top:1.4rem;padding-top:1.1rem;border-top:1px solid var(--tp-line);gap:.1rem!important}
.tp-quote-name{font-weight:700;margin:0}
.tp-quote-role{font-size:.9rem;color:var(--wp--preset--color--slate);margin:0}

/* ---------- Comment démarrer ---------- */
.tp-start-steps{gap:1.2rem!important}
.tp-start-step{height:100%;padding:1.6rem 1.4rem;border-radius:var(--tp-r-md);background:#fff;border:1px solid var(--tp-line);gap:0!important;position:relative}
.tp-start-no{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(135deg,#051C48,#0E427E);color:#fff;font-family:var(--wp--preset--font-family--montserrat);font-weight:800;margin:0 0 1rem}
.tp-start-step h3{font-size:1.1rem;margin-bottom:.5em}
.tp-start-step p:last-child{color:var(--wp--preset--color--slate);font-size:.95rem;margin:0}
.tp-start-steps>.wp-block-column{display:flex}
.tp-start-steps>.wp-block-column>.tp-start-step{flex:1}

/* ---------- FAQ ---------- */
.tp-faq-section .wp-block-columns{gap:clamp(2rem,6vw,5rem)!important}
.tp-faq{display:grid;gap:.8rem}
.tp-faq details,.wp-block-details.tp-faq-item{background:#fff;border:1px solid var(--tp-line);border-radius:var(--tp-r-md);padding:0;margin:0;transition:box-shadow .3s,border-color .3s;overflow:hidden}
.tp-faq details[open],.wp-block-details.tp-faq-item[open]{box-shadow:var(--tp-shadow);border-color:var(--wp--preset--color--light)}
.tp-faq summary,.wp-block-details.tp-faq-item summary{cursor:pointer;list-style:none;font-family:var(--wp--preset--font-family--montserrat);font-weight:700;font-size:1.05rem;padding:1.25rem 3.4rem 1.25rem 1.6rem;position:relative;color:var(--wp--preset--color--navy)}
.tp-faq summary::-webkit-details-marker{display:none}
.tp-faq summary::after{content:"+";position:absolute;right:1.4rem;top:50%;transform:translateY(-50%);width:30px;height:30px;border-radius:50%;background:var(--wp--preset--color--chrome-light);display:grid;place-items:center;font-size:1.3rem;line-height:1;transition:transform .3s,background .3s}
.tp-faq details[open] summary::after{transform:translateY(-50%) rotate(45deg);background:var(--wp--preset--color--sky);color:#fff}
.tp-faq details>:not(summary){padding-inline:1.6rem;color:var(--wp--preset--color--slate);margin-block:0}
.tp-faq details>:last-child{padding-bottom:1.4rem}

/* ---------- Contact ---------- */
.tp-contact .tp-contact-item{margin:0 0 1rem;font-size:1.02rem;line-height:1.5}
.tp-contact .tp-contact-item strong{font-family:var(--wp--preset--font-family--montserrat);font-size:.75rem;letter-spacing:.14em;text-transform:uppercase;color:var(--wp--preset--color--blue)}
.tp-form-card{background:#fff;border:1px solid var(--tp-line);border-radius:var(--tp-r-lg);padding:clamp(1.5rem,3vw,2.4rem);box-shadow:var(--tp-shadow)}
.tp-form-card>*{margin-block:0}

/* ---------- Équipe, valeurs, histoire ---------- */
.tp-team .wp-block-post-template{gap:1.6rem}
.tp-team-card{text-align:center;gap:.3rem!important}
.tp-team-card .tp-avatar{margin:0 0 1rem}
.tp-team-card .tp-avatar img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:var(--tp-r-lg);background:var(--wp--preset--color--chrome-light)}
.tp-team-card h3{font-size:1.15rem;margin:0}
.tp-team-role{color:var(--wp--preset--color--slate);margin:0;font-size:.95rem}
.tp-story-visual{background:linear-gradient(145deg,#051C48,#0E427E 60%,#55A9DE);border-radius:var(--tp-r-lg);min-height:380px;display:grid;place-items:center;position:relative;overflow:hidden}
.tp-story-visual figure{width:46%;margin:0;position:relative}
.tp-story-visual img{filter:drop-shadow(0 12px 24px rgba(0,0,0,.35))}
.tp-placeholder{background:#FFF7DB;border:1px dashed #C9A100;border-radius:12px;padding:.8rem 1rem;font-size:.92rem;color:#6B5600}
.tp-section-head-wrap{padding-top:clamp(3rem,6vw,5rem);margin-bottom:-1.5rem}
.tp-legal>*+*{margin-top:1em}
.tp-legal h2{font-size:1.5rem;margin-top:1.8em}
.tp-legal p{font-size:1.05rem}

/* ---------- Page de service ---------- */
.tp-svc-cols{gap:clamp(2rem,5vw,4rem)!important}
.tp-svc-cols>.wp-block-column{background:none!important;padding:0!important;border-radius:0!important}
.tp-svc-cols .wp-block-post-content{font-size:1.1rem}
.tp-side-card{background:var(--wp--preset--color--chrome-light);border:1px solid var(--tp-line);border-radius:var(--tp-r-lg);padding:1.8rem;position:sticky;top:7rem}
.tp-side-card h3{margin-top:0}
.tp-ticks{list-style:none;margin:0 0 1.5rem;padding:0;display:grid;gap:.75rem}
.tp-ticks li{position:relative;padding-left:2rem;line-height:1.45;margin:0}
.tp-ticks li::before{content:"";position:absolute;left:0;top:.1em;width:1.3rem;height:1.3rem;border-radius:50%;background:var(--wp--preset--color--sky) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/70% no-repeat}
@media(max-width:781px){.tp-side-card{position:static}}

/* Les sections pleine largeur d'une page se touchent (pas de liseré blanc dû à l'espacement entre blocs) */
.wp-block-post-content>.alignfull,.is-root-container>.alignfull{margin-block-start:0!important;margin-block-end:0!important}
.tp-start{padding-bottom:clamp(1rem,3vw,2rem)}
.tp-faq-section{padding-top:clamp(2rem,4vw,3rem)}
.tp-contact .tp-lead{margin-bottom:2rem}
.tp-quote-mark{margin-bottom:.2rem}
.tp-side-card h3{margin-bottom:1rem}

/* Carrousel témoignages : défilement bord à bord (full-bleed), première carte alignée sur le conteneur au repos */
body:not(.editor-styles-wrapper) .tp-testimonials{overflow-x:clip}
body:not(.editor-styles-wrapper) .tp-testimonials .tp-slider{--tp-vw:var(--tp-vw-js,100vw);--tp-gutter:max(1.25rem,calc((var(--tp-vw) - var(--wp--style--global--wide-size,1200px))/2));width:var(--tp-vw);max-width:none!important;margin-left:calc(50% - var(--tp-vw)/2)!important;margin-right:calc(50% - var(--tp-vw)/2)!important}
body:not(.editor-styles-wrapper) .tp-testimonials .tp-slider .tp-slider-track{padding-left:var(--tp-gutter);padding-right:var(--tp-gutter);scroll-padding-left:var(--tp-gutter);scroll-padding-right:var(--tp-gutter);scrollbar-width:none}
body:not(.editor-styles-wrapper) .tp-testimonials .tp-slider .tp-slider-track::-webkit-scrollbar{display:none}
body:not(.editor-styles-wrapper) .tp-testimonials .tp-slider .tp-slider-track>li{flex:0 0 min(440px,calc(var(--tp-vw) - 2*var(--tp-gutter) - 3rem))}

/* Carrousel : défilement uniquement horizontal (aucun piège de défilement vertical) */
body:not(.editor-styles-wrapper) .tp-testimonials .tp-slider .tp-slider-track{overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;overscroll-behavior-y:auto;touch-action:pan-x pan-y;padding-top:.75rem;padding-bottom:1.5rem;align-items:stretch}
body:not(.editor-styles-wrapper) .tp-testimonials .tp-slider .tp-slider-track>li{display:flex;flex-direction:column;min-height:0}
body:not(.editor-styles-wrapper) .tp-testimonials .tp-slider .tp-slider-track>li>.tp-quote{flex:1 1 auto;height:auto}

/* ---------- Palette « chrome » (v1.0.3) : fonds gris métal clair, le bleu ciel ne reste qu'en accent ---------- */
/* Compatibilité : contenus enregistrés avant la 1.0.3 (anciennes classes) */
.has-hero-sky-gradient-background{background:var(--wp--preset--gradient--hero-chrome)!important}
.has-page-sky-gradient-background{background:var(--wp--preset--gradient--page-chrome)!important}
.has-tint-background-color{background-color:var(--wp--preset--color--chrome-light)!important}
/* Légère texture « métal brossé » sur les bandeaux clairs */
.tp-hero,.tp-page-hero,.tp-numbers{--tp-brush:repeating-linear-gradient(90deg,rgba(255,255,255,.16) 0,rgba(255,255,255,.16) 1px,rgba(12,44,82,0) 1px,rgba(12,44,82,0) 4px)}
.tp-numbers{background-image:var(--tp-brush),var(--wp--preset--gradient--chrome-band)!important}
.tp-hero::before,.tp-page-hero::before{background-image:var(--tp-brush),radial-gradient(rgba(5,28,72,.07) 1px,transparent 1.5px);background-size:auto,26px 26px}
.tp-hero .wp-block-heading em,.tp-page-hero em{background:linear-gradient(transparent 66%,rgba(255,255,255,.85) 66%)}
.wp-block-heading em,.tp-title em{background:linear-gradient(transparent 66%,rgba(85,169,222,.35) 66%)}
.tp-numbers .tp-stats>.wp-block-column{border-color:rgba(12,44,82,.18)}
.has-chrome-background-color .tp-lead,.has-chrome-background-color .has-slate-color{color:var(--wp--preset--color--navy)}

/* ---------- Mobile (≤1020px) : hamburger à GAUCHE, logo à côté, bouton « Audit gratuit » à droite si la place le permet (v1.0.4) ---------- */
@media (max-width:1020px){
	.tp-header>.alignwide{gap:.6rem!important;min-width:0}
	.tp-header>.alignwide>.wp-block-navigation{order:-1;margin-left:0!important;margin-right:0;flex:none}
	.tp-header>.alignwide>.tp-brand{order:0;min-width:0;flex:0 1 auto;margin-right:auto}
	.tp-header>.alignwide>.tp-header-cta{order:2;flex:none;margin-left:auto}
	.tp-header .wp-block-navigation__responsive-container-open{margin-left:-.5rem;padding:.5rem}
	.tp-header .tp-brand-text{min-width:0}
	.tp-header .tp-brand-1,.tp-header .tp-brand-2{white-space:nowrap}
	/* bouton d'en-tête : visible dès 520px, sinon il est dans le menu déroulant */
	.tp-header .tp-header-cta{display:none}
	.tp-header .is-menu-open .wp-block-navigation__responsive-container-close{right:auto;left:.5rem;top:.75rem}
	.tp-header .is-menu-open .wp-block-navigation__responsive-container-content{padding-top:4.5rem}
}
@media (min-width:520px) and (max-width:1020px){
	.tp-header>.alignwide>.tp-header-cta{display:flex}
	.tp-header .tp-menu-cta{display:none!important}
}
.tp-header .tp-menu-cta{display:none;margin-top:1.4rem;list-style:none}
.tp-header .is-menu-open .tp-menu-cta{display:block}
.tp-header .tp-menu-cta a{display:inline-flex;align-items:center;gap:.5rem;justify-content:center;padding:.9rem 1.6rem;border-radius:999px;background:linear-gradient(135deg,#051C48,#0E427E);color:#fff!important;font-weight:600;text-decoration:none;border:0!important}

/* ---------- Anti-débordement horizontal (v1.0.4) : aucune carte ni bloc ne doit dépasser la largeur de l'écran (iOS inclus) ---------- */
html{max-width:100%}
.wp-site-blocks{overflow-x:clip;max-width:100%}
img,video,iframe,canvas,svg,figure,table{max-width:100%}
/* grilles de requête (études de cas, articles, services…) : colonnes qui peuvent rétrécir + une colonne sur mobile */
.wp-block-post-template.is-layout-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.wp-block-post-template.is-layout-grid.columns-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.wp-block-post-template.is-layout-grid.columns-4{grid-template-columns:repeat(4,minmax(0,1fr))}
@media (max-width:781px){.wp-block-post-template.is-layout-grid.columns-3,.wp-block-post-template.is-layout-grid.columns-4{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media (max-width:600px){.wp-block-post-template.is-layout-grid[class*="columns-"]{grid-template-columns:minmax(0,1fr)!important}}
.wp-block-post-template>li,.wp-block-post-template .wp-block-post,.tp-case-card,.tp-post-card,.tp-card,.tp-hcard,.tp-quote,.tp-start-step,.wp-block-column,.wp-block-columns>*{min-width:0;max-width:100%}
.wp-block-post-featured-image,.wp-block-post-featured-image a,.wp-block-post-featured-image img,.tp-case-card figure,.tp-case-card img{display:block;width:100%;max-width:100%;min-width:0}
.tp-case-card,.tp-post-card{overflow:hidden}
.tp-case-card :where(h2,h3,h4,p,a,span,li),.tp-post-card :where(h2,h3,h4,p,a,span,li){overflow-wrap:anywhere}
.tp-metric-row{grid-template-columns:repeat(auto-fit,minmax(min(110px,100%),1fr))}
.tp-metric-row>li{min-width:0}
/* bandes décoratives : jamais plus larges que l'écran, et isolées de la mise en page */
.tp-marquee{contain:inline-size paint;max-width:100%}
.tp-hero,.tp-page-hero,.tp-cta-box,.tp-footer{contain:paint}
@media (max-width:781px){.wp-block-columns{flex-wrap:wrap!important}.wp-block-columns>.wp-block-column{flex-basis:100%!important}}
