/* ============================================================
   Formulaire d'adhésion SFOG — styles
   ============================================================ */

:root {
  --bg:          #f4f4f5;
  --card:        #ffffff;
  --ink:         #1f2328;
  --muted:       #6b7280;
  --line:        #e4e4e7;
  --input-bg:    #fafafa;
  --input-line:  #e0e0e2;
  --focus:       #111111;
  --req:         #9ca3af;
  --link:        #2563eb;
  --sfog:        #1f7a4d;  /* vert foncé SFOG */
  --campus:      #35b34a;  /* vert Campus */
  --inf:         #109b8e;  /* turquoise INF */
  --radius:      12px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", Roboto,
               Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Bandeau haut ---------- */
.hero {
  height: 260px;
  background: url("member.png") center 12% / cover no-repeat;
}

/* ---------- Mise en page ---------- */
.page {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 20px 80px;
}

.card {
  background: transparent;
  margin-top: -8px;
  padding: 40px 0 0;
}

.title {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 24px 0 28px;
}

/* ---------- Logos ---------- */
.logos {
  margin-bottom: 40px;
}
.logos__img {
  display: block;
  width: 100%;
  max-width: 460px;
  height: auto;
}

/* ---------- Champs ---------- */
.field { margin-bottom: 22px; }

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
@media (max-width: 520px) {
  .row { grid-template-columns: 1fr; }
}

label {
  display: block;
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 8px;
  color: var(--ink);
}
.req { color: var(--req); font-weight: 600; }

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
textarea,
select {
  width: 100%;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--input-bg);
  border: 1px solid var(--input-line);
  border-radius: var(--radius);
  padding: 12px 14px;
  transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; min-height: 92px; }

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--focus);
  box-shadow: 0 0 0 3px rgba(17,17,17,.08);
}

select { appearance: none; -webkit-appearance: none; cursor: pointer;
  border-color: #cfcfd4;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b7280' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}
/* Texte grisé tant qu'aucune option n'est choisie */
select:invalid { color: var(--muted); }
select option { color: var(--ink); }

/* ---------- Blocs conditionnels ---------- */
.cond[hidden] { display: none; }
.brand-block { margin: 34px 0 26px; }
.brand-block__logo { display: block; height: 56px; width: auto; max-width: 100%; margin-bottom: 6px; }
.brand-block h2 { font-size: 18px; font-weight: 800; margin: 18px 0 12px; }
.brand-block p { margin: 0; color: var(--ink); line-height: 1.6; font-size: 15px; }
.brand-block a { color: var(--link); text-decoration: underline; }

/* ---------- Zone de dépôt de fichier ---------- */
.file-input {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  padding: 26px 16px;
  border: 1px dashed #c9c9cf;
  border-radius: var(--radius);
  background: var(--input-bg);
  cursor: pointer;
  font-weight: 500;
  transition: border-color .15s, background .15s;
}
.drop:hover { border-color: #9a9aa2; background: #f4f4f5; }
.drop.is-drag { border-color: var(--focus); background: #eef2ff; }
.drop__icon { font-size: 16px; color: var(--muted); }
.drop__text { font-size: 14px; color: var(--muted); }
.drop__hint { font-size: 12px; color: #a1a1aa; margin-top: 2px; }
.drop__file { font-size: 13px; color: var(--sfog); font-weight: 600; margin-top: 4px; }
.drop__file:empty { display: none; }

/* ---------- Bouton ---------- */
.submit {
  margin-top: 30px;
  background: #111111;
  color: #fff;
  border: none;
  border-radius: 10px;
  font: inherit;
  font-weight: 600;
  font-size: 15px;
  padding: 13px 22px;
  cursor: pointer;
  transition: background .15s, transform .05s;
}
.submit:hover { background: #000; }
.submit:active { transform: translateY(1px); }
.submit:disabled { opacity: .6; cursor: default; }

/* ---------- Anti-spam ---------- */
.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  opacity: 0;
}
