/* =========================================================
   L'Imprimeur Simon — feuille de style commune
   Titres et menu : Gotham (police de marque, sous licence).
   Montserrat sert de remplacement tant que Gotham n'est pas chargée.
   Textes courants : Arial, comme sur le site actuel.
   ========================================================= */
:root {
  --noir: #1d1d1b;
  --gris: #e6e6e4;
  --filet: #c9c9c5;
  --police-titre: "Gotham", "Montserrat", sans-serif;
  --police-texte: Arial, Helvetica, sans-serif;
  --largeur: 78rem;          /* ≈ 1248 px, largeur du contenu */
  --entete: 11.25rem;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: var(--police-texte); color: var(--noir); background: #fff; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--noir); outline-offset: 3px; }
.visuellement-cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- En-tête ---------- */
.entete {
  position: fixed; top: 0; left: 0; z-index: 1000;
  width: 100%; height: var(--entete); background: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  padding: .6rem 0 .9rem;
}
.logo img { width: 15.5rem; height: auto; }

.menu { display: flex; align-items: center; }
.menu li { display: flex; align-items: center; }
.menu li + li::before { content: ""; width: 1px; height: 14px; background: var(--noir); }
.menu a {
  font-family: var(--police-titre); font-weight: 500; font-size: 1.125rem;
  text-transform: uppercase; letter-spacing: .02em;
  margin: 0 3rem; padding: .2rem 0;
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.menu a:hover, .menu a:focus-visible { font-weight: 700; border-color: var(--noir); }

.burger, .menu-mobile { display: none; }

/* ---------- Barre latérale (réseaux + contact) ---------- */
.lateral {
  position: fixed; z-index: 900; left: 6.3rem; bottom: 13rem;
  display: flex; flex-direction: column; align-items: center; gap: 1.4rem;
}
.lateral .reseau svg { width: 24px; height: 24px; display: block; transition: transform .3s; }
.lateral .reseau:hover svg { transform: scale(1.1); }
.lateral .contact {
  writing-mode: vertical-rl; transform: rotate(180deg);
  font-size: 1.125rem; font-weight: 300; margin-top: 1.5rem;
  border-left: 1px solid transparent;
}
.lateral .contact:hover { border-color: var(--noir); }

/* ---------- Contenu ---------- */
main { padding-top: calc(var(--entete) + 1rem); }
.conteneur { max-width: var(--largeur); margin: 0 auto; padding: 0 1rem; }

.texte p { font-size: 1.125rem; line-height: 1.56; margin: 0 0 1.75rem; }

h1.titre-page {
  font-family: var(--police-titre); font-weight: 700; font-size: 3rem;
  text-transform: uppercase; letter-spacing: .03em; text-align: center;
  margin: 2.4rem 0 5.2rem;
}
.accroche {
  font-family: var(--police-titre); font-weight: 700; font-size: 1.25rem;
  margin: 0 0 3rem;
}
.intro { padding: 0 1rem; }

.photo { margin: 0; background: var(--gris); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-large { height: 525px; }
.photo-haute { height: 620px; }

.bloc { display: grid; grid-template-columns: 1fr 1fr; }
.bloc .photo { height: 416px; }
.bloc .texte { padding: 5.3rem 3rem 0; }
.bloc-inverse .texte { padding: 3.6rem 3rem 0 2.7rem; }
.bloc + .bloc { margin-top: 4rem; }

.paragraphe-seul { margin: 4.3rem 0 4rem; }
.paragraphe-seul p { margin: 0; }
.espace { height: 4rem; }

/* Emplacement d'image manquante (affiché par js/main.js) */
.image-manquante {
  width: 100%; height: 100%; min-height: 12rem;
  display: flex; align-items: center; justify-content: center; text-align: center;
  background: var(--gris); color: #6b6b68; font: .9rem/1.4 var(--police-texte); padding: 1rem;
}

/* ---------- Savoir-faire : blocs image + texte ---------- */
.duo {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem;
  align-items: start; margin: 4.5rem 0;
}
.duo .texte { padding-top: 3.5rem; }
.duo-image-droite .texte { text-align: right; }
.duo .photo img { width: 100%; height: 420px; object-fit: cover; }

.section-texte { margin: 4.5rem 0; }
.section-texte h2 {
  font-family: var(--police-titre); font-weight: 700; font-size: 1.125rem;
  text-transform: uppercase; letter-spacing: .02em; margin: 0 0 2.5rem;
}
.section-texte h3, .duo h3 {
  font-family: var(--police-titre); font-weight: 700; font-size: 1.125rem;
  margin: 0 0 2rem;
}
.duo h2 {
  font-family: var(--police-titre); font-weight: 700; font-size: 1.125rem;
  text-transform: uppercase; letter-spacing: .02em; margin: 0 0 1rem;
}
.duo h3 { margin-bottom: 2.5rem; }
.liste { margin: 0; padding: 0; list-style: none; }
.liste li {
  position: relative; padding-left: 1.6rem; margin-bottom: .45rem;
  font-size: 1.125rem; line-height: 1.56;
}
.liste li::before {
  content: ""; position: absolute; left: .35rem; top: .7em;
  width: 6px; height: 6px; background: var(--noir);
}

/* ---------- Recrutement ---------- */
.banniere { position: relative; height: 460px; overflow: hidden; margin-bottom: 5rem; }
.banniere img { width: 100%; height: 100%; object-fit: cover; }
.banniere::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.45); }
.banniere-contenu {
  position: absolute; inset: 0; z-index: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; color: #fff; max-width: 60rem; margin: 0 auto;
  /* la réserve en haut empêche le titre de passer sous le logo sur écran bas */
  padding: 10rem 1.5rem 3rem;
}
.banniere h1 {
  font-family: var(--police-titre); font-weight: 700; font-size: clamp(2rem, 4vw, 3.2rem);
  margin: 0 0 1.4rem;
}
.banniere p { margin: 0; font-size: 1rem; line-height: 1.6; max-width: 48rem; }

.titre-section {
  font-family: var(--police-titre); font-weight: 700; font-size: 2.1rem;
  margin: 0 0 2.5rem;
}
.titre-section.centre { text-align: center; }
.chapo-centre { text-align: center; font-size: 1rem; line-height: 1.6; margin: 0 0 3rem; }

.rejoindre { display: grid; grid-template-columns: 1fr 16rem; gap: 3.5rem; align-items: start; margin-bottom: 3.5rem; }
.rejoindre-inverse { grid-template-columns: 16rem 1fr; }
.arguments article { margin-bottom: 2rem; }
.arguments h3 {
  font-family: var(--police-titre); font-weight: 700; font-style: italic;
  font-size: 1.05rem; margin: 0 0 .8rem;
}
.arguments p { margin: 0; font-size: .95rem; line-height: 1.6; }
.photo-colonne { margin: 0; background: var(--gris); }
.photo-colonne img { width: 100%; height: 22rem; object-fit: cover; }
.photo-colonne .image-manquante { height: 22rem; }

.video-bloc { margin: 4.5rem 0 5.5rem; }
.video-titre {
  font-family: var(--police-titre); font-weight: 700; font-style: italic;
  font-size: 1.1rem; text-align: center; margin: 0 0 2rem;
}
.video { max-width: 44rem; margin: 0 auto; aspect-ratio: 16 / 9; background: #000; }
.video iframe { width: 100%; height: 100%; border: 0; display: block; }

.offres-bloc { margin-bottom: 5rem; }
.offres { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.offres > li { display: flex; }
.offre {
  background: #f9eceb; min-height: 9rem; padding: 1.5rem 1rem; width: 100%;
  display: flex; align-items: center; justify-content: center; text-align: center;
  font-family: var(--police-titre); font-weight: 700; font-size: 1.15rem; line-height: 1.35;
  transition: background .25s;
}
a.offre:hover, a.offre:focus-visible { background: #f2ddda; }

/* ---------- Offre d'emploi ---------- */
.offre-page { padding-bottom: 5rem; }
.fil { margin: 0 0 2rem; font-size: .95rem; }
.fil a { border-bottom: 1px solid transparent; }
.fil a:hover { border-color: var(--noir); }

.offre-entete { margin-bottom: 1.2rem; }
.offre-entete h1 {
  font-family: var(--police-titre); font-weight: 700; font-size: clamp(2rem, 4vw, 3rem);
  margin: 0 0 1rem; letter-spacing: -.01em;
}
.offre-meta { margin: 0; font-size: .95rem; line-height: 1.6; }
/* Photo en portrait, habillée par le texte : elle n'écarte pas les rubriques */
.offre-photo { float: right; width: 17rem; margin: 0 0 2rem 2.5rem; background: var(--gris); }
.offre-photo img { width: 100%; height: auto; display: block; }

.offre-section { margin-bottom: 2.8rem; }
.offre-section h2 {
  font-size: .9rem; font-weight: 500; text-transform: uppercase; letter-spacing: .04em;
  color: #4a4a48; margin: 0 0 1.2rem;
}
.offre-section p { margin: 0; font-size: .95rem; line-height: 1.65; max-width: 42rem; }

.encarts { display: flex; flex-wrap: wrap; gap: 1.5rem; margin: 3rem 0; clear: both; }
.encart { width: 15rem; }
.encart { background: #e2e2e0; padding: 1.5rem; }
.encart h2 {
  font-size: .9rem; font-weight: 500; text-transform: uppercase; letter-spacing: .04em;
  color: #4a4a48; margin: 0 0 1.2rem;
}
.encart ul { list-style: none; margin: 0; padding: 0; font-size: .95rem; line-height: 1.75; }

.candidature { margin: 3rem 0 0; font-size: .95rem; }
.candidature a { border-bottom: 1px solid var(--noir); }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 35% 1fr; gap: 3.2rem; margin-bottom: 4rem; }

.coordonnees { background: var(--noir); color: #fff; padding: 2.6rem 2.2rem; }
.coordonnees h2 {
  font-family: var(--police-titre); font-weight: 700; font-size: 1.4rem; margin: 0 0 2rem;
}
.coordonnees address { font-style: normal; font-size: 1.0625rem; line-height: 1.6; margin: 0 0 1.6rem; }
.coordonnees .seconde { margin-top: 3.2rem; }
.coordonnees .ligne { display: flex; align-items: center; gap: .9rem; margin: 0 0 1.4rem; font-size: 1.0625rem; }
.coordonnees .picto { width: 20px; height: 20px; flex: 0 0 20px; }
.coordonnees .picto svg { width: 20px; height: 20px; display: block; }
.coordonnees a { border-bottom: 1px solid transparent; }
.coordonnees a:hover { border-color: #fff; }

.formulaire h2 {
  font-family: var(--police-titre); font-weight: 700; font-size: 1.25rem; margin: 0 0 2.5rem;
}
.champs { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem 2.2rem; }
.champ.large { grid-column: 1 / -1; }
.champ label {
  display: block; font-family: var(--police-titre); font-weight: 700; font-size: .95rem; margin-bottom: .6rem;
}
.champ .mention { float: right; font-weight: 400; font-family: var(--police-texte); color: #6b6b68; }
.champ input, .champ textarea {
  width: 100%; font: inherit; color: inherit;
  border: 1px solid var(--filet, #d6d6d2); background: #fff; padding: .85rem 1rem;
}
.champ textarea { resize: vertical; }
.champ input:focus, .champ textarea:focus { outline: 2px solid var(--noir); outline-offset: -1px; }

.consentement { display: flex; gap: .9rem; align-items: flex-start; margin: 2.5rem 0 0; }
.consentement input { margin-top: .35rem; width: 1rem; height: 1rem; flex: 0 0 1rem; }
.consentement label { font-size: 1.0625rem; line-height: 1.55; }

.envoi { display: flex; justify-content: flex-end; margin-top: 2.5rem; }
.envoi button {
  font-family: var(--police-titre); font-weight: 700; font-size: 1.0625rem;
  background: var(--noir); color: #fff; border: 0; padding: 1rem 2.2rem; cursor: pointer;
}
.envoi button:hover { background: #000; }

/* ---------- Démarche responsable ---------- */
.duo-haut .photo img { height: 490px; }

.logos { display: flex; justify-content: center; align-items: center; gap: 6rem; margin: 3.5rem 0 4.5rem; }
.logos img { max-height: 5.5rem; max-width: 18rem; width: auto; }
.logos-trois img { max-height: 9rem; max-width: 17rem; }
.logos .image-manquante { min-height: 5rem; width: 14rem; }

.avantages {
  display: grid; grid-template-columns: 1fr 1fr;
  column-gap: 4rem; row-gap: 4rem; margin: 3rem 0 4.5rem;
}
.avantage { display: grid; grid-template-columns: 7rem 1fr; gap: 1.5rem; align-items: start; }
.avantage img { width: 100%; height: auto; }
.avantage p { margin: 0; font-size: 1.0625rem; line-height: 1.55; }
.avantage .image-manquante { min-height: 6rem; }

/* ---------- Réalisations : galerie ---------- */
.galerie {
  max-width: 1230px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  column-gap: 2rem; row-gap: 5.5rem;
}
.carte { position: relative; margin: 0; }
.carte img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--gris); }
.carte-titre {
  position: absolute; left: 0; top: calc(100% - 21px);
  background: var(--noir); color: #fff;
  font-family: var(--police-titre); font-weight: 700; font-size: 1.25rem; line-height: 1.35;
  padding: .8rem 1.5rem;
}
.carte .image-manquante { aspect-ratio: 3 / 2; min-height: 0; }

/* ---------- Accueil : diaporama ---------- */
.diapo { position: relative; max-width: 86rem; margin: 0 auto; padding: 0 1rem; }
.diapo-slide { display: none; }
.diapo-slide.actif { display: block; animation: fondu .6s ease; }
@keyframes fondu { from { opacity: 0; } to { opacity: 1; } }

/* Le titre de la diapo occupe sa place mais reste invisible ;
   il n'apparaît qu'au survol de l'entrée de menu correspondante,
   comme sur le site d'origine. */
.diapo-titre {
  position: relative; text-align: center; padding: .5rem 0;
  font-family: var(--police-titre); font-weight: 500; font-size: 1.25rem; text-transform: uppercase;
  display: none;
}
.diapo-slide.montrer-titre .diapo-titre { display: block; }
.diapo-titre::after {
  content: ""; position: absolute; bottom: 0; left: calc(50% - 1rem);
  width: 2rem; height: 2px; background: var(--noir);
}

.diapo-slide img { display: block; width: 100%; max-width: 1230px; margin: 0 auto; height: 520px; object-fit: cover; }

/* Flèches : en bas, au centre de l'image */
.diapo-controles {
  position: absolute; bottom: 2.5rem; left: 0; right: 0;
  display: flex; justify-content: center; gap: .6rem;
}
.diapo-fleche { background: none; border: 0; padding: 0; cursor: pointer; line-height: 0; }
.diapo-fleche svg { width: 26px; height: 26px; display: block; transition: transform .2s; }
.diapo-fleche:hover svg { transform: scale(1.1); }

.texte-accueil { text-align: center; padding-top: 3rem; }
.texte-accueil p { font-size: 1rem; line-height: 1.5; margin: 0; }

@media (min-width: 1536px) {
  .diapo-slide img { height: 770px; }
}

/* ---------- Pied de page ---------- */
.pied { padding: 3rem 1rem; font-size: .95rem; }
.pied-ligne { max-width: 50rem; margin: 0 auto; display: flex; justify-content: center; align-items: center; gap: 1rem; }
.pied-liens { display: flex; }
.pied-liens li { display: flex; align-items: center; }
.pied-liens li + li::before { content: ""; width: 1px; height: 14px; background: var(--noir); margin: 0 .6rem; }
.pied a { border-bottom: 1px solid transparent; }
.pied a:hover { border-color: var(--noir); }
.pied-europe { max-width: 50rem; margin: 2.2rem auto 0; display: flex; align-items: center; gap: 2rem; font-size: .875rem; line-height: 1.45; }
.pied-europe img { max-height: 3rem; width: auto; }
.pied-europe p { margin: 0; }

/* ---------- Écrans moyens ---------- */
@media (max-width: 1279px) {
  .menu a { margin: 0 1.5rem; font-size: 1rem; }
  .lateral { left: 2rem; }
}

/* ---------- Tablette / mobile ---------- */
@media (max-width: 1023px) {
  :root { --entete: 6rem; }
  .entete { flex-direction: row; justify-content: center; padding: .5rem 0; }
  .logo img { width: 15rem; }
  .menu { display: none; }

  .burger {
    display: flex; flex-direction: column; align-items: center; gap: .5rem;
    position: absolute; top: 1.5rem; right: 1rem;
    background: none; border: 0; cursor: pointer; font: 500 .75rem var(--police-titre); color: var(--noir);
  }
  .burger span, .burger span::before, .burger span::after {
    display: block; width: 1.5rem; height: 2px; background: var(--noir); position: relative; transition: .3s;
  }
  .burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
  .burger span::before { top: -7px; }
  .burger span::after { top: 7px; }
  .burger[aria-expanded="true"] span { background: transparent; }
  .burger[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
  .burger[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

  .menu-mobile {
    display: block; position: fixed; top: var(--entete); left: 0; width: 100%; height: calc(100% - var(--entete));
    background: #000; padding: 1.75rem; visibility: hidden; opacity: 0; transition: .3s; z-index: 999;
  }
  .menu-mobile.ouvert { visibility: visible; opacity: 1; }
  .menu-mobile a {
    display: block; padding: 1.75rem 2rem; color: #fff;
    font-family: var(--police-titre); font-weight: 700; font-size: 1.25rem; text-transform: uppercase;
  }

  /* la barre latérale devient une barre fixe en bas d'écran */
  .lateral {
    left: 0; right: 0; bottom: 0; height: 79px; background: #fff;
    flex-direction: row; justify-content: center; gap: 2.5rem;
  }
  .lateral .contact {
    writing-mode: horizontal-tb; transform: none; margin: 0 1rem 0 0; order: -1;
    border-left: 0; border-bottom: 1px solid transparent;
  }

  main { padding-top: var(--entete); }
  h1.titre-page { font-size: 2.2rem; margin: 2rem 0 3rem; }
  .bloc { grid-template-columns: 1fr; }
  .bloc-inverse .texte { order: 2; }
  .bloc .texte, .bloc-inverse .texte { padding: 2.5rem 1rem 0; }
  .bloc .photo, .photo-large, .photo-haute { height: 300px; }
  .encarts { grid-template-columns: 1fr 1fr; }

  .banniere { height: 380px; margin-bottom: 3rem; }
  .rejoindre, .rejoindre-inverse { grid-template-columns: 1fr; gap: 2rem; }
  .rejoindre-inverse .photo-colonne { order: 2; }
  .photo-colonne img, .photo-colonne .image-manquante { height: 16rem; }
  .offres { grid-template-columns: 1fr 1fr; }
  .titre-section { font-size: 1.6rem; }

  .contact { grid-template-columns: 1fr; gap: 2rem; }
  .champs { grid-template-columns: 1fr; }
  .champ.vide { display: none; }

  .duo-haut .photo img { height: 300px; }
  .logos { flex-direction: column; gap: 2.5rem; }
  .avantages { grid-template-columns: 1fr; row-gap: 2.5rem; }
  .avantage { grid-template-columns: 5rem 1fr; gap: 1rem; }

  .duo { grid-template-columns: 1fr; gap: 0; margin: 3rem 0; }
  .duo .texte { padding-top: 2rem; }
  .duo-image-droite .texte { text-align: left; }
  .duo .photo img { height: 300px; }
  .section-texte { margin: 3rem 0; }

  .galerie { grid-template-columns: 1fr; row-gap: 5rem; }
  .carte-titre { font-size: 1.05rem; padding: .6rem 1.1rem; }

  .diapo { padding: 0; }
  .diapo-slide img { height: 600px; }
  .diapo-controles { bottom: 1.25rem; }
  .pied { padding-bottom: 7rem; }
  .pied-ligne, .pied-europe { flex-direction: column; text-align: center; }
  .pied-liens { flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 450px) {
  .diapo-slide img { height: 420px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}


/* =========================================================
   Pages Recrutement et offres d'emploi
   En-tête non figé, pas de menu ni de barre latérale,
   contenu plus large et blocs alignés entre eux.
   ========================================================= */
.page-plein main { padding-top: 0; }
.conteneur-large { max-width: 88rem; }

.entete-legere {
  display: flex; justify-content: center; align-items: center;
  padding: 1.6rem 1rem; background: #fff;
}
.entete-legere .logo img { width: 15.5rem; height: auto; }

/* Page Recrutement : logo blanc posé sur la photo plein écran */
.entete-sur-image {
  position: absolute; top: 0; left: 0; width: 100%; z-index: 10;
  background: none; padding-top: 2.2rem;
}
.entete-sur-image .logo img { filter: brightness(0) invert(1); }

.page-plein .banniere { height: 100vh; margin-bottom: 4.5rem; }
.page-plein .banniere-contenu { max-width: 64rem; }

/* Vidéo et offres alignées sur la largeur des blocs texte + image */
.page-plein .video { max-width: none; }
.page-plein .offres { grid-template-columns: repeat(3, 1fr); }
.page-plein .rejoindre { grid-template-columns: 1fr 22rem; }
.page-plein .rejoindre-inverse { grid-template-columns: 22rem 1fr; }
.page-plein .photo-colonne img { height: 26rem; }

/* Offre : colonne resserrée pour rapprocher le texte de l'image */
.offre-page.conteneur-large { max-width: 66rem; }
.page-plein .offre-entete { margin-bottom: 1.8rem; }
.page-plein .offre-entete h1 { margin-bottom: .8rem; }
.page-plein .offre-section { margin-bottom: 2.2rem; }
.page-plein .offre-section p { max-width: none; }

@media (max-width: 1023px) {
  .page-plein .banniere { height: 70vh; }
  .page-plein .offres { grid-template-columns: 1fr 1fr; }
  .page-plein .rejoindre, .page-plein .rejoindre-inverse { grid-template-columns: 1fr; }
  .page-plein .photo-colonne img { height: 16rem; }
  .offre-photo { float: none; width: 100%; max-width: 20rem; margin: 0 0 2rem; }
  .entete-sur-image { padding-top: 1.2rem; }
  .page-plein .pied { padding-bottom: 3rem; }
}

@media (max-width: 620px) {
  .page-plein .offres { grid-template-columns: 1fr; }
}

/* Recrutement : bloc "Un cadre de vie privilégié" en pleine largeur */
.cadre-de-vie { margin: 1rem 0 4rem; }
.cadre-de-vie h3 {
  font-family: var(--police-titre); font-weight: 700; font-style: italic;
  font-size: 1.05rem; margin: 0 0 .8rem;
}
.cadre-de-vie p { margin: 0; font-size: .95rem; line-height: 1.6; }

/* Pages légales */
.legal { padding-bottom: 4rem; }
.legal h2 {
  font-family: var(--police-titre); font-weight: 700; font-size: .95rem;
  text-transform: uppercase; letter-spacing: .02em; margin: 2.8rem 0 1.2rem;
}
.legal p { font-size: .95rem; line-height: 1.65; margin: 0 0 .9rem; max-width: 62rem; }
.legal .intervenants { margin-bottom: 1.6rem; }
.legal table { border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: .95rem; }
.legal th, .legal td { border: 1px solid var(--filet); padding: .6rem 1rem; text-align: left; }
.legal th { font-weight: 700; background: var(--gris-papier, #f3f3f1); }

/* =========================================================
   Sélecteur de langue (FR / EN / DE)
   Le bouton actif est souligné. Le reste du site est traduit
   par js/i18n.js, qui remplace les textes à l'affichage.
   ========================================================= */
/* Repère de positionnement pour le sélecteur de langue.
   .entete est déjà en position: fixed et .entete-sur-image en absolu :
   il ne faut surtout pas les repositionner ici. */
.entete-legere:not(.entete-sur-image) { position: relative; }

.langues { display: flex; align-items: center; gap: .15rem; }
.entete .langues, .entete-legere .langues {
  position: absolute; top: 1.4rem; right: 1.5rem;
}
.langues button {
  font-family: var(--police-titre); font-weight: 500; font-size: .8rem;
  letter-spacing: .06em; color: var(--noir);
  background: none; border: 0; padding: .3rem .5rem; cursor: pointer;
  border-bottom: 1px solid transparent; transition: border-color .25s, opacity .25s;
  opacity: .55;
}
.langues button:hover { opacity: 1; }
.langues button.actif { opacity: 1; font-weight: 700; border-bottom-color: var(--noir); }
.langues button + button { border-left: 1px solid rgba(29,29,27,.25); }

/* Bannière Recrutement : logo et langues en blanc sur la photo */
.entete-sur-image .langues button { color: #fff; }
.entete-sur-image .langues button.actif { border-bottom-color: #fff; }
.entete-sur-image .langues button + button { border-left-color: rgba(255,255,255,.4); }

/* Avis affiché en tête des pages légales, qui restent en français */
.avis-langue {
  max-width: 62rem; margin: 0 0 2.5rem;
  border-left: 3px solid var(--noir); padding: .9rem 1.2rem;
  background: var(--gris-papier, #f3f3f1);
  font-size: .95rem; line-height: 1.55;
}

@media (max-width: 1023px) {
  /* le menu burger occupe le coin haut droit : les langues passent à gauche.
     Le logo est légèrement réduit pour qu'ils ne se chevauchent pas. */
  .entete .logo img { width: 12rem; }
  .entete .langues { top: 1.9rem; right: auto; left: .4rem; }
  .entete-legere .langues { top: 1.1rem; right: 1rem; }
  .entete-sur-image .langues { top: 1.1rem; }
  .langues button { font-size: .68rem; padding: .2rem .26rem; letter-spacing: .02em; }
}

@media (max-width: 380px) {
  .entete .logo img { width: 10.5rem; }
}

/* Corrections d'affichage sur petit écran (indépendantes de la traduction) */
/* La longue adresse e-mail de Morteau débordait du panneau noir. */
.coordonnees .ligne { flex-wrap: wrap; }
.coordonnees .ligne a { overflow-wrap: anywhere; }

/* Le tableau des cookies était plus large que l'écran. */
.legal table { width: 100%; }
@media (max-width: 760px) {
  .legal table, .legal thead, .legal tbody, .legal tr, .legal th, .legal td { display: block; width: auto; }
  .legal thead { display: none; }
  .legal tr { border: 1px solid var(--filet); margin-bottom: 1rem; }
  .legal td { border: 0; border-bottom: 1px solid var(--filet); }
  .legal td:last-child { border-bottom: 0; }
}

/* Les titres de page très longs (« DATENSCHUTZERKLÄRUNG ») doivent pouvoir
   se couper sur mobile. La césure suit l'attribut lang, posé par js/i18n.js. */
h1.titre-page { overflow-wrap: break-word; hyphens: auto; }
@media (max-width: 1023px) {
  h1.titre-page { font-size: clamp(1.5rem, 7vw, 2.2rem); }
}
