/*
Theme Name: Studio Créateur FR
Description: Thème d'avis et de tests d'outils pour créateurs, structure inspirée d'une vidéo d'avis (accroche, fonctionnement, points d'attention, tarifs, verdict, alternatives, FAQ, transparence). Couleurs de la chaîne Studio Créateur FR.
Version: 1.0.0
Author: Studio Créateur FR
Text Domain: studio-createur
Requires at least: 6.0
Requires PHP: 7.4
*/

:root{
  --bg:#FAF8F4;
  --bg-2:#F1EDE6;
  --card:#FFFFFF;
  --line:#E3DED5;
  --blue:#1F7BFF;
  --cyan:#0A7FD1;
  --red:#FF2D3F;
  --orange:#FF7A1A;
  --yellow:#C98A00;
  --text:#151A2E;
  --muted:#5A6377;
  --radius:16px;
  --glow:0 8px 24px rgba(31,123,255,.18);
  --grad:linear-gradient(90deg,var(--blue),var(--cyan));
  --grad-hot:linear-gradient(90deg,var(--red),var(--orange));
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--text);font:17px/1.7 "Inter",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif}
a{color:var(--cyan);text-decoration:none}
a:hover{text-decoration:underline}
img{max-width:100%;height:auto}
h1,h2,h3{font-family:"Montserrat","Inter",system-ui,sans-serif;line-height:1.15;margin:0 0 .6em;font-weight:800;letter-spacing:-.01em}
h1{font-size:clamp(2rem,5vw,3.4rem)}
h2{font-size:clamp(1.5rem,3vw,2.1rem)}
h3{font-size:1.2rem}
.wrap{max-width:1100px;margin:0 auto;padding:0 20px}
.narrow{max-width:780px}
section.block{padding:56px 0;border-top:1px solid var(--line)}
.eyebrow{display:inline-block;font-size:.8rem;font-weight:700;text-transform:uppercase;letter-spacing:.12em;color:var(--cyan);margin-bottom:10px}
.muted{color:var(--muted)}

/* Header */
.site-header{position:sticky;top:0;z-index:50;background:rgba(250,248,244,.92);backdrop-filter:blur(10px);border-bottom:1px solid var(--line)}
.site-header .wrap{display:flex;align-items:center;justify-content:space-between;height:68px}
.brand{font:800 1.2rem "Montserrat",sans-serif;color:var(--text);text-transform:uppercase;letter-spacing:.04em}
.brand span{background:var(--grad-hot);-webkit-background-clip:text;background-clip:text;color:transparent}
.brand:hover{text-decoration:none}
.nav ul{display:flex;gap:22px;list-style:none;margin:0;padding:0}
.nav a{color:var(--text);font-weight:600;font-size:.95rem}
.nav a:hover{color:var(--cyan);text-decoration:none}
.menu-btn{display:none;background:none;border:1px solid var(--line);color:var(--text);border-radius:10px;padding:8px 12px;font-size:1rem}

/* Buttons */
.btn{display:inline-block;border:0;cursor:pointer;font:700 1rem "Inter",sans-serif;padding:14px 26px;border-radius:999px;color:#fff;background:var(--grad);box-shadow:var(--glow);transition:transform .15s}
.btn:hover{transform:translateY(-2px);text-decoration:none}
.btn.hot{background:var(--grad-hot);box-shadow:0 0 24px rgba(255,45,63,.3)}
.btn.ghost{background:transparent;border:1px solid var(--line);box-shadow:none}

/* Hero */
.hero{padding:72px 0 56px;background:
  radial-gradient(700px 360px at 85% 0%,rgba(31,123,255,.14),transparent 70%),
  radial-gradient(520px 300px at 0% 100%,rgba(255,45,63,.08),transparent 70%)}
.hero .grid{display:grid;grid-template-columns:1.1fr .9fr;gap:40px;align-items:center}
.hero h1 em{font-style:normal;background:var(--grad-hot);-webkit-background-clip:text;background-clip:text;color:transparent}
.hero p.lead{font-size:1.15rem;color:var(--muted);max-width:56ch}
.hero .cta{display:flex;gap:12px;flex-wrap:wrap;margin-top:24px}
.video{position:relative;aspect-ratio:16/9;border-radius:var(--radius);overflow:hidden;border:1px solid var(--line);box-shadow:var(--glow);background:var(--card)}
.video iframe,.video .ph{position:absolute;inset:0;width:100%;height:100%;border:0}
.video .ph{display:grid;place-items:center;color:var(--muted);font-weight:600;text-align:center;padding:20px}

/* Sommaire (chapitres) */
.toc{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:22px 26px}
.toc h3{margin-bottom:12px}
.toc ol{margin:0;padding-left:0;list-style:none;display:grid;grid-template-columns:repeat(2,1fr);gap:6px 28px;counter-reset:c}
.toc li{counter-increment:c}
.toc li a{color:var(--text);display:flex;gap:10px}
.toc li a:before{content:counter(c,decimal-leading-zero);color:var(--orange);font-weight:800;font-variant-numeric:tabular-nums}

/* Cards / étapes */
.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:24px}
.card .n{display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:var(--grad);font-weight:800;margin-bottom:14px}
.card.hot .n{background:var(--grad-hot)}

/* Tableaux */
.table-wrap{overflow-x:auto;border:1px solid var(--line);border-radius:var(--radius)}
table{width:100%;border-collapse:collapse;min-width:520px}
th,td{padding:14px 18px;text-align:left;border-bottom:1px solid var(--line)}
th{background:var(--bg-2);color:var(--cyan);font-size:.85rem;text-transform:uppercase;letter-spacing:.08em}
tr:last-child td{border-bottom:0}
.note{font-size:.9rem;color:var(--muted);margin-top:12px}

/* Pour / contre */
.proscons{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.proscons .col{background:var(--card);border-radius:var(--radius);padding:24px;border:1px solid var(--line)}
.proscons .pro{border-top:4px solid var(--cyan)}
.proscons .con{border-top:4px solid var(--red)}
.proscons ul{margin:0;padding-left:20px}
.proscons li{margin:6px 0}

/* Verdict */
.verdict{background:linear-gradient(135deg,rgba(31,123,255,.18),rgba(255,45,63,.14));border:1px solid var(--line);border-radius:var(--radius);padding:32px;display:grid;grid-template-columns:auto 1fr;gap:28px;align-items:center}
.score{width:110px;height:110px;border-radius:50%;display:grid;place-items:center;text-align:center;background:var(--bg);border:3px solid var(--yellow);font:800 2rem "Montserrat",sans-serif;color:var(--yellow);box-shadow:0 0 0 6px rgba(201,138,0,.10)}
.score small{display:block;font-size:.75rem;color:var(--muted);font-weight:600}

/* Alternatives */
.alt{display:flex;justify-content:space-between;align-items:center;gap:18px;background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:20px 24px;margin-bottom:12px}
.alt p{margin:4px 0 0;color:var(--muted);font-size:.95rem}

/* FAQ */
details{background:var(--card);border:1px solid var(--line);border-radius:12px;padding:16px 20px;margin-bottom:10px}
summary{cursor:pointer;font-weight:700;list-style:none}
summary::-webkit-details-marker{display:none}
summary:after{content:"+";float:right;color:var(--orange);font-size:1.3rem;line-height:1}
details[open] summary:after{content:"–"}
details p{margin:12px 0 0;color:var(--muted)}

/* Transparence */
.disclosure{background:var(--bg-2);border-left:4px solid var(--yellow);border-radius:10px;padding:18px 22px;font-size:.92rem;color:var(--muted)}
.disclosure strong{color:var(--yellow)}

/* Liste d'avis */
.grid-posts{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.post-card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;display:flex;flex-direction:column;transition:transform .15s}
.post-card:hover{transform:translateY(-4px)}
.post-card .thumb{aspect-ratio:16/9;background:var(--bg-2) center/cover}
.post-card .body{padding:18px}
.post-card h3 a{color:var(--text)}
.tag{font-size:.75rem;font-weight:700;color:var(--orange);text-transform:uppercase;letter-spacing:.1em}

/* Article */
.entry{padding:48px 0}
.entry .content h2{margin-top:2em;padding-top:.6em}
.entry .content h2:before{content:"";display:block;width:48px;height:4px;border-radius:4px;background:var(--grad-hot);margin-bottom:14px}
.entry .content blockquote{border-left:4px solid var(--cyan);margin:1.4em 0;padding:4px 20px;color:var(--muted)}

/* Footer */
.site-footer{border-top:1px solid var(--line);background:var(--bg-2);padding:40px 0;margin-top:40px;font-size:.92rem;color:var(--muted)}
.site-footer .wrap{display:flex;justify-content:space-between;gap:24px;flex-wrap:wrap}

@media(max-width:860px){
  .hero .grid,.cards,.proscons,.grid-posts,.toc ol{grid-template-columns:1fr}
  .verdict{grid-template-columns:1fr;text-align:center;justify-items:center}
  .menu-btn{display:block}
  .nav{display:none;position:absolute;top:68px;left:0;right:0;background:var(--bg);border-bottom:1px solid var(--line);padding:16px 20px}
  .nav.open{display:block}
  .nav ul{flex-direction:column;gap:14px}
  .alt{flex-direction:column;align-items:flex-start}
}

/* ===== Accueil « média » (structure one-page) ===== */
.eyebrow.dot:before{content:"";display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--yellow);margin-right:10px}
.link-arrow{color:var(--text);font-weight:700;font-size:.95rem;align-self:center}
.hero .cta{align-items:center}
.hero h1 em{font-style:normal}
.strip{display:flex;gap:28px;align-items:center;flex-wrap:wrap;margin-top:56px;padding-top:20px;border-top:1px solid var(--line);font-size:.88rem;color:var(--text)}
.strip .muted-caps{color:var(--muted);text-transform:uppercase;letter-spacing:.12em;font-size:.72rem}
.strip span:not(.muted-caps):first-of-type{margin-left:auto}
.strip a{margin-left:auto;font-weight:700}
.steps-visual{position:relative;min-height:340px}
.orb{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:200px;height:200px;border-radius:50%;background:radial-gradient(circle at 35% 30%,var(--cyan),var(--blue) 55%,#0A2A6B);box-shadow:0 0 70px rgba(31,123,255,.5),0 0 0 36px rgba(31,123,255,.08),0 0 0 72px rgba(31,123,255,.05);display:grid;place-items:center}
.orb .play{width:0;height:0;border-left:42px solid #fff;border-top:26px solid transparent;border-bottom:26px solid transparent;margin-left:12px;filter:drop-shadow(0 0 12px rgba(255,45,63,.8))}
.step-card{position:absolute;background:var(--card);border:1px solid var(--line);border-radius:14px;padding:14px 20px;min-width:210px;box-shadow:0 10px 30px rgba(21,26,46,.12)}
.step-card small{display:block;color:var(--muted);font-size:.7rem;text-transform:uppercase;letter-spacing:.1em}
.step-card strong{font:800 1.15rem "Montserrat",sans-serif}
.step-card.s1{left:0;top:14px;transform:rotate(-3deg)}
.step-card.s2{right:0;top:50%;transform:translateY(-10%) rotate(2deg)}
.step-card.s3{left:8%;bottom:6px;transform:rotate(-2deg)}
.step-card.hl{background:var(--grad-hot);border-color:transparent}
.step-card.hl small{color:rgba(255,255,255,.85)}
.head-row{display:grid;grid-template-columns:1.2fr 1fr;gap:40px;align-items:end;margin-bottom:32px}
.head-row p{margin:0}
.need{display:grid;grid-template-columns:1fr 1fr;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;background:var(--card)}
.need-list{list-style:none;margin:0;padding:0;border-right:1px solid var(--line)}
.need-list li{border-bottom:1px solid var(--line);border-left:4px solid transparent}
.need-list li:last-child{border-bottom:0}
.need-list li.on,.need-list li:hover{background:rgba(31,123,255,.12);border-left-color:var(--cyan)}
.need-list a{display:flex;align-items:center;gap:18px;padding:26px 24px;color:var(--text)}
.need-list a:hover{text-decoration:none}
.need-list span{color:var(--muted);font-size:.8rem}
.need-list div{flex:1}
.need-list strong{display:block;font:800 1.25rem "Montserrat",sans-serif}
.need-list small{color:var(--muted)}
.need-list i{font-style:normal;color:var(--cyan);font-size:1.3rem}
.checklist{padding:32px}
.checklist ul{list-style:none;padding:0;margin:18px 0}
.checklist li{padding-left:28px;position:relative;margin:10px 0}
.checklist li:before{content:"✓";position:absolute;left:0;color:var(--cyan);font-weight:800}
.video-band{background:linear-gradient(120deg,#EAF2FF,#F7F4EE 60%,#FFEDEA)}
.video-band .grid{display:grid;grid-template-columns:1fr 1fr;gap:40px;align-items:center}
h2.big{font-size:clamp(2rem,4.5vw,3.2rem)}
h2.big em{font-style:normal;color:var(--yellow)}
.principles{display:grid;grid-template-columns:repeat(3,1fr);gap:36px}
.principles b{color:var(--orange);font:800 1.1rem "Montserrat",sans-serif}
#projet .grid{display:grid;grid-template-columns:1fr 1fr;gap:40px;align-items:center}
.contact{padding:84px 0;text-align:center;background:radial-gradient(600px 300px at 50% 0%,rgba(31,123,255,.12),transparent 70%),var(--bg-2);border-top:1px solid var(--line)}
.contact p{color:var(--muted);max-width:52ch;margin:0 auto 24px}
.header-cta{border:1px solid var(--line);border-radius:10px;padding:10px 16px;font-weight:700;font-size:.9rem;color:var(--text);background:var(--card)}
.header-cta:hover{border-color:var(--cyan);text-decoration:none}
@media(max-width:860px){
  .head-row,.need,.video-band .grid,.principles,#projet .grid{grid-template-columns:1fr}
  .need-list{border-right:0;border-bottom:1px solid var(--line)}
  .steps-visual{min-height:320px}
  .strip span:not(.muted-caps):first-of-type,.strip a{margin-left:0}
}

/* Images d'article */
.entry .content figure{margin:28px 0}
.entry .content figure img{display:block;width:100%;border-radius:12px;border:1px solid var(--line);box-shadow:0 12px 32px rgba(21,26,46,.12)}
.entry .content figcaption{margin-top:10px;font-size:.88rem;color:var(--muted);text-align:center}
.entry .content .table-wrap{margin:20px 0}
.entry .content .proscons,.entry .content .verdict{margin:24px 0}
.verdict.no-score{grid-template-columns:1fr}

/* À lire aussi */
.related{background:var(--bg-2)}
.entry .content a{text-decoration:underline;text-decoration-color:rgba(10,127,209,.45);text-underline-offset:3px}

/* Thème clair */
:root{color-scheme:light}
.site-footer strong{color:var(--text)}
.btn.ghost{color:var(--text);background:var(--card)}

/* Logo Clap */
.brand{display:inline-flex;align-items:center;gap:10px}
.brand img{width:40px;height:40px;flex:none}

/* Encadré lien affilié */
.cta-box{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:28px 0;padding:22px 24px;background:var(--card);border:1px solid var(--line);border-left:4px solid var(--red);border-radius:0 var(--radius) var(--radius) 0}
.cta-box strong{font:800 1.15rem "Montserrat",sans-serif}
.cta-box p{margin:4px 0 0;color:var(--muted)}
.cta-box .cta-code b{color:var(--text);background:var(--bg-2);border:1px dashed var(--line);padding:2px 8px;border-radius:6px;font-family:ui-monospace,monospace}
.cta-act{display:flex;flex-direction:column;align-items:center;gap:6px;flex:none}
.cta-act small{color:var(--muted);font-size:.75rem}
.entry .content .cta-box a.btn{text-decoration:none;color:#fff}
@media(max-width:860px){.cta-box{flex-direction:column;align-items:flex-start}.cta-act{align-items:flex-start}}
.hero-code{font-size:.9rem;color:var(--muted)}
.hero-code b{color:var(--text);background:var(--card);border:1px dashed var(--line);padding:3px 9px;border-radius:6px;font-family:ui-monospace,monospace}

/* Accroche en haut des avis */
.tldr{position:relative;display:block;background:#FFF4CC;border:1px solid #F2D675;border-radius:var(--radius);padding:22px 26px;margin:0 0 28px;color:var(--text)}
.tldr:hover{border-color:#E0B93A;text-decoration:none}
.tldr .tldr-titre{display:block;font:800 1.05rem "Montserrat",sans-serif;margin-bottom:8px}
.tldr p{margin:0}
.tldr .tldr-lien{display:inline-block;margin-top:10px;font-weight:700;color:#0A5FB4;text-decoration:underline;text-underline-offset:3px}
.tldr .tldr-code{display:inline-block;margin-top:8px;font-size:.92rem}
.tldr .tldr-code b{background:#fff;border:1px dashed #E0B93A;padding:2px 8px;border-radius:6px;font-family:ui-monospace,monospace}
.tldr small{display:block;margin-top:8px;color:#7A6A2E;font-size:.75rem}

/* Encadrés et captures cliquables en entier */
.cta-box{position:relative;cursor:pointer}
.cta-box a.btn::after{content:"";position:absolute;inset:0}
.cta-box:hover{border-color:var(--red)}
.cap-link{display:block;position:relative}
.cap-link::after{content:"Voir le site ↗";position:absolute;right:12px;bottom:12px;background:var(--grad-hot);color:#fff;font-weight:700;font-size:.85rem;padding:6px 12px;border-radius:999px;opacity:.95}
.cap-link:hover img{outline:3px solid var(--red)}

/* Barre flottante */
.sc-sticky{position:fixed;left:0;right:0;bottom:0;z-index:60;background:var(--grad-hot);box-shadow:0 -6px 24px rgba(255,45,63,.35)}
.sc-sticky-link{display:flex;align-items:center;justify-content:center;gap:18px;padding:12px 56px 12px 20px;color:#fff;max-width:1100px;margin:0 auto}
.sc-sticky-link:hover{text-decoration:none}
.sc-sticky-txt{font-size:1rem}
.sc-sticky-txt b{background:rgba(255,255,255,.2);padding:2px 8px;border-radius:6px;font-family:ui-monospace,monospace}
.sc-sticky-btn{background:#fff;color:var(--red);font-weight:800;padding:9px 18px;border-radius:999px;white-space:nowrap}
.sc-sticky-close{position:absolute;right:12px;top:50%;transform:translateY(-50%);background:rgba(255,255,255,.25);border:0;color:#fff;width:30px;height:30px;border-radius:50%;font-size:1.1rem;cursor:pointer}
body.has-sticky{padding-bottom:72px}
@media(max-width:860px){.sc-sticky-link{gap:10px;padding:10px 50px 10px 14px;font-size:.9rem}.sc-sticky-txt{display:none}.sc-sticky-btn{flex:1;text-align:center}}

/* Menu avec sous-menus */
.nav .menu{display:flex;align-items:center;gap:6px;list-style:none;margin:0;padding:0}
.nav .menu > li{position:relative}
.nav .menu > li > a,.sub-toggle{display:block;padding:10px 14px;border-radius:10px;color:var(--text);font:600 .95rem "Inter",sans-serif;background:none;border:0;cursor:pointer}
.nav .menu > li > a:hover,.sub-toggle:hover,.has-sub:hover > .sub-toggle,.has-sub.open > .sub-toggle{background:#FFE9A8;text-decoration:none}
.sub-toggle span{font-size:.75rem;margin-left:4px}
.nav .sub{display:none;flex-direction:column;gap:0;position:absolute;top:100%;left:0;min-width:260px;list-style:none;margin:0;padding:6px 0;background:var(--card);border:1px solid var(--line);border-top:3px solid var(--text);box-shadow:0 14px 30px rgba(21,26,46,.12);z-index:70}
.sub li a{display:block;padding:12px 18px;color:var(--text);font-weight:500;border-bottom:1px solid var(--line)}
.sub li:last-child a{border-bottom:0}
.sub li a:hover{background:var(--bg-2);text-decoration:none}
.nav .has-sub:hover > .sub,.nav .has-sub:focus-within > .sub,.nav .has-sub.open > .sub{display:block}
.menu-cta{margin-left:10px}
.header-cta{display:block;background:#151A2E;color:#fff!important;border:0;border-radius:14px;padding:10px 18px;font:700 .95rem "Inter",sans-serif;line-height:1.2}
.header-cta small{display:block;font-size:.7rem;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:#FFD66B}
.header-cta:hover{background:#000;text-decoration:none}
.site-header .wrap{height:auto;min-height:72px}
@media(max-width:1020px){
  .menu-btn{display:block}
  .nav{display:none;position:absolute;top:100%;left:0;right:0;background:var(--bg);border-bottom:1px solid var(--line);padding:12px 16px;max-height:80vh;overflow:auto}
  .nav.open{display:block}
  .nav .menu{flex-direction:column;align-items:stretch;gap:2px}
  .nav .sub{position:static;box-shadow:none;border-top:1px solid var(--line);min-width:0}
  .nav .has-sub:hover > .sub,.nav .has-sub:focus-within > .sub{display:none}
  .nav .has-sub.open > .sub{display:block}
  .menu-cta{margin:8px 0 0}
}

/* Bouton YouTube + assistant (bas à droite) */
.sc-float{position:fixed;right:18px;bottom:18px;z-index:65;display:flex;flex-direction:column;align-items:flex-end;gap:10px}
body.has-sticky .sc-float{bottom:86px}
.sc-yt{width:48px;height:48px;border-radius:50%;background:#FF0000;display:grid;place-items:center;box-shadow:0 6px 18px rgba(255,0,0,.35)}
.sc-yt:hover{transform:scale(1.06)}
.sc-bot-open{display:flex;align-items:center;gap:8px;background:#151A2E;color:#fff;border:0;border-radius:999px;padding:6px 16px 6px 6px;font:700 .9rem "Inter",sans-serif;cursor:pointer;box-shadow:0 8px 24px rgba(21,26,46,.3)}
.sc-bot-open img{background:#fff;border-radius:50%;padding:3px}
.sc-bot{width:340px;max-width:calc(100vw - 36px);background:var(--card);border:1px solid var(--line);border-radius:18px;box-shadow:0 18px 40px rgba(21,26,46,.18);overflow:hidden}
.sc-bot-head{display:flex;align-items:center;gap:10px;padding:12px 14px;background:#151A2E;color:#fff}
.sc-bot-head small{display:block;font-size:.75rem;color:#C9D2E6}
.sc-bot-x{margin-left:auto;background:rgba(255,255,255,.15);border:0;color:#fff;width:28px;height:28px;border-radius:50%;cursor:pointer}
.sc-bot-body{max-height:360px;overflow:auto;padding:14px;display:flex;flex-direction:column;gap:10px}
.sc-msg{background:var(--bg-2);padding:10px 12px;border-radius:12px 12px 12px 4px;font-size:.92rem;line-height:1.5;max-width:90%}
.sc-moi{align-self:flex-end;background:#E6F0FF;border-radius:12px 12px 4px 12px}
.sc-choix{display:flex;flex-wrap:wrap;gap:6px}
.sc-choix a,.sc-choix button{border:1px solid var(--blue);color:var(--blue);background:#fff;border-radius:999px;padding:6px 12px;font:600 .85rem "Inter",sans-serif;cursor:pointer;text-decoration:none}
.sc-choix a:hover,.sc-choix button:hover{background:var(--blue);color:#fff}
@media(max-width:600px){.sc-bot-open span{display:none}.sc-bot-open{padding:6px}}
.nav .menu > li > a.header-cta{background:#151A2E;color:#fff;padding:10px 18px;border-radius:14px}
.nav .menu > li > a.header-cta:hover{background:#000}
