/*
 * Ecosion — chrome partagé (header + footer).
 *
 * Réplique exacte du header (index.html ~ligne 877) et du footer (~ligne 2885)
 * de la page d'accueil, qui fait foi pour toutes les pages du site.
 * Toute évolution du menu ou du footer doit être reportée ici (et dans index.html).
 *
 * Classes préfixées sc-* pour éviter tout conflit avec blog.css / services.css.
 */

.sc-header *,
.sc-footer * {
    box-sizing: border-box;
}

/* ---------- Header ---------- */

.sc-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 50;
    font-family: 'Outfit', sans-serif;
    line-height: 1.5;
    background: rgba(5, 6, 8, 0.9);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    transition: all 0.3s;
}

.sc-nav-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

@media (min-width: 1024px) {
    .sc-nav-inner {
        padding: 0 3rem;
    }
}

.sc-nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 5rem;
}

.sc-brand {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.sc-brand-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    text-decoration: none;
}

.sc-logo {
    display: block;
    height: 3rem;
    width: auto;
    transition: transform 0.3s;
}

.sc-brand-link:hover .sc-logo {
    transform: scale(1.1);
}

.sc-links {
    display: none;
    align-items: center;
    gap: 4rem;
}

@media (min-width: 1024px) {
    .sc-links {
        display: flex;
    }
}

.sc-link {
    position: relative;
    font-size: 0.75rem;
    line-height: 1rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s;
}

.sc-link:hover {
    color: #fff;
}

.sc-link:hover .sc-underline {
    width: 100%;
}

/* ---------- Onglet Services + mégamenu ---------- */

.sc-tab {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.sc-tab > .sc-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.sc-chevron {
    font-size: 15px;
    line-height: 1;
    color: #00f0ff;
}

.sc-mega-wrap {
    position: fixed;
    top: 5rem;
    left: 50%;
    z-index: 50;
    transform: translateX(-50%);
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s, visibility 0.2s;
}

.sc-mega-wrap.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

@media (max-width: 1023px) {
    .sc-mega-wrap {
        display: none;
    }
}

.sc-mega {
    width: 920px;
    max-width: calc(100vw - 2rem);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    background: #050608;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
}

.sc-mega-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
}

.sc-mega-list {
    padding: 2rem;
}

.sc-mega-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.sc-mega-eyebrow {
    font-size: 10px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: #64748b;
}

.sc-mega-all {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding-bottom: 0.125rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none;
    transition: color 0.3s;
}

.sc-mega-all:hover {
    color: #00f0ff;
}

.sc-mega-all .material-symbols-outlined {
    font-size: 14px;
}

.sc-mega-row {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    margin-top: 0.25rem;
    border-radius: 1rem;
    text-decoration: none;
    transition: background-color 0.3s;
}

.sc-mega-row:first-of-type {
    margin-top: 0;
}

.sc-mega-row:hover,
.sc-mega-row:focus-visible {
    background: rgba(255, 255, 255, 0.04);
}

.sc-mega-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid;
    border-radius: 0.75rem;
    transition: transform 0.3s;
}

.sc-mega-row:hover .sc-mega-icon {
    transform: scale(1.05);
}

.sc-mega-icon .material-symbols-outlined {
    font-size: 22px;
}

.sc-mega-icon.is-cyan {
    color: #00f0ff;
    background: rgba(0, 240, 255, 0.08);
    border-color: rgba(0, 240, 255, 0.25);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.12);
}

.sc-mega-icon.is-magenta {
    color: #ff00ff;
    background: rgba(255, 0, 255, 0.08);
    border-color: rgba(255, 0, 255, 0.25);
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.12);
}

.sc-mega-icon.is-violet {
    color: #7000ff;
    background: rgba(112, 0, 255, 0.1);
    border-color: rgba(112, 0, 255, 0.3);
    box-shadow: 0 0 15px rgba(112, 0, 255, 0.15);
}

.sc-mega-icon.is-purple {
    color: #bc13fe;
    background: rgba(188, 19, 254, 0.1);
    border-color: rgba(188, 19, 254, 0.3);
    box-shadow: 0 0 15px rgba(188, 19, 254, 0.15);
}

.sc-mega-title {
    display: block;
    color: #fff;
    font-family: 'Baumans', system-ui, sans-serif;
    font-size: 1rem;
    line-height: 1.25;
    letter-spacing: 0.025em;
    transition: color 0.3s;
}

.sc-mega-row.is-cyan:hover .sc-mega-title,
.sc-mega-row.is-cyan:focus-visible .sc-mega-title {
    color: #00f0ff;
}

.sc-mega-row.is-magenta:hover .sc-mega-title,
.sc-mega-row.is-magenta:focus-visible .sc-mega-title {
    color: #ff00ff;
}

.sc-mega-row.is-violet:hover .sc-mega-title,
.sc-mega-row.is-violet:focus-visible .sc-mega-title {
    color: #7000ff;
}

.sc-mega-row.is-purple:hover .sc-mega-title,
.sc-mega-row.is-purple:focus-visible .sc-mega-title {
    color: #bc13fe;
}

.sc-mega-desc {
    display: block;
    margin-top: 0.125rem;
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 300;
    line-height: 1.625;
}

.sc-mega-visuals {
    position: relative;
    min-height: 420px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
    border-left: 1px solid rgba(255, 255, 255, 0.05);
}

.sc-mega-visual {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.3s;
}

.sc-mega-visual.is-on {
    opacity: 1;
}

.sc-mega-visual img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sc-mega-visual::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(5, 6, 8, 0.92), rgba(5, 6, 8, 0) 45%);
}

.sc-mega-caption {
    position: absolute;
    right: 1.25rem;
    bottom: 1rem;
    left: 1.25rem;
    z-index: 1;
    color: #cbd5e1;
    font-size: 10px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    text-transform: uppercase;
    letter-spacing: 0.25em;
}

.sc-mega-default {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sc-mega-default img {
    position: static;
    width: 100%;
    height: 50%;
    object-fit: cover;
}

.sc-underline {
    position: absolute;
    left: 0;
    bottom: -0.5rem;
    height: 0.125rem;
    width: 0;
    transition: width 0.3s;
}

.sc-underline.is-cyan {
    background: #00f0ff;
}

.sc-underline.is-magenta {
    background: #ff00ff;
}

.sc-cta-slot {
    display: none;
}

@media (min-width: 1024px) {
    .sc-cta-slot {
        display: flex;
        align-items: center;
    }
}

.sc-burger-slot {
    display: flex;
    align-items: center;
}

@media (min-width: 1024px) {
    .sc-burger-slot {
        display: none;
    }
}

.sc-burger {
    padding: 0.5rem;
    color: #9ca3af;
    background: none;
    border: 0;
    cursor: pointer;
}

.sc-burger:hover {
    color: #fff;
}

.sc-burger i {
    font-size: 1.25rem;
}

.sc-mobile {
    display: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(5, 6, 8, 0.95);
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    max-height: calc(100dvh - 5rem);
    overflow-y: auto;
}

.sc-mobile.is-open {
    display: block;
}

.sc-mobile-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    flex-direction: column;
}

.sc-mobile-inner a {
    padding: 0.875rem 0;
    font-size: 0.875rem;
    line-height: 1.25;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #cbd5e1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    text-decoration: none;
}

.sc-mobile-inner a:hover {
    color: #fff;
}

/* ---------- Capsule néon (réplique de .btn-neon-capsule) ---------- */

.sc-capsule {
    position: relative;
    z-index: 1;
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 9999px;
    background: #000;
    color: #fff;
    font-size: 0.75rem;
    line-height: 1rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-decoration: none;
    cursor: pointer;
}

.sc-capsule::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    z-index: -1;
    border-radius: 9999px;
    background: linear-gradient(90deg, #00f0ff, #ff00ff, #00f0ff);
    background-size: 200%;
    animation: sc-gradient-move 3s linear infinite;
}

.sc-capsule::after {
    content: '';
    position: absolute;
    inset: 2px;
    z-index: -1;
    border-radius: 9999px;
    background: #050608;
}

.sc-capsule:hover::before {
    filter: blur(5px);
}

@keyframes sc-gradient-move {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 200% 50%;
    }
}

.sc-cta {
    transition: transform 0.3s;
}

.sc-cta:hover {
    transform: scale(1.05);
}

.sc-mobile-cta {
    display: block;
    width: 100%;
    margin-top: 1.5rem;
    padding: 1rem 1.5rem;
    border-bottom: 0;
    text-align: center;
}

/* ---------- Footer ---------- */

.sc-footer {
    position: relative;
    overflow: hidden;
    background: #030304;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 5rem 0;
    color: #94a3b8;
    font-family: 'Outfit', sans-serif;
    font-size: 0.875rem;
    line-height: 1.5;
}

.sc-footer-noise {
    position: absolute;
    inset: 0;
    background-image: url('https://grainy-gradients.vercel.app/noise.svg');
    opacity: 0.05;
    pointer-events: none;
    mix-blend-mode: overlay;
}

.sc-footer-glow {
    position: absolute;
    bottom: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 1000px;
    height: 500px;
    background: rgba(0, 240, 255, 0.05);
    filter: blur(150px);
    border-radius: 9999px;
    pointer-events: none;
}

.sc-footer-giant-wrap {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    pointer-events: none;
    user-select: none;
    overflow: hidden;
    opacity: 0.1;
}

.sc-footer-giant {
    font-family: 'Baumans', system-ui, sans-serif;
    font-size: 25vw;
    font-weight: 900;
    line-height: 0.75;
    letter-spacing: -0.05em;
    transform: translateY(10%);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.sc-footer-inner {
    position: relative;
    z-index: 10;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .sc-footer-inner {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .sc-footer-inner {
        padding: 0 2rem;
    }
}

.sc-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

@media (min-width: 768px) {
    .sc-grid {
        grid-template-columns: repeat(12, minmax(0, 1fr));
    }

    .sc-col-brand {
        grid-column: span 4 / span 4;
    }

    .sc-col-nav {
        grid-column: 6 / span 2;
    }

    .sc-col-services {
        grid-column: span 3 / span 3;
    }

    .sc-col-legal {
        grid-column: span 3 / span 3;
    }
}

.sc-col {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sc-footer-logo {
    display: inline-block;
    height: 2rem;
    width: auto;
}

.sc-tagline {
    max-width: 28rem;
    margin: 0;
    color: #94a3b8;
    font-size: 1.125rem;
    font-weight: 300;
    line-height: 1.625;
}

.sc-social {
    display: flex;
    gap: 1rem;
    padding-top: 1rem;
}

.sc-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.3s;
}

.sc-social a:hover {
    color: #00f0ff;
    border-color: rgba(0, 240, 255, 0.5);
    background: rgba(0, 240, 255, 0.1);
}

.sc-social i {
    font-size: 1.125rem;
    transition: transform 0.3s;
}

.sc-social a:hover i {
    transform: scale(1.1);
}

.sc-col h4 {
    margin: 0;
    color: #fff;
    font-family: 'Baumans', system-ui, sans-serif;
    font-weight: 700;
    font-size: 0.75rem;
    line-height: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.sc-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    line-height: 1.5rem;
}

.sc-list a {
    color: #94a3b8;
    font-size: 0.875rem;
    text-decoration: none;
    transition: color 0.3s;
}

.sc-list a:hover {
    color: #00f0ff;
}

.sc-bottom {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

@media (min-width: 768px) {
    .sc-bottom {
        flex-direction: row;
        text-align: left;
    }
}

.sc-copy {
    margin: 0;
    color: #475569;
    font-size: 0.75rem;
    line-height: 1rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.sc-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #64748b;
    font-size: 0.75rem;
    line-height: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.sc-status .dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 9999px;
    background: #22c55e;
    animation: sc-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes sc-pulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* ---------- Accessibilité (alignée sur l'accueil) ---------- */

.sc-header a:focus-visible,
.sc-header button:focus-visible,
.sc-footer a:focus-visible {
    outline: 2px solid #7000ff;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {

    .sc-header *,
    .sc-footer * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
