/* ============================================
   CORRECTIONS IMAGES & FOOTER - PosturaIA
   ============================================ */

/* ===== IMAGES - Contrainte de taille ===== */
.hero-photo,
.hero-visual img,
.agent-media img,
.info-card img,
img[src*="hero"],
img[src*="pathway"],
img[src*="value"] {
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

.hero-photo-card {
  max-width: 500px;
  width: 100%;
}

.hero-photo {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: var(--radius);
}

.agent-media {
  height: 200px;
  overflow: hidden;
}

.agent-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== FOOTER AMÉLIORÉ ===== */
.site-footer {
  background: linear-gradient(180deg, var(--surface) 0%, rgba(7, 16, 33, 0.98) 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 60px 20px 30px;
  margin-top: 80px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
}

.footer-col h4 {
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.footer-col p,
.footer-col a {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
  text-decoration: none;
  display: block;
  transition: color 0.2s;
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.footer-brand .logo-text {
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
}

.footer-disclaimer {
  background: rgba(255, 200, 50, 0.08);
  border: 1px solid rgba(255, 200, 50, 0.2);
  border-radius: 8px;
  padding: 12px 15px;
  margin-top: 15px;
}

.footer-disclaimer p {
  color: rgba(255, 200, 50, 0.9) !important;
  font-size: 12px !important;
  line-height: 1.5 !important;
  margin: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.footer-bottom p {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}

.footer-social {
  display: flex;
  gap: 15px;
}

.footer-social a {
  color: var(--muted);
  transition: color 0.2s, transform 0.2s;
}

.footer-social a:hover {
  color: var(--primary);
  transform: translateY(-2px);
}

/* ===== THREE STEP GRID FIX ===== */
.three-step-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin: 40px 0;
}

/* ===== CARDS GRID ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin: 30px 0;
}

/* ===== CROSS LIST (pour les "ne fait pas") ===== */
.cross-list {
  list-style: none;
  padding: 0;
}

.cross-list li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 10px;
}

.cross-list li::before {
  content: "✗";
  position: absolute;
  left: 0;
  color: var(--danger);
  font-weight: bold;
}

/* =========================================================
   VIDEO — FIX UNIVERSEL (MOBILE + DESKTOP)
   Objectif : meme taille/logique partout, sans incoherences.
   Le wrapper impose une largeur stable + un ratio propre.
   ========================================================= */

.video-wrapper{
  width: min(92vw, 520px) !important;
  max-width: 520px !important;
  margin: 0 auto !important;
  max-height: none !important;
  aspect-ratio: 16 / 9;
}

/* Même règle pour les variantes existantes */
.video-wrapper.hero-video,
.page-hero .video-wrapper{
  width: min(92vw, 520px) !important;
  max-width: 520px !important;
  max-height: none !important;
}

.video-wrapper video{
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  object-fit: contain !important; /* jamais couper */
  display: block;
}

/* Empêche certaines contraintes "hero" de clipper le média */
.hero,
.page-hero{
  overflow: visible !important;
  max-height: none !important;
}

.hero-visual,
.hero-visual video{
  max-height: none !important;
}

@media (max-width: 768px){
  .video-wrapper,
  .video-wrapper.hero-video,
  .page-hero .video-wrapper{
    width: calc(100vw - 32px) !important; /* padding 16px de chaque côté */
    max-width: 520px !important;
  }
}
