/* ========== STRUCTURE DE BASE ========== */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  background-color: #043564;
}

.wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-bottom: 8rem;
}

/* ========== FORMULAIRE DE CONTACT ========== */
.contact-page {
  width: 80%;
  max-width: 600px;
  margin: 4rem auto;
  padding: 3rem;
  font-family: "Inter", sans-serif;
  background-color: #ffffff;
  color: #1e2633;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 57, 115, 0.1);
}

.contact-page h1 {
  font-size: 2rem;
  font-weight: 700;
  color: #00376e;
  margin-bottom: 2rem;
  text-align: center;
}

.contact-page form.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.contact-page form.contact-form label,
.contact-page form.contact-form input,
.contact-page form.contact-form textarea,
.contact-page form.contact-form button {
  width: 100%;
}

.contact-page form.contact-form label {
  display: flex;
  flex-direction: column;
  font-size: 0.85rem;
  font-weight: 500;
  color: #005f99;
  line-height: 1.4;
}

.contact-page form.contact-form input,
.contact-page form.contact-form textarea {
  margin-top: 0.3rem;
  padding: 0.75rem 1rem;
  border: 1px solid #cdd6e0;
  border-radius: 6px;
  font-size: 1rem;
  background-color: #f8fcfe;
  transition: border-color 0.2s ease-in-out;
}

.contact-page form.contact-form input:focus,
.contact-page form.contact-form textarea:focus {
  outline: none;
  border-color: #00aabb;
  box-shadow: 0 0 0 2px rgba(0, 170, 187, 0.15);
}

.contact-page form.contact-form button {
  align-self: flex-start;
  background: linear-gradient(90deg, #005f99, #00aabb);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.contact-page form.contact-form button:hover {
  background: linear-gradient(90deg, #003973, #00aabb);
}

/* ========== RADIO GROUP ========== */
.radio-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  column-gap: 2rem;
  border: none;
  margin-bottom: 1.5rem;
  padding: 0;
}

.radio-group label {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  width: auto !important;
  font-weight: 600;
  color: #00376e !important;
}

.radio-group label:first-of-type,
.radio-group label:last-of-type {
  justify-self: start;
}

.radio-group label span {
  color: #005f99;
  transition: color 0.2s ease;
}

.radio-group input[type="radio"]:checked + span {
  color: #00376e;
}

.radio-group input[type="radio"] {
  accent-color: #00376e;
  margin: 0;
}

/* ========== HONEYPOT ========== */
.hp {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* ========== MESSAGES FLASH ========== */
.contact-page ul.flashes {
  margin-top: 2rem;
  padding: 1rem;
  border-left: 4px solid #00aabb;
  background-color: #eaf9fc;
  color: #003973;
  list-style: none;
  font-weight: 500;
  border-radius: 6px;
}

.contact-page ul.flashes li.success {
  color: #007a7a;
}

/* ========== PAGE DE CONFIRMATION ========== */
.confirmation-message {
  position: relative;
  font-family: "Inter", sans-serif;
  max-width: 600px;
  margin: 8rem auto;
  padding: 4rem 2rem;
  background-color: #f0fbfc;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 89, 132, 0.12);
  text-align: center;
  color: #1e2633;
  z-index: 2;

  /* Animation latérale demandée */
  opacity: 0;
  animation: slideFromRight 3s ease-out 0.1s forwards;
}

.confirmation-message h1 {
  font-size: 2.2rem;
  color: #00aabb;
  margin-bottom: 1rem;
}

.confirmation-message p {
  font-size: 1.2rem;
  color: #2a2a2a;
  line-height: 1.6;
}

/* Animation : glisse depuis la droite vers la gauche */
@keyframes slideFromRight {
  from {
    opacity: 1;
    transform: translateX(500px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ========== STRUCTURE EN DEUX COLONNES & FOOTER ========== */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-row label,
.form-footer {
  width: 100%;
}

.contact-form .note-obligatoire {
  display: inline-flex;
  gap: .5rem;
  align-items: baseline;
  font-size: .85rem;
  font-weight: 400;
  color: #1e2633;
  line-height: 1.4;
}

/* ========== RGPD ========== */
.rgpd-group {
  border: none;
  margin: 1rem 0;
  padding: 0;
}

.rgpd-text {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-bottom: .5rem;
}

/* corrige le width:100% global sur checkbox/radio */
.contact-page form.contact-form input[type="checkbox"],
.contact-page form.contact-form input[type="radio"] {
  width: auto !important;
  display: inline-block;
}

.rgpd-text input[type="checkbox"] {
  margin: 0;
  flex-shrink: 0;
  accent-color: #00376e;
}

/* focus visible sur le label adjacent */
.rgpd-text input[type="checkbox"]:focus-visible + label {
  outline: 2px solid #00aabb;
  outline-offset: 2px;
  border-radius: 4px;
}

/* label “J’accepte” : cliquable seul, sur 1 ligne + astérisque */
.contact-page form.contact-form .rgpd-text label {
  display: inline-block;
  white-space: nowrap;
  align-items: baseline;
  padding: .2rem .15rem;
  border-radius: 6px;
  font-weight: 600;
  color: #00376e;
  cursor: pointer;
  user-select: none;
}

.rgpd-text label::after {
  content: " *";
  color: #d93025;
  font-weight: 600;
}

/* état coché (—> suppression du caractère parasite en fin de ligne) */
.rgpd-text input[type="checkbox"]:checked + label {
  color: #002e5d;
}

/* ========== PARTICLES EN ARRIÈRE-PLAN (optionnel mais recommandé) ========== */
#particles-js {
  position: fixed;
  inset: 0;
  z-index: 0; /* en fond */
}

.count-particles {
  position: fixed;
  top: .5rem;
  left: .5rem;
  z-index: 3; /* au-dessus si tu l’affiches */
  pointer-events: none;
}
