/* =============================================
   JAELLE.HAIR — FORM.CSS
   CSS partagé pour tous les formulaires
   ============================================= */
@import url('style.css');



        html {
            scroll-behavior: smooth;
            overflow-x: hidden;   /* ← bloque le scroll horizontal sur html */
            max-width: 100%;
        }
        body {
            font-family: var(--font-body);
            color: var(--text);
            background: var(--white);
            overflow-x: hidden;   /* ← bloque le scroll horizontal sur body */
            max-width: 100%;
            position: relative;
        }

/* ── FORM PAGE LAYOUT ── */
.form-page {
  padding-top: 72px;
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden;
}

.form-hero {
  background: linear-gradient(135deg, var(--violet) 0%, #5A2A78 100%);
  padding: 64px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.form-hero::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(232,168,216,0.1);
  pointer-events: none;
}
.form-hero::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -60px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(232,168,216,0.07);
  pointer-events: none;
}

.form-hero-content { position: relative; z-index: 1; }
.form-hero .section-tag {
  background: rgba(232,168,216,0.2);
  color: var(--rose);
  border: 1px solid rgba(232,168,216,0.3);
  margin-bottom: 16px;
}
.form-hero h1 {
  color: var(--blanc);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 12px;
}
.form-hero p {
  color: rgba(255,255,255,0.72);
  font-size: 1rem;
  max-width: 500px;
  margin: 0 auto 24px;
}
.form-contact-rapide {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.form-contact-rapide a,
.form-contact-rapide span {
  font-size: 0.88rem;
  color: var(--rose);
  display: flex;
  align-items: center;
  gap: 6px;
}
.form-contact-rapide a:hover { color: var(--rose-light); }

/* ── FORM CONTAINER ── */
.form-container {
  max-width: 720px;
  margin: -32px auto 64px;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}
form {
  background: var(--blanc);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

/* ── FORM SECTIONS ── */
.form-section {
  margin-bottom: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--border);
}
.form-section:last-of-type {
  border-bottom: none;
  margin-bottom: 32px;
}
.form-section h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.1rem;
  color: var(--violet);
  margin-bottom: 24px;
}
.form-section h3 span {
  width: 30px; height: 30px;
  background: var(--rose);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--violet);
  flex-shrink: 0;
}

/* ── FORM ELEMENTS ── */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}
.form-group:last-child { margin-bottom: 0; }

.form-group label {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--violet);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--texte);
  background: var(--ivoire);
  transition: var(--transition);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}
.form-group select {
  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='%233D1F52' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--rose);
  background: var(--blanc);
  box-shadow: 0 0 0 3px rgba(232,168,216,0.2);
}
.form-group textarea { resize: vertical; min-height: 100px; }

/* ── RADIO GROUPS ── */
.radio-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.radio-label {
  display: flex;
  align-items: center;
  gap: 0;
  cursor: pointer;
}
.radio-label input[type="radio"] {
  display: none;
}
.radio-label span {
  display: inline-block;
  padding: 9px 20px;
  border-radius: var(--radius-xl);
  border: 1.5px solid var(--border);
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--texte-doux);
  background: var(--ivoire);
  transition: var(--transition);
  cursor: pointer;
}
.radio-label input:checked + span {
  background: var(--violet);
  color: var(--blanc);
  border-color: var(--violet);
}
.radio-label span:hover {
  border-color: var(--rose);
  color: var(--violet);
}

/* ── SUBMIT ── */
.btn-submit {
  width: 100%;
  padding: 16px 32px;
  background: var(--violet);
  color: var(--blanc);
  border: none;
  border-radius: var(--radius-xl);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.btn-submit:hover {
  background: var(--violet-mid);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ── FEEDBACK ── */
.form-feedback {
  margin-top: 20px;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.form-feedback.success {
  background: rgba(61,31,82,0.06);
  color: var(--violet);
  border: 1px solid rgba(61,31,82,0.15);
}
.form-feedback.error {
  background: rgba(200,40,40,0.06);
  color: #c82828;
  border: 1px solid rgba(200,40,40,0.2);
}

/* ── FOOTER FORM ── */
.form-footer {
  background: var(--violet);
  padding: 24px 48px;
  text-align: center;
}
.form-footer p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}
.form-footer a {
  color: var(--rose);
}
.form-footer a:hover { color: var(--rose-light); }

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  .form-hero { padding: 48px 24px; }
  form { padding: 28px 20px; }
  .form-row { grid-template-columns: 1fr; }
  .radio-group { gap: 8px; }
}

