
/* Accueil éditorial TENEDIM : maquette approuvée 23 octobre 2026 */
@media (min-width: 900px){
 body:has(main > section:nth-of-type(6)) main{display:flex;flex-direction:column}
 body:has(main > section:nth-of-type(6)) main>section:nth-of-type(1){order:1}
 body:has(main > section:nth-of-type(6)) main>section:nth-of-type(2){order:3}
 body:has(main > section:nth-of-type(6)) main>section:nth-of-type(3){order:2}
 body:has(main > section:nth-of-type(6)) main>section:nth-of-type(4){order:4}
 body:has(main > section:nth-of-type(6)) main>section:nth-of-type(5){order:5}
}
body:has(main > section:nth-of-type(6)) main>section:first-of-type{min-height:75svh}
body:has(main > section:nth-of-type(6)) main>section:first-of-type>div:nth-child(2){padding-top:150px;padding-bottom:110px}
body:has(main > section:nth-of-type(6)) main>section:nth-of-type(3){background:#F7F3E9}
body:has(main > section:nth-of-type(6)) main>section:nth-of-type(3)>div:nth-child(2){display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px;padding-bottom:80px}
body:has(main > section:nth-of-type(6)) main>section:nth-of-type(3)>div:nth-child(2)>article{display:flex;flex-direction:column;gap:0;padding:0;min-width:0;align-items:stretch}
body:has(main > section:nth-of-type(6)) main>section:nth-of-type(3)>div:nth-child(2)>article>div{width:100%;max-width:none;grid-column:auto;order:initial}
body:has(main > section:nth-of-type(6)) main>section:nth-of-type(3)>div:nth-child(2)>article>div.img-reveal{aspect-ratio:3/4;order:1}
body:has(main > section:nth-of-type(6)) main>section:nth-of-type(3)>div:nth-child(2)>article>div.reveal{order:2;padding:18px 0 0}
body:has(main > section:nth-of-type(6)) main>section:nth-of-type(3) article h3{font-size:clamp(25px,2.8vw,40px);line-height:1.05}
body:has(main > section:nth-of-type(6)) main>section:nth-of-type(2){background:#E4EAF0}
body:has(main > section:nth-of-type(6)) main>section:nth-of-type(2)>div{padding-top:70px;padding-bottom:60px}
body:has(main > section:nth-of-type(6)) main>section:nth-of-type(2) .img-reveal{max-height:330px}
body:has(main > section:nth-of-type(6)) main>section:nth-of-type(4){background:#F7F3E9}
body:has(main > section:nth-of-type(6)) main>section:nth-of-type(5){background:#F7F3E9}
.tenedim-home-stages{width:min(1320px,calc(100% - 48px));margin:0 auto 42px;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;padding-top:16px}
.tenedim-home-stage{text-align:center;position:relative;border-top:1px solid rgba(0,34,75,.25);padding:18px 6px 8px}
.tenedim-home-stage-number{width:34px;height:34px;display:grid;place-items:center;margin:0 auto 14px;border-radius:50%;background:#7E062B;color:#fff;font:600 14px 'TENEDIM Avenir Next',sans-serif}
.tenedim-home-stage-label{font:600 13px 'TENEDIM Avenir Next',sans-serif;color:#7E062B;line-height:1.4}
@media(max-width:899px){
 body:has(main > section:nth-of-type(6)) main>section:nth-of-type(3)>div:nth-child(2){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
 body:has(main > section:nth-of-type(6)) main>section:nth-of-type(3) article{display:flex;flex-direction:column;padding:0;gap:6px}
 body:has(main > section:nth-of-type(6)) main>section:nth-of-type(3) article>div{width:100%;order:2}
 body:has(main > section:nth-of-type(6)) main>section:nth-of-type(3) article>div.img-reveal{order:1;aspect-ratio:3/4}
 .tenedim-home-stages{grid-template-columns:repeat(5,minmax(0,1fr));width:calc(100% - 32px);gap:3px}
 .tenedim-home-stage-label{font-size:10px}
}
@media(max-width:560px){
 body:has(main > section:nth-of-type(6)) main>section:nth-of-type(3)>div:nth-child(2){gap:14px}
 body:has(main > section:nth-of-type(6)) main>section:nth-of-type(3) article h3{font-size:25px}
 .tenedim-home-stages{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .tenedim-home-stage:last-child{grid-column:1/-1}
}

/* Equal image frames, consistent content starts, and aligned actions */
body:has(main > section:nth-of-type(6)) main>section:nth-of-type(3)>div:nth-child(2)>article{align-self:stretch!important}
body:has(main > section:nth-of-type(6)) main>section:nth-of-type(3)>div:nth-child(2)>article>div.img-reveal{height:auto!important;min-height:0!important;aspect-ratio:3/4!important;overflow:hidden}
body:has(main > section:nth-of-type(6)) main>section:nth-of-type(3)>div:nth-child(2)>article>div.img-reveal img{display:block;width:100%!important;height:100%!important;object-fit:cover!important;object-position:center center}
body:has(main > section:nth-of-type(6)) main>section:nth-of-type(3)>div:nth-child(2)>article>div.reveal{display:flex!important;flex-direction:column!important;align-items:flex-start;flex:1;gap:0}
body:has(main > section:nth-of-type(6)) main>section:nth-of-type(3)>div:nth-child(2)>article>div.reveal a:last-of-type{margin-top:auto}
@media(max-width:560px){
 body:has(main > section:nth-of-type(6)) main>section:nth-of-type(3)>div:nth-child(2)>article>div.img-reveal{aspect-ratio:3/4!important}
}

/* Home refinements */
body:has(main > section:nth-of-type(6)) main>section:nth-of-type(3)>div:first-child>.reveal{display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:12px!important}
body:has(main > section:nth-of-type(6)) main>section:nth-of-type(3)>div:first-child>.reveal>div:last-child{display:flex!important;flex-wrap:nowrap!important;white-space:nowrap!important;gap:12px!important;width:100%!important}
@media(min-width:900px){body:has(main > section:nth-of-type(6)) main>section:nth-of-type(3)>div:first-child>.reveal{flex-direction:row!important;align-items:end!important;justify-content:space-between!important}body:has(main > section:nth-of-type(6)) main>section:nth-of-type(3)>div:first-child>.reveal>div:last-child{flex:0 0 auto!important;width:auto!important}}
@media(max-width:650px){body:has(main > section:nth-of-type(6)) main>section:nth-of-type(3)>div:first-child>.reveal>div:last-child{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;white-space:normal!important;font-size:10px!important}}
.tenedim-home-contact{max-width:1250px;margin:0 auto;padding:80px 24px 100px;display:grid;grid-template-columns:1fr 1.3fr;gap:8vw;color:#00224B}
.tenedim-home-contact h2{font-size:clamp(32px,3.5vw,54px);font-weight:400;line-height:1.1;margin:0 0 25px}
.tenedim-home-contact p{max-width:350px;line-height:1.65}
.tenedim-home-contact a{display:inline-block;margin-top:24px;text-decoration:underline;text-underline-offset:5px}
.tenedim-home-contact fieldset{border:0;margin:0 0 25px;padding:0}
.tenedim-home-contact legend,.tenedim-home-contact label{font-size:10px;letter-spacing:.14em;text-transform:uppercase}
.tenedim-home-contact .subjects{display:flex;flex-wrap:wrap;gap:7px;margin-top:12px}
.tenedim-home-contact .subjects label{cursor:pointer;letter-spacing:0;border:1px solid #ccd2d9;padding:9px 14px}
.tenedim-home-contact .subjects label:has(input:checked){background:#00224B;color:white}
.tenedim-home-contact .subjects input{position:absolute;opacity:0;width:1px;height:1px}
.tenedim-home-contact .field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}
.tenedim-home-contact .field{display:flex;flex-direction:column;margin-bottom:22px;gap:7px}
.tenedim-home-contact input:not([type=radio]),.tenedim-home-contact textarea{width:100%;border:0;border-bottom:1px solid #aeb9c6;padding:12px 3px;background:transparent;color:#00224B;font-size:15px;outline-offset:3px}
.tenedim-home-contact textarea{min-height:90px;resize:vertical}
.tenedim-home-contact button{display:block;margin:20px 0 0 auto;padding:15px 25px;background:#7E062B;color:white;border:0;cursor:pointer;letter-spacing:.12em;font-size:11px}
.tenedim-home-contact .status{font-size:13px;min-height:24px}
@media(max-width:750px){.tenedim-home-contact{grid-template-columns:1fr;gap:30px;padding:60px 24px}.tenedim-home-contact .field-grid{grid-template-columns:1fr;gap:0}}

/* Explicit layout placement of injected contact section */
body:has(main > section:nth-of-type(6)) main>section.tenedim-home-contact{order:5!important;display:grid!important}
body:has(main > section:nth-of-type(6)) main>section:nth-of-type(5){display:none!important}
body:has(main > section:nth-of-type(6)) main{display:flex;flex-direction:column}
