/* CouncilInnov : charte graphique v1.0
   Disposition : bandeaux pleine largeur sur fond sable, contenu aligné à gauche
   sur une colonne de 1120 px ; cartes blanches réservées aux offres d'emploi. */

@font-face { font-family: "Manrope"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/manrope-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 800; font-style: normal; font-display: swap; src: url("../fonts/manrope-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/public-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/public-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/public-sans-latin-600-normal.woff2") format("woff2"); }

:root {
  --nuit: #0e2238;
  --bleu: #1b5e94;
  --bleu-fonce: #154a75;
  --terracotta: #e0792f;
  --terracotta-clair: #ea8a44;
  --sable: #f3ede2;
  --sable-fonce: #eae2d3;
  --ciel: #dce9f3;
  --pierre: #4f5b66;
  --ligne: #d9cfbd;
  --blanc: #ffffff;
  --champ: #6f7a86;
  --erreur: #b3261e;
  --erreur-fond: #fbeceb;

  --titres: "Manrope", "Segoe UI", system-ui, sans-serif;
  --texte: "Public Sans", "Segoe UI", system-ui, sans-serif;

  --largeur: 1120px;
  --rayon: 14px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }

body {
  margin: 0;
  background: var(--sable);
  color: var(--nuit);
  font-family: var(--texte);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 400;
}

body:has(dialog[open]) { overflow: hidden; }

img, svg { max-width: 100%; }

h1, h2, h3, h4 {
  font-family: var(--titres);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }

a { color: var(--bleu); text-underline-offset: 3px; }
a:hover { color: var(--bleu-fonce); }

:focus-visible { outline: 3px solid var(--bleu); outline-offset: 3px; }
.pied :focus-visible, .bandeau :focus-visible, .hero-agences :focus-visible { outline-color: var(--ciel); }

.gras { font-weight: 600; }

.sr-seulement {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.evitement {
  position: absolute; left: 16px; top: -64px; z-index: 20;
  background: var(--nuit); color: var(--blanc); padding: 10px 16px; border-radius: 8px;
}
.evitement:focus { top: 12px; }

.conteneur {
  width: 100%;
  max-width: calc(var(--largeur) + 2 * clamp(16px, 4vw, 32px));
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 32px);
}
.conteneur-etroit { max-width: calc(760px + 2 * clamp(16px, 4vw, 32px)); }

/* ------------------------------------------------------------------ en-tête */

.entete { border-bottom: 1px solid var(--ligne); background: var(--sable); }
.entete-ligne {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px 32px; padding-block: 16px;
}

.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--nuit); margin: 0; }
.logo:hover { color: var(--nuit); }
.logo-texte { font-family: var(--titres); font-weight: 800; font-size: 1.45rem; letter-spacing: -0.03em; line-height: 1; }
.logo-texte span { color: var(--bleu); }
.logo-inverse, .logo-inverse:hover { color: var(--blanc); }
.logo-inverse .logo-texte span { color: #8fc1e8; }

.navigation { display: flex; flex-wrap: wrap; gap: 6px 28px; }
.navigation a {
  color: var(--nuit); text-decoration: none; font-weight: 600; padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.navigation a:hover { border-bottom-color: var(--ligne); color: var(--nuit); }
.navigation a[aria-current="page"] { border-bottom-color: var(--terracotta); }

/* ------------------------------------------------------------------- boutons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  min-height: 46px; padding: 8px 22px; border-radius: 10px; border: 2px solid transparent;
  font-family: var(--titres); font-weight: 700; font-size: 1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s;
}
.btn-primaire { background: var(--bleu); color: var(--blanc); }
.btn-primaire:hover { background: var(--bleu-fonce); color: var(--blanc); }
.btn-secondaire { background: transparent; color: var(--nuit); border-color: var(--nuit); }
.btn-secondaire:hover { background: var(--nuit); color: var(--blanc); }
.btn-accent { background: var(--terracotta); color: var(--nuit); }
.btn-accent:hover { background: var(--terracotta-clair); color: var(--nuit); }
.btn[disabled] { opacity: .7; cursor: progress; }

.lien-fleche { font-weight: 600; }
.lien-fleche::after { content: " →"; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 0; }

/* ------------------------------------------------------------- accueil : hero */

.surtitre {
  font-family: var(--titres); font-weight: 700; font-size: .85rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--pierre); margin: 0 0 16px;
}
.surtitre-inverse { color: var(--ciel); }

.hero { padding-block: clamp(40px, 7vw, 88px); }
.hero-grille { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .8fr); gap: clamp(32px, 6vw, 72px); align-items: stretch; }
.hero h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); letter-spacing: -0.035em; }
.chapeau { font-size: 1.2rem; line-height: 1.55; color: var(--pierre); max-width: 40em; margin: 24px 0 0; }

.hero-agences {
  position: relative; overflow: hidden; background: var(--nuit); color: var(--blanc);
  border-radius: 18px; padding: clamp(24px, 3.5vw, 36px);
  display: flex; flex-direction: column; justify-content: center;
}
.hero-agences ul { list-style: none; position: relative; z-index: 1; }
.hero-agences li { display: flex; flex-direction: column; gap: 2px; padding-block: 18px; border-top: 1px solid rgba(255, 255, 255, .18); }
.hero-agences .ville { font-family: var(--titres); font-weight: 800; font-size: 1.6rem; letter-spacing: -0.02em; }
.hero-agences .role { color: var(--ciel); }
.hero-arc { position: absolute; right: -48px; bottom: -48px; width: 220px; opacity: .1; }

.reperes { border-block: 1px solid var(--ligne); }
.reperes-grille { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-block: 0; padding-block: 28px; }
.reperes-grille > div { display: flex; flex-direction: column-reverse; gap: 2px; }
.reperes dt { font-size: .82rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--pierre); }
.reperes dd { margin: 0; font-family: var(--titres); font-weight: 800; font-size: 2.4rem; line-height: 1.1; color: var(--bleu); letter-spacing: -0.03em; }

/* ------------------------------------------------------------------ sections */

.section { padding-block: clamp(48px, 7vw, 88px); }
.section-ciel { background: var(--ciel); }
.section-sable-fonce { background: var(--sable-fonce); }
.section h2 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); }

.section-tete { max-width: 46rem; margin-bottom: 40px; }
.section-intro { color: var(--pierre); font-size: 1.1rem; margin: 14px 0 0; }
.section-lien { margin: 36px 0 0; }

.expertises-grille { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 40px; }
.expertises-grille li { border-top: 2px solid var(--nuit); padding-top: 16px; }
.expertises-grille h3 { font-size: 1.25rem; margin-bottom: 8px; }
.expertises-grille p { color: var(--pierre); margin: 0; }

.etapes { list-style: none; counter-reset: etape; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.etapes li { counter-increment: etape; }
.etapes li::before {
  content: counter(etape); display: block; font-family: var(--titres); font-weight: 800;
  font-size: 2.6rem; line-height: 1; color: var(--bleu); margin-bottom: 12px;
}
.etapes h3 { font-size: 1.25rem; margin-bottom: 8px; }
.etapes p { margin: 0; }

.deux-colonnes { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(24px, 6vw, 72px); }
.texte-long p { max-width: 65ch; }
.texte-long h2 { font-size: 1.5rem; margin: 1.6em 0 .5em; }
.texte-long h2:first-child { margin-top: 0; }

.valeurs-grille { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.valeurs-grille li { border-top: 1px solid var(--nuit); padding-top: 16px; }
.valeurs-grille h3 { font-size: 1.2rem; margin-bottom: 8px; }
.valeurs-grille p { margin: 0; color: var(--pierre); }

.bandeau { background: var(--nuit); color: var(--blanc); padding-block: 48px; }
.bandeau-ligne { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; }
.bandeau h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.bandeau p { margin: 8px 0 0; color: var(--ciel); }

/* ----------------------------------------------------------- pages intérieures */

.page-tete { padding-block: clamp(40px, 6vw, 72px) clamp(24px, 4vw, 40px); }
.page-tete-compacte { padding-bottom: 8px; }
.page-tete h1 { font-size: clamp(2rem, 4.2vw, 3rem); max-width: 22em; letter-spacing: -0.03em; }
.page-tete .chapeau { margin-top: 20px; }
.page-tete .actions { margin-top: 24px; }
.fil { font-size: .92rem; color: var(--pierre); margin: 0 0 12px; }

.expertises-liste { list-style: none; }
.expertises-liste li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 16px clamp(24px, 6vw, 72px); border-top: 1px solid var(--ligne); padding-block: 32px; }
.expertises-liste li:last-child { border-bottom: 1px solid var(--ligne); }
.expertises-liste h2 { font-size: 1.6rem; }
.expertises-liste p { max-width: 60ch; }
.expertises-liste p:last-child { margin-bottom: 0; color: var(--pierre); }

.agences-liste { display: grid; }
.agence { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 16px clamp(24px, 6vw, 72px); border-top: 1px solid var(--ligne); padding-block: 36px; }
.agence:last-child { border-bottom: 1px solid var(--ligne); }
.agence h2 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); }
.agence-statut { font-size: .82rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--pierre); margin: 0 0 6px; }
.agence p { max-width: 60ch; }

.conditions { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 20px; margin: 20px 0 0; }
.conditions dt { font-size: .82rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--pierre); padding-top: 3px; }
.conditions dd { margin: 0; }

/* -------------------------------------------------------------- recrutement */

.section-offres { padding-top: 24px; }

.filtres { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-bottom: 8px; }
.filtres[hidden] { display: none; }
.filtres-titre { margin: 0; font-weight: 600; }
.filtres-boutons { display: flex; flex-wrap: wrap; gap: 10px; }
.pastille {
  font: inherit; font-weight: 600; font-size: .95rem; cursor: pointer;
  background: transparent; color: var(--nuit); border: 1.5px solid var(--nuit);
  border-radius: 999px; padding: 8px 18px;
}
.pastille:hover { background: var(--ciel); }
.pastille[aria-pressed="true"] { background: var(--nuit); color: var(--blanc); }

.groupe-offres { margin-top: 56px; }
.groupe-offres[hidden] { display: none; }
.groupe-tete h2 { font-size: clamp(1.5rem, 3vw, 2rem); display: flex; align-items: center; gap: 12px; }
.compteur {
  display: inline-flex; align-items: center; justify-content: center; min-width: 32px; height: 32px; padding-inline: 10px;
  border-radius: 999px; background: var(--ciel); color: var(--nuit);
  font-family: var(--texte); font-weight: 600; font-size: .95rem; letter-spacing: 0;
}
.groupe-tete p { color: var(--pierre); margin: 8px 0 0; max-width: 60ch; }

.offre {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px 32px;
  background: var(--blanc); border: 1px solid var(--ligne); border-radius: var(--rayon);
  padding: clamp(20px, 3vw, 32px); margin-top: 20px;
}
.offre-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 0 0 10px; font-size: .92rem; color: var(--pierre); }
.etiquette { background: var(--ciel); color: var(--nuit); border-radius: 6px; padding: 2px 10px; font-weight: 600; font-size: .82rem; }
.offre h3 { font-size: 1.4rem; margin-bottom: 10px; }
.offre-intro { max-width: 70ch; margin-bottom: 0; }
.offre-action { align-self: start; }

.offre details { margin-top: 16px; }
.offre summary { cursor: pointer; color: var(--bleu); font-weight: 600; width: fit-content; }
.offre summary:hover { color: var(--bleu-fonce); text-decoration: underline; text-underline-offset: 3px; }
.offre-detail { margin-top: 12px; padding-top: 4px; max-width: 70ch; }
.offre-detail h4 { font-size: 1rem; margin: 20px 0 8px; letter-spacing: -0.01em; }
.offre-detail ul { padding-left: 1.2em; }
.offre-detail li { margin-bottom: 6px; }
.offre-detail p { margin: 0; }

/* ------------------------------------------------------------------ dialogue */

.dialogue {
  width: min(680px, calc(100% - 32px)); max-height: calc(100dvh - 32px);
  padding: 0; border: 0; border-radius: 18px; background: var(--blanc); color: var(--nuit);
  box-shadow: 0 30px 80px rgba(14, 34, 56, .4); overflow: auto;
}
.dialogue::backdrop { background: rgba(14, 34, 56, .62); }
.dialogue-tete { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 24px 28px 8px; }
.dialogue-tete h2 { font-size: 1.6rem; }
.dialogue-offre { margin: 6px 0 0; color: var(--pierre); font-weight: 600; }
.dialogue-corps { padding: 8px 28px 28px; }
.fermer {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 10px; border: 0; background: transparent; color: var(--nuit); cursor: pointer;
}
.fermer:hover { background: var(--ciel); }
.succes h3 { font-size: 1.4rem; margin-bottom: 10px; }

/* --------------------------------------------------------------- formulaires */

.formulaire { display: grid; gap: 18px; }
.grille-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.champ { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.champ label { font-weight: 600; font-size: .95rem; }
.req { color: var(--erreur); }

.champ input[type="text"], .champ input[type="email"], .champ input[type="tel"] {
  font: inherit; width: 100%; padding: 12px 14px; border: 1.5px solid var(--champ); border-radius: 8px;
  background: var(--blanc); color: var(--nuit);
}
.champ input[type="file"] {
  font: inherit; font-size: .95rem; width: 100%; padding: 10px; border: 1.5px dashed var(--champ); border-radius: 8px;
  background: #fbfaf7; color: var(--nuit);
}
.champ input[type="file"]::file-selector-button {
  font: inherit; font-weight: 600; margin-right: 12px; padding: 6px 14px; border-radius: 6px;
  border: 1.5px solid var(--nuit); background: var(--blanc); color: var(--nuit); cursor: pointer;
}
.champ input[aria-invalid="true"] { border-color: var(--erreur); }

.champ-case { display: grid; grid-template-columns: 24px minmax(0, 1fr); column-gap: 12px; align-items: start; }
.champ-case input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--bleu); }
.champ-case label { font-weight: 400; line-height: 1.5; }
.champ-case .erreur { grid-column: 2; }

.aide { color: var(--pierre); font-size: .9rem; margin: 0; }
.erreur { color: var(--erreur); font-size: .92rem; font-weight: 500; margin: 0; }
.erreur:empty { display: none; }
.erreur-generale { background: var(--erreur-fond); border-radius: 8px; padding: 10px 14px; }

.formulaire-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }

.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.alerte { background: var(--erreur-fond); border: 1px solid var(--erreur); border-radius: 10px; padding: 16px 20px; margin-bottom: 28px; }
.alerte p { margin: 0 0 4px; }
.alerte p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------- pied */

.pied { background: var(--nuit); color: var(--ciel); padding-top: 56px; }
.pied a { color: var(--blanc); }
.pied a:hover { color: var(--ciel); }
.pied-grille { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 36px; }
.pied-marque p { margin: 12px 0 0; }
.pied-marque .logo { margin: 0; }
.pied-titre { font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ciel); margin: 0 0 14px; font-weight: 700; }
.liste-simple { list-style: none; display: grid; gap: 8px; }
.pied-bas { margin-top: 48px; padding-block: 24px; border-top: 1px solid rgba(255, 255, 255, .16); font-size: .92rem; }
.pied-bas p { margin: 0; }

/* -------------------------------------------------------------- adaptations */

@media (max-width: 960px) {
  .hero-grille { grid-template-columns: minmax(0, 1fr); }
  .expertises-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .etapes, .valeurs-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reperes-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pied-grille { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .pied-marque { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .deux-colonnes, .expertises-liste li, .agence { grid-template-columns: minmax(0, 1fr); }
  .offre { grid-template-columns: minmax(0, 1fr); }
  .offre-action .btn { width: 100%; }
  .grille-2 { grid-template-columns: minmax(0, 1fr); }
  .conditions { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .conditions dd { margin-bottom: 10px; }
}

@media (max-width: 560px) {
  .expertises-grille, .etapes, .valeurs-grille { grid-template-columns: minmax(0, 1fr); }
  .dialogue-tete { padding: 20px 20px 4px; }
  .dialogue-corps { padding: 8px 20px 24px; }
  .formulaire-actions .btn { flex: 1 1 100%; }
  .pied-grille { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
