@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400;1,600&family=Outfit:wght@300;400;500&display=swap');

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --jaune:  #ffc521;
  --rouge:  #f8072c;
  --orange: #f69408;
  --dark:   #1a0a00;
  --dark2:  #240e00;
  --cream:  #fff8ee;
  --muted:  #a07040;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', sans-serif;
  background: var(--dark);
  color: var(--cream);
  overflow-x: hidden;
}

/* ── LISERÉ FENÊTRE ── */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  border: 4px solid transparent;
  border-image: linear-gradient(135deg, var(--jaune), var(--orange), var(--rouge), var(--jaune)) 1;
  animation: borderAnim 4s linear infinite;
}
@keyframes borderAnim {
  0%   { border-image-source: linear-gradient(135deg, var(--jaune), var(--orange), var(--rouge), var(--jaune)); }
  33%  { border-image-source: linear-gradient(225deg, var(--orange), var(--rouge), var(--jaune), var(--orange)); }
  66%  { border-image-source: linear-gradient(315deg, var(--rouge), var(--jaune), var(--orange), var(--rouge)); }
  100% { border-image-source: linear-gradient(135deg, var(--jaune), var(--orange), var(--rouge), var(--jaune)); }
}

/* ── COMMUNS ── */
.chef-section { position: relative; }
.chef-inner { max-width: 1140px; margin: 0 auto; padding: 0 2rem; }
.chef-label { font-size: .68rem; letter-spacing: .4em; text-transform: uppercase; color: var(--orange); margin-bottom: .8rem; display: block; }
.chef-title { font-family: 'Playfair Display', serif; font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; line-height: 1.15; color: var(--cream); }
.chef-title em { font-style: italic; background: linear-gradient(90deg, var(--jaune), var(--rouge)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.chef-divider { width: 50px; height: 3px; margin: 1.5rem 0; background: linear-gradient(90deg, var(--jaune), var(--rouge)); border-radius: 2px; }
.chef-divider.center { margin-left: auto; margin-right: auto; }
.chef-text { font-size: .97rem; font-weight: 300; line-height: 1.8; color: rgba(255,248,238,.6); max-width: 520px; }

/* ── HERO ── */
.chef-hero {
  min-height: 100vh; display: flex; flex-direction: column;
  justify-content: center; align-items: center; text-align: center;
  padding: 6rem 2rem 4rem; position: relative; overflow: hidden;
  background: radial-gradient(ellipse 70% 50% at 50% 40%, rgba(246,148,8,.12), transparent 65%),
    linear-gradient(180deg, #1a0a00, #0d0500);
}
.chef-slide-bg { position: absolute; inset: 0; z-index: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.5s ease; }
.chef-slide-bg.active { opacity: .18; }
.chef-flames { position: absolute; bottom: 0; left: 0; right: 0; height: 100px; pointer-events: none; overflow: hidden; }
.chef-flame { position: absolute; bottom: 0; width: 40px; height: 80px; border-radius: 50% 50% 30% 30%; filter: blur(6px); animation: flicker 2s ease-in-out infinite alternate; }
.chef-flame:nth-child(1) { left: 5%;  background: radial-gradient(var(--jaune), var(--rouge), transparent); }
.chef-flame:nth-child(2) { left: 15%; height: 60px; background: radial-gradient(var(--orange), var(--rouge), transparent); animation-delay: .3s; }
.chef-flame:nth-child(3) { left: 30%; height: 90px; background: radial-gradient(var(--jaune), var(--orange), transparent); animation-delay: .7s; }
.chef-flame:nth-child(4) { right: 30%; height: 70px; background: radial-gradient(var(--orange), var(--rouge), transparent); animation-delay: .5s; }
.chef-flame:nth-child(5) { right: 15%; height: 85px; background: radial-gradient(var(--jaune), var(--rouge), transparent); animation-delay: .2s; }
.chef-flame:nth-child(6) { right: 5%;  height: 60px; background: radial-gradient(var(--orange), var(--rouge), transparent); animation-delay: .9s; }
@keyframes flicker { from { transform: scaleY(1); opacity: .6; } to { transform: scaleY(1.3) scaleX(.85); opacity: 1; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }

.chef-hero-content { position: relative; z-index: 1; }
.chef-hero-logo { height: 110px; width: auto; display: block; margin: 0 auto 1.5rem auto; border-radius: 12px; box-shadow: 0 6px 30px rgba(0,0,0,0.7); }
.chef-hero-badge { display: inline-flex; align-items: center; gap: .5rem; border: 1px solid rgba(255,197,33,.4); padding: .4rem 1.2rem; border-radius: 999px; font-size: .72rem; letter-spacing: .25em; text-transform: uppercase; color: var(--jaune); margin-bottom: 2rem; opacity: 0; animation: fadeUp 1s .4s ease forwards; }
.chef-hero-title { font-family: 'Playfair Display', serif; font-size: clamp(2.8rem, 7vw, 6rem); font-weight: 700; line-height: 1.05; opacity: 0; animation: fadeUp 1s .7s ease forwards; }
.chef-hero-title .line1 { color: var(--cream); display: block; }
.chef-hero-title .line2 { display: block; font-style: italic; background: linear-gradient(90deg, var(--jaune), var(--orange), var(--rouge)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.chef-hero-sub { margin-top: 1.5rem; max-width: 520px; font-size: 1rem; font-weight: 300; line-height: 1.7; color: rgba(255,248,238,.6); opacity: 0; animation: fadeUp 1s 1s ease forwards; margin-left: auto; margin-right: auto; }
.chef-hero-pills { display: flex; gap: .8rem; flex-wrap: wrap; justify-content: center; margin-top: 1.5rem; opacity: 0; animation: fadeUp 1s 1.2s ease forwards; }
.chef-pill { background: rgba(255,197,33,.1); border: 1px solid rgba(255,197,33,.25); color: var(--jaune); padding: .35rem 1rem; border-radius: 999px; font-size: .75rem; }
.chef-hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; margin-top: 2.5rem; opacity: 0; animation: fadeUp 1s 1.4s ease forwards; }
.chef-btn-fire { background: linear-gradient(135deg, var(--rouge), var(--orange)); color: white; padding: .9rem 2.2rem; border: none; cursor: pointer; font-size: .82rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; border-radius: 3px; display: inline-block; transition: transform .2s, box-shadow .3s; }
.chef-btn-fire:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(248,7,44,.45); }
.chef-btn-ghost { background: transparent; color: var(--cream); padding: .9rem 2.2rem; border: 1px solid rgba(255,248,238,.3); cursor: pointer; font-size: .82rem; font-weight: 400; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; border-radius: 3px; display: inline-block; transition: border-color .3s, color .3s; }
.chef-btn-ghost:hover { border-color: var(--jaune); color: var(--jaune); }

/* ── À PROPOS ── */
.chef-apropos { padding: 7rem 0; background: var(--dark2); }
.chef-apropos-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }

/* Photo : conteneur à ratio fixe + image en cover -> ne se déforme jamais */
.chef-apropos-img-wrap { position: relative; }
.chef-apropos-img {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: linear-gradient(135deg, #2a1000, #3d1800);
  border-radius: 2px;
  z-index: 1;
}
.chef-apropos-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 25% 20%;
  display: block;
}
.chef-apropos-frame { position: absolute; inset: 0; border: 3px solid transparent; background: linear-gradient(135deg, var(--jaune), var(--orange), var(--rouge)) border-box; -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; z-index: 2; border-radius: 2px; }
.chef-infos { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 2.5rem; }
.chef-info { border-left: 2px solid var(--orange); padding-left: 1rem; }
.chef-info-num { font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 700; line-height: 1; background: linear-gradient(90deg, var(--jaune), var(--rouge)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.chef-info-label { font-size: .75rem; color: var(--muted); margin-top: .25rem; }

/* ── SERVICES ── */
.chef-services { padding: 7rem 0; background: var(--dark); }
.chef-services-header { text-align: center; margin-bottom: 4rem; }
.chef-services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.chef-card { padding: 2.5rem 2rem; background: var(--dark2); border: 1px solid rgba(255,197,33,.15); border-radius: 2px; transition: transform .3s, background .3s, border-color .3s, box-shadow .3s; }
.chef-card:hover { transform: translateY(-5px); background: #2d1400; border-color: var(--orange); box-shadow: 0 0 0 1px var(--orange), 0 16px 40px rgba(248,7,44,.25); }
.chef-card-icon { width: 54px; height: 54px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, rgba(255,197,33,.15), rgba(248,7,44,.15)); font-size: 1.5rem; margin-bottom: 1.5rem; }
.chef-card h3 { font-family: 'Playfair Display', serif; font-size: 1.4rem; color: var(--cream); margin-bottom: .8rem; }
.chef-card p { font-size: .88rem; font-weight: 300; line-height: 1.7; color: rgba(255,248,238,.55); }
.chef-card-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.2rem; }
.chef-tag { font-size: .7rem; letter-spacing: .06em; background: rgba(255,197,33,.08); border: 1px solid rgba(255,197,33,.2); color: var(--jaune); padding: .25rem .7rem; border-radius: 999px; }

/* ── GALERIE ── */
.chef-galerie { padding: 7rem 0; background: var(--dark2); }
.chef-galerie-header { text-align: center; margin-bottom: 3.5rem; }
.chef-galerie-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; grid-auto-flow: dense; gap: 4px; }
.chef-galerie-item { position: relative; overflow: hidden; cursor: zoom-in; background: linear-gradient(135deg, #2a1000, #3d1800); display: flex; align-items: center; justify-content: center; border: none; padding: 0; }
.chef-galerie-item:nth-child(6n+1) { grid-column: span 2; grid-row: span 2; }
.chef-galerie-item:nth-child(6n+4) { grid-column: span 2; }
.chef-galerie-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.chef-galerie-item:hover img { transform: scale(1.06); }
.chef-galerie-overlay { position: absolute; inset: 0; z-index: 3; background: rgba(0,0,0,.18); border: 2px solid rgba(255,197,33,.5); opacity: 0; transition: opacity .3s; pointer-events: none; }
.chef-galerie-item:hover .chef-galerie-overlay { opacity: 1; }

/* ── LIGHTBOX ── */
#chef-lb { display: none; position: fixed; inset: 0; z-index: 10000; background: rgba(0,0,0,.93); align-items: center; justify-content: center; }
#chef-lb.open { display: flex; }
#chef-lb img { max-width: 90vw; max-height: 88vh; object-fit: contain; border: 3px solid var(--orange); animation: lbIn .2s ease; }
@keyframes lbIn { from { transform: scale(.88); opacity: 0; } to { transform: scale(1); opacity: 1; } }
#chef-lb-close { position: absolute; top: 1rem; right: 1.5rem; font-size: 2.5rem; color: var(--jaune); background: none; border: none; cursor: pointer; z-index: 10001; }
#chef-lb-prev, #chef-lb-next { position: absolute; top: 50%; transform: translateY(-50%); font-size: 3rem; color: var(--jaune); background: rgba(0,0,0,.5); border: none; cursor: pointer; padding: .3rem 1rem; z-index: 10001; transition: background .2s; }
#chef-lb-prev { left: .5rem; } #chef-lb-next { right: .5rem; }
#chef-lb-prev:hover, #chef-lb-next:hover { background: rgba(255,197,33,.25); }

/* ── CONTACT ── */
.chef-contact { padding: 7rem 0; background: var(--dark); }
.chef-contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 5rem; }
.chef-contact-item { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.8rem; }
.chef-contact-icon { width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, rgba(255,197,33,.15), rgba(248,7,44,.15)); font-size: 1rem; }
.chef-contact-label { font-size: .65rem; letter-spacing: .25em; text-transform: uppercase; color: var(--orange); margin-bottom: .25rem; }
.chef-contact-value { font-size: .92rem; font-weight: 300; color: var(--cream); }
.chef-contact-value a { color: inherit; text-decoration: none; }
.chef-contact-value a:hover { color: var(--jaune); }

/* ── FORMULAIRE (statique, envoi via contact.php) ── */
.chef-form { display: flex; flex-direction: column; gap: 1.3rem; }
.chef-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; }
.chef-form-field { display: flex; flex-direction: column; gap: .6rem; }
.chef-form-field label { font-size: .92rem; font-weight: 600; color: var(--cream); }
.chef-form input[type="text"],
.chef-form input[type="email"],
.chef-form input[type="tel"],
.chef-form input[type="date"],
.chef-form input[type="number"],
.chef-form select,
.chef-form textarea {
  width: 100%;
  background: rgba(255,248,238,.04);
  border: 1px solid rgba(255,197,33,.2);
  color: var(--cream);
  padding: .85rem 1rem;
  font-family: 'Outfit', sans-serif;
  font-size: .9rem; font-weight: 300;
  outline: none;
  transition: border-color .3s;
  border-radius: 0;
  appearance: none;
}
.chef-form input:focus, .chef-form select:focus, .chef-form textarea:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(246,148,8,.1); }
.chef-form textarea { resize: vertical; min-height: 220px; }
.chef-form button[type="submit"] { background: linear-gradient(135deg, var(--rouge), var(--orange)); color: white; padding: .9rem 2.2rem; border: none; cursor: pointer; font-family: 'Outfit', sans-serif; font-size: .82rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; border-radius: 3px; transition: transform .2s, box-shadow .3s; width: fit-content; }
.chef-form button[type="submit"]:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(248,7,44,.45); }
.chef-form-msg { border: 1px solid var(--jaune); background: rgba(255,197,33,.1); color: var(--jaune); padding: 1rem; font-size: .88rem; display: none; }
.chef-form-msg.show { display: block; }
::placeholder { color: rgba(255,248,238,.3); }

/* ── FOOTER ── */
.chef-footer { background: #0d0500; padding: 2.5rem 0 2rem; border-top: 1px solid rgba(255,197,33,.15); }
.chef-footer-inner { max-width: 1140px; margin: 0 auto; padding: 0 2rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.chef-footer-logo { display: flex; align-items: center; gap: .6rem; font-family: 'Playfair Display', serif; font-style: italic; font-size: 1.1rem; background: linear-gradient(90deg, var(--jaune), var(--orange)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.chef-footer-logo img { height: 40px; width: auto; border-radius: 8px; }
.chef-footer-copy { font-size: .7rem; color: var(--muted); }
.chef-footer-links { display: flex; gap: 1.5rem; }
.chef-footer-links a { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); text-decoration: none; transition: color .3s; }
.chef-footer-links a:hover { color: var(--jaune); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .chef-apropos-grid, .chef-contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .chef-services-grid { grid-template-columns: 1fr; }
  .chef-form-row { grid-template-columns: 1fr; }
  .chef-infos { grid-template-columns: 1fr 1fr; }
  .chef-galerie-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .chef-galerie-item:nth-child(6n+1) { grid-row: span 2; }
  .chef-galerie-item:nth-child(6n+4) { grid-column: span 2; }
}
@media (max-width: 500px) {
  .chef-hero-pills { display: none; }
  .chef-galerie-grid { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .chef-galerie-item:nth-child(6n+1), .chef-galerie-item:nth-child(6n+4) { grid-column: span 1; grid-row: span 1; }
}