/* Design System Global - Modern Professional Theme */
/* Applique ce design à tout le site WordPress */

:root {
  /* Modern Color Palette - using site-wide bleu marine (navy) */
  --primary: #0B1E3D;        /* bleu marine principal */
  --primary-dark: #071427;   /* bleu marine plus sombre */
  --primary-light: #15324a;  /* ton plus clair de bleu marine */
  --secondary: #64748b;
  --accent: #f59e0b;
  --surface: #ffffff;
  --background: #f8fafc;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --border: #e2e8f0;
  --shadow: rgba(0, 0, 0, 0.1);

  /* Layout */
  --border-radius: 12px;
  --border-radius-lg: 16px;
  --shadow-sm: 0 1px 2px 0 var(--shadow);
  --shadow-md: 0 4px 6px -1px var(--shadow);
  --shadow-lg: 0 10px 15px -3px var(--shadow);
  --shadow-xl: 0 20px 25px -5px var(--shadow);
}

/* Global Typography */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--background);
}

/* Modern Buttons */
.cta-pill,
.pill,
.button,
.btn,
.wp-block-button__link,
input[type="submit"],
button[type="submit"] {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  height: 56px;
  padding: 0 2rem;
  border-radius: 28px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.125rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  border: 2px solid var(--border);
  background: var(--surface);
  color: var(--text-primary);
  box-shadow: var(--shadow-md);
}

.cta-pill:hover,
.pill:hover,
.button:hover,
.btn:hover,
.wp-block-button__link:hover,
input[type="submit"]:hover,
button[type="submit"]:hover {
  background: var(--primary-dark) !important;
  color: #ffffff !important;
  border-color: var(--primary-dark) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.nav-menu a:hover,
.main-navigation a:hover {
  background: var(--primary-dark) !important;
  color: #ffffff !important;
}

/* Fallback global: for any button/link that gets a blue-like hover, ensure text is white */
.cta-pill:hover,
.pill:hover,
.button:hover,
.btn:hover,
.wp-block-button__link:hover,
.nav-menu a:hover,
.main-navigation a:hover,
button:hover,
input[type="submit"]:hover,
a.button:hover,
.kadence-btn:hover {
  color: #ffffff !important;
}
.wp-block-group,
.wp-block-cover,
.entry-content .wp-block-group {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  margin-bottom: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover,
.wp-block-group:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

/* Modern Sections */
.section,
.wp-block-group.has-background,
.entry-content section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--border-radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  margin-bottom: 2rem;
}

/* Modern Links */
.linkbtn,
a:not(.wp-block-button__link) {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.linkbtn:hover,
a:not(.wp-block-button__link):hover {
  color: var(--primary-dark);
}

/* Modern Inputs */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
textarea,
select {
  border: 2px solid var(--border);
  border-radius: var(--border-radius);
  padding: 0.75rem 1rem;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  background: var(--surface);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(11, 30, 61, 0.12);
}

/* Modern Headings */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.875rem); }

/* Modern Navigation */
.nav-menu,
.main-navigation {
  background: var(--surface);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.nav-menu a,
.main-navigation a {
  padding: 1rem 1.5rem;
  transition: all 0.3s ease;
  border-bottom: 1px solid var(--border);
}

.nav-menu a:hover,
.main-navigation a:hover {
  background: var(--primary);
  color: white;
}

/* Modern Footer */
.site-footer {
  background: var(--text-primary);
  color: white;
  padding: 3rem 0 1rem;
  margin-top: 4rem;
}

.site-footer a {
  color: #e2e8f0;
  text-decoration: none;
}

.site-footer a:hover {
  color: white;
}

/* Modern Tables */
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

th, td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

th {
  background: var(--background);
  font-weight: 600;
  color: var(--text-primary);
}

/* Modern Blockquotes */
blockquote {
  border-left: 4px solid var(--primary);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--text-secondary);
  background: var(--background);
  padding: 1.5rem;
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

/* Offer Card Buttons - Consistent across all pages */
.of-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  height: 34px;
  padding: 0 12px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: .88rem;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
  min-width: 160px;
  justify-content: center;
  cursor: pointer;
  border: none;
  outline: none;
}

.of-btn--primary {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
  color: #ffffff;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.of-btn--primary:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.15));
  color: #ffffff;
  transform: translateY(-4px) scale(1.02);
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.3),
    0 0 32px rgba(255, 255, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
}

.of-btn--primary:active {
  transform: translateY(-2px) scale(0.98);
  transition: all 0.1s ease;
}

/* Modern Images */
img {
  border-radius: var(--border-radius);
  transition: transform 0.3s ease;
}

img:hover {
  transform: scale(1.02);
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 2rem; }

/* Responsive Design */
@media (max-width: 768px) {
  .cta-pill,
  .pill,
  .button,
  .btn {
    height: 64px;
    padding: 0 2rem;
    font-size: 1.125rem;
    min-width: 240px;
  }

  .card,
  .section {

  /* Override: reduce size of the login button inside the left login panel so it fits the container.
     This file is loaded after `assets/custom.css`, so add the rule here for reliable cascade. */
  .login-embed input[type="submit"],
  .login-embed .button,
  .cma-card.login-embed input[type="submit"],
  .cma-card.login-embed .button,
  .panel-login .login-embed input[type="submit"],
  .panel-login .login-embed .button {
    display: block !important;
    width: auto !important;
    max-width: 240px !important;
    margin: 8px auto 0 !important;
    height: 34px !important;
    padding: 6px 12px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    border-radius: 6px !important;
    box-shadow: none !important;
    text-align: center !important;
    white-space: nowrap !important;
    overflow: hidden !important;
  }

  /* Ensure inputs and container don't force the button to expand */
  .login-embed, .cma-card.login-embed { max-width: 100% !important; box-sizing: border-box !important; }

    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.5rem; }
}

@media (max-width: 480px) {
  .cta-pill,
  .pill,
  .button,
  .btn {
    height: 56px;
    padding: 0 1.5rem;
    font-size: 1rem;
    min-width: 200px;
  }

  .card,
  .section {
    padding: 1rem;
  }
}

/* Animation Classes */
.fade-in {
  animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slide-up {
  animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}