/* ==========================================================================
   PHOENIX-GMI — Landing page campagne Superviseurs (Ontario)
   Charte reprise du site phoenixgmi.com :
     slate #313d48 · or #c99332 · crème #fbf5e8 · or clair #efd8a5
     titres Montserrat · texte Inter
   Conçu mobile d'abord (l'essentiel du trafic Meta vient du téléphone).
   ========================================================================== */

:root {
  --slate:        #313d48;
  --slate-dark:   #232c34;
  --slate-soft:   #4a5763;
  --or:           #c99332;
  --or-clair:     #efd8a5;
  --or-fonce:     #a97a22;
  --creme:        #fbf5e8;
  --taupe:        #a79b86;
  --gris:         #e0e2e3;
  --gris-clair:   #f4f5f6;
  --blanc:        #ffffff;
  --texte:        #313d48;
  --texte-doux:   #5d6873;
  --vert:         #2f7d54;
  --rouge:        #b3261e;

  --rayon:        14px;
  --rayon-sm:     10px;
  --ombre:        0 1px 2px rgba(49,61,72,.06), 0 8px 24px rgba(49,61,72,.08);
  --ombre-forte:  0 4px 12px rgba(49,61,72,.10), 0 24px 48px rgba(49,61,72,.14);
  --max:          1120px;
  --transition:   180ms cubic-bezier(.2,.7,.3,1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--texte);
  background: var(--blanc);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Montserrat', 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -.015em;
  margin: 0 0 .5em;
  color: var(--slate);
}

p { margin: 0 0 1em; }
a { color: var(--or-fonce); }
a:hover { color: var(--or); }
img { max-width: 100%; height: auto; display: block; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

.section { padding: 56px 0; }
.section-creme { background: var(--creme); }
.section-slate { background: var(--slate); color: #dfe4e9; }
.section-slate h2, .section-slate h3 { color: var(--blanc); }

.eyebrow {
  font-family: 'Montserrat', sans-serif;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--or);
  margin: 0 0 14px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--slate); color: #fff; padding: 12px 18px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--or); outline-offset: 2px; border-radius: 4px; }

/* ---------- Barre supérieure ---------- */
.topbar {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--gris);
}
.topbar-inner {
  display: flex; align-items: center; gap: 14px;
  min-height: 62px;
}
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 27px; width: auto; max-width: 190px; display: block; }
.topbar-spacer { flex: 1; }

/* Sous 600 px, le CTA d'en-tête ferait passer le logo sur deux lignes.
   Le héros et le CTA collant assurent déjà l'appel à l'action. */
.topbar-inner .btn-primary { display: none; }

.lang-btn {
  border: 1.5px solid var(--gris); background: var(--blanc); color: var(--slate);
  font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: .8rem;
  letter-spacing: .06em; padding: 8px 13px; border-radius: 999px; cursor: pointer;
  transition: var(--transition);
}
.lang-btn:hover { border-color: var(--or); color: var(--or-fonce); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: .95rem;
  letter-spacing: .01em; line-height: 1.25; text-align: center; text-decoration: none;
  padding: 15px 24px; border-radius: var(--rayon-sm); border: 2px solid transparent;
  cursor: pointer; transition: var(--transition); min-height: 52px;
}
.btn-primary { background: var(--or); color: #241a05; border-color: var(--or); }
.btn-primary:hover { background: var(--or-fonce); border-color: var(--or-fonce); color: #fff; }
.btn-primary:disabled { opacity: .6; cursor: default; }
.btn-ghost { background: transparent; color: var(--texte-doux); border-color: var(--gris); }
.btn-ghost:hover { color: var(--slate); border-color: var(--slate); }
.btn-outline { background: transparent; color: var(--blanc); border-color: rgba(255,255,255,.5); }
.btn-outline:hover { border-color: var(--or); color: var(--or-clair); }
.btn-lg { font-size: 1.02rem; padding: 17px 30px; min-height: 58px; }
.btn-block { width: 100%; }
.btn-sm { padding: 10px 16px; min-height: 42px; font-size: .85rem; }

/* ---------- Héros ---------- */
.hero {
  background:
    radial-gradient(900px 420px at 82% -8%, rgba(201,147,50,.24), transparent 60%),
    linear-gradient(168deg, var(--slate) 0%, var(--slate-dark) 100%);
  color: #e7ebef;
  padding: 52px 0 60px;
  position: relative; overflow: hidden;
}
.hero::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: linear-gradient(90deg, var(--or) 0%, var(--or-clair) 50%, var(--or) 100%);
}
.hero-grid { position: relative; z-index: 1; }
.hero-texte { position: relative; z-index: 2; }

/* Portrait d'accueil.
   Sur mobile il passe sous le texte, en bandeau : le visage reste lisible,
   ce qui est tout l'intérêt d'un visage. Sur grand écran il occupe la
   colonne de droite. */
.hero-visuel {
  margin: 30px 0 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.hero-visuel[hidden] { display: none; }
.hero-visuel img {
  width: 100%; height: 100%; display: block;
  aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 26%;
  border-radius: var(--rayon);
  box-shadow: 0 14px 36px rgba(0, 0, 0, .34);
  border: 1px solid rgba(255, 255, 255, .14);
}
/* Léger décalage vertical : deux portraits parfaitement alignés font
   catalogue, le décalage fait photographie. */
.hero-visuel img:last-child { margin-top: 26px; }

.hero h1 {
  color: var(--blanc);
  font-size: clamp(1.85rem, 6.2vw, 3.05rem);
  max-width: 17ch;
  margin-bottom: 18px;
}
.hero-lead {
  font-size: clamp(1.02rem, 2.4vw, 1.18rem);
  color: #c9d2da; max-width: 56ch; margin-bottom: 28px;
}
.hero-actions { display: flex; flex-direction: column; gap: 12px; max-width: 460px; }
.hero-note {
  margin: 16px 0 0; font-size: .86rem; color: var(--taupe);
  display: flex; align-items: flex-start; gap: 8px;
}
.hero-note::before { content: '✓'; color: var(--or); font-weight: 700; }

/* ---------- Bandeau de confiance ---------- */
.trust { background: var(--creme); border-bottom: 1px solid #eee3cd; }
.trust-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  background: #eee3cd; margin: 0; padding: 0; list-style: none;
}
.trust-grid > li { background: var(--creme); padding: 18px 16px; }
.trust-label {
  display: block; font-size: .68rem; letter-spacing: .11em; text-transform: uppercase;
  color: var(--taupe); font-weight: 600; margin-bottom: 4px;
}
.trust-value {
  display: block; font-family: 'Montserrat', sans-serif; font-weight: 700;
  font-size: .98rem; color: var(--slate);
}

/* ---------- Le poste ---------- */
.feature-list { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 14px; }
.feature {
  background: var(--blanc); border: 1px solid var(--gris); border-left: 4px solid var(--or);
  border-radius: var(--rayon-sm); padding: 20px 22px;
}
.feature h3 { font-size: 1.04rem; margin-bottom: 4px; }
.feature p { margin: 0; color: var(--texte-doux); font-size: .95rem; }

.note {
  margin-top: 26px; padding: 16px 18px; border-radius: var(--rayon-sm);
  background: var(--gris-clair); border: 1px dashed var(--taupe);
  font-size: .9rem; color: var(--texte-doux);
}

/* ---------- Profil ---------- */
.check-list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 12px; }
.check {
  position: relative; padding-left: 38px; font-size: 1rem; line-height: 1.5;
}
.check::before {
  content: ''; position: absolute; left: 0; top: 1px;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--or) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23241a05' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/14px no-repeat;
}

/* ---------- Pourquoi maintenant ---------- */
.disclaimer {
  margin-top: 24px; padding: 16px 18px; border-radius: var(--rayon-sm);
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16);
  font-size: .88rem; color: #b9c3cc;
}
.section-slate .disclaimer strong { color: var(--or-clair); }

/* ---------- Formulaire ---------- */
.form-section { background: var(--creme); }
.form-card {
  background: var(--blanc); border-radius: var(--rayon); box-shadow: var(--ombre-forte);
  border: 1px solid #eee3cd; overflow: hidden; scroll-margin-top: 80px;
}
.form-head { padding: 26px 24px 20px; border-bottom: 1px solid var(--gris); }
.form-head h2 { font-size: 1.42rem; margin-bottom: 6px; }
.form-head p { margin: 0; color: var(--texte-doux); font-size: .95rem; }

.progress { padding: 16px 24px 0; }
.progress-track { height: 6px; background: var(--gris); border-radius: 999px; overflow: hidden; }
.progress-fill {
  height: 100%; width: 4%; border-radius: 999px;
  background: linear-gradient(90deg, var(--or) 0%, var(--or-clair) 100%);
  transition: width 300ms cubic-bezier(.2,.7,.3,1);
}
.progress-label {
  display: block; margin-top: 8px; font-size: .78rem; letter-spacing: .06em;
  text-transform: uppercase; color: var(--taupe); font-weight: 600;
}

.form-body { padding: 24px; min-height: 210px; }
.step-title { font-size: 1.22rem; line-height: 1.3; margin-bottom: 6px; outline: none; }
.step-help { font-size: .92rem; color: var(--texte-doux); margin-bottom: 18px; }

.options { display: grid; gap: 10px; margin-top: 18px; }
.option {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  background: var(--blanc); border: 2px solid var(--gris); border-radius: var(--rayon-sm);
  padding: 15px 16px; font: inherit; font-size: .98rem; color: var(--texte);
  cursor: pointer; transition: var(--transition); min-height: 58px;
}
.option:hover { border-color: var(--or); background: #fffdf8; }
.option.is-selected { border-color: var(--or); background: var(--creme); }
.option-mark {
  flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid var(--taupe); position: relative; transition: var(--transition);
}
.option.is-selected .option-mark { border-color: var(--or); background: var(--or); }
.option.is-selected .option-mark::after {
  content: ''; position: absolute; inset: 4px; border-radius: 50%; background: var(--blanc);
}
.option-label { flex: 1; }

.field { margin-bottom: 16px; }
.field-half { }
.label {
  display: block; font-size: .85rem; font-weight: 600; color: var(--slate);
  margin-bottom: 6px; letter-spacing: .01em;
}
.input {
  width: 100%; font: inherit; font-size: 1rem; color: var(--texte);
  padding: 14px 15px; border: 2px solid var(--gris); border-radius: var(--rayon-sm);
  background: var(--blanc); transition: var(--transition); min-height: 52px;
}
.input:focus { border-color: var(--or); outline: none; box-shadow: 0 0 0 4px rgba(201,147,50,.16); }
.field-help { font-size: .82rem; color: var(--texte-doux); margin: 6px 0 0; }

.grid2 { display: grid; grid-template-columns: 1fr; gap: 0 14px; }

/* Dépôt du CV */
.field-cv { margin-top: 6px; }
.file-drop {
  position: relative; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 5px; text-align: center; cursor: pointer;
  min-height: 108px; padding: 20px 16px;
  border: 2px dashed var(--gris); border-radius: var(--rayon-sm);
  background: var(--gris-clair); transition: var(--transition);
}
.file-drop:hover { border-color: var(--or); background: #fffdf8; }
.file-drop:focus-within { outline: 3px solid var(--or); outline-offset: 2px; }
.file-drop.has-file { border-style: solid; border-color: var(--or); background: var(--creme); }
.file-input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.file-icon { font-size: 1.45rem; line-height: 1; }
.file-drop.has-file .file-icon { color: var(--or-fonce); font-weight: 700; }
.file-name {
  font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: .95rem;
  color: var(--slate); word-break: break-word; max-width: 100%;
}
.file-hint { font-size: .8rem; color: var(--texte-doux); }

.checkbox {
  display: flex; gap: 12px; align-items: flex-start; margin: 14px 0;
  font-size: .9rem; line-height: 1.5; color: var(--texte-doux); cursor: pointer;
}
.checkbox input {
  flex: 0 0 auto; width: 22px; height: 22px; margin: 1px 0 0;
  accent-color: var(--or); cursor: pointer;
}

.form-error {
  margin: 0 24px 4px; padding: 12px 14px; border-radius: var(--rayon-sm);
  background: #fdecea; border: 1px solid #f3c3bf; color: var(--rouge); font-size: .9rem;
}
.alert {
  padding: 16px 18px; border-radius: var(--rayon-sm); margin-bottom: 18px;
  background: #fdecea; border: 1px solid #f3c3bf; color: #7d1a15;
}
.alert p { margin: 6px 0 0; font-size: .92rem; }

.form-footer {
  display: flex; gap: 12px; padding: 4px 24px 26px; flex-wrap: wrap;
}
.form-footer .btn { flex: 1 1 auto; }
.form-footer .btn-ghost { flex: 0 0 auto; }

.form-courriel {
  margin: 0; padding: 18px 24px; background: var(--creme);
  border-top: 1px solid #eee3cd; font-size: .92rem; color: var(--texte-doux);
  display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline;
}
.form-courriel a {
  font-family: 'Montserrat', sans-serif; font-weight: 700; color: var(--or-fonce);
  word-break: break-all;
}

.form-legal {
  padding: 16px 24px; background: var(--gris-clair); border-top: 1px solid var(--gris);
  font-size: .82rem; color: var(--texte-doux); margin: 0;
}

/* ---------- FAQ ---------- */
.faq-list { margin-top: 28px; }
.faq-item {
  border: 1px solid var(--gris); border-radius: var(--rayon-sm);
  margin-bottom: 10px; background: var(--blanc); overflow: hidden;
}
.faq-item summary {
  cursor: pointer; padding: 17px 46px 17px 18px; position: relative;
  font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: .98rem;
  color: var(--slate); list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ''; position: absolute; right: 18px; top: 50%; width: 11px; height: 11px;
  margin-top: -7px; border-right: 2.5px solid var(--or); border-bottom: 2.5px solid var(--or);
  transform: rotate(45deg); transition: transform var(--transition);
}
.faq-item[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }
.faq-item summary:hover { background: var(--creme); }
.faq-answer { padding: 0 18px 18px; color: var(--texte-doux); font-size: .95rem; }
.faq-answer p { margin: 0; }

/* ---------- Bas de page ---------- */
.footer { background: var(--slate-dark); color: #9aa6b1; padding: 40px 0 28px; font-size: .88rem; }
.footer a { color: var(--or-clair); text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer-logo { height: 34px; width: auto; max-width: 240px; margin-bottom: 16px; }
.footer-grid { display: grid; gap: 22px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-bottom {
  margin-top: 26px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12);
  font-size: .8rem; color: #7d8a95;
}

/* ---------- CTA collant (mobile) ---------- */
.sticky-cta {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 70;
  opacity: 0; transform: translateY(120%); pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
}
.sticky-cta.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.sticky-cta .btn { box-shadow: var(--ombre-forte); }

/* ---------- Bandeau témoins ---------- */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  background: var(--slate-dark); color: #cdd5dc; border-top: 3px solid var(--or);
  padding: 18px 0; box-shadow: 0 -10px 30px rgba(0,0,0,.22);
  transform: translateY(110%); transition: transform 260ms cubic-bezier(.2,.7,.3,1);
}
.cookie-banner.is-visible { transform: none; }
.cookie-inner { display: grid; gap: 14px; }
.cookie-banner strong { color: var(--blanc); display: block; margin-bottom: 4px; font-family: 'Montserrat', sans-serif; }
.cookie-banner p { margin: 0; font-size: .87rem; line-height: 1.5; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-actions .btn { flex: 1 1 140px; }

/* ---------- Page de remerciement ---------- */
.merci { padding: 60px 0 50px; }
.merci-icon {
  width: 72px; height: 72px; border-radius: 50%; background: var(--creme);
  border: 3px solid var(--or); display: grid; place-items: center; margin-bottom: 22px;
  font-size: 2rem; color: var(--or-fonce);
}
.steps { list-style: none; counter-reset: s; margin: 30px 0 0; padding: 0; display: grid; gap: 16px; }
.steps > li {
  position: relative; padding-left: 52px; counter-increment: s;
}
.steps > li::before {
  content: counter(s); position: absolute; left: 0; top: -2px;
  width: 34px; height: 34px; border-radius: 50%; background: var(--slate); color: var(--blanc);
  display: grid; place-items: center; font-family: 'Montserrat', sans-serif; font-weight: 700;
  font-size: .95rem;
}
.steps h3 { font-size: 1rem; margin-bottom: 2px; }
.steps p { margin: 0; color: var(--texte-doux); font-size: .93rem; }

/* ---------- Contenu légal ---------- */
.legal { padding: 44px 0 60px; }
.legal h1 { font-size: clamp(1.6rem, 4.6vw, 2.2rem); }
.legal h2 { font-size: 1.16rem; margin-top: 34px; }
.legal p, .legal li { color: var(--texte-doux); font-size: .96rem; }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 8px; }
.legal-meta { color: var(--taupe); font-size: .85rem; }

/* ==========================================================================
   Écrans plus larges
   ========================================================================== */
@media (min-width: 600px) {
  .brand img { height: 32px; max-width: none; }
  .topbar-inner .btn-primary { display: inline-flex; }
  .hero-actions { flex-direction: row; align-items: center; }
  .hero-actions .btn { flex: 0 0 auto; }
  .trust-grid { grid-template-columns: repeat(4, 1fr); }
  .grid2 { grid-template-columns: 1fr 1fr; }
  .grid2 > .field:not(.field-half) { grid-column: 1 / -1; }
  .cookie-inner { grid-template-columns: 1fr auto; align-items: center; gap: 24px; }
  .cookie-actions { flex-wrap: nowrap; }
  .cookie-actions .btn { flex: 0 0 auto; }
  .form-head, .form-body, .form-footer, .progress, .form-error { padding-left: 32px; padding-right: 32px; }
  .form-error { margin-left: 32px; margin-right: 32px; padding-left: 14px; padding-right: 14px; }
  .footer-grid { grid-template-columns: 1.6fr 1fr; }
}

@media (min-width: 900px) {
  .section { padding: 76px 0; }
  .hero { padding: 76px 0 84px; }
  .hero-grid {
    display: grid; grid-template-columns: 1.15fr .85fr;
    gap: 56px; align-items: center;
  }
  .hero h1 { max-width: 15ch; }
  .hero-lead { max-width: 46ch; }
  .hero-visuel { margin: 0; gap: 16px; }
  .hero-visuel img { aspect-ratio: 3 / 4; max-height: 430px; }
  .hero-visuel img:last-child { margin-top: 40px; }
  .feature-list { grid-template-columns: 1fr 1fr; }
  .check-list { grid-template-columns: 1fr 1fr; gap: 14px 30px; }
  .sticky-cta { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

@media print {
  .topbar, .sticky-cta, .cookie-banner, .form-section { display: none !important; }
}
