/* =========================================================
   entreprise.css — Styles section "Companies" (centralisé)
   Chemin suggéré : assets/css/entreprise.css
   ========================================================= */

/* -------------------------
   Palette (change tout ici)
   ------------------------- */
   :root{
    --comp-bg: #f8f9fa;        /* fond section */
    --comp-primary: #4B9CD3;   /* couleur principale (bleu doux) */
    --comp-primary-dark: #2F7FB2;
    --comp-accent: #7EC6E8;    /* accent jaune pour labels si tu veux garder */
    --comp-cta-bg: #ffffff;    /* bouton blanc */
    --comp-cta-color: #232323; /* texte bouton */
    --comp-overlay: rgba(0,180,230,0.48); /* overlay couleur */
    --comp-card-bg: #000000;   /* fallback background image box */
    --comp-shadow: 0 8px 32px rgba(44,47,69,.10);
    --comp-shadow-sm: 0 1.5px 3.5px rgba(44,47,69,.06);
    --comp-arrow: #eb2778;
    --comp-gap-mobile: 34px;
  }
  
  /* ========================= SECTION PRINCIPALE ========================= */
  .home-companies-section {
      width: 100vw;
      background: var(--comp-bg);
      padding: 28px 0;
      margin-left: calc(50% - 50vw);
      margin-right: calc(50% - 50vw);
  }
  
  .container-companies {
      max-width: 1240px;
      margin: 0 auto;
      padding: 0 10px;
  }
  
  /* ===== TITRE ===== */
  .companies-title {
      text-align: center;
      font-size: 2rem;
      font-weight: 800;
      color: #111;
      margin-bottom: 10px;
      font-family: 'Montserrat', Arial, sans-serif;
  }
  
  .companies-barre {
      height: 9px;
      width: 100px;
      background: var(--comp-accent);
      border-radius: 6px;
      margin: 0 auto 42px auto;
  }
  
  /* ========================= CARTES ========================= */
  .companies-cards {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 70px !important; /* espace fixe entre cartes */
  }
  
  .companies-card {
      position: relative;
      width: 490px;
      height: 320px;
      border-radius: 0;
      box-shadow: var(--comp-shadow), var(--comp-shadow-sm);
      display: flex;
      align-items: flex-end;
      background: var(--comp-card-bg);
      margin-bottom: 16px;
  }
  
  .companies-card-bg {
      position: absolute;
      top: 0; left: 0; right: 0; bottom: 0;
      background-size: cover;
      background-position: center;
      width: 100%;
      height: 100%;
      z-index: 1;
      transition: transform .3s cubic-bezier(.4,0,.2,1);
  }
  
  .companies-card-overlay {
      position: absolute;
      top: 0; left: 0; right: 0; bottom: 0;
      background: transparent;
      z-index: 2;
      pointer-events: none;
  }
  
  .companies-card-content {
      position: relative;
      z-index: 3;
      width: 100%;
      height: 100%;
      padding: 5px 32px 32px 32px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
  }
  
  /* ===== LABEL HAUT ===== */
  .companies-card-label {
      display: inline-block;
      margin-top: 7px;
      margin-bottom: auto;
      align-self: flex-start;
      background: var(--comp-accent);
      color: #111;
      font-size: 0.9rem;
      font-family: 'Montserrat', Arial, sans-serif;
      font-weight: 900;
      text-transform: uppercase;
      padding: 5px 15px;
      border-radius: 2px;
      box-shadow: 0 2px 8px rgba(0,0,0,0.07);
      letter-spacing: 0.5px;
      line-height: 1.05;
  }
  
  /* ===== LABEL BAS (uniquement pour ≥1200px) ===== */
  .companies-card-label-bottom {
      display: none; /* par défaut caché */
      position: absolute;
      bottom: 18px;
      left: 16px;
      background: var(--comp-accent);
      color: #111;
      font-size: 0.9rem;
      font-family: 'Montserrat', Arial, sans-serif;
      font-weight: 900;
      text-transform: uppercase;
      padding: 5px 15px;
      border-radius: 2px;
      box-shadow: 0 2px 8px rgba(0,0,0,0.07);
      letter-spacing: 0.5px;
      line-height: 1.05;
      white-space: nowrap;
      z-index: 4;
      transition: transform 0.3s;
  }
  
  /* ===== BOUTON ===== */
  .companies-card-btn {
      display: flex;
      align-items: center;
      background: var(--comp-cta-bg);
      color: var(--comp-cta-color);
      font-size: 0.98rem;
      font-weight: 600;
      font-family: 'Montserrat', Arial, sans-serif;
      padding: 13px 30px 13px 23px;
      border-radius: 0;
      box-shadow: 0 2px 16px rgba(44,47,69,.12);
      border: none;
      outline: none;
      text-decoration: none;
      margin-top: auto;
      position: absolute;
      left: -1px;
      bottom: -1px;
      transition: background .2s, color .2s;
  }
  
  .companies-card-btn:hover {
      background: var(--comp-accent);
      color: #111;
  }
  
  .companies-arrow {
      color: var(--comp-arrow);
      font-size: 1.5rem;
      margin-right: 13px;
      display: flex;
      align-items: center;
      font-weight: 900;
  }
  
  /* ========================= MEDIA QUERIES ========================= */
  
  /* ===== ÉCRANS ≥1200px ===== */
  @media (min-width: 1200px) {
      .companies-card {
          width: 90vw;
          max-width: 440px;
          height: 330px;
      }
      .companies-cards {
          gap: 206px!important;
      }
      .companies-card-label {
          transform: translateX(-66px);
      }
      .companies-card-label-bottom {
          display: inline-block; /* affichage uniquement ici */
          transform: translateX(200px);
      }
  }
  
  /* ===== ÉCRANS ≤900px ===== */
  @media (max-width: 900px) {
      .companies-cards {
          flex-direction: column;
          gap: var(--comp-gap-mobile);
          align-items: center;
      }
      .companies-card {
          width: 98vw;
          max-width: 430px;
          height: 320px;
      }
  }
  
  /* ===== ÉCRANS ≤500px ===== */
  @media (max-width: 500px) {
      .companies-title {
          font-size: 1.5rem;
      }
      .companies-card {
          width: 96vw;
          max-width: 350px;
          height: 220px;
      }
      .companies-card-label {
          font-size: 1rem;
          padding: 3px 9px;
      }
      .companies-card-content {
          padding: 1px 32px 32px 8px;
      }
      .companies-card-btn {
          padding: 4px 12px 4px 13px;
          font-size: 1rem;
      }
  }
  