/* Legris Recrutement : styles communs. Couleurs du design system :
   sable #FBF5EA, blanc #FFFFFF, ciel #DCEFFC, azur #1C9BEF, azur-fonce #0A6CB5,
   encre #0E2A47, graphite #3A4150, gris #5F6778, corail #FF6B4A, ligne #E6DDCC */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #FBF5EA; color: #0E2A47; font-family: 'Poppins', 'Segoe UI', system-ui, sans-serif; }
img { max-width: 100%; height: auto; }
a { color: #0A6CB5; }
a:hover { color: #0E2A47; }
.page { min-width: 0; overflow-x: hidden; }
[id] { scroll-margin-top: 96px; }

.evitement { position: absolute; left: -9999px; top: 8px; background: #0E2A47; color: #FFFFFF; padding: 10px 16px; border-radius: 4px; z-index: 100; }
.evitement:focus { left: 8px; }

/* En-tête */
.entete { background: #FBF5EA; border-bottom: 1px solid #E6DDCC; position: sticky; top: 0; z-index: 50; }
.entete-int { max-width: 1200px; margin: 0 auto; padding: 14px 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.entete-logo { display: flex; }
.entete-logo img { height: 52px; width: auto; }
.nav { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 15px; font-weight: 500; }
.nav a { color: #0E2A47; text-decoration: none; padding: 6px 0; }
.nav a:hover { color: #0A6CB5; }
.nav a[aria-current="page"] { color: #0A6CB5; box-shadow: inset 0 -2px 0 #1C9BEF; }

.bouton { text-decoration: none; font-weight: 600; font-size: 15px; padding: 12px 20px; border-radius: 12px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
.bouton-azur-fonce { background: #0A6CB5; color: #FFFFFF; }
.bouton-azur-fonce:hover { background: #0E2A47; color: #FFFFFF; }
.bouton-encre { background: #0E2A47; color: #FFFFFF; }
.bouton-encre:hover { background: #0A6CB5; color: #FFFFFF; }

.etiquette { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.12em; }

/* Pied de page */
.pied { background: #0E2A47; color: #FFFFFF; }
.pied a { color: #DCEFFC; text-decoration: none; }
.pied a:hover { color: #FFFFFF; text-decoration: underline; }
.pied-int { max-width: 1200px; margin: 0 auto; padding: 56px 24px 32px; display: flex; flex-direction: column; gap: 40px; }
.pied-haut { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; }
.pied-marque { display: flex; flex-direction: column; gap: 16px; max-width: 360px; }
.pied-marque img { height: 48px; width: auto; align-self: flex-start; }
.pied-nav { display: flex; flex-wrap: wrap; gap: 32px 48px; font-size: 15px; }
.pied-nav > div { display: flex; flex-direction: column; gap: 10px; }
.pied-nav > div > span:first-child { font-weight: 600; color: #1C9BEF; }
.pied-ville { color: #DCEFFC; }
.pied-bas { border-top: 1px solid #3A4150; padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 12px; color: #DCEFFC; }
.pied-legal { display: flex; gap: 20px; flex-wrap: wrap; }

/* Rangées d'offres et cartes */
.rangee { scroll-padding-inline: max(24px, calc((100% - 1152px) / 2)); scrollbar-width: thin; scrollbar-color: #E6DDCC transparent; scroll-snap-type: x mandatory; }
.offre { transition: transform .2s ease, border-color .2s ease; scroll-snap-align: start; }
.offre:hover { transform: translateY(-6px) scale(1.03); border-color: #1C9BEF !important; }
.offre:hover .offre-cta { color: #0E2A47 !important; }
.carte { transition: transform .2s ease, border-color .2s ease; }
.carte:hover { transform: translateY(-4px); border-color: #1C9BEF !important; }
.texte p { margin: 0; }

/* Boutons de filtre */
.filtre { font: inherit; font-size: 14px; font-weight: 600; padding: 10px 16px; min-height: 44px; border-radius: 4px; cursor: pointer; border: 1px solid #E6DDCC; background: #FFFFFF; color: #0E2A47; }
.filtre:hover { border-color: #0E2A47; }
.filtre[aria-pressed="true"] { border-color: #0E2A47; background: #0E2A47; color: #FFFFFF; }
[hidden] { display: none !important; }

/* FAQ */
summary { cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
details[open] .plus { transform: rotate(45deg); }

/* Formulaires */
input:focus, select:focus, textarea:focus, button:focus-visible, summary:focus-visible, a:focus-visible { outline: 2px solid #0A6CB5; outline-offset: 2px; }
.pot-de-miel { position: absolute; left: -9999px; }
button[type="submit"]:hover { filter: brightness(1.1); }

@media (max-width: 640px) {
  .entete { position: static; }
  .entete-logo img { height: 44px; }
  .nav { gap: 4px 18px; font-size: 14px; }
  form, .bloc-mobile { padding: 24px !important; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .offre, .carte { transition: none; }
  .offre:hover, .carte:hover { transform: none; }
}
