/*
  L'ENTRE 2 & LE MALRAUX — VERSION ÉDITABLE
  Identité : pierre dorée du Périgord
  Ce fichier n'est ni minifié, ni verrouillé, ni obfusqué.
*/

:root {
  --cream: #fffaf0;
  --cream-2: #f7edd9;
  --stone: #e9d5ac;
  --stone-deep: #c79a57;
  --gold: #ad782e;
  --gold-dark: #76501f;
  --ink: #2b241b;
  --ink-soft: #625646;
  --olive: #68704b;
  --olive-dark: #485036;
  --white: #ffffff;
  --line: rgba(117, 80, 31, 0.22);
  --shadow: 0 18px 50px rgba(70, 51, 26, 0.14);
  --radius: 22px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(255,255,255,.95), transparent 26rem),
    linear-gradient(180deg, var(--cream) 0%, #f8efdF 100%);
  font-family: var(--sans);
  line-height: 1.6;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: .16;
  background-image:
    linear-gradient(90deg, rgba(137,96,42,.08) 1px, transparent 1px),
    linear-gradient(rgba(137,96,42,.06) 1px, transparent 1px);
  background-size: 80px 80px;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
address { font-style: normal; }

.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.page { display: none; }
.page.active { display: block; }
.cur, .cur-f { display: none !important; }

/* LANDING */
#landing {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #2d261d;
  transition: opacity .45s ease, visibility .45s ease;
}
#landing.gone { opacity: 0; visibility: hidden; pointer-events: none; }
.land-half { position: relative; min-height: 100vh; overflow: hidden; isolation: isolate; }
.land-half:focus-visible { outline: 4px solid var(--gold); outline-offset: -4px; }
.land-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.02); transition: transform .8s ease; }
#land-malraux .land-bg { background-image: url('photos/malraux-salle.jpg'); }
#land-entre2 .land-bg { background-image: url('photos/entre2-terrasse.jpg'); }
.land-half:hover .land-bg { transform: scale(1.07); }
.land-ov { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(35,28,20,.12), rgba(35,28,20,.76)); }
.land-cnt { position: absolute; inset: auto 9% 9%; color: white; z-index: 2; }
.land-tag, .h-eye, .lbl, .bridge-eyelet { text-transform: uppercase; letter-spacing: .18em; font-size: .76rem; font-weight: 700; }
.land-name { font-family: var(--serif); font-size: clamp(3.8rem, 8vw, 7.2rem); line-height: .78; text-shadow: 0 5px 25px rgba(0,0,0,.3); }
.land-name em, .h-title em, .titre em, .bridge-title em { color: #f2c374; font-weight: 400; }
.land-desc { margin: 1.25rem 0 1.5rem; max-width: 38ch; }
.land-btn { display: inline-flex; border: 1px solid rgba(255,255,255,.75); border-radius: 999px; padding: .75rem 1.25rem; backdrop-filter: blur(8px); }
.land-divider { position: absolute; left: 50%; top: 0; bottom: 0; z-index: 3; width: 1px; background: rgba(255,255,255,.45); }
.land-vs { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%) rotate(-90deg); white-space: nowrap; padding: .5rem 1rem; color: white; background: rgba(34,27,19,.8); border-radius: 999px; font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; }

/* SWITCHER + NAV */
#switcher {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 900;
  display: flex;
  align-items: center;
  gap: .25rem;
  padding: .35rem;
  background: rgba(255,250,240,.94);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(56,43,25,.14);
  backdrop-filter: blur(12px);
}
.sw-half { border: 0; background: transparent; padding: .55rem .85rem; border-radius: 999px; color: var(--ink-soft); display: flex; gap: .5rem; align-items: center; }
.sw-half.active { background: var(--gold); color: white; }
.sw-dot { width: 7px; height: 7px; background: currentColor; border-radius: 50%; }
.sw-divider, .sw-vs { display: none; }

#nav {
  position: fixed;
  left: 0; right: 0; top: 0;
  z-index: 800;
  min-height: 88px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 2rem;
  padding: 0 clamp(20px, 4vw, 70px);
  color: white;
  transition: background .25s ease, box-shadow .25s ease, color .25s ease;
}
#nav.solid { background: rgba(255,250,240,.96); color: var(--ink); box-shadow: 0 10px 35px rgba(62,44,22,.12); backdrop-filter: blur(14px); }
.nav-brand { display: flex; flex-direction: column; line-height: 1.15; width: max-content; }
.nav-name { font-family: var(--serif); font-size: 1.55rem; font-weight: 700; }
.nav-sub { font-size: .67rem; letter-spacing: .1em; text-transform: uppercase; opacity: .8; }
.nav-links { display: flex; gap: 1.3rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { font-size: .86rem; font-weight: 700; }
.nav-links a:hover { color: #e5b45f; }
.nav-tel { padding: .72rem 1rem; border-radius: 999px; background: var(--gold); color: white; font-weight: 800; white-space: nowrap; }
.burger { display: none; width: 44px; height: 44px; border: 1px solid currentColor; color: inherit; background: transparent; border-radius: 50%; padding: 11px; }
.burger span { display: block; height: 2px; background: currentColor; margin: 4px 0; }
.drawer { position: fixed; inset: 0 0 0 auto; width: min(360px, 88vw); z-index: 1100; transform: translateX(100%); transition: transform .3s ease; background: var(--cream); padding: 90px 32px 32px; display: flex; flex-direction: column; gap: 1.25rem; box-shadow: -20px 0 50px rgba(0,0,0,.18); }
.drawer.open { transform: translateX(0); }
.drawer a { font-family: var(--serif); font-size: 1.8rem; }
.drawer-close { position: absolute; right: 22px; top: 22px; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: white; }

/* HERO */
.hero { position: relative; min-height: 100svh; display: grid; place-items: center; text-align: center; color: white; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.02); }
#malraux-hero .hero-bg { background-image: url('photos/malraux-salle.jpg'); }
#entre2-hero .hero-bg { background-image: url('photos/entre2-terrasse.jpg'); }
.hero-ov { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(40,31,22,.25), rgba(45,32,18,.68)); }
.grain { position: absolute; inset: 0; opacity: .12; background-image: radial-gradient(rgba(255,255,255,.8) .6px, transparent .6px); background-size: 5px 5px; }
.hero-cnt { position: relative; z-index: 2; width: min(900px, 90vw); padding-top: 80px; }
.h-eye { color: #f5d79c; }
.h-title { margin: .8rem 0; font-family: var(--serif); font-size: clamp(5rem, 14vw, 10rem); line-height: .72; font-weight: 400; text-shadow: 0 8px 40px rgba(0,0,0,.35); }
.h-sub { margin: 1.3rem 0 0; letter-spacing: .08em; }
.h-orn { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 1.25rem 0; }
.h-orn span { width: 70px; height: 1px; background: rgba(255,255,255,.6); }
.h-orn i { width: 8px; height: 8px; background: #e9b85f; transform: rotate(45deg); }
.h-btns { display: flex; justify-content: center; flex-wrap: wrap; gap: .8rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: .8rem 1.25rem; border-radius: 999px; font-weight: 800; }
.btn-gold { background: var(--gold); color: white; }
.btn-ghost { border: 1px solid rgba(255,255,255,.8); color: white; background: rgba(255,255,255,.08); backdrop-filter: blur(8px); }
.h-scroll { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 2; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; }

/* BANDAU */
.bandeau { display: grid; grid-template-columns: repeat(5,1fr); background: var(--gold-dark); color: white; }
.bi { padding: 1.4rem 1rem; text-align: center; border-right: 1px solid rgba(255,255,255,.18); }
.bi:last-child { border-right: 0; }
.bi-val { font-family: var(--serif); font-size: 1.15rem; }
.bi-lbl { font-size: .72rem; opacity: .72; }

/* SECTIONS */
.about, .carte-s, .gal-s, .infos-s, .cta-s, .bridge-s { padding: clamp(70px, 9vw, 130px) 0; }
.about { background: linear-gradient(180deg, var(--cream), #f9efdd); }
.about-grid { display: grid; grid-template-columns: 1.02fr .98fr; align-items: center; gap: clamp(35px, 7vw, 90px); }
.about-text-first > div:first-child { order: 1; }
.about-text-first .about-imgs { order: 2; }
.about-imgs { position: relative; min-height: 620px; }
.about-main { width: 82%; height: 590px; object-fit: cover; border-radius: 160px 160px 24px 24px; box-shadow: var(--shadow); }
.about-inset { position: absolute; right: 0; bottom: 28px; width: 42%; aspect-ratio: 1; object-fit: cover; border: 9px solid var(--cream); border-radius: 50%; box-shadow: var(--shadow); }
.about-badge { position: absolute; right: 0; top: 30px; z-index: 2; width: 120px; height: 120px; display: grid; place-content: center; text-align: center; border-radius: 50%; color: white; background: var(--olive); box-shadow: var(--shadow); }
.badge-n { font-family: var(--serif); font-size: 2.3rem; line-height: 1; }
.badge-t { font-size: .62rem; text-transform: uppercase; letter-spacing: .08em; padding: 0 10px; }
.lbl { color: var(--gold); }
.titre { margin: .6rem 0 1.2rem; font-family: var(--serif); font-weight: 400; font-size: clamp(2.7rem, 5vw, 5rem); line-height: .98; }
.titre em { color: var(--gold); }
.filet { width: 90px; height: 2px; margin: 1.5rem 0; background: var(--gold); }
.texte { color: var(--ink-soft); max-width: 64ch; }
.feats { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2rem; }
.feat { display: flex; gap: .85rem; align-items: flex-start; padding: 1rem; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.55); }
.feat-icon { font-size: 1.5rem; }
.feat-t { font-weight: 800; }
.feat p { margin: .2rem 0 0; color: var(--ink-soft); font-size: .84rem; }

/* CARTE */
.carte-s { background: #fffdf8; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.carte-head { margin-bottom: 2rem; }
.ctabs { display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem; margin-bottom: 2.5rem; }
.ctab { border: 1px solid var(--line); border-radius: 999px; background: var(--cream); color: var(--ink); padding: .75rem 1rem; font-weight: 800; }
.ctab.on { background: var(--gold); border-color: var(--gold); color: white; }
.cpanel { display: none; }
.cpanel.on { display: block; animation: fadePanel .3s ease; }
@keyframes fadePanel { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.menu-formule { display: flex; align-items: center; gap: 2rem; margin: 0 auto 2.2rem; padding: 1.4rem 1.7rem; border-radius: var(--radius); background: linear-gradient(135deg, var(--gold-dark), #9a682b); color: white; box-shadow: var(--shadow); }
.formule-prix { font-family: var(--serif); font-size: clamp(2.4rem, 5vw, 4.5rem); white-space: nowrap; }
.formule-detail { opacity: .88; }
.menu-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.menu-sect { margin-bottom: 1.8rem; padding: 1.3rem; border-radius: 18px; background: var(--cream); border: 1px solid var(--line); }
.menu-sect-t { margin-bottom: .8rem; padding-bottom: .65rem; border-bottom: 1px solid var(--line); color: var(--gold-dark); font-family: var(--serif); font-size: 1.45rem; font-weight: 700; }
.menu-item { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: .75rem 0; border-bottom: 1px dashed rgba(103,76,42,.18); }
.menu-item:last-child { border-bottom: 0; }
.mi-left { min-width: 0; }
.mi-name { font-weight: 800; }
.mi-desc { color: var(--ink-soft); font-size: .88rem; margin-top: .15rem; }
.mi-price { color: var(--gold-dark); font-weight: 900; white-space: nowrap; }
.menu-note { text-align: center; color: var(--ink-soft); font-size: .86rem; }

/* GALERIE */
.gal-s { background: var(--cream-2); }
.gal-head { margin-bottom: 2rem; }
.gal-grid { width: min(1380px, calc(100% - 28px)); margin: 0 auto; display: grid; grid-auto-rows: 260px; gap: 12px; }
.gal-grid-5 { grid-template-columns: repeat(5,1fr); }
.gal-grid-10 { grid-template-columns: repeat(5,1fr); }
.gi { overflow: hidden; border-radius: 18px; background: var(--stone); box-shadow: 0 8px 25px rgba(68,48,24,.1); }
.gi img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gi:hover img { transform: scale(1.06); }
.gal-grid-10 .ge1, .gal-grid-10 .ge6 { grid-column: span 2; }

/* INFOS */
.infos-s { background: #2d281f; color: white; }
.infos-grid { width: min(1180px, calc(100% - 40px)); margin: 0 auto; display: grid; grid-template-columns: repeat(3,1fr); gap: 2.5rem; }
.info-t { margin-bottom: 1.2rem; color: #efc77d; font-family: var(--serif); font-size: 1.8rem; }
.info-addr, .info-note, .info-email, .hours-note, .info-extras { color: rgba(255,255,255,.72); }
.info-tel-big { display: inline-block; margin: 1rem 0 .2rem; color: #efc77d; font-family: var(--serif); font-size: 2rem; }
.info-email a:hover { color: white; }
.map-wrap { overflow: hidden; border-radius: 18px; margin-top: 1.4rem; height: 250px; }
.map-wrap iframe { width: 100%; height: 100%; border: 0; }
.hours { list-style: none; padding: 0; margin: 0; }
.hours li { display: flex; justify-content: space-between; gap: 1rem; padding: .65rem 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.heure { text-align: right; color: rgba(255,255,255,.75); }
.heure.ferme { color: #dda68e; }
.moyens { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.moyen { font-size: .75rem; padding: .4rem .65rem; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; }
.liens { display: grid; gap: .7rem; }
.lien { display: flex; align-items: center; gap: .8rem; padding: .85rem; border: 1px solid rgba(255,255,255,.14); border-radius: 14px; background: rgba(255,255,255,.04); }
.lien:hover { background: rgba(255,255,255,.09); }
.lien-icon { width: 34px; height: 34px; display: grid; place-content: center; border-radius: 50%; background: var(--gold); }
.info-extras { margin-top: 1rem; font-size: .88rem; }

/* CTA + BRIDGE */
.cta-s { background: linear-gradient(135deg, #f8e8c8, var(--cream)); text-align: center; }
.cta-inner { width: min(850px, calc(100% - 40px)); margin: 0 auto; }
.cta-tel-wrap { margin-top: 2rem; display: grid; justify-items: center; gap: .25rem; }
.cta-tel-lbl, .cta-sub { color: var(--ink-soft); }
.cta-tel-num { font-family: var(--serif); font-size: clamp(2.5rem, 7vw, 5.5rem); color: var(--gold-dark); line-height: 1; }
.bridge-s { background: #efe0c4; }
.bridge-inner { width: min(900px, calc(100% - 40px)); margin: 0 auto; text-align: center; }
.bridge-title { font-family: var(--serif); font-size: clamp(2.3rem, 5vw, 4.7rem); line-height: 1.05; margin: .6rem 0 1.8rem; }
.bridge-card { width: min(520px, 100%); padding: 1.4rem; border: 1px solid var(--line); border-radius: 20px; color: var(--ink); background: rgba(255,255,255,.72); box-shadow: var(--shadow); }
.bridge-card-label { color: var(--gold); text-transform: uppercase; letter-spacing: .16em; font-size: .7rem; }
.bridge-card-name { font-family: var(--serif); font-size: 2.4rem; }
.bridge-card-sub { color: var(--ink-soft); }

/* FOOTER */
footer { padding: 65px clamp(20px,5vw,75px) 22px; background: #211d17; color: white; }
.f-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; max-width: 1180px; margin: 0 auto; }
.f-logo { display: block; font-family: var(--serif); font-size: 2.7rem; color: #efc77d; }
.f-sub { font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; color: rgba(255,255,255,.62); }
.f-bio, .f-col p { color: rgba(255,255,255,.65); }
.f-col h5 { color: #efc77d; font-family: var(--serif); font-size: 1.2rem; margin-top: 0; }
.f-col ul { list-style: none; padding: 0; }
.f-col li { margin-bottom: .45rem; }
.f-bottom { max-width: 1180px; margin: 2.5rem auto 0; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.f-copy { color: rgba(255,255,255,.45); font-size: .78rem; }
.f-socials { display: flex; gap: .5rem; }
.f-soc { width: 38px; height: 38px; display: grid; place-content: center; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; }

/* REVEAL */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .65s ease, transform .65s ease; }
.reveal.in { opacity: 1; transform: none; }
.d1 { transition-delay: .08s; }
.d2 { transition-delay: .16s; }

/* RESPONSIVE */
@media (max-width: 1000px) {
  #nav { grid-template-columns: 1fr auto; }
  .nav-links, .nav-tel { display: none; }
  .burger { display: block; }
  .about-grid { grid-template-columns: 1fr; }
  .about-text-first > div:first-child, .about-text-first .about-imgs { order: initial; }
  .about-imgs { min-height: 560px; width: min(700px,100%); margin: 0 auto; }
  .about-main { height: 530px; }
  .bandeau { grid-template-columns: repeat(3,1fr); }
  .bi:nth-child(n+4) { border-top: 1px solid rgba(255,255,255,.18); }
  .menu-cols { grid-template-columns: 1fr; gap: 0; }
  .infos-grid { grid-template-columns: 1fr 1fr; }
  .infos-grid > div:last-child { grid-column: 1 / -1; }
  .gal-grid-5, .gal-grid-10 { grid-template-columns: repeat(3,1fr); }
  .f-grid { grid-template-columns: 1.5fr 1fr; }
  .f-grid > div:last-child { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
  #landing { grid-template-columns: 1fr; grid-template-rows: 1fr 1fr; }
  .land-half { min-height: 50vh; }
  .land-cnt { inset: auto 7% 8%; }
  .land-name { font-size: clamp(3.1rem, 14vw, 5rem); }
  .land-desc { margin: .6rem 0 .8rem; font-size: .85rem; }
  .land-divider { left: 0; right: 0; top: 50%; bottom: auto; width: 100%; height: 1px; }
  .land-vs { top: 50%; transform: translate(-50%,-50%); }
  #switcher { top: auto; bottom: 14px; }
  #nav { min-height: 72px; padding: 0 18px; }
  .nav-name { font-size: 1.25rem; }
  .nav-sub { display: none; }
  .hero-cnt { padding-top: 30px; }
  .h-title { font-size: clamp(4.5rem, 25vw, 7rem); }
  .h-btns { flex-direction: column; align-items: center; }
  .btn { width: min(320px,100%); }
  .bandeau { grid-template-columns: 1fr 1fr; }
  .bi:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.18); }
  .bi:last-child { grid-column: 1 / -1; }
  .about, .carte-s, .gal-s, .infos-s, .cta-s, .bridge-s { padding: 70px 0; }
  .about-imgs { min-height: 430px; }
  .about-main { width: 88%; height: 410px; border-radius: 90px 90px 22px 22px; }
  .about-inset { width: 40%; border-width: 6px; }
  .about-badge { width: 96px; height: 96px; }
  .feats { grid-template-columns: 1fr; }
  .menu-formule { align-items: flex-start; flex-direction: column; gap: .4rem; }
  .ctabs { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding-bottom: .5rem; }
  .ctab { flex: 0 0 auto; }
  .gal-grid-5, .gal-grid-10 { grid-template-columns: 1fr 1fr; grid-auto-rows: 200px; }
  .gal-grid-10 .ge1, .gal-grid-10 .ge6 { grid-column: span 1; }
  .infos-grid { grid-template-columns: 1fr; }
  .infos-grid > div:last-child { grid-column: auto; }
  .f-grid { grid-template-columns: 1fr; }
  .f-grid > div:last-child { grid-column: auto; }
  .f-bottom { flex-direction: column; align-items: flex-start; padding-bottom: 70px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
