
:root{
  --ivory:#f4efe6;
  --ink:#24221f;
  --muted:#777168;
  --line:#cfc6b9;
  --sage:#788274;
  --peach:#c88a72;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  background:var(--ivory);
  color:var(--ink);
  font-family:"Inter",Arial,sans-serif;
  font-weight:300;
}
button,input{font:inherit}
.hero{
  position:relative;
  min-height:92vh;
  display:flex;
  align-items:flex-end;
  overflow:hidden;
  background:#1d1b18;
}
.hero>img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center 0% !important;
}
.hero-overlay{
  position:absolute;
  inset:0;
  background:linear-gradient(to top,rgba(20,18,15,.62) 0%,rgba(20,18,15,.12) 52%,rgba(20,18,15,.05) 100%);
}
.hero-copy{
  position:relative;
  z-index:2;
  padding:clamp(28px,6vw,88px);
  color:white;
  width:min(900px,92%);
}
.eyebrow,.kicker{
  margin:0 0 14px;
  text-transform:uppercase;
  letter-spacing:.22em;
  font-size:11px;
  font-weight:500;
}
.hero h1,.intro h2,.gallery-header h1,.empty h2{
  font-family:"Cormorant Garamond",Georgia,serif;
  font-weight:500;
}
.hero h1{
  margin:0;
  font-size:clamp(58px,9vw,132px);
  line-height:.84;
  letter-spacing:-.045em;
}
.hero h1 span{
  font-weight:400;
  font-style:italic;
  color:#f1c0ac;
}
.hero-subtitle{
  margin:26px 0 0;
  font-family:"Cormorant Garamond",Georgia,serif;
  font-size:clamp(22px,2.4vw,34px);
}
.intro{
  padding:clamp(80px,11vw,150px) 24px 60px;
}
.intro-inner{
  width:min(760px,100%);
  margin:auto;
  text-align:center;
}
.kicker{color:var(--peach)}
.intro h2{
  margin:0;
  font-size:clamp(42px,5vw,68px);
  line-height:1;
}
.intro-text{
  max-width:620px;
  margin:28px auto 0;
  line-height:1.8;
  color:var(--muted);
  font-size:15px;
}
.intro-note-box{
  max-width:640px;
  margin:34px auto 0;
  padding:28px 28px 24px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.38);
  text-align:center;
}
.intro-note-box p{
  margin:0;
  color:var(--muted);
  line-height:1.9;
  font-size:15px;
}
.intro-note-box p + p{
  margin-top:4px;
}
.countdown-wrap{
  margin:44px auto 0;
  padding-top:30px;
  border-top:1px solid var(--line);
  max-width:620px;
}
.countdown-label{
  margin:0 0 20px;
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.18em;
  color:var(--muted);
}
.countdown{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:10px;
}
.countdown>div{min-width:0}
.countdown strong{
  display:block;
  font-family:"Cormorant Garamond",Georgia,serif;
  font-weight:500;
  font-size:clamp(34px,4vw,48px);
  line-height:1;
  color:var(--ink);
}
.countdown span{
  display:block;
  margin-top:7px;
  font-size:10px;
  text-transform:uppercase;
  letter-spacing:.12em;
  color:var(--muted);
}
.countdown-date{
  margin:18px 0 0;
  font-family:"Cormorant Garamond",Georgia,serif;
  font-size:17px;
  color:var(--muted);
}
.albums{
  width:min(1080px,calc(100% - 40px));
  margin:0 auto;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  border-top:1px solid var(--line);
}
.album-card{
  appearance:none;
  border:0;
  border-bottom:1px solid var(--line);
  background:transparent;
  min-height:120px;
  padding:0 28px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  color:var(--ink);
  cursor:pointer;
  font-family:"Cormorant Garamond",Georgia,serif;
  font-size:clamp(26px,3vw,40px);
  text-align:left;
  text-decoration:none;
  transition:background .22s ease,padding .22s ease;
}
.album-card:nth-child(odd){border-right:1px solid var(--line)}
.album-card:hover{
  background:rgba(255,255,255,.42);
  padding-left:38px;
}
.arrow{
  font-family:"Inter",Arial,sans-serif;
  font-size:18px;
  color:var(--sage);
}
footer{
  text-align:center;
  padding:110px 24px 70px;
  color:var(--muted);
}
.footer-line{
  width:42px;
  height:1px;
  background:var(--line);
  margin:0 auto 22px;
}
footer p{
  font-family:"Cormorant Garamond",Georgia,serif;
  color:var(--ink);
  font-size:24px;
  margin:0 0 8px;
}
footer span{font-size:12px}
dialog{
  border:0;
  padding:0;
  width:min(430px,calc(100% - 30px));
  background:transparent;
}
dialog::backdrop{
  background:rgba(25,22,18,.58);
  backdrop-filter:blur(5px);
}
.modal-card{
  position:relative;
  background:var(--ivory);
  padding:44px;
}
.close{
  position:absolute;
  top:18px;
  right:20px;
  border:0;
  background:none;
  font-size:28px;
  cursor:pointer;
  color:var(--muted);
}
.modal-kicker{
  margin:0 0 8px;
  text-transform:uppercase;
  letter-spacing:.2em;
  font-size:10px;
  color:var(--peach);
}
.modal-card h3{
  margin:0 0 32px;
  font-family:"Cormorant Garamond",Georgia,serif;
  font-size:42px;
  font-weight:500;
}
.modal-card label{
  display:block;
  font-size:12px;
  margin-bottom:8px;
}
.modal-card input{
  width:100%;
  background:transparent;
  border:0;
  border-bottom:1px solid var(--ink);
  padding:12px 0;
  outline:none;
  font-size:18px;
}
.submit{
  width:100%;
  border:1px solid var(--ink);
  background:var(--ink);
  color:white;
  padding:15px;
  margin-top:28px;
  cursor:pointer;
}
.error{color:#9a3c2f;font-size:13px}

/* GALERIE */
.gallery-page{min-height:100vh}
.gallery-page.is-loading-gallery{overflow:hidden}

.gallery-loader{
  position:fixed;
  inset:0;
  z-index:9999;
  display:grid;
  place-items:center;
  background:var(--ivory);
  opacity:1;
  transition:opacity .4s ease,visibility .4s ease;
}
.gallery-loader.is-done{
  opacity:0;
  visibility:hidden;
}
.gallery-loader-inner{
  width:min(420px,calc(100% - 48px));
  text-align:center;
}
.loader-title{
  margin:0 0 28px;
  font-family:"Cormorant Garamond",Georgia,serif;
  font-size:clamp(34px,6vw,50px);
  line-height:1;
}
.loader-track{
  width:100%;
  height:1px;
  background:var(--line);
  overflow:hidden;
}
.loader-bar{
  width:0;
  height:100%;
  background:var(--ink);
  transition:width .18s ease;
}
.loader-progress{
  margin:12px 0 0;
  color:var(--muted);
  font-size:11px;
  letter-spacing:.1em;
}

.gallery-header{
  width:min(1180px,calc(100% - 40px));
  margin:auto;
  padding:60px 0 46px;
}
.back{
  color:var(--muted);
  text-decoration:none;
  font-size:13px;
}
.gallery-heading-row{
  margin-top:80px;
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:24px;
}
.gallery-header h1{
  margin:0;
  font-size:clamp(54px,7vw,100px);
  line-height:.9;
}
.gallery-header p:last-child{color:var(--muted)}
.select-all{
  border:0;
  border-bottom:1px solid var(--ink);
  background:transparent;
  color:var(--ink);
  padding:7px 0;
  cursor:pointer;
  font-size:12px;
  white-space:nowrap;
}

.photo-grid{
  width:min(1400px,calc(100% - 28px));
  margin:auto;
  columns:3 320px;
  column-gap:14px;
  visibility:hidden;
}
.gallery-ready .photo-grid{visibility:visible}

.photo-card{
  break-inside:avoid;
  margin:0 0 14px;
  position:relative;
  background:#e9e2d7;
  overflow:hidden;
}
.photo-select{
  display:block;
  width:100%;
  padding:0;
  margin:0;
  border:0;
  background:transparent;
  cursor:pointer;
  position:relative;
}
.photo-select img{
  width:100%;
  height:auto;
  display:block;
  transition:opacity .18s ease,transform .18s ease;
}
.photo-card.is-selected .photo-select img{
  opacity:.76;
}
.photo-card.is-selected{
  outline:3px solid var(--ink);
  outline-offset:-3px;
}
.selection-mark{
  position:absolute;
  top:12px;
  left:12px;
  width:30px;
  height:30px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:rgba(244,239,230,.92);
  border:1px solid rgba(36,34,31,.42);
  color:transparent;
  font-size:15px;
  transition:background .18s ease,color .18s ease,border-color .18s ease;
}
.photo-card.is-selected .selection-mark{
  background:var(--ink);
  border-color:var(--ink);
  color:white;
}
.view-photo{
  position:absolute;
  top:12px;
  right:12px;
  width:34px;
  height:34px;
  border-radius:50%;
  display:grid;
  place-items:center;
  text-decoration:none;
  background:rgba(244,239,230,.92);
  color:var(--ink);
  font-size:13px;
  border:1px solid rgba(36,34,31,.18);
}
.selection-bar{
  position:fixed;
  left:50%;
  bottom:22px;
  z-index:100;
  transform:translate(-50%,24px);
  width:min(620px,calc(100% - 28px));
  min-height:64px;
  padding:10px 12px 10px 20px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  background:rgba(36,34,31,.96);
  color:white;
  opacity:0;
  visibility:hidden;
  transition:opacity .2s ease,transform .2s ease,visibility .2s ease;
}
.selection-bar.is-visible{
  opacity:1;
  visibility:visible;
  transform:translate(-50%,0);
}
.selection-bar span{
  font-size:12px;
}
.selection-bar button{
  border:0;
  background:var(--ivory);
  color:var(--ink);
  min-height:42px;
  padding:0 18px;
  cursor:pointer;
  font-size:12px;
}
.selection-bar button:disabled{
  opacity:.65;
  cursor:wait;
}

.empty{
  width:min(760px,calc(100% - 40px));
  margin:40px auto 120px;
  text-align:center;
  padding:80px 20px;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}
.empty h2{font-size:48px;margin:0 0 18px}
.empty p{color:var(--muted)}
.empty code{font-size:12px}

@media(max-width:720px){
  .hero{min-height:78vh}
  .hero>img{object-position:58% 0% !important}
  .hero-copy{padding:34px 24px}
  .hero h1{font-size:64px}
  .countdown{
    grid-template-columns:repeat(2,1fr);
    row-gap:22px;
  }
  .intro-note-box{
    padding:22px 18px 18px;
    margin-top:28px;
  }
  .albums{grid-template-columns:1fr}
  .album-card:nth-child(odd){border-right:0}
  .album-card{min-height:96px;padding:0 8px}
  .album-card:hover{padding-left:8px}
  .modal-card{padding:38px 26px}
  .gallery-heading-row{
    margin-top:58px;
    display:block;
  }
  .select-all{
    margin-top:22px;
  }
  .photo-grid{
    columns:2 150px;
    column-gap:8px;
    width:calc(100% - 16px);
  }
  .photo-card{margin-bottom:8px}
  .selection-mark{
    width:28px;
    height:28px;
    top:8px;
    left:8px;
  }
  .view-photo{
    width:30px;
    height:30px;
    top:8px;
    right:8px;
  }
  .selection-bar{
    bottom:12px;
    min-height:58px;
    padding:8px 8px 8px 14px;
  }
}


/* Galerie mise en avant : Photos des mariés */
.album-card.featured-album{
  grid-column:1 / -1;
  border-right:0 !important;
  justify-content:center;
  position:relative;
  text-align:center;
  min-height:142px;
  background:rgba(255,255,255,.28);
}
.album-card.featured-album .arrow{
  position:absolute;
  right:28px;
}
.album-card.featured-album:hover{
  padding-left:28px;
  background:rgba(255,255,255,.52);
}
@media(max-width:720px){
  .album-card.featured-album{
    grid-column:auto;
    min-height:110px;
  }
  .album-card.featured-album .arrow{
    right:8px;
  }
  .album-card.featured-album:hover{
    padding-left:8px;
  }
}
