
/* Pied de page : raison sociale légale (vérification Meta) — valeurs gérées dans Back-office → Paramètres du site */
.footer-raison-sociale { color: #fff; font-weight: 600; font-size: 14px; line-height: 1.5; text-transform: uppercase; margin: 1.2rem 0; }
.footer-copyright { color: rgba(255, 255, 255, .75); font-size: 13px; line-height: 1.6; }

/* Page Contact */
.contact-info-card { background: #f7f7f7; border-left: 4px solid #86bc42; padding: 25px; height: 100%; }
.contact-info-card h4 { color: #023e79; font-size: 17px; text-transform: uppercase; line-height: 1.5; margin-bottom: 18px; }
.contact-info-card ul { list-style: none; padding: 0; margin: 0; }
.contact-info-card li { display: flex; gap: 12px; margin-bottom: 14px; color: #282b2d; word-break: break-word; }
.contact-info-card li i { color: #86bc42; width: 18px; margin-top: 4px; }
.contact-info-card a { color: #282b2d; }
.contact-form label { font-weight: 600; color: #023e79; margin-bottom: 6px; }
.contact-form .form-control { border-radius: 0; border-color: #ddd; padding: 10px 14px; }
.contact-form .form-control:focus { border-color: #86bc42; box-shadow: none; }
.contact-form .hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.footer-list li a.footer-coord { font-size: inherit; color: inherit; }
.footer-list li a.footer-coord:before { content: none; }
.footer-list li a.footer-coord:hover { color: #fff; }

/* ===================== Demande de stage / d'emploi (p/candidature) — formulaire en étapes ===================== */
.cand-section { padding: 50px 0 70px; background: linear-gradient(180deg, #f7f7f7 0%, #fff 320px); }
.cand-section .container { max-width: 920px; }
.cand-intro { text-align: center; margin-bottom: 30px; }
.cand-surtitre { display: inline-block; color: #86bc42; font-weight: 700; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 8px; }
.cand-intro h2 { color: #023e79; font-size: 30px; font-weight: 700; margin-bottom: 10px; }
.cand-intro p { color: #6f6f6f; max-width: 620px; margin: 0 auto; }
.cand-muted { color: #6f6f6f; }

/* Barre d'étapes */
.cand-etapes { position: relative; }
.cand-stepper { display: flex; justify-content: space-between; list-style: none; padding: 0; margin: 0; position: relative; z-index: 2; }
.cand-stepper li { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; cursor: pointer; }
.cand-pastille { width: 54px; height: 54px; border-radius: 50%; background: #fff; border: 2px solid #ddd; color: #c1c1c1; display: flex; align-items: center; justify-content: center; font-size: 18px; transition: all .3s; }
.cand-libelle { font-size: 13px; font-weight: 600; color: #6f6f6f; text-align: center; transition: color .3s; }
.cand-stepper li.active .cand-pastille { border-color: #86bc42; background: #86bc42; color: #fff; box-shadow: 0 0 0 6px rgba(134, 188, 66, .18); transform: scale(1.06); }
.cand-stepper li.active .cand-libelle { color: #023e79; }
.cand-stepper li.faite .cand-pastille { border-color: #86bc42; color: #86bc42; }
.cand-stepper li.faite .cand-libelle { color: #282b2d; }
.cand-progression { height: 4px; background: #ececec; border-radius: 4px; position: absolute; top: 25px; left: 10%; right: 10%; z-index: 1; }
.cand-progression-barre { height: 100%; width: 0; background: linear-gradient(90deg, #86bc42, #257711); border-radius: 4px; transition: width .45s ease; }
.cand-etape-texte { display: none; text-align: center; color: #023e79; font-weight: 600; margin: 14px 0 0; font-size: 14px; }

/* Carte */
.cand-card { background: #fff; border-radius: 16px; box-shadow: 0 12px 40px rgba(2, 62, 121, .09); padding: 40px; margin-top: 30px; border: 1px solid #ececec; }
.cand-etape { display: none; border: 0; padding: 0; margin: 0; min-width: 0; }
.cand-etape.active { display: block; animation: candApparition .4s ease; }
@keyframes candApparition { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
.cand-etape legend { color: #023e79; font-size: 21px; font-weight: 700; margin-bottom: 25px; float: none; width: auto; padding: 0; }

/* Choix du type */
.cand-types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; border-radius: 14px; }
.cand-type { margin: 0; cursor: pointer; }
.cand-type input { position: absolute; opacity: 0; pointer-events: none; }
.cand-type-carte { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; height: 100%; padding: 28px 18px 24px; border: 2px solid #ececec; border-radius: 14px; transition: all .25s; background: #fff; }
.cand-type-carte:hover { border-color: #86bc42; transform: translateY(-3px); box-shadow: 0 10px 24px rgba(134, 188, 66, .15); }
.cand-type-icone { width: 66px; height: 66px; border-radius: 18px; background: rgba(2, 62, 121, .07); color: #023e79; display: flex; align-items: center; justify-content: center; font-size: 26px; margin-bottom: 16px; transition: all .25s; }
.cand-type-titre { font-weight: 700; color: #282b2d; font-size: 16px; margin-bottom: 8px; }
.cand-type-texte { color: #6f6f6f; font-size: 13px; line-height: 1.5; }
.cand-type-coche { position: absolute; top: 12px; right: 12px; width: 26px; height: 26px; border-radius: 50%; background: #86bc42; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; opacity: 0; transform: scale(.5); transition: all .25s; }
.cand-type input:checked + .cand-type-carte { border-color: #86bc42; background: rgba(134, 188, 66, .06); }
.cand-type input:checked + .cand-type-carte .cand-type-icone { background: #86bc42; color: #fff; }
.cand-type input:checked + .cand-type-carte .cand-type-coche { opacity: 1; transform: scale(1); }
.cand-type input:focus-visible + .cand-type-carte { outline: 3px solid rgba(2, 62, 121, .35); outline-offset: 2px; }
.cand-types.invalide .cand-type-carte { border-color: #e4a0a0; }

/* Champs */
.cand-grille { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; }
.cand-pleine { grid-column: 1 / -1; }
.cand-groupe { margin-bottom: 20px; }
.cand-label { display: block; font-weight: 600; color: #282b2d; font-size: 14px; margin-bottom: 8px; }
.cand-label em, .cand-depot em { color: #d9534f; font-style: normal; }
.cand-input { position: relative; }
.cand-input > i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: #c1c1c1; font-size: 14px; pointer-events: none; transition: color .2s; }
.cand-input input, .cand-input select, .cand-groupe textarea { width: 100%; border: 1.5px solid #ddd; border-radius: 10px; padding: 13px 14px 13px 44px; font-size: 15px; color: #282b2d; background-color: #fff; transition: border-color .2s, box-shadow .2s; font-family: inherit; height: auto; }
.cand-input select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236f6f6f' stroke-width='2' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.cand-groupe textarea { padding: 14px; resize: vertical; }
.cand-input input:focus, .cand-input select:focus, .cand-groupe textarea:focus { outline: none; border-color: #86bc42; box-shadow: 0 0 0 4px rgba(134, 188, 66, .15); }
.cand-input:focus-within > i { color: #86bc42; }
.cand-input.invalide input, .cand-input.invalide select { border-color: #d9534f; background-color: #fffafa; }
.cand-input.invalide > i { color: #d9534f; }
.cand-erreur { color: #d9534f; font-size: 13px; margin: 6px 0 0; }
.cand-erreur:empty { display: none; }
.cand-compteur { text-align: right; color: #c1c1c1; font-size: 12px; margin: 4px 0 0; }

/* Pastilles (civilité, durée, expérience) */
.cand-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.cand-pills label { margin: 0; cursor: pointer; }
.cand-pills input { position: absolute; opacity: 0; pointer-events: none; }
.cand-pills span { display: inline-block; padding: 10px 20px; border: 1.5px solid #ddd; border-radius: 30px; font-size: 14px; color: #282b2d; transition: all .2s; background: #fff; }
.cand-pills label:hover span { border-color: #86bc42; }
.cand-pills input:checked + span { background: #023e79; border-color: #023e79; color: #fff; }
.cand-pills input:focus-visible + span { outline: 3px solid rgba(2, 62, 121, .35); outline-offset: 2px; }
.cand-pills.invalide span { border-color: #e4a0a0; }

/* Dépôt de fichiers */
.cand-fichiers { display: grid; gap: 16px; margin-bottom: 22px; }
.cand-depot { position: relative; }
.cand-depot input[type="file"] { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cand-depot label { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; margin: 0; padding: 22px 18px; border: 2px dashed #c1c1c1; border-radius: 14px; background: #fcfcfc; cursor: pointer; transition: all .2s; }
.cand-depot label > i { font-size: 30px; color: #86bc42; margin-bottom: 4px; }
.cand-depot label strong { color: #282b2d; }
.cand-depot-aide { color: #6f6f6f; font-size: 13px; line-height: 1.5; }
.cand-depot-aide u { color: #023e79; font-weight: 600; }
.cand-depot-nom { color: #257711; font-weight: 600; font-size: 14px; word-break: break-all; }
.cand-depot-nom:empty { display: none; }
.cand-depot label:hover, .cand-depot.survol label { border-color: #86bc42; background: rgba(134, 188, 66, .06); }
.cand-depot input:focus-visible + label { outline: 3px solid rgba(2, 62, 121, .35); outline-offset: 2px; }
.cand-depot.rempli label { border-style: solid; border-color: #86bc42; background: rgba(134, 188, 66, .06); }
.cand-depot.rempli .cand-depot-aide { display: none; }
.cand-depot.invalide label { border-color: #d9534f; background: #fffafa; }
.cand-depot-retirer { display: none; position: absolute; top: 10px; right: 10px; width: 30px; height: 30px; border: 0; border-radius: 50%; background: #fff; color: #d9534f; box-shadow: 0 2px 6px rgba(0, 0, 0, .12); cursor: pointer; }
.cand-depot.rempli .cand-depot-retirer { display: block; }

/* Récapitulatif */
.cand-recap { display: grid; gap: 16px; margin-bottom: 22px; }
.cand-recap-bloc { border: 1px solid #ececec; border-radius: 12px; padding: 18px 20px; background: #fcfcfc; }
.cand-recap-entete { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; gap: 10px; }
.cand-recap-entete h4 { margin: 0; font-size: 16px; color: #023e79; font-weight: 700; }
.cand-recap-modifier { border: 0; background: none; color: #86bc42; font-weight: 600; font-size: 13px; cursor: pointer; padding: 4px 0; }
.cand-recap-modifier:hover { color: #257711; text-decoration: underline; }
.cand-recap dl { display: grid; grid-template-columns: 190px 1fr; gap: 8px 16px; margin: 0; }
.cand-recap dt { color: #6f6f6f; font-weight: 500; font-size: 14px; }
.cand-recap dd { margin: 0; color: #282b2d; font-weight: 600; font-size: 14px; word-break: break-word; }
.cand-recap dd.vide { color: #c1c1c1; font-weight: 400; }
.cand-recap dd.cand-recap-long { font-weight: 400; white-space: pre-line; }
.cand-consentement { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: 12px; background: rgba(2, 62, 121, .05); margin: 0; cursor: pointer; font-size: 14px; line-height: 1.55; color: #282b2d; }
.cand-consentement input { width: 20px; height: 20px; margin-top: 2px; flex-shrink: 0; accent-color: #86bc42; }
.cand-consentement.invalide { background: #fff1f1; }

/* Boutons */
.cand-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 30px; padding-top: 24px; border-top: 1px solid #ececec; }
.cand-actions-centre { justify-content: center; border-top: 0; flex-wrap: wrap; }
.cand-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 28px; border-radius: 10px; font-weight: 600; font-size: 15px; border: 2px solid transparent; cursor: pointer; transition: all .2s; text-decoration: none; }
.cand-btn[hidden] { display: none; }
.cand-btn-primaire, .cand-btn-envoyer { background: #86bc42; color: #fff; margin-left: auto; }
.cand-btn-primaire:hover { background: #257711; color: #fff; transform: translateY(-1px); box-shadow: 0 8px 18px rgba(37, 119, 17, .25); }
.cand-btn-envoyer { background: #023e79; }
.cand-btn-envoyer:hover { background: #23507c; color: #fff; transform: translateY(-1px); box-shadow: 0 8px 18px rgba(2, 62, 121, .25); }
.cand-btn-envoyer:disabled { opacity: .7; cursor: wait; transform: none; }
.cand-btn-secondaire { background: #fff; color: #023e79; border-color: #ddd; }
.cand-btn-secondaire:hover { border-color: #023e79; color: #023e79; }
.cand-actions-centre .cand-btn-primaire { margin-left: 0; }
.cand-alerte { background: #fff1f1; border-left: 4px solid #d9534f; border-radius: 8px; padding: 16px 20px; margin-bottom: 25px; color: #282b2d; font-size: 14px; }
.cand-alerte ul { margin: 8px 0; padding-left: 20px; }
.cand-note { text-align: center; color: #6f6f6f; font-size: 13px; margin-top: 18px; }
.cand-note i { color: #86bc42; }
#cand-form .hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Écran de confirmation */
.cand-succes { text-align: center; padding: 50px 40px; }
.cand-succes-icone { width: 90px; height: 90px; margin: 0 auto 20px; border-radius: 50%; background: #86bc42; color: #fff; font-size: 40px; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 12px rgba(134, 188, 66, .15); animation: candPop .5s ease; }
.cand-icone-pause { background: #c1c1c1; box-shadow: 0 0 0 12px rgba(0, 0, 0, .05); }
@keyframes candPop { 0% { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.08); } 100% { transform: scale(1); opacity: 1; } }
.cand-succes h2 { color: #023e79; font-weight: 700; }
.cand-reference { display: inline-flex; flex-direction: column; margin: 18px 0; padding: 16px 32px; border: 2px dashed #86bc42; border-radius: 12px; }
.cand-reference span { color: #6f6f6f; font-size: 13px; }
.cand-reference strong { color: #023e79; font-size: 26px; letter-spacing: 1px; }

@media (prefers-reduced-motion: reduce) {
    .cand-etape.active, .cand-succes-icone { animation: none; }
    .cand-progression-barre, .cand-type-carte, .cand-pastille { transition: none; }
}

/* Mobile */
@media (max-width: 767px) {
    .cand-section { padding: 30px 0 50px; }
    .cand-intro h2 { font-size: 24px; }
    .cand-libelle { display: none; }
    .cand-pastille { width: 40px; height: 40px; font-size: 14px; }
    .cand-progression { top: 18px; }
    .cand-etape-texte { display: block; }
    .cand-card { padding: 24px 18px; margin-top: 20px; border-radius: 14px; }
    .cand-types { grid-template-columns: 1fr; gap: 12px; }
    .cand-type-carte { flex-direction: row; text-align: left; padding: 16px; flex-wrap: wrap; }
    .cand-type-icone { width: 50px; height: 50px; font-size: 20px; margin: 0 14px 0 0; flex-shrink: 0; }
    .cand-type-titre { margin: 0; align-self: center; flex: 1; padding-right: 30px; }
    .cand-type-texte { flex-basis: 100%; margin-top: 8px; }
    .cand-grille { grid-template-columns: 1fr; }
    .cand-etape legend { font-size: 18px; }
    .cand-recap dl { grid-template-columns: 1fr; gap: 2px; }
    .cand-recap dd { margin-bottom: 8px; }
    .cand-actions { flex-direction: column-reverse; }
    .cand-btn { width: 100%; }
    .cand-btn-primaire, .cand-btn-envoyer { margin-left: 0; }
    .cand-succes { padding: 36px 18px; }
    .cand-reference strong { font-size: 21px; }
}
