/*
Theme Name: Yvette Prost
Theme URI: https://home-passion.ch
Author: Home Passion
Description: Thème sur mesure pour Yvette Prost, décoratrice d'intérieur. Ambiance expresso, sable et ivoire.
Version: 1.0.0
Requires at least: 6.6
Requires PHP: 8.0
License: GPLv2 or later
Text Domain: yvette-prost
*/

/* ---------- Base ---------- */
html{scroll-behavior:smooth}
body{overflow-x:hidden}
:where(a,button,summary,input,textarea,select):focus-visible{outline:2px solid var(--wp--preset--color--sand);outline-offset:4px}
em{font-style:italic}
.wp-site-blocks{padding-top:0}
main.yp-main{margin-top:0}

/* ---------- Petits éléments ---------- */
.wp-block-separator.is-style-yp-rule{width:76px;max-width:76px;height:2px;border:0;background:var(--wp--preset--color--sand);margin-left:0;opacity:1;transform-origin:left}
.has-text-align-center + .wp-block-separator.is-style-yp-rule,.yp-center .wp-block-separator.is-style-yp-rule{margin-left:auto;margin-right:auto;transform-origin:center}
.is-style-yp-caps{font-size:.9rem;letter-spacing:.32em;text-transform:uppercase;font-weight:400;color:#E6D9CE}
.is-style-yp-caps a{text-decoration:none;color:inherit}
p.is-style-yp-script{font-family:var(--wp--preset--font-family--script);font-size:4rem;line-height:1;color:#EADCCF;margin-bottom:0}
.wp-block-button.is-style-yp-line .wp-block-button__link{background:transparent;color:var(--wp--preset--color--ivory);border:1px solid var(--wp--preset--color--ivory);border-radius:0;padding:.95rem 1.9rem;font-weight:300;font-size:1.05rem;display:inline-flex;align-items:center;gap:1.3rem;transition:background .35s,color .35s}
.wp-block-button.is-style-yp-line .wp-block-button__link::after{content:"";width:28px;height:14px;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 14'%3E%3Cpath d='M0 7h26M20 1l6 6-6 6' fill='none' stroke='black' stroke-width='1.4'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 14'%3E%3Cpath d='M0 7h26M20 1l6 6-6 6' fill='none' stroke='black' stroke-width='1.4'/%3E%3C/svg%3E") center/contain no-repeat;transition:transform .35s}
.wp-block-button.is-style-yp-line .wp-block-button__link:hover{background:var(--wp--preset--color--ivory);color:var(--wp--preset--color--espresso)}
.wp-block-button.is-style-yp-line .wp-block-button__link:hover::after{transform:translateX(6px)}

/* ---------- En-tête ---------- */
.yp-header{position:fixed;top:0;left:0;right:0;z-index:100;transition:background .4s}
.admin-bar .yp-header{top:32px}
.yp-header.is-solid{background:rgba(33,26,24,.93);backdrop-filter:blur(10px)}
.yp-header .yp-bar{padding-top:1.3rem;padding-bottom:1.3rem;transition:padding .4s}
.yp-header.is-solid .yp-bar{padding-top:.6rem;padding-bottom:.6rem}
.yp-logo{display:flex;align-items:center;gap:1.4rem;text-decoration:none;color:var(--wp--preset--color--ivory)}
.yp-logo .yp-mark{display:flex;flex-direction:column;align-items:center;gap:4px;font-size:.85rem}
.yp-logo svg{width:84px;height:77px;transition:width .4s,height .4s}
.yp-header.is-solid .yp-logo svg{width:56px;height:51px}
.yp-logo .yp-sep{width:1px;height:76px;background:var(--wp--preset--color--ivory);opacity:.8;transition:height .4s}
.yp-header.is-solid .yp-logo .yp-sep{height:46px}
.yp-header .wp-block-navigation a{text-decoration:none;position:relative}
.yp-header .wp-block-navigation .wp-block-navigation-item__content::after{content:"";position:absolute;left:0;right:0;bottom:-6px;height:1.5px;background:var(--wp--preset--color--sand);transform:scaleX(0);transform-origin:left;transition:transform .35s}
.yp-header .wp-block-navigation .wp-block-navigation-item__content:hover::after,.yp-header .wp-block-navigation .current-menu-item>.wp-block-navigation-item__content::after{transform:none}
.yp-header .wp-block-navigation__responsive-container.is-menu-open{background:var(--wp--preset--color--espresso-dark);color:var(--wp--preset--color--ivory)}
.yp-page-top{padding-top:clamp(9rem,14vw,12rem)!important}

/* ---------- Héros ---------- */
.wp-block-cover.yp-hero{overflow:hidden}
.wp-block-cover.yp-hero .wp-block-cover__image-background{animation:yp-kb 26s ease-in-out infinite alternate;transform-origin:30% 60%}
@keyframes yp-kb{from{transform:scale(1.04)}to{transform:scale(1.14)}}
.wp-block-cover.yp-hero::after{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;background:linear-gradient(180deg,rgba(33,26,24,.92) 0%,rgba(33,26,24,.15) 30%,rgba(33,26,24,.05) 55%,rgba(33,26,24,.95) 100%)}
.wp-block-cover.yp-hero .wp-block-cover__inner-container{position:relative;z-index:2!important;width:min(560px,100%)!important;margin-right:clamp(1rem,8vw,9rem)!important}
.wp-block-cover.yp-single-hero .wp-block-cover__inner-container{width:min(900px,100%)!important;margin-left:clamp(1rem,6vw,6rem)!important;margin-bottom:clamp(2rem,6vh,5rem)!important}
.yp-hero h1{font-size:clamp(2.75rem,4.8vw,4.5rem);line-height:1.08;text-shadow:0 2px 30px rgba(0,0,0,.25);color:var(--wp--preset--color--ivory)}
.yp-line{display:block;overflow:hidden}
.yp-line>span{display:block}
.js .yp-line>span{transform:translateY(110%);transition:transform 1.1s cubic-bezier(.2,.8,.2,1)}
.js .yp-loaded .yp-line>span{transform:none}

/* ---------- Rais de lumière ---------- */
.yp-rays-host{position:relative;overflow:hidden}
.yp-rays{position:absolute;inset:-20%;pointer-events:none;z-index:1;background:linear-gradient(118deg,transparent 30%,rgba(255,214,176,.07) 36%,transparent 42%),linear-gradient(118deg,transparent 52%,rgba(255,214,176,.05) 57%,transparent 62%),linear-gradient(118deg,transparent 70%,rgba(255,214,176,.06) 74%,transparent 79%);filter:blur(18px);animation:yp-drift 22s ease-in-out infinite alternate}
.yp-rays-host:not(.wp-block-cover)>*:not(.yp-rays){position:relative;z-index:2}
@keyframes yp-drift{from{transform:translate(-4%,-2%)}to{transform:translate(4%,3%)}}

/* ---------- Sur mesure ---------- */
.yp-surmesure h2{font-size:clamp(3.4rem,6.4vw,6rem);line-height:.98;color:#EAD6C6}
.yp-surmesure .wp-block-image{margin:0;overflow:hidden}
.yp-surmesure .wp-block-image img{width:100%;height:clamp(460px,58vw,820px);object-fit:cover}
.js .yp-photo-reveal img{clip-path:inset(0 0 0 100%);transform:scale(1.12);transition:clip-path 1.5s cubic-bezier(.7,0,.2,1),transform 2.4s cubic-bezier(.2,.8,.2,1)}
.js .yp-photo-reveal.is-in img{clip-path:inset(0 0 0 0);transform:none}

/* ---------- Projets (collage) ---------- */
.yp-collage .wp-block-post-template{position:relative;height:820px;list-style:none;margin:3.5rem 0 0;padding:0;display:block}
.yp-collage .wp-block-post{position:absolute;margin:0;overflow:hidden;box-shadow:0 30px 60px rgba(0,0,0,.45);transition:transform 1.1s cubic-bezier(.2,.8,.2,1),opacity .8s,box-shadow .4s}
.yp-collage .wp-block-post:nth-child(1){--r:-4deg;left:0;top:30px;width:36%;height:560px}
.yp-collage .wp-block-post:nth-child(2){--r:2.5deg;left:44%;top:0;width:43%;height:300px;transition-delay:.15s}
.yp-collage .wp-block-post:nth-child(3){--r:3.5deg;left:28%;top:330px;width:30%;height:470px;z-index:3;transition-delay:.3s}
.yp-collage .wp-block-post:nth-child(4){--r:-3deg;left:62%;top:350px;width:30%;height:450px;transition-delay:.45s}
.yp-collage .wp-block-post{transform:rotate(var(--r))}
.js .yp-collage:not(.is-in) .wp-block-post{opacity:0;transform:translateY(120px) rotate(calc(var(--r) * 3))}
.yp-collage .wp-block-post:hover{transform:rotate(0) scale(1.04);z-index:10;box-shadow:0 40px 90px rgba(0,0,0,.6);transition-delay:0s}
.yp-collage .wp-block-post-featured-image{position:absolute;inset:0;margin:0}
.yp-collage .wp-block-post-featured-image a,.yp-collage .wp-block-post-featured-image img{display:block;width:100%;height:100%;object-fit:cover;transition:transform 1s}
.yp-collage .wp-block-post:hover .wp-block-post-featured-image img{transform:scale(1.06)}
.yp-collage .wp-block-post-title{position:absolute;left:0;right:0;bottom:0;margin:0;padding:1.4rem 1.2rem 1.6rem;background:linear-gradient(transparent,rgba(64,48,40,.8) 30%);text-align:center;font-size:clamp(1.2rem,1.9vw,1.65rem);line-height:1.15;pointer-events:none}
.yp-collage .wp-block-post-title a{color:#FFF6EE;text-decoration:none;pointer-events:auto}
.yp-collage .wp-block-post-title a::before{content:"";position:absolute;inset:-600px 0 0 0}

/* Grille des réalisations (archive) */
.yp-grid .wp-block-post-featured-image{overflow:hidden;margin-bottom:.9rem}
.yp-grid .wp-block-post-featured-image img{aspect-ratio:4/5;object-fit:cover;transition:transform 1s}
.yp-grid .wp-block-post:hover .wp-block-post-featured-image img{transform:scale(1.05)}
.yp-grid .wp-block-post-title a{text-decoration:none}
.yp-grid .wp-block-post-terms{color:var(--wp--preset--color--taupe);font-size:.95rem}
.yp-grid .wp-block-post-terms a{color:inherit;text-decoration:none}

/* ---------- Accompagnement / services ---------- */
.yp-accomp .wp-block-image img{width:100%;aspect-ratio:449/703;object-fit:cover}
.yp-accomp h2{font-size:clamp(2.5rem,4.2vw,3.9rem);line-height:1.12}
.wp-block-details.is-style-yp-service{border-bottom:1px solid var(--wp--preset--color--line);margin:0}
.wp-block-details.is-style-yp-service summary{list-style:none;display:grid;grid-template-columns:62px 1fr 22px;align-items:center;column-gap:4.4rem;padding:1.6rem 0;cursor:pointer;font-family:var(--wp--preset--font-family--serif);font-style:italic;font-size:clamp(2rem,3.4vw,3rem);color:#EFE2D6}
.wp-block-details.is-style-yp-service summary::-webkit-details-marker{display:none}
.wp-block-details.is-style-yp-service summary::before{content:"";width:62px;height:62px;background:#E8DACD;-webkit-mask:var(--yp-icon) center/contain no-repeat;mask:var(--yp-icon) center/contain no-repeat}
.wp-block-details.is-style-yp-service summary::after{content:"+";font-family:var(--wp--preset--font-family--sans);font-style:normal;font-weight:300;font-size:1.6rem;color:var(--wp--preset--color--taupe);transition:transform .4s}
.wp-block-details.is-style-yp-service[open] summary::after{transform:rotate(45deg)}
.wp-block-details.is-style-yp-service summary{background:linear-gradient(var(--wp--preset--color--line),var(--wp--preset--color--line)) no-repeat calc(62px + 2.2rem) center/1px 60px;padding-left:0}
.wp-block-details.is-style-yp-service summary:hover{color:var(--wp--preset--color--sand)}
.wp-block-details.is-style-yp-service>:not(summary){margin:0 0 1.6rem calc(62px + 4.4rem);color:#D9CBBF;max-width:34em}
.yp-svc-conseil{--yp-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 62 62'%3E%3Cpath d='M31 12c-13 0-23 7.5-23 17 0 5 2.8 9.4 7.4 12.5L13 51l11-5.6c2.2.5 4.5.8 7 .8 13 0 23-7.6 23-17.2S44 12 31 12z' fill='none' stroke='black' stroke-width='1.4'/%3E%3C/svg%3E")}
.yp-svc-moodboard{--yp-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 62 62' fill='none' stroke='black' stroke-width='1.4'%3E%3Crect x='10' y='22' width='30' height='30'/%3E%3Cpath d='M16 22V16h30v30h-6M22 16V10h30v30h-6'/%3E%3C/svg%3E")}
.yp-svc-3d{--yp-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 62 62' fill='none' stroke='black' stroke-width='1.4'%3E%3Cpath d='M31 8l20 11v24L31 54 11 43V19z'/%3E%3Cpath d='M11 19l20 11 20-11M31 30v24'/%3E%3C/svg%3E")}
.yp-svc-scene{--yp-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 62 62' fill='none' stroke='black' stroke-width='1.4'%3E%3Cpath d='M14 30v-8c0-5 4-8 9-8h16c5 0 9 3 9 8v8'/%3E%3Cpath d='M10 30c0-3 2-5 4-5s4 2 4 5v6h26v-6c0-3 2-5 4-5s4 2 4 5v14H10z'/%3E%3Cpath d='M14 44v6M48 44v6'/%3E%3C/svg%3E")}
.js .yp-sign .is-style-yp-script{clip-path:inset(0 100% 0 0);transition:clip-path 2s steps(30) .3s}
.js .yp-sign.is-in .is-style-yp-script{clip-path:inset(0 0 0 0)}
.yp-sign .is-style-yp-caps{margin:.3rem 0 0 2rem;font-size:.8rem}

/* ---------- Contact ---------- */
.wp-block-cover.yp-contact .wp-block-cover__image-background{transform:scale(1.08);will-change:transform}
.wp-block-cover.yp-contact::after{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;background:linear-gradient(90deg,rgba(33,26,24,0) 30%,rgba(33,26,24,.35) 60%,rgba(33,26,24,.55)),linear-gradient(180deg,#211A18 0%,transparent 18%,transparent 80%,rgba(33,26,24,.9))}
.wp-block-cover.yp-contact .wp-block-cover__inner-container{position:relative;z-index:2!important;width:min(1180px,100%)!important}
.yp-contact .yp-reveal{margin-left:auto!important;margin-right:0!important;max-width:600px}
.yp-contact h2{font-size:clamp(3.2rem,5.6vw,5.2rem);line-height:1}
.yp-contact p{font-weight:400;color:#EDE2D8}
.wp-block-details.yp-form>summary{list-style:none;display:inline-flex;align-items:center;gap:1.3rem;padding:.95rem 1.9rem;border:1px solid var(--wp--preset--color--ivory);cursor:pointer;font-size:1.05rem;transition:background .35s,color .35s}
.wp-block-details.yp-form>summary::-webkit-details-marker{display:none}
.wp-block-details.yp-form>summary::after{content:"→";font-size:1.3rem;transition:transform .35s}
.wp-block-details.yp-form>summary:hover{background:var(--wp--preset--color--ivory);color:var(--wp--preset--color--espresso)}
.wp-block-details.yp-form[open]>summary::after{transform:rotate(90deg)}
.yp-form .yp-contact-form{display:grid;gap:1rem;padding-top:1.8rem}
.yp-form .yp-contact-form p{margin:0}
.yp-form label{display:flex;flex-direction:column;gap:.35rem;font-size:.9rem;color:#E0D3C8}
.yp-form input:not([type=submit]),.yp-form textarea{width:100%;background:rgba(33,26,24,.55);border:0;border-bottom:1px solid var(--wp--preset--color--taupe);color:var(--wp--preset--color--ivory);font:inherit;font-size:1.05rem;padding:.75rem .6rem}
.yp-form input[type=submit]{background:var(--wp--preset--color--sand);color:var(--wp--preset--color--espresso);border:0;border-radius:999px;padding:.85rem 1.9rem;font:inherit;cursor:pointer}
.yp-form .yp-form-msg{color:var(--wp--preset--color--sand)}
.yp-cbar{display:flex;justify-content:flex-end;align-items:center;gap:2rem;flex-wrap:wrap}
.yp-cbar p{margin:0;display:flex;align-items:center;gap:.8rem}
.yp-cbar p::before{content:"";width:24px;height:24px;background:#E8DACD;-webkit-mask:var(--yp-icon) center/contain no-repeat;mask:var(--yp-icon) center/contain no-repeat}
.yp-cbar p+p{border-left:1px solid rgba(232,218,205,.7);padding-left:2rem}
.yp-cbar a{text-decoration:none}
.yp-ic-tel{--yp-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.4'%3E%3Cpath d='M5 3h4l2 5-2.5 1.5a11 11 0 005 5L15 12l5 2v4a2 2 0 01-2 2A16 16 0 013 5a2 2 0 012-2z'/%3E%3C/svg%3E")}
.yp-ic-mail{--yp-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.4'%3E%3Crect x='3' y='5' width='18' height='14'/%3E%3Cpath d='M3 6l9 7 9-7'/%3E%3C/svg%3E")}
.yp-ic-pin{--yp-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.4'%3E%3Cpath d='M12 21s-7-6.2-7-11.5A7 7 0 0119 9.5C19 14.8 12 21 12 21z'/%3E%3Ccircle cx='12' cy='9.5' r='2.5'/%3E%3C/svg%3E")}

/* ---------- Apparitions au défilement ---------- */
.js .yp-reveal{opacity:0;transform:translateY(40px);transition:opacity 1.1s cubic-bezier(.2,.8,.2,1),transform 1.1s cubic-bezier(.2,.8,.2,1)}
.js .yp-reveal.is-in{opacity:1;transform:none}
.js .wp-block-separator.is-style-yp-rule{transform:scaleX(0);transition:transform 1s cubic-bezier(.2,.8,.2,1) .2s}
.js .wp-block-separator.is-style-yp-rule.is-in{transform:none}

/* ---------- Pied de page ---------- */
.yp-footer a{text-decoration:none;color:var(--wp--preset--color--taupe)}
.yp-footer a:hover{color:var(--wp--preset--color--sand)}

/* ---------- Mobile ---------- */
@media (max-width:960px){
.yp-logo svg{width:60px;height:55px}.yp-logo .yp-sep{height:52px}
.wp-block-cover.yp-hero .wp-block-cover__inner-container{margin-right:auto!important;margin-left:auto!important}
.wp-block-cover.yp-hero::after{background:linear-gradient(180deg,rgba(33,26,24,.92) 0%,rgba(33,26,24,.45) 30%,rgba(33,26,24,.55) 60%,rgba(33,26,24,.95) 100%)}
.yp-collage .wp-block-post-template{height:auto;display:grid;grid-template-columns:1fr 1fr;gap:1rem}
.yp-collage .wp-block-post{position:relative!important;left:auto!important;top:auto!important;width:auto!important;height:300px!important}
.wp-block-details.is-style-yp-service summary{grid-template-columns:44px 1fr 20px;column-gap:2.2rem}
.wp-block-details.is-style-yp-service summary::before{width:44px;height:44px}
.wp-block-details.is-style-yp-service summary{background-position:calc(44px + 1.1rem) center}
.wp-block-details.is-style-yp-service>:not(summary){margin-left:0}
.yp-cbar{justify-content:flex-start}.yp-cbar p+p{border-left:0;padding-left:0}
}
@media (max-width:600px){.yp-collage .wp-block-post-template{grid-template-columns:1fr}
/* En-tête : nom et bouton sur une ligne (testé à 320 et 375 px) */
.yp-logo{gap:.9rem}
.yp-logo .yp-mark{white-space:nowrap}
.yp-logo svg,.yp-header.is-solid .yp-logo svg{width:44px;height:40px}
.yp-logo .yp-sep,.yp-header.is-solid .yp-logo .yp-sep{height:40px}
.yp-bar>.wp-block-group{gap:1rem}
.yp-header .wp-block-button__link{white-space:nowrap;padding:.6rem 1.1rem;font-size:.9rem}
}
@media (prefers-reduced-motion:reduce){
*,*::before,*::after{animation:none!important;transition:none!important}
.js .yp-reveal,.js .yp-collage .wp-block-post{opacity:1!important;transform:none!important}
.js .yp-line>span,.js .wp-block-separator.is-style-yp-rule{transform:none!important}
.js .yp-photo-reveal img,.js .yp-sign .is-style-yp-script{clip-path:none!important;transform:none!important}
}
