
/* =========================================================
   Ichrak Koubaity — Design system and homepage
   ========================================================= */

:root {
  --cream: #FAF7F2;
  --ink: #1A1714;
  --gold: #96803F;
  --gold-dark: #6E5B26;
  --line: rgba(110, 91, 38, .25);

  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Montserrat', Arial, sans-serif;

  --shell: 1640px;
  --page-gutter: clamp(24px, 5.5vw, 94px);
  --ease-editorial: cubic-bezier(.16, 1, .3, 1);
}

/* Foundation */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--gold-dark);
  outline-offset: 4px;
}

.shell {
  width: min(
    calc(100% - var(--page-gutter) * 2),
    var(--shell)
  );
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  z-index: 100;
  top: -100px;
  left: 12px;
  padding: 12px 16px;
  background: var(--ink);
  color: #fff;
}

.skip-link:focus {
  top: 12px;
}

/* Header */

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  transition: border-color .35s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: clamp(24px, 3vw, 52px);
  min-height: 122px;
}

.brand {
  display: block;
  flex: 0 0 auto;
  width: 125px;
}

.brand img {
  width: 100%;
  height: auto;
}

.navigation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(25px, 3.1vw, 54px);
  margin-left: auto;
}

.navigation a {
  padding-block: 9px;
  font: 500 clamp(21px, 1.4vw, 25px)/1.2 var(--serif);
  text-decoration: none;
  white-space: nowrap;
  transition: color .25s ease;
}

.navigation a:hover,
.navigation .is-current {
  color: var(--gold-dark);
}

.navigation .is-current {
  border-bottom: 1px solid var(--gold);
}

.nav-toggle {
  display: none;
}

/* Header compact on scroll */

.header-inner,
.brand {
  transition:
    min-height .35s var(--ease-editorial),
    width .35s var(--ease-editorial);
}

.site-header.is-compact .header-inner {
  min-height: 80px;
}

.site-header.is-compact .brand {
  width: 90px;
}

@media (min-width: 761px) and (max-width: 1100px) {
  .site-header.is-compact .header-inner {
    min-height: 72px;
  }

  .site-header.is-compact .brand {
    width: 78px;
  }
}

@media (max-width: 760px) {
  .site-header.is-compact .header-inner {
    min-height: 62px;
  }

  .site-header.is-compact .brand {
    width: 62px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .header-inner,
  .brand {
    transition: none;
  }
}
/* Hero */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 48%) minmax(0, 52%);
  min-height: 617px;
}

.hero-copy {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-width: 0;
  padding: 48px 18px 54px clamp(40px, 7.3vw, 122px);
}

.hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(78px, 7vw, 120px);
  font-weight: 500;
  line-height: .82;
  letter-spacing: -.052em;
  white-space: nowrap;
  animation: hero-title-enter 1s var(--ease-editorial) both;
}

.hero h1 span {
  display: block;
}

.hero h1 em {
  color: var(--gold);
  font-weight: 400;
  font-style: italic;
}

.gold-rule {
  width: 105px;
  height: 1px;
  margin: 39px 0 23px;
  background: var(--gold);
  transform-origin: left;
  animation: hero-rule-enter .85s .35s ease-out both;
}

.eyebrow {
  max-width: 670px;
  margin: 0 0 24px;
  font-size: clamp(10px, .85vw, 13px);
  font-weight: 600;
  line-height: 1.9;
  letter-spacing: .19em;
  text-transform: uppercase;
  animation: hero-content-enter .8s .42s ease-out both;
}

.hero-promise {
  max-width: 650px;
  margin: 0 0 33px;
  font: italic 400 clamp(24px, 1.85vw, 31px)/1.13 var(--serif);
  animation: hero-content-enter .85s .55s ease-out both;
}

.primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 64px;
  padding: 15px 31px;
  border: 1px solid var(--gold-dark);
  background: var(--gold-dark);
  color: #fff;
  font: 500 26px/1.1 var(--serif);
  text-decoration: none;
  white-space: nowrap;
  transition: background .3s ease, border-color .3s ease;
  animation: hero-content-enter .85s .7s ease-out both;
}

.primary-link span {
  margin-left: 14px;
  font: 400 23px/1 var(--sans);
  transition: transform .3s var(--ease-editorial);
}

.primary-link:hover {
  background: var(--ink);
  border-color: var(--ink);
}

.primary-link:hover span {
  transform: translateX(6px);
}

/* Portrait */

.portrait-stage {
  position: relative;
  min-width: 0;
  margin-left: -145px;
  overflow: hidden;
  isolation: isolate;
  background: var(--cream);
}

.hero-portrait {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 54% 0%;
  animation: hero-photo-enter 1.2s var(--ease-editorial) both;
}

.portrait-stage::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: -28%;
  left: -290px;
  width: 360px;
  height: 160%;
  border: 1px solid rgba(150, 128, 63, .45);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  animation: hero-detail-enter 1s 1s ease-out forwards;
}

.portrait-stage::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    var(--cream) 0%,
    rgba(250, 247, 242, .96) 6%,
    rgba(250, 247, 242, .75) 15%,
    rgba(250, 247, 242, .35) 25%,
    rgba(250, 247, 242, 0) 39%
  );
}

/* Three differences */

.differences {
  position: relative;
  padding: 39px 0 44px;
  border-block: 1px solid var(--line);
}

.differences-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.differences article {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: clamp(17px, 2vw, 35px);
  min-width: 0;
  padding: 4px clamp(20px, 3vw, 50px) 18px;
  border-left: 1px solid var(--line);
}

.differences article:first-child {
  padding-left: 0;
  border-left: 0;
}

.item-number {
  flex: 0 0 auto;
  font: italic 400 clamp(58px, 4.8vw, 77px)/.8 var(--serif);
  color: var(--gold);
  transform-origin: left center;
  transition:
    transform .55s var(--ease-editorial),
    color .35s ease;
}

.differences h2 {
  margin: 0 0 9px;
  font: 700 clamp(12px, .95vw, 15px)/1.4 var(--sans);
  letter-spacing: .11em;
  text-transform: uppercase;
  transition: color .35s ease;
}

.differences p {
  max-width: 330px;
  margin: 0;
  font: 400 clamp(13px, 1vw, 16px)/1.65 var(--sans);
}

.differences article::after {
  content: "";
  position: absolute;
  right: clamp(20px, 3vw, 50px);
  bottom: 0;
  left: clamp(20px, 3vw, 50px);
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .65s var(--ease-editorial);
}

.differences article:first-child::after {
  left: 0;
}

@media (hover: hover) and (pointer: fine) {
  .differences article:hover .item-number {
    color: var(--gold-dark);
    transform: scale(1.075);
  }

  .differences article:hover h2 {
    color: var(--gold-dark);
  }

  .differences article:hover::after {
    transform: scaleX(1);
  }
}

/* Scroll reveal */

.differences.motion-ready article {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity .85s var(--ease-editorial),
    transform .85s var(--ease-editorial);
}

.differences.motion-ready.is-visible article {
  opacity: 1;
  transform: none;
}

.differences.motion-ready.is-visible article:nth-child(2) {
  transition-delay: .13s;
}

.differences.motion-ready.is-visible article:nth-child(3) {
  transition-delay: .26s;
}

/* Footer */

.site-footer {
  padding: 35px 0;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 25px;
  font-size: 12px;
}

.footer-inner a {
  text-decoration: none;
}

.footer-inner a:hover {
  text-decoration: underline;
}

/* ICHRAK SOCIAL LINKS */

.footer-social {
  display: flex;
  align-items: center;
  gap: 17px;
}

.footer-inner .footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 32px;
  color: var(--gold);
  text-decoration: none;
  transition: color .3s ease, transform .3s ease;
}

.footer-social svg {
  display: block;
  width: 17px;
  height: 17px;
  flex: none;
}

.footer-inner .footer-social a:hover {
  color: var(--gold-dark);
  text-decoration: none;
  transform: translateY(-2px);
}

.footer-inner .footer-social a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 5px;
  border-radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .footer-inner .footer-social a {
    transition: none;
  }

  .footer-inner .footer-social a:hover {
    transform: none;
  }
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-left: auto;
}

/* Footer — signature de réalisation */

.footer-credit {
  width: min(
    calc(100% - var(--page-gutter) * 2),
    var(--shell)
  );
  margin: 31px auto 0;
  padding-top: 23px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.footer-credit p {
  margin: 0;
  color: rgba(26, 23, 20, .70);
  font: 400 11px/1.8 var(--sans);
  letter-spacing: .025em;
}

.footer-credit a {
  margin-left: 4px;
  color: var(--gold-dark);
  font-weight: 600;
  text-decoration: none;
  text-underline-offset: 4px;
  transition: color .25s ease;
}

.footer-credit a:hover {
  color: var(--ink);
  text-decoration: underline;
}

@media (max-width: 760px) {
  .footer-credit {
    margin-top: 24px;
    padding-top: 20px;
  }

  .footer-credit p {
    font-size: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .footer-credit a {
    transition: none;
  }
}
/* Animations */

@keyframes hero-title-enter {
  from {
    opacity: 0;
    transform: translateY(26px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes hero-rule-enter {
  from {
    opacity: 0;
    transform: scaleX(0);
  }

  to {
    opacity: 1;
    transform: scaleX(1);
  }
}

@keyframes hero-content-enter {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes hero-photo-enter {
  from {
    opacity: 0;
    clip-path: inset(0 0 0 18%);
    transform: scale(1.025);
  }

  to {
    opacity: 1;
    clip-path: inset(0);
    transform: none;
  }
}

@keyframes hero-detail-enter {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Laptop */

@media (max-width: 1400px) {
  .brand {
    width: 115px;
  }

  .header-inner {
    gap: 25px;
  }

  .navigation {
    gap: 30px;
  }

  .hero h1 {
    font-size: clamp(65px, 6.3vw, 95px);
  }

  .hero-copy {
    padding-left: clamp(35px, 6vw, 85px);
  }

  .hero-promise {
    font-size: clamp(23px, 2vw, 28px);
  }

  .portrait-stage {
    margin-left: -100px;
  }
}

/* Tablet */

@media (max-width: 1100px) {
  :root {
    --page-gutter: clamp(30px, 6vw, 70px);
  }

  .header-inner {
    min-height: 96px;
    gap: 25px;
  }

  .brand {
    width: 95px;
  }

  .navigation {
    gap: clamp(20px, 3vw, 34px);
  }

  .hero-inner {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  .hero-copy {
    width: 100%;
    padding:
      clamp(57px, 7vw, 82px)
      var(--page-gutter)
      clamp(54px, 6vw, 72px);
  }

  .hero h1 {
    font-size: clamp(60px, 8vw, 88px);
    line-height: .86;
  }

  .gold-rule {
    margin: 35px 0 23px;
  }

  .eyebrow {
    max-width: 650px;
    margin-bottom: 25px;
    font-size: 12px;
  }

  .hero-promise {
    max-width: 760px;
    margin-bottom: 32px;
    font-size: clamp(26px, 3vw, 32px);
    line-height: 1.16;
  }

  .primary-link {
    min-height: 60px;
    padding: 15px 27px;
    font-size: 24px;
  }

  .portrait-stage {
    width: 100%;
    height: clamp(380px, 53vw, 540px);
    min-height: 0;
    margin-left: 0;
  }

  .hero-portrait {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
  }

  .portrait-stage::before,
  .portrait-stage::after {
    display: none;
  }

  .differences {
    padding: 20px 0;
  }

  .differences-grid {
    grid-template-columns: 1fr;
  }

  .differences article,
  .differences article:first-child {
    gap: clamp(28px, 5vw, 55px);
    padding: 27px 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .differences article:first-child {
    border-top: 0;
  }

  .item-number {
    min-width: 80px;
    font-size: 73px;
  }

  .differences h2 {
    font-size: 13px;
  }

  .differences p {
    max-width: 560px;
    font-size: 14px;
  }

  .differences article::after {
    display: none;
  }

  .footer-legal {
    margin-left: 0;
  }
}

/* Mobile */


 /* Navigation tablette et mobile */

 @media (max-width: 1250px) {
   .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 43px;
    height: 41px;
    padding: 9px;
    border: 1px solid var(--line);
    background: transparent;
    cursor: pointer;
  }

  .nav-toggle span {
    display: block;
    width: 100%;
    height: 1px;
    background: var(--ink);
  }

  .navigation {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 20px 18px 26px;
    border-bottom: 1px solid var(--line);
    background: var(--cream);
    box-shadow: 0 18px 30px rgba(0, 0, 0, .06);
  }

  .navigation.is-open {
    display: flex;
  }

  .navigation a {
    padding: 7px 3px;
    font-size: 27px;
  }

  .navigation .is-current {
    border-bottom: 0;
  }

   .nav-toggle {
     margin-left: auto;
   }
 }

@media (max-width: 760px) {
  :root {
    --page-gutter: 18px;
  }

  html {
    scroll-padding-top: 75px;
  }

  .header-inner {
    min-height: 75px;
    justify-content: space-between;
  }

  .brand {
    width: 75px;
  }

  .hero-copy {
    padding: 51px 18px 43px;
  }

  .hero h1 {
    font-size: clamp(43px, 11vw, 80px);
    line-height: .88;
    white-space: normal;
  }

  .gold-rule {
    margin: 30px 0 22px;
  }

  .eyebrow {
    max-width: 480px;
    margin-bottom: 23px;
    font-size: 10px;
    line-height: 1.9;
  }

  .hero-promise {
    max-width: 540px;
    margin-bottom: 28px;
    font-size: clamp(23px, 5.6vw, 29px);
    line-height: 1.16;
  }

  .primary-link {
    min-height: 55px;
    padding: 14px 21px;
    font-size: 21px;
  }

  .primary-link span {
    font-size: 19px;
  }

  .portrait-stage {
    width: 100%;
    height: auto;
    min-height: 0;
  }

  /* Mobile Hero — no entrance animation */
  .hero-portrait {
    animation: none;
  }

  .hero-portrait {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    aspect-ratio: 1400 / 876;
    object-fit: cover;
    object-position: 54% 0%;
  }

  .differences {
    padding: 22px 0;
  }

  .differences article,
  .differences article:first-child {
    gap: 22px;
    padding: 22px 0;
  }

  .item-number {
    min-width: 55px;
    font-size: 58px;
  }

  .differences h2 {
    font-size: 12px;
  }

  .differences p {
    font-size: 13px;
  }

  .differences.motion-ready.is-visible article:nth-child(2) {
    transition-delay: .09s;
  }

  .differences.motion-ready.is-visible article:nth-child(3) {
    transition-delay: .18s;
  }

  .footer-legal {
    width: 100%;
  }
}

/* Reduced motion */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .differences.motion-ready article {
    opacity: 1;
    transform: none;
  }
}