/* Club CHAHIFAD · Démo DAKISS · Direction Lumière */
:root {
  --cream: #F7F1E6;
  --cream-2: #EFE6D4;
  --ink: #152A1F;
  --ink-soft: #3D5247;
  --terra: #C2591F;
  --terra-deep: #A84A17;
  --gold: #A8801F;
  --st-g: #1E4D3B;
  --st-r: #A6371F;
  --st-o: #D9A441;
  --wa: #1FA855;
  --line: rgba(21, 42, 31, 0.13);
  --shadow: 0 18px 44px rgba(21, 42, 31, 0.14);
  --max: 1280px;
  --font: "Outfit", system-ui, sans-serif;
  --display: "Fraunces", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--cream); color: var(--ink); font-family: var(--font); font-weight: 300; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; display: block; }
.card img, .flyers img, .gallery img { width: 100%; }
a { color: inherit; }

/* Bandes */
.fdf { height: 6px; background: repeating-linear-gradient(90deg, var(--st-g) 0 42px, var(--cream) 42px 48px, var(--st-r) 48px 90px, var(--cream) 90px 96px, var(--st-o) 96px 138px, var(--cream) 138px 144px); }
.banner { background: var(--ink); color: var(--cream); text-align: center; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; padding: 9px 16px; font-weight: 400; }
.banner b { color: #E9C982; font-weight: 600; }

/* Navigation */
.nav { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 48px; background: rgba(247, 241, 230, 0.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 13px; text-decoration: none; }
.brand img { height: 44px; width: 44px; object-fit: contain; background: #fff; border-radius: 50%; padding: 3px; border: 1px solid var(--line); }
.brand-n { display: block; font-family: var(--display); font-weight: 600; font-size: 18px; line-height: 1.2; }
.brand-p { display: block; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); }
.links { display: flex; gap: 30px; font-size: 14.5px; color: var(--ink-soft); font-weight: 400; }
.links a { text-decoration: none; }
.links a:hover { color: var(--terra); }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.navcta { background: var(--ink); color: var(--cream); padding: 11px 24px; border-radius: 100px; font-size: 14px; font-weight: 500; text-decoration: none; }
.navcta:hover { background: var(--terra); }
.burger { display: none; background: none; border: none; width: 40px; height: 40px; cursor: pointer; }
.burger span { display: block; height: 2px; background: var(--ink); margin: 6px 8px; transition: transform .25s; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; padding: 64px 48px 76px; max-width: var(--max); margin: 0 auto; align-items: center; }
.kicker { display: flex; align-items: center; gap: 14px; font-size: 12px; letter-spacing: .26em; text-transform: uppercase; color: var(--terra-deep); font-weight: 500; margin-bottom: 22px; }
.kicker::before { content: ""; width: 44px; height: 1px; background: var(--terra-deep); flex: none; }
h1 { font-family: var(--display); font-weight: 400; font-size: clamp(44px, 5.4vw, 80px); line-height: 1.03; letter-spacing: -.015em; }
h1 em, h2 em { font-style: italic; color: var(--terra); font-weight: 340; }
.sub { margin-top: 26px; font-size: 17.5px; line-height: 1.65; color: var(--ink-soft); max-width: 520px; }
.ctas { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 36px; align-items: center; }
.cta1 { display: inline-block; background: var(--terra-deep); color: #FFF6E9; padding: 17px 32px; border-radius: 100px; text-decoration: none; font-weight: 500; font-size: 15.5px; border: none; cursor: pointer; box-shadow: 0 14px 30px rgba(168, 74, 23, 0.28); transition: background .2s, transform .2s; }
.cta1:hover { background: #8F3D12; transform: translateY(-1px); }
.cta1.full { width: 100%; text-align: center; font-size: 16px; }
.cta2 { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15.5px; border-bottom: 1.5px solid var(--gold); padding-bottom: 3px; }
.proof { display: flex; gap: 34px; margin-top: 48px; padding-top: 26px; border-top: 1px solid var(--line); }
.proof b { display: block; font-family: var(--display); font-size: 25px; font-weight: 500; }
.proof span { font-size: 12.5px; color: var(--ink-soft); letter-spacing: .04em; }
.hero-visual { position: relative; }
.arch { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 300px 300px 22px 22px; }
.tag { position: absolute; left: -22px; bottom: 40px; background: var(--cream); border: 1px solid var(--line); border-radius: 15px; padding: 14px 20px; box-shadow: var(--shadow); }
.tag .t1 { display: block; font-family: var(--display); font-style: italic; font-size: 16px; }
.tag .t2 { display: block; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--terra-deep); margin-top: 4px; }

/* Bande "réparé" */
.fixstrip { background: var(--ink); color: var(--cream); }
.fixstrip-in { max-width: var(--max); margin: 0 auto; padding: 26px 48px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 36px; }
.fix-lead { font-family: var(--display); font-style: italic; font-size: 17px; color: #E9C982; }
.fixstrip ul { display: flex; flex-wrap: wrap; gap: 10px 32px; list-style: none; }
.fixstrip li { font-size: 14px; color: rgba(247, 241, 230, 0.85); }
.fixstrip li b { color: var(--cream); font-weight: 500; }

/* Bande éditoriale pleine largeur */
.pull { position: relative; background: url("../assets/images/about/piscine.webp") center 65% / cover no-repeat; }
.pull::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(21,42,31,.55), rgba(21,42,31,.72)); }
.pull-in { position: relative; max-width: var(--max); margin: 0 auto; padding: 110px 48px; text-align: center; color: #F4EEDF; }
.pull-line { font-family: var(--display); font-weight: 400; font-size: clamp(30px, 4vw, 56px); line-height: 1.1; }
.pull-line em { font-style: italic; color: #E9C982; }
.pull-k { margin-top: 16px; font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: rgba(244,238,223,.75); }

/* Sections */
.section { max-width: var(--max); margin: 0 auto; padding: 84px 48px; }
section[id] { scroll-margin-top: 92px; }
.section-alt { max-width: none; background: var(--cream-2); }
.section-alt > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.section-head { margin-bottom: 46px; }
h2 { font-family: var(--display); font-weight: 400; font-size: clamp(32px, 3.6vw, 52px); line-height: 1.08; letter-spacing: -.01em; }
.section-sub { margin-top: 16px; font-size: 16.5px; color: var(--ink-soft); max-width: 640px; }

/* Univers */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.card img { aspect-ratio: 3 / 4; object-fit: cover; border-radius: 160px 160px 18px 18px; margin-bottom: 18px; transition: transform .3s; }
.card:hover img { transform: translateY(-4px); }
.card h3 { font-family: var(--display); font-weight: 500; font-size: 21px; margin-bottom: 8px; }
.card p { font-size: 14.5px; color: var(--ink-soft); }

/* Événements (affiches) */
.section-alt { padding: 84px 48px; }
.flyers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.flyers figure { background: var(--cream); border: 1px solid var(--line); border-radius: 16px; padding: 12px; box-shadow: var(--shadow); transition: transform .3s; }
.flyers figure:nth-child(odd) { transform: rotate(-1.2deg); }
.flyers figure:nth-child(even) { transform: rotate(1.2deg); }
.flyers figure:hover { transform: rotate(0) translateY(-4px); }
.flyers img { aspect-ratio: 4 / 5; object-fit: cover; border-radius: 10px; }
.flyers figcaption { padding: 12px 6px 4px; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); text-align: center; }

/* Galerie mosaïque */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-flow: dense; gap: 14px; }
.gallery img { width: 100%; height: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 14px; transition: transform .3s; }
.gallery img:nth-child(1) { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; border-radius: 160px 14px 14px 14px; }
.gallery img:nth-child(8) { grid-column: span 2; aspect-ratio: auto; }
.gallery img:nth-child(12) { border-radius: 14px 14px 120px 14px; }
.gallery img:hover { transform: scale(1.02); }

/* Réservation */
.resa { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: start; }
.resa-alt { list-style: none; margin-top: 22px; display: grid; gap: 10px; font-size: 15px; color: var(--ink-soft); }
.resa-alt a { color: var(--terra-deep); font-weight: 500; text-decoration: none; border-bottom: 1px solid rgba(168, 74, 23, .4); }
.resa-cal { margin-top: 18px; font-size: 15px; }
.resa-cal a { color: var(--terra); font-weight: 500; }
.resa-form { background: var(--cream); border: 1px solid var(--line); border-radius: 22px; padding: 34px; box-shadow: var(--shadow); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; margin-bottom: 24px; }
.resa-form label { display: grid; gap: 7px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); font-weight: 500; }
.resa-form label.wide { grid-column: 1 / -1; }
.resa-form input, .resa-form select { font-family: var(--font); font-size: 15.5px; color: var(--ink); background: #FFFDF8; border: 1px solid var(--line); border-radius: 12px; padding: 13px 14px; width: 100%; }
.resa-form input:focus, .resa-form select:focus { outline: 2px solid var(--terra); outline-offset: 1px; border-color: transparent; }
.form-note { margin-top: 14px; font-size: 13px; color: var(--ink-soft); text-align: center; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.ccard { display: grid; gap: 6px; background: var(--cream-2); border: 1px solid var(--line); border-radius: 18px; padding: 26px 24px; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.ccard:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.ck { font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--terra-deep); font-weight: 600; }
.cv { font-family: var(--display); font-size: 20px; font-weight: 500; }
.ch { font-size: 13px; color: var(--ink-soft); }
.where { margin-top: 34px; font-size: 15px; color: var(--ink-soft); }
.where a { color: var(--terra); font-weight: 500; }

/* Pied de page */
footer { background: var(--cream); }
.foot-in { max-width: var(--max); margin: 0 auto; padding: 40px 48px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.foot-note { font-size: 13.5px; color: var(--ink-soft); }
.foot-note b { font-weight: 600; color: var(--ink); }

/* Bouton WhatsApp flottant */
.wafab { position: fixed; right: 22px; bottom: 22px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: var(--wa); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 14px 30px rgba(31, 168, 85, 0.4); transition: transform .2s; }
.wafab:hover { transform: scale(1.06); }

/* Cartes univers cliquables */
html.js .card { cursor: pointer; }
.card { display: flex; flex-direction: column; align-items: flex-start; }
.card p { margin-bottom: 14px; }
.card-more { margin-top: auto; background: none; border: none; padding: 0 0 2px; font-family: inherit; font-size: 13.5px; font-weight: 600; color: var(--terra-deep); letter-spacing: .04em; cursor: pointer; border-bottom: 1.5px solid rgba(168, 74, 23, .35); }
.card:hover .card-more { border-bottom-color: var(--terra-deep); }
html:not(.js) .card-more { display: none; }

/* Visionneuse d'images (galerie + affiches) */
body.lock { overflow: hidden; }
.lb { position: fixed; inset: 0; z-index: 200; background: rgba(10, 16, 12, .93); display: flex; align-items: center; justify-content: center; }
.lb[hidden] { display: none; }
.lb-fig { max-width: min(92vw, 1100px); max-height: 86vh; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.lb-fig img { max-width: 100%; max-height: 78vh; object-fit: contain; border-radius: 12px; }
.lb-fig figcaption { color: rgba(244, 238, 223, .8); font-size: 13px; letter-spacing: .06em; }
.lb-x { position: absolute; top: 18px; right: 20px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(244,238,223,.35); background: rgba(21,42,31,.5); color: #F4EEDF; font-size: 26px; line-height: 1; cursor: pointer; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(244,238,223,.35); background: rgba(21,42,31,.5); color: #F4EEDF; font-size: 19px; cursor: pointer; transition: background .2s; }
.lb-nav:hover, .lb-x:hover { background: var(--terra-deep); border-color: var(--terra-deep); }
.lb-prev { left: 18px; }
.lb-next { right: 18px; }
.lb-count { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: rgba(244,238,223,.65); font-size: 12.5px; letter-spacing: .18em; }

/* Panneau univers */
.uv { position: fixed; inset: 0; z-index: 190; background: rgba(21, 42, 31, .55); display: flex; align-items: center; justify-content: center; padding: 20px; }
.uv[hidden] { display: none; }
.uv-panel { position: relative; background: var(--cream); border-radius: 24px; max-width: 620px; width: 100%; max-height: 88vh; overflow-y: auto; box-shadow: 0 32px 80px rgba(10, 16, 12, .4); }
.uv-panel > img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; border-radius: 24px 24px 0 0; }
.uv-body { padding: 26px 30px 30px; }
.uv-body h3 { font-family: var(--display); font-weight: 500; font-size: clamp(24px, 3.4vw, 32px); margin-bottom: 10px; }
.uv-text { color: var(--ink-soft); line-height: 1.65; font-size: 15.5px; margin-bottom: 16px; }
.uv-list { list-style: none; display: grid; gap: 8px; margin-bottom: 22px; }
.uv-list li { position: relative; padding-left: 26px; font-size: 14.5px; color: var(--ink-soft); }
.uv-list li::before { content: "\2713"; position: absolute; left: 0; top: 0; width: 18px; height: 18px; border-radius: 50%; background: #1E4D3B; color: #F4EEDF; font-size: 10.5px; display: flex; align-items: center; justify-content: center; }
.uv-x { position: absolute; top: 14px; right: 14px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: none; background: rgba(21,42,31,.55); color: #F4EEDF; font-size: 22px; line-height: 1; cursor: pointer; backdrop-filter: blur(4px); }
.uv-x:hover { background: var(--terra-deep); }
.uv-cta { font-size: 14.5px; padding: 14px 26px; }
@media (prefers-reduced-motion: no-preference) {
  .lb:not([hidden]), .uv:not([hidden]) { animation: ov-in .22s ease; }
  .uv:not([hidden]) .uv-panel { animation: panel-in .28s ease; }
  @keyframes ov-in { from { opacity: 0; } }
  @keyframes panel-in { from { opacity: 0; transform: translateY(16px); } }
}
@media (max-width: 680px) {
  .uv { padding: 0; align-items: flex-end; }
  .uv-panel { border-radius: 22px 22px 0 0; max-height: 92dvh; }
  .lb-nav { width: 42px; height: 42px; }
  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
}

/* Apparitions (uniquement si JS actif : jamais de contenu caché sans JS) */
html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
html.js .reveal.in { opacity: 1; transform: none; }
html.js .cards .reveal:nth-child(2), html.js .flyers figure:nth-child(2) { transition-delay: .08s; }
html.js .cards .reveal:nth-child(3), html.js .flyers figure:nth-child(3) { transition-delay: .16s; }
html.js .cards .reveal:nth-child(4), html.js .flyers figure:nth-child(4) { transition-delay: .24s; }

/* Accessibilité clavier */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 2.5px solid var(--terra); outline-offset: 2px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
}

/* Mobile */
@media (max-width: 980px) {
  .nav { padding: 12px 20px; }
  .links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--cream); border-bottom: 1px solid var(--line); padding: 18px 24px 24px; flex-direction: column; gap: 16px; font-size: 16px; }
  .links.open { display: flex; }
  .burger { display: block; }
  .burger.open span:first-child { transform: translateY(4px) rotate(45deg); }
  .burger.open span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .hero { grid-template-columns: 1fr; gap: 40px; padding: 44px 20px 56px; }
  .hero-visual { order: -1; }
  .arch { aspect-ratio: 4 / 3; border-radius: 180px 180px 18px 18px; }
  .tag { left: 10px; bottom: -16px; }
  .proof { gap: 24px; }
  .fixstrip-in { padding: 22px 20px; }
  .section, .section-alt { padding: 56px 20px; }
  .pull-in { padding: 72px 20px; }
  .gallery img:nth-child(8) { grid-column: auto; aspect-ratio: 1 / 1; }
  .cards, .flyers, .contact-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .ccard { min-width: 0; padding: 20px 16px; }
  .cv { font-size: 17px; overflow-wrap: anywhere; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 10px; }
  .resa { grid-template-columns: 1fr; gap: 36px; }
  .resa-form { padding: 22px; }
  .grid2 { grid-template-columns: 1fr; }
  .foot-in { padding: 30px 20px; }
}
@media (max-width: 420px) {
  .cards, .flyers { grid-template-columns: 1fr; }
  .navcta { padding: 10px 18px; font-size: 13px; }
}
