/* DUNK! : finitions mobile, chargées en dernier sur toutes les pages. */

/* Filet de sécurité : un mot trop long se coupe proprement au lieu de sortir de l'écran. */
@media (max-width: 800px) {
  h1, h2, h3 { overflow-wrap: break-word; }
  img, video, iframe, svg { max-width: 100%; }
}

/* 1. Le brief express : une ligne par choix, rien ne dépasse. */
@media (max-width: 900px) {
  .contact.has-brief .brief-x { min-width: 0; width: 100%; max-width: 100%; justify-self: stretch; }
  .brief-x .bx-s { font-size: clamp(20px, 5.6vw, 26px); line-height: 1.5; }
  .brief-x .bx-sel { display: block; width: 100% !important; max-width: 100%; margin: .35em 0; }
  .brief-x select {
    width: 100%; min-height: 48px; padding: .35em 1.6em .35em .5em;
    font-size: 16px; text-transform: none; line-height: 1.3;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .brief-x .bx-sel::after { right: .55em; font-size: 14px; }
  .brief-x .bx-go { width: 100%; }
  .brief-x .bx-n { font-size: 20px; }
  .brief-x .bx-probe { display: none; }
  .brief-x .bx-dot { display: none; }
  .brief-x .bx-t { display: block; margin-top: .2em; }
}

/* 1 bis. Accueil : le cas à la une, titre pleine largeur et client en dessous. */
@media (max-width: 600px) {
  .feature-caption { grid-template-columns: 1fr !important; grid-template-areas: "title" "client" "awards" !important; row-gap: .5rem !important; }
  .feature-caption div, .feature-caption .project-label { text-align: left !important; }
  .feature-caption h2 { font-size: clamp(2.2rem, 11vw, 3.2rem) !important; }
}

/* 2. « Prêt à dunker ? » et les grands titres de fin de page : lisibles sans écraser l'écran. */
@media (max-width: 600px) {
  .contact h2, .contact.has-brief > h2 { font-size: clamp(48px, 15vw, 68px) !important; line-height: .95 !important; }
}

/* 3. Page L'agence */
@media (max-width: 800px) {
  #ag-title em { white-space: nowrap; }
  .ag-service .num { white-space: nowrap; }
  .ag-adn, .ag-adn p, .ag-adn h2, .ag-adn h3, .ag-adn div { text-align: left !important; }
  .ag-jump { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
}

/* 4. Page Qui sommes-nous */
@media (max-width: 800px) {
  .who-thought, .who-thought p, .who-thought h2, .who-team, .who-team p, .who-team h2, .who-team div, .who-projects h2 { text-align: left !important; }
  .who-thought h2, .who-team h2, .who-projects h2, .who-next h2 { font-size: clamp(34px, 10.5vw, 52px) !important; line-height: 1 !important; }
}

/* 5. Réalisations : le visuel ORM 2026 cadré sur la voyante. */
@media (max-width: 800px) {
  .portfolio-card[href="/anticiper"] img { object-position: 78% center; }
}

/* 6. Le compteur d'attention sur mobile : compact, le message n'apparaît que quand il change. */
@media (max-width: 600px) {
  .attn-meter { left: 8px; bottom: 8px; max-width: calc(100vw - 16px); }
  .attn-face { flex-basis: 40px; width: 40px; min-height: 40px; }
  .attn-label-box { padding: 5px 2px 5px 9px; max-width: calc(100vw - 64px); }
  .attn-text { font-size: 12px; }
  .attn-msg { font-size: 14px; }
  .attn-meter:not(.is-peek) .attn-msg { display: none; }
  .attn-min { min-width: 32px; min-height: 32px; }
  .attn-report { bottom: 70px; max-height: calc(100vh - 90px); overflow: auto; }
}
