/* =========================================================
   Personnalisations du site
   ========================================================= */

/* ---------------------------------------------------------
   Galerie -> carousel HORIZONTAL (remplace le stack vertical)
   Les sélecteurs sont préfixés .hcarousel pour gagner en
   spécificité et écraser proprement le CSS Webflow d'origine.
   --------------------------------------------------------- */
.hcarousel {
  margin-top: var(--gap-xl);
  display: block;
  position: relative;
}

/* Conteneur défilable horizontalement */
.hcarousel .dropping-stack__collection {
  padding-top: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;            /* Firefox */
  -ms-overflow-style: none;         /* IE/Edge */
  cursor: grab;
  overscroll-behavior-x: contain;
}
.hcarousel .dropping-stack__collection::-webkit-scrollbar { display: none; }
.hcarousel .dropping-stack__collection.is--dragging {
  cursor: grabbing;
  scroll-snap-type: none;           /* libre pendant le drag */
  scroll-behavior: auto;
}

/* Piste : rangée horizontale d'items */
.hcarousel .dropping-stack__list {
  perspective: none;
  transform: none;
  display: flex;
  flex-flow: row nowrap;
  justify-content: flex-start;
  align-items: stretch;
  gap: var(--gap-ml, 1.5em);
  position: relative;
  width: max-content;
  padding-block: .5em;
}

/* Items côte à côte (override du position:absolute d'origine) */
.hcarousel .dropping-stack__item {
  position: relative;
  inset: auto;
  transform: none;
  opacity: 1;
  flex: 0 0 auto;
  width: min(34em, 78vw);
  scroll-snap-align: center;
}
.hcarousel .dropping-stack__inner {
  height: 34em;
  border-radius: 1em;
  overflow: hidden;
  background-color: #0000000f;
}
.hcarousel .dropping-stack__inner .cover {
  border-radius: 1em;
  pointer-events: none;
}

/* Contrôles (compteur + Prev/Next) : sous le carousel, en flux normal */
.hcarousel .dropping-stack__controls {
  position: relative;
  left: auto;
  right: auto;
  width: 100%;
  margin-top: 2.5em;
}
.hcarousel .dropping-stack__spacer { height: 0; }

/* Boutons Prev/Next : curseur + retour visuel */
.hcarousel [data-dropping-stack-prev],
.hcarousel [data-dropping-stack-next] {
  cursor: pointer;
  transition: opacity .2s ease;
}
.hcarousel [data-dropping-stack-prev][disabled],
.hcarousel [data-dropping-stack-next][disabled] {
  opacity: .35;
  cursor: default;
}

/* Responsive */
@media (max-width: 991px) {
  .hcarousel .dropping-stack__item { width: min(30em, 80vw); }
  .hcarousel .dropping-stack__inner { height: 30em; }
}
@media (max-width: 767px) {
  .hcarousel .dropping-stack__item { width: min(24em, 84vw); }
  .hcarousel .dropping-stack__inner { height: 26em; }
  .hcarousel .dropping-stack__controls { margin-top: 1.5em; }
}

/* ---------------------------------------------------------
   Navigation personnalisée : Portfolio / À propos / Contact
   + icône Instagram à droite
   --------------------------------------------------------- */
.li--ig { display: flex; align-items: center; }
.nav-link--ig {
  display: inline-flex;
  align-items: center;
  padding: .25em;
  line-height: 0;
}
.nav-link--ig .nav-ig {
  display: inline-flex;
  line-height: 0;
  color: currentColor;              /* s'adapte au thème de la nav */
  transition: opacity .2s ease, transform .2s ease;
}
.nav-link--ig:hover .nav-ig { opacity: .6; transform: translateY(-1px); }
.nav-link--ig .nav-link__underline { display: none; }

/* ---------------------------------------------------------
   Section Contact (demande de shooting)
   --------------------------------------------------------- */
.contact-grid { margin-top: var(--gap-xl, 2.5em); max-width: 54em; }
.contact-form { width: 100%; }
.contact-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5em; }
.contact-field { display: flex; flex-direction: column; gap: .55em; margin-top: 1.6em; }
.contact-field > label { letter-spacing: .04em; }
.contact-input {
  width: 100%;
  font: inherit;
  font-size: 1.05em;
  color: inherit;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(32, 29, 29, .22);
  padding: .6em 0;
  border-radius: 0;
  transition: border-color .2s ease;
  -webkit-appearance: none;
  appearance: none;
}
.contact-input::placeholder { color: rgba(32, 29, 29, .4); }
.contact-input:focus { outline: none; border-bottom-color: currentColor; }
.contact-textarea { resize: vertical; min-height: 6.5em; line-height: 1.5; }
.contact-select {
  cursor: pointer;
  padding-right: 1.8em;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23201d1d' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .1em center;
  background-size: 1.1em;
}
.contact-actions {
  display: flex;
  align-items: center;
  gap: 1.6em;
  flex-wrap: wrap;
  margin-top: 2.4em;
}
.contact-submit {
  cursor: pointer;
  font: inherit;
  color: #f4f4f4;
  background: #201d1d;
  border: 0;
  border-radius: 2em;
  padding: .95em 1.9em;
  transition: opacity .2s ease, transform .2s ease;
}
.contact-submit:hover { opacity: .88; transform: translateY(-1px); }
.contact-mail {
  color: inherit;
  opacity: .55;
  text-decoration: underline;
  text-underline-offset: .25em;
  transition: opacity .2s ease;
  letter-spacing: .04em;
}
.contact-mail:hover { opacity: 1; }
.contact-msg { margin-top: 1.5em; }
.contact-msg--fail { color: #b23b3b; }
@media (max-width: 767px) {
  .contact-row { grid-template-columns: 1fr; gap: 0; }
}

/* ---------------------------------------------------------
   Section Contact — mise en page soignée + apparitions
   --------------------------------------------------------- */
.section--contact { padding-bottom: var(--space-xxl, 6em); }
.contact-wrap {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2.5em, 6vw, 6em);
  align-items: start;
  margin-top: var(--gap-l, 1.5em);
}
.contact-head { position: sticky; top: 8em; }
.contact-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .7em;
  letter-spacing: .06em;
  opacity: .8;
}
.contact-eyebrow .square {
  width: .55em; height: .55em; flex: none;
  background: currentColor; border-radius: 1px;
}
.contact-title {
  margin: .5em 0 0;
  font-size: clamp(2.75rem, 6.2vw, 6rem);
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: .92;
}
.contact-lead {
  margin: 1.1em 0 0;
  max-width: 30ch;
  color: rgba(32, 29, 29, .7);
}
.contact-head .contact-mail { display: inline-block; margin-top: 1.6em; }
.contact-panel { width: 100%; }

/* bouton : flèche */
.contact-submit { display: inline-flex; align-items: center; gap: .7em; }
.contact-submit__arrow { transition: transform .25s ease; }
.contact-submit:hover .contact-submit__arrow { transform: translateX(4px); }

/* Apparitions fluides (activées seulement si JS présent) */
.has-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s cubic-bezier(.22,.61,.36,1), transform .8s cubic-bezier(.22,.61,.36,1);
  will-change: opacity, transform;
}
.has-reveal [data-reveal].is-visible { opacity: 1; transform: none; }
.contact-head [data-reveal]:nth-child(2) { transition-delay: .07s; }
.contact-head [data-reveal]:nth-child(3) { transition-delay: .14s; }
.contact-head [data-reveal]:nth-child(4) { transition-delay: .21s; }
.contact-panel { transition-delay: .1s; }

@media (max-width: 991px) {
  .contact-wrap { grid-template-columns: 1fr; gap: 2.5em; }
  .contact-head { position: static; }
  .contact-lead { max-width: 42ch; }
}
@media (prefers-reduced-motion: reduce) {
  .has-reveal [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ---------------------------------------------------------
   Contact v2 — intro centrée + photo à côté du formulaire
   (inspiré d'une page contact de photographe)
   --------------------------------------------------------- */
.contact-intro { max-width: 46rem; margin: var(--gap-l, 1.5em) auto 0; text-align: center; }
.contact-intro .contact-eyebrow { justify-content: center; }
.contact-intro .contact-title { margin-top: .35em; }
.contact-intro .contact-lead { max-width: 46ch; margin: 1.1em auto 0; color: rgba(32, 29, 29, .7); }

.contact-body {
  display: grid;
  grid-template-columns: .82fr 1fr;
  gap: clamp(1.5em, 4vw, 3.5em);
  align-items: stretch;
  margin-top: clamp(2.5em, 6vw, 5em);
}
.contact-visual { position: relative; border-radius: 1.25em; overflow: hidden; }
.contact-photo { width: 100%; height: 100%; min-height: 24em; object-fit: cover; display: block; }
.contact-panel {
  background: #fff;
  border-radius: 1.25em;
  padding: clamp(1.6em, 3vw, 2.6em);
}
.contact-panel .contact-field:first-child,
.contact-panel .contact-row:first-child .contact-field { margin-top: 0; }
@media (max-width: 991px) {
  .contact-body { grid-template-columns: 1fr; }
  .contact-photo { min-height: 0; aspect-ratio: 16 / 10; }
}

/* ---------------------------------------------------------
   Contact — pastille téléphone + bloc coordonnées
   --------------------------------------------------------- */
.contact-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .7em;
  margin-top: 1.8em;
}
.contact-cta__label { opacity: .6; letter-spacing: .06em; }
.contact-phone-pill {
  display: inline-flex;
  align-items: center;
  color: inherit;
  border: 1px solid rgba(32, 29, 29, .25);
  border-radius: 2em;
  padding: .7em 1.4em;
  font-size: 1.05em;
  letter-spacing: .01em;
  transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}
.contact-phone-pill:hover { background: #201d1d; border-color: #201d1d; color: #f4f4f4; }

.contact-info {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5em clamp(1.5em, 4vw, 3.5em);
  margin-top: clamp(2.5em, 6vw, 4.5em);
  padding-top: clamp(1.8em, 3vw, 2.5em);
  border-top: 1px solid rgba(32, 29, 29, .15);
}
.contact-info__item { display: flex; flex-direction: column; gap: .5em; }
.contact-info__item > span:first-child { opacity: .55; letter-spacing: .05em; }
.contact-info__link { color: inherit; text-decoration: none; transition: opacity .2s ease; }
.contact-info__link:hover { opacity: .55; text-decoration: underline; text-underline-offset: .25em; }
@media (max-width: 767px) {
  .contact-info { grid-template-columns: 1fr 1fr; }
}

/* ---------------------------------------------------------
   Garde-fous responsive (évite tout débordement horizontal)
   --------------------------------------------------------- */
.contact-title { overflow-wrap: break-word; }
.contact-body, .contact-visual, .contact-panel { min-width: 0; }
.contact-input { max-width: 100%; }
@media (max-width: 767px) {
  .contact-title { font-size: clamp(2.2rem, 11vw, 4rem); }
  .contact-intro { max-width: 100%; }
}

/* Anti-débordement horizontal en mobile (sécurité globale) */
@media (max-width: 991px) {
  html, body { overflow-x: hidden; }
}

