/* ============================================
   L'Ascendant — feuille de style
   Palette reprise de l'identité de marque existante :
   noir chaud + crème + or + bourgogne
   ============================================ */

:root {
  --cream: #f3ece1;
  --cream-dark: #e8ddcc;
  --brown: #2b211a;
  --brown-soft: #6b5a4f;
  --ink: #14100d;
  --ink-soft: #1f1813;
  --gold: #c6a96b;
  --gold-soft: #d8c093;
  --wine: #9b1c31;
  --wine-dark: #6b1322;
  --border: #e4d5c2;
  --white: #fffdfa;

  /* alias pour compatibilité : les accents "terracotta" pointent vers le bourgogne de la marque */
  --terracotta: var(--wine);
  --terracotta-dark: var(--wine-dark);

  --font-heading: Georgia, "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --radius: 14px;
  --shadow: 0 10px 30px -12px rgba(20, 16, 13, 0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--brown);
  font-family: var(--font-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 400;
  color: var(--brown);
  line-height: 1.2;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.4rem; }

p { margin: 0 0 1em; }

a { color: var(--terracotta-dark); }

.wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}
.wrap-narrow { max-width: 780px; }

.section { padding: 96px 0; }
.center { text-align: center; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--terracotta-dark);
  margin: 0 0 0.8em;
}
.eyebrow.center { text-align: center; }
.eyebrow-icon {
  height: 15px;
  width: auto;
  vertical-align: -2px;
  margin-right: 8px;
  opacity: 0.9;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--terracotta);
  color: #fff;
  padding: 12px 20px;
  z-index: 200;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 245, 238, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 20px -14px transparent;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
.site-header.scrolled {
  box-shadow: 0 4px 20px -12px rgba(20, 16, 13, 0.18);
  border-bottom-color: var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--brown);
  text-decoration: none;
  letter-spacing: 0.02em;
}
.logo img {
  height: 34px;
  width: auto;
}
.footer-logo {
  height: 28px;
  width: auto;
  margin-bottom: 10px;
  opacity: 0.9;
}
.primary-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.primary-nav a {
  color: var(--brown-soft);
  text-decoration: none;
  font-size: 0.98rem;
}
.primary-nav a:hover { color: var(--terracotta-dark); }
.primary-nav a.active:not(.nav-cta) {
  color: var(--wine);
  font-weight: 600;
}
.nav-cta {
  background: var(--terracotta);
  color: #fff !important;
  padding: 10px 20px;
  border-radius: 30px;
  transition: background 0.2s ease;
}
.nav-cta:hover { background: var(--terracotta-dark); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--brown);
  border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 140px 0 100px;
  background:
    radial-gradient(circle at 85% 15%, rgba(198, 169, 107, 0.16), transparent 55%),
    radial-gradient(circle at 10% 90%, rgba(155, 28, 49, 0.08), transparent 50%),
    var(--cream);
  color: var(--brown);
  text-align: left;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  max-width: 1140px;
}
.hero-text h1 { color: var(--brown); }
.hero-text h1 em {
  font-style: italic;
  color: var(--wine);
}
.hero-lead {
  font-size: 1.2rem;
  color: var(--brown-soft);
  max-width: 480px;
  margin: 0 0 2em;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-meta {
  margin: 22px 0 0;
  font-size: 0.85rem;
  color: var(--brown-soft);
  letter-spacing: 0.02em;
}

.hero-portrait {
  position: relative;
  display: flex;
  justify-content: center;
}
.hero-portrait img {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: var(--terracotta);
  color: #fff;
}
.btn-primary:hover {
  background: var(--terracotta-dark);
  transform: translateY(-1px);
  box-shadow: 0 10px 20px -8px rgba(107, 19, 34, 0.45);
}
.btn-ghost {
  background: transparent;
  color: var(--brown);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--terracotta); color: var(--terracotta-dark); }
.btn-outline {
  background: transparent;
  color: var(--terracotta-dark);
  border-color: var(--terracotta);
}
.btn-outline:hover { background: var(--terracotta); color: #fff; }
.btn-full { width: 100%; text-align: center; }

/* ---------- À propos ---------- */
.apropos { background: var(--white); }
.apropos-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 64px;
  align-items: start;
}
.portrait-frame {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(160deg, var(--cream-dark), var(--gold) 140%);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
}
.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.apropos-portrait.no-image .portrait-frame img { display: none; }
.apropos-portrait.no-image .portrait-frame::after {
  content: "🌙";
  font-size: 4rem;
}

/* ---------- Services ---------- */
.services { background: var(--cream); }
.service-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 56px;
}
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--gold);
}
.card-photo {
  margin: -36px -30px 22px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
}
.card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.card:hover .card-photo img { transform: scale(1.05); }
.card-icon {
  height: 26px;
  width: 26px;
  align-self: flex-start;
  flex-shrink: 0;
  margin-bottom: 14px;
  opacity: 0.85;
}
.card h3 { margin-bottom: 0.2em; }
.card .price {
  color: var(--terracotta-dark);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 1em;
}
.card .detail {
  font-size: 0.88rem;
  color: var(--brown-soft);
  font-style: italic;
}
.card .btn { margin-top: auto; align-self: flex-start; }

/* ---------- Galerie ---------- */
.galerie { background: var(--white); }
.gallery-intro {
  max-width: 560px;
  margin: 0 auto 48px;
  color: var(--brown-soft);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.gallery-item {
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(155deg, var(--cream-dark), var(--gold) 150%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item.no-image img { display: none; }
.gallery-item.no-image::after {
  content: "🖋";
  font-size: 2.2rem;
  opacity: 0.6;
}

/* ---------- Visionneuse (lightbox) ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(20, 16, 13, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.lightbox[hidden] { display: none; }
.lightbox-img {
  max-width: min(90vw, 900px);
  max-height: 85vh;
  border-radius: 8px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7);
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(243, 236, 225, 0.3);
  color: var(--cream);
  border-radius: 50%;
  width: 46px;
  height: 46px;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: var(--gold);
}
.lightbox-close { top: 20px; right: 20px; }
.lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); }

@media (max-width: 600px) {
  .lightbox { padding: 16px; }
  .lightbox-prev, .lightbox-next { width: 40px; height: 40px; font-size: 1.3rem; }
  .lightbox-close { width: 38px; height: 38px; top: 10px; right: 10px; }
}

/* ---------- Témoignages ---------- */
.temoignages { background: var(--cream); }
.testimonial-grid {
  display: grid;
  gap: 24px;
  margin-top: 48px;
}
.testimonial {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--terracotta);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin: 0;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.testimonial:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.testimonial::before {
  content: "“";
  position: absolute;
  top: 6px;
  right: 20px;
  font-family: var(--font-heading);
  font-size: 3.2rem;
  color: var(--gold-soft);
  opacity: 0.6;
  line-height: 1;
}
.testimonial p {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--brown);
  margin-bottom: 0.6em;
}
.testimonial cite {
  font-style: normal;
  font-size: 0.88rem;
  color: var(--brown-soft);
}

/* ---------- FAQ ---------- */
.faq { background: var(--white); }
.accordion { margin-top: 48px; }
.accordion details {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
.accordion summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.08rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--terracotta);
  margin-left: 16px;
  transition: transform 0.2s ease;
}
.accordion details[open] summary::after { transform: rotate(45deg); }
.accordion p { margin-top: 14px; color: var(--brown-soft); }

/* ---------- Contact ---------- */
.contact { background: var(--cream); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
}
address { font-style: normal; margin: 1.5em 0; color: var(--brown-soft); line-height: 1.8; }
.socials a { text-decoration: none; }

.contact-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.form-row { margin-bottom: 18px; }
.form-row label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.92rem;
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  background: var(--cream);
  color: var(--brown);
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: 2px solid var(--terracotta);
  outline-offset: 1px;
}
.form-note {
  margin-top: 14px;
  font-size: 0.92rem;
  min-height: 1.4em;
}
.form-note.success { color: #3a6b4a; }
.form-note.error { color: var(--terracotta-dark); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--cream-dark);
  padding: 48px 0 40px;
  font-size: 0.9rem;
  text-align: center;
}
.footer-inner p { margin: 0.3em 0; opacity: 0.85; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .apropos-grid { grid-template-columns: 1fr; }
  .portrait-frame { max-width: 320px; }
  .service-cards { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-text { order: 2; }
  .hero-text .hero-lead { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-portrait { order: 1; margin: 0 auto; }
}

@media (max-width: 700px) {
  .primary-nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px 28px;
    gap: 18px;
    display: none;
  }
  .primary-nav.open { display: flex; }
  .nav-toggle { display: flex; }
  .section { padding: 64px 0; }
  .hero { padding: 100px 0 72px; }
}

/* ---------- Apparition au scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in-view { opacity: 1; transform: none; }
.reveal-delay-1.in-view { transition-delay: 0.12s; }
.reveal-delay-2.in-view { transition-delay: 0.24s; }

/* ---------- Réduction de mouvement ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
