/* ═══════════════════════════════════════════════════════════════
   Ikala-Ni | Réalisations
   Chargée après commun.css. Page volontairement légère : captures
   fixes dans un cadre fin, aucun appareil animé, aucun défilement
   automatique. Le soin passe par la typographie et l'espace.

   Sommaire
     1. Réglages de la page
     2. En-tête de page et filtre
     3. Sites en production : grille de cartes
     4. Conception visuelle : mur de logos
     5. Applications : une phrase, sur demande
     6. Appel à contact
     7. Responsive
   ═══════════════════════════════════════════════════════════════ */


/* ═════════ 1. RÉGLAGES DE LA PAGE ═════════ */
section { padding: clamp(48px, 7vw, 92px) 0; }

h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-top: 18px; }

/* Bloc masqué par le filtre */
[hidden] { display: none !important; }


/* ═════════ 2. EN-TÊTE DE PAGE ET FILTRE ═════════ */
.page-entete { padding: 150px 0 0; }
.page-entete h1 {
  margin: 22px 0 24px; font-family: var(--titre); font-weight: 400;
  font-size: clamp(2.6rem, 6vw, 5.2rem); line-height: 0.95; letter-spacing: -0.03em;
}
.page-intro { max-width: 30em; color: var(--texte-2); font-size: 1.25rem; line-height: 1.55; }

/* Filtre : trois pastilles, celle qui est active passe en or plein.
   L'état est porté par aria-pressed, lu aussi par les lecteurs d'écran. */
.filtres { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 48px; }
.filtre {
  min-height: 44px; padding: 0 22px; border-radius: 999px; cursor: pointer;
  font: inherit; font-size: 0.875rem; color: var(--texte-2);
  background: transparent; border: 1px solid var(--filet);
  transition: color 0.3s, border-color 0.3s, background 0.3s;
}
.filtre:hover { color: var(--texte); border-color: var(--filet-or); }
.filtre[aria-pressed="true"] { color: var(--noir); background: var(--or); border-color: var(--or); }



/* ═════════ 3. SITES EN PRODUCTION ═════════ */
.sites { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(56px, 7vw, 96px) clamp(24px, 4vw, 56px); margin-top: 64px; }

/* Capture fixe dans un cadre fin : elle s'agrandit à peine au survol */
.site-visuel {
  display: block; aspect-ratio: 16 / 10; overflow: hidden;
  border: 1px solid var(--filet); border-radius: 12px; background: #0a0a0a;
  transition: border-color 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.site-visuel img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: scale 0.8s var(--ease); }
.site:hover .site-visuel { border-color: var(--filet-or); box-shadow: 0 30px 70px -30px rgba(201, 168, 76, 0.25); }
.site:hover .site-visuel img { scale: 1.03; }

/* Technologie principale */
.site-meta { margin-top: 28px; font-size: 0.75rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--or); }

.site h3 { margin: 12px 0 14px; font-family: var(--titre); font-weight: 400; font-size: clamp(1.6rem, 2.5vw, 2.2rem); line-height: 1.05; }
.site p { max-width: 34em; color: var(--texte-2); }

/* Technologies en pastilles discrètes */
.pastilles { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; list-style: none; }
.pastilles li { padding: 5px 14px; border: 1px solid var(--filet); border-radius: 999px; font-size: 0.8125rem; color: var(--texte-2); }

/* Deux liens : l'étude de cas en or, le site en ligne en discret */
.site-liens { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 26px; }
.lien-etude {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  font-weight: 500; color: var(--or); text-decoration: none;
  background: linear-gradient(var(--or), var(--or)) 0 calc(100% - 10px) / 0 1px no-repeat;
  transition: background-size 0.5s var(--ease);
}
.lien-etude:hover { background-size: 100% 1px; }
.lien-site { display: inline-flex; align-items: center; min-height: 44px; font-size: 0.9375rem; color: var(--texte-2); text-decoration: none; transition: color 0.3s; }
.lien-site:hover { color: var(--texte); }


/* ═════════ 4. CONCEPTION VISUELLE ═════════
   Les logos sont posés sur des tuiles crème : certains sont prévus pour
   un fond clair, et le crème reste élégant sur le noir. */
.logos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 64px; list-style: none; }
.logo-tuile { position: relative; aspect-ratio: 4 / 3; border-radius: 12px; background: #f4f1ea; }
/* L'image remplit la zone intérieure sans déborder, quelle que soit sa forme :
   toutes les tuiles gardent ainsi la même hauteur */
.logo-tuile img { position: absolute; inset: 14%; width: 72%; height: 72%; object-fit: contain; }
.logos figcaption { margin-top: 14px; font-size: 0.75rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--texte-2); }


/* ═════════ 5. APPLICATIONS ═════════
   Une seule phrase, sans liste : démo sur demande. */
.applis-texte { max-width: 22em; margin: 24px 0 18px; font-family: var(--titre); font-size: clamp(1.4rem, 2.4vw, 2rem); line-height: 1.25; }
.applis-texte em { font-style: italic; }


/* ═════════ 6. APPEL À CONTACT ═════════ */
.appel { text-align: center; border-top: 1px solid var(--filet); }
.appel h2 { margin: 0 auto 36px; font-size: clamp(1.75rem, 3.6vw, 2.9rem); }
.appel .boutons { justify-content: center; }


/* ═════════ 7. RESPONSIVE ═════════ */
@media (max-width: 900px) {
  .sites { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .logos { grid-template-columns: repeat(2, 1fr); }
  .filtre { flex: 1 1 auto; }
}
