/* ============================================================
   InsPyration.fr — Main Stylesheet
   Inspired by python.org design language
   ============================================================ */

/* ----- Custom Properties (python.org palette) -------------- */
:root {
    --color-blue: #3776ab;
    --color-blue-dark: #1e415e;
    --color-blue-medium: #2b5b84;
    --color-yellow: #ffd343;
    --color-yellow-hover: #f0c030;
    --color-default: #444;
    --color-white: #fff;
    --color-grey-lightest: #e6e8ea;
    --color-grey-lighter: #caccce;
    --color-grey: #666;
    --color-grey-dark: #333;
    --font-sans: "Source Sans 3", "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --radius: 6px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.12);
    --max-width: 1140px;
    --transition: 0.25s ease;
}

/* ----- Reset / Normalize ----------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-default);
    background-color: var(--color-white);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

img, svg {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: var(--color-blue);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--color-blue-dark);
}

ul, ol {
    list-style: none;
}

h1, h2, h3, h4 {
    line-height: 1.3;
    color: var(--color-grey-dark);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; margin-bottom: 1rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }

p {
    margin-bottom: 1rem;
}

p:last-child {
    margin-bottom: 0;
}

/* ----- Layout ---------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin-inline: auto;
    padding-inline: 1.5rem;
}

.content-readable {
    max-width: 800px;
    margin-inline: auto;
}

main {
    flex: 1;
}

/* ----- Ecosystem Banner ------------------------------------ */
.ecosystem-banner {
    background-color: var(--color-blue-dark);
    padding: 0.35rem 0;
    font-size: 0.8rem;
}

.ecosystem-inner {
    display: flex;
    justify-content: center;
}

.ecosystem-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.ecosystem-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition);
    white-space: nowrap;
}

.ecosystem-links a:hover {
    color: var(--color-white);
}

.ecosystem-links a.ecosystem-current {
    color: var(--color-yellow);
    font-weight: 600;
}

.ecosystem-banner {
    border-bottom: 2px solid var(--color-yellow);
}

.ecosystem-active {
    position: relative;
}

/* Yellow line above the active item */
.ecosystem-active::before {
    content: "";
    position: absolute;
    top: -0.35rem;
    left: 0;
    right: 0;
    height: 4px;
    background-color: var(--color-yellow);
}

/* Downward-pointing arrow below the line */
.ecosystem-active::after {
    content: "";
    position: absolute;
    top: calc(-0.35rem + 4px);
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid var(--color-yellow);
}

/* ----- Header & Navigation --------------------------------- */
.site-header {
    background: linear-gradient(135deg, var(--color-blue-dark) 0%, var(--color-blue-medium) 100%);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 60px;
    width: auto;
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
}

.lang-link {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    padding: 0.15rem 0.3rem;
    border-radius: 3px;
    transition: color var(--transition), background-color var(--transition);
}

.lang-link:hover {
    color: var(--color-white);
}

.lang-link.lang-active {
    color: var(--color-blue-dark);
    background-color: var(--color-yellow);
}

.lang-sep {
    color: rgba(255, 255, 255, 0.4);
}

/* Navigation */
.nav-list {
    display: flex;
    gap: 1.75rem;
}

.nav-list a {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.25rem 0;
    border-top: 2px solid transparent;
    border-bottom: 2px solid transparent;
    transition: color var(--transition), border-color var(--transition);
}

.nav-list a:hover {
    color: var(--color-white);
    border-top-color: var(--color-yellow);
    border-bottom-color: var(--color-yellow);
}

.nav-list a.active {
    color: var(--color-white);
    border-bottom-color: var(--color-yellow);
}

/* Hamburger (mobile) */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger,
.hamburger::before,
.hamburger::after {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-white);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
    position: relative;
}

.hamburger::before,
.hamburger::after {
    content: "";
    position: absolute;
    left: 0;
}

.hamburger::before { top: -7px; }
.hamburger::after  { top: 7px; }

/* ----- Hero Section ---------------------------------------- */
.hero {
    background: linear-gradient(135deg, var(--color-blue-medium) 0%, var(--color-blue) 50%, var(--color-blue-dark) 100%);
    color: var(--color-white);
    padding: 6rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-inner {
    position: relative;
    z-index: 2;
}

.hero h1 {
    color: var(--color-white);
    font-size: 2.75rem;
    margin-bottom: 1.25rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    max-width: 680px;
    margin-inline: auto;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
}

/* Floating geometric shapes in hero */
.hero-shapes {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.hero-shape {
    position: absolute;
    border: 2px solid rgba(255, 255, 255, 0.06);
    border-radius: 0;
    animation: float 20s ease-in-out infinite;
}

.hero-shape-1 {
    width: 120px;
    height: 120px;
    top: 10%;
    left: 8%;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    border: none;
    background: rgba(255, 211, 67, 0.06);
    animation-delay: 0s;
}

.hero-shape-2 {
    width: 80px;
    height: 80px;
    top: 60%;
    right: 10%;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    border: none;
    background: rgba(55, 118, 171, 0.08);
    animation-delay: -5s;
}

.hero-shape-3 {
    width: 60px;
    height: 60px;
    bottom: 15%;
    left: 15%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    animation-delay: -10s;
}

.hero-shape-4 {
    width: 100px;
    height: 100px;
    top: 20%;
    right: 20%;
    border-radius: 50%;
    background: rgba(255, 211, 67, 0.04);
    animation-delay: -15s;
    animation-duration: 25s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-15px) rotate(5deg); }
    50% { transform: translateY(10px) rotate(-3deg); }
    75% { transform: translateY(-8px) rotate(2deg); }
}

/* ----- Expertise Cards ------------------------------------- */
.expertise-card {
    display: flex;
    flex-direction: column;
    background-color: var(--color-white);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    transition: box-shadow var(--transition), transform var(--transition);
}

.expertise-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
    color: inherit;
}

.expertise-card-logo {
    padding: 1.5rem 2rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-grey-lightest);
}

.expertise-card-logo img {
    max-height: 80px;
    width: auto;
    object-fit: contain;
}

.expertise-card-body {
    padding: 1.5rem 2rem 2rem;
    flex: 1;
    display: flex;
    align-items: flex-start;
}

.expertise-card-body p {
    color: var(--color-grey);
    line-height: 1.7;
    margin-bottom: 0;
}

/* ----- Service Cards (enhanced) ---------------------------- */
.service-card {
    display: block;
    background-color: var(--color-white);
    border-radius: 12px;
    padding: 0;
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    transition: box-shadow var(--transition), transform var(--transition);
}

.service-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
    color: inherit;
}

.service-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, var(--color-blue-dark) 0%, var(--color-blue-medium) 100%);
}

.service-card-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
}

.service-card-icon svg {
    filter: brightness(0) invert(1);
    opacity: 0.85;
}

.service-card-header h3 {
    color: var(--color-white);
    margin-bottom: 0;
    font-size: 1.15rem;
}

.service-card-summary {
    color: var(--color-grey);
    line-height: 1.7;
    font-size: 0.95rem;
    padding: 1.5rem;
}

/* ----- Graph Timeline (Mentorship) ------------------------- */
.section-intro {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
    color: var(--color-grey);
}

.graph-timeline {
    max-width: 900px;
    margin: 0 auto;
}

.graph-timeline-chart {
    display: flex;
    align-items: stretch;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.graph-axis-y {
    display: flex;
    align-items: center;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-grey);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding-right: 0.25rem;
}

.graph-area {
    flex: 1;
    height: 220px;
    background: var(--color-white);
    border-left: 2px solid var(--color-grey-lighter);
    border-bottom: 2px solid var(--color-grey-lighter);
    border-radius: 0 var(--radius) 0 0;
    position: relative;
}

.graph-area svg {
    display: block;
}

.graph-axis-x {
    display: flex;
    align-items: flex-end;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-grey);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding-left: 0.25rem;
    writing-mode: vertical-rl;
}

.graph-timeline-labels {
    display: flex;
    position: relative;
    margin-left: 2rem;
    margin-top: 1rem;
    min-height: 3.5rem;
}

.graph-label {
    position: absolute;
    transform: translateX(-50%);
    text-align: center;
    width: 150px;
}

.graph-label strong {
    display: block;
    font-size: 0.85rem;
    color: var(--color-blue-dark);
    margin-bottom: 0.15rem;
}

.graph-label span {
    display: block;
    font-size: 0.75rem;
    color: var(--color-grey);
    line-height: 1.4;
}

.graph-legend {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
    font-size: 0.9rem;
    color: var(--color-grey);
}

.graph-legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.graph-legend-line {
    display: inline-block;
    width: 28px;
    height: 3px;
    border-radius: 2px;
}

.graph-legend-mentorship {
    background: var(--color-blue);
}

.graph-legend-traditional {
    background: var(--color-grey-lighter);
    background-image: repeating-linear-gradient(
        90deg,
        var(--color-grey-lighter) 0px,
        var(--color-grey-lighter) 6px,
        transparent 6px,
        transparent 10px
    );
}

/* ----- CTA Band -------------------------------------------- */
.cta-band {
    background: var(--color-grey-lightest);
    padding: 4rem 0;
    text-align: center;
}

.cta-band h2 {
    text-align: center;
    color: var(--color-blue-dark);
    margin-bottom: 0.75rem;
}

.cta-band p {
    color: var(--color-grey);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.btn-cta-large {
    font-size: 1.1rem;
    padding: 1rem 2.5rem;
}

/* ----- Scroll Fade-in Animations --------------------------- */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.text-center {
    text-align: center;
}

/* ----- Page Header ----------------------------------------- */
.page-header {
    background: linear-gradient(135deg, var(--color-blue-dark) 0%, var(--color-blue-medium) 100%);
    color: var(--color-white);
    padding: 3.5rem 0;
    text-align: center;
}

.page-header h1 {
    color: var(--color-white);
    margin-bottom: 0;
}

/* Page logo above title */
.page-logo {
    display: block;
    max-height: 120px;
    width: auto;
    margin: 0 auto 1.5rem;
}

/* Section logo replacing section title */
.section-logo {
    display: block;
    max-height: 160px;
    width: auto;
    margin: 0 auto 1.5rem;
}

/* ----- Sections -------------------------------------------- */
.section {
    padding: 4rem 0;
}

.section h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.section-white {
    background-color: var(--color-white);
}

.section-alt {
    background-color: var(--color-grey-lightest);
}

/* ----- Future / SaaS Section ------------------------------- */
.section-future {
    background: linear-gradient(135deg, var(--color-blue-dark) 0%, var(--color-blue-medium) 100%);
    color: var(--color-white);
    padding: 4rem 0;
    text-align: center;
}

.section-future h2 {
    color: var(--color-yellow);
}

.section-future p {
    color: rgba(255, 255, 255, 0.85);
    max-width: 680px;
    margin-inline: auto;
    font-size: 1.1rem;
    line-height: 1.7;
}

/* ----- Card Grid ------------------------------------------- */
.card-grid {
    display: grid;
    gap: 1.5rem;
}

.card-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.card-grid-4 {
    grid-template-columns: repeat(2, 1fr);
}

/* ----- Cards ----------------------------------------------- */
.card {
    background-color: var(--color-white);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition), transform var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.card h3 {
    color: var(--color-blue-dark);
}

.card p {
    color: var(--color-grey);
    line-height: 1.7;
}

.card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.card-link:hover {
    color: inherit;
}

/* ----- Feature List ---------------------------------------- */
.feature-list {
    margin: 1rem 0 1.5rem 1.5rem;
    list-style: disc;
}

.feature-list li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
    color: var(--color-default);
}

/* ----- Buttons --------------------------------------------- */
.btn {
    display: inline-block;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.75rem 2rem;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: background-color var(--transition), transform var(--transition);
}

.btn-cta {
    background-color: var(--color-yellow);
    color: var(--color-grey-dark);
}

.btn-cta:hover {
    background-color: var(--color-yellow-hover);
    color: var(--color-grey-dark);
    transform: translateY(-1px);
}

/* ----- Contact Page ---------------------------------------- */
.contact-details {
    margin-bottom: 2.5rem;
}

.contact-email {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.contact-email a {
    color: var(--color-blue);
    font-weight: 700;
}

.contact-address {
    color: var(--color-grey);
    font-size: 1.05rem;
}

.contact-placeholder {
    background-color: var(--color-grey-lightest);
    border: 2px dashed var(--color-grey-lighter);
    border-radius: var(--radius);
    padding: 3rem 2rem;
    text-align: center;
    color: var(--color-grey);
    font-size: 1.05rem;
}

.contact-placeholder a {
    font-weight: 600;
}

/* ----- Legal Page ------------------------------------------ */
.legal {
    background-color: var(--color-white);
    border-radius: 6px;
    padding: 2rem 2.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

.legal h2 {
    font-size: 1.3rem;
    color: var(--color-blue-dark);
    margin-top: 1.5rem;
    margin-bottom: 0.6rem;
}

.legal h2:first-child {
    margin-top: 0;
}

.legal p {
    margin-bottom: 0.6rem;
}

.legal blockquote {
    margin: 0.5rem 0 1.5rem;
    padding: 1rem 1.5rem;
    background: var(--color-grey-lightest);
    border-left: 4px solid var(--color-blue);
    border-radius: 0 4px 4px 0;
}

.legal blockquote a {
    color: var(--color-blue);
    text-decoration: underline;
}

.legal blockquote a:hover {
    color: var(--color-blue-dark);
}

/* ----- CGV Content ----------------------------------------- */
.cgv-content h2 {
    text-align: left;
    font-size: 1.3rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: var(--color-blue-dark);
}

.cgv-content h2:first-child {
    margin-top: 0;
}

.cgv-content p {
    text-align: justify;
    line-height: 1.8;
}

/* ----- Footer ---------------------------------------------- */
.site-footer {
    background-color: var(--color-blue-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.9rem;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.85);
}

.site-footer a:hover {
    color: var(--color-yellow);
}

/* ----- Responsive ------------------------------------------ */
@media (max-width: 1024px) {
    .card-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    h1 { font-size: 1.85rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }

    .hero { padding: 3.5rem 0; }
    .hero h1 { font-size: 2rem; }
    .hero-subtitle { font-size: 1.05rem; }

    .section { padding: 2.5rem 0; }

    .card-grid-3,
    .card-grid-4 {
        grid-template-columns: 1fr;
    }

    .graph-timeline-labels {
        display: none;
    }

    .graph-area {
        height: 180px;
    }

    .graph-axis-y,
    .graph-axis-x {
        font-size: 0.7rem;
    }

    .service-card-header h3 {
        font-size: 1rem;
    }

    .cta-band { padding: 3rem 0; }

    /* Ecosystem banner */
    .ecosystem-links {
        gap: 0.75rem;
        font-size: 0.75rem;
    }

    /* Mobile nav */
    .nav-toggle {
        display: block;
    }

    .main-nav {
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, var(--color-blue-dark) 0%, var(--color-blue-medium) 100%);
        box-shadow: var(--shadow-md);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease;
    }

    .main-nav.open {
        max-height: 400px;
    }

    .nav-list {
        flex-direction: column;
        gap: 0;
        padding: 0.5rem 1.5rem;
    }

    .nav-list li a {
        display: block;
        padding: 0.75rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-list li:last-child a {
        border-bottom: none;
    }

    /* Legal page responsive */
    .legal {
        padding: 1.2rem 1.5rem;
    }

    .contact-placeholder {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .header-inner {
        height: 56px;
    }

    .main-nav {
        top: 56px;
    }

    .logo-img {
        height: 16px;
    }

    .ecosystem-banner {
        display: none;
    }

    .legal {
        padding: 1rem;
    }

    .legal blockquote {
        padding: 0.75rem 1rem;
    }

    .legal-table td {
        padding-top: 0;
        border-bottom: none;
    }
}
