/* ==========================================================
   Ibañez – Les origines
   ========================================================== */

:root {
  --bg: #0b0a09;
  --bg-soft: #13110f;
  --text: #f2efe9;
  --muted: #8d877e;
  --line: rgba(242, 239, 233, .12);
  --accent: #b5533f;          /* rouge brique, version sourde du rouge du logo */

  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Manrope', system-ui, sans-serif;

  --gutter: clamp(20px, 6vw, 96px);
  --section: clamp(120px, 20vh, 240px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 300 1rem/1.8 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
figure { margin: 0; }
em { font-style: italic; color: var(--accent); }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

::selection { background: var(--accent); color: var(--text); }


/* ---------- Éléments communs ---------- */

.label {
  margin: 0 0 clamp(48px, 8vw, 96px);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--muted);
}
.label span {
  color: var(--accent);
  margin-right: 1.4em;
}

.section-title {
  margin: 0 0 clamp(56px, 8vw, 112px);
  font: 300 clamp(2.4rem, 5.5vw, 4.8rem)/1.05 var(--serif);
  letter-spacing: .01em;
}

.link {
  position: relative;
  display: inline-block;
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .28em;
  text-transform: uppercase;
  padding-bottom: 6px;
}
.link::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform-origin: right;
  transition: transform .6s var(--ease), background-color .4s;
}
.link:hover::after {
  transform: scaleX(0);
}
.link:hover { color: var(--accent); }


/* ---------- Apparitions au scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}


/* ---------- Parallaxe ---------- */

.parallax {
  position: absolute;
  inset: -12% 0;
  will-change: transform;
}
.parallax img {
  width: 100%; height: 100%;
  object-fit: cover;
}


/* ---------- Navigation ---------- */

.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 28px var(--gutter);
  transition: padding .5s var(--ease), background-color .5s, backdrop-filter .5s;
}
.nav.is-scrolled,
.nav.is-solid {
  padding-top: 18px; padding-bottom: 18px;
  background: rgba(11, 10, 9, .78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav__brand {
  font: 400 1.25rem/1 var(--serif);
  letter-spacing: .3em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity .5s;
}
.nav.is-scrolled .nav__brand,
.nav.is-solid .nav__brand { opacity: 1; }

.nav__menu { display: flex; gap: clamp(24px, 3.5vw, 56px); }
.nav__menu a {
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: rgba(242, 239, 233, .7);
  transition: color .4s;
}
.nav__menu a:hover { color: var(--text); }

.nav__toggle { display: none; }

@media (max-width: 760px) {
  .nav__toggle {
    display: block; position: relative; z-index: 2;
    width: 32px; height: 20px;
    background: none; border: 0; padding: 0; cursor: pointer;
  }
  .nav__toggle span:not(.sr-only) {
    position: absolute; left: 0; right: 0; height: 1px;
    background: var(--text);
    transition: transform .5s var(--ease), top .5s var(--ease);
  }
  .nav__toggle span:nth-child(1) { top: 5px; }
  .nav__toggle span:nth-child(2) { top: 14px; }
  .nav.is-open .nav__toggle span:nth-child(1) { top: 10px; transform: rotate(45deg); }
  .nav.is-open .nav__toggle span:nth-child(2) { top: 10px; transform: rotate(-45deg); }

  .nav__menu {
    position: fixed; inset: 0;
    flex-direction: column; justify-content: center; align-items: center;
    gap: 36px;
    background: var(--bg);
    opacity: 0; visibility: hidden;
    transition: opacity .5s, visibility .5s;
  }
  .nav.is-open .nav__menu { opacity: 1; visibility: visible; }
  .nav__menu a { font: 300 2rem/1 var(--serif); letter-spacing: .12em; text-transform: none; }
  .nav.is-open .nav__brand { opacity: 0; }
}


/* ---------- Hero ---------- */

.hero {
  position: relative;
  height: 100vh; height: 100svh;
  min-height: 560px;
  overflow: hidden;
  display: flex; align-items: center; justify-content: flex-end;
  padding: 0 var(--gutter);
}
.hero__media img { object-position: 30% center; }
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(11,10,9,0) 30%, rgba(11,10,9,.55) 70%),
    linear-gradient(0deg, var(--bg) 0%, rgba(11,10,9,0) 30%);
}

.hero__content {
  position: relative; z-index: 1;
  width: min(460px, 100%);
  text-align: center;
  margin-right: 4vw;
}
.hero__logo { margin: 0 0 40px; }
.hero__logo .logo { width: 100%; height: auto; overflow: visible; }

.hero__kicker,
.hero__products {
  margin: 0;
  opacity: 0;
  animation: fade-up 1.2s var(--ease) forwards;
}
.hero__kicker {
  font-size: .7rem; font-weight: 500;
  letter-spacing: .5em; text-transform: uppercase;
  color: var(--muted);
  animation-delay: 2.1s;
}
.hero__products {
  margin-top: 14px;
  font: 300 italic clamp(1.3rem, 2.2vw, 1.7rem)/1.3 var(--serif);
  letter-spacing: .06em;
  animation-delay: 2.35s;
}
.hero__products i { font-style: normal; color: var(--accent); margin: 0 .4em; }

.hero__scroll {
  position: absolute; z-index: 1;
  left: 50%; bottom: 36px;
  width: 1px; height: 64px;
  background: var(--line);
  overflow: hidden;
}
.hero__scroll span {
  position: absolute; left: 0; top: 0;
  width: 1px; height: 100%;
  background: var(--text);
  animation: scroll-line 2.4s var(--ease) infinite 3s;
  transform: translateY(-100%);
}

@media (max-width: 760px) {
  .hero { justify-content: center; align-items: flex-end; padding-bottom: 22vh; }
  .hero__media img { object-position: 25% center; }
  .hero::after { background: linear-gradient(0deg, var(--bg) 5%, rgba(11,10,9,.35) 60%, rgba(11,10,9,.2) 100%); }
  .hero__content { margin: 0; width: min(320px, 100%); }
}


/* ---------- Logo animé ---------- */

.logo #name path,
.logo #tag path,
.logo #name-shadow,
.logo #tag-shadow {
  opacity: 0;
  animation: logo-letter 1s var(--ease) forwards;
  transform-box: fill-box;
}
.logo #name-shadow { animation-delay: .35s; }
.logo #tag-shadow,
.logo #tag path { animation-delay: 1.35s; }

/* Délais lettre par lettre posés en JS (--d) */
.logo #name path { animation-delay: calc(.2s + var(--d, 0s)); }
.logo #tag path  { animation-delay: calc(1.3s + var(--d, 0s)); }

.logo .logo-arc-draw {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: arc-draw 1.6s cubic-bezier(.6, 0, .2, 1) .5s forwards;
}


/* ---------- Manifeste ---------- */

.manifesto {
  padding: var(--section) var(--gutter);
  text-align: center;
}
.manifesto__title {
  margin: 0 auto;
  font: 300 clamp(2.6rem, 8vw, 7.5rem)/1 var(--serif);
  letter-spacing: .01em;
}
.manifesto__sub {
  max-width: 34ch;
  margin: 48px auto 0;
  color: var(--muted);
  font-size: .95rem;
  letter-spacing: .04em;
}


/* ---------- Origines ---------- */

.story { padding: 0 var(--gutter) var(--section); }

.story__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: clamp(16px, 2vw, 32px);
  align-items: start;
}
.story__intro {
  grid-column: 1 / span 4;
  font: 300 clamp(1.25rem, 1.8vw, 1.6rem)/1.6 var(--serif);
}
.story__intro p { margin: 0; }

.story__kid img {
  width: 100%;
  aspect-ratio: 3 / 4.6;
  object-fit: cover;
  filter: grayscale(.5) sepia(.15) contrast(1.05) brightness(.9);
  transition: filter 1s var(--ease);
}
.story__kid:hover img { filter: none; }
.story__kid--nicolas { grid-column: 6 / span 3; margin-top: 160px; }
.story__kid--raphael { grid-column: 10 / span 3; }

figcaption {
  margin-top: 20px;
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}
figcaption strong {
  display: block;
  margin-bottom: 4px;
  font: 400 1.35rem/1.2 var(--serif);
  letter-spacing: .04em;
  text-transform: none;
  color: var(--text);
}
figcaption small {
  display: block;
  margin-top: 6px;
  font-size: .62rem;
  letter-spacing: .14em;
  color: rgba(141, 135, 126, .7);
}

.story__duo {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: clamp(16px, 2vw, 32px);
  align-items: center;
  margin-top: var(--section);
}
.story__duo-img { grid-column: 1 / span 6; }
.story__duo-img img {
  width: 100%;
  filter: grayscale(.55) contrast(1.05) brightness(.85);
}
.story__duo-text {
  grid-column: 8 / span 4;
  color: rgba(242, 239, 233, .82);
}
.story__duo-text p { margin: 0 0 1.4em; }

@media (max-width: 900px) {
  .story__intro { grid-column: 1 / -1; margin-bottom: 64px; }
  .story__kid--nicolas { grid-column: 1 / span 6; margin-top: 80px; }
  .story__kid--raphael { grid-column: 7 / span 6; }
  .story__duo-img,
  .story__duo-text { grid-column: 1 / -1; }
  .story__duo-text { margin-top: 48px; }
}


/* ---------- Citation ---------- */

.quote {
  position: relative;
  min-height: 90vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  padding: var(--section) var(--gutter);
}
.quote::before {
  content: '';
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, var(--bg) 0%, rgba(11,10,9,.35) 25%, rgba(11,10,9,.35) 75%, var(--bg) 100%);
}
.quote__media img { filter: saturate(.7); }
.quote__text {
  position: relative; z-index: 2;
  max-width: 900px;
  margin: 0;
  text-align: center;
}
.quote__text p {
  margin: 0;
  font: 300 italic clamp(1.8rem, 3.8vw, 3.3rem)/1.25 var(--serif);
}
.quote__text cite {
  display: block;
  margin-top: 40px;
  font: 500 normal .7rem/1 var(--sans);
  letter-spacing: .32em;
  text-transform: uppercase;
  color: rgba(242, 239, 233, .7);
}


/* ---------- Gamme ---------- */

.range { padding: var(--section) var(--gutter); }

.range__img {
  overflow: hidden;
}
.range__img img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  filter: saturate(.85);
}

.range__list {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(var(--nb, 3), 1fr);
  border-bottom: 1px solid var(--line);
}
.range__list li {
  padding: 48px 0;
  font: 300 clamp(1.6rem, 3vw, 2.8rem)/1 var(--serif);
  letter-spacing: .12em;
  text-transform: uppercase;
  text-align: center;
}
.range__list li + li { border-left: 1px solid var(--line); }
.range__list li:nth-child(2) { transition-delay: .12s; }
.range__list li:nth-child(3) { transition-delay: .24s; }

.range__note {
  margin: 48px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: .9rem;
  letter-spacing: .04em;
}

@media (max-width: 760px) {
  .range__list { grid-template-columns: 1fr; }
  .range__list li { padding: 32px 0; }
  .range__list li + li { border-left: 0; border-top: 1px solid var(--line); }
}


/* ---------- Points de vente ---------- */

.stores {
  padding: var(--section) var(--gutter);
  background: var(--bg-soft);
}

.stores__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 64px clamp(32px, 4vw, 64px);
  margin-bottom: 80px;
}
.stores__col h3 {
  display: flex; justify-content: space-between; align-items: baseline;
  margin: 0 0 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  font: 400 1.5rem/1 var(--serif);
  letter-spacing: .06em;
}
.stores__col h3 span {
  font: 500 .7rem/1 var(--sans);
  letter-spacing: .2em;
  color: var(--accent);
}
.stores__col:nth-child(2) { transition-delay: .1s; }
.stores__col:nth-child(3) { transition-delay: .2s; }
.stores__col:nth-child(4) { transition-delay: .3s; }

.stores__col ul { list-style: none; margin: 0; padding: 0; }
.stores__col li {
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  line-height: 2.4;
  color: rgba(242, 239, 233, .72);
}



/* ---------- Finale ---------- */

.finale {
  position: relative;
  height: 100vh;
  min-height: 560px;
  display: flex; align-items: flex-end;
  overflow: hidden;
  padding: 0 var(--gutter) 14vh;
}
.finale::before {
  content: '';
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, var(--bg-soft) 0%, rgba(11,10,9,.15) 30%, rgba(11,10,9,.7) 72%, var(--bg) 100%),
    linear-gradient(90deg, rgba(11,10,9,.55) 0%, rgba(11,10,9,0) 55%);
}
.finale__media img { filter: saturate(.75); }
.finale__text {
  position: relative; z-index: 2;
  margin: 0;
  font: 300 clamp(3rem, 9vw, 8.5rem)/.95 var(--serif);
}


/* ---------- Contact ---------- */

.contact { padding: var(--section) var(--gutter); }

.contact__grid {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 48px;
}
.contact__big {
  font: 300 clamp(2.6rem, 8vw, 7rem)/1 var(--serif);
  letter-spacing: .04em;
  transition: color .5s;
}
.contact__big:hover { color: var(--accent); }
.contact__side {
  display: flex; flex-direction: column; align-items: flex-start; gap: 22px;
  transition-delay: .15s;
}
.contact__side .link { letter-spacing: .14em; text-transform: none; font-size: .9rem; font-weight: 400; }

@media (max-width: 760px) {
  .contact__grid { grid-template-columns: 1fr; }
}


/* ---------- Pages secondaires (mentions légales, 404) ---------- */

.legal {
  min-height: 70vh;
  padding: calc(var(--section) + 40px) var(--gutter) var(--section);
}
.legal__content { max-width: 680px; }
.legal__content h2 {
  margin: 56px 0 12px;
  font: 400 1.5rem/1.2 var(--serif);
  letter-spacing: .04em;
}
.legal__content p {
  margin: 0;
  color: rgba(242, 239, 233, .78);
}
.legal__content a { border-bottom: 1px solid var(--line); transition: color .4s; }
.legal__content a:hover { color: var(--accent); }


/* ---------- Footer ---------- */

.footer {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  padding: 32px var(--gutter);
  border-top: 1px solid var(--line);
  font-size: .68rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}
.footer a { transition: color .4s; }
.footer a:hover { color: var(--text); }


/* ---------- Keyframes ---------- */

@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}
@keyframes logo-letter {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
@keyframes arc-draw {
  to { stroke-dashoffset: 0; }
}
@keyframes scroll-line {
  0%   { transform: translateY(-100%); }
  60%  { transform: translateY(100%); }
  100% { transform: translateY(100%); }
}


/* ---------- Réduction des animations ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .hero__kicker, .hero__products,
  .logo #name path, .logo #tag path, .logo #name-shadow, .logo #tag-shadow {
    opacity: 1; transform: none; animation: none; transition: none;
  }
  .logo .logo-arc-draw { animation: none; stroke-dashoffset: 0; }
  .hero__scroll span { animation: none; }
}
