/*
Theme Name: Essaouira Immobilier Maroc
Description: Site vitrine de l’agence Essaouira Immobilier Maroc.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: essaouira-immobilier
*/
:root{--paper:#f8f4eb;--ivory:#fffaf0;--blue:#204f9f;--ink:#122d59;--line:#d9dce1;--serif:Georgia,'Times New Roman',serif;--sans:system-ui,-apple-system,'Segoe UI',sans-serif}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;color:var(--ink);background:var(--paper);font:16px/1.62 var(--sans)}
body .wp-site-blocks{padding:0}
body .wp-site-blocks>*{margin-block:0}
a{color:inherit}
a:focus-visible{outline:3px solid #5488d0;outline-offset:5px}
p,h1,h2,h3{margin:0}
img{display:block;max-width:100%;height:auto}
.wrap{width:min(1240px,calc(100% - 96px));margin-inline:auto}
.masthead{background:var(--paper)}
.head-inner{min-height:93px;display:flex;justify-content:space-between;align-items:center;gap:26px}
.brand{display:inline-flex;align-items:center;gap:12px;line-height:1.18;color:var(--ink);text-decoration:none;font:500 17px/1.1 var(--serif);letter-spacing:.075em}
.brand svg{width:31px;height:39px;color:var(--blue);flex:none}
.brand small{display:block;font:600 9px/1.5 var(--sans);letter-spacing:.36em;margin-top:4px;color:var(--blue)}
.head-inner nav{display:flex;align-items:center;gap:clamp(17px,2.6vw,40px);font-size:14px}
.head-inner nav a{text-decoration:none;white-space:nowrap}
.head-inner nav a:hover{text-decoration:underline;text-underline-offset:4px}
.head-contact{border:1px solid var(--blue);border-radius:3px;padding:9px 15px;font-weight:650}
.hero{min-height:clamp(520px,48vw,730px);isolation:isolate;position:relative;display:flex;align-items:center;background:#1b3760;color:var(--ivory)}
.hero-image{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 50%;z-index:-2}
.hero::before{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,rgba(10,28,55,.91),rgba(10,28,55,.61) 43%,rgba(10,28,55,.1) 85%),linear-gradient(0deg,rgba(10,28,55,.27),transparent 55%)}
.hero-inner{padding-block:65px 94px}
.eyebrow{font:680 11px/1.5 var(--sans);letter-spacing:.21em;color:var(--blue)}
.hero .eyebrow,.contact .eyebrow{color:#dbe8ff}
h1,h2,h3{font-family:var(--serif);font-weight:400;line-height:1.06;letter-spacing:-.035em}
.hero h1{font-size:clamp(59px,8.9vw,126px);line-height:.93;margin:22px 0 26px}
.hero-copy{font-size:clamp(16px,1.8vw,21px);line-height:1.5}
.actions{display:flex;align-items:center;gap:24px;flex-wrap:wrap;margin-top:30px}
.button{display:inline-flex;align-items:center;justify-content:space-between;gap:20px;min-height:49px;padding:11px 19px;border-radius:3px;text-decoration:none;font-size:14px;font-weight:680;white-space:nowrap}
.button-white{color:var(--ink);background:var(--ivory)}
.button-white:hover{background:#dfeaff}
.button-blue{color:white;background:var(--blue)}
.button-blue:hover{background:var(--ink)}
.hero-contact{font-size:14px;text-underline-offset:4px}
.paths{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:-34px;position:relative;z-index:1}
.path-card{background:var(--ivory);border:1px solid #dfdfdc;padding:23px 26px;display:flex;align-items:center;justify-content:space-between;gap:12px;text-decoration:none;min-width:0}
.path-card:hover{border-color:var(--blue)}
.path-card strong{display:block;font:400 clamp(22px,2.7vw,34px)/1.1 var(--serif)}
.path-card small{display:block;margin-top:7px;font-size:13px}
.round{width:35px;height:35px;display:grid;place-items:center;border:1px solid #c3d3e7;border-radius:50%;color:var(--blue);flex:none}
.listing{padding-block:91px 85px}
.section-head{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:29px}
.section-head>p{max-width:330px;font-size:14px}
h2{font-size:clamp(34px,4.3vw,62px);margin-top:10px}
.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
.cards article{background:var(--ivory);border:1px solid var(--line)}
.cards img{aspect-ratio:1.62;width:100%;object-fit:cover}
.card-caption{padding:17px 18px 21px}
.card-caption h3{font-size:29px}
.card-caption p{font-size:14px;margin-top:5px}
.seller{background:#e9eef7}
.seller-inner,.contact-inner{min-height:260px;display:flex;align-items:center;justify-content:space-between;gap:26px;padding-block:40px}
.seller-inner p:not(.eyebrow),.agency p:not(.eyebrow){margin-top:15px;max-width:570px}
.agency{display:grid;grid-template-columns:minmax(110px,240px) 1fr;align-items:center;gap:clamp(25px,7vw,140px);padding-block:76px}
.agency-mark{background:#ede7db;color:var(--blue);min-height:200px;display:grid;place-items:center}
.agency-mark svg{width:80px;height:100px}
.contact{background:var(--blue);color:var(--ivory)}
.phone{display:inline-block;margin-top:15px;text-underline-offset:4px}
.footer-end{border-top:1px solid #ffffff62;display:flex;justify-content:space-between;align-items:center;gap:10px;padding-block:16px;font-size:12px}
.footer-end a{text-decoration:none}
@media(max-width:820px){.wrap{width:calc(100% - 48px)}.head-inner nav{gap:14px}.head-contact{padding:6px 10px}.listing{padding-block:60px}.section-head{align-items:start;flex-direction:column;gap:10px}.cards{gap:12px}.card-caption{padding:13px 12px 16px}}
@media(max-width:590px){.wrap{width:calc(100% - 36px)}.head-inner{flex-wrap:wrap;gap:10px;padding-block:14px;min-height:0}.brand{font-size:14px}.brand svg{width:24px;height:31px}.head-inner nav{justify-content:space-between;width:100%;gap:8px;font-size:12px}.hero{min-height:510px}.hero::before{background:linear-gradient(90deg,rgba(10,28,55,.85),rgba(10,28,55,.39)),linear-gradient(0deg,rgba(10,28,55,.38),transparent 60%)}.hero-inner{padding-block:55px 78px}.hero h1{font-size:clamp(51px,13.9vw,78px)}.hero-copy{font-size:16px}.desktop-break{display:none}.actions{gap:14px;margin-top:23px}.paths{grid-template-columns:1fr;gap:8px;margin-top:-27px}.path-card{padding:15px 16px}.cards{grid-template-columns:1fr;gap:14px}.seller-inner,.contact-inner{align-items:flex-start;flex-direction:column;justify-content:center;min-height:0}.agency{grid-template-columns:90px 1fr;gap:16px;padding-block:42px}.agency-mark{min-height:130px}.agency-mark svg{width:46px;height:58px}.agency h2{font-size:29px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

.prototype-note{background:#122d59;color:#fffaf0;padding:6px 18px;text-align:center;font-size:.81rem;letter-spacing:.07em}

/* Biens et fiches de la maquette */
.listing-image{position:relative}
.listing-status{display:inline-flex;align-items:center;min-height:32px;padding:4px 10px;border-radius:2px;background:#e7effc;color:#16396f;font-size:.82rem;font-weight:680;white-space:nowrap}
.listing-status.offer{background:#f5e4c6;color:#634610}
.listing-status.sold{background:#ecece8;color:#3d423e}
.listing-image .listing-status{position:absolute;top:12px;left:12px}
.listing-card{min-width:0}
.listing-card .card-caption{padding:19px 19px 18px}
.listing-location{font-size:.84rem;font-weight:650;color:var(--blue)}
.card-caption h3{margin:6px 0 8px;font-size:clamp(25px,2.25vw,34px)}
.listing-facts{font-size:.88rem;line-height:1.55}
.listing-bottom{border-top:1px solid var(--line);padding-top:11px;margin-top:14px;display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.listing-price{font-size:1.05rem;font-weight:700;font-variant-numeric:tabular-nums;white-space:nowrap}
.listing-bottom .listing-price{margin:0}
.listing-bottom a,.back-link{font-size:.875rem;color:var(--blue);font-weight:650;text-underline-offset:3px}
.detail{padding-block:42px 68px}
.detail-grid{display:grid;grid-template-columns:minmax(0,1.18fr) minmax(0,1fr);gap:clamp(24px,5vw,70px);align-items:center;margin-top:28px}
.detail-photo img{width:100%;height:auto;aspect-ratio:3/2;object-fit:cover}
.detail-copy .listing-location{margin-top:16px}
.detail-copy h1{font-size:clamp(40px,5vw,70px);margin:7px 0 15px}
.detail-copy .listing-price{font-size:1.3rem;margin-top:12px}
.detail-description{margin:17px 0}
.detail-notice{font-size:.88rem;border-top:1px solid var(--line);padding-top:12px}
@media(min-width:591px) and (max-width:900px){.listing .cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.detail-grid{grid-template-columns:1fr}.detail{padding-block:25px 42px}}
