/* DevelopInk · prototype vivant · pages Réalisations (/exemples/ et /exemples/cuisines/).
   Uniquement ce que style.css n'a pas : la recherche, les filtres, la grille de cartes. */

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }

/* ---------- en-tête : titre plus court, la recherche tout de suite dessous ---------- */
.tete-page--exemples { padding-bottom: clamp(30px, 5vh, 50px); }
.exemples__outils { margin-top: clamp(26px, 4vw, 40px); max-width: 900px; }

.chercher { position: relative; max-width: 640px; margin: 0 0 16px; }
.chercher__champ { width: 100%; padding: 18px 52px 18px 54px; font: 400 17px/1.3 var(--sans); color: var(--texte);
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16); border-radius: 18px;
  -webkit-appearance: none; appearance: none; outline: none; transition: border-color .25s, background .25s, box-shadow .25s;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.chercher__champ::placeholder { color: #8d88ad; }
.chercher__champ:focus { border-color: var(--violet); background: rgba(255,255,255,.09); box-shadow: 0 0 0 5px rgba(155,107,255,.16), 0 20px 60px rgba(91,75,214,.25); }
.chercher__champ::-webkit-search-cancel-button { display: none; }
.chercher__loupe { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); width: 21px; height: 21px; color: var(--violet); pointer-events: none; z-index: 1; }
.chercher__vider { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border: 0; border-radius: 50%;
  cursor: pointer; background: rgba(255,255,255,.1); color: var(--texte); font-size: 18px; line-height: 1; z-index: 1; }
.chercher__vider:hover { background: var(--encre-vive); }
.chercher__vider[hidden] { display: none; }

.filtres { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.filtre { font: 500 14px/1 var(--sans); padding: 10px 16px; cursor: pointer; color: var(--doux); background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.14); border-radius: 99px; transition: color .2s, border-color .2s, background .25s; }
.filtre:hover { color: var(--texte); border-color: rgba(155,107,255,.6); }
.filtre--actif, .filtre--actif:hover { background: var(--encre-vive); border-color: var(--encre-vive); color: #fff; box-shadow: 0 8px 26px rgba(91,75,214,.4); }
.filtre:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; }

.compte { font-size: 14px; color: var(--doux); margin: 0; min-height: 21px; }
.compte strong { color: var(--texte); font: 800 18px/1 var(--serif); }
.compte button, .rien__texte button { font: inherit; color: var(--violet); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }

/* ---------- la grille ---------- */
.exemples { padding-top: clamp(24px, 4vw, 40px); }
.exemples__note { margin: 0 0 clamp(34px, 5vw, 50px); max-width: 70ch; font-size: 14px; color: var(--doux); padding: 12px 18px;
  border-left: 3px solid var(--encre-vive); background: rgba(91,75,214,.08); border-radius: 0 12px 12px 0; }
.exemples__note strong { color: var(--texte); }

.exemples__famille { margin-bottom: clamp(44px, 6vw, 70px); }
.exemples__famille:last-child { margin-bottom: 0; }
.exemples__famille[hidden] { display: none; }
.exemples__titre-famille { display: flex; align-items: center; gap: 12px; margin: 0 0 22px; font: 600 clamp(24px, 2.6vw, 34px)/1.1 var(--serif); letter-spacing: -.015em; }
.exemples__compte { font: 600 13px/1 var(--sans); color: #fff; background: var(--encre-vive); border-radius: 99px; padding: 5px 11px; }

.exemples__grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: clamp(14px, 1.6vw, 22px); perspective: 1400px; }

/* ---------- une carte ---------- */
.exemple { position: relative; display: flex; flex-direction: column; text-decoration: none; color: var(--texte); border-radius: 20px; overflow: hidden;
  background: linear-gradient(165deg, rgba(255,255,255,.07), rgba(255,255,255,.015)); border: 1px solid var(--trait);
  transform-style: preserve-3d; transition: border-color .3s, box-shadow .4s; }
.exemple[hidden] { display: none; }
.exemple:hover { border-color: rgba(155,107,255,.45); box-shadow: 0 30px 70px rgba(0,0,0,.45), 0 0 0 1px rgba(155,107,255,.15); }
.exemple .cadre__lueur { z-index: 2; mix-blend-mode: screen; }
.exemple:hover .cadre__lueur { opacity: 1; }
.exemple:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; }

.work__thumb { position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; background: #15122a; }
.work__thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 1.1s cubic-bezier(.2,.7,.2,1); }
.exemple:hover .work__thumb img { transform: scale(1.07); }

.work__tag { display: block; margin: 18px 22px 6px; text-transform: uppercase; letter-spacing: .16em; font-size: 11.5px; font-weight: 600; color: var(--violet); }
.work__title { margin: 0 22px 8px; font: 600 22px/1.15 var(--serif); letter-spacing: -.01em; }
.work__text { margin: 0 22px; color: var(--doux); font-size: 14.5px; line-height: 1.5; }
.exemple__pourquoi { display: none; margin: 10px 22px 0; font-size: 13px; color: var(--texte); background: rgba(155,107,255,.18); border-radius: 8px; padding: 6px 10px; }
.exemple--via .exemple__pourquoi { display: block; }
.work__link { margin: auto 22px 0; padding: 16px 0 20px; font-weight: 600; font-size: 14.5px; color: var(--texte); transition: color .25s, letter-spacing .35s; }
.exemple:hover .work__link { color: var(--violet); letter-spacing: .02em; }

/* la porte vers les 62 ambiances de restaurant : pas de vignette, c'est une carte-lien */
.exemple--porte { justify-content: center; min-height: 260px; padding: 18px 0;
  background: radial-gradient(circle at 80% 10%, rgba(155,107,255,.45), transparent 55%), linear-gradient(150deg, #3a2f82, #1b1640); border-color: rgba(155,107,255,.4); }
.exemple--porte .work__tag { color: #d9ceff; }
.exemple--porte .work__title { font-size: clamp(26px, 2.4vw, 32px); }
.exemple--porte .work__text { color: #d7d2ee; }
.exemple--porte .work__link { margin-top: 10px; flex: none; }

/* ---------- aucune réponse ---------- */
.rien { text-align: center; padding: 30px 20px 50px; }
.rien[hidden] { display: none; }
.rien__titre { font: 600 clamp(22px, 2.4vw, 30px)/1.2 var(--serif); margin: 0 0 10px; }
.rien__texte { color: var(--doux); margin: 0 auto 22px; max-width: 56ch; }

/* ---------- bandeau final : un peu plus serré ici ---------- */
.page-exemples .appel { margin-top: 0; }

/* ---------- téléphone ---------- */
@media (max-width: 640px) {
  .chercher__champ { font-size: 16px; padding: 15px 46px 15px 48px; }
  .filtres { gap: 6px; }
  .filtre { font-size: 13px; padding: 8px 12px; }
  .exemples__grille { grid-template-columns: 1fr; gap: 12px; }
  /* sur téléphone, la carte se couche : vignette à gauche, texte à droite (la page fait moitié moins haut) */
  .exemple:not(.exemple--porte) { display: grid; grid-template-columns: 40% 1fr; grid-template-rows: auto auto 1fr auto auto; column-gap: 14px; border-radius: 16px; }
  .exemple:not(.exemple--porte) .work__thumb { grid-row: 1 / -1; aspect-ratio: auto; height: 100%; min-height: 130px; }
  .exemple:not(.exemple--porte) .work__tag { margin: 14px 12px 4px 0; font-size: 10.5px; letter-spacing: .12em; }
  .exemple:not(.exemple--porte) .work__title { margin: 0 12px 6px 0; font-size: 18px; }
  .exemple:not(.exemple--porte) .work__text { margin: 0 12px 0 0; font-size: 13px; line-height: 1.4; }
  .exemple:not(.exemple--porte) .exemple__pourquoi { margin: 8px 12px 0 0; }
  .exemple:not(.exemple--porte) .work__link { margin: 0 12px 0 0; padding: 10px 0 14px; font-size: 13.5px; }
  .exemple--porte { min-height: 0; }
  .exemples__note { margin-bottom: 30px; }
}

@media (hover: none) { .exemples * { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; } }

/* 05.10 : sur téléphone, la carte montre la vignette TÉLÉPHONE (capture à 390 px, haut de page, carrée).
   Vignette portrait (780 x 1252) : toute la largeur de l écran téléphone, calée en haut. */
.work__thumb picture { display: contents; }
@media (max-width: 640px) {
  .exemple:not(.exemple--porte) .work__thumb img { object-position: top center; }
}
