/* =========================
   Le Relais de Villemotier — styles.css (global)
   Thème clair "carte de visite" + touches brun/doré
   Hero PNG détouré + illustrations de section à gauche
   ========================= */

*{ box-sizing:border-box; margin:0; padding:0; }
img{ max-width:100%; height:auto; display:block; }
a{ color:inherit; text-decoration:none; }

:root{
  --bg: #f6efe6;          /* crème / parchemin */
  --paper: #fbf6ee;       /* carte claire */
  --ink: #2a1f1a;         /* brun texte */
  --muted: rgba(42,31,26,.72);
  --gold: #c9a46a;        /* doré vieilli */
  --line: rgba(42,31,26,.12);
  --shadow: 0 10px 26px rgba(0,0,0,.06);
}

body{
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  line-height:1.65;

  background:
    radial-gradient(900px 450px at 20% 0%, rgba(201,164,106,.18), transparent 60%),
    radial-gradient(900px 450px at 80% 10%, rgba(58,43,35,.08), transparent 55%),
    linear-gradient(180deg, var(--bg) 0%, #f3eadf 100%);
}

/* =========================
   Header / Nav
   ========================= */

.site-header{
  background: linear-gradient(180deg, #3a2b23 0%, #2f231d 100%);
  border-bottom: 1px solid rgba(255,255,255,.10);
}

.header-inner{
  max-width: 1200px;
  margin: auto;
  padding: 12px 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
}

.logo img{ height:56px; }

.main-nav a{
  color: #fff;
  opacity: .92;
  padding: 8px 10px;
  border-radius: 12px;
  margin-left: 6px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  display:inline-block;
}

.main-nav a:hover{
  opacity: 1;
  border-color: rgba(201,164,106,.55);
  background: rgba(201,164,106,.14);
}

/* =========================
   Contenu
   ========================= */

.site-content{
  max-width: 1200px;
  margin: auto;
  padding: 22px 16px 40px;
}

/* =========================
   HERO
   ========================= */

.hero{ padding: 0; }

.hero-inner{
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
}

.hero-text{ margin: 10px 0 8px; }

.brand-title{
  font-family: "Oswald", system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 2.6rem;
  margin: 0;
  color: var(--ink);
}

.brand-subtitle{
  margin-top: 6px;
  color: rgba(42,31,26,.75);
  font-weight: 700;
}

.hero-media{
  max-width: 980px;
  margin: 18px auto 0;
  background: transparent;
}

/* IMPORTANT : ton réglage à 680px */
.hero-illustration{
  width: min(680px, 100%);
  margin: 0 auto;
  height: auto;
  border: none;
  box-shadow: none;
  filter: drop-shadow(0 14px 20px rgba(0,0,0,.12)); /* ombre douce naturelle */
}

/* =========================
   2 colonnes (contenu + actus)
   ========================= */

.layout-2cols{
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 16px;
  margin-top: 18px;
}

/* =========================
   Cards (sections)
   ========================= */

.card{
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow);
  margin: 0 0 14px;
}

.section-title{
  font-size: 1.4rem;
  margin-bottom: 10px;
}

/* =========================
   Sections avec illustration à gauche
   ========================= */

.section-illustrated{
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 18px;
  align-items: center;
}

.section-media{
  display: flex;
  align-items: center;
  justify-content: center;
}

.section-media img{
  width: 140px;
  height: auto;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,.12));
  opacity: .95;
}

.section-content{ display:block; }

h3{
  margin: 14px 0 6px;
  font-size: 1.05rem;
  color: #3a2b23;
}

p{
  margin: 10px 0;
  color: rgba(42,31,26,.88);
}

.mini-note{
  margin-top: 12px;
  padding: 12px 12px;
  border-radius: 14px;
  background: rgba(201,164,106,.12);
  border: 1px dashed rgba(201,164,106,.35);
}

/* =========================
   Colonne droite (Actus)
   ========================= */

.side-card{
  position: sticky;
  top: 92px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  box-shadow: var(--shadow);
}

.side-card h2{
  font-family: "Oswald", system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: .6px;
  margin-bottom: 12px;
  font-size: 1.4rem;
}

.info-item{
  padding: 12px 0;
  border-top: 1px dashed rgba(42,31,26,.18);
}

.info-item:first-of-type{ border-top: none; }

.info-item h3{ margin: 0 0 6px; }

.hours{ line-height: 1.55; }

.link{
  display:inline-block;
  margin-top: 6px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(201,164,106,.35);
  background: rgba(201,164,106,.14);
  font-weight: 700;
}

.link:hover{ background: rgba(201,164,106,.22); }

.subtle{ opacity: .9; }

/* =========================
   Footer — lisible (forçage)
   ========================= */

.site-footer{
  background: #241b16 !important;
  border-top: 1px solid rgba(255,255,255,.18) !important;
  margin-top: 28px !important;
}

.site-footer, .site-footer *{
  color: #ffffff !important;
}

.footer-inner{
  max-width: 1200px;
  margin: auto;
  padding: 26px 16px !important;
  text-align: center;
  font-size: 1rem;
  line-height: 1.7;
  opacity: 1 !important;
}

/* =========================
   Responsive
   ========================= */

@media (max-width: 980px){
  .layout-2cols{ grid-template-columns: 1fr; }
  .side-card{ position: relative; top: auto; }

  .brand-title{ font-size: 2.1rem; }

  .header-inner{
    flex-wrap: wrap;
    justify-content: center;
  }
  .main-nav{
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap: 6px;
  }
  .main-nav a{ margin-left: 0; }
}

@media (max-width: 780px){
  .section-illustrated{
    grid-template-columns: 1fr;
    text-align: center;
  }
  .section-media{ margin-bottom: 12px; }
  .section-media img{
    width: 120px;
    margin: 0 auto;
  }
}
/* =========================
   Menu de la semaine
   ========================= */

.subtext{ opacity:.85; }

.menu-week{
  margin-top: 12px;
}

.menu-head{
  display:flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 14px;
}

.menu-title{
  margin: 0;
  font-size: 1.25rem;
}

.menu-date{
  color: rgba(42,31,26,.78);
}

.menu-note{
  margin: 6px 0 0;
  opacity: .8;
}

.menu-grid{
  display:grid;
  grid-template-columns: repeat( auto-fit, minmax(240px, 1fr) );
  gap: 12px;
}

.menu-day{
  background: rgba(201,164,106,.10);
  border: 1px dashed rgba(201,164,106,.32);
  border-radius: 16px;
  padding: 14px;
}

.menu-day h4{
  margin: 0 0 10px;
  font-family: "Oswald", system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.menu-day ul{
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu-day li{
  padding: 6px 0;
  border-top: 1px solid rgba(42,31,26,.10);
}

.menu-day li:first-child{
  border-top: none;
}
/* Titre centré au-dessus de la section */
.section-title-centered{
  text-align: center;
  margin-bottom: 16px;
}

/* Nouveau corps de section */
.section-body{
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 18px;
  align-items: center;
}

/* Illustration intégrée au fond */
.section-media img{
  width: 120px;
  opacity: .75;
  filter:
    sepia(.15)
    saturate(.9)
    drop-shadow(0 4px 8px rgba(0,0,0,.08));
  mix-blend-mode: multiply; /* FUSION avec le fond */
}

/* Mobile */
@media (max-width: 780px){
  .section-body{
    grid-template-columns: 1fr;
    text-align: center;
  }
  .section-media{
    margin-bottom: 12px;
  }
}
/* =========================
   Restaurant — illustrations (large + transparent)
   Ne touche pas aux autres pages
   ========================= */

/* Conteneur centré */
.section-media-centered{
  display:flex;
  justify-content:center;
  align-items:center;
  margin: 14px 0 18px;
}

/* IMPORTANT : on force le style seulement sur .section-illustration */
.section-media-centered .section-illustration{
  width: 100% !important;
  max-width: 500px !important;   /* change ici, ça se verra */
  height: auto !important;

  border: none !important;
  background: transparent !important;
  box-shadow: none !important;

  opacity: .92;
  mix-blend-mode: multiply;
  filter: sepia(.1) saturate(.95) contrast(1.02);
}

/* Mobile */
@media (max-width: 780px){
  .section-media-centered .section-illustration{
    max-width: 92% !important;
  }
}
/* Menu — couleurs automatiques (Entrée / Plat) + encart "Inclus" */
.menu-day .m-entree strong{ color: #8a5a2b; }
.menu-day .m-plat strong{ color: #2f231d; }

.menu-included{
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(201,164,106,.10);
  border: 1px dashed rgba(201,164,106,.35);
  text-align: center;
}
/* Sécurité : selon la classe utilisée dans le PHP */
.menu-included, .menu-inclus, .menu-included{
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(201,164,106,.10);
  border: 1px dashed rgba(201,164,106,.35);
  text-align: center;
}
/* Actu (index) — menu du jour compact */
.side-card .menu-week{ margin-top: 6px; }
.side-card .menu-head{ margin-bottom: 10px; }
.side-card .menu-grid{ grid-template-columns: 1fr; gap: 8px; }
.side-card .menu-day{ padding: 10px; }
.side-card .menu-day h4{ font-size: 1rem; }
.side-card .menu-day li{ padding: 4px 0; }
/* Actus (index) — couleurs Entrée / Plat */
.side-card .m-entree strong{ color: #8a5a2b; }
.side-card .m-plat strong{ color: #2f231d; }

/* Option: petit picto "Menu du jour" */
.pill-today{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(201,164,106,.35);
  background: rgba(201,164,106,.12);
  font-weight: 800;
}
.pill-today .dot{
  width:10px;
  height:10px;
  border-radius:999px;
  background: rgba(201,164,106,.9);
  box-shadow: 0 0 0 3px rgba(201,164,106,.20);
}
/* Dépôts */
.depots-list{
  margin: 10px 0 0;
  padding-left: 18px;
}
.depots-list li{
  margin: 10px 0;
}
.map-link{
  display: inline-block;
  margin-top: 2px;
  font-size: .9rem;
  font-style: italic;
  text-decoration: none;
  color: rgba(42,31,26,.75);
}

.map-link:hover{
  color: #2a1f1a;
  text-decoration: underline;
}
.map-link{
  font-style: italic;
  text-decoration: none;
  opacity: .9;
}
.map-link:hover{
  opacity: 1;
  text-decoration: underline;
}
/* Listes propres (producteurs, services, etc.) */
.services-list{
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}

.services-list li{
  padding: 8px 0;
  border-top: 1px solid rgba(42,31,26,.10);
}

.services-list li:first-child{
  border-top: none;
}

/* =========================
   NAV — hamburger mobile (CSS only)
   ========================= */

.nav-toggle{ display:none; }

.nav-burger{
  display:none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  align-items:center;
  justify-content:center;
  gap: 6px;
  cursor:pointer;
  padding: 10px;
}

.nav-burger span{
  display:block;
  width: 18px;
  height: 2px;
  background: rgba(255,255,255,.92);
  border-radius: 2px;
  transition: transform .18s ease, opacity .18s ease;
}

.nav-links{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap: 6px;
}

/* Mobile */
@media (max-width: 980px){
  .header-inner{
    flex-wrap: wrap;
    justify-content: space-between; /* logo à gauche, burger à droite */
  }

  .nav-burger{ display:flex; }

  /* On cache les liens tant que le burger est fermé */
  .nav-links{
    display:none;
    width:100%;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,.10);
    flex-direction: column;
    gap: 8px;
  }

  .nav-links a{
    width:100%;
    text-align:center;
    margin-left: 0;
  }

  /* Quand on ouvre */
  .nav-toggle:checked + .nav-burger + .nav-links{
    display:flex;
  }

  /* Animation burger -> X */
  .nav-toggle:checked + .nav-burger span:nth-child(1){
    transform: translateY(8px) rotate(45deg);
  }
  .nav-toggle:checked + .nav-burger span:nth-child(2){
    opacity: 0;
  }
  .nav-toggle:checked + .nav-burger span:nth-child(3){
    transform: translateY(-8px) rotate(-45deg);
  }
}
/* =========================
   Réseaux sociaux (Footer + Menu mobile)
   Icônes blanches (SVG)
   ========================= */

/* Footer icons */
.footer-social{
  margin-top: 14px;
  display:flex;
  justify-content:center;
  gap:14px;
}
.footer-social a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:40px;
  height:40px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.footer-social a:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.10);
  border-color: rgba(201,164,106,.55);
}
.footer-social img{
  width:22px;
  height:22px;
}

/* Menu mobile icons (dans le burger) */
.nav-social{
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.10);
  display:flex;
  justify-content:center;
  gap:14px;
}
.nav-social a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:40px;
  height:40px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
}
.nav-social img{
  width:22px;
  height:22px;
}
/* =========================
   FIX : menu desktop plus "pro"
   (on garde le style "boutons" seulement sur mobile)
   ========================= */

/* Desktop : liens plus sobres */
@media (min-width: 981px){
  .main-nav a{
    border: none !important;
    background: transparent !important;
    padding: 10px 12px !important;
    border-radius: 10px !important;
    margin-left: 10px !important;
    opacity: .92;
  }

  .main-nav a:hover{
    opacity: 1;
    background: rgba(255,255,255,.08) !important;
  }

  /* Desktop : on n'affiche pas le bloc réseaux prévu pour le menu mobile */
  .nav-social{
    display: none !important;
  }
}

/* Mobile : on garde tes styles actuels (boutons + burger) */
@media (max-width: 980px){
  .main-nav a{
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.04);
    margin-left: 0;
  }
}
/* =========================
   Recrutement
   ========================= */

.jobs-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.job-card{
  background: rgba(201,164,106,.08);
  border: 1px dashed rgba(201,164,106,.35);
  border-radius: 16px;
  padding: 14px;
}

.job-card h2{
  margin: 0 0 6px;
  font-size: 1.1rem;
  color: #3a2b23;
}

.job-meta{
  margin: 6px 0 10px;
  opacity: .9;
  font-size: .95rem;
}

.job-list{
  margin: 0;
  padding-left: 18px;
}
.job-list li{ margin: 8px 0; }

/* Form */
.apply-form input,
.apply-form select,
.apply-form textarea{
  width:100%;
  margin-top: 6px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(42,31,26,.18);
  background: #fff;
}

.form-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}

.form-full{ grid-column: 1 / -1; }

.btn-primary{
  display:inline-block;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(201,164,106,.35);
  background: rgba(201,164,106,.18);
  font-weight: 800;
  cursor: pointer;
}
.btn-primary:hover{
  background: rgba(201,164,106,.26);
}

@media (max-width: 780px){
  .form-grid{ grid-template-columns: 1fr; }
}
