/* Page : template-inscription.php */


* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--police-texte);
  color: var(--ink);
  background: var(--paper);
}

h1,
h2 {
  font-family: var(--police-titres);
  font-weight: 600;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.screen {
  height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  overflow: hidden;
}

.side {
  position: relative;
  background-color: var(--indigo-deep);
  background-size: cover;
  background-position: center;
  color: var(--indigo-91);
  padding: 56px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  overflow: hidden;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 2;
}

.brand .mark {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--amber);
  color: var(--indigo-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--police-titres);
  font-weight: 700;
  font-size: 22px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.brand-text {
  font-family: var(--police-titres);
  font-weight: 700;
  font-size: 20px;
  color: #fff;
}

.brand-text small {
  display: block;
  font-family: var(--police-texte);
  font-weight: 400;
  font-size: 11px;
  color: var(--indigo-82);
  margin-top: 2px;
}

.side-content {
  position: relative;
  z-index: 2;
}

.side-quote h2 {
  font-size: 30px;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 16px;
}

.side-quote p {
  font-size: 14px;
  color: var(--indigo-78);
  line-height: 1.6;
  max-width: 420px;
}

.side-steps {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.side-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.side-step .num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(var(--amber-rgb), 0.2);
  color: var(--amber-75);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
  border: 1px solid rgba(var(--amber-rgb), 0.3);
}

.side-step .txt {
  font-size: 14px;
  color: var(--indigo-91);
  padding-top: 3px;
}

.side-foot {
  font-size: 11.5px;
  color: var(--indigo-82);
  position: relative;
  z-index: 2;
}

.form-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: var(--paper);
  height: 100vh;
  overflow-y: auto;
}

.form-wrap::-webkit-scrollbar { width: 6px; }

.form-wrap::-webkit-scrollbar-track { background: transparent; }

.form-wrap::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }

.form-wrap:hover::-webkit-scrollbar-thumb { background: #cfcbbb; }

.form-card {
  width: 100%;
  max-width: 420px;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--amber-texte);
  background: var(--amber-92);
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.form-card h1 {
  font-size: 32px;
  margin-bottom: 8px;
  color: var(--indigo-deep);
}

.form-card .lead {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 28px;
}

.form-error {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(184, 80, 63, 0.08);
  border: 1px solid rgba(184, 80, 63, 0.2);
  color: var(--brick);
  font-size: 13px;
  font-weight: 600;
  padding: 14px 16px;
  border-radius: 10px;
  margin-bottom: 20px;
}

.form-error svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Lot 16 : inscriptions fermées (vue « Réglages »). */
.form-info {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--amber-95);
  border: 1px solid var(--amber-78);
  color: var(--amber-20);
  font-size: 14px;
  line-height: 1.6;
  padding: 14px 16px;
  border-radius: 10px;
  margin-bottom: 20px;
}

.form-info svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 3px;
}

.form-info p {
  margin: 0;
}

.field {
  margin-bottom: 18px;
  position: relative;
}

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

.input-group {
  position: relative;
}

.input-group svg.ic-left {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--text-light);
  pointer-events: none;
}

.field input,
.field select {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px 14px 46px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  outline: none;
  transition: all .2s ease;
}

.field input:focus,
.field select:focus {
  border-color: var(--indigo);
  box-shadow: 0 0 0 3px rgba(var(--indigo-rgb), .08);
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%236b7080' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 18px;
}

.field-note {
  font-size: 11.5px;
  color: var(--text-light);
  margin-top: 6px;
}

.hp-field {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  pointer-events: none;
}

.legal-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 24px 0 20px 0;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.legal-check:hover { border-color: var(--indigo); }

.legal-check input[type="checkbox"] {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  cursor: pointer;
  accent-color: var(--indigo);
}

.legal-check label {
  font-size: 12.5px;
  color: var(--text-light);
  line-height: 1.5;
  cursor: pointer;
  font-weight: 400;
}

.legal-check label a {
  color: var(--indigo);
  font-weight: 600;
}

.btn-login {
  width: 100%;
  background: var(--indigo);
  color: #fff;
  border: none;
  padding: 15px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all .2s ease;
  box-shadow: 0 4px 14px rgba(var(--indigo-rgb), .2);
  margin-top: 6px;
}

.btn-login:hover {
  background: var(--indigo-deep);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(var(--indigo-rgb), .3);
}

.btn-login svg { width: 18px; height: 18px; }

.help-link {
  text-align: center;
  font-size: 13px;
  color: var(--text-light);
  margin-top: 24px;
  padding-bottom: 20px;
}

.help-link a { color: var(--indigo); font-weight: 600; }

.form-success {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(74, 122, 92, 0.08);
  border: 1px solid rgba(74, 122, 92, 0.2);
  color: var(--sage);
  font-size: 13.5px;
  font-weight: 500;
  padding: 18px 20px;
  border-radius: 10px;
  line-height: 1.6;
  margin-top: 8px;
}

.form-success svg { width: 22px; height: 22px; flex-shrink: 0; margin-top: 1px; }

.form-success strong { display: block; margin-bottom: 6px; font-size: 15px; }

@media(max-width:900px) {
  .screen { height: auto; overflow: visible; grid-template-columns: 1fr; }
  .side { height: auto; padding: 40px 24px; }
  .side-steps { display: none; } /* lot 18 : le formulaire remonte sur un téléphone */
  .form-wrap { height: auto; overflow-y: visible; padding: 40px 24px; }
}

/* Lot 18 : note pour les élèves (réglage « Inscription : note pour les élèves ») */
.side-note {
  margin-top: 22px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  font-size: 13.5px;
  color: var(--indigo-91);
}
