/* Hallmark · shape: immersion · genre: editorial · theme: Loom adapted · job: join · signature: a garden traversed from light into shade · v2.0.0 */
/* Hallmark · pre-emit critique: visual depth is carried by the image, with an opaque text-side scrim for contrast. */
/* Hallmark · waive 77 · la section Votre expérience rapproche critères et action · le candidat peut relire les critères avant de postuler */
@import url("parcours.css");
:root {
  --body: system-ui, sans-serif;
  --display: "Iowan Old Style", Georgia, serif;
  --forest: #132c20;
  --cream: #f4eee1;
  --paper: #f7f6f0;
  --accent: var(--forest);
  --on-accent: var(--cream);
  --light-text: #faf8f3;
  --light-muted: #efe8d8;
  --light-line: #849984;
}
body { font-size: clamp(1.02rem, 1.25vw, 1.125rem); line-height: 1.57; }
main p { text-wrap: pretty; }
.top {
  padding-inline: clamp(var(--space-md), 4vw, var(--space-xl));
}
.top, .hero, .application-page .apply {
  color: var(--light-text);
  background: var(--forest);
}
.hero {
  display: grid;
  grid-template-columns: minmax(0, 52fr) minmax(0, 48fr);
  min-height: clamp(500px, 48vw, 690px);
}
.scene {
  position: relative;
  grid-area: 1 / 2;
}
.scene-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 61% center;
}
.scene::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(90deg, var(--forest), #132c2000 34%),
    linear-gradient(180deg, #132c20a6, #132c2000 34%);
  pointer-events: none;
}
.scene figcaption {
  position: absolute;
  z-index: 2;
  inset: auto var(--space-sm) var(--space-sm) auto;
  margin: 0;
  padding: 3px 8px;
  color: var(--light-text);
  background: var(--forest);
}
.cover {
  grid-area: 1 / 1;
  align-self: center;
  min-width: 0;
  padding: clamp(var(--space-lg), 4.8vw, var(--space-2xl));
}
.cover h1 {
  font-size: clamp(2.8rem, 6.5vw, 6rem);
  line-height: .98;
  letter-spacing: -.04em;
  font-weight: 400;
  max-width: 12ch;
}
.cover p {
  margin: clamp(20px, 2vw, 30px) 0;
  max-width: 35ch;
  font-size: clamp(1rem, 1.45vw, 1.2rem);
  line-height: 1.5;
  color: var(--light-muted);
  text-wrap: pretty;
}
.top .button, .cover .button {
  color: var(--forest);
  background: var(--cream);
  border-color: var(--cream);
}
.top :focus-visible, .cover :focus-visible { outline-color: var(--cream); }
.conditions { border-bottom:1px solid var(--line); }
.mission { grid-template-columns:minmax(0,.85fr) minmax(0,1fr); }
.mission img { aspect-ratio:4/5; }
h2, legend, .success h2, .application-page .apply h1 {
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -.024em;
  text-wrap: balance;
}
h2 { font-size: clamp(2.5rem, 4.25vw, 3.9rem); }
.application-page .apply h1 { font-size: clamp(2.65rem, 4.75vw, 4rem); max-width: none; }
.success h2 { margin-bottom: var(--space-md); }
legend, .success h2 { font-size: clamp(1.8rem, 2.6vw, 2.5rem); }
.conditions dt { font-size: .9rem; }
.conditions dd {
  font: 400 clamp(1.28rem, 2vw, 1.75rem)/1.1 var(--display);
  letter-spacing: -.016em;
}
.conditions dd small { letter-spacing: normal; }
.button, .back { font-weight: 750; }
.duties summary { font: 400 clamp(1.45rem, 2.1vw, 1.8rem)/1.18 var(--display); }
.invitation h3 { margin-top: 1.25rem; }
.invitation h3 + p { margin-top: .4rem; }
.invitation p { color: var(--muted); }
.form .progress { font: 650 .9rem/1.35 var(--body); }
.steps li { font-size: .82rem; }
.steps li[aria-current] { font-weight: 650; }
.form label small { font-size: .94rem; }
.form label { font-size: 1rem; font-weight: 550; line-height: 1.45; }
.form small { line-height: 1.5; }
.form textarea { line-height: 1.5; }
.application-page .apply-copy > p { color: var(--light-muted); }
.application-page .form { color: var(--ink); }
@media (prefers-reduced-motion:no-preference) {
  @keyframes ouverture { from {transform:scale(1.035);} to {transform:scale(1);} }
  .scene { overflow: hidden; }
  .scene-photo { animation: ouverture 1.25s ease-out; }
}
@media(max-width:700px) {
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .scene { grid-area: 1 / 1; aspect-ratio: 4 / 3; }
  .scene::before {
    background: linear-gradient(180deg, #132c20c9 0%, #132c2000 34%, #132c2000 56%, var(--forest) 100%);
  }
  .scene figcaption { background: transparent; }
  .scene-photo { object-position: center 57%; }
  .cover { grid-area: 2 / 1; padding: 0 var(--space-lg) var(--space-lg); }
  .cover h1 {font-size:clamp(2.25rem,10.7vw,4rem);}
  .mission {grid-template-columns:minmax(0,1fr);}
}

.selection {
  width: min(calc(100% - 2 * var(--gutter)), var(--width));
  margin-inline: auto;
  padding-block: var(--space-2xl);
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1fr);
  gap: clamp(var(--space-lg), 6vw, var(--space-3xl));
  border-block: 1px solid var(--line);
}
.selection h2 { max-width: 15ch; }
.selection p { margin-top: var(--space-sm); max-width: 50ch; }
.selection ol { margin: 0; padding-inline-start: 1.8rem; }
.selection li { padding-inline-start: .45rem; }
.selection li + li { margin-top: clamp(1.5rem, 3vw, 2.5rem); }
.selection li::marker {
  color: var(--muted);
  font: italic 400 1.15rem var(--display);
}
.selection h3, .invitation h3 {
  font-size: clamp(1.6rem, 2.6vw, 2.15rem);
  font-weight: 400;
  letter-spacing: -.02em;
  line-height: 1.12;
}
.selection li p {
  margin-top: .45rem;
  max-width: 50ch;
  color: var(--muted);
}
.form label[for="plan-logiciel"] { margin-bottom: var(--space-xs); }
.aide-plan { margin: 0 0 var(--space-md); color: var(--muted); font-size: .9rem; }
@media (max-width: 700px) {
  .selection { grid-template-columns: minmax(0, 1fr); padding-block: var(--space-xl); }
}

@media (max-width: 380px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.cover p { margin-bottom: var(--space-sm); }
.cover .cover-meta {
  margin: 0 0 var(--space-lg);
  padding-top: var(--space-sm);
  border-top: 1px solid var(--light-line);
  font-size: 1rem;
  font-weight: 650;
}
.invitation {
  margin-block: 0 var(--space-2xl);
}
.selection {
  column-gap: clamp(var(--space-lg), 6vw, var(--space-3xl));
  row-gap: var(--space-lg);
}
.selection > .button {
  grid-column: 2;
  justify-self: start;
}
.application-page .demo {
  border-top: 1px solid var(--light-line);
  padding-top: var(--space-sm);
}
@media (max-width: 700px) {
  .invitation { margin-bottom: var(--space-xl); }
  .selection > .button { grid-column: 1; }
}

.groupe { background: var(--forest); color: var(--cream); padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1rem, 4vw, 3rem); }
.groupe-intro h2 { margin-bottom: 1rem; }
.groupe h2, .groupe h3 { color: var(--cream); }
.groupe-intro { max-width: 46rem; }
.groupe-intro p { color: #f4eee1d9; }
.piliers { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 1rem; }
.piliers li { border-top: 2px solid #c9b58a; padding-top: 1rem; }
.piliers p { color: #f4eee1cc; margin-top: .5rem; }
.groupe-clients { margin-top: 2rem; font-style: italic; color: #f4eee1e6; }

/* Bandeau vert pleine largeur sur grand écran (20/11/2026) : le fond s'étend, le contenu reste aligné sur la colonne. */
.top, .hero, .application-page .apply { width: 100%; }
.top { padding-inline: max(clamp(var(--space-md), 4vw, var(--space-xl)), calc((100% - var(--width)) / 2 + var(--space-xl))); }
.cover { padding-left: max(clamp(var(--space-lg), 4.8vw, var(--space-2xl)), calc((100vw - var(--width)) / 2 + var(--space-2xl))); }
.application-page .apply { padding-inline: max(var(--gutter), calc((100% - var(--width)) / 2)); box-sizing: border-box; }

/* Réalisations et références (20/11/2026) */
.photo-reelle { object-fit: cover; }
.realisations, .references { width: min(calc(100% - 2 * var(--gutter)), var(--width)); margin: 0 auto; padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.realisations-intro { max-width: 46rem; margin-bottom: 1.5rem; }
.realisations-intro p { color: var(--muted); }
.galerie { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(180px, 20vw, 300px); gap: .75rem; }
.galerie figure { position: relative; margin: 0; overflow: hidden; }
.galerie .g-large { grid-column: span 2; grid-row: span 2; }
.galerie img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.galerie figure:hover img { transform: scale(1.03); }
.galerie figcaption { position: absolute; inset: auto 0 0 0; padding: 1.5rem .75rem .6rem; font-size: .9rem; color: var(--light-text); background: linear-gradient(0deg, #132c20cc, #132c2000); }
.references h2 { text-align: center; font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin-bottom: 1.75rem; }
.logos { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: clamp(1.25rem, 3.5vw, 3rem); }
.logos img { height: clamp(34px, 4vw, 52px); width: auto; max-width: 150px; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .3s, opacity .3s; }
.logos li:hover img { filter: none; opacity: 1; }
@media (max-width: 700px) { .galerie { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 160px; } }
@media (prefers-reduced-motion: reduce) { .galerie img { transition: none; } }
.galerie .g-bande { grid-column: 1 / -1; }
.galerie .g-bande img { object-position: center 60%; }
.galerie .g-moitie { grid-column: span 2; grid-row: span 2; }

/* Corrections audit (20/11/2026) */
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Un seul bord gauche pour le logo, le titre et le contenu : celui de la colonne. */
.top { padding-inline: max(var(--gutter), calc((100% - var(--width)) / 2)); }
.hero { container-type: inline-size; }
.cover { padding-left: max(var(--gutter), calc((100vw - var(--width)) / 2)); }
@supports (width: 1cqw) { .cover { padding-left: max(var(--gutter), calc((100cqw - var(--width)) / 2)); } }
@media (max-width: 700px) { .cover { padding: 0 var(--gutter) var(--space-lg); } }

/* « Un groupe intégré » : fond pleine largeur, contenu aligné sur la grille. */
.groupe { padding-inline: max(var(--gutter), calc((100% - var(--width)) / 2)); }

/* Page candidature : le bloc vert suit l'en-tête sans bande crème. */
.application-page .apply { margin-block: 0; border-top: 0; padding-block: clamp(var(--space-xl), 5vw, var(--space-3xl)); }
.application-page .apply :focus-visible { outline-color: var(--cream); }
.application-page .form :focus-visible { outline-color: var(--focus); }
.application-page .apply-copy .brouillon-info { font-size: .9rem; }
.mention-ia { margin: 0 0 var(--space-md); color: var(--muted); font-size: .9rem; line-height: 1.5; }

/* Logos clients : surface visuelle homogène selon le format. */
.logos { --k: 1; }
.logos img { max-width: none; opacity: .9; height: calc(var(--h, 50px) * var(--k)); }
.logos img.l-carre { --h: 50px; }
.logos img.l-haut { --h: 58px; }
.logos img.l-large { --h: 30px; }
.logos img.l-tres-large { --h: 25px; }
@media (max-width: 700px) { .logos { --k: .78; } }

/* Page « Vos données » (styles sortis de la page pour la politique de sécurité). */
.notice { max-width: 46rem; margin: 0 auto; padding: 2.5rem var(--gutter) 4rem; }
.notice h1 { margin-bottom: 1rem; }
.notice h2 { margin-top: 2rem; font-size: 1.35rem; }
.notice h2 + p { margin-top: .6rem; }
.notice p + p { margin-top: .9em; }
.notice p, .notice li { line-height: 1.6; }
.selection { border-bottom: 0; }
.logos img.l-ritz { --h: 72px; }
.logos img.l-rond { --h: 62px; }
