/* ═══════════════════════════════════════════════════════════════
   Ker Landrin — Feuille de style
   Palette : Bleu céleste · Sable · Lin
   ═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Jost:wght@300;400;500&display=swap');

/* ─── Variables ─────────────────────────────────────────────── */
:root {
  --sky:        #7ab8d4;
  --sky-dark:   #4a8faf;
  --sky-light:  #c8e4f0;
  --sand:       #d4b896;
  --sand-light: #ede0d0;
  --linen:      #f5f0e8;
  --linen-dark: #e8dfd0;
  --stone:      #8a7d6e;
  --dark:       #2c2820;
  --white:      #fefcf8;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Jost', sans-serif;

  --radius:    4px;
  --shadow-sm: 0 2px 12px rgba(44,40,32,.08);
  --shadow-md: 0 8px 40px rgba(44,40,32,.14);
  --transition: .35s cubic-bezier(.4,0,.2,1);
}

/* ─── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--dark);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }

/* ─── Navigation ────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 3rem;
  transition: background var(--transition), box-shadow var(--transition);
}

.nav.scrolled {
  background: rgba(254,252,248,.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
}

.nav__logo {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 400;
  letter-spacing: .04em;
  color: var(--white);
  transition: color var(--transition);
}
.nav.scrolled .nav__logo { color: var(--dark); }

.nav__links {
  display: flex;
  gap: 2.5rem;
}

.nav__links a {
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.9);
  transition: color var(--transition);
  position: relative;
}
.nav.scrolled .nav__links a { color: var(--stone); }

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 100%;
  height: 1px;
  background: var(--sky);
  transition: right var(--transition);
}
.nav__links a:hover::after { right: 0; }
.nav__links a:hover { color: var(--sky-dark) !important; }

/* Burger menu */
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.nav__burger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  transition: all var(--transition);
}
.nav.scrolled .nav__burger span { background: var(--dark); }

/* ─── Hero ──────────────────────────────────────────────────── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--sky-dark);
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(170deg,
      rgba(30,70,100,.55) 0%,
      rgba(100,170,200,.2) 60%,
      rgba(212,184,150,.3) 100%),
    url('https://images.unsplash.com/photo-1519046904884-53103b34b206?w=1600&q=80') center/cover no-repeat;
  transform: scale(1.04);
  transition: transform 8s ease;
}
.hero:hover .hero__bg { transform: scale(1); }

/* Vague décorative */
.hero__wave {
  position: absolute;
  bottom: -1px; left: 0; right: 0;
}
.hero__wave svg { display: block; width: 100%; }

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  padding: 2rem;
  animation: heroIn 1.2s ease both;
}

@keyframes heroIn {
  from { opacity:0; transform: translateY(30px); }
  to   { opacity:1; transform: translateY(0); }
}

.hero__eyebrow {
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--sky-light);
  margin-bottom: 1rem;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 300;
  line-height: 1.05;
  margin-bottom: .5rem;
  text-shadow: 0 2px 30px rgba(0,0,0,.25);
}

.hero__subtitle {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  font-weight: 300;
  color: var(--sand-light);
  margin-bottom: 2.5rem;
}

.hero__cta {
  display: inline-flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  display: inline-block;
  padding: .85rem 2rem;
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}

.btn--primary {
  background: var(--sky);
  color: var(--white);
}
.btn--primary:hover {
  background: var(--sky-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(74,143,175,.35);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,.6);
}
.btn--outline:hover {
  background: rgba(255,255,255,.12);
  border-color: var(--white);
  transform: translateY(-2px);
}

/* ─── Sections communes ─────────────────────────────────────── */
.section {
  padding: 6rem 2rem;
}

.section--linen { background: var(--linen); }
.section--white { background: var(--white); }
.section--sand  { background: var(--sand-light); }

.section__header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 4rem;
}

.section__eyebrow {
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--sky-dark);
  margin-bottom: .8rem;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 300;
  line-height: 1.2;
  color: var(--dark);
  margin-bottom: 1rem;
}

.section__lead {
  font-size: 1rem;
  color: var(--stone);
  line-height: 1.8;
}

/* Séparateur décoratif */
.divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.2rem auto 0;
  width: 80px;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--sky);
  opacity: .5;
}
.divider__wave { font-size: .9rem; }

/* ─── Atouts — grille de cards ──────────────────────────────── */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.feature-card {
  background: var(--white);
  border-radius: 8px;
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.feature-card__icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.feature-card__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: .5rem;
  color: var(--dark);
}

.feature-card__text {
  font-size: .88rem;
  color: var(--stone);
  line-height: 1.7;
}

/* ─── Album photo ───────────────────────────────────────────── */
.album-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Onglets thématiques */
.tabs {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 3rem;
}

.tab-btn {
  padding: .6rem 1.4rem;
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  border: 1px solid var(--linen-dark);
  border-radius: 50px;
  background: var(--white);
  color: var(--stone);
  cursor: pointer;
  transition: all var(--transition);
}
.tab-btn:hover, .tab-btn.active {
  background: var(--sky);
  color: var(--white);
  border-color: var(--sky);
}

/* Textes intro/conclusion thématique */
.theme-header, .theme-footer {
  max-width: 700px;
  margin: 0 auto 2rem;
  text-align: center;
  font-size: .95rem;
  color: var(--stone);
  line-height: 1.8;
  font-style: italic;
}
.theme-footer { margin-top: 2rem; margin-bottom: 0; }

/* Grille photos */
.photo-grid {
  columns: 3 260px;
  column-gap: 1rem;
  gap: 1rem;
}

.photo-item {
  break-inside: avoid;
  margin-bottom: 1rem;
  overflow: hidden;
  border-radius: 6px;
  cursor: pointer;
  position: relative;
}

.photo-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform .5s ease;
}
.photo-item:hover img { transform: scale(1.04); }

.photo-item__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(44,40,32,.5) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--transition);
  display: flex;
  align-items: flex-end;
  padding: 1rem;
}
.photo-item:hover .photo-item__overlay { opacity: 1; }

.photo-item__caption {
  color: var(--white);
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: capitalize;
}

/* État de chargement */
.album-loading {
  text-align: center;
  padding: 4rem;
  color: var(--stone);
}
.album-loading__spinner {
  width: 36px; height: 36px;
  border: 3px solid var(--linen-dark);
  border-top-color: var(--sky);
  border-radius: 50%;
  animation: spin .8s linear infinite;
  margin: 0 auto 1rem;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(20,16,12,.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
  backdrop-filter: blur(6px);
}
.lightbox.open {
  opacity: 1;
  pointer-events: all;
}
.lightbox__img {
  max-width: 92vw;
  max-height: 88vh;
  border-radius: 4px;
  box-shadow: 0 20px 80px rgba(0,0,0,.5);
  transform: scale(.96);
  transition: transform .3s ease;
}
.lightbox.open .lightbox__img { transform: scale(1); }

.lightbox__close {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  font-size: 2rem;
  color: rgba(255,255,255,.7);
  cursor: pointer;
  line-height: 1;
  transition: color var(--transition);
}
.lightbox__close:hover { color: var(--white); }

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  color: rgba(255,255,255,.6);
  cursor: pointer;
  padding: 1rem;
  transition: color var(--transition);
  user-select: none;
}
.lightbox__nav:hover { color: var(--white); }
.lightbox__nav--prev { left: 1rem; }
.lightbox__nav--next { right: 1rem; }

/* ─── Contact ───────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  max-width: 960px;
  margin: 0 auto;
  align-items: start;
}

.contact-info__item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: flex-start;
}
.contact-info__icon { font-size: 1.3rem; margin-top: .1rem; }
.contact-info__label {
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--sky-dark);
  margin-bottom: .2rem;
}
.contact-info__value { font-size: .95rem; color: var(--stone); }

.contact-info__quote {
  margin-top: 2.5rem;
  padding: 1.5rem;
  border-left: 3px solid var(--sky);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--sky-dark);
  background: var(--sky-light);
  border-radius: 0 4px 4px 0;
}

/* Formulaire */
.form-group {
  margin-bottom: 1.2rem;
}

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

label {
  display: block;
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: .4rem;
}

input, select, textarea {
  width: 100%;
  padding: .8rem 1rem;
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 300;
  color: var(--dark);
  background: var(--white);
  border: 1px solid var(--linen-dark);
  border-radius: var(--radius);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  -webkit-appearance: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--sky);
  box-shadow: 0 0 0 3px rgba(122,184,212,.18);
}
textarea { resize: vertical; min-height: 120px; }

.form-submit {
  margin-top: 1.5rem;
}

.form-message {
  margin-top: 1rem;
  padding: .9rem 1.2rem;
  border-radius: var(--radius);
  font-size: .9rem;
  display: none;
}
.form-message.success {
  background: #e8f4e8;
  color: #2d6a2d;
  border: 1px solid #a8d4a8;
  display: block;
}
.form-message.error {
  background: #f4e8e8;
  color: #6a2d2d;
  border: 1px solid #d4a8a8;
  display: block;
}

/* ─── Footer ────────────────────────────────────────────────── */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,.5);
  text-align: center;
  padding: 2.5rem;
  font-size: .82rem;
}
.footer a { color: var(--sky-light); transition: color var(--transition); }
.footer a:hover { color: var(--white); }
.footer__logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--white);
  margin-bottom: .5rem;
}
.footer__seo {
  margin-top: 1rem;
  font-size: .72rem;
  line-height: 1.8;
  opacity: .4;
}

/* ─── Responsive ────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav { padding: 1rem 1.5rem; }
  .nav__links { display: none; flex-direction: column; gap: 1.5rem; }
  .nav__links.open {
    display: flex;
    position: fixed;
    inset: 0;
    background: rgba(254,252,248,.98);
    align-items: center;
    justify-content: center;
    z-index: 99;
  }
  .nav__links.open a { font-size: 1.2rem; color: var(--dark) !important; }
  .nav__burger { display: flex; z-index: 101; }

  .section { padding: 4rem 1.5rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .form-row { grid-template-columns: 1fr; }
  .photo-grid { columns: 2 180px; }
}

@media (max-width: 480px) {
  .photo-grid { columns: 1; }
  .hero__title { font-size: 2.5rem; }
}

/* ─── Calendrier des disponibilités ──────────────────────────── */
.cal-wrap {
  max-width: 720px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  padding: 2rem;
}

/* Légende */
.cal-legend {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.cal-legend__item {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--stone);
}
.cal-legend__item::before {
  content: '';
  display: inline-block;
  width: 14px; height: 14px;
  border-radius: 3px;
}
.cal-legend__item--free::before   { background: #d4edda; border: 1px solid #a8d5b5; }
.cal-legend__item--busy::before   { background: #f5c6cb; border: 1px solid #e8a0a8; }
.cal-legend__item--today::before  { background: var(--sky); border: 1px solid var(--sky-dark); }

/* Navigation mois */
.cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}
.cal-nav__btn {
  background: none;
  border: 1px solid var(--linen-dark);
  border-radius: 50%;
  width: 36px; height: 36px;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--stone);
  cursor: pointer;
  transition: all var(--transition);
  display: flex; align-items: center; justify-content: center;
}
.cal-nav__btn:hover {
  background: var(--sky);
  border-color: var(--sky);
  color: var(--white);
}
.cal-nav__title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--dark);
  letter-spacing: .04em;
}

/* Grille */
.cal-grid-wrap { position: relative; }

.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 4px;
}
.cal-weekdays span {
  text-align: center;
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--stone);
  padding: .3rem 0;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.cal-day {
  aspect-ratio: 1;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: .85rem;
  transition: transform .15s ease;
}

.cal-day--empty { background: transparent; }

.cal-day--past {
  background: var(--linen);
  opacity: .45;
}

.cal-day--free {
  background: #d4edda;
  cursor: default;
}
.cal-day--free:hover { transform: scale(1.06); }

.cal-day--busy {
  background: #f5c6cb;
  cursor: default;
}

.cal-day--today {
  background: var(--sky) !important;
  color: var(--white) !important;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(122,184,212,.4);
}

.cal-day__num {
  font-size: .9rem;
  font-weight: 400;
  line-height: 1;
}

.cal-day__status {
  font-size: .55rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  opacity: .75;
  line-height: 1;
}

/* Spinner chargement calendrier */
.cal-loading {
  display: none;
  justify-content: center;
  padding: 3rem;
}

@media (max-width: 480px) {
  .cal-wrap { padding: 1rem; }
  .cal-day__status { display: none; }
  .cal-day { font-size: .75rem; }
}

/* ─── Lazy loading ───────────────────────────────────────────── */
.photo-item__placeholder {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    var(--linen-dark) 25%,
    var(--sand-light) 50%,
    var(--linen-dark) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 6px;
  z-index: 1;
  transition: opacity .3s ease;
}

@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* L'image reste invisible jusqu'au chargement */
.photo-item img.lazy {
  opacity: 0;
  transition: opacity .4s ease;
  position: relative;
  z-index: 2;
}

/* Une fois chargée, on fade-in l'image et on cache le placeholder */
.photo-item img.lazy--loaded {
  opacity: 1;
}
.photo-item img.lazy--loaded ~ .photo-item__placeholder,
.photo-item:has(img.lazy--loaded) .photo-item__placeholder {
  opacity: 0;
  pointer-events: none;
}
