/* ============================================================
   cas-client.css — pages « cas clients »
   ------------------------------------------------------------
   Chargee uniquement par les 7 pages de articles/cas-clients/.
   Reprend a l'identique les declarations qui etaient repetees en
   style="" dans chacune des 7 pages, et ajoute le comportement
   responsive qui manquait (WCAG AA, critere 1.4.10 Reflow :
   aucun defilement horizontal jusqu'a 320px).
   main.css et premium.css sont volontairement laissees intactes :
   elles sont aussi chargees par les 7 articles cornerstone et par
   le gabarit articles/_template.html.
   ============================================================ */

/* ---------- Banniere de tete ---------- */
.cas-hero {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  padding: 6rem 0 3rem;
}
.cas-hero__titre {
  color: #fff;
  font-size: clamp(1.75rem, 6vw, 2.5rem);
  margin-bottom: 1rem;
  overflow-wrap: break-word;
}
.cas-hero__chapo {
  color: #ddd;
  font-size: 1.1rem;
  margin-bottom: 2rem;
}
.cas-hero__meta {
  color: #aaa;
  font-size: 0.95rem;
}

/* ---------- Corps de l'article ---------- */
.cas-corps { padding: 3rem 0; }
.cas-container       { max-width: 800px; }
.cas-container--large { max-width: 900px; }
.cas-illustration {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 2rem;
}
.cas-texte {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #333;
}
.cas-texte h1, .cas-texte h2, .cas-texte h3 { overflow-wrap: break-word; }

/* ---------- Citation ---------- */
.cas-citation {
  border-left: 4px solid #1a1a2e;
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: #555;
}
.cas-citation__source {
  margin-top: 1rem;
  font-style: normal;
  color: #333;
}

/* ---------- Encart d'appel ---------- */
.cas-encart {
  margin-top: 3rem;
  padding: 2rem;
  background: #f8f9fa;
  border-radius: 8px;
}
.cas-encart > h3 { margin-top: 0; }
.cas-cta {
  display: inline-block;
  background: #1a1a2e;
  color: #fff;
  padding: 1rem 2rem;
  border-radius: 4px;
  text-decoration: none;
  margin-top: 1rem;
}

/* ---------- Tableaux ---------- */
.cas-tableau {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
}
.cas-tableau th,
.cas-tableau td {
  padding: 1rem;
  border: 1px solid #ddd;
}
.cas-tableau th { text-align: left; }
.cas-tableau__cle { font-weight: bold; }
.cas-tableau__ligne-alt { background: #f8f9fa; }

/* ---------- Navigation : entree « Services » du menu deroulant ---------- */
.cas-nav-services {
  padding-bottom: 1rem;
  cursor: pointer;
}

/* ---------- Pied de page ---------- */
.cas-footer {
  background: #1a1a2e;
  color: #fff;
  padding: 3rem 0 1rem;
}
.cas-footer__grille {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}
.cas-footer__bas {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #333;
}
.cas-liste-nue {
  list-style: none;
  padding: 0;
}
.cas-footer a,
.cas-footer .btn-qualiopi-cta { color: #ddd; }
.cas-footer .btn-qualiopi-cta {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

/* ============================================================
   Mobile — sous 640px les tableaux passent en blocs empiles.
   Chaque cellule reprend l'intitule de sa colonne par
   data-libelle quand l'en-tete n'est pas dans la ligne.
   ============================================================ */
@media (max-width: 640px) {
  .cas-hero { padding: 4rem 0 2rem; }

  .cas-tableau,
  .cas-tableau thead,
  .cas-tableau tbody,
  .cas-tableau tr,
  .cas-tableau th,
  .cas-tableau td {
    display: block;
    width: auto;
  }
  .cas-tableau thead {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .cas-tableau tr {
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-bottom: 1rem;
    padding: 0.25rem 0;
    background: #fff;
  }
  .cas-tableau__ligne-alt { background: #f8f9fa; }
  .cas-tableau td {
    border: 0;
    border-bottom: 1px solid #eee;
    padding: 0.75rem 1rem;
    overflow-wrap: break-word;
  }
  .cas-tableau tr > td:last-child { border-bottom: 0; }
  .cas-tableau td[data-libelle]::before {
    content: attr(data-libelle);
    display: block;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #6b6b6b;
    margin-bottom: 0.25rem;
  }
  .cas-tableau__cle {
    background: #f0f0f2;
    border-bottom: 1px solid #ddd;
  }
}
