/* =====================================================================
   Project Horizon — jury-llm.css (Foundation / Apollo Archives)
   Page publique du jury IA : grille de cartes LLM + encart méthodologie.
   ===================================================================== */

.ph-llm .ph-main { padding: 0; }

/* ---------- Hero compact -------------------------------------------- */

.llm-hero {
    position: relative;
    padding: 80px 32px 56px;
    max-width: 1080px; margin: 0 auto;
}
.llm-hero::before,
.llm-hero::after {
    content: '';
    position: absolute;
    width: 24px; height: 24px;
    border: 1px solid var(--c-amber);
    opacity: 0.55;
}
.llm-hero::before {
    top: 32px; left: 32px;
    border-right: 0; border-bottom: 0;
}
.llm-hero::after {
    bottom: 24px; right: 32px;
    border-left: 0; border-top: 0;
}

.llm-hero__stamp {
    display: inline-flex; align-items: center; gap: 12px;
    margin: 0 0 32px;
    font-family: var(--font-tech);
    font-size: 11px; font-weight: 500;
    letter-spacing: 0.22em; text-transform: uppercase;
    color: var(--c-amber);
}
.llm-hero__stamp::before {
    content: ''; width: 8px; height: 8px;
    background: var(--c-amber); border-radius: 50%;
    box-shadow: 0 0 10px rgba(232, 163, 61, 0.6);
}

.llm-hero__title {
    margin: 0;
    font-family: var(--font-editorial);
    font-weight: 400;
    font-size: clamp(40px, 6vw, 72px);
    line-height: 1;
    letter-spacing: -0.025em;
    color: var(--c-bone);
}
.llm-hero__title em {
    font-style: italic;
    color: var(--c-amber);
}

.llm-hero__rule {
    width: 80px; height: 1px;
    background: var(--c-amber);
    margin: 24px 0 20px;
    opacity: 0.7;
}

.llm-hero__lead {
    font-family: var(--font-editorial);
    font-style: italic;
    font-weight: 400;
    font-size: clamp(17px, 1.6vw, 20px);
    line-height: 1.5;
    color: var(--c-bone-soft);
    margin: 0;
    max-width: 640px;
}

@media (max-width: 640px) {
    .llm-hero { padding: 56px 20px 40px; }
    .llm-hero::before, .llm-hero::after { display: none; }
}

/* ---------- Bloc générique ------------------------------------------- */

.llm-block {
    padding: 72px 32px 96px;
    border-top: 1px solid rgba(244, 239, 230, 0.08);
}
.llm-block--method { background: transparent; }
.llm-block__inner {
    max-width: 1080px; margin: 0 auto;
}

.llm-h2 {
    font-family: var(--font-editorial);
    font-weight: 400;
    font-size: clamp(28px, 4vw, 40px);
    margin: 0 0 8px;
    letter-spacing: -0.02em;
    color: var(--c-bone);
    text-align: center;
    line-height: 1.05;
}
.llm-h2 em { font-style: italic; color: var(--c-amber); }

.llm-count {
    font-family: var(--font-tech);
    color: var(--c-amber);
    font-size: 11px;
    margin: 0 0 40px;
    text-align: center;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

/* ---------- Grille des cartes LLM ------------------------------------ */

.llm-grid {
    display: grid;
    gap: 1px;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    background: rgba(244, 239, 230, 0.10);
    border: 1px solid rgba(244, 239, 230, 0.10);
}

.llm-card {
    position: relative;
    padding: 32px 22px 24px;
    background: var(--bg-warm);
    text-align: center;
    transition: background var(--t-base);
}
.llm-card:hover {
    background: var(--bg-warm-2);
}

.llm-card__logo {
    width: 56px; height: 56px;
    margin: 0 auto 16px;
    background: var(--bg-warm-3);
    border: 1px solid rgba(232, 163, 61, 0.25);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.llm-card__logo img {
    width: 100%; height: 100%;
    /* cover + position left : sur un logo wordmark (icône à gauche +
       texte à droite, ex: Claude, OpenAI, Mistral, Llama+Meta), seule
       l'icône est visible, le wordmark est masqué automatiquement.
       Sur un logo carré, fonctionne comme contain. */
    object-fit: cover;
    object-position: left center;
}
.llm-card__logo-fallback {
    font-family: var(--font-editorial);
    font-style: italic;
    font-weight: 400;
    font-size: 22px;
    color: var(--c-amber);
    letter-spacing: -0.01em;
}

.llm-card__name {
    font-family: var(--font-editorial);
    font-weight: 500;
    font-size: 19px;
    margin: 0 0 4px;
    letter-spacing: -0.01em;
    color: var(--c-bone);
    line-height: 1.15;
}
.llm-card__dev {
    font-family: var(--font-body);
    color: var(--c-bone-soft);
    font-size: 13px;
    font-weight: 400;
    margin: 0 0 6px;
}
.llm-card__country {
    font-family: var(--font-tech);
    color: var(--c-amber);
    font-size: 10px; font-weight: 600;
    letter-spacing: 0.22em; text-transform: uppercase;
    margin: 0 0 14px;
}
.llm-card__tagline {
    font-family: var(--font-body);
    color: var(--c-bone-soft);
    font-size: 13px;
    line-height: 1.55;
    margin: 0 0 16px;
}
.llm-card__link {
    display: inline-block;
    font-family: var(--font-tech);
    color: var(--c-bone-dim);
    font-size: 10px; font-weight: 600;
    letter-spacing: 0.20em;
    text-transform: uppercase;
    border-top: 1px solid rgba(232, 163, 61, 0.15);
    padding-top: 14px;
    width: 100%;
    transition: color var(--t-fast);
}
.llm-card__link:hover { color: var(--c-amber); }

/* ---------- Encart méthodologie -------------------------------------- */

.llm-method {
    margin: 32px auto 0;
    max-width: 760px;
    padding: 40px 44px;
    background: var(--bg-warm-2);
    border: 1px solid rgba(244, 239, 230, 0.10);
    color: var(--c-bone-soft);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.75;
    position: relative;
}
.llm-method::before,
.llm-method::after {
    content: '';
    position: absolute;
    width: 18px; height: 18px;
    border: 1px solid var(--c-amber);
    opacity: 0.55;
}
.llm-method::before {
    top: 14px; left: 14px;
    border-right: 0; border-bottom: 0;
}
.llm-method::after {
    bottom: 14px; right: 14px;
    border-left: 0; border-top: 0;
}

.llm-method h1, .llm-method h2, .llm-method h3 {
    font-family: var(--font-editorial);
    font-weight: 500;
    color: var(--c-bone);
    letter-spacing: -0.015em;
    margin: 28px 0 14px;
    line-height: 1.2;
}
.llm-method h1:first-child,
.llm-method h2:first-child,
.llm-method h3:first-child { margin-top: 0; }
.llm-method h1 { font-size: 28px; font-weight: 500; }
.llm-method h2 {
    font-size: 22px;
    padding-top: 16px;
    border-top: 1px solid rgba(244, 239, 230, 0.08);
}
.llm-method h2:first-child { padding-top: 0; border-top: 0; }
.llm-method h3 { font-size: 18px; }

.llm-method p { margin: 0 0 16px; }
.llm-method p:last-child { margin-bottom: 0; }

.llm-method ul, .llm-method ol {
    margin: 0 0 16px;
    padding-left: 24px;
}
.llm-method li { margin-bottom: 6px; }
.llm-method ul li::marker { color: var(--c-amber); }
.llm-method ol li::marker { color: var(--c-amber); }

.llm-method a {
    color: var(--c-amber);
    text-decoration: underline;
    text-decoration-color: rgba(232, 163, 61, 0.30);
    text-underline-offset: 3px;
    transition: text-decoration-color var(--t-fast);
}
.llm-method a:hover { text-decoration-color: var(--c-amber); }

.llm-method code {
    background: var(--bg-warm);
    padding: 2px 6px;
    font-family: var(--font-tech);
    font-size: 0.92em;
    color: var(--c-amber);
    border: 1px solid rgba(232, 163, 61, 0.20);
}

.llm-method strong { color: var(--c-bone); }
.llm-method em {
    color: var(--c-amber);
    font-style: italic;
    font-family: var(--font-editorial);
}

/* ---------- Responsive ----------------------------------------------- */

@media (max-width: 600px) {
    .llm-block { padding: 56px 20px 72px; }
    .llm-grid { grid-template-columns: 1fr 1fr; }
    .llm-card { padding: 24px 16px 20px; }
    .llm-method { padding: 28px 24px; font-size: 15px; }
    .llm-method::before, .llm-method::after { display: none; }
}
