/*
Theme Name: Le Labo des mobilités actives
Theme URI: https://example.invalid/labo-mobilites
Author: Équipe pédagogique
Description: Thème de blocs éditorial pour les travaux dirigés SEO et GEO.
Version: 1.0.0
Requires at least: 6.6
Text Domain: labo-mobilites
*/
:root{--ivory:#f8f5ee;--green:#193c31;--green2:#315a4b;--terra:#b86446;--ink:#18332b;--muted:#586b60;--line:#d9dfd5}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--ivory);color:var(--ink);font-family:Arial,Helvetica,sans-serif;line-height:1.65}a{color:var(--green);text-underline-offset:3px}a:hover{color:var(--terra)}.site-shell{max-width:1240px;margin:auto;padding:0 28px}.site-header{background:var(--ivory);border-bottom:1px solid var(--line)}.site-header .wp-block-group{gap:28px}.brand-mark{display:inline-flex;align-items:center;gap:10px;font-weight:800;letter-spacing:-.04em;font-size:1.23rem;color:var(--green);text-decoration:none}.brand-mark:before{content:'↗';display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:var(--terra);color:#fff;font-size:1.4rem}.site-header .wp-block-navigation a{text-decoration:none;font-size:.9rem;font-weight:700}.site-header .wp-block-navigation a:hover{color:var(--terra)}.site-topline{padding:7px 28px;background:var(--green);color:#f6f1e8;text-align:center;font-size:.75rem;letter-spacing:.04em;text-transform:uppercase}.site-topline a{color:#fff}.site-main{min-height:68vh}.site-footer{background:var(--green);color:#f5f0e7;padding:58px 0 24px;margin-top:90px}.site-footer a{color:#f5f0e7}.site-footer .wp-block-heading{color:#fff}.eyebrow{color:var(--terra);text-transform:uppercase;font-weight:800;letter-spacing:.12em;font-size:.78rem;margin:0 0 12px}.hero{padding:68px 0 62px}.hero-grid{display:grid;grid-template-columns:1.06fr .94fr;gap:5%;align-items:center}.hero h1{font-size:clamp(3.2rem,6vw,6rem);line-height:1.02;letter-spacing:-.065em;margin:.1em 0 .32em;color:var(--green)}.hero .intro{font-size:1.15rem;max-width:620px;color:#465f52}.hero img{width:100%;height:525px;object-fit:cover;border-radius:180px 180px 7px 7px}.pill{display:inline-block;background:#e8e6d9;color:var(--green);font-size:.8rem;font-weight:700;letter-spacing:.035em;padding:8px 15px;border-radius:99px}.btn{display:inline-block;background:var(--terra);color:#fff!important;text-decoration:none;font-weight:800;border-radius:5px;padding:13px 22px;margin-right:9px;margin-bottom:8px}.btn.secondary{background:var(--green)}.section{padding:70px 0}.section h2,.page-head h1{font-size:clamp(2.2rem,4.4vw,4rem);line-height:1.1;letter-spacing:-.05em;color:var(--green);margin:.15em 0 .5em}.section-intro{max-width:720px;color:var(--muted);font-size:1.12rem}.card-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;margin-top:35px}.card-grid.two{grid-template-columns:repeat(2,1fr)}.card{background:#fff;border:1px solid #e1e5db;border-radius:6px;overflow:hidden;box-shadow:0 8px 24px rgba(20,45,35,.035)}.card img{width:100%;aspect-ratio:3/2;object-fit:cover}.card-body{padding:24px}.card h3{font-size:1.36rem;line-height:1.2;letter-spacing:-.035em;margin:0 0 12px}.card p{margin:0 0 16px;color:var(--muted)}.card a{font-weight:800;text-decoration:none}.stat-band{background:var(--green);color:#fff;padding:48px 0}.stat-band h2{color:#fff!important}.stat-band p{max-width:770px}.page-head{padding:68px 0 30px;max-width:960px}.page-head p{font-size:1.14rem;color:var(--muted)}.article-wrap{max-width:840px;margin:0 auto;padding:12px 28px 60px}.article-wrap .wp-block-post-content{font-size:1.07rem}.article-wrap h2{font-size:2rem;letter-spacing:-.035em;color:var(--green);margin-top:1.8em}.article-wrap h3{font-size:1.4rem;color:var(--green)}.article-wrap ul li,.article-wrap ol li{margin-bottom:.45em}.article-wrap img{border-radius:6px}.article-meta{color:var(--muted);font-size:.86rem}.listing{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;padding:15px 0 60px}.listing .wp-block-post{background:#fff;border:1px solid var(--line);padding:22px}.listing .wp-block-post-title{font-size:1.45rem;line-height:1.2;letter-spacing:-.03em}.listing .wp-block-post-title a{text-decoration:none}.listing .wp-block-post-excerpt{color:var(--muted)}.footer-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:42px}.footer-small{border-top:1px solid #6c8778;margin-top:45px;padding-top:20px;font-size:.8rem;color:#d3e0d4}.wp-block-separator{border-color:var(--line)}.wp-block-quote{border-left:4px solid var(--terra);padding-left:20px;color:var(--green)}.wp-block-button__link{background:var(--terra)!important;color:#fff!important;border-radius:5px!important}.wp-block-table table{border-color:var(--line)}.wp-block-table td,.wp-block-table th{padding:10px}.resource-box{background:#e8eee6;border-left:5px solid var(--terra);padding:22px 26px;margin:25px 0}.notice{background:#f4e9df;padding:18px 24px;border-radius:5px;font-size:.9rem}.wp-block-post-featured-image img{max-height:480px;object-fit:cover}.breadcrumb{font-size:.82rem;color:var(--muted);margin-bottom:22px}.breadcrumb a{color:var(--muted)}
@media(max-width:860px){.hero-grid,.footer-grid{grid-template-columns:1fr}.hero{padding-top:40px}.hero img{height:400px}.card-grid,.listing{grid-template-columns:repeat(2,1fr)}.site-header .wp-block-group{align-items:flex-start}.site-header .wp-block-navigation{font-size:.8rem}}
@media(max-width:600px){.site-shell{padding:0 20px}.hero h1{font-size:3.3rem}.hero img{height:330px}.card-grid,.card-grid.two,.listing{grid-template-columns:1fr}.section{padding:48px 0}.site-footer{margin-top:55px}}
.brand-mark{gap:12px;line-height:1.05;letter-spacing:-.035em;font-size:1.05rem}.brand-mark:before{content:none;display:none}.brand-mark img{display:block;width:48px;height:48px;flex:none}.brand-mark span{display:block}.site-header .wp-block-group{row-gap:14px}
.labo-contact-form{max-width:760px}.labo-contact-form p{margin:0 0 22px}.labo-contact-form label{display:block;font-weight:700}.labo-contact-form input:not([type=hidden]):not([type=checkbox]),.labo-contact-form select,.labo-contact-form textarea{display:block;width:100%;min-height:48px;margin-top:7px;padding:11px 13px;border:1px solid var(--line);border-radius:5px;font:inherit;color:var(--ink);background:#fff}.labo-contact-form textarea{min-height:170px;resize:vertical}.labo-contact-form input:focus-visible,.labo-contact-form select:focus-visible,.labo-contact-form textarea:focus-visible{outline:3px solid #cb7654;outline-offset:2px}.labo-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.labo-form-note{font-size:.92rem;color:var(--muted)}.labo-contact-form .labo-consent{display:flex;align-items:flex-start;gap:10px;font-weight:400}.labo-contact-form .labo-consent input{margin-top:5px;flex:none}.labo-contact-form button{background:var(--terra);border:0;border-radius:5px;color:#fff;font:inherit;font-weight:800;min-height:48px;padding:11px 22px;cursor:pointer}.labo-contact-form button:hover{background:var(--green2)}.labo-trap{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}
.site-footer h2,.site-footer h3{color:#fff;margin-top:0}
.header-contact-cta{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:46px;padding:10px 17px;border-radius:5px;background:var(--terra);color:#fff!important;font-weight:800;text-decoration:none;white-space:nowrap}.header-contact-cta:hover,.header-contact-cta:focus-visible{background:var(--green2);color:#fff!important}.header-contact-cta:focus-visible,.site-header .wp-block-navigation__responsive-container-open:focus-visible{outline:3px solid var(--terra);outline-offset:3px}
.card img{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:cover}
.hero img{object-position:78% center}

/* Version TD 2 : un canevas plus large, sans étouffer les contenus éditoriaux. */
.site-shell{max-width:1640px;padding-left:clamp(24px,4vw,64px);padding-right:clamp(24px,4vw,64px)}
.page-head{max-width:1640px;padding-top:76px;padding-bottom:34px}
.page-head p{max-width:1080px;font-size:1.23rem}
.article-wrap{max-width:1200px;padding:20px clamp(24px,4vw,64px) 70px}
.article-wrap .wp-block-post-content{font-size:1.14rem;line-height:1.75}
.article-wrap .wp-block-post-content p{max-width:1040px}
.page-head .display-title{font-size:clamp(2.2rem,4.4vw,4rem);line-height:1.1;letter-spacing:-.05em;color:var(--green);margin:.15em 0 .5em}
.listing .wp-block-post-featured-image{margin:0 0 18px}.listing .wp-block-post-featured-image img{width:100%;aspect-ratio:3/2;object-fit:cover;border-radius:5px}
.hero{padding-top:78px;padding-bottom:76px}
.hero-grid{grid-template-columns:1.04fr .96fr;gap:6%}
.hero .intro{max-width:760px;font-size:1.28rem}
.hero img{height:clamp(520px,43vw,700px)}
.section{padding-top:82px;padding-bottom:82px}
.section-intro{max-width:950px;font-size:1.22rem}
.card-grid,.listing{gap:30px}
.card-body{padding:30px}
.listing .wp-block-post{padding:28px}
@media(max-width:980px){.hero-grid{grid-template-columns:1fr}.hero img{height:430px}.article-wrap{max-width:100%}.card-grid,.listing{grid-template-columns:repeat(2,1fr)}}
@media(max-width:640px){.site-shell,.article-wrap{padding-left:22px;padding-right:22px}.page-head{padding-top:46px}.hero{padding-top:42px}.hero img{height:330px}.card-grid,.card-grid.two,.listing{grid-template-columns:1fr}.section{padding-top:52px;padding-bottom:52px}}

/* Navigation et typographie adaptées aux petits écrans, sans changer les anomalies SEO du contenu. */
@media(max-width:980px){
  .site-header .site-shell{flex-wrap:nowrap!important;align-items:center!important;justify-content:space-between;gap:8px}
  .site-header .wp-block-navigation{flex:0 0 auto}
  .site-header .wp-block-navigation__responsive-container-open{display:flex!important;align-items:center;justify-content:center;width:44px;height:44px;padding:9px;border-radius:5px}
  .site-header .wp-block-navigation__responsive-container:not(.is-menu-open){display:none!important}
  .site-header .wp-block-navigation__responsive-container.is-menu-open{position:fixed!important;inset:0!important;z-index:100000!important;background:var(--ivory)!important;color:var(--green)!important;padding:22px!important}
  .site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-close{width:100%}
  .site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close{display:flex;align-items:center;justify-content:center;width:44px;height:44px;padding:9px;color:var(--green)}
  .site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content{padding-top:54px!important;align-items:stretch!important}
  .site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container{width:100%;align-items:stretch!important;gap:0!important}
  .site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item{width:100%;border-bottom:1px solid var(--line)}
  .site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content{display:block;width:100%;padding:14px 0;font-size:1.15rem;line-height:1.35;text-align:left;color:var(--green)}
}
@media(max-width:700px){
  .site-header .site-shell{flex-wrap:wrap!important;row-gap:12px}
  .brand-mark{order:1}
  .site-header .wp-block-navigation{order:2}
  .header-contact-cta{order:3;flex-basis:100%;width:100%}
  .hero h1{font-size:clamp(2.75rem,11vw,3.55rem);line-height:1.04}
  .hero .intro{font-size:1.12rem;line-height:1.55}
  .article-wrap .wp-block-post-content h1{font-size:clamp(2rem,8vw,2.5rem);line-height:1.14}
  .article-wrap .wp-block-post-content h2{font-size:clamp(1.6rem,6vw,1.9rem);line-height:1.25}
  .footer-grid{gap:28px}
  .labo-form-grid{grid-template-columns:1fr;gap:0}
}
@media(max-width:400px){
  .site-topline{font-size:.7rem;line-height:1.35;padding:7px 16px}
  .brand-mark{font-size:.94rem;gap:9px}
  .brand-mark img{width:44px;height:44px}
  .site-shell,.article-wrap{padding-left:20px;padding-right:20px}
  .section h2{font-size:2rem}
  .hero img{height:300px;border-radius:120px 120px 7px 7px}
  .labo-contact-form button{width:100%}
}
