/* ============================================================
   nf-core.css — styles partagés Notice Facile
   Pages : home (index.php), marque (marque_p.php), marques (marques.php)
   ============================================================ */

/* ------------------------------------------------------------
   HERO RECHERCHE — critical CSS (rendu direct, évite CLS)
   ------------------------------------------------------------ */
.nf-hero {
    padding: 16px 16px 6px;
    text-align: center;
}
.nf-hero h1 {
    font-size: clamp(1.6rem, 4vw, 2.6rem);
    font-weight: 800;
    margin: 0 0 12px;
    color: #1a1a1a;
    line-height: 1.15;
}
.nf-hero .nf-hero-sub {
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    color: #5a6370;
    margin: 0 auto 12px;
    max-width: 640px;
}
.nf-hero-form {
    position: relative;
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    background: #fff;
    border: 2px solid #e1e5eb;
    border-radius: 999px;
    box-shadow: 0 4px 20px rgba(10, 30, 60, .06);
    transition: border-color .2s, box-shadow .2s;
}
.nf-hero-form:focus-within {
    border-color: #0066ff;
    box-shadow: 0 6px 28px rgba(0, 102, 255, .15);
}
.nf-hero-form input[type=search] {
    flex: 1;
    border: 0;
    outline: 0;
    padding: 0 20px 0 28px;
    font-size: clamp(1rem, 1.6vw, 1.15rem);
    height: 64px;
    background: transparent;
    border-radius: 999px 0 0 999px;
    min-width: 0;
}
.nf-hero-form button {
    border: 0;
    background: linear-gradient(135deg, #0066ff 0%, #0044cc 100%);
    color: #fff;
    font-weight: 700;
    padding: 0 28px;
    height: 64px;
    border-radius: 999px;
    margin: 0;
    font-size: 1rem;
    cursor: pointer;
    transition: transform .15s;
    white-space: nowrap;
}
.nf-hero-form button:hover { transform: translateY(-1px); }
@media (max-width: 540px) {
    .nf-hero-form input[type=search] { height: 56px; padding: 0 12px 0 18px; }
    .nf-hero-form button { height: 56px; padding: 0 16px; font-size: .9rem; }
}

/* Hero compact (variant page marque) */
.nf-hero--compact { padding: 8px 8px 4px; text-align: left; }
.nf-hero--compact .nf-hero-form { margin: 0; }

/* Suggest panel */
.nf-suggest {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e1e5eb;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(10, 30, 60, .12);
    z-index: 50;
    max-height: 70vh;
    overflow-y: auto;
    text-align: left;
}
.nf-suggest[hidden] { display: none; }
.nf-suggest-list { list-style: none; margin: 0; padding: 6px; }
.nf-suggest-item a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 12px;
    text-decoration: none;
    color: #1a1a1a;
}
.nf-suggest-item.is-active a,
.nf-suggest-item a:hover { background: #f3f6fb; }
.nf-suggest-logo {
    flex: 0 0 44px;
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    background: #f8f9fb; border-radius: 10px; overflow: hidden;
}
.nf-suggest-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.nf-suggest-initial {
    font-weight: 700; color: #5a6370; font-size: 1.1rem;
}
.nf-suggest-label { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.nf-suggest-name { font-weight: 600; font-size: .98rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nf-suggest-name mark { background: #fff3bf; padding: 0 2px; border-radius: 3px; }
.nf-suggest-count { font-size: .8rem; color: #6c7684; }
.nf-suggest-empty { padding: 18px; text-align: center; color: #6c7684; }

/* Chips */
.nf-chips {
    display: flex; flex-wrap: wrap; gap: 8px;
    justify-content: center; margin: 10px auto 0;
    max-width: 720px;
}
@media (max-width: 640px) {
    .nf-chips { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; padding: 0 8px 4px; }
    .nf-chips::-webkit-scrollbar { height: 0; }
}
.nf-chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 14px; border-radius: 999px;
    background: #f3f6fb; color: #344054; font-size: .9rem;
    text-decoration: none; white-space: nowrap;
    border: 1px solid transparent; transition: all .15s;
}
.nf-chip:hover { background: #e7efff; color: #0044cc; text-decoration: none; border-color: #c9dcff; }

/* ------------------------------------------------------------
   SECTIONS GÉNÉRIQUES
   ------------------------------------------------------------ */
.nf-section { margin: 18px 0; }
.nf-section h2 {
    text-align: center;
    font-size: clamp(1.3rem, 2.2vw, 1.7rem);
    font-weight: 700;
    margin: 0 0 10px;
    color: #1a1a1a;
}
.nf-section h2.nf-section-h2-left { text-align: left; }

/* ------------------------------------------------------------
   TOP MARQUES (logos only)
   ------------------------------------------------------------ */
.nf-brands-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
}
@media (max-width: 900px) { .nf-brands-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 540px) { .nf-brands-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; } }
@media (max-width: 360px) { .nf-brands-grid { grid-template-columns: repeat(2, 1fr); } }

.nf-brand-tile {
    display: flex; align-items: center; justify-content: center;
    background: #fff; border: 1px solid #eef1f5;
    border-radius: 14px;
    aspect-ratio: 1 / 1;
    padding: 16px;
    transition: transform .15s, box-shadow .15s, border-color .15s;
    text-decoration: none;
    position: relative;
}
.nf-brand-tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(10, 30, 60, .08);
    border-color: #c9dcff;
    text-decoration: none;
}
.nf-brand-tile img {
    max-width: 100%; max-height: 100%;
    object-fit: contain;
}
.nf-brand-tile-initial {
    display: flex; align-items: center; justify-content: center;
    width: 100%; height: 100%;
    font-size: 2.2rem; font-weight: 800; color: #5a6370;
    background: linear-gradient(135deg, #f8f9fb 0%, #eef1f5 100%);
    border-radius: 8px;
}
.nf-brand-tile-label {
    position: absolute;
    bottom: 6px; left: 6px; right: 6px;
    font-size: .72rem; font-weight: 600; color: #6c7684;
    text-align: center;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ------------------------------------------------------------
   CATÉGORIES
   ------------------------------------------------------------ */
.nf-cats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}
@media (max-width: 900px) { .nf-cats-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .nf-cats-grid { grid-template-columns: repeat(2, 1fr); } }

.nf-cat-tile {
    display: flex; align-items: center; gap: 10px;
    padding: 14px 16px;
    background: #fff; border: 1px solid #eef1f5;
    border-radius: 14px;
    text-decoration: none; color: #1a1a1a;
    transition: border-color .15s, background .15s;
}
.nf-cat-tile:hover { border-color: #c9dcff; background: #f3f6fb; text-decoration: none; color: #0044cc; }
.nf-cat-icon { font-size: 1.4rem; flex-shrink: 0; line-height: 1; }
.nf-cat-label { font-weight: 600; font-size: .95rem; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nf-cat-count {
    font-size: .78rem; color: #6c7684; font-weight: 500;
    background: #f3f6fb; padding: 2px 8px; border-radius: 999px;
    flex-shrink: 0;
}
.nf-cat-tile:hover .nf-cat-count { background: #fff; color: #0044cc; }

.nf-cats-more {
    text-align: center; margin-top: 12px;
}
.nf-cats-more a {
    color: #0066ff; font-weight: 600; text-decoration: none;
    font-size: .95rem;
}
.nf-cats-more a:hover { text-decoration: underline; }

/* ------------------------------------------------------------
   FAQ RÉCENTES (home)
   ------------------------------------------------------------ */
.nf-faq-list { display: flex; flex-direction: column; gap: 12px; max-width: 900px; margin: 0 auto; }
.nf-faq-item {
    background: #fff; border: 1px solid #eef1f5; border-radius: 12px;
    padding: 16px 20px; border-left: 3px solid #0066ff;
}
.nf-faq-item .nf-faq-date { font-size: .78rem; color: #6c7684; margin-bottom: 6px; }
.nf-faq-item .nf-faq-q {
    font-size: 1rem; font-weight: 600; color: #1a1a1a;
    text-decoration: none; display: block; margin-bottom: 8px;
    line-height: 1.4;
}
.nf-faq-item .nf-faq-q:hover { color: #0044cc; }
.nf-faq-item .nf-faq-meta { font-size: .82rem; color: #6c7684; }
.nf-faq-item .nf-faq-meta strong { color: #344054; }

/* FAQ grid (page marque — 2 colonnes responsive) */
.nf-faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
@media (max-width: 700px) { .nf-faq-grid { grid-template-columns: 1fr; } }
.nf-faq-grid .nf-faq-item { margin: 0; }
.nf-faq-model-badge {
    display: inline-block;
    margin-top: 6px;
    padding: 3px 10px;
    background: #eef4ff; color: #0044cc;
    border-radius: 999px;
    font-size: .78rem; font-weight: 600;
    text-decoration: none;
}
.nf-faq-model-badge:hover { background: #0066ff; color: #fff; text-decoration: none; }

/* ------------------------------------------------------------
   BREADCRUMB
   ------------------------------------------------------------ */
.nf-breadcrumb {
    font-size: .88rem;
    color: #6c7684;
    margin: 8px 0 14px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}
.nf-breadcrumb a {
    color: #0066ff;
    text-decoration: none;
}
.nf-breadcrumb a:hover { text-decoration: underline; }
.nf-breadcrumb-sep { color: #c4ccd6; }
.nf-breadcrumb-current { color: #344054; font-weight: 600; }

/* ------------------------------------------------------------
   ENTÊTE DE MARQUE (logo + titres côte à côte)
   ------------------------------------------------------------ */
.nf-brand-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 18px 20px;
    background: linear-gradient(135deg, #f8f9fb 0%, #eef4ff 100%);
    border: 1px solid #e7efff;
    border-radius: 18px;
    margin-bottom: 18px;
}
.nf-brand-header-logo {
    flex-shrink: 0;
    width: 96px; height: 96px;
    background: #fff;
    border-radius: 16px;
    border: 1px solid #eef1f5;
    padding: 8px;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.nf-brand-header-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.nf-brand-header-initial {
    font-size: 2.5rem; font-weight: 800; color: #5a6370;
}
.nf-brand-header-titles { min-width: 0; flex: 1; }
.nf-brand-header-titles h1 {
    font-size: clamp(1.4rem, 3.2vw, 2rem);
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1.2;
    margin: 0 0 6px;
}
.nf-brand-header-titles .nf-brand-sub {
    font-size: clamp(.9rem, 1.3vw, 1rem);
    color: #5a6370;
    margin: 0;
}
.nf-brand-header-titles .nf-brand-sub strong { color: #0044cc; }

@media (max-width: 540px) {
    .nf-brand-header { gap: 14px; padding: 14px; }
    .nf-brand-header-logo { width: 72px; height: 72px; border-radius: 12px; padding: 6px; }
    .nf-brand-header-initial { font-size: 2rem; }
}

/* ------------------------------------------------------------
   GRILLE PRODUITS (utilisée avec .notice-card existant de bootstrap)
   ------------------------------------------------------------ */
.nf-product-grid-wrap { margin-top: 12px; }
.notice-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}
@media (max-width: 1100px) { .notice-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px)  { .notice-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }
@media (max-width: 380px)  { .notice-grid { grid-template-columns: 1fr; } }

.nf-load-more-wrap { text-align: center; margin: 22px 0 10px; }
.nf-load-more-btn {
    display: inline-block;
    background: linear-gradient(135deg, #0066ff 0%, #0044cc 100%);
    color: #fff;
    border: 0;
    padding: 12px 26px;
    border-radius: 999px;
    font-weight: 700;
    cursor: pointer;
    font-size: .95rem;
    transition: transform .15s, box-shadow .15s;
}
.nf-load-more-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0, 102, 255, .22); }
.nf-load-more-btn:disabled { opacity: .55; cursor: default; transform: none; box-shadow: none; }

.nf-empty-state {
    text-align: center;
    padding: 30px 20px;
    color: #6c7684;
    font-size: 1rem;
}

/* ------------------------------------------------------------
   BLOC DESCRIPTION (desc_{locale})
   ------------------------------------------------------------ */
.nf-brand-desc {
    background: #fff;
    border: 1px solid #eef1f5;
    border-radius: 16px;
    padding: 20px 24px;
    color: #344054;
    font-size: .98rem;
    line-height: 1.7;
}
.nf-brand-desc p { margin: 0 0 10px; }
.nf-brand-desc p:last-child { margin-bottom: 0; }
.nf-brand-desc h3 {
    font-size: 1.1rem; font-weight: 700;
    margin: 14px 0 8px; color: #1a1a1a;
}

/* ------------------------------------------------------------
   PAGE /marques — NAV A-Z + SECTIONS
   ------------------------------------------------------------ */
.nf-alpha-nav {
    position: sticky;
    top: 60px;
    z-index: 10;
    background: #fff;
    border: 1px solid #eef1f5;
    border-radius: 999px;
    padding: 8px 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(10, 30, 60, .05);
    margin: 12px 0 18px;
}
.nf-alpha-nav a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px;
    border-radius: 50%;
    font-weight: 700; font-size: .85rem;
    color: #344054; text-decoration: none;
    transition: background .15s, color .15s;
}
.nf-alpha-nav a:hover { background: #eef4ff; color: #0044cc; text-decoration: none; }
.nf-alpha-nav a.is-disabled { color: #c4ccd6; cursor: default; pointer-events: none; }

.nf-alpha-section { margin: 22px 0; scroll-margin-top: 80px; }
.nf-alpha-section h2 {
    font-size: 1.6rem;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0 0 12px;
    padding-bottom: 6px;
    border-bottom: 2px solid #eef4ff;
}

.nf-brand-list-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}
@media (max-width: 900px) { .nf-brand-list-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px) { .nf-brand-list-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 380px) { .nf-brand-list-grid { grid-template-columns: 1fr; } }

.nf-brand-row {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 12px;
    background: #fff; border: 1px solid #eef1f5;
    border-radius: 12px;
    text-decoration: none; color: #1a1a1a;
    transition: border-color .15s, background .15s, transform .15s;
    min-width: 0;
}
.nf-brand-row:hover {
    border-color: #c9dcff; background: #f3f6fb;
    text-decoration: none; color: #0044cc;
    transform: translateY(-1px);
}
.nf-brand-row-logo {
    flex-shrink: 0;
    width: 40px; height: 40px;
    background: #f8f9fb;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.nf-brand-row-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.nf-brand-row-initial {
    font-weight: 800; color: #5a6370; font-size: 1rem;
}
.nf-brand-row-text { min-width: 0; flex: 1; }
.nf-brand-row-name {
    font-weight: 600; font-size: .95rem;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.nf-brand-row-count {
    font-size: .78rem; color: #6c7684;
    margin-top: 2px;
}

/* ------------------------------------------------------------
   SEO FOOTER
   ------------------------------------------------------------ */
.nf-seo-block {
    margin: 22px 0 10px;
    padding: 18px;
    background: #f8f9fb;
    border-radius: 16px;
    text-align: center;
    color: #475467;
    font-size: .95rem;
    line-height: 1.6;
}
.nf-seo-block strong { color: #1a1a1a; }
