/* ===================================================
   Global Stylesheet — boho-mix v7 (Optimized & Corrected)
   =================================================== */

/* ... (tout le début du fichier est identique jusqu'à la section 3) ... */

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

* {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 2rem;
}

body {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 18px;
  line-height: 1.7;
  background-color: var(--color-bg);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, .08) 0%, rgba(0, 0, 0, .02) 100%);
}

img, svg, video, canvas {
  display: block;
  max-width: 100%;
}

input, button, textarea, select {
  font: inherit;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--duration-medium) var(--ease-standard);
}

a:hover, a:focus-visible {
  color: var(--color-accent-alt);
}

::selection {
  background: var(--color-accent);
  color: #fff;
}

@media(prefers-reduced-motion:reduce) {
  html:focus-within { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------------------------------------------------
   1. Helpers & Utilities
   --------------------------------------------------- */
.container {
  width: min(92%, 70rem);
  margin-inline: auto;
}

.flow > *+* {
  margin-top: var(--flow-space, var(--space-sm));
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------------------------------------------------
   2. Header & Navigation
   --------------------------------------------------- */
#site-header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 1000;
  pointer-events: none;
}

.header-inner {
  pointer-events: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md) 0;
}

.logo {
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  color: var(--color-wood);
}

.logo.is-scrolled {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 2rem;
  height: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.hamburger .bar {
  display: block;
  width: 100%;
  height: 0.2rem;
  background-color: var(--color-text);
  border-radius: var(--radius-sm);
  transition: transform 0.3s, opacity 0.3s, background-color 0.3s;
}

.hamburger.scrolled .bar {
  background-color: var(--color-wood);
}

.hamburger.is-active .bar:nth-child(1) { transform: translateY(0.65rem) rotate(45deg); }
.hamburger.is-active .bar:nth-child(2) { opacity: 0; }
.hamburger.is-active .bar:nth-child(3) { transform: translateY(-0.65rem) rotate(-45deg); }

.nav-menu {
  position: fixed;
  inset: 0;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0s linear 0.5s;
}

.nav-menu.is-visible {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

.nav-menu ul {
  list-style: none;
  text-align: center;
}

.nav-menu li + li {
  margin-top: var(--space-lg);
}

.nav-menu a {
  color: #fff;
  font-size: 1.5rem;
  transition: color 0.3s ease;
}

.nav-menu a:hover {
  color: var(--color-accent);
}

html.menu-open {
  overflow: hidden;
  padding-right: var(--sbw, 0px);
}

/* ---------------------------------------------------
   3. General Sections Layout -- FINAL
   --------------------------------------------------- */
.section-heading {
  font-family: var(--font-display);
  font-size: clamp(4rem, 8vw+1rem, 7rem);
  line-height: 1.2;
  font-weight: 400;
  text-align: center;
  margin-bottom: var(--space-xl);
  color: #2d1f1a;
}

.full-page-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center; /* <-- CORRECTION AJOUTÉE ICI */
  padding-block: var(--space-xl);
}


/* ---------------------------------------------------
   4. Hero Section
   --------------------------------------------------- */
.hero {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding-inline: var(--space-sm);
  background: url('../assets/img/hero.webp?v=1757400199') center/cover no-repeat fixed;
  position: relative;
  text-align: center;
  color: var(--color-text);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 6vw+1rem, 7rem);
  font-weight: 400;
  margin-bottom: var(--space-sm);
  text-shadow: 0 2px 4px rgb(0 0 0 /.4);
}

.hero .tagline {
  font-size: 1.125rem;
  font-family: 'Cormorant Garamond', Georgia, serif;
  letter-spacing: .05em;
  max-width: 40ch;
  margin-inline: auto;
  opacity: .9;
  white-space: nowrap;
}

.cursor {
  display: inline-block;
  margin-left: 2px;
  animation: blink 1s steps(1, end) infinite;
}

@keyframes blink { 50% { opacity: 0; } }

/* ---------------------------------------------------
   5. About Section
   --------------------------------------------------- */
.about {
  color: var(--color-text-dark);
  position: relative;
  overflow: hidden;
}

.about .container {
  display: grid;
  gap: var(--space-xl);
  position: relative;
}

@media(min-width:50em) {
  .about .container {
    grid-template-columns: minmax(320px, 480px) 1fr;
    align-items: start;
    column-gap: 5vw;
  }
}

.about figure {
  overflow: hidden;
  border-radius: 8px;
  width: 100%;
  aspect-ratio: 4/5;
  border: 2px solid var(--color-line-light);
  box-shadow: 0 2px 4px rgb(0 0 0 /.08), 0 8px 16px rgb(0 0 0 /.04);
}

.about figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about .flow {
  max-width: 65ch;
}

.about-title {
  font-family: var(--font-display);
  font-size: clamp(4rem, 8vw+1rem, 7rem);
  font-weight: 400;
  margin-bottom: var(--space-sm);
}

.kicker {
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: .14em;
  color: var(--color-accent);
  margin-bottom: var(--space-lg);
  font-family: 'Cormorant Garamond', Georgia, serif;
}

.btn-toggle-more {
  display: block;
  width: 100%;
  max-width: 420px;
  margin: var(--space-lg) auto 0;
  padding: .85rem 1rem;
  background: #1a1a1a;
  color: #fff;
  font-size: 1rem;
  letter-spacing: .04em;
  border: none;
  cursor: pointer;
  font-family: 'Cormorant Garamond', Georgia, serif;
  transition: background var(--duration-fast) var(--ease-standard);
}

.btn-toggle-more:hover, .btn-toggle-more:focus {
  background: #2e2e2e;
}

/* Note: arrow is handled by JS text content now for simplicity */


/* ---------------------------------------------------
   6. Photo Strip Section
   --------------------------------------------------- */
.photo-strip {
  overflow: hidden;
  background: var(--color-surface);
  position: relative;
  border-top: 1px solid rgba(212, 163, 115, .2);
  border-bottom: 1px solid rgba(212, 163, 115, .2);
  padding-block: var(--space-lg);
}

.photo-strip::before,
.photo-strip::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 4rem;
  background: linear-gradient(90deg, var(--color-bg) 0%, transparent 100%);
  z-index: 2;
  pointer-events: none;
}

.photo-strip::before { left: 0; }
.photo-strip::after { right: 0; background: linear-gradient(-90deg, var(--color-bg) 0%, transparent 100%); }

.strip-track {
  display: flex;
  gap: var(--space-sm);
  animation: scroll-horizontal 40s linear infinite;
  will-change: transform;
  animation-play-state: paused;
}

@keyframes scroll-horizontal {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.photo-strip.is-running .strip-track {
  animation-play-state: running;
}

.strip-track img {
  height: 220px;
  width: auto;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  filter: sepia(20%) contrast(1.1) brightness(0.95);
  transition: filter var(--duration-medium) var(--ease-standard), transform var(--duration-medium) var(--ease-standard);
  border: 2px solid rgba(212, 163, 115, .15);
  opacity: 0;
}

.strip-track img[data-loaded="true"] {
  opacity: 1;
  transition: opacity 0.4s ease;
}

.strip-track img:hover {
  filter: sepia(0%) contrast(1) brightness(1);
  transform: scale(1.02);
}

/* ---------------------------------------------------
   7. Services Section
   --------------------------------------------------- */
.services-grid {
  display: grid;
  gap: 2.5rem;
  margin-bottom: var(--space-xl);
  max-width: 85rem;
  margin-inline: auto;
}

@media(min-width:50em) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--color-text-dark);
}

.service-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 300;
  font-size: clamp(1.15rem, .9rem + .8vw, 1.45rem);
  line-height: 1.3;
  text-align: center;
  margin: .35rem 0 1rem;
  color: var(--color-text-dark);
}

.service-card {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 14px 36px rgba(0,0,0,.08);
  transition: transform .25s ease, box-shadow .25s ease;
}

.service-card > img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.service:hover .service-card {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,.12);
}

.service:hover .service-card > img {
  transform: scale(1.02);
}

.service-text {
  text-align: center;
  padding: .2rem .5rem 0;
  color: var(--color-text-dark);
  max-width: 46ch;
  margin-top: 1.15rem;
}

.service-text p {
  margin: 0 0 .65rem;
  line-height: 1.9;
  font-size: 1.05rem;
}

.service-price {
  margin-top: .35rem;
  font-weight: 600;
  color: var(--color-text-dark);
}

/* ---------------------------------------------------
   8. Portfolio Section
   --------------------------------------------------- */
.section-portfolio { 
  padding-block: 0; 
}

/* LA CORRECTION EST ICI */
#portfolio.full-page-section {
  /* On ancre le contenu en haut pour éviter qu'il ne remonte */
  justify-content: flex-start;
  /* On le décale vers le bas pour le centrer visuellement dans la fenêtre */
  padding-top: 25vh; 
}

.portfolio-intro {
  text-align: center;
  max-width: 65ch;
  padding: var(--space-lg);
}

.portfolio-legend {
  color: var(--color-text-dark);
  line-height: 1.9;
  font-size: 1.05rem;
  margin-bottom: var(--space-lg);
}

.collapsible-panel {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  visibility: hidden;
  transition:
    grid-template-rows .65s cubic-bezier(.2,.8,.2,1),
    opacity          .45s ease .10s,
    visibility       0s   linear .65s;
}
.collapsible-panel.show {
  grid-template-rows: 1fr;
  opacity: 1;
  visibility: visible;
  transition:
    grid-template-rows .65s cubic-bezier(.2,.8,.2,1),
    opacity          .45s ease .10s,
    visibility       0s   linear 0s;
}
.collapsible-inner { overflow: hidden; }


.grid-gallery {
  --gap: 0.1rem;
  display: grid;
  gap: var(--gap);
  grid-template-columns: repeat(6, 1fr);
  padding-block: var(--space-xl);
}

@media(max-width:991px) { .grid-gallery { grid-template-columns: repeat(3, 1fr); } }
@media(max-width:640px) { .grid-gallery { grid-template-columns: repeat(2, 1fr); } }

.gallery-item {
  position: relative;
  aspect-ratio: 1/1;
  overflow: hidden;
  box-shadow: 0 4px 10px rgb(0 0 0/.12);
  transition: transform .35s var(--ease-standard), box-shadow .35s var(--ease-standard);
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgb(0 0 0/.18);
}

.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s var(--ease-standard);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item a:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

/* ---------------------------------------------------
   9. Interlude Section
   --------------------------------------------------- */
.interlude {
  min-height: 100vh;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: 0;
}

.interlude::before {
  content: "";
  position: absolute;
  inset: 0;
}

@supports (-webkit-touch-callout: none) {
  .hero, .interlude {
    background-attachment: scroll;
  }
}

/* ---------------------------------------------------
   10. Testimonials Section
   --------------------------------------------------- */
.testi-timeline { color: var(--color-text-dark); }

.testi-list {
  padding: 0 clamp(var(--space-lg), 4vw, var(--space-xl));
  list-style: none;
  position: relative;
  max-width: 70rem;
  margin-inline: auto;
}

.testi-list::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--color-accent);
  transform: translateX(-1px);
}

.testi-node {
  position: relative;
  margin-bottom: var(--space-xl);
  width: calc(50% - var(--space-lg));
}

.testi-node.left { text-align: right; }
.testi-node.right { margin-left: calc(50% + var(--space-lg)); }
.testi-node.center { width: 100%; margin-left: 0; text-align: center; }

blockquote {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.6;
  font-style: italic;
  display: inline-block;
}

blockquote cite {
  display: block;
  margin-top: var(--space-sm);
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 500;
  letter-spacing: .02em;
}

@media(max-width:640px) {
  .testi-list::before { display: none; }
  .testi-node, .testi-node.left, .testi-node.right {
    width: 100%;
    margin-left: 0;
    text-align: left;
  }
}

.gmb-card-inline {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
}
.gmb-card-inline .rating { font-size: 1.6rem; font-weight: 600; }
.gmb-card-inline .stars { font-size: 1.3rem; color: var(--color-accent); letter-spacing: .12rem; }
.gmb-card-inline .count { font-size: .9rem; opacity: .75; margin-left: .4rem; }
.gmb-card-inline .cta {
  font-size: .9rem;
  color: var(--color-accent-alt);
  border-bottom: 1px solid currentColor;
}
.gmb-card-inline .cta:hover { color: var(--color-accent); }

/* ---------------------------------------------------
   11. Contact Section
   --------------------------------------------------- */
.contact-grid {
  display: grid;
  gap: var(--space-xl);
}

@media(min-width:50em) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
    column-gap: 5vw;
  }
}

.contact-info p, .contact-info strong {
  color: var(--color-text-dark);
  font-weight: 400;
}

.contact-list { list-style: none; }
.contact-list li:not(:last-child) { margin-bottom: var(--space-sm); }
.contact-list a { color: var(--color-accent-alt); }

.contact-form { display: flex; flex-direction: column; gap: var(--space-md); }

.field { display: flex; flex-direction: column; gap: .4rem; }

.contact-form label {
  color: var(--color-text-dark);
  font-weight: 500;
  letter-spacing: .02em;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: .9rem 1rem;
  border: 1px solid rgba(0, 0, 0, .15);
  border-radius: var(--radius-sm);
  background: #fff;
  font-size: 1rem;
  color: var(--color-text-dark);
  transition: border-color var(--duration-fast) var(--ease-standard), box-shadow var(--duration-fast) var(--ease-standard);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(212, 163, 115, .25);
  outline: none;
}

.contact-form select {
  appearance: none;
  padding-right: 2.5rem;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d4a373' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .9rem center;
  background-size: 1rem;
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

#contact-status {
  padding: .6rem .8rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  display: none;
}
#contact-status.is-ok { display: inline-block; color: #0f5132; background: #d1e7dd; border-color: #badbcc; }
#contact-status.is-err { display: inline-block; color: #842029; background: #f8d7da; border-color: #f5c2c7; }
#contact-status.is-sending { display: inline-block; opacity: .9; }
#contact-status.fade-out { animation: cs-fade 420ms ease forwards; }
@keyframes cs-fade { to { opacity: 0; transform: translateY(-2px); } }

/* ---------------------------------------------------
   12. Private Gallery Section
   --------------------------------------------------- */
.private-gallery {
  background: var(--color-text-dark);
  text-align: center;
}

.private-gallery .section-heading {
  color: var(--color-accent);
}

.private-gallery p {
  margin-bottom: var(--space-lg);
  color: var(--color-text);
  font-weight: 400;
}

/* ---------------------------------------------------
   13. Footer
   --------------------------------------------------- */
.site-footer {
  background: var(--color-text-dark);
  color: var(--color-text);
  text-align: center;
  padding-block: var(--space-lg);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  list-style: none;
  margin: 0 0 var(--space-md);
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: 1.05rem;
  color: var(--color-text);
  transition: color 0.3s ease, transform 0.3s ease;
}

.footer-copy { margin-bottom: var(--space-sm); }
#brand { font-family: var(--font-display); font-size: 1.3rem; color: var(--color-accent); }
.footer-note { font-size: 1rem; opacity: .85; }

.icon-svg {
  width: 1.15rem; height: 1.15rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  transition: color var(--duration-medium) var(--ease-standard);
}

.footer-links a:hover .icon-svg,
.footer-links a:focus-visible .icon-svg {
  color: var(--color-accent);
}

.footer-links a:hover,
.footer-links a:focus {
  color: var(--color-accent);
  transform: scale(0.98);
}

/* ---------------------------------------------------
   14. Components (Buttons, etc.)
   --------------------------------------------------- */
.cta-wrap,
.pcard-actions {
  display: flex;
  justify-content: center;
  margin-top: var(--space-xl);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: 1rem 2rem;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--color-accent);
  color: var(--color-text-dark);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: .04em;
  cursor: pointer;
  text-align: center;
  transition: transform var(--duration-fast) var(--ease-standard),
              box-shadow var(--duration-fast) var(--ease-standard),
              background var(--duration-fast) var(--ease-standard);
  box-shadow: 0 4px 12px rgba(212, 163, 115, .2);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #e8b584;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 163, 115, .3);
  outline: none;
}