/* ============================================
   VARIABLES
   ============================================ */
:root {
  --bg: #f7f8fa;
  --card: #ffffff;
  --text: #2a2a2a;
  --muted: #8a8f94;
  --accent: #d4a5a5;
  --accent-hover: #c48b8b;
  --success: #4caf50;
  --success-dark: #45a049;
  --radius: 14px;
  --gap: 18px;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 10px 30px rgba(0, 0, 0, 0.08);
  --font-main: "Poppins", "Helvetica Neue", Arial, sans-serif;
}

/* ============================================
   RESET & BASE
   ============================================ */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-main);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
}

/* ============================================
   CARDS
   ============================================ */
.consent-card {
  width: 100%;
  max-width: 720px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
  transition: box-shadow 0.3s ease;
}

.consent-card:hover {
  box-shadow: var(--shadow-hover);
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
.title {
  margin: 0 0 8px 0;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.subtitle {
  margin: 0 0 20px 0;
  color: var(--muted);
  font-size: 14px;
}

.small {
  font-size: 12px;
}

.muted {
  color: var(--muted);
}

/* ============================================
   FORM ELEMENTS
   ============================================ */
.field {
  display: block;
  margin-bottom: 1.2em;
}

.label-text {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.field input[type="text"],
.field input[type="email"],
.field input[type="date"],
.field select,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #e0e2e5;
  border-radius: 10px;
  font-size: 15px;
  background: #fcfcfc;
  transition: border-color 0.2s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
  outline: none;
}

/* ============================================
   CONSENT SECTION
   ============================================ */
.consent-text {
  margin: 10px 0 20px 0;
  border: 1px solid #ececec;
  padding: 14px;
  border-radius: 10px;
  background: #fdfdfd;
}

.consent-text legend {
  font-weight: 600;
  font-size: 15px;
}

.checkbox {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}

.checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: background 0.3s ease, transform 0.2s ease;
}

.btn:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-home,
.retour-btn {
  display: inline-block;
  padding: 12px 30px;
  background: var(--accent);
  color: #ffffff;
  text-decoration: none;
  border-radius: var(--radius);
  font-weight: 500;
  transition: background 0.3s ease, transform 0.2s ease;
  margin-top: 20px;
}

.btn-home:hover,
.retour-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

/* ============================================
   CONFIRMATION PAGE
   ============================================ */
.confirmation-container {
  max-width: 600px;
  margin: 60px auto;
  padding: 40px;
  text-align: center;
}

.success-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 30px;
  background: var(--success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: scaleIn 0.5s ease-out;
}

.success-icon svg {
  width: 45px;
  height: 45px;
  stroke: white;
  stroke-width: 3;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  animation: checkmark 0.8s ease-out 0.3s forwards;
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
}

.confirmation-title {
  font-size: 28px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 15px;
}

.confirmation-message {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 30px;
}

.info-box {
  background: #f8f9fa;
  border-left: 4px solid var(--success);
  padding: 20px;
  margin: 30px 0;
  text-align: left;
  border-radius: 4px;
}

.info-box p {
  margin: 10px 0;
  font-size: 14px;
  color: #555;
}

.info-box strong {
  color: var(--text);
}

.contact-info {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid #e0e0e0;
  font-size: 14px;
  color: var(--muted);
}

.contact-info a {
  color: var(--success);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-info a:hover {
  color: var(--success-dark);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes scaleIn {
  from {
    transform: scale(0);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes checkmark {
  to {
    stroke-dashoffset: 0;
  }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 640px) {
  .consent-card {
    padding: 24px;
    border-radius: 12px;
  }
  
  .actions {
    justify-content: center;
  }
}
