/*
Theme Name: TLY Energies – Atelier
Description: Thème vitrine personnalisé pour TLY ENERGIES. Contenus éditables dans WordPress, installation via Apparence > Démarrer TLY.
Version: 3.0.0
Author: TLY ENERGIES
Requires at least: 6.5
Requires PHP: 8.0
Text Domain: tly-energies
*/
:root{--ink:#202326;--muted:#5a6064;--sun:#f4da19;--paper:#fff;--soft:#f3f4f1;--line:#e2e4df;--max:1180px}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:#fff;line-height:1.65;font-size:16px}a{color:inherit}a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #bc8a00;outline-offset:4px}img{max-width:100%;height:auto;display:block}h1,h2,h3{line-height:1.14;letter-spacing:-.035em;margin:0 0 .6em}h1{font-size:clamp(2.7rem,5.4vw,5rem);font-weight:800}h2{font-size:clamp(1.7rem,3.2vw,2.6rem)}h3{font-size:1.25rem}p{margin:0 0 1.1em}.wrap{width:min(calc(100% - 48px),var(--max));margin-inline:auto}.topline{background:var(--ink);color:white;font-size:.82rem;font-weight:600}.topline .wrap{display:flex;justify-content:space-between;gap:12px;padding:9px 0}.topline a{text-decoration:none}.topline a:hover{text-decoration:underline}.site-header{background:white;border-bottom:1px solid var(--line)}.head{display:flex;align-items:center;gap:22px;min-height:86px;justify-content:space-between}.brand{flex:0 0 212px;display:block}.brand img{width:212px;max-height:64px;object-fit:contain}.nav{margin-left:auto}.nav ul{display:flex;gap:19px;align-items:center;list-style:none;padding:0;margin:0}.nav a{text-decoration:none;font-weight:650;font-size:.87rem;white-space:nowrap}.nav a:hover,.nav .current-menu-item>a{text-decoration:underline;text-decoration-color:#c7ac00;text-underline-offset:6px}.btn,.wp-element-button{display:inline-flex;align-items:center;justify-content:center;gap:10px;border:0;background:var(--sun);color:#202326;font:inherit;font-weight:750;font-size:.95rem;padding:13px 22px;text-decoration:none;border-radius:5px;cursor:pointer;min-height:48px}.btn:hover,.wp-element-button:hover{background:#ffe95d}.btn-outline{background:transparent;color:white;border:1px solid #ffffff80}.btn-outline:hover{background:#ffffff20}.navtoggle{display:none}.hero{background:#202326;color:white;min-height:420px;overflow:hidden}.hero-grid{display:grid;grid-template-columns:1.05fr 1fr;align-items:stretch;min-height:470px}.hero-copy{padding:72px 48px 70px 0;align-self:center}.eyebrow{font-size:.77rem;letter-spacing:.15em;font-weight:800;text-transform:uppercase;color:#f4da19;margin-bottom:24px;display:block}.hero p{font-size:1.16rem;color:#ecede9;max-width:540px}.hero-photo{position:relative;min-height:100%;margin-right:calc((100vw - min(calc(100vw - 48px),var(--max)))/-2);overflow:hidden}.hero-photo img{width:100%;height:100%;position:absolute;inset:0;object-fit:cover;object-position:center}.hero-photo:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#20232630,transparent 35%);pointer-events:none}.hero:not(.home-hero) h1{font-size:clamp(2.3rem,4vw,3.65rem)}.hero:not(.home-hero) .hero-grid{min-height:350px}.hero.no-photo .hero-grid{grid-template-columns:1fr;min-height:300px}.actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:27px}.proof{background:#f4da19}.proof .wrap{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;padding:20px 0;font-size:.88rem;font-weight:750;text-align:center}.proof .wrap span+span{border-left:1px solid #24242440}.section{padding:72px 0}.section.soft{background:var(--soft)}.section-label{display:block;color:#666b62;font-weight:800;font-size:.74rem;letter-spacing:.14em;text-transform:uppercase;margin-bottom:10px}.section-head{display:flex;align-items:end;justify-content:space-between;gap:24px;margin-bottom:28px}.section-head h2{margin:0}.section-head p{max-width:460px;margin:0;color:var(--muted)}.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.card{background:#fff;border:1px solid var(--line);border-radius:10px;overflow:hidden;display:flex;flex-direction:column;text-decoration:none}.card:hover{box-shadow:0 8px 24px #20232613;border-color:#bebfae}.card img{width:100%;height:210px;object-fit:cover}.card-body{padding:22px 22px 24px;flex:1}.card-body h3{margin-bottom:9px}.card-body p{font-size:.93rem;color:var(--muted);margin-bottom:13px}.card-link{font-weight:800;font-size:.88rem;border-bottom:2px solid var(--sun)}.card-icon{height:112px;background:#deded5;display:grid;place-items:center;font-size:2.4rem;color:#343633}.content{max-width:820px;margin:auto;padding:60px 0}.content h2{margin-top:1.65em}.content h2:first-child{margin-top:0}.content p{color:#454a4e}.content .wp-block-image{margin:2rem 0}.content .wp-block-image img{border-radius:9px}.content .wp-block-image figcaption{font-size:.85rem;color:var(--muted)}.content a:not(.wp-element-button){text-decoration-color:#c6a900;text-decoration-thickness:2px;text-underline-offset:3px}.cta{background:#25282b;color:#fff;padding:48px 0}.cta .wrap{display:flex;justify-content:space-between;align-items:center;gap:24px}.cta h2{margin-bottom:5px}.cta p{margin:0;color:#d8dad6}.footer{padding:46px 0 20px;background:#17191b;color:#eceee9;font-size:.92rem}.footgrid{display:grid;grid-template-columns:1.3fr 1fr 1fr;gap:36px}.footer a{text-decoration:none}.footer a:hover{text-decoration:underline}.footer img{width:200px;background:white;padding:9px;border-radius:4px;margin-bottom:18px}.footer h3{font-size:1rem;letter-spacing:0;color:#f4da19}.footer ul{list-style:none;margin:0;padding:0}.footer li{margin:7px 0}.footend{border-top:1px solid #ffffff25;margin-top:26px;padding-top:14px;font-size:.8rem;color:#c9cbc7}.tly-form{border:1px solid var(--line);border-radius:10px;padding:25px;background:var(--soft);margin:30px 0}.tly-form label{display:block;font-size:.92rem;font-weight:650}.tly-form input:not([type=checkbox]),.tly-form textarea,.tly-form select{width:100%;padding:12px;border:1px solid #aaa;border-radius:4px;background:white;font:inherit;color:var(--ink)}.tly-form textarea{min-height:140px}.tly-form .field{margin-bottom:17px}.tly-form .checkline{display:flex;align-items:baseline;gap:8px}.tly-form .checkline input{flex:0 0 auto}.tly-form .notice{padding:12px;border:1px solid #858b83;background:white;border-radius:5px}.hp{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}.skip{position:absolute;left:-10000px}.skip:focus{left:1rem;top:1rem;background:white;color:#222;padding:10px;z-index:10000}.screen-reader-text{position:absolute;clip:rect(1px,1px,1px,1px);width:1px;height:1px;overflow:hidden}.wp-block-buttons{display:flex;gap:12px;flex-wrap:wrap}.wp-block-columns{display:flex;gap:24px}.wp-block-column{flex:1;min-width:0}.aligncenter{margin-inline:auto}.wp-block-image img{height:auto}.content ul{padding-left:1.3em}.content li{margin:.35em 0}.content figcaption{font-size:.85rem}.nav ul ul{display:none}.nav .menu-item-has-children{position:relative}.nav .menu-item-has-children:hover>ul,.nav .menu-item-has-children:focus-within>ul{display:block;position:absolute;z-index:20;background:#fff;border:1px solid #ddd;min-width:200px;padding:12px}.nav .menu-item-has-children ul li{padding:5px}.admin-bar .site-header{position:relative}
@media(max-width:1000px){.head{flex-wrap:wrap;min-height:76px;padding:12px 0}.navtoggle{display:block;background:white;color:#222;border:1px solid #777;padding:8px 14px;border-radius:5px;font:inherit;font-weight:700}.nav{display:none;order:4;flex-basis:100%;margin:0}.nav.open{display:block}.nav ul{align-items:flex-start;flex-direction:column;gap:10px;padding:10px 0}.head>.btn{margin-left:auto}.hero-copy{padding:56px 28px 56px 0}.cards{grid-template-columns:repeat(2,minmax(0,1fr))}.section{padding:50px 0}}@media(max-width:640px){.wrap{width:calc(100% - 32px)}.topline .wrap{font-size:.72rem;align-items:center}.brand{flex-basis:168px}.brand img{width:168px}.head>.btn{display:none}.hero-grid{grid-template-columns:1fr}.hero-copy{padding:45px 0 34px}.hero-photo{min-height:245px;margin:0 -16px}.hero-photo img{object-position:center}.proof .wrap{grid-template-columns:1fr;gap:8px;padding:13px 0;text-align:left}.proof .wrap span+span{border:0}.section-head,.cta .wrap{display:block}.section-head p{margin-top:10px}.cta .btn{margin-top:20px}.cards{grid-template-columns:1fr}.card img{height:200px}.footgrid{grid-template-columns:1fr;gap:18px}.content{padding:35px 0}.wp-block-columns{flex-direction:column}.tly-form{padding:16px}}

/* V2 — identité noir et jaune, bandeau panoramique et navigation par services. */
:root{--sun:#ffc400;--max:1320px;--ink:#191d20}.topline .audiences{color:var(--sun)}.topline .wrap{align-items:center}.head{min-height:94px}.brand{flex-basis:250px}.brand img{width:250px}.nav a{font-size:.94rem}.btn{border-radius:9px}.home-hero{position:relative;isolation:isolate;min-height:560px}.home-hero .hero-grid{display:flex;align-items:center;min-height:560px}.home-hero .hero-copy{position:relative;z-index:2;max-width:700px;padding:68px 0 76px}.home-hero h1{font-size:clamp(2.65rem,4.3vw,4.4rem);line-height:1.06}.home-hero .hero-photo{position:absolute;inset:0;margin:0;z-index:-1;min-height:100%}.home-hero .hero-photo img{object-position:65% 50%}.home-hero .hero-photo:after{background:linear-gradient(90deg,rgba(13,19,17,.87) 0%,rgba(13,19,17,.66) 33%,rgba(13,19,17,.17) 70%,transparent 100%)}.home-hero .eyebrow{color:white;max-width:390px;line-height:1.5;margin-bottom:26px}.home-hero .eyebrow:after{content:'';display:block;background:var(--sun);width:66px;height:4px;margin-top:15px}.home-hero p{max-width:590px}.service-strip{background:#222a25;color:white}.service-links{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));padding:22px 0;gap:4px}.service-links a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;text-align:center;text-decoration:none;font-weight:700;line-height:1.3;padding:8px 12px}.service-links a+a{border-left:1px solid #ffffff40}.service-links svg{width:39px;height:39px;color:var(--sun)}.service-links a:hover{color:var(--sun)}.about-band{background:#f5f5f2}.about-band .wrap{display:grid;grid-template-columns:1fr 1fr;gap:42px;align-items:center}.about-band img{height:290px;width:100%;object-fit:cover;border-radius:12px}.proof{background:#f7f7f4}.proof .wrap span+span{border-color:#0002}.nav .menu-item-has-children:hover>ul,.nav .menu-item-has-children:focus-within>ul{min-width:235px}.card-icon{background:#f0f1eb;color:#64685e}.section{padding:64px 0}
@media(max-width:1000px){.brand{flex-basis:212px}.brand img{width:212px}.nav .menu-item-has-children>ul{display:block;position:static;border:0;padding-left:18px}.nav .menu-item-has-children:hover>ul,.nav .menu-item-has-children:focus-within>ul{position:static;border:0}.service-links{grid-template-columns:repeat(3,1fr)}.service-links a:nth-child(4){border-left:0}.topline .audiences{display:none}}
@media(max-width:640px){.brand{flex-basis:175px}.brand img{width:175px}.home-hero,.home-hero .hero-grid{min-height:540px}.home-hero .hero-copy{padding:48px 0}.home-hero .hero-photo img{object-position:63% center}.home-hero .hero-photo:after{background:linear-gradient(90deg,#111c18dc,#111c1866)}.home-hero p{font-size:1.02rem}.service-links{grid-template-columns:repeat(2,1fr)}.service-links a:nth-child(odd){border-left:0}.service-links a:nth-child(even){border-left:1px solid #fff4}.about-band .wrap{grid-template-columns:1fr;gap:24px}.about-band img{height:220px}.section{padding:44px 0}}

.illustration-note{font-size:.72rem;text-align:right;padding:4px 24px;background:#222a25;color:#e6e7e4}

/* V3 — five services, balanced desktop cards. */
@media(min-width:1001px){#prestations .cards{grid-template-columns:repeat(6,minmax(0,1fr))}#prestations .card{grid-column:span 2}#prestations .card:nth-child(4){grid-column:2/span 2}#prestations .card:nth-child(5){grid-column:4/span 2}}
