/* ============================================================
   Mercy — page de présentation
   Palette : ivoire pétale / rose poussière / mauve rosé / cacao / sauge / or doux
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,500;0,9..144,600;1,9..144,500&family=Work+Sans:ital,wght@0,300;0,400;0,500;0,600;1,400&family=Caveat:wght@500;600&display=swap');

:root{
  --ivory: #FAF3EF;
  --ivory-deep: #F3E7E1;
  --blush: #E7C6C0;
  --rose: #B8757A;
  --rose-deep: #9C5D63;
  --cocoa: #5C4742;
  --sage: #8A9A5B;
  --sage-deep: #6F7E47;
  --gold: #C9A66B;

  --font-display: 'Fraunces', serif;
  --font-body: 'Work Sans', sans-serif;
  --font-script: 'Caveat', cursive;

  --radius-organic: 62% 38% 55% 45% / 45% 55% 45% 55%;
}

*{ box-sizing: border-box; margin: 0; padding: 0; }

html{ scroll-behavior: smooth; }

body{
  background: var(--ivory);
  color: var(--cocoa);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
}

a{ color: inherit; }

.wrap{
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px;
}

/* -------------------- Header -------------------- */
header{
  padding: 28px 0;
}
.brandline{
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brandline .mark{
  font-family: var(--font-script);
  font-size: 28px;
  color: var(--rose-deep);
}
.brandline .tag{
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage-deep);
  font-weight: 500;
}

/* -------------------- Hero -------------------- */
.hero{
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 48px;
  padding: 40px 0 80px;
}
.hero-eyebrow{
  font-family: var(--font-script);
  font-size: 22px;
  color: var(--sage-deep);
  margin-bottom: 6px;
}
.hero h1{
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 70px !important;
  line-height: 0.98;
  color: var(--rose-deep);
}
.hero .subline{
  margin-top: 20px;
  font-size: 18px;
  max-width: 40ch;
  color: var(--cocoa);
}
.hero .facts{
  margin-top: 28px;
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}
.fact{
  border-left: 2px solid var(--sage);
  padding-left: 12px;
}
.fact .n{
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--rose-deep);
  display: block;
}
.fact .l{
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cocoa);
  opacity: 0.75;
}

/* organic photo frame — signature shape */
.hero-frame{
  position: relative;
  aspect-ratio: 4/5;
  width: 100%;
}
.hero-frame .blob{
  position: absolute;
  inset: 0;
  border-radius: var(--radius-organic);
  background: linear-gradient(155deg, var(--blush), var(--ivory-deep));
  border: 1px dashed var(--rose);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--rose-deep);
  font-size: 14px;
  letter-spacing: 0.05em;
  padding: 24px;
  overflow: hidden;
}
.hero-frame .blob img{
  width: 100%; height: 100%; object-fit: cover;
  border-radius: var(--radius-organic);
}
.hero-frame .cap{
  position: absolute;
  bottom: -18px;
  right: 12px;
  font-family: var(--font-script);
  font-size: 20px;
  color: var(--sage-deep);
  transform: rotate(-4deg);
}

/* -------------------- Sprig divider (signature element) -------------------- */
.sprig{
  display: flex;
  justify-content: center;
  margin: 8px 0 56px;
  opacity: 0.85;
}
.sprig svg{ width: 220px; height: auto; }

/* -------------------- About -------------------- */
.about{
  padding: 20px 0 72px;
  display: grid;
  grid-template-columns: 0.35fr 0.65fr;
  gap: 40px;
}
.about .eyebrow{
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage-deep);
  font-weight: 600;
}
.about h2{
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 34px;
  color: var(--rose-deep);
  margin-top: 8px;
}
.about p{
  font-size: 17px;
  max-width: 62ch;
}
.about p + p{ margin-top: 14px; }

/* -------------------- Interests -------------------- */
.interests{
  padding: 0 0 80px;
}
.interests h2{
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 30px;
  color: var(--rose-deep);
  margin-bottom: 24px;
  text-align: center;
}
.pill-grid{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}
.pill{
  background: var(--ivory-deep);
  border: 1px solid var(--blush);
  color: var(--cocoa);
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.pill .dot{
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--sage);
}

/* -------------------- Details -------------------- */
.details{
  padding: 0 0 80px;
}
.details h2{
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 30px;
  color: var(--rose-deep);
  text-align: center;
  margin-bottom: 28px;
}
.detail-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--blush);
  border: 1px solid var(--blush);
  border-radius: 18px;
  overflow: hidden;
}
.detail-item{
  background: var(--ivory);
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.d-label{
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage-deep);
  font-weight: 600;
}
.d-value{
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--cocoa);
}

/* -------------------- Gallery -------------------- */
.gallery{
  padding: 0 0 88px;
}
.gallery h2{
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 30px;
  color: var(--rose-deep);
  text-align: center;
  margin-bottom: 8px;
}
.gallery .hint{
  text-align: center;
  font-size: 14px;
  color: var(--cocoa);
  opacity: 0.7;
  margin-bottom: 32px;
}
.grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 130px;
  gap: 14px;
}
.frame{
  border: 1.5px dashed var(--rose);
  border-radius: 18px;
  background: var(--ivory-deep);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--rose-deep);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-align: center;
  overflow: hidden;
  position: relative;
}
.frame img, .frame video{
  width: 100%; height: 100%; object-fit: cover;
}
.frame.tall{ grid-row: span 2; }
.frame.wide{ grid-column: span 2; }
.frame svg{ width: 26px; height: 26px; opacity: 0.7; }

/* -------------------- Closing / CTA -------------------- */
.cta{
  background: linear-gradient(155deg, var(--rose-deep), var(--sage-deep));
  border-radius: 28px;
  padding: 56px 48px;
  margin-bottom: 90px;
  text-align: center;
  color: var(--ivory);
  position: relative;
  overflow: hidden;
}
.cta h2{
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(28px, 4vw, 40px);
}
.cta p{
  margin-top: 12px;
  font-size: 16px;
  opacity: 0.92;
  max-width: 50ch;
  margin-left: auto;
  margin-right: auto;
}
.cta .contact{
  margin-top: 26px;
  display: inline-flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}
.cta .contact span{
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.35);
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 14px;
}

footer{
  text-align: center;
  padding: 24px 0 48px;
  font-size: 13px;
  color: var(--cocoa);
  opacity: 0.55;
}


/* -------------------- Responsive -------------------- */
@media (max-width: 780px){
  .hero{ grid-template-columns: 1fr; padding-bottom: 56px; }
  .hero-frame{ order: -1; max-width: 320px; margin: 0 auto; }
  .about{ grid-template-columns: 1fr; }
  .detail-grid{ grid-template-columns: repeat(2, 1fr); }
  .grid{ grid-template-columns: repeat(2, 1fr); }
  .frame.wide{ grid-column: span 2; }
  .cta{ padding: 40px 24px; }
}

/* -------------------- Accessibility -------------------- */
a:focus-visible, .frame:focus-visible{
  outline: 2px solid var(--rose-deep);
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
}

.marquee{
  position: relative;
  overflow: hidden;
  padding: 24px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.marquee-track{
  display: flex;
  gap: 16px;
  width: max-content;
  animation: marquee-scroll 28s linear infinite;
}

.marquee-track:hover{
  animation-play-state: paused;
}

@keyframes marquee-scroll{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); } /* -50% car la liste est dupliquée x2 */
}

.marquee-item{
  flex: 0 0 auto;
  width: 300px;
  aspect-ratio: 4/5;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--blush);
  background: var(--ivory-deep);
  position: relative;
  transition: transform 0.35s ease, box-shadow 0.35s ease, z-index 0s;
  cursor: pointer;
}

.marquee-item:hover{
  transform: scale(1.35);
  z-index: 5;
  box-shadow: 0 18px 40px rgba(92, 71, 66, 0.28);
}

.marquee-item img,
.marquee-item video{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.marquee-placeholder{
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--rose-deep);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1.5px dashed var(--rose);
  box-sizing: border-box;
}
.marquee-placeholder svg{ width: 26px; height: 26px; opacity: 0.7; }

@media (max-width: 780px){
  .marquee-item{ width: 250px; }
  .marquee-item:hover{ transform: scale(1.2); }
}

@media (prefers-reduced-motion: reduce){
  .marquee-track{ animation: none; }
}

.top-carousel{
  margin-bottom: 50px; 
}

.contact-icons{
  margin-top: 26px;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.contact-icon{
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ivory);
  transition: transform 0.25s ease, background 0.25s ease;
}
.contact-icon svg{ width: 24px; height: 24px; }
.contact-icon:hover{
  background: rgba(255,255,255,0.28);
  transform: translateY(-3px);
}
.contact-empty{
  font-size: 13px;
  opacity: 0.8;
}


.modal-overlay{
  position: fixed;
  inset: 0;
  background: rgba(92, 71, 66, 0.55);
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 100;
  display: none;
}
.modal-overlay:not([hidden]){
  display: flex;
}
.modal{
  background: var(--ivory);
  border-radius: 22px;
  padding: 32px;
  max-width: 420px;
  width: 100%;
  position: relative;
  box-shadow: 0 24px 60px rgba(92,71,66,0.35);
}
.modal h3{
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 24px;
  color: var(--rose-deep);
  margin-bottom: 20px;
}
.modal-close{
  position: absolute;
  top: 14px; right: 16px;
  background: none;
  border: none;
  font-size: 26px;
  line-height: 1;
  color: var(--cocoa);
  cursor: pointer;
}
#contact-form{
  display: flex;
  flex-direction: column;
  gap: 6px;
}
#contact-form label{
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sage-deep);
  font-weight: 600;
  margin-top: 12px;
}
#contact-form input,
#contact-form textarea{
  font-family: var(--font-body);
  font-size: 15px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--blush);
  background: var(--ivory-deep);
  color: var(--cocoa);
  resize: vertical;
}
#contact-form input:focus,
#contact-form textarea:focus{
  outline: 2px solid var(--rose);
}
.modal-submit{
  margin-top: 18px;
  background: var(--rose-deep);
  color: var(--ivory);
  border: none;
  border-radius: 999px;
  padding: 12px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.25s ease;
}
.modal-submit:hover{ background: var(--sage-deep); }
.modal-status{
  margin-top: 12px;
  font-size: 13px;
  text-align: center;
}
.modal-status.ok{ color: var(--sage-deep); }
.modal-status.error{ color: var(--rose-deep); }