/* ===== Apple-like minimal UI Design System - Osons Chanter ===== */

:root {
    /* Theme Colors - Osons Chanter custom theme */
    --theme-primary: #b80c0c;          /* Bright red for Osons Chanter */
    --theme-on-primary: #ffffff;       /* White text on primary */
    --theme-text: #0b0c0f;            /* Dark text */
    
    /* Base Colors */
    --theme-background: #ffffff;
    --theme-muted: #6b7280;
    --theme-border: #e5e7eb;
    
    /* Status Colors */
    --theme-success: #19c37d;
    --theme-danger: #ef4444;
    --theme-warning: #f59e0b;
    
    /* Shadows */
    --shadow: 0 12px 40px rgba(0, 0, 0, .06);
    --shadow-sm: 0 4px 16px rgba(0, 0, 0, .08);
    
    /* Border Radius */
    --radius: 18px;
    --radius-sm: 12px;
    --radius-xs: 8px;
    
    /* Layout */
    --max: 900px;
    --gutter: clamp(24px, 6vw, 48px);
  }
  
  /* ===== Reset & Base ===== */
  
  *, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  html {
    height: 100%;
    scroll-behavior: smooth;
  }
  
  body {
    margin: 0;
    min-height: 100%;
    background: var(--theme-background);
    color: var(--theme-text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
  }
  
  /* ===== Typography ===== */
  
  h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.2px;
    color: var(--theme-text);
  }
  
  h1 {
    font-size: clamp(32px, 4vw, 48px);
    margin-bottom: 16px;
  }
  
  h2 {
    font-size: clamp(28px, 3.2vw, 40px);
    margin-bottom: 14px;
  }
  
  h3 {
    font-size: clamp(24px, 2.6vw, 32px);
    margin-bottom: 12px;
  }
  
  h4 {
    font-size: clamp(20px, 2.2vw, 26px);
    margin-bottom: 10px;
  }
  
  h5 {
    font-size: clamp(18px, 2vw, 22px);
    margin-bottom: 8px;
  }
  
  p {
    font-size: 16px;
    line-height: 1.65;
    margin-bottom: 16px;
    color: var(--theme-text);
  }
  
  a {
    color: var(--theme-primary);
    text-decoration: none;
    transition: opacity 0.2s ease;
  }
  
  a:hover {
    opacity: 0.8;
  }
  
  .text-muted {
    color: var(--theme-muted);
    font-size: 14px;
  }
  
  .text-small {
    font-size: 13px;
    color: var(--theme-muted);
  }
  
  .lead {
    font-size: 20px;
    line-height: 1.6;
    color: var(--theme-muted);
    margin-bottom: 32px;
  }
  
  /* ===== Layout ===== */
  
  .container {
    max-width: var(--max);
    margin: 0 auto;
    padding-inline: var(--gutter);
  }
  
  /* ===== Header ===== */
  
  header {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: saturate(1.2) blur(12px);
    background: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid var(--theme-border);
  }
  
  .nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 0;
    position: relative;
  }
  
  .brand {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    justify-content: space-between;
  }
  
  .logo {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    object-fit: contain;
    flex-shrink: 0;
  }
  
  .title {
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 0.3px;
    color: var(--theme-text);
  }

  .title a {
    color: var(--theme-text);
    text-decoration: none;
  }

  .title a:hover {
    opacity: 0.8;
  }
  
  /* ===== Menu Burger Dropdown ===== */
  
  .burger-menu-dropdown {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: var(--theme-background);
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
  }
  
  .burger-menu-dropdown.show {
    right: 0;
  }
  
  .burger-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 32px;
    border-bottom: 1px solid var(--theme-border);
    flex-shrink: 0;
  }
  
  .burger-menu-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--theme-text);
  }
  
  .burger-menu-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    font-size: 24px;
    color: var(--theme-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 50%;
    flex-shrink: 0;
  }
  
  .burger-menu-close:hover {
    color: var(--theme-primary);
  }
  
  .burger-menu-content {
    flex: 1;
    overflow-y: auto;
    padding: 32px;
    display: flex;
    flex-direction: column;
  }
  
  .burger-menu-content a {
    padding: 8px 0;
    width: 100%;
    font-size: 16px;
    font-weight: 500;
    color: var(--theme-text);
    text-decoration: none;
    transition: all 0.2s ease;
  }
  
  .burger-menu-content a:hover {
    color: var(--theme-primary);
    opacity: 1;
    text-decoration: underline;
  }
  
  .burger-menu-category {
    font-size: 13px;
    font-weight: 500;
    color: var(--theme-muted);
    margin-top: 24px;
    margin-bottom: 8px;
  }
  
  .burger-menu-category:first-of-type {
    margin-top: 0;
  }
  
  /* Burger Menu Overlay */
  .burger-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .burger-menu-overlay.show {
    opacity: 1;
    visibility: visible;
  }
  
  /* ===== Burger Menu ===== */
  
  .burger-menu {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 101;
    transition: all 0.3s ease;
  }
  
  .burger-menu .burger-line {
    width: 22px;
    height: 2px;
    background: var(--theme-muted);
    border-radius: 2px;
    transition: all 0.3s ease;
  }
  
  .burger-menu:hover .burger-line {
    background: var(--theme-primary);
  }
  
  /* ===== Main Content ===== */
  
  main {
    padding: 0;
  }
  
  .hero {
    text-align: center;
    padding: 80px var(--gutter);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
  }
  
  .hero h1,
  .hero .lead {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
  }

  /* ===== Social Banner ===== */
  
  .social-banner {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    min-height: 450px;
    padding: 48px var(--gutter);
    background-image: url('/img/banners/banner.webp');
    background-size: cover;
    background-position: center center;
    overflow: hidden;
  }

  .social-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    pointer-events: none;
    z-index: 0;
  }

  .social-banner .banner-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: 200px;
    width: 200px;
    z-index: 1;
    object-fit: contain;
  }

  .social-banner .social-links {
    display: flex;
    gap: 16px;
    z-index: 2;
    position: relative;
  }

  .social-banner .social-icon {
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
  }

  .social-banner .social-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-4px);
  }

  .social-banner .social-icon img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
  }
  
  /* ===== Section Content ===== */
  
  section {
    padding: 80px 0;
  }

  section.section-light {
    background: var(--theme-background);
  }

  section.section-dark {
    background: #f9fafb;
  }

  .section-title {
    font-size: clamp(28px, 3.2vw, 40px);
    margin-bottom: 24px;
    color: var(--theme-text);
  }

  .section-title.primary {
    color: var(--theme-primary);
  }

  .section-title-spaced {
    margin-top: 48px;
  }
  
  /* ===== Buttons ===== */
  
  .button-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
  }
  
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    text-decoration: none;
  }
  
  .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
  }
  
  .btn-primary {
    background: var(--theme-primary);
    color: white;
    border: 2px solid var(--theme-primary);
  }
  
  .btn-primary:hover:not(:disabled) {
    opacity: 0.9;
    transform: translateY(-1px);
  }
  
  .btn-outline {
    background: transparent;
    color: var(--theme-primary);
    border: 2px solid var(--theme-primary);
  }
  
  .btn-outline:hover:not(:disabled) {
    background: var(--theme-primary);
    color: white;
  }
  
  .btn-small {
    padding: 8px 16px;
    font-size: 13px;
  }

  .btn-medium {
    padding: 12px 24px;
    font-size: 14px;
  }
  
  .btn-large {
    padding: 16px 32px;
    font-size: 16px;
  }
  
  /* ===== Forms ===== */
  
  .demo-form {
    max-width: 600px;
  }
  
  .form-group {
    margin-bottom: 24px;
  }
  
  .form-group:last-child {
    margin-bottom: 0;
  }
  
  label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--theme-text);
    margin-bottom: 8px;
  }
  
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="number"],
  input[type="url"],
  input[type="tel"],
  select,
  textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    font-family: inherit;
    color: var(--theme-text);
    background: var(--theme-background);
    border: 1px solid var(--theme-border);
    border-radius: var(--radius-xs);
    transition: all 0.2s ease;
  }
  
  input:focus,
  select:focus,
  textarea:focus {
    outline: none;
    border-color: var(--theme-primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--theme-primary) 10%, transparent);
  }
  
  textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.6;
  }
  
  /* ===== Cards ===== */
  
  .card {
    background: var(--theme-background);
    border: 1px solid var(--theme-border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.3s ease;
  }
  
  .card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--theme-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
  }
  
  .card-header h3 {
    margin: 0;
    font-size: 18px;
  }
  
  .card-body {
    padding: 24px;
  }
  
  .card-body p {
    margin-bottom: 0;
  }
  
  .card-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--theme-border);
    background: rgba(0, 0, 0, 0.02);
    display: flex;
    justify-content: flex-end;
  }
  
  .card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
  }

  /* ===== Team Section ===== */

  .team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-top: 40px;
  }

  .team-card {
    background: var(--theme-background);
    border: 1px solid var(--theme-border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.3s ease;
  }

  .team-card .team-image {
    width: 100%;
    height: 280px;
    background-color: #f3f4f6;
    background-size: cover;
    background-position: center;
    position: relative;
  }

  .team-image-nadege {
    background-image: url('/img/teams/nadege-coron.webp');
  }

  .team-image-laure {
    background-image: url('/img/teams/laure-hugouneenc.webp');
  }

  .team-image-xavier {
    background-image: url('/img/teams/xavier-coron.webp');
  }

  .team-image-jeremy {
    background-image: url('/img/teams/jeremy-cordeiro.webp');
  }

  .team-card .team-info {
    padding: 24px;
  }

  .team-card .team-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--theme-text);
    margin-bottom: 8px;
  }

  .team-card .team-role {
    font-size: 14px;
    color: var(--theme-primary);
    font-weight: 600;
    margin-bottom: 12px;
  }

  .team-card .team-description {
    font-size: 14px;
    line-height: 1.6;
    color: var(--theme-muted);
    margin: 0;
  }

  /* ===== Pills & Badges ===== */
  
  .pill-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
  }
  
  .pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.05);
    color: var(--theme-text);
  }
  
  .pill-primary {
    background: color-mix(in srgb, var(--theme-primary) 10%, transparent);
    color: var(--theme-primary);
  }

  .pill-success {
    background: color-mix(in srgb, var(--theme-success) 10%, transparent);
    color: var(--theme-success);
  }

  .pill-danger {
    background: color-mix(in srgb, var(--theme-danger) 10%, transparent);
    color: var(--theme-danger);
  }

  .pill-warning {
    background: color-mix(in srgb, var(--theme-warning) 10%, transparent);
    color: var(--theme-warning);
  }
  
  .badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 999px;
    background: var(--theme-muted);
    color: white;
  }
  
  .badge-primary {
    background: var(--theme-primary);
  }
  
  .badge-success {
    background: var(--theme-success);
  }
  
  .badge-danger {
    background: var(--theme-danger);
  }

  /* ===== Alerts ===== */
  
  .alert {
    display: flex;
    gap: 16px;
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
  }
  
  .alert .alert-content {
    flex: 1;
  }

  .alert .alert-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
  }

  .alert .alert-message {
    font-size: 14px;
    line-height: 1.5;
  }
  
  .alert-info {
    background: color-mix(in srgb, var(--theme-primary) 8%, transparent);
    color: var(--theme-primary);
  }

  .alert-success {
    background: color-mix(in srgb, var(--theme-success) 8%, transparent);
    color: var(--theme-success);
  }

  .alert-warning {
    background: color-mix(in srgb, var(--theme-warning) 8%, transparent);
    color: var(--theme-warning);
  }

  .alert-danger {
    background: color-mix(in srgb, var(--theme-danger) 8%, transparent);
    color: var(--theme-danger);
  }

  .alert-spaced {
    margin-top: 24px;
  }

  /* ===== Progress Bars ===== */
  
  .progress {
    width: 100%;
    height: 8px;
    background: var(--theme-border);
    border-radius: 999px;
    overflow: hidden;
  }
  
  .progress .progress-bar {
    height: 100%;
    background: var(--theme-primary);
    transition: width 0.3s ease;
    border-radius: 999px;
  }
  
  .progress-wrapper {
    margin-bottom: 24px;
  }
  
  .progress-wrapper:last-child {
    margin-bottom: 0;
  }
  
  .progress-wrapper .progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
  }
  
  .progress-wrapper .progress-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--theme-text);
  }
  
  .progress-wrapper .progress-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--theme-muted);
  }

  /* ===== Partners Section ===== */

  .partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    margin-top: 40px;
  }

  .partner-card {
    background: #f9fafb;
    border-radius: var(--radius-sm);
    padding: 24px;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
  }

  .partner-card:hover {
    background: #f3f4f6;
    transform: translateY(-2px);
  }

  .partner-card img {
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
  }

  /* ===== Image Component ===== */

  .image-container {
    width: 100%;
    border-radius: var(--radius);
    overflow: hidden;
    margin: 32px 0;
  }

  .image-container img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius);
  }

  /* ===== Concours Section ===== */

  .concours-badge {
    display: inline-block;
    background: var(--theme-primary);
    color: white;
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
    margin-top: 48px;
  }

  .concours-badge:first-child {
    margin-top: 0;
  }

  .concours-subtitle {
    font-size: 18px;
    font-weight: 700;
    color: var(--theme-text);
    margin-top: 24px;
    margin-bottom: 12px;
  }

  .concours-list {
    margin: 0 0 24px 24px;
    padding: 0;
  }

  .concours-list li {
    color: var(--theme-text);
    margin-bottom: 12px;
    line-height: 1.6;
    font-size: 16px;
  }

  /* ===== Notifications ===== */

  .notification {
    position: fixed;
    top: 100px;
    right: 30px;
    min-width: 300px;
    max-width: 500px;
    padding: 20px;
    border-radius: var(--radius-sm);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    animation: slideIn 0.3s ease;
  }

  @keyframes slideIn {
    from {
      transform: translateX(400px);
      opacity: 0;
    }
    to {
      transform: translateX(0);
      opacity: 1;
    }
  }

  .notification.notification-hide {
    animation: slideOut 0.3s ease;
  }

  @keyframes slideOut {
    from {
      transform: translateX(0);
      opacity: 1;
    }
    to {
      transform: translateX(400px);
      opacity: 0;
    }
  }

  .notification-success {
    background: var(--theme-success);
    color: white;
  }

  .notification-error {
    background: var(--theme-danger);
    color: white;
  }

  .notification p {
    margin: 0;
    font-size: 15px;
    line-height: 1.4;
    color: white;
  }

  .notification-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
    flex-shrink: 0;
  }

  .notification-close:hover {
    background: rgba(255, 255, 255, 0.2);
  }
  
  /* ===== Footer ===== */
  
  footer {
    border-top: 1px solid var(--theme-border);
    padding: 48px 0;
    background: var(--theme-background);
  }
  
  footer p {
    text-align: center;
    color: var(--theme-muted);
    font-size: 14px;
    margin: 0;
  }
  
  .footer-links {
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
  }
  
  .footer-links a {
    color: var(--theme-muted);
    font-size: 13px;
    transition: color 0.2s ease;
  }
  
  .footer-links a:hover {
    color: var(--theme-primary);
  }
  
  .footer-links span {
    color: var(--theme-border);
  }
  
  /* ===== Responsive ===== */
  
  @media (max-width: 768px) {
    .nav {
      flex-direction: row;
      align-items: center;
    }
    
    .burger-menu-dropdown {
      max-width: 85%;
    }
  
    .hero {
      padding: 32px 0 48px;
    }
  
    section {
      padding: 50px 0;
    }
  
    .card-grid,
    .team-grid {
      grid-template-columns: 1fr;
    }

    .demo-form {
      padding: 24px;
    }
    
    .footer-links {
      flex-direction: column;
      gap: 8px;
    }
    
    .footer-links span {
      display: none;
    }

    .social-banner {
      min-height: 350px;
    }

    .social-banner .banner-logo {
      height: 150px;
      width: 150px;
    }

    .partners-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }
  
  @media (max-width: 480px) {
    .burger-menu-dropdown {
      max-width: 100%;
    }
    
    .burger-menu-title {
      font-size: 18px;
    }
    
    .button-row {
      flex-direction: column;
      width: 100%;
    }
  
    .btn {
      width: 100%;
    }

    .notification {
      right: 15px;
      left: 15px;
      min-width: auto;
      max-width: none;
    }

    .partners-grid {
      grid-template-columns: 1fr;
    }
  }
