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

html {
  scroll-behavior: smooth;
}

body,
h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol {
  margin: 0;
}

ul, ol {
  padding: 0;
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
}

/* Styles globaux */
body {
  font-family: var(--police-texte);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--noir-texte);
  background: var(--blanc);
}

h1, h2, h3 {
  font-family: var(--police-titres);
  color: var(--noir-texte);
}

.container {
  width: 100%;
  max-width: var(--largeur-container);
  margin-inline: auto;
  padding-inline: 24px;
}

/* Focus visible clavier */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}

/* Label eyebrow au-dessus des titres de section */
.eyebrow {
  display: block;
  font-family: var(--police-texte);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--vert-institutionnel);
  text-align: center;
  margin-bottom: 10px;
}

.eyebrow--clair {
  color: var(--vert-eyebrow-clair);
}

/* Titres de section */
.titre-section {
  font-family: var(--police-titres);
  font-weight: 700;
  font-size: 34px;
  text-align: center;
  margin-bottom: 14px;
}

.sous-titre-section {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  color: var(--gris-texte);
  margin-bottom: 48px;
}

.entete-section {
  margin-bottom: 48px;
}

/* Boutons */
.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: var(--radius-bouton);
  padding: 15px 24px;
  font-family: var(--police-texte);
  font-weight: 600;
  font-size: 15px;
  transition: opacity 0.15s ease, background-color 0.15s ease;
}

.bouton--primaire {
  background: var(--orange);
  color: var(--blanc);
}

.bouton--primaire:hover {
  opacity: 0.92;
}

.bouton--secondaire {
  background: transparent;
  color: var(--blanc);
  border: 1.5px solid var(--blanc);
}

.bouton--secondaire:hover {
  background: rgba(255, 255, 255, 0.1);
}

.bouton--secondaire-clair {
  background: transparent;
  color: var(--noir-texte);
  border: 1.5px solid var(--gris-blanc);
}

.bouton--secondaire-clair:hover {
  background: var(--gris-fond);
}

.bouton--pleine-largeur {
  width: 100%;
}

.bouton .icone-fleche {
  width: 14px;
  height: 9px;
}

/* Carte réutilisable (formulaire de badge) */
.carte {
  background: var(--blanc);
  border-radius: var(--radius-carte);
  box-shadow: var(--ombre-carte);
  padding: 28px;
}

/* Pastille ronde réseau social (footer) */
.pastille-reseau {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-pastille);
  background: var(--orange);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--blanc);
}

.pastille-reseau:hover {
  opacity: 0.9;
}

/* Chevron devant les liens de footer */
.chevron {
  color: var(--orange);
  margin-right: 8px;
  flex-shrink: 0;
}

/* Champs de formulaire (composants réutilisés par le formulaire de candidature et la page badge) */
.champ {
  margin-bottom: 20px;
}

.champ label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 8px;
}

.champ--obligatoire label::after {
  content: ' *';
  color: var(--orange);
}

.champ input[type="text"],
.champ input[type="tel"],
.champ input[type="email"],
.champ input[type="password"],
.champ select,
.champ textarea {
  width: 100%;
  border: 1px solid var(--gris-blanc);
  border-radius: var(--radius-bouton);
  padding: 13px 14px;
  font-family: var(--police-texte);
  font-size: 15px;
  color: var(--noir-texte);
  background: var(--blanc);
}

.champ input:focus,
.champ select:focus,
.champ textarea:focus {
  border-color: var(--vert-institutionnel);
}

.champ textarea {
  resize: vertical;
  min-height: 84px;
}

.champ select {
  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='%23666660' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.champ-erreur {
  color: #C0392B;
  font-size: 13px;
  margin-top: 6px;
}

.champ-compteur {
  color: var(--gris-texte);
  font-size: 12px;
  margin-top: 6px;
  text-align: right;
}

.champ--invalide input,
.champ--invalide select,
.champ--invalide textarea {
  border-color: #C0392B;
}

.alerte-erreurs {
  background: #FDECEA;
  border: 1px solid #C0392B;
  color: #7A2419;
  border-radius: var(--radius-bouton);
  padding: 16px 18px;
  margin-bottom: 24px;
  font-size: 14px;
}

.alerte-succes {
  background: #E9F7EF;
  border: 1px solid var(--vert-institutionnel);
  color: var(--vert-institutionnel);
  border-radius: var(--radius-bouton);
  padding: 16px 18px;
  margin-bottom: 24px;
  font-size: 14px;
}

.alerte-cloture {
  background: #FFF8E1;
  border: 1px solid #F59E0B;
  color: #92400E;
  border-radius: var(--radius-bouton);
  padding: 24px 28px;
  font-size: 15px;
  line-height: 1.7;
  max-width: 680px;
  margin-inline: auto;
}

/* Case à cocher consentement */
.champ-consentement {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  margin-bottom: 28px;
}

.champ-consentement input {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: var(--vert-institutionnel);
}

.champ-consentement label a {
  color: var(--vert-institutionnel);
  text-decoration: underline;
  font-weight: 600;
}

.champ-consentement label a:hover,
.champ-consentement label a:focus-visible {
  color: var(--vert-fonce);
}

/* Champ honeypot — invisible pour un humain, jamais rempli */
.champ-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Zone de dépôt de fichier (composant réutilisé par le formulaire et la page badge) */
.zone-depot {
  position: relative;
  border: 1.5px dashed var(--gris-blanc);
  border-radius: var(--radius-carte);
  background: var(--gris-fond);
  padding: 28px 22px;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.zone-depot:hover,
.zone-depot--survol {
  background: #ECF6DE;
  border-color: var(--vert-institutionnel);
  transform: translateY(-2px);
}

.zone-depot__icone {
  width: 28px;
  height: 28px;
  margin: 0 auto 10px;
  display: block;
  color: var(--vert-institutionnel);
}

.zone-depot input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.zone-depot__titre {
  font-weight: 600;
  color: var(--vert-institutionnel);
  margin-bottom: 4px;
}

.zone-depot__sous-titre {
  font-size: 13px;
  color: var(--gris-texte);
}

.zone-depot__nom-fichier {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--noir-texte);
}

.zone-depot__coche {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--vert-institutionnel);
  color: var(--blanc);
  font-size: 11px;
  line-height: 1;
  flex-shrink: 0;
}

.zone-depot__jauge {
  margin-top: 8px;
  height: 6px;
  border-radius: var(--radius-pastille);
  background: var(--gris-blanc);
  overflow: hidden;
}

.zone-depot__jauge-remplissage {
  height: 100%;
  width: 0%;
  background: var(--vert-institutionnel);
  border-radius: var(--radius-pastille);
  transition: width 0.1s linear;
}

/* Pages légales (contenu texte simple) */
.page-legale {
  text-align: left;
  max-width: 760px;
  padding-block: 64px 96px;
}

.page-legale .titre-section {
  text-align: left;
  margin-bottom: 24px;
}

.page-legale h2 {
  margin-top: 36px;
  margin-bottom: 12px;
}

.page-legale p {
  margin-bottom: 16px;
  color: var(--gris-texte);
}

/* Listes précédées d'une phrase d'intro (« … suivantes : ») — indentées
   comme une sous-liste, même couleur/taille que le reste du texte. */
.page-legale ul {
  padding-left: 28px;
  margin-bottom: 16px;
}

.page-legale li {
  color: var(--gris-texte);
  margin-bottom: 8px;
}

.page-legale li:last-child {
  margin-bottom: 0;
}

/* Règlement uniquement — texte en gras et en noir (titres d'article, paragraphes, liste) */
.page-reglement p{
  color: rgb(23, 23, 23);
}
.page-reglement li {
  position: relative;
  color: rgb(23, 23, 23);
  padding-left: 22px;
}

.page-reglement li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  background: var(--vert-clair);
}

.lien-en-evidence {
  color: var(--vert-institutionnel);
  font-weight: 600;
  text-decoration: underline;
}

/* En-tête officiel du règlement (ministère / agence / République) */
.reglement-entete {
  text-align: center;
  font-weight: 700;
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--gris-blanc);
}

.reglement-entete__colonnes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
  font-size: 13px;
  text-transform: uppercase;
  color: var(--noir-texte);
}

.reglement-entete__colonne p {
  margin-bottom: 6px;
  color: var(--noir-texte);
}

.reglement-entete__etoiles {
  font-weight: 400;
}

.reglement-entete__encadre {
  border: 1.5px solid var(--noir-texte);
  border-radius: var(--radius-bouton);
  padding: 20px 24px;
  max-width: 480px;
  margin: 0 auto 16px;
  text-transform: none;
}

.reglement-entete__encadre p {
  color: var(--noir-texte);
  margin-bottom: 8px;
}

.reglement-entete__encadre p:last-child {
  margin-bottom: 0;
}

.reglement-entete__titre {
  font-family: var(--police-titres);
  font-size: 22px;
  letter-spacing: 0.05em;
}
/* Même mise en forme que le reste du paragraphe (couleur/taille) — seul le
   gras du <strong> distingue encore le numéro d'article. */
.reglement-article {
  color: inherit;
  font-size: 20px;
  font-weight: 800;

}

.reglement-entete__date {
  font-weight: 400;
  font-size: 14px;
  color: var(--gris-texte);
  margin-bottom: 0;
}

/* Pages d'erreur (400/403/404/405/500) */
.page-erreur {
  padding-block: 120px;
  text-align: center;
}

.page-erreur .bouton {
  margin-top: 12px;
}

/* Utilitaire d'accessibilité : masqué visuellement, visible pour lecteurs d'écran */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
