/*
Theme Name: 5-6-7 et 8 Danse
Description: Thème pour l’association de danse 5-6-7 et 8. Page d’accueil « Particuliers » entièrement modifiable en direct depuis Apparence > Personnaliser (textes, liens, couleurs des boutons, images). Responsive mobile.
Version: 1.2.0
Author: — Stan Lab's
Text Domain: d567
Requires at least: 5.8
Requires PHP: 7.4
*/

form > p {
    margin: 10px 0px 10px 0px;
}

:root{--navy:#0e1628;--yellow:#f8d62b;--ink:#1a2233;--muted:#7b8597;--stages-bg:#e9eaeb;--light:#f5f6f7;--wrap:1160px}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:"Plus Jakarta Sans",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;color:var(--ink);background:#fff;line-height:1.55;-webkit-font-smoothing:antialiased}
img{max-width:100%;height:auto}
a{color:inherit}
h1,h2,h3{margin:0;line-height:1.1;letter-spacing:-.02em;color:var(--navy)}
p{margin:0}
.wrap{width:100%;max-width:var(--wrap);margin:0 auto;padding:0 28px}
:focus-visible{outline:3px solid var(--yellow);outline-offset:2px}

/* Boutons */
.btn{display:inline-flex;align-items:center;gap:10px;padding:13px 22px;border-radius:999px;font-weight:700;font-size:13px;text-decoration:none;line-height:1;transition:filter .2s,transform .2s;white-space:nowrap}
.btn:hover{filter:brightness(1.12);transform:translateY(-1px)}
.btn-sm{padding:11px 18px;font-size:12px}
.btn .arr{width:14px;height:14px;flex:none}
.no-arrow .arr{display:none}

/* Eyebrows */
.eyebrow{font-size:11px;font-weight:700;letter-spacing:.14em;color:#3b4a66;margin-bottom:8px}
.eyebrow-light{color:#fff}
.img-ph{background-color:#2a3350;background-image:linear-gradient(135deg,#2a3350,#4a5578);background-size:cover;background-position:center}
.img-ph.has-img{background-color:#222}

/* Header */
.site-header{position:fixed;top:0;left:0;right:0;z-index:50;background:var(--navy);color:#fff;transition:background .25s,box-shadow .25s}
.has-hero .site-header{background:linear-gradient(#0e1628cc,transparent)}
.site-header.is-stuck,.has-hero .site-header.is-stuck{background:var(--navy);box-shadow:0 4px 18px rgba(0,0,0,.28)}
body:not(.has-hero){padding-top:84px}
.admin-bar .site-header{top:32px}
html{scroll-padding-top:84px}
.header-in{display:flex;align-items:center;justify-content:space-between;height:84px;gap:24px;transition:height .25s}
.site-header.is-stuck .header-in{height:68px}
.logo{display:inline-flex;flex-direction:column;text-decoration:none;color:#fff;line-height:1}
.logo-main{font-style:italic;font-weight:800;font-size:30px;letter-spacing:-.03em}
.logo-main em{font-size:.62em;vertical-align:baseline;margin:0 1px}
.logo-sub{font-size:8px;letter-spacing:.5em;margin:4px 0 0 36px;font-weight:600}
.custom-logo{max-height:56px;width:auto}
.site-nav{display:flex;align-items:center;gap:26px}
.menu{display:flex;gap:26px;list-style:none;margin:0;padding:0}
.menu a{text-decoration:none;font-size:12px;font-weight:500;color:#e8ebf2;padding:6px 0;border-bottom:2px solid transparent}
.menu a:hover{color:#fff}
.menu .current-menu-item>a,.menu .current_page_item>a{color:#fff;font-weight:700;border-bottom-color:var(--yellow)}
.nav-toggle{display:none;background:none;border:0;width:44px;height:44px;padding:10px;cursor:pointer}
.nav-toggle span{display:block;height:2px;background:#fff;margin:6px 0;transition:.25s}

/* Hero */
.hero{position:relative;min-height:540px;display:flex;align-items:center;color:#fff;background:var(--navy);overflow:hidden}
.hero-bg{position:absolute;inset:0;background-size:cover;background-position:center right;background-color:#1a2340;background-image:linear-gradient(120deg,#0e1628,#2b3658)}
.hero-bg.has-img{background-color:#0e1628}
.hero-video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.hero::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(8,12,24,.92) 0%,rgba(8,12,24,.6) 38%,rgba(8,12,24,0) 70%)}
.hero-in{position:relative;z-index:2;padding-top:110px;padding-bottom:60px}
.hero h1{color:#fff;font-size:clamp(38px,6vw,56px);font-weight:800;max-width:560px;margin-bottom:22px}
.hero-text{max-width:430px;font-size:15px;margin-bottom:26px;color:#f1f3f8}

/* Atouts */
.features{background:var(--light)}
.feat-grid{display:grid;grid-template-columns:repeat(4,1fr);padding-top:22px;padding-bottom:22px}
.feat{text-align:center;padding:6px 24px;border-left:1px solid #dfe3ea}
.feat:first-child{border-left:0}
.feat-ico{display:inline-grid;place-items:center;width:52px;height:52px;border-radius:50%;background:#e4e8ee;color:var(--navy);margin-bottom:12px}
.feat .ico{width:26px;height:26px}
.ico-img{object-fit:contain}
.feat-ico .ico-img{width:30px;height:30px}
.why-item .ico-img{display:inline-block;width:38px;height:38px}
.feat h3{font-size:15px;font-weight:700;margin-bottom:6px}
.feat p{font-size:13px;color:var(--muted)}

/* Disciplines */
.disciplines{padding:30px 0 40px}
.sec-head{display:flex;justify-content:space-between;align-items:flex-end;gap:30px;margin-bottom:26px}
h2{font-size:clamp(28px,4vw,40px);font-weight:800}
.sec-intro{max-width:340px;font-size:13.5px;color:var(--ink)}
.cards{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.card-img{aspect-ratio:3/2;border-radius:3px;margin-bottom:16px}
.card h3{font-size:14px;font-weight:700;letter-spacing:0;margin-bottom:6px}
.card p{font-size:12.5px;color:var(--ink);margin-bottom:16px}

/* Stages */
.stages{position:relative;background:var(--stages-bg);overflow:hidden;min-height:300px;display:flex;align-items:center}
.stages-img{position:absolute;inset:0 auto 0 0;width:47%;clip-path:polygon(0 0,100% 0,90% 100%,0 100%)}
.stages-in{position:relative;display:flex;justify-content:flex-end;padding-top:40px;padding-bottom:40px}
.stages-copy{width:52%;max-width:520px}
.stages-copy h2{font-size:clamp(24px,3vw,30px);margin-bottom:14px}
.stages-copy>p:not(.eyebrow){font-size:13.5px;color:#4a5468;margin-bottom:22px}

/* Pourquoi */
.why{padding:36px 0 30px}
.why-in{display:grid;grid-template-columns:1fr 280px;gap:28px;align-items:start}
.why h2{font-size:clamp(26px,3.4vw,32px);margin-bottom:22px}
.why-grid{display:grid;grid-template-columns:repeat(4,1fr)}
.why-item{text-align:center;padding:4px 14px;border-left:1px solid #e1e5ec}
.why-item:first-child{border-left:0}
.why-item .ico{width:34px;height:34px;color:var(--navy);margin-bottom:12px}
.why-item p{font-size:13px;color:#3b4a66}
.why-img{height:230px;border-radius:4px;margin-top:6px}

/* Témoignages — carrousel */
.testi-empty{font-size:13px;color:var(--muted);background:#fff;border:1px dashed #c5cad4;border-radius:8px;padding:16px}
.testi{background:var(--light);padding:34px 0 36px}
.testi h2{font-size:clamp(24px,3vw,28px)}
.testi-head{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;margin-bottom:18px}
.car-nav{display:flex;gap:8px}
.car-btn{width:40px;height:40px;border-radius:50%;border:0;background:var(--navy);color:#fff;display:grid;place-items:center;cursor:pointer;transition:background .2s,color .2s}
.car-btn:hover{background:var(--yellow);color:var(--navy)}
.car-btn svg{width:16px;height:16px}
.car-track{display:flex;gap:16px;overflow-x:auto;scroll-snap-type:x mandatory;scroll-behavior:smooth;scrollbar-width:none;-webkit-overflow-scrolling:touch;padding-bottom:2px}
.car-track::-webkit-scrollbar{display:none}
.t-card{margin:0;flex:0 0 calc((100% - 32px)/3);scroll-snap-align:start;display:flex;align-items:flex-start;gap:16px;background:#fff;border-radius:8px;padding:20px}
.t-photo{position:relative;flex:none;width:52px;height:52px;border-radius:50%;overflow:hidden;background:var(--navy);color:#fff;display:grid;place-items:center}
.t-photo.img-ph{background-size:cover;background-position:center}
.t-ini{font-size:15px;font-weight:700}
.t-photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.t-card blockquote{margin:0 0 10px;font-size:11.5px;font-style:italic;color:#5a6577;line-height:1.5}
.t-card strong{display:block;font-size:12px;color:var(--navy);text-decoration:underline;text-underline-offset:2px}
.t-card figcaption span{font-size:11px;color:var(--muted)}
.car-dots{display:flex;justify-content:center;gap:8px;margin-top:16px}
.car-dots button{width:8px;height:8px;border-radius:50%;border:0;padding:0;background:#c5cad4;cursor:pointer;transition:.2s}
.car-dots button.is-active{background:var(--navy);width:22px;border-radius:8px}

/* CTA final */
.cta{position:relative;background:var(--navy);color:#fff;overflow:hidden;min-height:260px;display:flex;align-items:center}
.cta-img{position:absolute;inset:0 auto 0 0;width:50%;clip-path:polygon(0 0,100% 0,84% 100%,0 100%)}
.cta-in{position:relative;display:flex;justify-content:flex-end;padding-top:40px;padding-bottom:40px}
.cta-copy{width:50%;max-width:520px}
.cta-copy h2{color:#fff;font-size:clamp(22px,2.8vw,26px);margin-bottom:12px}
.cta-copy>p:not(.eyebrow){font-size:12.5px;color:#dfe4ee;margin-bottom:18px;max-width:460px}

/* Footer */
.site-footer{background:#0a1020;color:#fff}
.footer-in{display:flex;align-items:center;justify-content:space-between;gap:24px;height:68px}
.site-footer .logo-main{font-size:24px}
.site-footer .logo-sub{margin-left:28px}
.copyright{flex:1;text-align:center;font-size:11px;color:#c9d0de;line-height:1.5}
.social{display:flex;gap:14px}
.social a{color:#fff;display:inline-grid;place-items:center;width:22px;height:22px}
.social .ico{width:16px;height:16px}

/* Bouton retour en haut */
.to-top{position:fixed;right:20px;bottom:calc(20px + env(safe-area-inset-bottom,0px));z-index:40;width:46px;height:46px;border:0;border-radius:50%;background:var(--yellow);color:var(--navy);display:grid;place-items:center;cursor:pointer;box-shadow:0 6px 18px rgba(0,0,0,.3);opacity:0;visibility:hidden;transform:translateY(10px);transition:opacity .25s,transform .25s,visibility .25s,filter .2s}
.to-top.is-visible{opacity:1;visibility:visible;transform:none}
.to-top:hover{filter:brightness(1.1)}
.to-top svg{width:20px;height:20px}

/* Pages classiques */
body{overflow-x:clip}
.page-body{width:100%;max-width:816px;margin:0 auto;padding:50px 28px 60px;min-height:50vh}
.entry-title{margin-bottom:24px}
.entry-content{max-width:none}
.entry-content>*{max-width:none}
.entry-content .alignwide{width:min(1160px,calc(100vw - 56px));max-width:none;margin-left:50%;transform:translateX(-50%)}
.entry-content .alignfull{width:100vw;max-width:none;margin-left:calc(50% - 50vw);margin-right:0}
.entry-content .wp-block-image img,.entry-content figure{max-width:100%}

/* ---------- Tablette ---------- */
@media (max-width:1024px){
	.menu{gap:16px}.site-nav{gap:16px}
	.cards{grid-template-columns:repeat(2,1fr);gap:28px 16px}
	.why-in{grid-template-columns:1fr}
	.why-img{height:260px}
	.t-card{flex-basis:calc((100% - 16px)/2)}
}

/* ---------- Mobile ---------- */
@media (max-width:820px){
	.wrap{padding:0 20px}
	.page-body{padding:40px 20px 50px}
	.entry-content .alignwide{width:auto;margin-left:0;transform:none}
	.header-in{height:70px}
	.site-header.is-stuck .header-in{height:60px}
	body:not(.has-hero){padding-top:70px}
	html{scroll-padding-top:70px}
	.admin-bar .site-header{top:46px}
	.nav-toggle{display:block;position:relative;z-index:70}
	.site-nav{position:fixed;inset:0;background:var(--navy);flex-direction:column;justify-content:center;gap:28px;transform:translateX(100%);transition:transform .3s;z-index:60;padding:90px 20px 40px}
	.site-nav.is-open{transform:none}
	.menu{flex-direction:column;align-items:center;gap:18px}
	.menu a{font-size:18px}
	.nav-open{overflow:hidden}
	.nav-toggle[aria-expanded="true"] span:nth-child(1){transform:translateY(8px) rotate(45deg)}
	.nav-toggle[aria-expanded="true"] span:nth-child(2){opacity:0}
	.nav-toggle[aria-expanded="true"] span:nth-child(3){transform:translateY(-8px) rotate(-45deg)}
	.hero{min-height:520px}
	.hero::after{background:linear-gradient(180deg,rgba(8,12,24,.55),rgba(8,12,24,.88))}
	.hero-in{padding-top:100px}
	.feat-grid{grid-template-columns:repeat(2,1fr);gap:22px 0}
	.feat:nth-child(3){border-left:0}
	.sec-head{flex-direction:column;align-items:flex-start;gap:12px}
	.stages,.cta{display:block;min-height:0}
	.stages-img,.cta-img{position:relative;width:100%;height:240px;clip-path:none}
	.stages-in,.cta-in{justify-content:flex-start;padding-top:28px;padding-bottom:36px}
	.stages-copy,.cta-copy{width:100%;max-width:none}
	.why-grid{grid-template-columns:repeat(2,1fr);gap:22px 0}
	.why-item:nth-child(3){border-left:0}
	.footer-in{flex-direction:column;height:auto;padding-top:26px;padding-bottom:26px;gap:16px}
		}
@media (max-width:520px){
	.cards{grid-template-columns:1fr}
	.feat{padding:6px 10px}
	.t-card{padding:16px;flex-basis:100%}
	.car-dots button{width:10px;height:10px}
	.btn{white-space:normal}
}
/* ---------- Page Professeurs ---------- */
[hidden]{display:none!important}
.screen-reader-text{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.profs{background:var(--navy);color:#fff;min-height:70vh}
.profs-hero{padding:56px 0 18px;text-align:center}
.profs-hero h1{color:#fff;font-size:clamp(30px,5vw,46px);font-weight:800;margin-bottom:12px}
.profs-intro{max-width:560px;margin:0 auto 30px;color:#cfd6e4;font-size:15px}
.disc{display:inline-grid;place-items:center;flex:none;width:76px;height:76px;border-radius:50%;background:radial-gradient(circle at 30% 25%,#fff 0%,var(--c) 92%);box-shadow:0 6px 16px rgba(0,0,0,.35);transition:box-shadow .2s}
.disc svg,.disc img{width:60%;height:60%;object-fit:contain}
.disc-btn{background:none;border:0;padding:0;font:inherit;cursor:pointer}
.disc-filter{display:flex;gap:18px;justify-content:center;overflow-x:auto;padding:6px 4px 14px;scrollbar-width:none}
.disc-filter::-webkit-scrollbar{display:none}
.disc-item{flex:none;width:86px;display:flex;flex-direction:column;align-items:center;gap:10px;color:var(--c);opacity:.88;transition:transform .2s,opacity .2s}
.disc-item:hover,.disc-item.is-active{transform:translateY(-3px);opacity:1}
.disc-item.is-active .disc{box-shadow:0 0 0 3px var(--yellow),0 6px 16px rgba(0,0,0,.35)}
.disc-label{font-size:14px;font-weight:600}
.disc-reset{margin-top:8px;background:var(--yellow);color:var(--navy);border:0;cursor:pointer}
.profs-list{padding:22px 0 70px}
.profs-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;align-items:stretch}
@media (max-width:1024px){.profs-grid{grid-template-columns:repeat(2,1fr)}}
.profs-single{grid-template-columns:minmax(0,720px);justify-content:center}
.profs-none{grid-column:1/-1;text-align:center;color:#cfd6e4}
.prof{display:flex;flex-direction:column;background:#151e35;border-radius:10px;overflow:hidden}
.prof-media{position:relative;background:#1d2744;aspect-ratio:1/1;overflow:hidden}
.prof-media>img,.prof-media>video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center top}
.prof-ph{position:absolute;inset:0;background:linear-gradient(135deg,#1d2744,#2c3a63)}
.prof-embed{position:absolute;inset:0}.prof-embed iframe{width:100%;height:100%;border:0}
.prof-name{position:absolute;z-index:2;left:18px;right:84px;bottom:20px;transform:rotate(-6deg);transform-origin:left bottom;font-weight:800;font-style:italic;text-transform:uppercase;font-size:clamp(22px,2.4vw,28px);line-height:1.02;color:#fff;text-shadow:0 2px 16px rgba(248,214,43,.55),0 1px 2px rgba(0,0,0,.6);pointer-events:none}
.pn-line{display:block}
.prof-name .pn-line:first-child:not(:last-child){font-size:.82em}
.is-video .prof-name{bottom:70px}
.is-embed .prof-media{aspect-ratio:16/9}
.is-embed .prof-name{position:static;transform:none;padding:16px 22px 0;font-size:24px}
.prof-disc{position:absolute;z-index:3;right:12px;top:50%;transform:translateY(-50%);display:flex;flex-direction:column;gap:10px}
.is-embed .prof-disc{top:10px;transform:none;flex-direction:row}
.prof-disc .disc{width:48px;height:48px;border:3px solid #b9a62e;box-shadow:none}
.prof-disc .disc-btn:hover .disc{transform:scale(1.08)}
.prof-bio{padding:22px 22px 26px;font-size:14.5px;line-height:1.75;color:#e3e8f2}
.prof-bio p{margin:0 0 1em}.prof-bio p:last-child{margin:0}
@media (max-width:820px){
	.profs-grid{grid-template-columns:1fr}
	.profs-hero{padding-top:40px}
	.disc-filter{justify-content:flex-start}
	.prof-media{aspect-ratio:4/5}
	.is-embed .prof-media{aspect-ratio:16/9}
}
@media (max-width:520px){.disc{width:68px;height:68px}.disc-item{width:76px}.prof-disc .disc{width:44px;height:44px}}

/* ---------- Nos projets / articles ---------- */
.projects-hero{background:var(--navy);color:#fff;text-align:center;padding:56px 0 46px}
.projects-hero h1{color:#fff;font-size:clamp(30px,5vw,46px);font-weight:800;margin-bottom:12px}
.projects-intro{max-width:620px;margin:0 auto;color:#cfd6e4;font-size:15px}
.projects-list{background:var(--light);padding:44px 0 72px}
.projects-empty{text-align:center;color:var(--muted)}
.post-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.post-card{display:flex;flex-direction:column;background:#fff;border-radius:10px;overflow:hidden;box-shadow:0 4px 18px rgba(14,22,40,.06);transition:transform .2s,box-shadow .2s}
.post-card:hover{transform:translateY(-3px);box-shadow:0 12px 30px rgba(14,22,40,.13)}
.post-thumb{display:block;aspect-ratio:3/2;background:linear-gradient(135deg,#1d2744,#2c3a63)}
.post-thumb img{display:block;width:100%;height:100%;object-fit:cover}
.post-body{display:flex;flex-direction:column;gap:10px;flex:1;padding:20px 22px 24px}
.post-meta{font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.post-meta .cat{color:var(--navy)}
.post-card h2{font-size:18px;line-height:1.25;letter-spacing:-.01em}
.post-card h2 a{text-decoration:none;color:var(--navy)}
.post-card h2 a:hover{text-decoration:underline}
.post-card p:not(.post-meta){font-size:13.5px;color:#4a5468}
.post-more{align-self:flex-start;margin-top:auto}
.pager{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin-top:40px}
.pager .page-numbers{display:inline-grid;place-items:center;min-width:40px;height:40px;padding:0 12px;border-radius:999px;background:#fff;color:var(--navy);font-size:13px;font-weight:700;text-decoration:none;transition:background .2s}
.pager a.page-numbers:hover{background:var(--yellow)}
.pager .current{background:var(--navy);color:#fff}
.single-hero h1{max-width:820px;margin:0 auto}
.single-body{padding-top:36px}
.single-thumb{margin:0 0 28px;border-radius:10px;overflow:hidden}
.single-thumb img{display:block;width:100%;height:auto}
.single-back{margin-top:36px;font-size:14px;font-weight:700}
.single-back a{color:var(--navy);text-decoration:none;border-bottom:2px solid var(--yellow)}
@media (max-width:1024px){.post-grid{grid-template-columns:repeat(2,1fr)}}
@media (max-width:640px){.post-grid{grid-template-columns:1fr}.projects-hero{padding:40px 0 34px}}

/* Témoignages : lien « lire la suite » + page complète */
.t-card figcaption .t-more{display:inline-block;margin:-2px 0 10px;font-size:11.5px;font-weight:700;color:var(--navy);text-decoration:none;border-bottom:2px solid var(--yellow)}
.t-card figcaption .t-more:hover{background:var(--yellow)}
.t-wall{columns:3 300px;column-gap:20px}
.t-wall .t-card{display:flex;break-inside:avoid;margin:0 0 20px;padding:22px;scroll-margin-top:100px}
.t-wall .t-card blockquote{font-size:14px;line-height:1.65}
.t-wall .t-card strong{font-size:13.5px}
.t-wall .t-card figcaption span{font-size:12px}
.t-card:target{outline:3px solid var(--yellow);outline-offset:2px}
@media (max-width:640px){.t-wall{columns:1}}

.prof-bio{flex:1;display:flex;flex-direction:column}
.prof-more-wrap{margin-top:auto!important;padding-top:14px}
.prof-more{display:inline-block;font-size:13px;font-weight:700;color:var(--yellow);text-decoration:none;border-bottom:2px solid var(--yellow)}
.prof-more:hover{background:var(--yellow);color:var(--navy)}
.profs .single-back{text-align:center;margin-top:28px}
.profs .single-back a{color:#fff}

/* Témoignages : étoiles, bouton, page formulaire */
.testi-cta{display:flex;justify-content:center;margin-top:30px}
.t-stars{display:flex;gap:2px;margin:0 0 8px}
.t-stars svg{width:15px;height:15px;fill:#d5d9e1}
.t-stars .on{fill:#f2b705}
.t-wall .t-stars svg{width:17px;height:17px}
.tform-body{padding:0 0 80px}
.tform-wrap{max-width:780px}
.tform-wrap .c567{max-width:100%;margin:0 auto}

@media (prefers-reduced-motion:reduce){.hero-video{display:none}*{transition:none!important;scroll-behavior:auto!important}}
