/* terms.css — styles pour la page Conditions (Tryxee 3D)
   Dernière mise à jour : 07/12/2025
   Conçu pour être autonome et lisible sur desktop & mobile
*/

/* palette & variables (reprend la base de styles.css) */
:root{
  --bg: #071119;
  --card: #0e1620;
  --muted: #9aa4b2;
  --accent: #4dd0e1;
  --accent-2: #7ce7ff;
  --glass: rgba(255,255,255,0.04);
  --max-w: 1100px;
  --ff: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  --radius: 12px;
  --gap: 1.25rem;
  --shadow-lg: 0 18px 46px rgba(2,6,10,0.6);
  --shadow-sm: 0 6px 18px rgba(2,6,10,0.45);
  --text: #e6eef6;
  --muted-2: rgba(230,238,246,0.75);
  --success: #7ee7a6;
  --danger: #ff6b6b;
}

/* Reset de base (léger) */
* { box-sizing: border-box; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
html,body { height: 100%; margin: 0; font-family: var(--ff); background: linear-gradient(180deg,#05060a 0%,var(--bg) 100%); color: var(--text); line-height: 1.6; }

/* Container principal */
.terms-page {
  min-height: 100vh;
  padding: 5.5rem 1rem 3.5rem;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: var(--gap);
}

/* Card */
.terms {
  width: 100%;
  max-width: var(--max-w);
  background: linear-gradient(180deg, rgba(255,255,255,0.02) 0%, rgba(255,255,255,0.01) 100%);
  border: 1px solid rgba(255,255,255,0.03);
  border-radius: calc(var(--radius) + 4px);
  padding: 2.25rem;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(6px);
}

/* Header */
.terms header { margin-bottom: 1.25rem; display:flex; flex-direction:column; gap:0.5rem; }
.terms h1 {
  margin: 0;
  font-size: clamp(1.45rem, 3.2vw, 2rem);
  line-height: 1.05;
  letter-spacing: -0.6px;
  color: #fff;
}
.terms .meta {
  color: var(--muted);
  font-size: .95rem;
}

/* Sections */
.terms section { margin-top: 1.25rem; }
.terms h2 {
  margin: 0 0 .6rem 0;
  font-size: 1.05rem;
  color: #eaf6fb;
  font-weight: 700;
}
.terms p, .terms li {
  margin: 0 .0 0.8rem 0;
  color: var(--muted-2);
  font-size: .99rem;
}

/* Listes */
.terms ul { padding-left: 1.15rem; margin: .4rem 0; }
.terms li { margin-bottom: .45rem; }

/* Links inside the terms */
.terms a {
  color: var(--accent-2);
  text-decoration: none;
  border-bottom: 1px dashed rgba(124,231,255,0.12);
}
.terms a:hover { text-decoration: underline; }

/* Formulaire d'acceptation */
.accept-area {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}
.accept-area label { display: flex; gap: .6rem; align-items: center; cursor: pointer; color: var(--muted); font-size: .98rem; }

/* Checkbox custom */
.accept-area input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 2px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.01), rgba(255,255,255,0.00));
  display: inline-grid;
  place-items: center;
  transition: all 180ms cubic-bezier(.2,.9,.3,1);
}
.accept-area input[type="checkbox"]:focus { outline: 3px solid rgba(124,231,255,0.08); }
.accept-area input[type="checkbox"]:checked {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-color: rgba(255,255,255,0.06);
}
.accept-area input[type="checkbox"]:checked::after {
  content: "✓";
  font-size: 12px;
  color: #022;
  font-weight: 800;
  transform: translateY(-1px);
}

/* Bouton d'acceptation */
.btn-accept {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: 10px 14px;
  border-radius: 10px;
  border: 0;
  cursor: pointer;
  font-weight: 800;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #022;
  box-shadow: 0 10px 28px rgba(77,208,225,0.08);
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.btn-accept:hover { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(77,208,225,0.12); }
.btn-accept:active { transform: translateY(-1px); }

/* Note & footer */
.terms .note { margin-top: 1rem; color: var(--muted); font-size: .95rem; }

/* Small helpers */
.kv { display:flex; gap:.5rem; align-items:center; color:var(--muted); font-size:.95rem; }
.section-grid { display:grid; grid-template-columns: 1fr 320px; gap: 1rem; align-items:start; }
.section-aside { padding: 1rem; border-radius: 10px; background: var(--card); border:1px solid rgba(255,255,255,0.02); box-shadow: var(--shadow-sm); }

/* Responsive */
@media (max-width: 980px) {
  .terms { padding: 1.25rem; border-radius: 10px; }
  .accept-area { flex-direction: column; align-items: stretch; }
  .btn-accept { width: 100%; justify-content:center; }
}

/* Impression (hide interactive stuff) */
@media print {
  body { background: #fff; color: #000; }
  .terms { box-shadow: none; border: none; background: transparent; }
  .accept-area, .btn-accept, input[type="checkbox"], nav.navbar { display: none !important; }
  a::after { content: " (" attr(href) ")"; font-size: 90%; color: #444; }
}

/* Accessibility: focus visible for keyboard users */
:focus { outline: none; }
a:focus, button:focus, input:focus, select:focus, textarea:focus {
  box-shadow: 0 0 0 4px rgba(124,231,255,0.08);
  border-radius: 8px;
}

/* Small visual flourish: accent underline for h2 */
.terms h2::after {
  content: "";
  display:block;
  width: 54px;
  height: 4px;
  border-radius: 4px;
  margin-top: .6rem;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  opacity: 0.12;
}

/* Error / success states for potential server feedback */
.msg { padding: .8rem 1rem; border-radius: 10px; margin-top: .9rem; font-weight:600; }
.msg--success { background: linear-gradient(90deg, rgba(126,231,166,0.09), rgba(126,231,166,0.03)); color: var(--success); border:1px solid rgba(126,231,166,0.06); }
.msg--error { background: linear-gradient(90deg, rgba(255,107,107,0.06), rgba(255,107,107,0.02)); color: var(--danger); border:1px solid rgba(255,107,107,0.06); }

/* End of terms.css */
