/* ============================================================
   LAYOUT.CSS — Structure des sections, grilles, header, footer
   ============================================================ */

/* ===== HEADER ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background: rgba(249, 246, 240, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition:
    border-color var(--dur-base) var(--ease-out),
    box-shadow   var(--dur-base) var(--ease-out),
    background   var(--dur-base) var(--ease-out);
}

.site-header.scrolled {
  border-color: var(--color-border-light);
  box-shadow: var(--shadow-sm);
  background: rgba(249, 246, 240, 0.97);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--s6);
  gap: var(--s8);
}

/* Logo */
.nav-logo {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-shrink: 0;
}

.nav-logo-name {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
  white-space: nowrap;
  transition: color var(--dur-fast) var(--ease-out);
}

.nav-logo:hover .nav-logo-name {
  color: var(--color-primary-light);
}

.nav-logo-sub {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-light);
}

/* Liens desktop */
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--s8);
}

.nav-link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  position: relative;
  padding-bottom: 2px;
  white-space: nowrap;
  transition: color var(--dur-fast) var(--ease-out);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-accent);
  transition: width var(--dur-base) var(--ease-out);
}

.nav-link:hover {
  color: var(--color-primary);
}

.nav-link:hover::after,
.nav-link[aria-current="page"]::after {
  width: 100%;
}

/* Statut OUVERT/FERMÉ */
.nav-end {
  display: flex;
  align-items: center;
  gap: var(--s4);
  flex-shrink: 0;
}

.nav-status {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px var(--s4);
  border-radius: var(--radius-full);
  border: 1.5px solid currentColor;
  white-space: nowrap;
  transition: opacity var(--dur-fast) var(--ease-out);
}

.nav-status--open {
  color: var(--color-open);
  background: rgba(45, 122, 79, 0.08);
}

.nav-status--closed {
  color: var(--color-text-light);
  background: transparent;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: var(--s2);
  cursor: pointer;
  background: none;
  border: none;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--color-primary);
  border-radius: 1px;
  transition:
    transform var(--dur-base) var(--ease-out),
    opacity  var(--dur-base) var(--ease-out);
}

/* ===== MENU MOBILE ===== */
.nav-mobile {
  position: fixed;
  inset: 0;
  z-index: var(--z-mobile);
  background: var(--color-bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: var(--s8);
  padding: var(--nav-height) var(--s6) var(--s12);
  transform: translateY(-100%);
  transition: transform var(--dur-slow) var(--ease-in-out);
  visibility: hidden;
}

.nav-mobile.open {
  transform: translateY(0);
  visibility: visible;
}

.nav-mobile .nav-link {
  font-family: var(--font-serif);
  font-size: var(--text-4xl);
  color: var(--color-primary);
  font-weight: 700;
}

.nav-mobile .nav-link::after {
  height: 2px;
  bottom: -4px;
}

/* ===== HERO ===== */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  min-height: auto;
  padding-top: var(--nav-height);
}

.hero-image-col {
  width: 554px;
  height: 554px;
  position: relative;
  overflow: hidden;
  margin: 0 auto;
}

.hero-image-col img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 7s var(--ease-out);
}

.hero-image-col:hover img {
  transform: scale(1.04);
}

.hero-image-vignette {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(249,246,240,0) 50%, rgba(249,246,240,0.12) 100%);
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--s20) var(--s16) var(--s20) var(--s12);
}

.hero-eyebrow {
  margin-bottom: var(--s5);
}

.hero-title {
  font-size: var(--text-hero);
  color: var(--color-primary);
  margin-bottom: var(--s6);
  line-height: 1.08;
}

.hero-title em {
  font-style: italic;
  color: var(--color-accent);
}

.hero-desc {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 42ch;
  line-height: 1.75;
  margin-bottom: var(--s10);
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: var(--s4);
  flex-wrap: wrap;
}

/* ===== STRIP PRODUITS (entre hero et blocs) ===== */
.strip-produits {
  background: var(--color-primary);
  overflow: hidden;
}

.strip-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  padding: var(--s5) var(--s6);
}

.strip-item {
  display: flex;
  align-items: center;
  gap: var(--s5);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(249, 246, 240, 0.75);
  padding: var(--s3) var(--s6);
  white-space: nowrap;
  transition: color var(--dur-fast) var(--ease-out);
}

.strip-item:hover {
  color: var(--color-bg);
}

.strip-sep {
  width: 1px;
  height: 14px;
  background: rgba(249, 246, 240, 0.2);
  flex-shrink: 0;
}

/* ===== BLOCS ALTERNÉS (Z-PATTERN) ===== */
.bloc-alterne {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  min-height: auto;
  padding: var(--s14) 0;
}

.bloc-image {
  width: 484px;
  height: 484px;
  position: relative;
  overflow: hidden;
  margin: 0 auto;
}

.bloc-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform var(--dur-slow) var(--ease-out);
}

.bloc-image:hover img {
  transform: scale(1.035);
}

.bloc-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--s20) var(--s16);
}

.bloc-content h2 {
  font-size: clamp(1.875rem, 3vw + 0.25rem, 2.75rem);
  margin-top: var(--s4);
  margin-bottom: var(--s6);
}

.bloc-content p {
  font-size: var(--text-base);
  line-height: 1.85;
  max-width: 50ch;
}

.bloc-content .prix-mention {
  margin-top: var(--s6);
}

/* Variante fond alterné */
.bg-alt { background: var(--color-surface-alt); }
.bg-surface { background: var(--color-surface); }

/* Inversion visuelle du bloc (text left / image right) */
.bloc-alterne--reversed .bloc-image { order: 2; }
.bloc-alterne--reversed .bloc-content { order: 1; }

/* ===== BLOC 3 - FULLBLEED (rompt le zigzag) ===== */
.bloc-fullbleed {
  position: relative;
  min-height: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  overflow: hidden;
  background: var(--color-surface);
}

.bloc-fullbleed .bloc-bg-image {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  min-height: 320px;
}

.bloc-fullbleed .bloc-bg-image img {
  width: 484px;
  height: 484px;
  object-fit: cover;
  object-position: center;
  flex-shrink: 0;
  transition: transform var(--dur-slow) var(--ease-out);
}

.bloc-fullbleed:hover .bloc-bg-image img {
  transform: scale(1.035);
}

.bloc-fullbleed .bloc-overlay-content {
  background: var(--color-primary);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--s20) var(--s16);
  position: relative;
  z-index: 1;
}

.bloc-fullbleed .bloc-overlay-content h2 {
  color: var(--color-bg);
  margin-top: var(--s4);
  margin-bottom: var(--s6);
  font-size: clamp(1.875rem, 3vw + 0.25rem, 2.75rem);
}

.bloc-fullbleed .bloc-overlay-content p {
  color: rgba(249, 246, 240, 0.78);
  max-width: 48ch;
  line-height: 1.85;
}

.bloc-fullbleed .label-cat {
  color: var(--color-accent);
  opacity: 0.9;
}

.bloc-fullbleed .prix-mention {
  color: #E8A080;
}

/* ===== SECTION ÉQUIPE ===== */
.section-equipe {
  padding: var(--s24) var(--s6);
  background: var(--color-primary);
}

.equipe-header {
  text-align: center;
  margin-bottom: var(--s16);
}

.equipe-header .label-cat {
  color: rgba(232, 160, 128, 0.85);
  display: block;
  margin-bottom: var(--s4);
}

.equipe-header h2 {
  color: var(--color-bg);
  margin-bottom: var(--s5);
}

.equipe-header p {
  color: rgba(249, 246, 240, 0.7);
  max-width: 52ch;
  margin: 0 auto;
}

.equipe-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s10);
  max-width: var(--max-width);
  margin: 0 auto;
}

.membre {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.membre-photo {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: var(--s6);
  border: 2px solid rgba(249, 246, 240, 0.15);
  transition:
    border-color var(--dur-base) var(--ease-out),
    transform    var(--dur-base) var(--ease-out);
}

.membre:hover .membre-photo {
  border-color: var(--color-accent);
  transform: scale(1.04);
}

.membre-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(15%);
  transition: filter var(--dur-base) var(--ease-out);
}

.membre:hover .membre-photo img {
  filter: grayscale(0%);
}

.membre-nom {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-bg);
  margin-bottom: var(--s1);
  line-height: 1.2;
}

.membre-role {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--s4);
}

.membre-bio {
  font-size: var(--text-sm);
  line-height: 1.75;
  color: rgba(249, 246, 240, 0.6);
  max-width: 26ch;
}

/* ===== CONTACT ===== */
.section-contact {
  padding: var(--s24) var(--s6);
  background: var(--color-bg);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s16);
  max-width: var(--max-width);
  margin: 0 auto;
  align-items: start;
}

.contact-heading {
  margin-bottom: var(--s10);
}

.contact-heading h2 {
  font-size: var(--text-4xl);
}

.contact-block {
  margin-bottom: var(--s8);
}

.contact-block h4 {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  color: var(--color-primary);
  margin-bottom: var(--s3);
}

.contact-block p {
  font-size: var(--text-base);
  line-height: 1.7;
  max-width: none;
}

.contact-lien {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  color: var(--color-accent);
  font-weight: 500;
  font-size: var(--text-base);
  transition:
    gap   var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out);
}

.contact-lien svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.contact-lien:hover {
  color: var(--color-accent-hover);
  gap: var(--s3);
}

/* Tableau horaires */
.horaires-table {
  width: 100%;
}

.horaires-table tr {
  border-bottom: 1px solid var(--color-border);
}

.horaires-table tr:last-child {
  border-bottom: none;
}

.horaires-table td {
  padding: var(--s3) 0;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  vertical-align: middle;
}

.horaires-table td:first-child {
  font-weight: 600;
  color: var(--color-text);
  width: 42%;
  text-transform: capitalize;
}

.horaires-table .ferme {
  color: var(--color-text-light);
  font-style: italic;
}

.horaires-table tr.today td {
  color: var(--color-primary);
  font-weight: 700;
}

.horaires-table tr.today td:last-child {
  color: var(--color-accent);
}

/* Carte */
.contact-map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-image);
  aspect-ratio: 4/3;
  background: var(--color-border);
}

.contact-map-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--color-primary);
  padding: var(--s10) var(--s6);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s6);
  flex-wrap: wrap;
}

.footer-brand {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-bg);
  line-height: 1.1;
}

.footer-brand small {
  display: block;
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 400;
  color: rgba(249, 246, 240, 0.45);
  letter-spacing: 0.06em;
  margin-top: 4px;
}

.footer-copy {
  font-size: var(--text-xs);
  color: rgba(249, 246, 240, 0.45);
  text-align: center;
}

.footer-nav {
  display: flex;
  gap: var(--s6);
}

.footer-nav a {
  font-size: var(--text-xs);
  color: rgba(249, 246, 240, 0.45);
  transition: color var(--dur-fast) var(--ease-out);
}

.footer-nav a:hover {
  color: var(--color-bg);
}

/* ===== RESPONSIVE ===== */

/* --- Tablette (768px - 1023px) --- */
@media (max-width: 1023px) {
  .hero-content {
    padding: var(--s12) var(--s8);
  }

  .bloc-content {
    padding: var(--s12) var(--s10);
  }

  .bloc-fullbleed .bloc-overlay-content {
    padding: var(--s12) var(--s10);
  }

  .equipe-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 640px;
  }

  .equipe-grid .membre:nth-child(3) {
    grid-column: 1 / -1;
    max-width: 280px;
    margin: 0 auto;
  }

  .contact-grid {
    gap: var(--s10);
  }
}

/* --- Mobile (< 768px) --- */
@media (max-width: 767px) {
  /* Nav */
  .nav-links { display: none; }
  .nav-status { display: none; }
  .nav-toggle { display: flex; }

  /* Hero */
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-image-col {
    width: min(450px, 88vw);
    height: min(450px, 88vw);
    position: relative;
    margin: 0 auto;
  }

  .hero-content {
    padding: var(--s10) var(--s5) var(--s12);
  }

  .hero-desc {
    font-size: var(--text-base);
    max-width: none;
  }

  /* Strip produits */
  .strip-inner {
    gap: 0;
    padding: var(--s4) 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    justify-content: flex-start;
    scrollbar-width: none;
  }

  .strip-inner::-webkit-scrollbar { display: none; }

  .strip-item {
    padding: var(--s2) var(--s4);
    font-size: 10px;
  }

  /* Blocs alternés */
  .bloc-alterne,
  .bloc-fullbleed {
    grid-template-columns: 1fr;
  }

  .bloc-image {
    width: min(415px, 88vw);
    height: min(415px, 88vw);
    min-height: unset;
    order: -1 !important;
    position: relative;
    margin: 0 auto;
  }

  .bloc-fullbleed .bloc-bg-image {
    min-height: 430px;
    order: -1 !important;
  }

  .bloc-fullbleed .bloc-bg-image img {
    width: min(415px, 88vw);
    height: min(415px, 88vw);
  }

  .bloc-content,
  .bloc-fullbleed .bloc-overlay-content {
    order: 1 !important;
    padding: var(--s10) var(--s5);
  }

  /* Annuler le reversed sur mobile = image toujours en haut */
  .bloc-alterne--reversed .bloc-image { order: -1 !important; }
  .bloc-alterne--reversed .bloc-content { order: 1 !important; }

  /* Équipe */
  .section-equipe { padding: var(--s16) var(--s5); }

  .equipe-grid {
    grid-template-columns: 1fr;
    max-width: 320px;
    margin: 0 auto;
    gap: var(--s10);
  }

  .equipe-grid .membre:nth-child(3) {
    grid-column: auto;
    max-width: 100%;
  }

  /* Contact */
  .section-contact { padding: var(--s16) var(--s5); }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--s10);
  }

  .contact-heading h2 { font-size: var(--text-3xl); }

  .contact-map-wrap { aspect-ratio: 3/2; }

  /* Footer */
  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: var(--s4);
  }

  .footer-nav { justify-content: center; }
}

/* --- Très petit (< 400px) --- */
@media (max-width: 399px) {
  .hero-cta {
    flex-direction: column;
    align-items: flex-start;
  }
}
