/* ==========================================================================
   CLOUDSUD ELEGANT LIGHT-THEME STYLESHEET (BILINGUAL & LAW 25)
   ========================================================================== */

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

/* --- CSS Variables & Design Tokens (Light Theme) --- */
:root {
  /* Color Palette (Crisp & Corporate) */
  --bg-base: hsl(220, 16%, 97%);
  --bg-surface: hsl(0, 0%, 100%);
  --bg-surface-elevated: hsla(0, 0%, 100%, 0.85);
  --bg-nav: hsla(220, 16%, 97%, 0.88);
  
  --primary: hsl(224, 76%, 48%);
  --primary-glow: hsla(224, 76%, 48%, 0.12);
  --secondary: hsl(192, 85%, 40%);
  --secondary-glow: hsla(192, 85%, 40%, 0.12);
  --accent: hsl(263, 60%, 50%);
  
  --text-primary: hsl(220, 24%, 12%);
  --text-secondary: hsl(220, 12%, 35%);
  --text-muted: hsl(220, 8%, 56%);
  
  --border-color: hsla(220, 15%, 20%, 0.08);
  --border-hover: hsla(224, 76%, 48%, 0.3);
  
  /* Gradients */
  --grad-hero: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  --grad-text: linear-gradient(120deg, var(--text-primary) 30%, var(--primary) 100%);
  --grad-card-hover: linear-gradient(135deg, hsla(224, 76%, 48%, 0.02) 0%, hsla(192, 85%, 40%, 0.02) 100%);
  
  /* Shadows & Glassmorphism */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(220, 24%, 12%, 0.06);
  --shadow-lg: 0 20px 40px rgba(220, 24%, 12%, 0.1);
  
  --glass-blur: blur(20px);
  --glass-border: 1px solid hsla(220, 15%, 20%, 0.06);
  --glass-border-hover: 1px solid hsla(224, 76%, 48%, 0.25);
  
  /* Typography */
  --font-family-body: 'Inter', sans-serif;
  --font-family-title: 'Outfit', sans-serif;
  
  /* Layout */
  --container-max: 1000px;
  --header-height: 80px;
  
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-base);
}

body {
  font-family: var(--font-family-body);
  color: var(--text-primary);
  background-color: var(--bg-base);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-base);
}
::-webkit-scrollbar-thumb {
  background: hsl(220, 10%, 80%);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* --- Bilingual Class Visibility --- */
body.lang-en .lang-fr {
  display: none !important;
}
body.lang-fr .lang-en {
  display: none !important;
}

/* --- Soft Pastel Ambient Glows --- */
.bg-ambient-glow {
  position: fixed;
  width: 100vw;
  height: 100vh;
  top: 0;
  left: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.ambient-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.08; /* Low opacity for elegant pastel blending */
  animation: float-blob 20s infinite alternate ease-in-out;
}

.blob-1 {
  width: 550px;
  height: 550px;
  background: var(--primary);
  top: -10%;
  left: -5%;
  animation-duration: 25s;
}

.blob-2 {
  width: 450px;
  height: 450px;
  background: var(--secondary);
  bottom: -10%;
  right: -5%;
  animation-duration: 30s;
  animation-delay: -5s;
}

@keyframes float-blob {
  0% { transform: translate(0px, 0px) scale(1); }
  50% { transform: translate(30px, -40px) scale(1.05); }
  100% { transform: translate(0px, 0px) scale(1); }
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-family-title);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
}

.gradient-text {
  background: var(--grad-hero);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* --- Utilities --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 5.5rem 0;
  position: relative;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.6rem;
  font-family: var(--font-family-body);
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
  position: relative;
  gap: 0.5rem;
  outline: none;
}

.btn-primary {
  background: var(--primary);
  color: var(--bg-surface);
  box-shadow: 0 4px 12px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-1.5px);
  background: hsl(224, 76%, 42%);
  box-shadow: 0 6px 18px var(--primary-glow);
  color: var(--bg-surface);
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-secondary);
  border: var(--glass-border);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  border-color: var(--primary);
  background: var(--bg-surface);
  color: var(--primary);
  transform: translateY(-1.5px);
  box-shadow: var(--shadow-md);
}

.btn-icon {
  width: 1.1rem;
  height: 1.1rem;
  transition: transform var(--transition-fast);
}

.btn:hover .btn-icon {
  transform: translateX(2px);
}

/* --- Header / Navigation --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  background-color: var(--bg-nav);
  backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  transition: background-color var(--transition-normal), height var(--transition-normal);
}

.header.scrolled {
  height: 70px;
  background-color: hsla(220, 16%, 97%, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-family: var(--font-family-title);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
}

.logo-cloud {
  width: 1.65rem;
  height: 1.65rem;
  color: var(--primary);
  filter: drop-shadow(0 0 3px var(--primary-glow));
}

.nav-cta-group {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.language-toggle {
  padding: 0.4rem 0.8rem !important;
  font-size: 0.8rem !important;
  border-radius: 6px !important;
  font-family: monospace;
}

/* --- Hero Section --- */
.hero-section {
  padding-top: calc(var(--header-height) + 3rem);
  min-height: 70vh;
  display: flex;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.8rem;
  background: hsla(224, 76%, 48%, 0.05);
  border: 1px solid hsla(224, 76%, 48%, 0.12);
  border-radius: 9999px;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.hero-badge-dot {
  width: 5px;
  height: 5px;
  background-color: var(--primary);
  border-radius: 50%;
  margin-right: 0.4rem;
}

.hero-title {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.hero-buttons {
  display: flex;
  gap: 0.8rem;
}

/* --- Section Headers --- */
.section-header {
  text-align: center;
  max-width: 550px;
  margin: 0 auto 3.5rem auto;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.section-subtitle {
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--primary);
}

.section-title {
  font-size: clamp(1.6rem, 2.5vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.01em;
}

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

/* --- Services Grid (Simple & Soft Bordered Cards) --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--bg-surface);
  border: var(--glass-border);
  border-radius: 14px;
  padding: 2.2rem 1.8rem;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  box-shadow: var(--shadow-sm);
}

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

.service-icon-box {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 10px;
  background: hsla(224, 76%, 48%, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  border: 1px solid hsla(224, 76%, 48%, 0.08);
  transition: all var(--transition-normal);
}

.service-card:hover .service-icon-box {
  background: var(--primary);
  color: var(--bg-surface);
  box-shadow: 0 4px 10px var(--primary-glow);
}

.service-icon {
  width: 1.35rem;
  height: 1.35rem;
}

.service-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}

.service-card-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.55;
}

/* --- Separate Privacy Policy Layout (privacy.html) --- */
.privacy-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.privacy-card {
  background: var(--bg-surface);
  border: var(--glass-border);
  border-radius: 16px;
  padding: 2.2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.privacy-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  border-left: 3px solid var(--primary);
  padding-left: 0.6rem;
  margin-top: 0.4rem;
}

.privacy-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.privacy-card ul {
  padding-left: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.privacy-card li {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.privacy-officer-box {
  background: hsla(224, 76%, 48%, 0.03);
  border: 1px dashed hsla(224, 76%, 48%, 0.2);
  border-radius: 10px;
  padding: 1.2rem;
  margin-top: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.privacy-officer-box h4 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
}

.privacy-officer-box a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.privacy-officer-box a:hover {
  text-decoration: underline;
}

/* --- Contact Section & Form --- */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.contact-header {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-method-card {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem;
  background: var(--bg-surface);
  border: var(--glass-border);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.contact-method-card:hover {
  border-color: var(--primary);
  transform: translateX(3px);
}

.method-icon-box {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 8px;
  background: hsla(224, 76%, 48%, 0.05);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.method-info {
  display: flex;
  flex-direction: column;
}

.method-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.method-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
}

.contact-form-box {
  background: var(--bg-surface);
  border: var(--glass-border);
  border-radius: 16px;
  padding: 2.2rem;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.form-title {
  font-size: 1.3rem;
  font-weight: 750;
  margin-bottom: 1.5rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-group.full-width {
  grid-column: span 2;
}

.form-label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-input, .form-textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  background: var(--bg-base);
  border: var(--glass-border);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: var(--font-family-body);
  font-size: 0.9rem;
  transition: all var(--transition-normal);
  outline: none;
}

.form-input:focus, .form-textarea:focus {
  border-color: var(--primary);
  background: var(--bg-surface);
  box-shadow: 0 0 8px var(--primary-glow);
}

.form-textarea {
  min-height: 90px;
  resize: vertical;
}

.submit-btn {
  width: 100%;
  margin-top: 0.6rem;
}

/* Success Form overlay */
.form-success-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-surface);
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  padding: 1.8rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.form-success-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.success-check-icon {
  width: 3.5rem;
  height: 3.5rem;
  color: var(--primary);
  background: hsla(224, 76%, 48%, 0.05);
  border-radius: 50%;
  padding: 0.75rem;
  animation: pulse-success 2s infinite;
}

@keyframes pulse-success {
  0% { transform: scale(1); box-shadow: 0 0 0 0 hsla(224, 76%, 48%, 0.2); }
  70% { transform: scale(1.03); box-shadow: 0 0 0 10px hsla(224, 76%, 48%, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 hsla(224, 76%, 48%, 0); }
}

.success-title {
  font-size: 1.45rem;
  font-weight: 700;
}

.success-desc {
  color: var(--text-secondary);
  text-align: center;
  font-size: 0.9rem;
  max-width: 280px;
}

/* --- Footer (Clean & Extremely Simple) --- */
.footer {
  background: var(--bg-base);
  border-top: 1px solid var(--border-color);
  padding: 3.5rem 0 2rem 0;
  color: var(--text-secondary);
}

.footer-wrapper {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-family: var(--font-family-title);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
}

.footer-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 320px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

.footer-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.85rem;
  transition: color var(--transition-fast);
}

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

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 1.2rem;
  display: flex;
  justify-content: center;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* --- Quebec Law 25 Cookie Banner (Light Glassmorphic) --- */
.cookie-banner {
  position: fixed;
  bottom: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 620px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--primary);
  border-radius: 12px;
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--shadow-lg);
  padding: 1.1rem 1.5rem;
  z-index: 9999;
  transition: bottom 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-banner.show {
  bottom: 1.5rem;
}

.cookie-content {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.cookie-content p {
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.cookie-content a {
  color: var(--primary);
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
}

/* --- Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive Adjustations --- */
@media (max-width: 768px) {
  section {
    padding: 3.5rem 0;
  }
  
  .header {
    height: 70px;
  }
  
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .contact-form-box {
    padding: 1.8rem;
  }
  
  .form-grid {
    grid-template-columns: 1fr;
  }
  
  .form-group.full-width {
    grid-column: span 1;
  }
  
  .footer-wrapper {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-col {
    align-items: flex-start !important;
  }
  
  .footer-links {
    align-items: flex-start !important;
    text-align: left !important;
  }
}

@media (max-width: 480px) {
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }
  .btn {
    width: 100%;
  }
  .cookie-actions {
    flex-direction: column;
  }
}
