/* ==========================================================
   EDITORIAL MAGAZINE LAYOUT — shared between partenaires + formations
   Inspired by Vercel Blog, Ghost, Stripe Sessions
   ========================================================== */
:root {
    --editorial-max: 1240px;
    --num-color: rgba(255, 87, 34, 0.6);
}

.edit-container {
    max-width: var(--editorial-max);
    margin: 0 auto;
    padding: 0 24px;
}
@media (max-width: 640px) { .edit-container { padding: 0 16px; } }

/* Top announcement banner — subtler */
.announce-bar {
    position: relative;
    background: rgba(255, 87, 34, 0.06);
    border-top: 1px solid rgba(255, 87, 34, 0.12);
    border-bottom: 1px solid rgba(255, 87, 34, 0.12);
    overflow: hidden;
    margin-top: calc(var(--header-height) + 0px);
}
.announce-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.announce-slide {
    flex: 0 0 100%;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 0.95rem;
    color: var(--text-main);
}
.announce-slide .announce-badge {
    background: var(--accent-orange);
    color: #fff;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    flex-shrink: 0;
}
.announce-slide .announce-text { flex: 1; min-width: 200px; text-align: center; }
.announce-slide a {
    color: var(--accent-orange);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px dashed var(--accent-orange);
}
.announce-slide a:hover { color: #ff8c42; }
.announce-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 0 0 8px;
}
.announce-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    padding: 0;
}
.announce-dot.active { background: var(--accent-orange); width: 24px; border-radius: 6px; }

/* ==========================================================
   FEATURED BENTO (replaces hero)
   ========================================================== */
.featured { padding: 48px 0 32px; }
.featured-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: auto auto;
    gap: 16px;
    grid-template-areas: "main aside1" "main aside2";
}
@media (max-width: 900px) {
    .featured-grid { grid-template-columns: 1fr; grid-template-areas: "main" "aside1" "aside2"; }
}
.featured-card {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    padding: 32px;
    text-decoration: none;
    color: inherit;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: var(--glass-bg);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 260px;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.featured-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-orange);
    box-shadow: 0 20px 50px rgba(255, 87, 34, 0.15);
}
.featured-main {
    grid-area: main;
    min-height: 420px;
    background:
        radial-gradient(ellipse at 90% 20%, rgba(255, 87, 34, 0.35), transparent 55%),
        radial-gradient(ellipse at 10% 90%, rgba(16, 185, 129, 0.28), transparent 60%),
        linear-gradient(135deg, #0a0e1a, #14171f);
}
.featured-aside-1 { grid-area: aside1; min-height: 200px; background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(147, 51, 234, 0.15)), var(--glass-bg); }
.featured-aside-2 { grid-area: aside2; min-height: 200px; background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(239, 68, 68, 0.15)), var(--glass-bg); }
.featured-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'SF Mono', Menlo, Consolas, monospace;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--accent-orange);
    font-weight: 600;
}
.featured-eyebrow::before {
    content: '';
    width: 20px; height: 1px;
    background: var(--accent-orange);
}
.featured-main h1 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
    font-weight: 800;
    margin: 20px 0 16px;
    color: #fff;
}
.featured-main p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.05rem;
    line-height: 1.6;
    max-width: 540px;
    margin: 0 0 24px;
}
.featured-aside-1 h2, .featured-aside-2 h2 {
    font-size: 1.25rem;
    line-height: 1.2;
    letter-spacing: -0.01em;
    font-weight: 700;
    margin: 12px 0 8px;
    color: #fff;
}
.featured-aside-1 p, .featured-aside-2 p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.88rem;
    line-height: 1.5;
    margin: 0;
}
.featured-arrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent-orange);
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: auto;
}
.featured-card:hover .featured-arrow {
    transform: translateX(4px);
    transition: transform 0.3s;
}

/* ==========================================================
   NUMBERED SECTION HEADERS
   ========================================================== */
.edit-section { padding: 64px 0; border-top: 1px solid rgba(255, 255, 255, 0.06); }
.edit-section:first-of-type { border-top: 0; }
.edit-section-header {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    margin-bottom: 40px;
    gap: 20px;
}
@media (max-width: 640px) {
    .edit-section-header { grid-template-columns: 1fr; align-items: start; }
}
.edit-num {
    font-family: 'SF Mono', Menlo, Consolas, monospace;
    font-size: 12px;
    letter-spacing: 0.16em;
    color: var(--num-color);
    font-weight: 500;
    display: block;
    margin-bottom: 12px;
}
.edit-section-header h2 {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    line-height: 1.1;
    letter-spacing: -0.015em;
    font-weight: 800;
    margin: 0;
    color: #fff;
}
.edit-section-header .see-all {
    color: var(--accent-orange);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s;
}
.edit-section-header .see-all:hover { gap: 10px; }

/* ==========================================================
   PARTNER / SKILL CARDS (editorial)
   Used for partners AND formation skills/features
   ========================================================== */
.edit-partners {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}
.edit-partner-card {
    position: relative;
    padding: 28px 24px;
    border-radius: 18px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
    min-height: 240px;
}
.edit-partner-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--edit-partner-accent, var(--accent-orange));
    opacity: 0.8;
}
.edit-partner-card:hover {
    transform: translateY(-6px);
    border-color: var(--edit-partner-accent, var(--accent-orange));
}
.edit-partner-num {
    font-family: 'SF Mono', Menlo, Consolas, monospace;
    font-size: 11px;
    color: var(--edit-partner-accent, var(--accent-orange));
    font-weight: 600;
    letter-spacing: 0.15em;
    margin-bottom: 20px;
}
.edit-partner-logo {
    font-size: 3rem;
    line-height: 1;
    margin-bottom: 16px;
    display: block;
}
.edit-partner-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 0 0 10px;
    color: #fff;
}
.edit-partner-card p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.92rem;
    line-height: 1.55;
    margin: 0 0 20px;
    flex: 1;
}
.edit-partner-cat {
    font-family: 'SF Mono', Menlo, Consolas, monospace;
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: rgba(255, 255, 255, 0.5);
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* ==========================================================
   NEWS / ARTICLES / MODULES cards
   ========================================================== */
.edit-news {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}
.edit-news-card {
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    overflow: hidden;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.edit-news-card:hover { transform: translateY(-4px); border-color: var(--accent-orange); }
.edit-news-thumb {
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    background: linear-gradient(135deg, rgba(255, 87, 34, 0.15), rgba(16, 185, 129, 0.1));
    transition: font-size 0.3s;
}
.edit-news-card:hover .edit-news-thumb { font-size: 4.5rem; }
.edit-news-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.edit-news-meta {
    font-family: 'SF Mono', Menlo, Consolas, monospace;
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--accent-orange);
    font-weight: 600;
    display: flex;
    gap: 10px;
    align-items: center;
}
.edit-news-meta::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 87, 34, 0.3);
}
.edit-news-card h3 {
    font-size: 1.15rem;
    line-height: 1.3;
    letter-spacing: -0.01em;
    font-weight: 700;
    margin: 6px 0 4px;
    color: #fff;
}
.edit-news-card p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.88rem;
    line-height: 1.5;
    margin: 0;
    flex: 1;
}
.edit-news-tags {
    display: flex;
    gap: 6px;
    margin-top: 12px;
    flex-wrap: wrap;
}
.edit-news-tag {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.55);
    padding: 3px 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 999px;
}

/* ==========================================================
   MODULE CARDS (for formation curriculum)
   ========================================================== */
.edit-modules {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.edit-module {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 24px;
    padding: 28px 32px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    transition: border-color 0.3s ease, transform 0.3s ease;
}
.edit-module:hover { border-color: var(--accent-orange); transform: translateY(-2px); }
.edit-module-num {
    font-family: 'SF Mono', Menlo, Consolas, monospace;
    font-size: 32px;
    font-weight: 700;
    color: var(--accent-orange);
    line-height: 1;
    letter-spacing: -0.02em;
    min-width: 80px;
}
.edit-module h3 {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 0 0 14px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}
.edit-module ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 8px 20px;
}
.edit-module li {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
    line-height: 1.45;
    padding-left: 22px;
    position: relative;
}
.edit-module li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-green);
    font-weight: 700;
}
@media (max-width: 640px) {
    .edit-module { grid-template-columns: 1fr; padding: 22px; gap: 12px; }
    .edit-module-num { font-size: 24px; min-width: auto; }
    .edit-module ul { grid-template-columns: 1fr; }
}

/* ==========================================================
   TESTIMONIALS MARQUEE
   ========================================================== */
.edit-marquee-wrap {
    position: relative;
    overflow: hidden;
    margin: 0 -24px;
    padding: 4px 0;
    mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.edit-marquee {
    display: flex;
    gap: 16px;
    width: fit-content;
    animation: marqueeScroll 50s linear infinite;
    padding: 0 24px;
}
.edit-marquee-wrap:hover .edit-marquee { animation-play-state: paused; }
@keyframes marqueeScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
.edit-testimonial {
    flex: 0 0 340px;
    padding: 24px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.edit-testimonial-quote {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.98rem;
    line-height: 1.55;
    font-weight: 500;
    position: relative;
    padding-left: 24px;
}
.edit-testimonial-quote::before {
    content: '"';
    position: absolute;
    left: 0; top: -10px;
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent-orange);
    line-height: 1;
    font-family: Georgia, serif;
}
.edit-testimonial-author { display: flex; align-items: center; gap: 12px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,0.06); }
.edit-testimonial-avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-orange), #ff8c42);
    color: #fff;
}
.edit-testimonial-name { font-weight: 600; font-size: 0.9rem; color: #fff; }
.edit-testimonial-role { color: rgba(255,255,255,0.5); font-size: 0.78rem; }
@media (prefers-reduced-motion: reduce) {
    .edit-marquee { animation: none; }
}

/* ==========================================================
   NEWSLETTER big banner (pleine largeur)
   ========================================================== */
.edit-newsletter {
    margin: 80px 0 0;
    padding: 80px 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(255, 87, 34, 0.18), transparent 45%),
        radial-gradient(circle at 80% 70%, rgba(16, 185, 129, 0.14), transparent 45%),
        linear-gradient(135deg, #0d1220, #0a0e18);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.edit-newsletter-inner {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 24px;
    text-align: center;
}
.edit-newsletter .edit-num { color: var(--accent-orange); margin-bottom: 20px; }
.edit-newsletter h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    font-weight: 800;
    margin: 0 0 16px;
    color: #fff;
}
.edit-newsletter p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 1.05rem;
    line-height: 1.55;
    margin: 0 0 32px;
}
.edit-newsletter-form {
    display: flex;
    gap: 8px;
    max-width: 460px;
    margin: 0 auto;
    flex-wrap: wrap;
}
.edit-newsletter-form input {
    flex: 1;
    min-width: 220px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    transition: border-color 0.2s;
}
.edit-newsletter-form input:focus { outline: none; border-color: var(--accent-orange); background: rgba(255, 255, 255, 0.06); }
.edit-newsletter-form button {
    padding: 14px 24px;
    background: var(--accent-orange);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-family: inherit;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}
.edit-newsletter-form button:hover { background: #ff6b3b; transform: translateY(-1px); }
.edit-newsletter-form button[disabled] { opacity: 0.6; cursor: not-allowed; transform: none; }
.edit-newsletter-feedback {
    margin-top: 14px;
    font-size: 0.88rem;
}
.edit-newsletter-feedback.is-success { color: #6ee7b7; }
.edit-newsletter-feedback.is-error { color: #fca5a5; }

/* ==========================================================
   TAGS strip
   ========================================================== */
.edit-tags-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    padding: 20px 24px 48px;
}
.edit-tag {
    padding: 6px 14px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.78rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}
.edit-tag:hover {
    color: var(--accent-orange);
    border-color: var(--accent-orange);
    background: rgba(255, 87, 34, 0.06);
}
