/* =========================================================================
   SocialHub — feuille de style autonome (sans build)
   Concept « le carrefour » : des plateformes colorées qui convergent.
   ========================================================================= */

:root {
    --paper: #F4F3FA;
    --ink: #171334;
    --ink-soft: #504C74;
    --ink-faint: #8A86A8;
    --violet: #5A2AF0;
    --violet-deep: #3D17B8;
    --coral: #FF5C39;
    --aqua: #12B5A5;
    --card: #FFFFFF;
    --line: #E6E3F2;
    --line-soft: #EFEDF7;

    --net: var(--violet);

    --radius: 20px;
    --radius-sm: 12px;
    --radius-lg: 28px;
    --shadow-sm: 0 2px 10px rgba(23, 19, 52, .05);
    --shadow: 0 18px 40px -22px rgba(45, 24, 120, .35);
    --shadow-lg: 0 40px 80px -40px rgba(45, 24, 120, .45);

    --font-display: "Bricolage Grotesque", "Figtree", system-ui, sans-serif;
    --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

    --maxw: 1160px;
}

/* ---- Réseaux : couleur de marque par plateforme --------------------------- */
[data-net="whatsapp"]  { --net: #25D366; --net-ink: #0b7a3b; }
[data-net="telegram"]  { --net: #2AABEE; --net-ink: #1785c2; }
[data-net="facebook"]  { --net: #1877F2; --net-ink: #1160c4; }
[data-net="instagram"] { --net: #DD2A7B; --net-ink: #b81f66; }
[data-net="tiktok"]    { --net: #FE2C55; --net-ink: #d11540; }
[data-net="youtube"]   { --net: #FF0000; --net-ink: #cc0000; }
[data-net="autre"]     { --net: #5A2AF0; --net-ink: #3D17B8; }

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--paper);
    line-height: 1.6;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin: 0;
    font-weight: 800;
}

.container {
    width: 100%;
    max-width: var(--maxw);
    margin-inline: auto;
    padding-inline: 22px;
}

.eyebrow {
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--violet);
    display: inline-flex;
    align-items: center;
    gap: .5rem;
}
.eyebrow::before {
    content: "";
    width: 26px; height: 2px;
    background: var(--coral);
    display: inline-block;
}

/* ---- Boutons -------------------------------------------------------------- */
.btn {
    --btn-bg: var(--violet);
    --btn-fg: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: .98rem;
    padding: .8rem 1.4rem;
    border-radius: 999px;
    border: 1.5px solid transparent;
    background: var(--btn-bg);
    color: var(--btn-fg);
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 1.1em; height: 1.1em; }

.btn-primary { --btn-bg: var(--coral); box-shadow: 0 14px 30px -14px rgba(255, 92, 57, .8); }
.btn-primary:hover { --btn-bg: #ff4a23; }
.btn-violet { --btn-bg: var(--violet); box-shadow: 0 14px 30px -14px rgba(90, 42, 240, .7); }
.btn-violet:hover { --btn-bg: var(--violet-deep); }
.btn-join { --btn-bg: var(--aqua); box-shadow: 0 14px 30px -14px rgba(18, 181, 165, .7); }
.btn-join:hover { --btn-bg: #0e9c8f; }
.btn-net { --btn-bg: var(--net); color: #fff; }
.btn-ghost {
    background: transparent;
    color: var(--ink);
    border-color: var(--line);
}
.btn-ghost:hover { background: #fff; border-color: var(--violet); color: var(--violet); }
.btn-sm { padding: .5rem 1rem; font-size: .88rem; }
.btn-block { width: 100%; }

:focus-visible {
    outline: 3px solid var(--violet);
    outline-offset: 2px;
    border-radius: 6px;
}

/* ---- Navigation ----------------------------------------------------------- */
.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(244, 243, 250, .82);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line-soft);
}
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    height: 70px;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.3rem;
    letter-spacing: -.03em;
}
.brand-mark {
    width: 34px; height: 34px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--violet), var(--coral));
    display: grid; place-items: center;
    color: #fff;
    box-shadow: var(--shadow-sm);
}
.brand-mark svg { width: 20px; height: 20px; }
.brand b { color: var(--violet); }

.nav-links { display: flex; align-items: center; gap: 1.6rem; }
.nav-links a.navlink {
    font-weight: 600;
    font-size: .96rem;
    color: var(--ink-soft);
    transition: color .15s ease;
}
.nav-links a.navlink:hover { color: var(--violet); }
.nav-cta { display: flex; align-items: center; gap: .7rem; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle svg { width: 26px; height: 26px; }

/* ---- Hero ----------------------------------------------------------------- */
.hero {
    position: relative;
    overflow: hidden;
    padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(3rem, 6vw, 4.5rem);
}
/* fine trame de points : donne de la profondeur, s'efface vers le centre */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: radial-gradient(color-mix(in srgb, var(--violet) 22%, transparent) 1px, transparent 1.4px);
    background-size: 26px 26px;
    -webkit-mask-image: radial-gradient(120% 80% at 50% 38%, transparent 42%, #000 100%);
    mask-image: radial-gradient(120% 80% at 50% 38%, transparent 42%, #000 100%);
    opacity: .5;
    pointer-events: none;
}
.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: .5;
    z-index: 0;
    pointer-events: none;
    animation: drift 20s ease-in-out infinite;
}
.hero-blob.b1 { width: 460px; height: 460px; background: #cdbcff; top: -160px; left: -120px; }
.hero-blob.b2 { width: 380px; height: 380px; background: #ffd0c2; top: -60px; right: -100px; animation-delay: -7s; animation-duration: 24s; }
.hero-blob.b3 { width: 320px; height: 320px; background: #b8f2ec; bottom: -160px; left: 40%; animation-delay: -13s; animation-duration: 28s; }

@keyframes drift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%      { transform: translate(24px, -18px) scale(1.06); }
    66%      { transform: translate(-18px, 14px) scale(.96); }
}

/* ---- Signature « le carrefour » : orbes de plateformes qui convergent ----- */
.hero-orbits { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.orb {
    position: absolute;
    width: 58px; height: 58px;
    display: grid; place-items: center;
    border-radius: 18px;
    background: #fff;
    color: var(--net);
    border: 1px solid color-mix(in srgb, var(--net) 30%, var(--line));
    box-shadow: 0 16px 32px -16px color-mix(in srgb, var(--net) 65%, transparent), var(--shadow-sm);
    animation: floaty 7s ease-in-out infinite;
}
.orb svg { width: 27px; height: 27px; }
.orb.o1 { top: 14%;  left: 7%;   width: 62px; height: 62px; animation-delay: -.4s; }
.orb.o2 { top: 20%;  right: 9%;  animation-delay: -2.1s; animation-duration: 8s; }
.orb.o3 { top: 56%;  left: 4%;   width: 50px; height: 50px; animation-delay: -3.3s; }
.orb.o4 { bottom: 15%; right: 7%; width: 62px; height: 62px; animation-delay: -1.2s; animation-duration: 8.5s; }
.orb.o5 { bottom: 12%; left: 15%; width: 52px; height: 52px; animation-delay: -4s; }
.orb.o6 { top: 47%;  right: 5%;  width: 46px; height: 46px; animation-delay: -5.4s; animation-duration: 9s; }

@keyframes floaty {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50%      { transform: translateY(-13px) rotate(2deg); }
}

.hero-inner { position: relative; z-index: 2; max-width: 780px; margin-inline: auto; text-align: center; }
.hero h1 {
    font-size: clamp(2.4rem, 6.4vw, 4.4rem);
    margin: 1.2rem 0 0;
}
.hero h1 .accent {
    background: linear-gradient(120deg, var(--violet), var(--coral));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-lead {
    font-size: clamp(1.05rem, 2.2vw, 1.25rem);
    color: var(--ink-soft);
    margin: 1.2rem auto 0;
    max-width: 560px;
}

/* Recherche centrale */
.search {
    margin: 2rem auto 0;
    max-width: 640px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 999px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    padding: .5rem .5rem .5rem 1.25rem;
    gap: .5rem;
    transition: box-shadow .2s ease, border-color .2s ease;
}
.search:focus-within { border-color: var(--violet); box-shadow: var(--shadow-lg); }
.search svg.search-ic { width: 22px; height: 22px; color: var(--ink-faint); flex: none; }
.search input {
    flex: 1;
    border: 0;
    background: none;
    font-family: var(--font-body);
    font-size: 1.05rem;
    color: var(--ink);
    padding: .55rem 0;
    min-width: 0;
}
.search input:focus { outline: none; }
.search input::placeholder { color: var(--ink-faint); }

.rotator {
    margin-top: 1rem;
    color: var(--ink-faint);
    font-size: .95rem;
}
.rotator b {
    color: var(--violet);
    font-weight: 700;
}
.rotator .word { display: inline-block; }

.hero-stats {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: clamp(1rem, 4vw, 2.4rem);
    margin-top: 2.6rem;
    flex-wrap: wrap;
    padding: .85rem clamp(1.2rem, 4vw, 2rem);
    background: color-mix(in srgb, #fff 68%, transparent);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}
.hero-stats .stat { text-align: center; }
.hero-stats .stat + .stat { border-left: 1px solid var(--line); padding-left: clamp(1rem, 4vw, 2.4rem); }
.hero-stats .stat b {
    display: block;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.9rem;
    color: var(--ink);
    line-height: 1;
}
.hero-stats .stat span { font-size: .85rem; color: var(--ink-faint); }

/* ---- Sections ------------------------------------------------------------- */
section.block { padding: clamp(3rem, 7vw, 5rem) 0; }
.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}
.section-head h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); margin-top: .5rem; }
.section-head p { color: var(--ink-soft); margin: .4rem 0 0; max-width: 44ch; }
.section-link {
    font-weight: 700;
    color: var(--violet);
    display: inline-flex; align-items: center; gap: .4rem;
}
.section-link svg { width: 1em; height: 1em; transition: transform .15s ease; }
.section-link:hover svg { transform: translateX(3px); }

/* ---- Grille de catégories ------------------------------------------------- */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 14px;
}
.cat-card {
    display: flex;
    align-items: center;
    gap: .85rem;
    padding: 1rem 1.1rem;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.cat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 36px -22px color-mix(in srgb, var(--cat, var(--violet)) 75%, transparent);
    border-color: color-mix(in srgb, var(--cat, var(--violet)) 45%, var(--line));
}
.cat-ic {
    width: 42px; height: 42px; flex: none;
    border-radius: 12px;
    display: grid; place-items: center;
    color: #fff;
    box-shadow: 0 8px 18px -8px color-mix(in srgb, var(--cat, var(--violet)) 80%, transparent);
    transition: transform .18s ease;
}
.cat-card:hover .cat-ic { transform: scale(1.06) rotate(-3deg); }
.cat-ic svg { width: 22px; height: 22px; }
.cat-card .cat-name { font-weight: 700; font-size: .98rem; line-height: 1.15; }
.cat-card .cat-count { font-size: .8rem; color: var(--ink-faint); }

/* ---- Cartes de communauté ------------------------------------------------- */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 22px;
}
.ccard {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.ccard:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: transparent; }
.ccard-top {
    position: relative;
    padding: 1.2rem 1.3rem 0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .75rem;
}
/* onglet coloré à la couleur de la plateforme = signature */
.ccard::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 5px;
    background: var(--net);
}
.ccard-logo {
    width: 54px; height: 54px; flex: none;
    border-radius: 15px;
    display: grid; place-items: center;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.35rem;
    color: #fff;
    background: linear-gradient(135deg, var(--net), color-mix(in srgb, var(--net) 55%, #000 12%));
    object-fit: cover;
    overflow: hidden;
}
.ccard-logo img { width: 100%; height: 100%; object-fit: cover; }
.net-badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .74rem;
    font-weight: 700;
    padding: .32rem .6rem;
    border-radius: 999px;
    color: var(--net-ink, var(--net));
    background: color-mix(in srgb, var(--net) 14%, #fff);
}
.net-badge svg { width: 14px; height: 14px; }
.ccard-body { padding: .9rem 1.3rem 1.3rem; display: flex; flex-direction: column; flex: 1; }
.ccard-body h3 { font-size: 1.2rem; margin-bottom: .35rem; }
.ccard-body h3 a:hover { color: var(--violet); }
.ccard-desc {
    color: var(--ink-soft);
    font-size: .94rem;
    margin: 0 0 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ccard-meta {
    display: flex;
    align-items: center;
    gap: .8rem;
    font-size: .82rem;
    color: var(--ink-faint);
    margin-bottom: 1rem;
    flex-wrap: wrap;
}
.ccard-meta .chip-cat {
    font-weight: 600;
    color: var(--ink-soft);
    background: var(--line-soft);
    padding: .22rem .6rem;
    border-radius: 999px;
}
.ccard-meta .views { display: inline-flex; align-items: center; gap: .3rem; }
.ccard-meta .views svg { width: 15px; height: 15px; }
.ccard-actions { margin-top: auto; display: flex; gap: .6rem; }

/* ---- Bande CTA ------------------------------------------------------------ */
.cta-band {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: linear-gradient(120deg, var(--violet-deep), var(--violet) 55%, #7b46ff);
    color: #fff;
    padding: clamp(2.4rem, 6vw, 4rem);
    text-align: center;
}
.cta-band h2 { font-size: clamp(1.8rem, 4.5vw, 3rem); color: #fff; }
.cta-band p { color: rgba(255,255,255,.85); max-width: 48ch; margin: 1rem auto 1.8rem; }
.cta-band .btn-primary { box-shadow: 0 18px 40px -16px rgba(0,0,0,.55); }
.cta-band .blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .35; }
.cta-band .blob.x { width: 260px; height: 260px; background: var(--coral); top: -80px; right: -40px; }
.cta-band .blob.y { width: 220px; height: 220px; background: var(--aqua); bottom: -90px; left: -30px; }
.cta-band > * { position: relative; z-index: 1; }

/* ---- Barre de filtres (annuaire) ----------------------------------------- */
.filterbar {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1rem;
    box-shadow: var(--shadow-sm);
    display: grid;
    gap: .8rem;
    margin-bottom: 2rem;
}
.filterbar .fb-search {
    display: flex; align-items: center; gap: .6rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: .2rem .2rem .2rem 1rem;
    background: var(--paper);
}
.filterbar .fb-search svg { width: 20px; height: 20px; color: var(--ink-faint); }
.filterbar .fb-search input { flex: 1; border: 0; background: none; font-family: var(--font-body); font-size: 1rem; padding: .6rem 0; min-width: 0; }
.filterbar .fb-search input:focus { outline: none; }
.fb-row { display: flex; gap: .7rem; flex-wrap: wrap; align-items: center; }
.select {
    appearance: none;
    font-family: var(--font-body);
    font-size: .92rem;
    font-weight: 600;
    color: var(--ink);
    border: 1px solid var(--line);
    background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238A86A8' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right .8rem center / 16px;
    border-radius: 999px;
    padding: .6rem 2.2rem .6rem 1rem;
    cursor: pointer;
}
.select:focus { outline: none; border-color: var(--violet); }
.results-count { color: var(--ink-faint); font-size: .9rem; margin-left: auto; }

/* ---- Chips de plateforme (filtre rapide) --------------------------------- */
.pill-row { display: flex; gap: .5rem; flex-wrap: wrap; }
.pill {
    display: inline-flex; align-items: center; gap: .4rem;
    font-size: .85rem; font-weight: 600;
    padding: .4rem .85rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--card);
    color: var(--ink-soft);
    transition: all .15s ease;
}
.pill svg { width: 15px; height: 15px; }
.pill:hover { border-color: var(--net); color: var(--net-ink, var(--net)); }
.pill.is-active { background: var(--net); border-color: var(--net); color: #fff; }
.pill.is-active svg { color: #fff; }

/* ---- Page détail ---------------------------------------------------------- */
.detail {
    display: grid;
    grid-template-columns: 1.7fr 1fr;
    gap: 2rem;
    align-items: start;
}
.detail-main { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.detail-hero { position: relative; padding: 2rem 2rem 1.4rem; border-bottom: 1px solid var(--line-soft); }
.detail-hero::before { content: ""; position: absolute; inset: 0 0 auto; height: 6px; background: var(--net); }
.detail-head { display: flex; gap: 1.2rem; align-items: center; }
.detail-logo {
    width: 84px; height: 84px; flex: none;
    border-radius: 22px;
    display: grid; place-items: center;
    font-family: var(--font-display); font-weight: 800; font-size: 2rem; color: #fff;
    background: linear-gradient(135deg, var(--net), color-mix(in srgb, var(--net) 55%, #000 12%));
    overflow: hidden;
}
.detail-logo img { width: 100%; height: 100%; object-fit: cover; }
.detail-head h1 { font-size: clamp(1.6rem, 4vw, 2.3rem); }
.detail-sub { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; margin-top: .5rem; color: var(--ink-faint); font-size: .9rem; }
.detail-section { padding: 1.6rem 2rem; }
.detail-section h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-faint); margin-bottom: .6rem; }
.detail-section p { margin: 0; color: var(--ink-soft); white-space: pre-line; }
.tag-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.tag { font-size: .82rem; font-weight: 600; color: var(--violet); background: color-mix(in srgb, var(--violet) 10%, #fff); padding: .3rem .7rem; border-radius: 999px; }

.detail-aside { position: sticky; top: 90px; display: grid; gap: 1.2rem; }
.aside-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow-sm); }
.aside-card .big-views { font-family: var(--font-display); font-weight: 800; font-size: 2rem; }
.aside-actions { display: grid; gap: .7rem; }
.share-row { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .3rem; }
.share-btn {
    width: 42px; height: 42px; border-radius: 12px;
    display: grid; place-items: center;
    border: 1px solid var(--line); background: var(--paper);
    cursor: pointer; color: var(--ink-soft);
    transition: all .15s ease;
}
.share-btn:hover { color: #fff; transform: translateY(-2px); }
.share-btn svg { width: 18px; height: 18px; }
.share-btn.wa:hover { background: #25D366; border-color: #25D366; }
.share-btn.tg:hover { background: #2AABEE; border-color: #2AABEE; }
.share-btn.fb:hover { background: #1877F2; border-color: #1877F2; }
.share-btn.cp:hover { background: var(--violet); border-color: var(--violet); }

/* ---- Formulaire ----------------------------------------------------------- */
.form-wrap { max-width: 760px; margin-inline: auto; }
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.5rem, 4vw, 2.6rem); box-shadow: var(--shadow); }
.field { margin-bottom: 1.3rem; }
.field label { display: block; font-weight: 700; font-size: .92rem; margin-bottom: .45rem; }
.field .hint { font-weight: 500; color: var(--ink-faint); font-size: .82rem; }
.field .req { color: var(--coral); }
.input, .textarea, .field select {
    width: 100%;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--ink);
    padding: .8rem 1rem;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--paper);
    transition: border-color .15s ease, background .15s ease;
}
.input:focus, .textarea:focus, .field select:focus { outline: none; border-color: var(--violet); background: #fff; }
.textarea { min-height: 140px; resize: vertical; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; }
.err { color: #d6336c; font-size: .84rem; margin-top: .35rem; font-weight: 600; }
.input.has-err, .textarea.has-err, .field select.has-err { border-color: #d6336c; }

/* choix de plateforme en tuiles */
.plat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .6rem; }
.plat-opt { position: relative; }
.plat-opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.plat-opt label {
    display: flex; align-items: center; gap: .55rem;
    padding: .7rem .8rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
    background: var(--paper); font-size: .88rem; font-weight: 600; cursor: pointer;
    margin: 0; transition: all .15s ease;
}
.plat-opt label svg { width: 20px; height: 20px; flex: none; }
.plat-opt input:checked + label { border-color: var(--net); background: color-mix(in srgb, var(--net) 8%, #fff); color: var(--net-ink, var(--net)); box-shadow: 0 0 0 1px var(--net) inset; }
.plat-opt input:focus-visible + label { outline: 3px solid var(--violet); outline-offset: 2px; }

.file-drop {
    border: 1.5px dashed var(--line); border-radius: var(--radius-sm);
    padding: 1.4rem; text-align: center; color: var(--ink-faint); background: var(--paper);
    cursor: pointer; transition: border-color .15s ease;
}
.file-drop:hover { border-color: var(--violet); }
.file-drop svg { width: 30px; height: 30px; margin-inline: auto; color: var(--violet); }

.alert {
    padding: 1rem 1.2rem; border-radius: var(--radius-sm);
    background: color-mix(in srgb, #d6336c 8%, #fff); color: #a61e4d;
    border: 1px solid color-mix(in srgb, #d6336c 25%, #fff); margin-bottom: 1.4rem; font-weight: 600; font-size: .92rem;
}

/* ---- Page succès ---------------------------------------------------------- */
.success-wrap { max-width: 560px; margin: clamp(3rem,10vw,6rem) auto; text-align: center; }
.success-ic { width: 84px; height: 84px; border-radius: 50%; background: color-mix(in srgb, var(--aqua) 15%, #fff); color: var(--aqua); display: grid; place-items: center; margin: 0 auto 1.5rem; }
.success-ic svg { width: 44px; height: 44px; }

/* ---- État vide ------------------------------------------------------------ */
.empty { text-align: center; padding: 4rem 1rem; color: var(--ink-faint); }
.empty svg { width: 54px; height: 54px; color: var(--line); margin-bottom: 1rem; }

/* ---- Pagination ----------------------------------------------------------- */
.pager { margin-top: 2.4rem; display: flex; justify-content: center; }
.pager nav { display: flex; gap: .3rem; flex-wrap: wrap; align-items: center; }
.pager a, .pager span {
    min-width: 40px; height: 40px; padding: 0 .6rem;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 10px; border: 1px solid var(--line); background: var(--card);
    font-weight: 600; font-size: .9rem; color: var(--ink-soft);
}
.pager a:hover { border-color: var(--violet); color: var(--violet); }
.pager [aria-current] span { background: var(--violet); border-color: var(--violet); color: #fff; }
.pager .disabled span { opacity: .4; }

/* ---- Pied de page --------------------------------------------------------- */
.footer { background: var(--ink); color: #cfcbe8; margin-top: 4rem; }
.footer-inner { padding: 3rem 0 2rem; display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2rem; }
.footer .brand { color: #fff; }
.footer p { color: #a8a3c9; font-size: .92rem; max-width: 34ch; }
.footer h5 { font-family: var(--font-display); color: #fff; font-size: 1rem; margin: 0 0 .9rem; }
.footer a { color: #cfcbe8; font-size: .93rem; display: block; padding: .25rem 0; }
.footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 1.3rem 0; font-size: .85rem; color: #8f8ab5; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

/* ---- Animations reveal ---------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .reveal { opacity: 1; transform: none; }
}

/* ---- Responsive ----------------------------------------------------------- */
@media (max-width: 900px) {
    .detail { grid-template-columns: 1fr; }
    .detail-aside { position: static; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
    body { font-size: 16px; }
    .nav-links { display: none; }
    .nav-links.open {
        display: flex; flex-direction: column; align-items: stretch;
        position: absolute; top: 70px; left: 0; right: 0;
        background: var(--card); border-bottom: 1px solid var(--line);
        padding: 1rem 22px 1.4rem; gap: 1rem; box-shadow: var(--shadow);
    }
    .nav-links.open .nav-cta { flex-direction: column; align-items: stretch; }
    .nav-links.open .btn { width: 100%; }
    .nav-toggle { display: inline-flex; }
    .grid-2 { grid-template-columns: 1fr; }
    .section-head { align-items: flex-start; }
    .footer-inner { grid-template-columns: 1fr; }

    /* Orbes : on n'en garde que deux, discrètes dans les coins hauts */
    .orb { width: 44px !important; height: 44px !important; opacity: .85; }
    .orb svg { width: 20px; height: 20px; }
    .orb.o3, .orb.o4, .orb.o5, .orb.o6 { display: none; }
    .orb.o1 { top: 3%; left: 4%; }
    .orb.o2 { top: 3%; right: 4%; }
    .hero-stats { width: 100%; justify-content: space-between; }
}
