/* === CAZAPP.FR - Global Styles === */
:root {
  --primary: #6C5CE7;
  --primary-light: #A29BFE;
  --accent: #00CEC9;
  --dark: #2D3436;
  --darker: #1E272E;
  --light: #F5F6FA;
  --white: #FFFFFF;
  --gray: #636E72;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  --shadow-hover: 0 12px 40px rgba(108, 92, 231, 0.25);
  --radius: 16px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--light);
  color: var(--dark);
  line-height: 1.6;
  min-height: 100vh;
}

/* === HEADER === */
.header {
  background: linear-gradient(135deg, var(--darker) 0%, var(--primary) 100%);
  color: var(--white);
  padding: 60px 20px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.header::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 30px 30px;
  animation: drift 20s linear infinite;
}

@keyframes drift {
  from { transform: translate(0, 0); }
  to { transform: translate(30px, 30px); }
}

.header-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}

.logo {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 8px;
}

.logo span {
  color: var(--accent);
}

.tagline {
  font-size: 1.15rem;
  opacity: 0.85;
  font-weight: 300;
}

/* === MAIN CONTENT === */
.main {
  max-width: 900px;
  margin: -40px auto 0;
  padding: 0 20px 60px;
  position: relative;
  z-index: 2;
}

/* === APP GRID === */
.section-title {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 32px;
  color: var(--dark);
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.app-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-decoration: none;
  color: var(--dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}

.app-card .badge-row {
  margin-top: auto;
  padding-top: 8px;
}

.app-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.app-icon {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  object-fit: cover;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.app-icon-placeholder {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--white);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.app-name {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.app-desc {
  font-size: 0.9rem;
  color: var(--gray);
  margin-bottom: 16px;
  line-height: 1.5;
}

.badge-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.store-badge {
  display: inline-block;
  text-decoration: none;
  transition: var(--transition);
}

.store-badge img {
  height: 48px;
  width: auto;
  display: block;
  border-radius: 6px;
}

.store-badge:hover {
  opacity: 0.85;
  transform: scale(1.05);
}

.store-badge-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 48px;
  padding: 0 20px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
  transition: var(--transition);
}

.store-badge-text.website {
  background: var(--primary);
}

.store-badge-text:hover {
  opacity: 0.85;
  transform: scale(1.05);
}

/* === FOOTER === */
.footer {
  text-align: center;
  padding: 30px 20px;
  color: var(--gray);
  font-size: 0.85rem;
  border-top: 1px solid #E0E0E0;
  background: var(--white);
}

.footer a {
  color: var(--primary);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

/* === SUB-PAGE STYLES === */
.subpage-header {
  background: linear-gradient(135deg, var(--darker) 0%, var(--primary) 100%);
  color: var(--white);
  padding: 40px 20px;
  text-align: center;
  position: relative;
}

.subpage-header .back-link {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--white);
  text-decoration: none;
  font-size: 0.9rem;
  opacity: 0.8;
  transition: var(--transition);
}

.subpage-header .back-link:hover {
  opacity: 1;
}

.subpage-app-icon {
  width: 80px;
  height: 80px;
  border-radius: 18px;
  margin-bottom: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.subpage-title {
  font-size: 2rem;
  font-weight: 800;
}

.content-section {
  max-width: 800px;
  margin: 30px auto;
  padding: 0 20px 60px;
}

.content-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}

.content-card h1 {
  font-size: 1.6rem;
  margin-bottom: 20px;
  color: var(--dark);
}

.content-card h2 {
  font-size: 1.2rem;
  margin: 24px 0 12px;
  color: var(--dark);
}

.content-card p, .content-card li {
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 12px;
}

.content-card ul {
  padding-left: 24px;
}

.content-card a {
  color: var(--primary);
}

.links-list {
  list-style: none;
  padding: 0;
}

.links-list li {
  margin-bottom: 8px;
}

.links-list a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--light);
  border-radius: 10px;
  text-decoration: none;
  color: var(--dark);
  font-weight: 500;
  transition: var(--transition);
  width: 100%;
}

.links-list a:hover {
  background: var(--primary);
  color: var(--white);
}

/* === RESPONSIVE === */
@media (max-width: 600px) {
  .header {
    padding: 40px 16px 60px;
  }
  .logo {
    font-size: 2.2rem;
  }
  .app-grid {
    grid-template-columns: 1fr;
  }
  .content-card {
    padding: 24px;
  }
  .subpage-header .back-link {
    position: static;
    display: block;
    transform: none;
    margin-bottom: 12px;
  }
}
