/* ELHIRECH Design Studio — pages par ville (Salé, Marrakech), 31/10/2026
   Se charge après style.css et reprend ses jetons. La mise en scène vient du métier :
   le cartouche d'un plan d'architecte (héros), les annotations d'un relevé (notes), la légende (quartiers). */

body.page-ville { background: var(--white); }
.page-ville .header { background: rgba(255, 255, 255, .9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.page-ville .header.is-solid { background: rgba(255, 255, 255, .9); }

/* ---------- fil d'Ariane ---------- */
.ariane { padding-top: calc(var(--header-h) + 34px); }
.ariane ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 10px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--grey); }
.ariane li + li::before { content: "/"; margin-right: 14px; color: var(--beige-2); }
.ariane a { border-bottom: 1px solid transparent; transition: border-color .4s; }
.ariane a:hover { border-color: currentColor; }
.ariane [aria-current] { color: var(--black); }

/* ---------- héros : la feuille de plan et son cartouche ---------- */
.vhero { padding: clamp(40px, 6vw, 90px) 0 clamp(90px, 10vw, 150px); }
.vhero__grid { display: grid; grid-template-columns: 1fr minmax(320px, 1.05fr); gap: clamp(40px, 6vw, 110px); align-items: center; }
.vhero .eyebrow { margin: 0 0 28px; }
.vhero__title { font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 5.6vw, 92px); line-height: 1.02; letter-spacing: .01em; margin: 0; }
.vhero__title em { color: var(--grey); display: block; }
.vhero__lead { font-size: clamp(15px, 1.05vw, 17px); line-height: 1.8; color: var(--grey-2); font-weight: 300; max-width: 480px; margin: 32px 0 0; }
.vhero__ctas { display: flex; align-items: center; gap: 30px; margin-top: 40px; flex-wrap: wrap; }

.sheet { position: relative; margin: 0; }
.sheet__img { aspect-ratio: 4 / 3; background: var(--off); }
.sheet__img img { width: 100%; height: 100%; object-fit: cover; }
.sheet__cap { margin-top: 12px; font-size: 10px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--grey); }

/* le cartouche : un tableau de traits fins, comme en bas à droite d'un plan */
.cartouche {
  position: relative; z-index: 2; width: min(100%, 440px); margin: -64px 0 0 auto; background: var(--white);
  font-size: 10px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--black);
}
.cartouche__row { display: grid; grid-template-columns: 96px 1fr; position: relative; }
.cartouche__row > * { padding: 11px 14px; }
.cartouche__row dt { color: var(--grey); }
.cartouche__row dd { margin: 0; letter-spacing: .14em; }
.cartouche__row dd.serif { font-family: var(--serif); font-size: 19px; letter-spacing: .02em; text-transform: none; font-weight: 500; padding-top: 7px; padding-bottom: 7px; }
/* les traits se tracent à l'apparition */
.cartouche::before, .cartouche__row::after, .cartouche__row > *:not(:first-child)::before { content: ""; position: absolute; background: var(--black); transition: transform 1.2s var(--ease-io); }
.cartouche::before { inset: 0; background: none; border: 1px solid var(--black); clip-path: inset(0 100% 100% 0); transition: clip-path 1.4s var(--ease-io); }
.cartouche__row::after { left: 0; right: 0; bottom: 0; height: 1px; transform: scaleX(0); transform-origin: left; }
.cartouche__row:last-child::after { display: none; }
.cartouche__row > * { position: relative; }
.cartouche__row > *:not(:first-child)::before { left: 0; top: 0; bottom: 0; width: 1px; transform: scaleY(0); transform-origin: top; }
.cartouche > * { opacity: 0; transition: opacity .8s var(--ease) .9s; }
.is-ready .cartouche::before { clip-path: inset(0 0 0 0); }
.is-ready .cartouche__row::after { transform: scaleX(1); transition-delay: .4s; }
.is-ready .cartouche__row > *:not(:first-child)::before { transform: scaleY(1); transition-delay: .6s; }
.is-ready .cartouche > * { opacity: 1; }
.is-ready .cartouche__row:nth-child(2) > * { transition-delay: 1s; }

/* ---------- notes de relevé : des annotations numérotées, comme sur un plan ---------- */
.notes { background: var(--off); border-top: 1px solid var(--line); padding: clamp(100px, 11vw, 170px) 0; }
.notes__head { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px 60px; align-items: end; margin-bottom: clamp(56px, 6vw, 96px); }
.notes__head .eyebrow { grid-column: 1 / -1; margin: 0; }
.notes__head .lead { margin: 0; justify-self: end; }
.notes__list { list-style: none; margin: 0; padding: 0; counter-reset: note; border-top: 1px solid var(--line); }
.note { counter-increment: note; display: grid; grid-template-columns: 70px minmax(0, .9fr) minmax(0, 1.4fr); gap: 10px clamp(20px, 4vw, 70px); padding: clamp(28px, 3vw, 42px) 0; border-bottom: 1px solid var(--line); align-items: start; }
.note::before {
  content: counter(note); width: 38px; height: 38px; border: 1px solid var(--black); border-radius: 50%;
  display: grid; place-items: center; font-family: var(--serif); font-size: 18px; line-height: 1; font-variant-numeric: lining-nums;
}
.note h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 2.1vw, 34px); line-height: 1.15; margin: 0; }
.note p { margin: 0; color: var(--grey-2); font-weight: 300; max-width: 560px; }

/* ---------- le déroulé, en quatre temps ---------- */
.deroule { padding: clamp(100px, 11vw, 170px) 0; }
.deroule__head { margin-bottom: clamp(50px, 6vw, 90px); }
.deroule__steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 2.4vw, 40px); }
.deroule__step { border-top: 1px solid var(--black); padding-top: 22px; }
.deroule__num { display: block; font-family: var(--serif); font-weight: 300; font-size: clamp(54px, 5vw, 84px); line-height: .9; color: var(--beige-2); }
.deroule__step h3 { font-family: var(--sans); font-weight: 500; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; margin: 26px 0 12px; }
.deroule__step p { margin: 0; color: var(--grey-2); font-weight: 300; font-size: 15px; }
.deroule__more { margin-top: clamp(40px, 5vw, 70px); }

/* ---------- la légende : les quartiers ---------- */
.legende { background: var(--black); color: var(--white); padding: clamp(90px, 10vw, 150px) 0; }
.legende .eyebrow { color: rgba(255, 255, 255, .5); }
.legende .eyebrow .idx { color: var(--beige-2); }
.legende__list { list-style: none; margin: clamp(40px, 5vw, 70px) 0 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 30px; }
.legende__list li { font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 3vw, 48px); line-height: 1.15; display: flex; align-items: center; gap: 30px; }
.legende__list li + li::before { content: ""; width: 36px; height: 1px; background: var(--beige-2); flex: none; }
.legende__note { margin: clamp(40px, 5vw, 60px) 0 0; max-width: 620px; color: rgba(255, 255, 255, .62); font-weight: 300; }

/* ---------- réalisations ---------- */
.vprojets { padding: clamp(100px, 11vw, 170px) 0 0; }
.vprojets__grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(16px, 2vw, 32px); margin-top: clamp(50px, 6vw, 90px); align-items: start; }
.vprojets .proj:first-child { grid-column: 1 / span 7; }
.vprojets .proj:last-child { grid-column: 9 / span 4; margin-top: 12vh; }
.vprojets .proj:first-child .proj__frame { aspect-ratio: 4 / 3; }
.vprojets .proj:last-child .proj__frame { aspect-ratio: 4 / 5; }
.vprojets .proj__frame { clip-path: none; }

/* ---------- questions ---------- */
.faq { padding: clamp(100px, 11vw, 170px) 0; }
.faq__grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(40px, 6vw, 110px); align-items: start; }
.faq__list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr 24px; gap: 20px; align-items: center;
  padding: 26px 0; font-family: var(--serif); font-weight: 400; font-size: clamp(21px, 1.7vw, 27px); line-height: 1.25;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { position: relative; width: 24px; height: 24px; }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 4px; right: 4px; top: 50%; height: 1px; background: var(--black); transition: transform .5s var(--ease); }
.faq summary i::after { transform: rotate(90deg); }
.faq details[open] summary i::after { transform: rotate(0); }
.faq details p { margin: 0 0 28px; max-width: 640px; color: var(--grey-2); font-weight: 300; }
.faq details p a { border-bottom: 1px solid currentColor; }

/* ---------- appel final ---------- */
.vcta { background: var(--black); color: var(--white); padding: clamp(100px, 12vw, 180px) 0; }
.vcta__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(40px, 6vw, 110px); align-items: end; }
.vcta__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 44px; }
.vcta__coord { border-top: 1px solid var(--line-light); padding-top: 26px; display: grid; gap: 18px; }
.vcta__coord span { display: block; font-size: 10px; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; color: rgba(255, 255, 255, .45); margin-bottom: 8px; }
.vcta__coord a, .vcta__coord p { font-family: var(--serif); font-size: clamp(20px, 1.8vw, 26px); margin: 0; word-break: break-word; }
.vcta__coord a { border-bottom: 1px solid rgba(255, 255, 255, .3); transition: border-color .4s; }
.vcta__coord a:hover { border-color: var(--beige-2); }

/* ---------- situation (fond noir) : texte et plan côte à côte ---------- */
.legende__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 110px); align-items: center; }
.legende .legende__list li { font-size: clamp(22px, 2.2vw, 34px); }
.legende__note a { color: var(--white); border-bottom: 1px solid rgba(255, 255, 255, .35); transition: border-color .4s; }
.legende__note a:hover { border-color: var(--beige-2); }

/* ---------- page « tout le Maroc » ---------- */
.vhero--hub .vhero__grid { grid-template-columns: 1fr 1.2fr; }
.sheet--plan .situ { display: block; }
.villes { background: var(--off); border-top: 1px solid var(--line); padding: clamp(100px, 11vw, 170px) 0; }
.regions { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(40px, 4vw, 70px) clamp(24px, 3vw, 56px); align-items: start; }
.region h3 { font-family: var(--sans); font-weight: 500; font-size: 10.5px; letter-spacing: .3em; text-transform: uppercase; color: var(--grey); margin: 0 0 14px; }
.region ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--black); }
.ligne { display: grid; grid-template-columns: 1fr auto 18px; gap: 14px; align-items: baseline; padding: 15px 0; border-bottom: 1px solid var(--line); transition: padding .5s var(--ease); }
.ligne__nom { font-family: var(--serif); font-size: clamp(22px, 1.8vw, 28px); }
.ligne__info { font-size: 9.5px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--grey); }
.ligne__fl { transition: transform .5s var(--ease); }
.ligne:hover { padding-left: 8px; }
.ligne:hover .ligne__fl { transform: translateX(4px); }

/* pas d'ouverture du logo si elle a déjà été vue pendant la visite */
.no-intro .loader { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .deroule__steps { grid-template-columns: repeat(2, 1fr); row-gap: 50px; }
  .regions { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .ariane { padding-top: calc(var(--header-h) + 24px); }
  .vhero__grid, .vhero--hub .vhero__grid, .faq__grid, .vcta__grid, .legende__grid { grid-template-columns: 1fr; }
  .regions { grid-template-columns: 1fr; }
  .cartouche { margin: -40px 0 0 auto; width: calc(100% - 24px); }
  .cartouche__row { grid-template-columns: 82px 1fr; }
  .notes__head { grid-template-columns: 1fr; }
  .notes__head .lead { justify-self: start; }
  .note { grid-template-columns: 50px 1fr; }
  .note p { grid-column: 2; }
  .vprojets .proj:first-child, .vprojets .proj:last-child { grid-column: 1 / -1; margin-top: 0; }
  .vprojets .proj:last-child { grid-column: 3 / -1; margin-top: 56px; }
}
@media (max-width: 520px) {
  .deroule__steps { grid-template-columns: 1fr; }
  .legende__list li { gap: 18px; }
  .legende__list { gap: 10px 18px; }
  .legende__list li + li::before { width: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .cartouche::before { clip-path: none; }
  .cartouche__row::after, .cartouche__row > *:not(:first-child)::before { transform: none; }
  .cartouche > * { opacity: 1; }
}
