@import url('https://fonts.googleapis.com/css2?family=Vidaloka&display=swap');

/* =========================
   DAHLIA EVENT — Styles
   Palette: crème #FFFDF2 + noir
   + Accueil cartes couleurs sobres (4)
   + Location mobilier (grilles, slider, formulaire)
   + Event portfolio
   + Wedding (hero + vidéos + lookbook masonry)
   ========================= */

:root{
  --bg: #FFFDF2;
  --text: #0E0E0E;
  --muted: rgba(14,14,14,.68);
  --line: rgba(14,14,14,.12);
  --card: #FFFFFF;

  --cream: #F4F3EE;
  --gold: rgba(210, 180, 120, .45);

  --shadow: 0 20px 50px rgba(0,0,0,.06);
  --shadowHover: 0 40px 80px rgba(0,0,0,.14);
  --radius: 18px;
}

*{ box-sizing: border-box; }

html{
  scrollbar-gutter: stable;
}

html, body{
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a{ color: inherit; }
p{ margin: 0; }
h2{ letter-spacing: -0.01em; }

/* =========================
   Layout
   ========================= */

.container{
  width: min(1080px, calc(100% - 48px));
  margin: 0 auto;
}

@media (max-width: 860px){
  .container{ width: calc(100% - 32px); }
}

.page{
  padding: 44px 0 70px;
}

.section{
  padding: 26px 0;
}

.section-title{
  margin: 18px 0 14px;
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(14,14,14,.60);
}

.muted{ color: var(--muted); }

/* =========================
   Header
   ========================= */

.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,253,242,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
}

.brand{
  flex: 0 0 auto;
}

.brand img{
  height: 44px;
  width: auto;
  display: block;
}

.nav{
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
  flex-wrap: wrap;
}

.nav a{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  color: rgba(14,14,14,.85);
  white-space: nowrap; /* empêche les retours à la ligne dans les boutons */
}

.nav a:hover{
  border-color: var(--line);
  background: rgba(255,255,255,.55);
}

/* =========================
   Hero (Accueil + pages)
   ========================= */

.hero-home{
  padding: 56px 0 32px;
}

.kicker{
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: .02em;
  background: rgba(255,255,255,.55);
}

h1{
  margin: 18px 0 10px;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.05;
}

.lead{
  max-width: 62ch;
  font-size: 16px;
  line-height: 1.7;
  color: rgba(14,14,14,.78);
}

.actions{
  margin-top: 18px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* petits héros pages */
.hero{
  padding: 34px 0 12px;
}
.hero-small{
  padding: 28px 0 10px;
}
.badge{
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  background: rgba(255,255,255,.55);
}

/* =========================
   Buttons
   ========================= */

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  border: 1px solid var(--text);
  background: var(--text);
  color: var(--bg);
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.btn:hover{
  filter: brightness(.95);
}

.btn-ghost, .btn.btn-ghost{
  background: transparent;
  color: var(--text);
  border-color: rgba(14,14,14,.22);
}

.btn-ghost:hover{
  background: rgba(255,255,255,.55);
}

/* =========================
   Generic card
   ========================= */

.card{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}

.card h2{
  margin: 0 0 8px;
  font-size: 20px;
}

.card p{ line-height: 1.6; }

/* =========================
   HOME — Grid + cards cliquables
   ========================= */

.grid-home{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

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

.card-link{
  text-decoration: none;
  color: inherit;
  display: block;
}

.card-home{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 18px 18px;
  cursor: pointer;

  transition:
    transform .6s ease,
    box-shadow .6s ease,
    border-color .6s ease,
    background .6s ease,
    color .6s ease;

  position: relative;
  overflow: hidden;
  text-align: center;
}

.card-home::before{
  content:"";
  position:absolute;
  inset:0;
  background-image: radial-gradient(rgba(255,255,255,.35) 1px, transparent 1px);
  background-size: 3px 3px;
  opacity:.22;
  pointer-events:none;
}

.card-home::after{
  content:"";
  position:absolute;
  inset:10px;
  border: 1px solid var(--gold);
  border-radius: calc(var(--radius) - 8px);
  opacity:.30;
  pointer-events:none;
}

.card-home .meta{
  font-size: 12px;
  letter-spacing: .06em;
  color: rgba(14,14,14,.55);
  margin-bottom: 10px;
}

.card-home h2{
  margin: 0;
  font-size: 20px;
}

.card-home .card-desc{
  margin-top: 12px;
  opacity: 0;
  transform: translateY(12px);
  max-height: 0;
  overflow: hidden;
  transition:
    opacity .6s ease,
    transform .6s ease,
    max-height .6s ease;
  color: rgba(14,14,14,.78);
  line-height: 1.6;
}

.grid-home > a:nth-child(1) .card-home{ background:#E8E2D8; } /* sable */
.grid-home > a:nth-child(2) .card-home{ background:#D8E1DB; } /* sauge */
.grid-home > a:nth-child(3) .card-home{ background:#E6DADF; } /* poudré */
.grid-home > a:nth-child(4) .card-home{ background:#E1E1DE; } /* pierre */

.card-link:hover .card-home{
  background: #ffffff;
  transform: translateY(-6px);
  box-shadow: var(--shadowHover);
  border-color: rgba(14,14,14,.18);
}

.card-link:hover .card-home::after{
  opacity:.50;
}

.card-link:hover .card-home .card-desc{
  opacity: 1;
  transform: translateY(0);
  max-height: 140px;
}

.card-link:focus-visible .card-home{
  outline: 2px solid rgba(14,14,14,.35);
  outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce){
  .card-home, .card-home .card-desc{
    transition: none !important;
  }
}

#contact .card-home{
  background: #E8E2D8;
}

/* =========================
   LOCATION — Toolbar, grids, forms
   ========================= */

.toolbar{
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  margin: 12px 0 18px;
}

.input{
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.75);
  color: var(--text);
  outline: none;
  font-size: 14px;
}

.input:focus{
  border-color: rgba(14,14,14,.28);
  box-shadow: 0 0 0 4px rgba(14,14,14,.06);
}

.form-row{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 860px){
  .form-row{ grid-template-columns: 1fr; }
}

.grid-3{
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}

@media (max-width: 980px){
  .grid-3{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px){
  .grid-3{ grid-template-columns: 1fr; }
}

.item-image{
  width:100%;
  height:220px;
  object-fit:cover;
  border-radius:16px;
  margin-bottom:14px;
  display:block;
}

.carousel{ position:relative; }

.car-btn{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  border:1px solid rgba(14,14,14,.25);
  background: rgba(255,253,242,.88);
  color: var(--text);
  width:38px;
  height:38px;
  border-radius:999px;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:22px;
}

.car-prev{ left:12px; }
.car-next{ right:12px; }

.car-dots{
  position:absolute;
  right:12px;
  bottom:12px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--line);
  background: rgba(255,253,242,.88);
  font-size:12px;
}

label{
  display: block;
  font-size: 14px;
  color: rgba(14,14,14,.85);
}

textarea.input{ resize: vertical; }

/* =========================
   EVENT PAGE (portfolio)
   ========================= */

/* Colonne éditoriale : aligne le texte sur la largeur des images (920px) */
.event-wrap{
  width: min(920px, 100%);
  margin: 0 auto;
}


.event-grid{
  display: grid;
  gap: 18px;
}

.event-card{
  position: relative;
  display: block;
  width: min(920px, 100%);
  margin: 0 auto;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(14,14,14,.12);
  box-shadow: 0 20px 50px rgba(0,0,0,.06);
  text-decoration: none;
  color: inherit;
  background: #fff;
}

.event-card img{
  width: 100%;
  height: clamp(220px, 34vw, 420px);
  object-fit: cover;
  display: block;
  transform: scale(1.01);
  transition: filter .55s ease, transform .55s ease;
}

.event-overlay{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 26px;
  background: rgba(255,255,255,.00);
  transition: background .55s ease;
}

.event-title{
  font-size: clamp(26px, 3.6vw, 46px);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-align: center;
  line-height: 1.15;

  opacity: 0;
  transform: translateY(10px);

  transition:
    opacity .55s ease,
    transform .55s ease;
}

.event-card:hover img{
  filter: contrast(1.15) brightness(0.78);
  transform: scale(1.03);
}

.event-card:hover .event-overlay{
  background: rgba(255,255,255,.10);
}

.event-card:hover .event-title{
  opacity: 1;
  transform: translateY(0);
  color: #FFFDF2;
  text-shadow: 0 18px 50px rgba(0,0,0,.55);
}

.event-card:focus-visible{
  outline: 2px solid rgba(14,14,14,.35);
  outline-offset: 6px;
}

/* =========================
   WEDDING — Hero photo + pitch + vidéos + lookbook (masonry)
   ========================= */

.w-hero{
  padding: 10px 0 18px;
}

.w-hero-media{
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(14,14,14,.12);
  box-shadow: 0 30px 70px rgba(0,0,0,.10);
}

.w-hero-media img{
  width: 100%;
  height: clamp(320px, 46vw, 520px);
  object-fit: cover;
  display: block;

  transform: scale(1.1) translateY(0);
  filter: contrast(1.05) brightness(.9);

  transition:
    transform 2.4s cubic-bezier(.22,1,.36,1),
    filter 1.6s ease;
}
.w-hero-media:hover img{
  transform: scale(1.18) translateY(-18px);
  filter: contrast(1.18) brightness(.82);
}

.w-hero-overlay{
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(18px, 3vw, 34px);
  background: linear-gradient(
    to top,
    rgba(0,0,0,.60),
    rgba(0,0,0,.18),
    rgba(0,0,0,.00)
  );
  color: #FFFDF2;

transition:
  background 1.8s ease,
  padding 1.8s ease;
}

.w-hero-media:hover .w-hero-overlay{
  background: linear-gradient(
    to top,
    rgba(0,0,0,.82),
    rgba(0,0,0,.35),
    rgba(0,0,0,.05)
  );
  padding-bottom: 48px;
}

.wedding-card{
  background: #E8E2D8;
}

.wedding-videos{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 720px){
  .wedding-videos{ grid-template-columns: 1fr; }
}

.wedding-videos video{
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid rgba(14,14,14,.12);
  box-shadow: 0 20px 50px rgba(0,0,0,.08);
  background: #000;
}

.lookbook{
  column-count: 4;
  column-gap: 12px;
}

@media (max-width: 1100px){
  .lookbook{ column-count: 3; }
}
@media (max-width: 800px){
  .lookbook{ column-count: 2; }
}
@media (max-width: 520px){
  .lookbook{ column-count: 1; }
}

.lookbook img{
  width: 100%;
  height: auto;
  display: block;
  margin: 0 0 12px;
  break-inside: avoid;

  border-radius: 16px;
  border: 1px solid rgba(14,14,14,.10);
  box-shadow: 0 16px 40px rgba(0,0,0,.08);

  transition: transform .6s ease, box-shadow .6s ease, filter .6s ease;
  filter: contrast(1.03) saturate(.95);
}

.lookbook img:hover{
  transform: translateY(-4px);
  box-shadow: 0 30px 60px rgba(0,0,0,.12);
  filter: contrast(1.08) saturate(1.00);
}
/* =========================
   DISPERSION — Triptyque photo
   ========================= */

.triptych{
  max-width: 920px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.triptych-panel{
  height: 520px;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  cursor: pointer;

  background-image: url("images/dispersion-arcachon.jpg");
  background-size: 300% 100%;
  background-position: calc(var(--i) * 50%) center;

  transition: transform .8s ease, box-shadow .8s ease;
  box-shadow: 0 20px 50px rgba(0,0,0,.10);
}

/* voile subtil */
.triptych-panel::after{
  content:"";
  position:absolute;
  inset:0;
  background: rgba(255,253,242,.08);
  opacity: 0;
  transition: opacity .8s ease;
}

/* hover luxe */
.triptych-panel:hover{
  transform: translateY(-6px);
  box-shadow: 0 40px 80px rgba(0,0,0,.18);
}

.triptych-panel:hover::after{
  opacity: 1;
}

/* mobile : on empile */
@media (max-width: 760px){
  .triptych{
    grid-template-columns: 1fr;
  }

  .triptych-panel{
    height: 360px;
    background-size: cover;
    background-position: center;
  }
}
/* =========================
   LOCATION — Hero photo
   ========================= */

.hero-photo{
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(14,14,14,.12);
  box-shadow: 0 30px 70px rgba(0,0,0,.10);
}

.hero-photo img{
  width: 100%;
  height: clamp(300px, 42vw, 520px);
  object-fit: cover;
  display: block;
  filter: contrast(1.05) brightness(.92);
  transform: scale(1.01);
}

.hero-photo-overlay{
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(18px, 3vw, 34px);
  background: linear-gradient(
    to top,
    rgba(0,0,0,.58),
    rgba(0,0,0,.18),
    rgba(0,0,0,.00)
  );
  color: #FFFDF2;
}

.hero-photo-overlay .lead{
  color: rgba(255,253,242,.86);
  max-width: 70ch;
}
.intro-strong{
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 600;
  line-height: 1.35;
  max-width: 48ch;
  margin-bottom: 12px;
}

.intro-text{
  font-size: 15.5px;
  line-height: 1.75;
  max-width: 65ch;
  color: rgba(14,14,14,.78);
  margin-bottom: 14px;
}

.intro-action{
  font-size: 15px;
  font-weight: 500;
  max-width: 58ch;
  color: rgba(14,14,14,.85);
}
/* LOCATION — Intro centrée + meilleur rythme */
.location-hero{ padding-bottom: 10px; }
.location-intro-section{ padding-top: 6px; }

.location-intro-card{
  max-width: 920px;
  margin: 0 auto;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(14,14,14,.12);
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(0,0,0,.06);
  padding: 22px 22px 20px;
}

.location-intro-card .intro-strong{
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 650;
  line-height: 1.35;
  max-width: 52ch;
  margin: 0 0 12px;
}

.location-intro-card .intro-text{
  font-size: 15.5px;
  line-height: 1.75;
  max-width: 72ch;
  color: rgba(14,14,14,.78);
  margin: 0 0 12px;
}

.location-intro-card .intro-action{
  font-size: 15px;
  font-weight: 600;
  max-width: 72ch;
  color: rgba(14,14,14,.88);
  margin: 0;
}
/* =========================
   LOCATION — Une seule largeur sous le hero
   ========================= */

/* On force une colonne unique pour tout le contenu après la photo */


/* La card intro prend la largeur de la colonne (plus de “petit bloc”) */
.location-intro-card{
  max-width: none;
  width: 100%;
}

/* La grille du catalogue reste une grille mais dans la même colonne */
.location-content .grid-3{
  width: 100%;
}

/* Le devis aussi dans la même colonne */
.location-content #devis .container{
  width: 100%;
  margin: 0;
}
/* LOCATION — Intro alignée sur la largeur du catalogue */

.location-intro-card{
  width: 100%;
  max-width: 1080px;        /* même largeur que le container */
  margin: 0 auto;
  padding: 28px 32px;
  background: rgba(255,255,255,.9);
}

.location-intro-card .intro-strong,
.location-intro-card .intro-text,
.location-intro-card .intro-action{
  max-width: 72ch;
}
/* LOCATION — intro élégante (bloc centré, texte aligné à gauche) */

.location-intro-card{
  max-width: 1080px;
  margin: 0 auto;
  padding: 28px 32px;
  background: rgba(255,255,255,.9);
}

/* colonne éditoriale centrée */
.location-intro-card > *{
  max-width: 72ch;
}

/* alignement TEXTE élégant */
.location-intro-card .intro-strong,
.location-intro-card .intro-text,
.location-intro-card .intro-action{
  text-align: left;
}
/* CONTACT — card dédiée */

.contact-card{
  max-width: 1080px;
  margin: 0 auto;
  padding: 32px 36px;
}

.contact-card a{
  text-decoration: none;
  border-bottom: 1px solid rgba(14,14,14,.25);
}

.contact-card a:hover{
  border-color: rgba(14,14,14,.6);
}


/* =========================
   INDEX — animations sobres + fond premium
   ========================= */

/* Fond discret (vignette + grain) */
body::before{
  content:"";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(1200px 700px at 20% 10%, rgba(0,0,0,.035), transparent 60%),
    radial-gradient(900px 500px at 80% 30%, rgba(0,0,0,.028), transparent 55%),
    radial-gradient(700px 480px at 50% 90%, rgba(0,0,0,.02), transparent 60%),
    radial-gradient(rgba(255,255,255,.35) 1px, transparent 1px);
  background-size: auto, auto, auto, 3px 3px;
  opacity: .55;
  z-index: 0;
}

.page, .site-header{
  position: relative;
  z-index: 1;
}

/* Apparition douce (si on met data-animate sur <main>) */
@keyframes fadeUp{
  from{ opacity: 0; transform: translateY(14px); }
  to{ opacity: 1; transform: translateY(0); }
}

[data-animate] .hero-home{
  animation: fadeUp .8s ease both;
}

[data-animate] .grid-home > a{
  opacity: 0;
  transform: translateY(14px);
  animation: fadeUp .9s ease both;
}

/* décalage progressif des 4 cartes */
[data-animate] .grid-home > a:nth-child(1){ animation-delay: .08s; }
[data-animate] .grid-home > a:nth-child(2){ animation-delay: .16s; }
[data-animate] .grid-home > a:nth-child(3){ animation-delay: .24s; }
[data-animate] .grid-home > a:nth-child(4){ animation-delay: .32s; }

/* Hover plus premium : reflet + micro-zoom */
.card-home{
  transform: translateY(0);
}

.card-home::marker{ display:none; } /* rien, juste sécurité */

.card-home::before{
  opacity:.18; /* un peu moins fort */
}

.card-home .shine{
  content:"";
  position:absolute;
  inset:-40%;
  background: linear-gradient(120deg,
    transparent 40%,
    rgba(255,255,255,.18) 50%,
    transparent 60%
  );
  transform: translateX(-20%) rotate(8deg);
  opacity: 0;
  pointer-events:none;
}

.card-link:hover .card-home .shine{
  opacity: 1;
  animation: shineMove 1.2s ease;
}

@keyframes shineMove{
  from{ transform: translateX(-35%) rotate(8deg); }
  to{ transform: translateX(35%) rotate(8deg); }
}

/* Motion safe */
@media (prefers-reduced-motion: reduce){
  body::before{ display:none; }
  [data-animate] .hero-home,
  [data-animate] .grid-home > a{
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .card-link:hover .card-home .shine{ animation:none !important; }
}

/* INDEX — revaloriser le texte sous le hero */

.hero-home .lead{
  font-size: clamp(18px, 2.1vw, 22px);
  line-height: 1.6;
  max-width: 60ch;
}

.hero-home .actions{
  margin-top: 22px;
}
/* HERO PHOTO — effet hover élégant */

.hero-photo{
  position: relative;
  overflow: hidden;
}

.hero-photo img{
  transition: transform .9s ease, filter .9s ease;
}

.hero-photo::after{
  content:"";
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.12);
  opacity: 0;
  transition: opacity .6s ease;
  pointer-events:none;
}

.hero-photo:hover img{
  transform: scale(1.04);
  filter: contrast(1.05) brightness(.95);
}

.hero-photo:hover::after{
  opacity: 1;
}
/* HERO ACCUEIL — titre en Vidaloka */

.home-hero h1{
  font-family: 'Vidaloka', serif;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.w-hero-overlay h1{
  transform: translateY(0);
  transition: transform 1.6s cubic-bezier(.22,1,.36,1);
}
.w-hero-media:hover .w-hero-overlay h1{
  transform: translateY(-10px);
}
/* WEDDING HERO — forcer tous les textes en clair */

.w-hero-overlay h1,
.w-hero-overlay p,
.w-hero-overlay .lead{
  color: rgba(255,253,242,.92);
  text-shadow: 0 14px 38px rgba(0,0,0,.6);
}
