/* =====================================================================
   XB Photography — page d'accueil
   ===================================================================== */

/* Héros : panthère noire à gauche, texte à droite */
.hero { position: relative; height: 100svh; min-height: 620px; overflow: hidden; display: flex; align-items: center; }
.hero-photo {
  position: absolute;
  inset: 0 34% 0 0;
  width: 66%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
  animation: kenburns 18s ease-out forwards;
}
@keyframes kenburns { from { transform: scale(1.15); } to { transform: scale(1); } }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(11, 10, 8, 0) 0%, rgba(11, 10, 8, 0) 38%, var(--bg) 66%),
    linear-gradient(0deg, var(--bg) 0%, transparent 30%);
}
.hero-text { position: relative; z-index: 2; margin-left: auto; max-width: 520px; }
.hero h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(54px, 8vw, 112px); line-height: 0.95; margin: 18px 0 24px; }
.hero h1 em { color: var(--gold); }
.hero p { color: var(--muted); font-size: 18px; line-height: 1.6; margin: 0 0 34px; }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; }
.scroll-cue { position: absolute; z-index: 2; left: 50%; bottom: 24px; width: 1px; height: 54px; background: var(--line); overflow: hidden; }
.scroll-cue::after { content: ""; position: absolute; top: -50%; left: 0; width: 1px; height: 50%; background: var(--gold); animation: cue 2s infinite; }
@keyframes cue { to { top: 100%; } }

/* Compteurs */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--line); }
.stat { padding: 38px 24px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-family: var(--serif); font-size: 56px; font-weight: 500; line-height: 1; }
.stat span { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

/* Sections */
.section { padding: 120px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 48px; }
.section-head h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(40px, 5vw, 64px); line-height: 1; margin: 12px 0 0; }
.section-head p { color: var(--muted); max-width: 380px; margin: 0; line-height: 1.6; }
/* Variante : la phrase d’introduction sous le titre plutôt qu’à droite */
.section-head.stacked { flex-direction: column; align-items: flex-start; gap: 18px; }
.section-head.stacked p { max-width: 560px; font-size: 17px; }

/* Trois univers */
.universes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { position: relative; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 4px; }
.card img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.85); transition: transform 1s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.6s; }
.card:hover img { transform: scale(1.07); filter: saturate(1.05); }
.card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 0, 0, 0.85), transparent 55%); }
.card-body { position: absolute; z-index: 1; left: 28px; right: 28px; bottom: 26px; }
.card-body .count { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; color: var(--gold); }
.card-body h3 { font-family: var(--serif); font-weight: 500; font-size: 40px; margin: 6px 0 8px; }
.card-body p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; max-height: 0; opacity: 0; overflow: hidden; transition: max-height 0.5s, opacity 0.5s; }
.card:hover .card-body p,
.card:focus-visible .card-body p { max-height: 80px; opacity: 1; }
.card .arrow {
  position: absolute;
  z-index: 1;
  top: 22px;
  right: 22px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  display: grid;
  place-items: center;
  transition: background 0.3s, transform 0.3s, border-color 0.3s, color 0.3s;
}
.card:hover .arrow { background: var(--gold); color: var(--gold-ink); border-color: var(--gold); transform: rotate(-45deg); }

/* Le jaguar */
.jaguar { background: #000; overflow: hidden; }
.jaguar-inner { display: grid; grid-template-columns: 1.4fr 1fr; align-items: center; min-height: 720px; }
.jaguar-img { position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; overflow: hidden; }
.jaguar-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(0.2, 0.7, 0.2, 1); }
.jaguar-img:hover img { transform: scale(1.03); }
/* Fondu vers le noir de la section, côté texte */
.jaguar-img::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, 0.55) 75%, #000 100%); }
.zoom-hint {
  position: absolute;
  z-index: 1;
  left: 20px;
  bottom: 20px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(11, 10, 8, 0.6);
  backdrop-filter: blur(6px);
  padding: 8px 12px;
  border-radius: 999px;
  opacity: 0;
  transition: opacity 0.3s;
}
.jaguar-img:hover .zoom-hint,
.jaguar-img:focus-visible .zoom-hint { opacity: 1; }
.jaguar-text { padding: 80px 64px 80px 24px; }
.jaguar-text h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(44px, 5vw, 72px); line-height: 1; margin: 14px 0 24px; }
.jaguar-text h2 em { color: var(--gold); }
.jaguar-text p { color: var(--muted); line-height: 1.7; margin: 0 0 30px; }
.jaguar-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 30px; }
.jaguar-thumbs button { padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 3px; }
.jaguar-thumbs img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 3px; filter: grayscale(0.4); transition: filter 0.4s, transform 0.4s; }
.jaguar-thumbs button:hover img,
.jaguar-thumbs button:focus-visible img { filter: none; transform: translateY(-4px); }

/* Nouveautés (highlights) */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: min(460px, 82%); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 20px; scrollbar-width: thin; scrollbar-color: var(--gold) transparent; }
.frame { scroll-snap-align: start; display: block; }
.frame .ph { overflow: hidden; border-radius: 4px; aspect-ratio: 4 / 3; background: var(--bg-2); }
.frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s; }
.frame:hover img { transform: scale(1.05); }
.frame h3 { font-family: var(--serif); font-size: 26px; font-weight: 500; margin: 18px 0 6px; }
.frame p { color: var(--muted); font-size: 14px; margin: 0 0 8px; line-height: 1.5; }
.frame .meta { font-family: var(--mono); font-size: 11px; color: var(--gold); letter-spacing: 0.06em; text-transform: uppercase; }
.rail-ctrl { display: flex; gap: 10px; }
.rail-ctrl button { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: none; font-size: 18px; cursor: pointer; transition: border-color 0.25s, color 0.25s; }
.rail-ctrl button:hover { border-color: var(--gold); color: var(--gold); }

/* Ce que je cherche : une catégorie par bloc, diaporama de 3 photos */
.quest { display: grid; gap: 120px; }
.q { display: grid; grid-template-columns: 1.1fr 1fr; gap: 72px; align-items: center; }
.q:nth-child(even) .q-img { order: 2; }
.q-img { position: relative; overflow: hidden; border-radius: 4px; aspect-ratio: 4 / 3; background: var(--bg-2); }
.slide { position: absolute; inset: 0; margin: 0; opacity: 0; visibility: hidden; transition: opacity 1.2s ease, visibility 1.2s; }
.slide.active { opacity: 1; visibility: visible; z-index: 1; }

.slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 6s linear; }
.slide.active img { transform: scale(1); }
.dots { position: absolute; z-index: 2; right: 16px; bottom: 16px; display: flex; gap: 6px; }
.dots button { width: 34px; height: 14px; padding: 6px 0; border: 0; background: none; cursor: pointer; }
.dots i { display: block; height: 2px; background: rgba(242, 237, 227, 0.35); position: relative; overflow: hidden; }
.dots i::after { content: ""; position: absolute; inset: 0; background: var(--gold); transform: scaleX(0); transform-origin: left; }
.dots button.active i::after { animation: fill var(--slide-ms, 4500ms) linear forwards; }
.q-img.paused .dots button.active i::after { animation-play-state: paused; }
@keyframes fill { to { transform: scaleX(1); } }
.q-big { font-family: var(--serif); font-size: 120px; line-height: 0.8; color: transparent; -webkit-text-stroke: 1px rgba(217, 164, 65, 0.5); }
.q h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(38px, 4vw, 54px); line-height: 1; margin: 6px 0 18px; }
.q h3 em { color: var(--gold); }
.q-text > p { color: var(--muted); line-height: 1.75; margin: 0 0 28px; font-size: 16px; }
.criteria { list-style: none; padding: 0; margin: 0 0 28px; border-top: 1px solid var(--line); }
.criteria li { display: grid; grid-template-columns: 130px 1fr; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.criteria b { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); padding-top: 3px; }
.criteria span { line-height: 1.55; font-size: 15px; }
.q-link { font-size: 14px; border-bottom: 1px solid var(--gold); padding-bottom: 3px; transition: color 0.25s; }
.q-link:hover { color: var(--gold); }
/* Mon matériel : frise "Aujourd'hui" (plein format) / "Mes débuts" (APS-C) */
.gear-section { padding-top: 0; }
.section-head h2 em { color: var(--gold); }
.gear-timeline { list-style: none; margin: 0; padding: 0 0 0 36px; position: relative; display: grid; gap: 56px; }
.gear-timeline::before { content: ""; position: absolute; left: 7px; top: 10px; bottom: 10px; width: 1px; background: linear-gradient(var(--gold), var(--line) 60%); }
.gear-step-head { position: relative; display: flex; align-items: baseline; gap: 14px; margin-bottom: 20px; }
.gear-step-head b { font-family: var(--serif); font-size: 30px; font-weight: 500; }
.gear-dot { position: absolute; left: -36px; top: 4px; width: 15px; height: 15px; border-radius: 50%; border: 1px solid var(--gold); background: var(--bg); }
.now .gear-dot { background: var(--gold); box-shadow: 0 0 0 6px rgba(217, 164, 65, 0.15); }
.gear-grid { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 16px; }
.gear-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: linear-gradient(160deg, rgba(242, 237, 227, 0.04), rgba(242, 237, 227, 0));
  transition: border-color 0.35s, transform 0.35s, background 0.35s;
}
.gear-card:hover { border-color: rgba(217, 164, 65, 0.6); transform: translateY(-4px); }
.gear-card.featured { background: radial-gradient(ellipse at top left, rgba(217, 164, 65, 0.16), rgba(217, 164, 65, 0) 70%), var(--bg-2); border-color: rgba(217, 164, 65, 0.45); }
.gear-icon { width: 54px; height: 40px; fill: none; stroke: var(--gold); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 260; stroke-dashoffset: 260; transition: stroke-dashoffset 1.6s ease 0.2s; }
.reveal.in .gear-icon { stroke-dashoffset: 0; }
.gear-brand { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.gear-card h3 { font-family: var(--serif); font-weight: 500; font-size: 30px; line-height: 1.05; margin: 6px 0 10px; }
.gear-card.featured h3 { font-size: 52px; }
.gear-use { color: var(--muted); font-size: 14px; line-height: 1.55; margin: 0 0 14px; }
.gear-tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.gear-tags li { font-family: var(--mono); font-size: 11px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); }
/* Les débuts : même structure, plus discret */
.past .gear-card { background: none; }
.past .gear-card h3 { font-size: 24px; }
.past .gear-icon { stroke: var(--muted); }
.past .gear-tags li { color: var(--muted); }
.gear-software { margin: 48px 0 0 36px; display: flex; align-items: center; flex-wrap: wrap; gap: 14px; color: var(--muted); font-size: 15px; }
.gear-software ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.gear-software li { font-family: var(--mono); font-size: 12px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); transition: border-color 0.3s, color 0.3s; }
.gear-software li:hover { border-color: var(--gold); color: var(--gold); }

/* Contact */
.contact { text-align: center; background: radial-gradient(ellipse at center, #1c1710 0%, var(--bg) 70%); }
.contact h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(48px, 7vw, 96px); line-height: 1; margin: 16px 0 34px; }
.contact h2 em { color: var(--gold); }
.socials { display: flex; justify-content: center; gap: 12px; margin-top: 28px; }
.socials a { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: border-color 0.25s, color 0.25s; }
.socials a:hover { border-color: var(--gold); color: var(--gold); }
.socials svg { width: 18px; height: 18px; }

/* Coup de cœur des visiteurs */
.favorite { padding-top: 0; }
.favorite-inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 64px; align-items: center; }
.favorite-img { position: relative; display: block; overflow: hidden; border-radius: 6px; aspect-ratio: 4 / 3; background: var(--bg-2); }
.favorite-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(0.2, 0.7, 0.2, 1); }
.favorite-img:hover img { transform: scale(1.04); }
.favorite-badge { position: absolute; top: 16px; left: 16px; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; background: var(--gold); color: var(--gold-ink); font-family: var(--mono); font-size: 12px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35); }
.favorite-badge svg { width: 16px; height: 16px; fill: currentColor; animation: heartbeat 2.4s ease-in-out infinite; }
.favorite-text h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(40px, 5vw, 64px); line-height: 1; margin: 14px 0 10px; }
.favorite-cat { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 0 0 22px; }
.favorite-text > p:not(.favorite-cat) { color: var(--muted); line-height: 1.7; margin: 0 0 30px; font-family: var(--serif); font-style: italic; font-size: 20px; }
.favorite .actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Formulaire de contact */
.contact-form { max-width: 720px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; text-align: left; }
.contact-form .field { display: flex; flex-direction: column; gap: 8px; }
.contact-form .field.full { grid-column: 1 / -1; }
.contact-form label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(242, 237, 227, 0.04);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  transition: border-color 0.25s, background 0.25s;
}
.contact-form textarea { resize: vertical; min-height: 130px; }
.contact-form input:focus,
.contact-form textarea:focus { outline: none; border-color: var(--gold); background: rgba(217, 164, 65, 0.06); }
.contact-form ::placeholder { color: rgba(163, 156, 142, 0.6); }
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { grid-column: 1 / -1; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.form-foot button { border: 0; cursor: pointer; }
.form-foot button:disabled { opacity: 0.6; cursor: wait; }
.form-status { margin: 0; font-size: 14px; color: var(--muted); }
.form-status.success { color: var(--gold); }
.form-status.error { color: #e07a5f; }
.contact-alt { margin: 24px 0 0; color: var(--muted); font-size: 14px; }
.contact-alt a { color: var(--gold); border-bottom: 1px solid rgba(217, 164, 65, 0.4); }

@media (max-width: 900px) {
  .hero { align-items: flex-end; padding-bottom: 90px; }
  .hero-text { margin-left: 0; }
  .hero-photo { inset: 0 0 auto 0; width: 100%; height: 60%; object-position: 47% 45%; }
  .hero::before { background: linear-gradient(0deg, var(--bg) 42%, rgba(11, 10, 8, 0) 62%); }
  .scroll-cue { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .universes, .q, .jaguar-inner { grid-template-columns: 1fr; }
  .card-body p { max-height: none; opacity: 1; }
  .jaguar-img { height: 420px; }
  .jaguar-img::after { background: linear-gradient(0deg, #000 0%, rgba(0, 0, 0, 0.5) 20%, rgba(0, 0, 0, 0) 45%); }
  .jaguar-text { padding: 48px 24px; }
  .quest { gap: 80px; }
  .q { gap: 28px; }
  .q:nth-child(even) .q-img { order: 0; }
  .q-big { font-size: 80px; }
  .criteria li { grid-template-columns: 1fr; gap: 4px; }
  .favorite-inner { grid-template-columns: 1fr; gap: 28px; }
  .contact-form { grid-template-columns: 1fr; }
  .gear-grid { grid-template-columns: 1fr; }
  .gear-timeline { padding-left: 28px; }
  .gear-dot { left: -28px; }
  .gear-timeline::before { left: 7px; }
  .gear-card.featured h3 { font-size: 42px; }
  .gear-software { margin-left: 28px; }
  .section-head { flex-direction: column; align-items: start; }
  .section { padding: 80px 0; }
}

.form-note { grid-column: 1 / -1; margin: -4px 0 0; font-size: 13px; color: var(--muted); }
.form-note a { color: var(--gold); border-bottom: 1px solid rgba(217, 164, 65, 0.4); }
