/*
Theme Name: Benjamin Gilson 2026
Theme URI: https://benjamingilson.com
Author: Benjamin Gilson
Description: Portfolio de Benjamin Gilson — Digital Content Producer, motion design et livestream. Thème léger sans jQuery, projets gérés depuis l'admin, compatible Polylang (FR / NL / EN).
Version: 1.0.24
Requires at least: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: bg
*/

/* ---------- Polices (auto-hébergées, pas d'appel à Google) ---------- */
@font-face{font-family:Dosis;font-weight:500;font-display:swap;src:url(assets/fonts/dosis-latin-500-normal.woff2) format("woff2")}
@font-face{font-family:Dosis;font-weight:600;font-display:swap;src:url(assets/fonts/dosis-latin-600-normal.woff2) format("woff2")}
@font-face{font-family:Dosis;font-weight:700;font-display:swap;src:url(assets/fonts/dosis-latin-700-normal.woff2) format("woff2")}
@font-face{font-family:Dosis;font-weight:800;font-display:swap;src:url(assets/fonts/dosis-latin-800-normal.woff2) format("woff2")}
@font-face{font-family:Inter;font-weight:400;font-display:swap;src:url(assets/fonts/inter-latin-400-normal.woff2) format("woff2")}
@font-face{font-family:Inter;font-weight:500;font-display:swap;src:url(assets/fonts/inter-latin-500-normal.woff2) format("woff2")}
@font-face{font-family:Inter;font-weight:600;font-display:swap;src:url(assets/fonts/inter-latin-600-normal.woff2) format("woff2")}

/* ---------- Variables ---------- */
:root{
	--ink:#16121c;
	--ink-2:#221c2a;
	--ink-line:#2c2535;
	--violet:#c881f9;      /* couleur de marque : fonds, accents */
	--violet-text:#6b21a8; /* violet lisible sur blanc */
	--violet-dark:#4c1d95;
	--lilac:#f6f2fa;
	--muted:#4a4352;
	--muted-2:#5b5464;
	--soft:#d8d2e0;
	--line:#ece8f0;
	--white:#fff;
	--radius:18px;
	--wrap:1240px;
	--display:Dosis,"Arial Narrow",sans-serif;
	--body:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;
}

/* ---------- Base ---------- */
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important;animation:none!important}}
body{margin:0;font-family:var(--body);font-size:17px;line-height:1.6;color:var(--ink);background:var(--white)}
img,svg,video,iframe{max-width:100%;display:block}
img{height:auto}
a{color:var(--violet-text)}
a:hover{color:var(--violet-dark)}
h1,h2,h3,h4{font-family:var(--display);line-height:1.08;margin:0}
p{margin:0}
:focus-visible{outline:3px solid var(--violet);outline-offset:3px}
.screen-reader-text{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(1px,1px,1px,1px);white-space:nowrap}
.skip-link:focus{position:fixed;top:10px;left:10px;z-index:100;width:auto;height:auto;clip:auto;background:var(--white);color:var(--ink);padding:10px 16px;border-radius:8px}
.wrap{max-width:var(--wrap);margin:0 auto;padding:0 32px}
@media (max-width:600px){.wrap{padding:0 20px}}

.eyebrow{font-family:var(--display);font-weight:700;font-size:15px;letter-spacing:3px;text-transform:uppercase;color:var(--violet-text)}
.section-title{font-weight:800;font-size:clamp(34px,4.5vw,48px)}
.section-head{display:flex;flex-direction:column;gap:12px;max-width:720px}
.section{padding:96px 0}
.section--lilac{background:var(--lilac)}
.section--dark{background:var(--ink);color:var(--white)}
@media (max-width:600px){.section{padding:64px 0}}

/* ---------- Boutons ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:13px 26px;border-radius:999px;font:600 16px/1.2 var(--body);text-decoration:none;border:1.5px solid transparent;cursor:pointer;transition:transform .15s ease,background .15s ease}
.btn:hover{transform:translateY(-2px)}
.btn--primary{background:var(--violet);color:var(--ink)}
.btn--primary:hover{color:var(--ink);background:#d49cfb}
.btn--ghost-light{border-color:var(--white);color:var(--white)}
.btn--ghost-light:hover{color:var(--ink);background:var(--white)}
.btn--ghost{border-color:var(--ink);color:var(--ink)}
.btn--ghost:hover{color:var(--white);background:var(--ink)}

/* ---------- En-tête ---------- */
.site-header{background:var(--ink);color:var(--white);border-bottom:1px solid var(--ink-line);position:sticky;top:0;z-index:50}
.admin-bar .site-header{top:32px}
@media (max-width:782px){.admin-bar .site-header{top:46px}}
.site-header__inner{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:76px}
.logo{font-family:var(--display);font-weight:800;font-size:21px;letter-spacing:3px;text-transform:uppercase;color:var(--white);text-decoration:none;line-height:1.05}
.logo{display:inline-flex;align-items:center;gap:12px}
.logo__mark{width:44px;height:44px;border-radius:4px;flex:0 0 auto}
.logo:hover{color:var(--violet)}
.nav-toggle{display:none;background:none;border:0;color:var(--white);width:48px;height:48px;align-items:center;justify-content:center;cursor:pointer;border-radius:10px}
.nav-toggle svg{width:28px;height:28px}
.main-nav{display:flex;align-items:center;gap:28px}
.main-nav ul{list-style:none;margin:0;padding:0;display:flex;gap:28px}
.main-nav a{color:var(--white);text-decoration:none;font-weight:500;font-size:15px}
.main-nav a:hover{color:var(--violet)}
.main-nav .btn{font-size:15px;min-height:44px;padding:10px 18px}
.main-nav .lang-switch{display:flex;align-items:center;gap:0;list-style:none;margin:0;padding:0 0 0 20px;border-left:1px solid #4a4352;font-size:13px;font-weight:600}
.lang-switch a{display:block;padding:5px 7px;border-radius:6px;color:var(--soft);text-decoration:none;text-transform:uppercase}
.lang-switch a:hover{color:var(--white)}
.lang-switch .is-current a{background:var(--white);color:var(--ink)}
@media (max-width:900px){
	.nav-toggle{display:inline-flex}
	.main-nav{display:none;position:absolute;left:0;right:0;top:100%;background:var(--ink);border-bottom:1px solid var(--ink-line);flex-direction:column;align-items:flex-start;padding:20px 20px 28px;gap:20px}
	.main-nav.is-open{display:flex}
	.main-nav ul{flex-direction:column;gap:16px}
	.main-nav a{font-size:18px}
	.main-nav .lang-switch{flex-direction:row;border-left:0;padding-left:0;gap:6px}
	.lang-switch a{font-size:14px}
}

/* ---------- Hero ---------- */
.hero{background:var(--ink);color:var(--white);padding:72px 0 96px}
.hero__grid{display:flex;flex-wrap:wrap;gap:56px;align-items:center}
.hero__text{flex:1 1 460px;min-width:0;display:flex;flex-direction:column;gap:22px}
.hero__kicker{font-family:var(--display);font-weight:600;font-size:15px;letter-spacing:3px;text-transform:uppercase;color:var(--violet)}
.hero h1{font-weight:800;font-size:clamp(42px,5.6vw,66px);line-height:1.02}
.hero h1 em{font-style:normal;color:var(--violet)}
.hero__sub{font-size:22px;line-height:1.45;color:#e6e1ec}
.hero__lead{color:#bdb5c8;max-width:520px}
.hero__ctas{display:flex;flex-wrap:wrap;gap:14px;margin-top:8px}
.hero__media{flex:1 1 520px;min-width:0}
.reel{position:relative;display:block;width:100%;aspect-ratio:16/9;border-radius:20px;overflow:hidden;background:var(--ink-2);box-shadow:0 0 0 8px var(--violet);border:0;padding:0;cursor:pointer;color:inherit}
.reel img{width:100%;height:100%;object-fit:cover}
.reel iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.reel__play{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:88px;height:88px;border-radius:50%;background:var(--ink);display:flex;align-items:center;justify-content:center;transition:transform .15s ease}
.reel:hover .reel__play{transform:translate(-50%,-50%) scale(1.08)}
/* Smartphone et tablette : la vidéo passe au-dessus du texte. */
@media (max-width:1040px){
	.hero{padding:40px 0 64px}
	.hero__grid{gap:36px}
	.hero__media{order:-1}
}
.reel__label{position:absolute;left:20px;bottom:18px;background:var(--ink);color:var(--white);font:700 13px/1 var(--display);letter-spacing:2px;text-transform:uppercase;padding:8px 12px;border-radius:6px}

/* ---------- Chiffres + clients ---------- */
.proof{padding:80px 0 72px;border-bottom:1px solid var(--line)}
.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:32px;margin:0 0 56px;padding:0;list-style:none}
.stat__num{display:block;font:800 64px/1 var(--display)}
.stat__num span{color:#9333ea}
.stat__label{color:var(--muted)}
.clients__title{font:700 15px/1.3 var(--display);letter-spacing:3px;text-transform:uppercase;color:var(--muted-2);margin-bottom:22px}
.clients{display:flex;flex-wrap:wrap;align-items:center;gap:18px 44px;list-style:none;margin:0;padding:0}
.clients li{font:700 26px/1.2 var(--display);color:#77707f;letter-spacing:1px}
.clients img{height:44px;width:auto;filter:grayscale(1);opacity:.75;transition:opacity .15s ease,filter .15s ease}
.clients img:hover{filter:none;opacity:1}
/* Smartphone : chiffres et clients centrés. */
@media (max-width:600px){
	.proof{text-align:center}
	.stats{justify-items:center}
	.clients{justify-content:center}
}

/* ---------- Services ---------- */
.services{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px;margin-top:48px;align-items:stretch}
@media (max-width:1100px){.services{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:600px){.services{grid-template-columns:1fr}}
.service{background:var(--white);border-radius:var(--radius);overflow:hidden;display:flex;flex-direction:column;text-decoration:none;color:var(--ink);transition:transform .25s ease,box-shadow .25s ease}
a.service:hover{color:var(--ink);transform:translateY(-6px);box-shadow:0 18px 40px rgba(22,18,28,.12)}
.service__media{position:relative;display:block;aspect-ratio:16/10;overflow:hidden;background:var(--white)}
.service__media img{width:100%;height:100%;object-fit:cover;opacity:.2;transition:transform .5s ease,opacity .4s ease}
a.service:hover .service__media img,a.service:focus-visible .service__media img{transform:scale(1.06);opacity:.75}
/* Écrans tactiles (pas de survol) : images directement à 75 %. */
@media (hover:none){.service__media img{opacity:.75}}
.service__body{position:relative;display:flex;flex-direction:column;gap:10px;padding:34px 24px 22px;flex:1}
.service__icon{position:absolute;top:-26px;left:24px;width:52px;height:52px;border-radius:14px;background:var(--violet);color:var(--ink);display:flex;align-items:center;justify-content:center;box-shadow:0 0 0 4px var(--white);transition:transform .35s cubic-bezier(.34,1.56,.64,1),background .25s ease,color .25s ease}
.service__icon svg{width:26px;height:26px}
a.service:hover .service__icon{transform:rotate(-8deg) scale(1.12);background:var(--ink);color:var(--violet)}
.service h3{font-weight:700;font-size:23px;line-height:1.1}
.service p{color:var(--muted);font-size:15px;line-height:1.55;flex:1}
.service__more{display:flex;align-items:center;gap:8px;font-weight:600;font-size:14px;color:var(--violet-text);padding-top:12px;border-top:1px solid var(--line)}
.service__arrow{transition:transform .25s ease}
a.service:hover .service__arrow{transform:translateX(6px)}
.services__split{display:flex;flex-direction:column;gap:20px}
.service--half{flex:1}
.service--half .service__media{aspect-ratio:auto;height:118px}
.service--half .service__body{padding:26px 20px 16px;gap:6px}
.service--half .service__icon{top:-20px;left:20px;width:40px;height:40px;border-radius:11px}
.service--half .service__icon svg{width:21px;height:21px}
.service--half h3{font-size:20px}
.service--half p{font-size:13.5px}
.service--half .service__more{font-size:13px;padding-top:10px}
.service--quiet .service__body{padding:20px}
.service--quiet .service__icon{position:static;background:#efeff1;color:var(--muted-2);box-shadow:none}
.service--quiet .service__media + .service__body .service__icon{display:none}

/* ---------- Projets ---------- */
.projects-head{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:40px}
.filters{display:flex;flex-wrap:wrap;gap:8px;list-style:none;margin:0;padding:0}
.filter{display:inline-flex;align-items:center;min-height:44px;padding:10px 16px;border-radius:999px;border:1.5px solid #cfc8d8;background:var(--white);color:var(--ink);font:600 14px/1 var(--body);text-decoration:none;cursor:pointer}
.filter:hover{border-color:var(--ink);color:var(--ink)}
.filter.is-active,.filter[aria-pressed="true"]{background:var(--ink);border-color:var(--ink);color:var(--white)}
.cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:40px 24px}
@media (max-width:1100px){.cards{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:820px){.cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:540px){.cards{grid-template-columns:1fr}}
.card{display:flex;flex-direction:column;gap:12px;text-decoration:none;color:var(--ink)}
.card:hover{color:var(--ink)}
.card__media{position:relative;aspect-ratio:16/9;border-radius:14px;overflow:hidden;background:var(--lilac)}
.card__media img{width:100%;height:100%;object-fit:cover;transition:transform .3s ease}
.card:hover .card__media img{transform:scale(1.04)}
.card__media--empty{display:flex;align-items:center;justify-content:center;background:var(--ink);color:var(--soft);font:700 15px/1 var(--display);letter-spacing:2px;text-transform:uppercase}
.card__body{display:flex;flex-direction:column;gap:12px}
.card__meta{font-size:13px;font-weight:600;color:var(--violet-text);text-transform:uppercase;letter-spacing:1.5px}
.card h3{font-weight:700;font-size:21px;line-height:1.15}
.card p{font-size:15px;color:var(--muted)}
.card[hidden]{display:none}
.projects-more{display:flex;justify-content:center;margin-top:48px}
/* Smartphone : l'accueil ne montre que les 4 premiers projets. */
@media (max-width:600px){
	#projets .cards .card:nth-child(n+5){display:none}
	.projects-more{margin-top:32px}
}

/* ---------- « À côté » : section secondaire, volontairement plus discrète ---------- */
.side{background:#efeff1;padding:56px 0 64px;border-top:1px solid #e2e1e6}
.side__head{display:flex;flex-direction:column;gap:6px;margin-bottom:28px;max-width:640px}
.side__head .eyebrow{font-size:13px;color:var(--muted-2)}
.side__head h2{font-weight:700;font-size:28px}
.side__head p:last-child{color:var(--muted);font-size:15px}
.cards--compact{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.cards--compact .card{flex-direction:row;align-items:center;gap:16px;background:var(--white);border-radius:12px;padding:12px}
.cards--compact .card__media{flex:0 0 132px;border-radius:8px}
.cards--compact .card__meta{font-size:11px;letter-spacing:1px}
.cards--compact .card h3{font-size:18px}
.cards--compact .card p{font-size:14px}
.cards--compact .card__body{gap:4px;min-width:0}
@media (max-width:820px){.cards--compact{grid-template-columns:1fr}}
@media (max-width:480px){.cards--compact .card__media{flex-basis:96px}}

/* ---------- Témoignage ---------- */
.quote{background:var(--violet);border-radius:24px;padding:56px 48px;margin:0}
.quote blockquote{margin:0;font:700 clamp(24px,3vw,34px)/1.2 var(--display);color:var(--ink);max-width:900px}
.quote figcaption{margin-top:20px;font-weight:500}
@media (max-width:600px){.quote{padding:36px 24px}}

/* ---------- À propos + outils ---------- */
.about{display:flex;flex-wrap:wrap;gap:64px}
.about__text{flex:1 1 460px;min-width:0;display:flex;flex-direction:column;gap:22px}
.about__intro{display:flex;align-items:center;gap:20px}
.about__intro img{width:112px;height:112px;border-radius:50%;object-fit:cover;box-shadow:0 0 0 5px var(--violet);flex:0 0 auto}
.about__intro h2{font-weight:800;font-size:clamp(30px,3.4vw,40px)}
.about__text p{color:#2f2937}
.about__tools{flex:1 1 420px;min-width:0;display:flex;flex-direction:column;gap:20px}
.about__tools h3{font-weight:700;font-size:24px}
.tools{margin:0;background:var(--white);border-radius:var(--radius);padding:8px 28px}
.tools div{display:flex;flex-wrap:wrap;gap:4px 20px;padding:16px 0;border-bottom:1px solid var(--line)}
.tools div:last-child{border-bottom:0}
.tools dt{flex:0 0 170px;font-weight:600;font-size:15px;color:#9333ea}
.tools dd{margin:0;flex:1 1 220px;font-size:15px;color:var(--muted)}

/* ---------- Contact ---------- */
.contact{display:flex;flex-wrap:wrap;gap:64px}
.contact__text{flex:1 1 420px;min-width:0;display:flex;flex-direction:column;gap:20px}
.contact__text h2{font-weight:800;font-size:clamp(36px,4.4vw,52px)}
.contact__text p{font-size:18px;color:var(--soft)}
.contact__text a{color:var(--violet);font-weight:600}
.contact-form{flex:1 1 460px;min-width:0;display:flex;flex-direction:column;gap:16px}
.contact-form__row{display:flex;flex-wrap:wrap;gap:16px}
.field{flex:1 1 200px;display:flex;flex-direction:column;gap:6px}
.field label{font-size:14px;font-weight:600;color:#e6e1ec}
.field input,.field textarea{font:inherit;font-size:16px;padding:13px 14px;border-radius:10px;border:1.5px solid #5b5464;background:var(--ink-2);color:var(--white);width:100%}
.field textarea{resize:vertical;min-height:150px}
.field input:focus,.field textarea:focus{border-color:var(--violet);outline:none}
.hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.notice{padding:14px 18px;border-radius:10px;font-weight:500}
.notice--ok{background:#e9fbe9;color:#14532d}
.notice--err{background:#fde8e8;color:#7f1d1d}
.contact-form .btn{align-self:flex-start;border:0}

/* ---------- Pied de page ---------- */
.site-footer{background:var(--ink);color:#bdb5c8;border-top:1px solid var(--ink-line);padding:28px 0;font-size:14px}
.site-footer__inner{display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px}
.site-footer nav{display:flex;flex-wrap:wrap;gap:20px}
.site-footer a{color:#e6e1ec}
.site-footer a:hover{color:var(--violet)}

/* ---------- Pages intérieures ---------- */
.page-hero{background:var(--ink);color:var(--white);padding:64px 0 56px}
.page-hero h1{font-weight:800;font-size:clamp(36px,5vw,56px);margin-top:10px}
.page-hero .eyebrow{color:var(--violet)}
.page-hero p{color:var(--soft);max-width:680px;margin-top:16px;font-size:18px}
.back-link{color:var(--soft);text-decoration:none;font-size:15px}
.back-link:hover{color:var(--violet)}

.project{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:56px;align-items:start}
@media (max-width:900px){.project{grid-template-columns:1fr;gap:40px}}
.videos{display:flex;flex-direction:column;gap:24px}
.video{position:relative;aspect-ratio:16/9;border-radius:16px;overflow:hidden;background:var(--ink)}
.video iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.project__body{display:flex;flex-direction:column;gap:28px;margin-top:40px}
.project__body a{font-weight:600}
.project__body h2{font-weight:700;font-size:26px;margin-bottom:10px}
.project__aside{background:var(--lilac);border-radius:var(--radius);padding:28px;display:flex;flex-direction:column;gap:22px;position:sticky;top:110px}
.project__aside h2{font:700 13px/1.3 var(--body);letter-spacing:1.5px;text-transform:uppercase;color:var(--violet-text);margin-bottom:6px}
.project__aside ul{margin:0;padding-left:18px}
.project__aside li{margin:2px 0}
.project-nav{display:flex;flex-wrap:wrap;justify-content:space-between;gap:16px;margin-top:72px;padding-top:28px;border-top:1px solid var(--line)}
.project-nav a{font-weight:600;text-decoration:none}

.gallery-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.gallery-grid--single{grid-template-columns:1fr}
.gallery-grid__item{display:block;border-radius:12px;overflow:hidden;background:var(--lilac)}
.gallery-grid__item img{width:100%;height:100%;object-fit:cover;transition:transform .3s ease}
.gallery-grid__item:hover img{transform:scale(1.03)}
@media (max-width:540px){.gallery-grid{grid-template-columns:1fr}}
.lightbox{border:0;padding:0;background:transparent;max-width:94vw;max-height:94vh}
.lightbox::backdrop{background:rgba(22,18,28,.88)}
.lightbox img{max-width:94vw;max-height:90vh;border-radius:10px;display:block}
.lightbox button{position:fixed;top:16px;right:20px;width:48px;height:48px;border-radius:50%;border:0;background:var(--white);color:var(--ink);font-size:26px;cursor:pointer}
.entry{max-width:760px}
/* Pages simples : le texte reste étroit, la grille de cartes prend toute la largeur, comme sur la page Projets. */
.page-template-default .entry{max-width:none}
.page-template-default .entry > *:not(.cards){max-width:760px}
.entry .cards--selection{margin:48px 0}
.entry .cards--selection .card h3{margin:0}
.entry .cards--selection .card p{margin:0}
.entry > * + *{margin-top:1.1em}
.entry h2{font-size:32px;margin-top:1.6em}
.entry h3{font-size:24px;margin-top:1.4em}

.minipomme-frame{width:100%;height:min(80vh,720px);border:0;border-radius:16px;background:var(--ink)}

/* ---------- Page « Sélection de projets » ---------- */
.section--intro{padding:64px 0}
.selection-intro{max-width:760px;display:flex;flex-direction:column;gap:18px;font-size:18px;color:#2f2937}
.selection-intro a{font-weight:600}
.selection-ctas{gap:14px}
@media (max-width:600px){.section--intro{padding:44px 0}}

/* ---------- Services : 5 colonnes égales (grand écran) ---------- */
.services__split{display:contents} /* les 2 cartes empilées deviennent 2 colonnes */
.service--half{flex:initial}
.service--half .service__media{aspect-ratio:16/10;height:auto}
.service--half .service__body{padding:34px 20px 22px;gap:10px}
.service--half .service__icon{top:-26px;left:20px;width:52px;height:52px;border-radius:14px}
.service--half .service__icon svg{width:26px;height:26px}
.service--half p{font-size:15px}
.service--half .service__more{font-size:14px;padding-top:12px}

@media (min-width:1101px){
	.services{grid-template-columns:repeat(5,minmax(0,1fr));gap:16px}
	.service__body{padding:34px 20px 22px}
	.service__icon{left:20px}
	.service h3{font-size:21px}
}