:root{
  --bg: #0b0f0c;
  --surface: #0f1511;
  --card: #121a15;

  --text: #e9efe9;
  --muted: rgba(233,239,233,.75);
  --soft: rgba(233,239,233,.10);
  --border: rgba(233,239,233,.14);

  /* Accents */
  --brand: #27086b;
  --brand-2: #f2c57c;
  --danger: #ffb4b4;

  /* Form fields */
  --field-bg: rgba(15,21,17,.98);       /* plus sombre => visible au repos */
  --field-border: rgba(233,239,233,.22);
  --field-border-hover: rgba(233,239,233,.28);
  --field-placeholder: rgba(233,239,233,.55);

  --radius: 16px;
  --radius-lg: 22px;
  --shadow: 0 10px 30px rgba(0,0,0,.35);

  --container: 1120px;
  --pad: clamp(16px, 2.4vw, 28px);

  --h1: clamp(28px, 4.2vw, 46px);
  --h2: clamp(20px, 2.6vw, 28px);
  --h3: 18px;

  --p: 16px;
  --small: 14px;
  --line: 1.55;
}

*{ box-sizing: border-box; }
html, body{ height: 100%; }

body{
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:
    radial-gradient(1200px 700px at 15% -10%, rgba(127,209,139,.20), transparent 55%),
    radial-gradient(900px 500px at 105% 10%, rgba(242,197,124,.18), transparent 55%),
    linear-gradient(180deg, var(--bg), #070a08);
  color: var(--text);
  line-height: var(--line);
}

a{ color: inherit; text-decoration: none; }
a:hover{ text-decoration: underline; text-underline-offset: 3px; }

.container{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* Accessibility */
.skip-link{
  position: absolute;
  left: -999px;
  top: 10px;
  background: var(--text);
  color: #000;
  padding: 10px 12px;
  border-radius: 10px;
  z-index: 999;
}
.skip-link:focus{ left: 10px; }

/* Header / Nav */
header.site-header{
  position: sticky;
  top: 0;
  z-index: 50;

  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);

  background: linear-gradient(180deg, rgba(11,15,12,.95), rgba(11,15,12,.75));
  border-bottom: 1px solid var(--border);
}

.navbar{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
}

.brand{
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 240px;
}
.logo{
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(127,209,139,.95), rgba(242,197,124,.85));
  box-shadow: var(--shadow);
}
.brand .title{
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand strong{ font-size: 15px; letter-spacing: .2px; }
.brand span{ font-size: 12px; color: var(--muted); }

.nav-links{
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a{
  font-size: 14px;
  color: var(--muted);
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
}
.nav-links a[aria-current="page"]{
  color: var(--text);
  border-color: var(--border);
  background: rgba(233,239,233,.06);
}
.nav-links a:hover{
  color: var(--text);
  background: rgba(233,239,233,.06);
  border-color: rgba(233,239,233,.10);
  text-decoration: none;
}

/* Buttons */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
  font-weight: 650;
  font-size: 14px;
  background: rgba(233,239,233,.06);
  color: var(--text);
  box-shadow: 0 8px 18px rgba(0,0,0,.20);
  text-decoration: none !important;
}
.btn:hover{
  border-color: rgba(233,239,233,.22);
  background: rgba(233,239,233,.10);
}
.btn-primary{
  background: linear-gradient(145deg, rgba(127,209,139,.95), rgba(127,209,139,.70));
  color: #08110a;
  border-color: rgba(127,209,139,.65);
}
.btn-primary:hover{
  background: linear-gradient(145deg, rgba(127,209,139,1), rgba(127,209,139,.78));
}

/* Hero */
.hero{ padding: 44px 0 18px; }

.hero-grid{
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 22px;
  align-items: stretch;
}
@media (max-width: 920px){
  .hero-grid{ grid-template-columns: 1fr; }
  .brand{ min-width: auto; }
}

.hero h1{
  font-size: var(--h1);
  margin: 0 0 10px;
  letter-spacing: .2px;
}
.hero p{
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 16px;
  max-width: 70ch;
}
.hero .actions{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Cards */
.card{
  background: rgba(18,26,21,.85);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow);
}
.card h3{
  margin: 0 0 8px;
  font-size: var(--h3);
}
.card p{ margin: 0; color: var(--muted); font-size: 14px; }

.badge{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(233,239,233,.18);
  background: rgba(233,239,233,.06);
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 10px;
}

/* Notice (alert info) */
.notice{
  margin-top: 14px;
  padding: 14px 14px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,180,180,.25);
  background: rgba(255,180,180,.08);
}
.notice strong{ color: #ffd7d7; }
.notice p{ margin: 8px 0 0; color: rgba(233,239,233,.86); }

/* Sections / Layout */
.section{ padding: 22px 0; }
.section h2{
  margin: 0 0 10px;
  font-size: var(--h2);
}
.section .lead{
  margin: 0 0 16px;
  color: var(--muted);
  max-width: 85ch;
}

.grid-3{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 960px){
  .grid-3{ grid-template-columns: 1fr; }
}

.list{
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--muted);
}
.list li{ margin: 6px 0; }

.split{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 960px){
  .split{ grid-template-columns: 1fr; }
}

.hr{
  height: 1px;
  background: rgba(233,239,233,.12);
  margin: 18px 0;
}

/* Pricing */
.pricing{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 960px){
  .pricing{ grid-template-columns: 1fr; }
}
.pricing .plan{
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: rgba(18,26,21,.72);
  padding: 18px;
  box-shadow: var(--shadow);
}
.plan .plan-head{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.plan h3{ margin: 0; font-size: 18px; }
.plan .tag{
  font-size: 12px;
  color: rgba(8,17,10,.95);
  background: rgba(127,209,139,.90);
  border: 1px solid rgba(127,209,139,.60);
  padding: 6px 10px;
  border-radius: 999px;
}
.plan p{ margin: 10px 0 0; color: var(--muted); }

/* Forms */
.form{ display: grid; gap: 12px; }
.field{ display: grid; gap: 6px; }
label{ font-size: 13px; color: var(--muted); }

input, textarea, select{
  width: 100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid var(--field-border);

  /* IMPORTANT: fond sombre lisible au repos */
  background: var(--field-bg);

  color: var(--text);
  outline: none;
  transition: background .2s ease, border-color .2s ease, box-shadow .2s ease;
}

input:hover, textarea:hover, select:hover{
  border-color: var(--field-border-hover);
}

textarea{ min-height: 120px; resize: vertical; }

::placeholder{
  color: var(--field-placeholder);
}

input:focus, textarea:focus, select:focus{
  border-color: rgba(127,209,139,.60);
  box-shadow: 0 0 0 4px rgba(127,209,139,.15);
}

.help{
  font-size: 12px;
  color: rgba(233,239,233,.70);
}

/* Footer */
footer{
  margin-top: 30px;
  border-top: 1px solid rgba(233,239,233,.12);
  background: rgba(11,15,12,.55);
}
.footer-grid{
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 18px;
  padding: 18px 0;
}
@media (max-width: 920px){
  .footer-grid{ grid-template-columns: 1fr; }
}
.footer-grid p{ margin: 8px 0 0; color: var(--muted); font-size: 14px; }

.footer-links{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  align-items: center;
}
@media (max-width: 920px){
  .footer-links{ justify-content: flex-start; }
}
.footer-links a{
  font-size: 14px;
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid transparent;
}
.footer-links a:hover{
  text-decoration: none;
  border-color: rgba(233,239,233,.12);
  background: rgba(233,239,233,.05);
  color: var(--text);
}

.smallprint{
  padding: 0 0 18px;
  color: rgba(233,239,233,.65);
  font-size: 12px;
}

/* Helpers (avoid inline styles) */
.text-strong-soft{ color: rgba(233,239,233,.85); }
.mt-12{ margin-top: 12px; }
.mt-10{ margin-top: 10px; }

/* Galerie */
.gallery-toolbar{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}
@media (max-width: 920px){
  .gallery-toolbar{ flex-direction: column; }
}
.gallery-filters{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.gallery-grid{
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}

.gallery-item{
  grid-column: span 4;
  background: rgba(18,26,21,.72);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
@media (max-width: 960px){
  .gallery-item{ grid-column: span 6; }
}
@media (max-width: 640px){
  .gallery-item{ grid-column: span 12; }
}

.gallery-thumb{
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.gallery-thumb img{
  display: block;
  width: 100%;
  height: 240px;
  object-fit: cover;
  transform: scale(1);
  transition: transform .25s ease;
}
.gallery-thumb:hover img{ transform: scale(1.02); }

.gallery-item figcaption{
  padding: 12px 14px 14px;
}
.gallery-item figcaption strong{
  display: block;
  font-size: 14px;
}
.gallery-item figcaption span{
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: rgba(233,239,233,.72);
}

/* Lightbox */
.lightbox{
  position: fixed;
  inset: 0;
  z-index: 999;
}
.lightbox-backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.72);
}
.lightbox-panel{
  position: relative;
  max-width: min(1100px, 92vw);
  margin: 6vh auto;
  background: rgba(18,26,21,.92);
  border: 1px solid rgba(233,239,233,.18);
  border-radius: 18px;
  box-shadow: 0 25px 70px rgba(0,0,0,.55);
  overflow: hidden;
}
.lightbox-body{
  display: grid;
  grid-template-rows: auto auto;
}
.lightbox-img{
  width: 100%;
  height: min(70vh, 720px);
  object-fit: contain;
  background: rgba(0,0,0,.35);
}
.lightbox-meta{
  padding: 12px 14px 14px;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  align-items: baseline;
}
.lightbox-hint{
  color: rgba(233,239,233,.70);
  font-size: 12px;
}
.lightbox-close{
  position: absolute;
  top: 10px;
  right: 10px;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(233,239,233,.18);
  background: rgba(233,239,233,.06);
  color: var(--text);
  cursor: pointer;
}
.lightbox-close:hover{ background: rgba(233,239,233,.10); }

.lightbox-nav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 54px;
  border-radius: 14px;
  border: 1px solid rgba(233,239,233,.18);
  background: rgba(233,239,233,.06);
  color: var(--text);
  cursor: pointer;
  font-size: 30px;
  line-height: 1;
}
.lightbox-nav:hover{ background: rgba(233,239,233,.10); }
.lightbox-nav.prev{ left: 10px; }
.lightbox-nav.next{ right: 10px; }

/* ===== Lightbox video (Book cuisines) ===== */
.lightbox-video{
  display: block;
  width: 100%;
  height: min(70vh, 720px);
  background: rgba(0,0,0,.35);
  object-fit: contain;

  /* évite certains glitches iOS */
  border: 0;
}

/* Quand la vidéo est affichée, on garde une présentation cohérente */
.lightbox-body .lightbox-video[hidden]{
  display: none !important;
}
.lightbox-body .lightbox-img[hidden]{
  display: none !important;
}

/* Optionnel : améliorer la sensation de lecture (sans agresser visuellement) */
.lightbox-panel video{
  outline: none;
}

/* Rendre les boutons de navigation moins gênants pendant la lecture */
@media (max-width: 640px){
  .lightbox-nav{
    width: 40px;
    height: 48px;
    border-radius: 12px;
    font-size: 26px;
  }
}

/* Amélioration accessibilité : focus visible sur les contrôles */
.lightbox-close:focus,
.lightbox-nav:focus{
  outline: none;
  box-shadow: 0 0 0 4px rgba(127,209,139,.18);
  border-color: rgba(127,209,139,.40);
}

/* Si tu veux que la vidéo respire un peu dans la lightbox */
.lightbox-body{
  background: rgba(0,0,0,.12);
}
