/* =============================================================================
   Projet2Team Site — Modern Light Theme Design System
   Conçu selon les standards d'excellence UI/UX (Apple, Stripe & Linear style)
   ============================================================================= */

:root {
  /* Palette de couleurs Thème Clair (Light Mode) */
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-surface: rgba(255, 255, 255, 0.92);
  --bg-surface-elevated: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --bg-subtle: #f8fafc;
  --bg-muted: #e2e8f0;

  /* Typographie & Niveaux de Contraste */
  --text-primary: #0f172a;       /* Slate 900 */
  --text-secondary: #334155;     /* Slate 700 */
  --text-muted: #64748b;         /* Slate 500 */
  --text-light: #94a3b8;         /* Slate 400 */
  --text-inverse: #ffffff;

  /* Accents & Couleurs d'Action */
  --accent-primary: #0284c7;     /* Sky 600 */
  --accent-primary-hover: #0369a1;
  --accent-secondary: #4f46e5;   /* Indigo 600 */
  --accent-cyan: #0891b2;        /* Cyan 600 */
  --accent-green: #16a34a;       /* Green 600 */
  --accent-orange: #ea580c;      /* Orange 600 */
  --accent-red: #dc2626;         /* Red 600 */

  /* Bordures & Ombres */
  --border-color: #e2e8f0;
  --border-color-hover: #cbd5e1;
  --border-focus: #0284c7;

  --shadow-xs: 0 1px 2px 0 rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 2px 4px 0 rgba(15, 23, 42, 0.05);
  --shadow-md: 0 6px 12px -2px rgba(15, 23, 42, 0.06), 0 3px 6px -3px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 12px 24px -4px rgba(15, 23, 42, 0.08), 0 4px 8px -2px rgba(15, 23, 42, 0.03);
  --shadow-xl: 0 20px 30px -6px rgba(15, 23, 42, 0.1), 0 8px 12px -4px rgba(15, 23, 42, 0.04);
  --shadow-glow: 0 0 20px -3px rgba(2, 132, 199, 0.25);

  /* Rayons & Effets */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;
  --glass-blur: blur(12px);

  /* Polices */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

/* -------------------------------------------------------------
   Reset & Base Styles
------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-image:
    radial-gradient(circle at 10% 10%, rgba(2, 132, 199, 0.04) 0%, transparent 45%),
    radial-gradient(circle at 90% 90%, rgba(79, 70, 229, 0.04) 0%, transparent 45%);
  background-attachment: fixed;
}

a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--accent-primary-hover);
}

img, svg {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

/* -------------------------------------------------------------
   Navigation Bar & Mobile Menu
------------------------------------------------------------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-surface);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border-color);
  padding: 0.85rem 0;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-xs);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-logo-text {
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #0284c7 0%, #4f46e5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-badge {
  font-size: 0.75rem;
  padding: 0.25rem 0.65rem;
  background: rgba(2, 132, 199, 0.1);
  color: var(--accent-primary);
  border: 1px solid rgba(2, 132, 199, 0.25);
  border-radius: var(--radius-full);
  font-weight: 700;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all 0.15s ease;
  padding: 0.35rem 0.5rem;
  border-radius: var(--radius-sm);
}

.nav-link:hover {
  color: var(--accent-primary);
  background: rgba(2, 132, 199, 0.05);
}

.nav-link-admin {
  color: var(--accent-secondary);
}

/* Mobile Toggle Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.5rem;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--text-primary);
  transition: all 0.2s ease;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 65px;
    left: 0;
    right: 0;
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    padding: 1.5rem;
    display: none;
    flex-direction: column;
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    width: 100%;
  }

  .nav-link {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1.05rem;
  }
}

/* -------------------------------------------------------------
   Buttons & Action Components
------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
  white-space: nowrap;
}

.btn-sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
  color: #ffffff !important;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md), var(--shadow-glow);
  opacity: 0.95;
}

.btn-secondary {
  background: #ffffff;
  color: var(--text-primary) !important;
  border-color: var(--border-color);
  box-shadow: var(--shadow-xs);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-color-hover);
  transform: translateY(-1px);
}

.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: #0f172a;
  color: #ffffff !important;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.btn-store:hover {
  background: #1e293b;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-store-text {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.15;
}

.btn-store-sub {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
}

.btn-store-title {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
}

/* -------------------------------------------------------------
   Hero Section
------------------------------------------------------------- */
.hero {
  padding: 5rem 1.5rem 3.5rem;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.1rem;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent-primary);
  margin-bottom: 1.75rem;
  box-shadow: var(--shadow-xs);
}

.hero-title {
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.035em;
  margin-bottom: 1.5rem;
  color: #0f172a;
}

.hero-tagline {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 750px;
  margin: 0 auto 2.5rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

/* -------------------------------------------------------------
   Cloud Sync Highlight Banner
------------------------------------------------------------- */
.sync-banner {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-left: 5px solid var(--accent-cyan);
  border-radius: var(--radius-xl);
  padding: 3rem;
  margin: 2.5rem auto 4rem;
  max-width: 1100px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  box-shadow: var(--shadow-lg);
  text-align: left;
}

@media (max-width: 860px) {
  .sync-banner {
    grid-template-columns: 1fr;
    padding: 1.75rem;
  }
}

.sync-badge {
  display: inline-block;
  background: rgba(8, 145, 178, 0.1);
  color: var(--accent-cyan);
  border: 1px solid rgba(8, 145, 178, 0.25);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.sync-banner h2 {
  font-size: 1.85rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.sync-banner p {
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.65;
}

.sync-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sync-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.sync-icon-check {
  color: var(--accent-green);
  font-weight: 800;
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* -------------------------------------------------------------
   Section & Grid Layouts
------------------------------------------------------------- */
.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3.5rem;
}

.section-header h2 {
  font-size: 2.2rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.025em;
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.75rem;
}

/* -------------------------------------------------------------
   Cards
------------------------------------------------------------- */
.card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}

.card:hover {
  border-color: var(--border-color-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(2, 132, 199, 0.08);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* -------------------------------------------------------------
   Pricing Section
------------------------------------------------------------- */
.pricing-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  background: #ffffff;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: all 0.25s ease;
}

.pricing-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.pricing-card.popular {
  border: 2px solid var(--accent-primary);
  box-shadow: var(--shadow-md), var(--shadow-glow);
  background: #ffffff;
}

.popular-badge {
  position: absolute;
  top: -12px;
  right: 1.5rem;
  background: var(--accent-primary);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: var(--shadow-sm);
}

.price-box {
  margin: 1.5rem 0;
}

.price-amount {
  font-size: 2.8rem;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.03em;
}

.price-currency {
  font-size: 1.5rem;
  vertical-align: super;
  margin-right: 0.2rem;
  color: #0f172a;
}

.price-interval {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
}

.pricing-features {
  list-style: none;
  margin: 1.5rem 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

/* -------------------------------------------------------------
   FAQ Accordion
------------------------------------------------------------- */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

details.faq-item {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  box-shadow: var(--shadow-xs);
  transition: all 0.2s ease;
}

details.faq-item[open] {
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-sm);
}

details.faq-item summary {
  font-weight: 700;
  font-size: 1.05rem;
  color: #0f172a;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

details.faq-item summary::-webkit-details-marker {
  display: none;
}

details.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--accent-primary);
  transition: transform 0.2s ease;
}

details.faq-item[open] summary::after {
  content: "−";
  transform: rotate(180deg);
}

details.faq-item .faq-content {
  margin-top: 1rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* -------------------------------------------------------------
   Forms & Controls
------------------------------------------------------------- */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: #0f172a;
}

.form-control {
  width: 100%;
  padding: 0.7rem 0.95rem;
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.92rem;
  font-family: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

/* -------------------------------------------------------------
   Cookie Banner RGPD
------------------------------------------------------------- */
.cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  max-width: 420px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-xl);
  z-index: 1000;
  display: none;
  animation: slideUp 0.3s ease-out forwards;
}

.cookie-banner.show {
  display: block;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.cookie-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

/* -------------------------------------------------------------
   Footer
------------------------------------------------------------- */
.footer {
  margin-top: auto;
  border-top: 1px solid var(--border-color);
  background: #ffffff;
  padding: 4rem 1.5rem 2rem;
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

@media (max-width: 860px) {
  .footer-container {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 540px) {
  .footer-container {
    grid-template-columns: 1fr;
  }
}

.footer h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.75rem;
}

.footer h4 {
  color: #0f172a;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--accent-primary);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 1rem;
}
