/* 1erContact — refonte visuelle « safran » (25/10/2026).
   Feuille chargee EN DERNIER sur l accueil, la page du poste et l inscription.
   Ne change aucun texte : couleurs, typographie, espacements, hierarchie.
   Parti pris : le petrole de la marque reste le fond du haut de page ; une
   seule couleur chaude, le safran, porte l action « Je postule » et le
   salaire. Les etiquettes passent en minuscules lisibles (fini les capitales
   en police machine). Retour : REVENIR-design-20261025.sh. */

:root {
  --sf-petrole: #0f2e33;
  --sf-petrole-2: #134a48;
  --sf-teal: #0e7c6f;
  --sf-teal-fonce: #0a5f55;
  --sf-safran: #f2b134;
  --sf-safran-vif: #e9a11a;
  --sf-safran-pale: #fdf1d6;
  --sf-ambre-texte: #7a4d00; /* 6,5:1 sur #fdf1d6 */
  --sf-encre: #13252b;
  --sf-doux: #4f6469;        /* 6,1:1 sur blanc */
  --sf-fond: #f5f8f7;
  --sf-ligne: #dbe5e2;
}

/* ---------- Pages publiques (accueil, poste) ---------- */
body.pc-public { background: var(--sf-fond); color: var(--sf-encre); }

/* Haut de page : petrole profond, une lueur safran, plus de quadrillage. */
.pc-public .hero {
  background:
    radial-gradient(520px 340px at 92% 4%, rgba(242, 177, 52, .20), transparent 70%),
    radial-gradient(640px 420px at 0% 100%, rgba(14, 124, 111, .35), transparent 70%),
    linear-gradient(160deg, var(--sf-petrole) 0%, #0d3a3b 55%, var(--sf-petrole-2) 100%);
}
.pc-public .hero:after { display: none; }

/* Etiquettes : minuscules, Figtree, lisibles (plus de capitales espacees). */
.pc-public .eyebrow,
.pc-public .kicker {
  font-family: Figtree, system-ui, sans-serif;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 700;
  font-size: .95rem !important;
}
.pc-public .eyebrow { color: #f6cf7c; }
.pc-public .kicker-light { color: #f6cf7c; }
.pc-public .section .kicker:not(.kicker-light) { color: var(--sf-teal-fonce); }

/* Titres : Fraunces garde la voix, tailles calmees sur telephone. */
.pc-public .hero h1 { letter-spacing: -.025em; text-wrap: balance; }
.pc-public .section h2, .pc-public .cta h2 { text-wrap: balance; }

/* Le salaire, premier fait lu : en safran clair, plus grand (11:1 sur petrole). */
.pc-public .lead-offre > strong:first-child {
  color: #f8d27f;
  font-size: 1.12em;
}
.pc-public .lead { color: #d5e6e4; }

/* L action principale : safran plein, texte encre (contraste 9:1). */
.pc-public a.btn.btn-postuler,
.pc-public .nav-actions a.btn.btn-light,
.pc-public .hero .actions a.btn.btn-light[href^="/postuler"],
.pc-public .pc-mobile-cta .actions-mobiles a,
.pc-public .confiance a.whatsapp {
  background: var(--sf-safran);
  border-color: var(--sf-safran);
  color: var(--sf-encre);
  box-shadow: 0 10px 24px -10px rgba(242, 177, 52, .7);
}
.pc-public a.btn.btn-postuler:hover,
.pc-public .nav-actions a.btn.btn-light:hover,
.pc-public .hero .actions a.btn.btn-light[href^="/postuler"]:hover,
.pc-public .pc-mobile-cta .actions-mobiles a:hover,
.pc-public .confiance a.whatsapp:hover {
  background: var(--sf-safran-vif);
  border-color: var(--sf-safran-vif);
  color: var(--sf-encre);
}
.pc-public a.btn.btn-postuler { font-size: 1.12rem; font-weight: 800; }

/* Actions secondaires du haut de page : contour clair, discretes. */
.pc-public .hero a.btn.btn-light:not(.btn-postuler):not([href^="/postuler"]) {
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, .55);
  color: #fff;
  box-shadow: none;
}
.pc-public .hero a.btn.btn-light:not(.btn-postuler):not([href^="/postuler"]):hover {
  background: rgba(255, 255, 255, .1);
  border-color: #fff;
}

/* Focus clavier visible partout, safran sur fond sombre, petrole sur clair. */
.pc-public a:focus-visible, .pc-public button:focus-visible, .pc-public summary:focus-visible {
  outline: 3px solid var(--sf-safran);
  outline-offset: 3px;
}
.pc-public main a:focus-visible, .pc-public main button:focus-visible, .pc-public main summary:focus-visible {
  outline-color: var(--sf-teal-fonce);
}
/* Blocs sombres dans main : on revient au safran (contraste > 3:1). */
.pc-public main .confiance a:focus-visible, .pc-public main .cta a:focus-visible,
.pc-public main .notice a:focus-visible, .pc-public main .explication-note summary:focus-visible,
.pc-public .confiance a:focus-visible {
  outline-color: var(--sf-safran);
}

/* Puces du haut : coche safran, un peu plus d air. */
.pc-public .puces-hero { gap: 14px; }
.pc-public .puces-hero li:before { color: var(--sf-safran); }

/* Carte « Un bon francais » du haut : blanche, nette. */
.pc-public .hero-card { border-radius: 18px; box-shadow: 0 24px 60px rgba(0, 0, 0, .28); }
.pc-public .hero-card h2 { color: var(--sf-encre); }

/* Bandeau de confiance : petrole fonce, icones safran. */
.pc-public .confiance { background: #0b2428; }
.pc-public .confiance .item svg { color: var(--sf-safran); }

/* Cartes : blanches, filet net, ombre legere ; pas de saut au survol. */
.pc-public .card, .pc-public .step, .pc-public .faq details, .pc-public .cond {
  border-color: var(--sf-ligne);
  box-shadow: 0 1px 2px rgba(19, 37, 43, .04), 0 10px 26px -18px rgba(19, 37, 43, .35);
}
.pc-public .card:hover, .pc-public .step:hover, .pc-public .faq details:hover, .pc-public .cond:hover {
  transform: none;
  border-color: #9fc9c0;
}
.pc-public .number,
.pc-public .step-num {
  background: var(--sf-safran-pale);
  color: var(--sf-ambre-texte);
  font-weight: 800;
}
.pc-public .card[data-ico] h3:before { color: var(--sf-teal); }

/* Les etapes sont une vraie suite : fil vertical sur telephone. */
.pc-public .step b {
  font-family: Figtree, system-ui, sans-serif;
  text-transform: none;
  letter-spacing: 0;
  font-size: .9rem !important;
  font-weight: 800;
  color: var(--sf-ambre-texte);
}
.pc-public .path { background: #e8f2ef; }
.pc-public .path .step { border-top: 3px solid var(--sf-safran); }

/* Encadre sombre « decision finale » : filet safran. */
.pc-public .notice, .pc-public .explication-note { border-left-color: var(--sf-safran); }

/* Appel final : petrole + lueur safran, coherent avec le haut. */
.pc-public .cta {
  background:
    radial-gradient(480px 260px at 50% 0%, rgba(242, 177, 52, .18), transparent 70%),
    linear-gradient(160deg, var(--sf-petrole), var(--sf-petrole-2));
}
.pc-public .cta a.btn:not(.btn-light):not(.btn-partage-wa) {
  background: var(--sf-safran);
  border-color: var(--sf-safran);
  color: var(--sf-encre);
}
.pc-public .cta a.btn:not(.btn-light):not(.btn-partage-wa):hover { background: var(--sf-safran-vif); }
.pc-public .cta a.btn.btn-light {
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, .55);
  color: #fff;
}
.pc-public .cta a.btn.btn-light:hover { background: rgba(255, 255, 255, .1); border-color: #fff; color: #fff; }

/* Sommaire de la page du poste : pastilles nettes. */
.pc-public .sommaire a { border-color: var(--sf-ligne); color: var(--sf-teal-fonce); }
.pc-public .sommaire a[href="/postuler"] {
  background: var(--sf-safran);
  border-color: var(--sf-safran);
  color: var(--sf-encre);
}

/* Etiquettes des conditions : minuscules lisibles. */
.pc-public .cond-label {
  font-family: Figtree, system-ui, sans-serif;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 700;
}

/* Barre « Candidater » du bas d ecran. */
.pc-public .pc-mobile-cta { background: rgba(11, 36, 40, .97); }

/* Telephone : titres calmes, sections plus serrees (page moins longue). */
@media (max-width: 640px) {
  .pc-public .hero h1 { font-size: clamp(1.85rem, 8vw, 2.3rem); line-height: 1.08; }
  .pc-public .section h2, .pc-public .cta h2 { font-size: clamp(1.55rem, 6.6vw, 1.9rem); }
  .pc-public .section { padding-block: 46px; }
  .pc-public .cta { padding-block: 52px; }
  .pc-public .lead { font-size: 1.06rem; }
  .pc-public .puces-hero {
    padding: 16px 16px 16px 14px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 14px;
    font-size: 1rem;
  }
  .pc-public .card { padding: 20px; }
  .pc-public .step { padding: 18px; }
  .pc-public .path .steps { position: relative; gap: 12px; }
}

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

/* ---------- Inscription (page sans .pc-public, reperee par .pc-scene) ---------- */
body:has(.pc-scene) { background: var(--sf-fond); }
/* Logo + pastille : une ligne d ordinaire ; si la police du telephone est
   agrandie, la pastille passe dessous au lieu de deborder. */
.pc-scene .carte .logo { flex-wrap: wrap; gap: 8px 10px; }
.pc-scene .carte .logo a { flex: none; }
.pc-scene .carte .logo img { width: auto; max-width: none; height: 34px; }
.pc-scene .logo-suffixe { flex: none; }
.pc-scene button[type=submit] {
  background: var(--sf-safran);
  color: var(--sf-encre);
  font-weight: 800;
  box-shadow: 0 10px 24px -10px rgba(242, 177, 52, .75);
}
.pc-scene button[type=submit]:hover:not(:disabled) { background: var(--sf-safran-vif); }
.pc-scene .etapes span.active::before,
.pc-scene .etapes span.faite::before { background: var(--sf-teal); }
.pc-scene .frise-candidature li::before { background: var(--sf-safran-pale); color: var(--sf-ambre-texte); }
.pc-scene .pc-preparation { border-left-color: var(--sf-safran); background: #fbf6ea; }
@media (max-width: 400px) {
  .pc-scene .carte .logo img { height: 29px; }
  .pc-scene .logo-suffixe { padding: 4px 8px; }
}

/* 27/10/2026 (audit) : les boutons « Je postule » pointent directement sur /inscription. */
.pc-public .nav-actions a.btn.btn-light[href^="/inscription"],
.pc-public .hero .actions a.btn.btn-light[href^="/inscription"],
.pc-public .sommaire a[href^="/inscription"] {
  background: var(--sf-safran) !important;
  border-color: var(--sf-safran) !important;
  color: var(--sf-encre) !important;
  box-shadow: 0 10px 24px -10px rgba(242, 177, 52, .7);
}
.pc-public .nav-actions a.btn.btn-light[href^="/inscription"]:hover,
.pc-public .hero .actions a.btn.btn-light[href^="/inscription"]:hover { background: var(--sf-safran-vif) !important; }

/* 16/11 soir (goût de Mohammed : pas de blanc inutile) : sur téléphone, les sections se suivent avec 40 px de marge au lieu de 128-148 px. Retour : /home/ubuntu/sauvegardes/video-accueil-pc-20261116/avant-vide-20261116/ */
@media (max-width: 720px) {
  .pc-public .section { padding-block: 40px; }
}
