*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cream:   #faf6f0;
  --warm:    #f5ede0;
  --gold:    #c8973a;
  --dark:    #2b1f10;
  --mid:     #6b4f2e;
  --text:    #3d2b15;
  --white:   #ffffff;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Lato', sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.7;
}

nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(250, 246, 240, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(200, 151, 58, 0.2);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem;
  height: 64px;
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: bolder;
  color: #824B84;
  text-decoration: none;
  letter-spacing: 0.03em;
}

.nav-logo span { color: #824B84; }

.nav-links {
  display: flex; gap: 1.8rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--mid);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--gold); }

.nav-toggle {
  display: none;
  background: none; border: none;
  cursor: pointer; padding: 4px;
  flex-direction: column; gap: 5px;
}

.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--dark); border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

#accueil {
  min-height: 100vh;
  display: flex; align-items: flex-end; justify-content: flex-start;
  background: #1a100a;
  padding: 120px 6vw 60px;
  position: relative; overflow: hidden;
}

#accueil::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url('images/initial-maison-duvernet-c-fbernard.jpg');
  background-size: cover; background-position: 20% center; /* sujets à gauche */
  opacity: 1;
}

#accueil::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(
    to top,
    rgba(26,16,10,0.95) 0%,
    rgba(26,16,10,0.88) 10%,
    rgba(26,16,10,0.55) 20%,
    rgba(26,16,10,0.10) 40%,
    transparent 100%
  );
  z-index: 0;
}

.hero-inner {
  position: relative; z-index: 1;
  max-width: 560px;
  text-align: left;
}

.hero-tag {
  display: inline-block;
  background: white;
  font-size: 0.72rem; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--gold); font-weight: 700;
  border: 1px solid var(--gold);
  padding: 6px 18px; border-radius: 50px;
  margin-bottom: 1.8rem;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 0.3em;
}

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

.hero-subtitle {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: rgba(255,255,255,1);
  font-weight: 300;
  font-weight: bolder;
  margin-bottom: 1rem;
  letter-spacing: 0.04em;
}

.hero-year {
  font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(200,151,58,1); margin-bottom: 2.4rem;
  font-weight: bold;
}

.hero-cta {
  display: inline-block;
  background: var(--gold); color: var(--dark);
  font-weight: 700; font-size: 0.82rem; letter-spacing: 0.1em;
  text-transform: uppercase; text-decoration: none;
  padding: 14px 36px; border-radius: 50px;
  transition: background 0.2s, transform 0.2s;
}

.hero-cta:hover { background: #d4a845; transform: translateY(-2px); }

.hero-scroll {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: rgba(255,255,255,0.4); font-size: 0.7rem; letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hero-scroll::after {
  content: '';
  display: block; width: 1px; height: 40px;
  background: rgba(200,151,58,0.5);
  animation: scrollLine 1.5s ease-in-out infinite;
}

@keyframes scrollLine {
  0%,100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.2); }
}

.page-hero {
  margin-top: 64px;
  background: linear-gradient(160deg, #2b1f10 0%, #4a3520 100%);
  padding: 70px 2rem 60px;
  text-align: center;
  position: relative; overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0.28;
}

.page-hero-inner { position: relative; z-index: 1; max-width: 680px; margin: 0 auto; }

.page-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3.6rem);
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 0.8rem;
}

.page-hero h1 em { font-style: italic; color: var(--gold); }

.page-hero p {
  color: rgba(255,255,255,0.72);
  font-weight: 300;
  font-size: 1rem;
}

.page-patisseries .page-hero { background: linear-gradient(160deg, #2b1f10 0%, #4a3520 100%); }
.page-patisseries .page-hero::before {
  background-image: url('images/51b98b_111ca8aba23043c6983d3a3c286a0649~mv2.avif');
  opacity: 0.28;
}

.page-chocolats .page-hero { background: linear-gradient(160deg, #1a0f08 0%, #3a2010 100%); }
.page-chocolats .page-hero::before {
  background-image: url('images/308034.avif');
  opacity: 0.32;
}

.page-sale .page-hero { background: linear-gradient(160deg, #1e1408 0%, #3a2c14 100%); }
.page-sale .page-hero::before {
  background-image: url('images/1000016335.avif');
  opacity: 0.35;
}

section { padding: 80px 2rem; }

.container { max-width: 1100px; margin: 0 auto; }

.section-tag {
  font-size: 0.72rem; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--gold); font-weight: 700; display: block;
  margin-bottom: 0.6rem;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--dark); line-height: 1.2;
}

.section-title em { font-style: italic; color: #824B84; }

.divider {
  width: 50px; height: 2px;
  background: var(--gold);
  margin: 1.2rem 0 2rem;
}

.section-label { margin-bottom: 2.4rem; }

.section-label .section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
}

.section-label .divider {
  margin: 1rem 0 0;
}

.back-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase;
  font-weight: 700; color: var(--mid); text-decoration: none;
  margin-bottom: 2.5rem;
  transition: color 0.2s;
}

.back-link:hover { color: var(--gold); }
.back-link::before { content: '←'; font-size: 1rem; }

#histoire {
  padding: 5rem 0 7rem;
  background: var(--white);
}

.histoire-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  padding: 0 2rem 5rem;
}

.histoire-header .divider { margin: 1.2rem auto 0; }

.histoire-chapitre {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.histoire-chapitre--reverse .histoire-img-wrap { order: -1; }

.histoire-texte {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.histoire-texte.visible {
  opacity: 1;
  transform: translateY(0);
}

.histoire-chapitre--reverse .histoire-texte { transition-delay: 0.1s; }

.histoire-num {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 5rem;
  font-weight: 600;
  color: rgba(200, 151, 58, 0.12);
  line-height: 1;
  margin-bottom: -0.8rem;
  letter-spacing: -0.02em;
}

.histoire-date {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.histoire-titre {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  color: var(--dark);
  line-height: 1.15;
  margin-bottom: 1.4rem;
}

.histoire-texte p {
  font-size: 1.02rem;
  color: var(--mid);
  font-weight: 300;
  line-height: 1.85;
}

.histoire-img-wrap {
  position: relative;
  height: 680px;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 6px 36px rgba(43,31,16,0.14);
}

.histoire-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.histoire-merci {
  max-width: 680px;
  margin: 2rem auto 0;
  padding: 3rem 2rem 0;
  text-align: center;
}

blockquote {
  border-left: 3px solid var(--gold);
  padding-left: 1.4rem;
  margin: 2rem 0;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.15rem; color: var(--dark);
  line-height: 1.6;
  text-align: left;
}

blockquote cite {
  display: block;
  font-family: 'Lato', sans-serif;
  font-style: normal; font-size: 0.82rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gold); margin-top: 0.6rem; font-weight: 700;
}

#produits { background: var(--cream); }

.produits-intro { max-width: 600px; margin-bottom: 3rem; }

.produits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.8rem;
}

.produit-card {
  background: var(--white);
  border-radius: 6px; overflow: hidden;
  box-shadow: 0 2px 20px rgba(43,31,16,0.06);
  transition: transform 0.3s, box-shadow 0.3s;
}

.produit-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 32px rgba(43,31,16,0.12);
}

a.produit-card:hover img { transform: scale(1.04); }

.produit-card img {
  width: 100%; height: 220px;
  object-fit: cover; display: block;
}

.produit-card-body { padding: 1.2rem 1.4rem 1.6rem; }

.produit-card-body h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem; color: var(--dark);
  margin-bottom: 0.4rem;
}

.produit-card-body p {
  font-size: 0.9rem; color: var(--mid);
  font-weight: 300;
}

#brunch, #sale {
  background: linear-gradient(135deg, #2b1f10 0%, #3d2b15 100%);
  color: var(--white);
  text-align: center;
}

#brunch .section-title, #sale .section-title { color: var(--white); }
#brunch .divider, #sale .divider { margin: 1.2rem auto 2rem; }

.brunch-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem; margin-top: 3rem;
}

.brunch-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(200,151,58,0.3);
  border-radius: 6px; padding: 2.4rem 2rem;
}

.brunch-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem; color: var(--gold);
  margin-bottom: 0.6rem;
}

.brunch-card p {
  font-size: 0.95rem; color: rgba(255,255,255,0.7);
  font-weight: 300; line-height: 1.7;
}

.brunch-note {
  font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(200,151,58,0.6); margin-top: 0.5rem;
}

.gallery-section { padding: 64px 2rem 80px; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.4rem;
}

.gallery-item {
  background: var(--white);
  border-radius: 6px; overflow: hidden;
  box-shadow: 0 2px 16px rgba(43,31,16,0.07);
  transition: transform 0.3s, box-shadow 0.3s;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 32px rgba(43,31,16,0.14);
}

.gallery-item img {
  width: 100%; height: 220px;
  object-fit: cover; display: block;
}

.gallery-caption { padding: 0.9rem 1.1rem 1.1rem; }

.gallery-caption h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1rem; color: var(--dark);
  margin-bottom: 0.2rem;
}

.gallery-caption p {
  font-size: 0.83rem; color: var(--mid);
  font-weight: 300; line-height: 1.5;
}

.vitrine-banner {
  background: linear-gradient(135deg, #2b1f10, #3d2b15);
  border-radius: 6px;
  padding: 2.4rem;
  margin-bottom: 2.4rem;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
  overflow: hidden;
}

.vitrine-banner img {
  width: 100%; height: 180px;
  object-fit: cover; border-radius: 4px;
}

.apero-banner {
  background: linear-gradient(135deg, #2b1f10, #4a3520);
  color: var(--white);
  padding: 3rem 2rem;
  text-align: center;
}

.apero-banner-inner {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
  align-items: center;
}

.apero-info h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem; color: var(--gold);
  margin-bottom: 0.5rem;
}

.apero-info p {
  font-size: 0.92rem; color: rgba(255,255,255,0.7);
  font-weight: 300;
}

.apero-divider {
  width: 1px; height: 80px;
  background: rgba(200,151,58,0.4);
}

.planche-hero {
  width: 100%; max-height: 420px;
  object-fit: cover; border-radius: 6px;
  margin-bottom: 2.4rem; display: block;
  box-shadow: 0 4px 24px rgba(43,31,16,0.12);
}

#contact { background: var(--white); }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

.contact-block h3 {
  font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold); font-weight: 700;
  margin-bottom: 1rem;
}

.contact-block p, .contact-block a {
  font-size: 0.97rem; color: var(--mid);
  font-weight: 300; line-height: 1.8;
  text-decoration: none;
  display: block;
}

.contact-block a:hover { color: var(--gold); }

.contact-block .horaire-saison {
  font-weight: 700; color: var(--dark);
  font-size: 0.82rem; letter-spacing: 0.05em;
  text-transform: uppercase; margin-top: 0.8rem;
}

.map-wrap {
  margin-top: 4rem; border-radius: 6px; overflow: hidden;
  box-shadow: 0 2px 20px rgba(43,31,16,0.08);
}

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

footer {
  background: var(--dark);
  color: rgba(255,255,255,0.4);
  text-align: center; font-size: 0.8rem;
  padding: 1.6rem 2rem;
  letter-spacing: 0.05em;
}

footer strong { color: var(--gold); }

@media (max-width: 800px) {
  .nav-links { display: none; flex-direction: column; gap: 0; }
  .nav-links.open {
    display: flex;
    position: absolute; top: 64px; left: 0; right: 0;
    background: var(--cream);
    border-bottom: 1px solid rgba(200,151,58,0.2);
    padding: 1rem 0;
  }
  .nav-links.open a { padding: 12px 2rem; display: block; }
  .nav-toggle { display: flex; }

  #accueil {
    justify-content: center; align-items: flex-end; padding: 0 2rem 3rem;
    min-height: 100vw; /* hauteur liée à la largeur d'écran, pas à la hauteur de l'appareil */
  }
  #accueil::before {
    background-image: url('images/initial-maison-duvernet-c-fbernard.jpg');
    background-size: cover;
    background-position: 11% center; /* garde Laurent et Corinne visibles tous les deux */
  }
  #accueil::after {
    background: linear-gradient(
      to bottom,
      transparent 0%,
      transparent 45%,
      rgba(26,16,10,0.70) 65%,
      rgba(26,16,10,0.93) 100%
    );
  }
  .hero-inner { max-width: 100%; text-align: center; }

  .hero-subtitle { font-size: 0.85rem; line-height: 1.4; margin-bottom: 0.6rem; }
  .hero-year { font-size: 0.66rem; letter-spacing: 0.12em; margin-bottom: 1.2rem; }
  .hero-cta { padding: 10px 26px; font-size: 0.72rem; }

  .histoire-chapitre { grid-template-columns: 1fr; gap: 2rem; padding: 2.8rem 2rem; }
  .histoire-chapitre--reverse .histoire-img-wrap { order: 0; }
  .histoire-img-wrap { height: 440px; }
  .histoire-num { font-size: 3.5rem; }

  .brunch-cards { grid-template-columns: 1fr; }

  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }

  .vitrine-banner { grid-template-columns: 1fr; }
  .vitrine-banner img { height: 220px; }

  .apero-banner-inner { grid-template-columns: 1fr; }
  .apero-divider { display: none; }
}

@media (max-width: 500px) {
  .hero-subtitle { font-size: 0.78rem; margin-bottom: 0.5rem; }
  .hero-year { font-size: 0.6rem; margin-bottom: 1rem; }
  .hero-cta { padding: 9px 22px; font-size: 0.68rem; }

  .produits-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 0.8rem; }
  .gallery-caption { padding: 0.6rem 0.7rem 0.8rem; }
  .gallery-caption h3 { font-size: 0.88rem; }
}

/* ── Footer lien ── */
footer a {
  color: rgba(255,255,255,0.4);
  text-decoration: underline;
  transition: color 0.2s;
}
footer a:hover { color: var(--gold); }

/* ── Bandeau cookies ── */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--dark);
  padding: 1.4rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  z-index: 9999;
  border-top: 2px solid var(--gold);
  box-shadow: 0 -4px 32px rgba(0,0,0,0.25);
}
.cookie-left { display: flex; align-items: center; gap: 1.2rem; flex: 1; }
.cookie-icon { font-size: 1.6rem; flex-shrink: 0; }
.cookie-text strong {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 0.95rem; color: var(--white);
  margin-bottom: 0.25rem;
}
.cookie-text p {
  font-size: 0.8rem; color: rgba(255,255,255,0.55);
  font-weight: 300; line-height: 1.5; max-width: 560px;
}
.cookie-text a { color: var(--gold); text-decoration: underline; }
.cookie-buttons { display: flex; gap: 0.8rem; flex-shrink: 0; }
.btn-cookie-accept {
  background: var(--gold); color: var(--dark); border: none;
  font-family: 'Lato', sans-serif; font-weight: 700;
  font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 10px 24px; border-radius: 50px;
  cursor: pointer; transition: background 0.2s; white-space: nowrap;
}
.btn-cookie-accept:hover { background: #d4a845; }
.btn-cookie-refuse {
  background: transparent; color: rgba(255,255,255,0.5);
  border: 1px solid rgba(255,255,255,0.2);
  font-family: 'Lato', sans-serif; font-weight: 400;
  font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 10px 20px; border-radius: 50px;
  cursor: pointer; transition: border-color 0.2s, color 0.2s; white-space: nowrap;
}
.btn-cookie-refuse:hover { border-color: rgba(255,255,255,0.5); color: rgba(255,255,255,0.8); }

@media (max-width: 640px) {
  .cookie-banner { flex-direction: column; align-items: flex-start; padding: 1.2rem 1.4rem; }
  .cookie-buttons { width: 100%; }
  .btn-cookie-accept, .btn-cookie-refuse { flex: 1; text-align: center; }
}

/* ── Page mentions légales ── */
.mentions-section { padding: 60px 2rem 80px; }
.mentions-container { max-width: 780px; }
.mentions-block {
  margin-bottom: 3rem; padding-bottom: 3rem;
  border-bottom: 1px solid rgba(200,151,58,0.15);
}
.mentions-block:last-child { border-bottom: none; }
.mentions-block h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem; color: var(--dark); margin-bottom: 1.2rem;
}
.mentions-block h3 {
  font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold); font-weight: 700; margin: 1.4rem 0 0.6rem;
}
.mentions-block p {
  font-size: 0.97rem; color: var(--mid);
  font-weight: 300; line-height: 1.8; margin-bottom: 0.5rem;
}
.mentions-block strong { color: var(--dark); font-weight: 700; }
.mentions-block a { color: var(--gold); }
.cookies-table {
  width: 100%; border-collapse: collapse; margin: 1rem 0 1.2rem; font-size: 0.88rem;
}
.cookies-table th {
  background: var(--warm); color: var(--dark); font-weight: 700;
  text-align: left; padding: 10px 14px;
  font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase;
}
.cookies-table td {
  padding: 10px 14px; border-bottom: 1px solid var(--warm);
  color: var(--mid); font-weight: 300;
}
.btn-reopen-consent {
  margin-top: 1rem; background: transparent;
  border: 1px solid var(--gold); color: var(--gold);
  font-family: 'Lato', sans-serif; font-size: 0.78rem;
  letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700;
  padding: 10px 24px; border-radius: 50px;
  cursor: pointer; transition: background 0.2s, color 0.2s;
}
.btn-reopen-consent:hover { background: var(--gold); color: var(--dark); }