/* Vitrine Mallo Bois — feuille de style unique.
   Pas de framework : quelques jetons, une grille, des composants nommés. */

:root {
  --encre: #1f2328;
  --encre-douce: #4b5259;
  --papier: #ffffff;
  --gris: #f3f2f2;
  --trait: #d9d6d2;
  --accent: #6b4a2f;        /* chêne foncé — remplace le violet par défaut d'Odoo */
  --accent-sombre: #4f351f;
  --accent-clair: #f4ede5;
  --focus: #1d4ed8;
  --police: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Ubuntu, "Noto Sans", Arial, sans-serif;
  --mesure: 68ch;
  --largeur: 1180px;
  --tap: 48px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--police);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--encre);
  background: var(--papier);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 0.15em; }
a:hover { color: var(--accent-sombre); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.saut { position: absolute; left: -999px; top: 0; background: var(--papier); padding: .5rem 1rem; z-index: 100; }
.saut:focus { left: 1rem; top: 1rem; }

h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .6em; font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h4 { font-size: 1.125rem; }
p { margin: 0 0 1em; max-width: var(--mesure); }
.lead { font-size: 1.25rem; }
ul, ol { padding-left: 1.4em; max-width: var(--mesure); }
li { margin-bottom: .35em; }

.conteneur { width: min(100% - 2.5rem, var(--largeur)); margin-inline: auto; }

/* ── Boutons ─────────────────────────────────────────────────────────── */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: var(--tap); padding: .7rem 1.5rem;
  background: var(--accent); color: #fff; border: 2px solid var(--accent);
  border-radius: 6px; font-weight: 600; text-decoration: none; cursor: pointer;
  font-size: 1rem; font-family: inherit;
}
.bouton:hover { background: var(--accent-sombre); border-color: var(--accent-sombre); color: #fff; }
.bouton--clair { background: #fff; color: var(--accent); }
.bouton--clair:hover { background: var(--accent-clair); color: var(--accent-sombre); }
.bouton--contour { background: transparent; color: #fff; border-color: #fff; }
.bouton--contour:hover { background: #fff; color: var(--encre); }

/* ── En-tête ─────────────────────────────────────────────────────────── */
.entete { background: var(--papier); border-bottom: 1px solid var(--trait); position: sticky; top: 0; z-index: 20; }
.entete__barre { display: flex; align-items: center; gap: 1rem; min-height: 72px; }
.marque { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--encre); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.marque img { width: 44px; height: 60px; }
.nav__liste { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; flex-wrap: wrap; }
.nav__liste a { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 .85rem; text-decoration: none; color: var(--encre); border-radius: 6px; font-weight: 500; }
.nav__liste a:hover { background: var(--gris); }
.nav__liste a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .35em; text-decoration-color: var(--accent); }
.nav__cta { margin-left: .5rem; }
.langue { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 .75rem; text-decoration: none; color: var(--encre-douce); font-weight: 600; font-size: .9375rem; border-radius: 6px; }
.langue:hover { background: var(--gris); }
.entete__contact { font-size: .9375rem; }
.entete__contact a { color: var(--encre-douce); text-decoration: none; display: inline-flex; align-items: center; min-height: var(--tap); }
.entete__contact a:hover { color: var(--accent-sombre); text-decoration: underline; }
.menu-bouton { margin-left: auto; display: inline-flex; align-items: center; gap: .5rem; min-height: var(--tap); padding: 0 .85rem; cursor: pointer; border: 1px solid var(--trait); border-radius: 6px; font: inherit; font-weight: 600; background: var(--papier); color: var(--encre); }
.menu-bouton[aria-expanded="true"] { background: var(--gris); }
.nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--papier); border-bottom: 1px solid var(--trait); padding: .75rem 1.25rem 1.25rem; box-shadow: 0 12px 24px rgba(0,0,0,.08); }
/* Avec JavaScript, le menu se replie derrière le bouton ; sans, il reste déplié. */
.js .nav:not(.nav--ouverte) { display: none; }
.nav__liste { flex-direction: column; align-items: stretch; }
.nav__liste a { width: 100%; }
.entete__contact { display: flex; flex-direction: column; gap: 0; margin: .5rem 0 0; padding-top: .5rem; border-top: 1px solid var(--trait); }
@media (min-width: 960px) {
  .menu-bouton { display: none; }
  .nav, .js .nav:not(.nav--ouverte) { display: flex; align-items: center; margin-left: auto; position: static; padding: 0; border: 0; box-shadow: none; background: transparent; }
  .nav__liste { flex-direction: row; align-items: center; }
  .nav__liste a { width: auto; }
  .entete__contact { flex-direction: row; gap: 1rem; margin: 0 0 0 1rem; padding: 0; border: 0; }
}

/* ── Sections ────────────────────────────────────────────────────────── */
.section { padding: clamp(3rem, 8vw, 6rem) 0; }
.section--grise { background: var(--gris); }
.section--centree { text-align: center; }
.section--centree p { margin-inline: auto; }
.bandeau {
  position: relative; color: #fff; isolation: isolate;
  background-size: cover; background-position: center;
  display: grid; align-items: center;
}
.bandeau::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.55)); }
.bandeau a:not(.bouton) { color: #fff; }
.bandeau h1, .bandeau h2 { text-shadow: 0 2px 12px rgba(0,0,0,.35); }
.bandeau--accueil { min-height: min(88vh, 820px); padding: clamp(4rem, 10vw, 8rem) 0; }
.bandeau--accueil::before { background: linear-gradient(90deg, rgba(20,12,6,.62) 0%, rgba(20,12,6,.35) 60%, rgba(20,12,6,.2) 100%); }
.bandeau--accueil h1 { max-width: 20ch; }
.bandeau__filet { width: 100%; max-width: 640px; height: 1px; background: rgba(255,255,255,.55); margin: 1.5rem 0; }
.bandeau--foret { background-image: url("/images/foret-768.webp"); padding: clamp(3rem, 8vw, 6rem) 0; }
.bandeau--parc { background-image: url("/images/parc-a-paquets-768.webp"); padding: clamp(4rem, 10vw, 7rem) 0; text-align: center; }
.bandeau--parc p { margin-inline: auto; }
.bandeau--accueil { background-image: url("/images/accueil-table-768.webp"); }
@media (min-width: 769px) {
  .bandeau--accueil { background-image: url("/images/accueil-table-1280.webp"); }
  .bandeau--foret { background-image: url("/images/foret-1280.webp"); }
  .bandeau--parc { background-image: url("/images/parc-a-paquets-1280.webp"); }
}
@media (min-width: 1281px) {
  .bandeau--accueil { background-image: url("/images/accueil-table-1920.webp"); }
  .bandeau--foret { background-image: url("/images/foret-1920.webp"); }
  .bandeau--parc { background-image: url("/images/parc-a-paquets-1920.webp"); }
}
.bandeau .bouton { margin-top: .5rem; }

.deux-colonnes { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 800px) { .deux-colonnes { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.deux-colonnes img { border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,.12); }

.galerie { display: grid; gap: 1rem; margin-top: 2rem; }
@media (min-width: 640px) { .galerie { grid-template-columns: repeat(3, 1fr); } }
.galerie img { border-radius: 8px; width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.galerie--cinq { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .galerie--cinq { grid-template-columns: repeat(3, 1fr); } }
.galerie figure { margin: 0; }
.galerie figcaption { font-size: .875rem; color: var(--encre-douce); margin-top: .35rem; }

.piliers { display: grid; gap: 1.5rem; margin-top: 2rem; }
@media (min-width: 720px) { .piliers { grid-template-columns: repeat(3, 1fr); } }
.pilier { background: var(--papier); border: 1px solid var(--trait); border-radius: 8px; padding: 1.5rem; }
.pilier h3 { margin-top: 0; }
.pilier p { margin-bottom: 0; font-size: 1rem; }

/* ── Pages intérieures ───────────────────────────────────────────────── */
.page-titre { background: var(--gris); padding: clamp(2.5rem, 6vw, 4rem) 0; }
.page-titre p { color: var(--encre-douce); margin-bottom: 0; }
.prose h3 { margin-top: 2.2em; }
.prose h4 { margin-top: 1.4em; }
.prose--cgv { font-size: 1rem; }
.prose--cgv h3 { font-size: 1.2rem; text-transform: none; }
.prose--cgv h4 { font-size: 1.05rem; color: var(--encre-douce); }
.encadre { background: var(--accent-clair); border-left: 4px solid var(--accent); padding: 1rem 1.25rem; border-radius: 0 6px 6px 0; margin: 1.5rem 0; max-width: var(--mesure); }
.encadre p:last-child { margin-bottom: 0; }
.coordonnees { list-style: none; padding: 0; margin: 0 0 2rem; }
.coordonnees li { margin-bottom: .5rem; }
.coordonnees a { display: inline-flex; align-items: center; min-height: 32px; }
address { font-style: normal; }

/* ── Formulaires ─────────────────────────────────────────────────────── */
.formulaire { display: grid; gap: 1.1rem; max-width: 640px; }
@media (min-width: 640px) { .formulaire { grid-template-columns: 1fr 1fr; } .formulaire .champ--large { grid-column: 1 / -1; } }
.champ label { display: block; font-weight: 600; margin-bottom: .3rem; }
.champ label .facultatif { font-weight: 400; color: var(--encre-douce); font-size: .9375rem; }
.champ input, .champ select, .champ textarea {
  width: 100%; min-height: var(--tap); padding: .6rem .8rem; font: inherit; color: var(--encre);
  background: #fff; border: 1px solid #8a8f94; border-radius: 6px;
}
.champ textarea { min-height: 8rem; resize: vertical; }
.champ input:focus, .champ select:focus, .champ textarea:focus { border-color: var(--focus); outline: 3px solid var(--focus); outline-offset: 1px; }
.champ .aide { font-size: .9375rem; color: var(--encre-douce); margin: .3rem 0 0; }
.formulaire__pied { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.formulaire__pied p { margin: 0; font-size: .9375rem; color: var(--encre-douce); }
.message-envoye { display: none; }
.message-envoye[data-visible] { display: block; }

/* ── Offres d'emploi ─────────────────────────────────────────────────── */
.offre { display: grid; gap: 2rem; border: 1px solid var(--trait); border-radius: 10px; padding: clamp(1.25rem, 3vw, 2.5rem); background: var(--papier); }
@media (min-width: 900px) { .offre { grid-template-columns: 3fr 2fr; } }
.offre img { border-radius: 8px; width: 100%; height: 100%; object-fit: cover; max-height: 560px; }
.etiquettes { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 0 0 1.25rem; }
.etiquettes li { background: var(--gris); border-radius: 999px; padding: .3rem .85rem; font-size: .9375rem; }
.offre__actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin-top: 1rem; }

/* ── Pied de page ────────────────────────────────────────────────────── */
.pied { background: var(--encre); color: #d7dbe0; margin-top: auto; }
.pied a { color: #fff; }
.pied__aide { padding: clamp(2.5rem, 6vw, 4rem) 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.pied__aide h2 { color: #fff; }
.pied__grille { display: grid; gap: 2rem; }
@media (min-width: 720px) { .pied__grille { grid-template-columns: repeat(3, 1fr); } }
.pied__grille h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; color: #aab1ba; margin-bottom: .5rem; }
.pied__grille a { display: inline-flex; align-items: center; min-height: var(--tap); font-size: 1.125rem; }
.pied__bas { padding: 2rem 0; display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; justify-content: space-between; }
.pied__bas img { width: 72px; height: 72px; }
.pied__bas address { font-size: .9375rem; line-height: 1.5; }
.pied__liens { display: flex; flex-wrap: wrap; gap: 0 1.25rem; list-style: none; padding: 0; margin: 0; }
.pied__liens a { display: inline-flex; align-items: center; min-height: var(--tap); text-decoration: none; }
.pied__liens a:hover { text-decoration: underline; }
.pied__mention { width: 100%; font-size: .875rem; color: #aab1ba; margin: 0; }

body { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print { .entete, .pied__aide, .bouton { display: none !important; } .bandeau { color: var(--encre); } .bandeau::before { display: none; } }
