/* =========================================================
   Les Insolents - Uzes : maquette bespoke (Timy Studio)
   Identite raccord a LEUR marque (Instagram + logo) :
   clair & joueur. Navy + orange corail + bleu cobalt
   (extraits de leur logo). Polices rondes + manuscrite.
   ========================================================= */

:root {
  /* Clair, chaud (pierre d'Uzes / fond IG blanc) */
  --paper:    #FAF5EC;
  --paper-2:  #F2E9DA;
  --card:     #FFFFFF;

  /* Encre = leur navy (la figure du logo) */
  --ink:      #11173A;
  --ink-2:    #2C355F;
  --ink-soft: #5A6385;

  /* Orange corail (leur "WINE") */
  --orange:      #EF8A4E;
  --orange-deep: #DE6F2F;
  --orange-soft: rgba(239, 138, 78, 0.16);

  /* Bleu manuscrit (leur "Les insolents" du logo) */
  --blue:      #265084;
  --blue-deep: #1B3A60;
  --blue-soft: rgba(38, 80, 132, 0.10);

  /* Marine profond = leur auvent / enseigne (la vraie ancre de marque) */
  --navy:      #15193A;
  --navy-2:    #1C2150;

  --line:   rgba(17, 23, 58, 0.12);
  --line-2: rgba(17, 23, 58, 0.20);

  --display: 'Fredoka', system-ui, sans-serif;   /* rond, gras (echo "WINE") */
  --script:  'Caveat', cursive;                  /* manuscrit (echo "Les insolents") */
  --body:    'Manrope', system-ui, sans-serif;

  --r-sm: 10px;
  --r:    16px;
  --r-lg: 26px;

  --wrap: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

body {
  font-family: var(--body);
  background-color: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }

h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.05; letter-spacing: -0.01em; color: var(--ink); }

.script { font-family: var(--script); font-weight: 700; color: var(--blue); line-height: 0.9; }

.eyebrow {
  display: inline-block;
  font-family: var(--script);
  font-weight: 700;
  font-size: 1.55rem;
  color: var(--blue);
  line-height: 1;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5em;
  font-family: var(--body); font-weight: 700; font-size: 1rem;
  padding: 0.92em 1.7em;
  border-radius: 999px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease), color 0.25s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-orange { background: var(--orange); color: var(--ink); box-shadow: 0 14px 28px -14px rgba(239,138,78,0.85); }
.btn-orange:hover { background: var(--orange-deep); color: #fff; transform: translateY(-2px); box-shadow: 0 20px 34px -16px rgba(222,111,47,0.9); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); transform: translateY(-2px); }
.btn-light { background: rgba(255,255,255,0.12); color: #fff; border-color: rgba(255,255,255,0.45); }
.btn-light:hover { background: #fff; color: var(--blue-deep); border-color: #fff; transform: translateY(-2px); }
.btn .arr { display: inline-block; transition: transform 0.25s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }

/* ---------- Bandeau maquette (marqueur demo) ---------- */
.pitch {
  display: flex; align-items: center; justify-content: center; gap: 0.7em;
  background: var(--ink);
  color: rgba(250,245,236,0.85);
  font-size: 0.83rem; font-weight: 500; text-align: center;
  padding: 0.6em 1.2em;
}
.pitch b { color: #fff; font-weight: 700; }
.pitch-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 0 rgba(239,138,78,0.7); animation: pulse 2.4s infinite; flex: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(239,138,78,0.6);} 70% { box-shadow: 0 0 0 9px rgba(239,138,78,0);} 100% { box-shadow: 0 0 0 0 rgba(239,138,78,0);} }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(250, 245, 236, 0.88); backdrop-filter: blur(12px); border-bottom-color: var(--line); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 0.5em; text-decoration: none; }
.brand-mark { width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--orange); position: relative; }
.brand-mark::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; border: 2px solid var(--ink); }
.brand-name { font-family: var(--script); font-weight: 700; font-size: 1.85rem; color: var(--blue); line-height: 1; }
.nav-mid { display: flex; gap: 30px; }
.nav-mid a { text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: 0.95rem; position: relative; padding: 4px 0; transition: color 0.2s var(--ease); }
.nav-mid a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--orange); transition: width 0.3s var(--ease); }
.nav-mid a:hover { color: var(--ink); }
.nav-mid a:hover::after { width: 100%; }
.nav-right { display: flex; align-items: center; gap: 18px; }
.nav-tel { text-decoration: none; font-family: var(--display); font-weight: 600; font-size: 1.02rem; color: var(--ink); white-space: nowrap; }
.nav-tel:hover { color: var(--orange-deep); }

/* ---------- Hero (split clair : marque a gauche, photo a droite) ---------- */
.hero { padding: clamp(28px, 5vw, 64px) 0 clamp(48px, 6vw, 84px); }
.hero-in { display: grid; grid-template-columns: 1.02fr 0.98fr; gap: clamp(32px, 5vw, 70px); align-items: center; }
.hero-logo { width: clamp(120px, 16vw, 190px); height: auto; mix-blend-mode: multiply; margin-bottom: 0.4rem; }
.hero h1 { font-size: clamp(2.7rem, 6vw, 4.6rem); font-weight: 600; letter-spacing: -0.02em; margin: 0.1em 0 0.35em; max-width: 14ch; }
.hero h1 .u { color: var(--orange); }
.hero-lede { font-size: clamp(1.08rem, 1.7vw, 1.3rem); color: var(--ink-2); max-width: 40ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 1.9rem; }
.hero-photo { position: relative; }
.hero-photo .ph { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4/5; border: 1px solid var(--line); box-shadow: 0 50px 90px -50px rgba(17,23,58,0.5); }
.hero-photo .ph img { width: 100%; height: 108%; object-fit: cover; will-change: transform; }
.hero-photo .ph-chip {
  position: absolute; left: -18px; bottom: 28px;
  background: var(--blue); color: #fff; border-radius: var(--r);
  padding: 13px 18px; box-shadow: 0 22px 44px -22px rgba(30,62,110,0.7);
  display: flex; align-items: center; gap: 0.5em;
}
.hero-photo .ph-chip .n { font-family: var(--display); font-weight: 600; font-size: 1.5rem; line-height: 1; }
.hero-photo .ph-chip .t { font-size: 0.78rem; line-height: 1.2; color: rgba(255,255,255,0.85); }
.hero-photo .ph-chip .star { color: var(--orange); }

/* ---------- Bande de faits ---------- */
.facts { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts-in { display: grid; grid-template-columns: repeat(4, 1fr); }
.fact { padding: 28px 24px; display: flex; flex-direction: column; gap: 3px; border-left: 1px solid var(--line); }
.fact:first-child { border-left: none; }
.fact strong { font-family: var(--display); font-weight: 600; font-size: 1.7rem; color: var(--ink); }
.fact strong .star { color: var(--orange); }
.fact span { font-size: 0.86rem; color: var(--ink-soft); }

/* ---------- Sections ---------- */
section.maison, section.carte, section.lieu { padding: clamp(72px, 9vw, 128px) 0; }
.sec-head { max-width: 24ch; margin-bottom: clamp(32px, 4vw, 54px); }
.sec-head .eyebrow { margin-bottom: 0.3em; }
.sec-head h2 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
.sec-head p { margin-top: 0.6em; font-size: 1.1rem; color: var(--ink-2); max-width: 46ch; }

/* ---------- La maison (split) ---------- */
.maison-grid { display: grid; grid-template-columns: 1.02fr 0.98fr; gap: clamp(34px, 5vw, 76px); align-items: center; }
.maison-text .eyebrow { margin-bottom: 0.3em; }
.maison-text h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
.maison-text .lede { margin-top: 0.7em; font-size: 1.18rem; color: var(--ink); max-width: 44ch; }
.maison-text p.sub { margin-top: 0.9em; color: var(--ink-2); max-width: 46ch; }
.maison-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.7rem; }
.maison-tags li { font-size: 0.85rem; font-weight: 700; color: var(--blue); background: var(--blue-soft); border-radius: 999px; padding: 0.45em 1.05em; }
.maison-photo { position: relative; }
.maison-photo .ph-main { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4/5; border: 1px solid var(--line); box-shadow: 0 46px 84px -48px rgba(17,23,58,0.45); }
.maison-photo .ph-main img { width: 100%; height: 110%; object-fit: cover; will-change: transform; }
.maison-photo .ph-badge {
  position: absolute; right: -16px; bottom: 30px;
  background: var(--orange); color: var(--ink);
  border-radius: var(--r); padding: 15px 19px; max-width: 190px;
  box-shadow: 0 22px 44px -22px rgba(239,138,78,0.7);
}
.maison-photo .ph-badge strong { font-family: var(--display); font-weight: 600; font-size: 1.5rem; display: block; line-height: 1; }
.maison-photo .ph-badge span { font-size: 0.8rem; font-weight: 600; }

/* ---------- La carte (galerie portrait) ---------- */
.carte { background: var(--card); }
.carte-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 1fr; gap: 16px; grid-auto-flow: dense; }
.g-cell { cursor: pointer; margin: 0; overflow: hidden; border-radius: var(--r); border: 1px solid var(--line); position: relative; aspect-ratio: 3/4; }
.g-cell img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.g-cell:hover img { transform: scale(1.06); }
.g-cell::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 62%, rgba(17,23,58,0.42)); opacity: 0; transition: opacity 0.4s var(--ease); }
.g-cell:hover::after { opacity: 1; }
.g-feature { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.carte-foot { margin-top: clamp(26px, 4vw, 44px); display: flex; align-items: center; gap: 0.6em; color: var(--ink-2); font-size: 0.95rem; }
.carte-foot a { color: var(--blue); text-decoration: none; font-weight: 700; }
.carte-foot a:hover { color: var(--blue-deep); }

/* ---------- Avis (bande marine = leur auvent, vrais avis Google) ---------- */
.avis { background: var(--navy); color: #fff; padding: clamp(66px, 8vw, 116px) 0; }
.avis-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: clamp(34px, 4vw, 54px); }
.avis-top h2 { color: #fff; font-size: clamp(2.1rem, 4.4vw, 3.3rem); }
.avis-top .lead-script { font-family: var(--script); font-weight: 700; font-size: 2rem; color: var(--orange); line-height: 1; margin-bottom: 0.1em; }
.avis-rate { text-align: right; }
.avis-rate .stars { position: relative; display: inline-block; font-size: 1.3rem; line-height: 1; }
.avis-rate .stars .s-bg { color: rgba(255, 255, 255, 0.26); }
.avis-rate .stars .s-fg { position: absolute; left: 0; top: 0; color: var(--orange); white-space: nowrap; overflow: hidden; } /* width = note/5 : 4,7/5 = 94% (5e etoile a 70%) */
.avis-rate .meta { display: block; margin-top: 0.3em; font-size: 0.9rem; color: rgba(255,255,255,0.7); }
.avis-rate .meta a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.avis-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 22px; }
.avis blockquote { background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.16); border-radius: var(--r-lg); padding: clamp(28px, 3vw, 40px); display: flex; flex-direction: column; justify-content: space-between; }
.avis blockquote p { font-family: var(--display); font-weight: 500; font-size: clamp(1.3rem, 2.3vw, 1.85rem); line-height: 1.34; color: #fff; }
.avis cite { display: block; margin-top: 1.5rem; font-style: normal; font-family: var(--body); font-weight: 700; font-size: 0.98rem; }
.avis cite span { display: block; font-weight: 500; font-size: 0.83rem; color: rgba(255,255,255,0.65); margin-top: 0.2em; }

/* ---------- Le lieu (contact) ---------- */
.lieu-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(36px, 5vw, 76px); align-items: start; }
.lieu-info .eyebrow { margin-bottom: 0.2em; }
.lieu-info h2 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); }
.lieu-tel { display: inline-block; margin-top: 1.2rem; font-family: var(--display); font-weight: 600; font-size: clamp(2rem, 4.4vw, 2.8rem); color: var(--orange-deep); text-decoration: none; letter-spacing: -0.01em; }
.lieu-tel:hover { color: var(--orange); }
.lieu-sub { margin-top: 0.4rem; color: var(--ink-soft); font-size: 0.95rem; }
.lieu-cta { margin-top: 1.6rem; display: flex; flex-wrap: wrap; gap: 12px; }
.lieu-meta { margin-top: 1.9rem; display: grid; }
.lieu-meta > div { display: grid; grid-template-columns: 120px 1fr; gap: 1rem; padding: 1rem 0; border-top: 1px solid var(--line); }
.lieu-meta dt { font-size: 0.76rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); padding-top: 0.2em; }
.lieu-meta dd { color: var(--ink-2); }
.lieu-meta dd b { color: var(--ink); font-weight: 700; }
.hours-row { display: flex; justify-content: space-between; gap: 1rem; max-width: 330px; }
.hours-row.closed { color: var(--ink-soft); }
.lieu-aside .ph-place { border-radius: var(--r-lg) var(--r-lg) 0 0; overflow: hidden; border: 1px solid var(--line); border-bottom: none; aspect-ratio: 16/10; cursor: pointer; }
.lieu-aside .ph-place img { width: 100%; height: 100%; object-fit: cover; }
.lieu-aside .map { border-radius: 0 0 var(--r-lg) var(--r-lg); overflow: hidden; border: 1px solid var(--line); height: 300px; }
.lieu-aside .map iframe { width: 100%; height: 100%; border: 0; }
.gmaps { display: inline-flex; align-items: center; gap: 0.45em; margin-top: 1rem; font-weight: 700; color: var(--blue); text-decoration: none; }
.gmaps:hover { color: var(--blue-deep); }

/* ---------- Footer ---------- */
.foot { background: var(--ink); color: var(--paper); padding: 52px 0 38px; }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.foot-brand { display: flex; align-items: center; gap: 0.7em; }
.foot-brand .brand-name { font-size: 1.7rem; color: #fff; }
.foot-brand span { display: block; font-size: 0.84rem; color: rgba(250,245,236,0.6); font-family: var(--body); }
.foot-links { display: flex; flex-wrap: wrap; gap: 22px; }
.foot-links a { color: rgba(250,245,236,0.82); text-decoration: none; font-size: 0.92rem; font-weight: 500; }
.foot-links a:hover { color: #fff; }
.foot-cred { width: 100%; margin-top: 26px; padding-top: 22px; border-top: 1px solid rgba(250,245,236,0.14); font-size: 0.82rem; color: rgba(250,245,236,0.55); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.foot-cred a { color: var(--orange); text-decoration: none; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(13,16,38,0.94); display: none; align-items: center; justify-content: center; padding: 5vh 6vw; }
.lightbox.open { display: flex; }
.lb-img { max-width: 88vw; max-height: 86vh; object-fit: contain; border-radius: 10px; box-shadow: 0 40px 90px rgba(0,0,0,0.6); }
.lb-close, .lb-nav { position: absolute; background: rgba(255,255,255,0.12); color: #fff; border: 1px solid rgba(255,255,255,0.3); border-radius: 50%; width: 50px; height: 50px; font-size: 1.6rem; line-height: 1; cursor: pointer; display: grid; place-items: center; transition: background 0.2s var(--ease); }
.lb-close:hover, .lb-nav:hover { background: rgba(255,255,255,0.24); }
.lb-close { top: 4vh; right: 5vw; }
.lb-prev { left: 3vw; top: 50%; transform: translateY(-50%); }
.lb-next { right: 3vw; top: 50%; transform: translateY(-50%); }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); }
.js .reveal.is-in { opacity: 1; transform: none; transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-in { grid-template-columns: 1fr; }
  .hero-photo { max-width: 480px; order: -1; }
  .maison-grid { grid-template-columns: 1fr; }
  .maison-photo { max-width: 470px; }
  .lieu-grid { grid-template-columns: 1fr; }
  .avis-grid { grid-template-columns: 1fr; }
  .facts-in { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(3) { border-left: none; }
  .carte-grid { grid-template-columns: repeat(2, 1fr); }
  .g-feature { grid-column: span 2; grid-row: span 2; }
}
@media (max-width: 760px) {
  .nav-mid { display: none; }
  .nav-tel { display: none; }
}
@media (max-width: 520px) {
  .facts-in { grid-template-columns: 1fr 1fr; }
  .fact:nth-child(3) { border-left: 1px solid var(--line); }
  .carte-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .g-feature { grid-column: span 2; grid-row: span 1; aspect-ratio: 3/4; }
  .lb-nav, .lb-close { width: 42px; height: 42px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .pitch-dot { animation: none; }
  .g-cell img, .maison-photo img, .hero-photo img { transition: none; }
}
