/* ══ Variables ══════════════════════════════════════════ */
:root {
  --bx: #7a1a1a;
  --tx: #1a1a1a;
  --tl: #555;
  --bg: #f0eeeb;
  --w: #fff;
  --bd: #d0c9c0;
  --sh: 0 2px 16px rgba(0,0,0,.10);
  --nav-h: 52px;
}

/* ══ Reset ══════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Source Sans 3', sans-serif; font-size: 22px; color: var(--tx); background: var(--bg); min-height: 100vh; }
a { color: var(--bx); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

/* ══ Nav ════════════════════════════════════════════════ */
nav {
  position: absolute; top: 0; left: 0; right: 0; z-index: 400;
  background: transparent;
  display: flex; justify-content: flex-end; align-items: stretch;
  padding: 0 20px; height: var(--nav-h);
}
.nav-links       { display: flex; align-items: stretch; }
.nav-item { position: relative; display: flex; align-items: center; }
.nav-item > a {
  color: #fff; font-size: 19px; padding: 0 13px; height: var(--nav-h);
  display: flex; align-items: center; white-space: nowrap;
  /* ── pas de trait sous les liens ── */
  border-bottom: none;
  transition: background .15s;
  text-shadow: 0 1px 3px rgba(0,0,0,.6);
}
.nav-item > a:hover,
.nav-item > a.active {
  background: rgba(0,0,0,.20); text-decoration: none;
}
.nav-item > a.active { font-weight: 600; }
.nav-item.has-drop > a::after { content: " ▾"; font-size: 12px; opacity: .8; }

/* Dropdown */
.dropdown {
  display: none; position: absolute; top: 100%; right: 0;
  min-width: 240px; background: var(--w);
  box-shadow: 0 4px 18px rgba(0,0,0,.18); z-index: 500;
}
.dropdown a { display: block; padding: 10px 16px; font-size: 18px; color: var(--bx); border-bottom: 1px solid #f0eeeb; }
.dropdown a:last-child { border-bottom: none; }
.dropdown a:hover { background: #faf9f7; text-decoration: none; }
.nav-item.has-drop:hover .dropdown { display: block; }

/* ── Hamburger ── */
.hamburger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px; margin-left: auto;
}
.hamburger span { display: block; width: 24px; height: 2px; background: #fff; transition: all .25s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Menu mobile ── */
.mobile-menu {
  display: none; position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0;
  background: rgba(20,20,20,.97); z-index: 390; overflow-y: auto;
  flex-direction: column; padding: 12px 0 32px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { color: #fff; font-size: 18px; padding: 13px 24px; border-bottom: 1px solid rgba(255,255,255,.08); display: block; }
.mobile-menu a:hover { background: rgba(255,255,255,.08); text-decoration: none; }
.mobile-menu .m-group-title {
  color: rgba(255,255,255,.45); font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em; padding: 16px 24px 6px;
}
.mobile-menu a.m-sub { padding-left: 36px; font-size: 20px; color: rgba(255,255,255,.8); }

/* ══ Hero ═══════════════════════════════════════════════ */
.hero {
  position: relative;
  height: 320px;
  background:
    linear-gradient(to bottom, rgba(0,0,0,.25) 0%, rgba(0,0,0,.15) 100%),
    url('img/hero.jpg') center / cover no-repeat;
  display: flex; flex-direction: column;
  justify-content: space-between;
  padding: 16px 0 28px 40px;
}
.hero-logo {
  width: 150px; height: auto;
  display: block;
  filter: drop-shadow(0 1px 4px rgba(0,0,0,.4));
}
.hero-text { display: flex; flex-direction: column; gap: 2px; }
.hero h1 { font-family: 'Crimson Text', serif; font-size: 2.64rem; font-weight: 700; color: #fff; line-height: 1.15; text-shadow: 1px 1px 3px rgba(0,0,0,.5); }
.hero h2 { font-family: 'Crimson Text', serif; font-size: 1.8rem; font-weight: 400; color: #fff; text-shadow: 1px 1px 3px rgba(0,0,0,.5); }

/* ══ Layout ══════════════════════════════════════════════ */
.page-wrapper { display: flex; gap: 28px; max-width: 1120px; margin: 20px auto 48px; padding: 0 20px; align-items: flex-start; }
.main-card { flex: 1 1 0; background: var(--w); box-shadow: var(--sh); padding: 36px 44px 44px; min-width: 0; }
/* ── sidebar plus large pour harmoniser avec la taille du texte ── */
.sidebar { flex: 0 0 250px; }

/* ══ Sidebar ════════════════════════════════════════════ */
.sidebar-box { background: var(--w); box-shadow: var(--sh); padding: 20px 18px 18px; }
.logo-wrap { display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.logo-wrap img { width: 100%; max-width: 210px; height: auto; }
/* ── pas de trait sous le logo ── */
.logo-sep { display: none; }
.sidebar-links a { display: block; font-size: 17px; color: var(--bx); padding: 5px 0; line-height: 1.4; }
.sidebar-links a:hover { text-decoration: underline; }
.sidebar-contact { margin-top: 16px; font-size: 17px; color: var(--tl); line-height: 1.8; }

/* ══ Pages ══════════════════════════════════════════════ */
.page { display: none; }
.page.active { display: block; }
h1.ptitle { font-family: 'Crimson Text', serif; font-size: 2.4rem; font-weight: 400; margin-bottom: 24px; }
h2.stitle  { font-family: 'Crimson Text', serif; font-size: 1.68rem; font-weight: 600; margin-bottom: 14px; }

/* ── Accueil ─────────────────────────────────────────── */
.accueil-intro { font-family: 'Crimson Text', serif; font-size: 1.98rem; line-height: 1.45; margin-bottom: 28px; max-width: 560px; }
.ateliers-label { font-size: 20px; margin-bottom: 6px; color: var(--tl); }
.ateliers-list { list-style: none; margin: 8px 0 14px; }
.ateliers-list li { color: #c0392b; font-size: 20px; padding: 2px 0; }
.ateliers-list li::before { content: "- "; }
.accueil-note { font-size: 19px; color: var(--tl); margin-bottom: 20px; }
.accueil-img { margin-top: 24px; display: flex; justify-content: center; }
.accueil-img img { max-width: 400px; width: 100%; height: auto; display: block; }
/* ── footer plus bas sur accueil via padding bottom de la card ── */
#p-accueil { padding-bottom: 60px; }

/* ── Formation / diplômes ────────────────────────────── */
.diplomes-table { width: 100%; border-collapse: collapse; margin-bottom: 28px; }
.diplomes-table td { padding: 7px 4px; font-size: 20px; border-bottom: 1px solid var(--bd); vertical-align: top; }
.diplomes-table td:last-child { white-space: nowrap; color: var(--tl); text-align: right; padding-left: 16px; }
.hexagon-wrap { text-align: center; margin: 20px 0 28px; }
.hexagon-placeholder {
  width: 160px; height: 160px; background: #e8e4de;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px; color: #999; text-align: center;
}

/* ── Ils me font confiance ───────────────────────────── */
.confiance-intro { font-size: 20px; color: var(--tl); margin-bottom: 28px; line-height: 1.6; }
.partenaires-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 20px; }
.partenaire-cell { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.partenaire-img-wrap { height: 80px; display: flex; align-items: center; justify-content: center; }
.partenaire-cell img { max-width: 154px; max-height: 77px; object-fit: contain; }
.partenaire-logo-ph { width: 154px; height: 77px; background: #e8e4de; border: 1px dashed #bbb; display: flex; align-items: center; justify-content: center; font-size: 13px; color: #999; }
.partenaire-cell p { font-size: 18px; color: var(--tl); line-height: 1.4; }

/* ── Consultations ───────────────────────────────────── */
.consult-intro   { font-size: 20px; line-height: 1.7; margin-bottom: 18px; color: var(--tl); }
.consult-raisons { font-size: 20px; line-height: 1.8; margin-bottom: 24px; color: var(--tl); }
.consult-grid    { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-bottom: 24px; }
.consult-item    { display: flex; flex-direction: column; }
.consult-item-ph { width: 100%; height: 200px; background: #e8e4de; border: 1px dashed #bbb; display: flex; align-items: center; justify-content: center; font-size: 14px; color: #999; margin-bottom: 12px; overflow: hidden; flex-shrink: 0; }
.consult-item-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.consult-item h3 { font-family: 'Crimson Text', serif; font-size: 1.44rem; font-weight: 600; margin-bottom: 8px; }
.consult-item p  { font-size: 20px; color: var(--tl); line-height: 1.6; }
.consult-conclusion { background: #faf9f7; border-left: 3px solid var(--bx); padding: 14px 18px; font-size: 20px; color: var(--tl); line-height: 1.6; margin-top: 8px; }

/* ── Ateliers cuisine ────────────────────────────────── */
.atelier-lead { font-weight: 600; font-size: 20px; margin-bottom: 18px; }
/* ── layout : texte à gauche, image à droite, image hauteur fixe ── */
.atelier-body {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 32px; margin-bottom: 28px;
  align-items: start;
}
.atelier-text p { font-size: 20px; color: var(--tl); line-height: 1.7; margin-bottom: 14px; }
.atelier-text strong { color: var(--tx); }
.atelier-photo { width: 100%; }
.atelier-photo-ph {
  width: 100%; height: 320px;
  background: #e8e4de; border: 1px dashed #bbb;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: #999;
}
.atelier-photo-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.atelier-info-grid  { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; border-top: 1px solid var(--bd); padding-top: 20px; }
.atelier-info-col h3 { font-family: 'Crimson Text', serif; font-size: 1.44rem; font-weight: 400; margin-bottom: 8px; }
.atelier-info-col p  { font-size: 20px; color: var(--tl); line-height: 1.6; }

/* ── Formations ──────────────────────────────────────── */
.forma-text     { font-size: 20px; color: var(--tl); line-height: 1.7; margin-bottom: 20px; }
.forma-photo-ph { width: 200px; height: 180px; background: #e8e4de; border: 1px dashed #bbb; display: flex; align-items: center; justify-content: center; font-size: 14px; color: #999; margin: 0 auto 24px; }
.forma-themes   { display: flex; gap: 32px; align-items: flex-start; }
.forma-themes h3 { font-family: 'Crimson Text', serif; font-size: 1.68rem; font-weight: 600; white-space: nowrap; padding-top: 4px; flex-shrink: 0; }
.forma-themes ul { list-style: disc; padding-left: 20px; }
.forma-themes ul li { font-size: 20px; color: var(--tl); line-height: 1.8; }

/* ── Cabinet ─────────────────────────────────────────── */
.cabinet-item { display: flex; align-items: center; gap: 28px; padding: 28px 0; border-bottom: 1px solid var(--bd); }
.cabinet-item:last-child { border-bottom: none; }
.cabinet-photo { width: 120px; height: 120px; border-radius: 50%; overflow: hidden; flex-shrink: 0; background: #e0dbd4; border: 3px solid var(--bd); display: flex; align-items: center; justify-content: center; font-size: 13px; color: #999; text-align: center; }
.cabinet-photo img { width: 100%; height: 100%; object-fit: cover; }
.cabinet-info h3 { font-family: 'Crimson Text', serif; font-size: 1.32rem; font-weight: 600; margin-bottom: 6px; }
.cabinet-info p  { font-size: 20px; line-height: 1.7; color: var(--tl); }

/* ── Contact ─────────────────────────────────────────── */
.contact-intro   { font-family: 'Crimson Text', serif; font-size: 1.8rem; line-height: 1.4; margin-bottom: 24px; }
.contact-methods { margin-bottom: 24px; }
.contact-methods p { font-size: 20px; margin-bottom: 6px; }
.contact-or { font-size: 18px; color: var(--tl); margin: 6px 0; }
.contact-form { display: flex; flex-direction: column; gap: 14px; }
.form-field { display: flex; flex-direction: column; gap: 5px; }
.form-field label { font-size: 20px; font-weight: 600; }
.form-field input,
.form-field textarea { border: 1px solid var(--bd); padding: 10px 12px; font-size: 20px; font-family: inherit; background: #faf9f7; outline: none; transition: border-color .2s; width: 100%; }
.form-field input:focus,
.form-field textarea:focus { border-color: var(--bx); }
.form-field textarea { resize: vertical; min-height: 120px; }
.btn-send { background: #2676c8; color: #fff; border: none; padding: 12px 32px; font-size: 20px; font-family: inherit; cursor: pointer; width: 100%; max-width: 200px; }
.btn-send:hover { background: #1a5fa8; }
.form-note { font-size: 18px; color: var(--tl); }
.alert-ok  { background: #e8f5e9; border-left: 4px solid #2a7a2a; padding: 12px 16px; font-size: 20px; color: #2a7a2a; margin-bottom: 16px; }
.alert-err { background: #fdecea; border-left: 4px solid #c0392b; padding: 12px 16px; font-size: 20px; color: #c0392b; margin-bottom: 16px; }

/* ══ Footer ═════════════════════════════════════════════ */
footer { background: #d6d2cc; padding: 18px 40px; font-size: 18px; color: #555; }
.footer-links { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 4px; }
.footer-links a { color: var(--bx); }
/* lien admin invisible — même couleur que le fond */
.admin-secret { color: #d6d2cc; text-decoration: none; transition: color .3s; }
.admin-secret:hover { color: #999; text-decoration: none; }

/* ══ RESPONSIVE ═════════════════════════════════════════ */

/* ── Tablette + Nav hamburger (≤ 900px) ── */
@media (max-width: 900px) {
  /* Nav → hamburger */
  nav { justify-content: flex-end; padding: 0 16px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }

  /* Layout */
  .page-wrapper { flex-direction: column; }
  .main-card { order: 1; }
  .sidebar { order: 2; width: 100%; flex: none; }
  .sidebar-box { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 20px; padding: 16px 20px; }
  .logo-wrap { flex: 0 0 auto; }
  .sidebar-links { flex: 1 1 160px; }
  .sidebar-contact { flex: 1 1 120px; margin-top: 0; }
  .main-card { padding: 28px 32px 36px; }
  .atelier-info-grid { grid-template-columns: 1fr 1fr; }
  .partenaires-grid { grid-template-columns: repeat(2, 1fr); }
  .diplomes-table td:last-child { white-space: normal; }
}

/* ── Mobile (≤ 640px) ── */
@media (max-width: 640px) {
  .hero { height: 220px; padding: 12px 0 20px 20px; }
  .hero-logo { width: 110px; }
  .hero h1 { font-size: 2rem; }
  .hero h2 { font-size: 1.38rem; }

  .page-wrapper { margin: 16px auto 32px; padding: 0 12px; gap: 16px; }
  .main-card { padding: 20px 16px 28px; }
  .sidebar-box { flex-direction: column; gap: 12px; padding: 14px 16px; }

  h1.ptitle { font-size: 1.92rem; }
  h2.stitle { font-size: 1.44rem; }
  .accueil-intro { font-size: 1.56rem; }
  .contact-intro { font-size: 1.44rem; }

  .consult-grid,
  .atelier-info-grid,
  .partenaires-grid { grid-template-columns: 1fr; }

  .atelier-body { display: flex; flex-direction: column; gap: 16px; }
  .atelier-photo { order: -1; }
  .atelier-photo-ph { height: 220px; }

  .forma-themes { flex-direction: column; gap: 12px; }
  .forma-themes h3 { white-space: normal; }

  .diplomes-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .diplomes-table td:last-child { white-space: nowrap; font-size: 14px; }

  .cabinet-item { flex-direction: column; align-items: flex-start; gap: 14px; }
  .cabinet-photo { width: 90px; height: 90px; }
  .btn-send { max-width: 100%; }
  footer { padding: 14px 16px; }
  #p-accueil { padding-bottom: 30px; }
}

/* ── Très petit (≤ 380px) ── */
@media (max-width: 380px) {
  .hero h1 { font-size: 1.68rem; }
  .hero h2 { font-size: 1.2rem; }
  .partenaires-grid { grid-template-columns: 1fr; }
}
