/* ============================================================
   GRAND RASSEMBLEMENT 2026 — Formulaire d'inscription
   À inclure dans styles_gr.css ou via <link> dédié
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500&family=Source+Sans+3:wght@400;500&display=swap');

:root {
  --gr-navy:   #0e2a45;
  --gr-ocean:  #1a6fa8;
  --gr-sky:    #e8f4fb;
  --gr-border: #cde3f0;
  --gr-text:   #0e2a45;
  --gr-muted:  #5a7a90;
  --gr-warn-bg:#fff7f2;
  --gr-warn-br:#f5c9aa;
  --gr-warn-tx:#b34000;
}

/* --- Conteneur principal --- */
.gr-wrap {
  font-family: 'Source Sans 3', sans-serif;
  color: var(--gr-text);
  max-width: 720px;
  margin: 0 auto;
  padding: 0 0 2rem;
}

/* --- En-tête marine --- */
.gr-header {
  background: var(--gr-navy);
  border-radius: 14px 14px 0 0;
  padding: 2rem 2rem 1.5rem;
}
.gr-header-eyebrow {
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #7ab8d8;
  margin: 0 0 8px;
  font-weight: 500;
}
.gr-header h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 26px;
  font-weight: 500;
  color: #fff;
  margin: 0 0 6px;
  line-height: 1.2;
}
.gr-header p {
  font-size: 14px;
  color: #a8cfe4;
  margin: 0;
  line-height: 1.5;
}

/* --- Corps du formulaire --- */
.gr-body {
  background: #fff;
  border: 0.5px solid var(--gr-border);
  border-radius: 0 0 14px 14px;
  padding: 0 2rem 2rem;
}

/* --- Sections --- */
.gr-section {
  padding: 1.5rem 0 0.5rem;
  border-top: 0.5px solid var(--gr-border);
  margin-top: 1.5rem;
}
.gr-section:first-child {
  border-top: none;
  margin-top: 0;
  padding-top: 1.5rem;
}
.gr-section-label {
  font-size: 16px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gr-ocean);
  font-weight: 500;
  margin: 0 0 1rem;
}

/* --- Champs génériques --- */
.gr-field { margin-bottom: 1rem; }

.gr-label {
  display: block;
  font-size: 16px;
  font-weight: 500;
  color: var(--gr-text);
  margin-bottom: 5px;
}
.gr-sublabel {
  font-size: 15px;
  color: var(--gr-muted);
  font-weight: 400;
}
.gr-hint {
  font-size: 15px;
  color: var(--gr-muted);
  margin-top: 3px;
}

.gr-input,
.gr-select,
.gr-textarea {
  width: 100%;
  box-sizing: border-box;
  border: 0.5px solid #aecfe8;
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 14px;
  font-family: 'Source Sans 3', sans-serif;
  background: #fff;
  color: var(--gr-text);
  transition: border-color .15s;
  outline: none;
}
.gr-input:focus,
.gr-select:focus,
.gr-textarea:focus {
  border-color: var(--gr-ocean);
  box-shadow: 0 0 0 3px rgba(26,111,168,.12);
}
.gr-textarea {
  resize: vertical;
  min-height: 80px;
}

/* --- Grille 2 colonnes --- */
.gr-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* --- Carte participant --- */
.gr-participant-card {
  background: var(--gr-sky);
  border: 0.5px solid var(--gr-border);
  border-radius: 10px;
  padding: 1.2rem 1.2rem .8rem;
  margin-bottom: 1rem;
}
.gr-participant-title {
  font-size: 12px;
  font-weight: 500;
  color: var(--gr-ocean);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin: 0 0 1rem;
}

/* --- Grille options 3 colonnes (hot-dogs) --- */
.gr-options-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: .5rem;
}
.gr-option-card {
  border: 0.5px solid var(--gr-border);
  border-radius: 8px;
  padding: 10px 10px 8px;
  background: var(--gr-sky);
  text-align: center;
}
.gr-option-label {
  font-size: 12px;
  color: var(--gr-muted);
  margin-bottom: 5px;
  display: block;
}

/* --- Ligne t-shirt --- */
.gr-tshirt-row {
  display: grid;
  grid-template-columns: 80px 1fr 1fr 1fr;
  gap: 10px;
  background: var(--gr-sky);
  border: 0.5px solid var(--gr-border);
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 8px;
  align-items: start;
}

/* --- Radio / checkbox --- */
.gr-radio-group { display: flex; flex-direction: column; gap: 6px; }

.gr-radio-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 15px;
  cursor: pointer;
  color: var(--gr-text);
}
.gr-radio-item input[type=radio] {
  accent-color: var(--gr-ocean);
  margin: 0;
}
.gr-checkbox-item {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 15px;
  color: var(--gr-text);
  cursor: pointer;
}
.gr-checkbox-item input[type=checkbox] {
  accent-color: var(--gr-ocean);
  margin-top: 2px;
  flex-shrink: 0;
}

/* --- Boîte d'avertissement (camping) --- */
.gr-warn-box {
  background: var(--gr-warn-bg);
  border: 0.5px solid var(--gr-warn-br);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 15px;
  color: var(--gr-warn-tx);
  margin-top: .5rem;
}

/* --- Boîte modification --- */
.gr-mod-box {
  background: #fff9ef;
  border: 0.5px solid #f5d898;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 15px;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* --- Pastille info --- */
.gr-info-pill {
  display: inline-block;
  background: #dff0fb;
  color: var(--gr-ocean);
  font-size: 14px;
  border-radius: 20px;
  padding: 3px 10px;
  font-weight: 500;
  margin-bottom: 10px;
}

/* --- Barre de capacité --- */
.gr-capacity-bar {
  background: #dceef8;
  border-radius: 20px;
  height: 8px;
  overflow: hidden;
  margin: 8px 0 4px;
}
.gr-capacity-fill {
  background: var(--gr-ocean);
  height: 100%;
  border-radius: 20px;
  /* largeur calculée dynamiquement via style="width:X%" en PHP */
}
.gr-capacity-text {
  font-size: 16px;
  color: var(--gr-muted);
}

/* --- Tableau BBQ --- */
.gr-bbq-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.gr-bbq-table th {
  text-align: center;
  padding: 6px 10px;
  font-weight: 500;
  color: var(--gr-text);
  border-bottom: 0.5px solid var(--gr-border);
}
.gr-bbq-table th:first-child { text-align: left; color: var(--gr-muted); }
.gr-bbq-table td {
  padding: 8px 10px;
  text-align: center;
}
.gr-bbq-table td:first-child {
  font-size: 15px;
  color: var(--gr-muted);
  text-align: left;
}
.gr-bbq-table tr:nth-child(even) { background: var(--gr-sky); }
.gr-bbq-input {
  width: 50px;
  border: 0.5px solid #aecfe8;
  border-radius: 6px;
  padding: 5px 8px;
  text-align: center;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 13px;
  background: #fff;
  color: var(--gr-text);
  outline: none;
}
.gr-bbq-input:focus {
  border-color: var(--gr-ocean);
  box-shadow: 0 0 0 3px rgba(26,111,168,.12);
}

/* --- Boutons --- */
.gr-btn-primary, a.gr-btn-primary {
  background: var(--gr-navy);
  color: #FFFFFF !important;
  border: none;
  border-radius: 8px;
  padding: 11px 28px;
  font-size: 14px;
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 500;
  cursor: pointer;
  transition: background .15s;
}
.gr-btn-primary:hover { background: var(--gr-ocean); }

.gr-btn-secondary {
  background: none;
  border: 0.5px solid #aecfe8;
  border-radius: 8px;
  color: var(--gr-muted);
  padding: 11px 20px;
  font-size: 14px;
  font-family: 'Source Sans 3', sans-serif;
  cursor: pointer;
}
.gr-btn-secondary:hover { background: var(--gr-sky); }

/* --- Rangée de soumission --- */
.gr-submit-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 0.5px solid var(--gr-border);
  flex-wrap: wrap;
}

/* --- Responsive --- */
@media (max-width: 520px) {
  .gr-row             { grid-template-columns: 1fr; }
  .gr-options-grid    { grid-template-columns: 1fr 1fr; }
  .gr-tshirt-row      { grid-template-columns: 1fr 1fr; }
  .gr-body,
  .gr-header          { padding-left: 1.2rem; padding-right: 1.2rem; }
}