*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    text-decoration: none;
    list-style: none;
    scroll-behavior: smooth;
}

:root{
    --text-color: #e0e0e0;
    --bg-color: #0a0a0a ;
    --second-bg-color: #22282f;
    --third-bg-color: #1a1e23;
    --main-color: #4a9eff ;
    --other-color: #c3cad5;
    --card-bg: #22282f;

    --h1-font: 4.5rem;
    --h2-font: 2.9rem;
    --p-font: 1rem;
}

body {
    color: var(--text-color);
    background: var(--bg-color);
}

/* === HEADER === */
header{
    position: fixed;
    width: 100%;
    top: 0;
    right: 0;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 40px 16%;
    background: black;
    backdrop-filter: blur(5px);
    border-bottom: 1px solid var(--main-color);
    transition: all .50s ease;
}

header.sticky{
    background: black;
    backdrop-filter: blur(10px);
    box-shadow: 0 .1rem 1rem rgba(0, 0,0, .2);
    padding: 16px 16%;
    border-bottom: 1px solid var(--main-color);
}

.logo{
    font-size: 36px;
    color: var(--text-color);
    font-weight: 600;
}

span{
    color: var(--main-color);
}

.navlist{
    display: flex;
}

.navlist a{
    font-size: var(--p-font);
    font-weight: 500;
    color: var(--other-color);
    margin-left: 40px;
    transition: all .50s ease;
}

.navlist a:hover{
    color: var(--text-color);
    text-shadow: 3px 3px 20px var(--main-color), -2px 1px 30px var(--text-color);
}

#menu-icon {
    font-size: 35px;
    z-index: 10001;
    cursor: pointer;
    display: none;
}

/* === BOUTONS === */
.h-btn {
    display: inline-block;
    padding: 11px 26px;
    background: transparent;
    color: var(--main-color);
    border: 2px solid var(--main-color);
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    transition: all .50s ease;
}

.h-btn:hover{
    background: var(--main-color);
    color: var(--bg-color);
    box-shadow: 0 0 20px var(--main-color);
    transform: scale(1.1);
}

.btn{
    display: inline-block;
    padding: 11px 26px;
    background: var(--main-color);
    color: var(--bg-color);
    border: 2px solid var(--main-color);
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    transition: all .50s ease;
}

.btn:hover{
    background: transparent;
    color: var(--main-color);
    box-shadow: 0 0 20px var(--main-color);
}

.btn2{
    background: transparent;
    color: var(--main-color);
    border: 2px solid var(--main-color);
    margin-left: 15px;
    transition: all .50s ease;
}

.btn2:hover{
    background: var(--main-color);
    color: var(--bg-color);
}

/* === SECTIONS GÉNÉRALES === */
section{
    padding: 50px 16% 50px;
    scroll-margin-top: 100px;
}

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

.center-text h2{
    font-size: var(--h2-font);
}

.services {
        background: var(--second-bg-color);
}

/* === HERO PAGE INDEX === */
.hero {
    height: 100vh;
    width: 100%;
    background-position: top right;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 8rem;
}

.main-content h4{
    font-size: 1.6rem;
    margin-top: 4rem;
}

.main-content h1{
    font-size: var(--h1-font);
    font-weight: 900;
    margin: 20px 0px 20px;
    line-height: 1.2;
}

.main-content p{
    font-size: var(--p-font);
    font-weight: 400;
    width: 620px;
    max-width: 100%;
    color: var(--other-color);
    line-height: 30px;
    margin-bottom: 15px;
}

.social{
    margin-bottom: 40px;
}

.social i{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--main-color);
    border-radius: 50%;
    backdrop-filter: brightness(88%);
    font-size: 20px;
    margin-right: 17px;
    box-shadow: 0 0 20px transparent;
    cursor: pointer;
    transition: all .50s ease;
}

.social i:hover{
    transform: scale(1.1);
    box-shadow: 0 0 20px var(--main-color);
}

.about-img img{
    width: 100%;
    height: 530px;
    max-width: 530px;
    border-radius: 50%;
    object-fit: cover;
    border: 7px solid var(--main-color);
    box-shadow: 0 0 10px var(--main-color);
}

/* === PORTFOLIO INDEX === */
.portfolio{
    background: var(--bg-color);
}

.portfolio-content{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    align-items: center;
    gap: 2.3rem;
    margin-top: 4.2rem;
}

.row img{
    height: 200px;
    width: 100%;
    object-fit: cover;
    border-radius: 28px;
    margin-bottom: 1.4rem;
}

.row{
    background: #2d343f;
    border-radius: 28px;
    border: 1px solid transparent;
    box-shadow: 0 0 5px var(--main-color);
    padding: 20px;
    background-blend-mode: multiply;
    transition: all .50s ease;
}

.row:hover{
    border: 1px solid var(--main-color);
    transform: translateY(-5px) scale(1.03);
    cursor: pointer;
}

.main-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.row h5{
    font-size: 20px;
    font-weight: 600;
    color: var(--other-color);
}

.row i{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    font-size: 27px;
    border-radius: 50%;
    color: var(--text-color);
    background: #075fe4;
}

.row h4 {
    font-size: 25px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
    color: var(--main-color);
}

.portfolio-content a {
    display: block;
}

/* === CONTACT FORM === */
.contact {
    background: var(--second-bg-color);
}

.contact-form{
    display: flex;
    text-align: center;
    align-items: center;
    justify-content: center;
    margin-top: 3rem;
}

.contact-form form{
    position: relative;
    width: 600px;
}

form input:not(.send-btn),
form textarea{
    width: 100%;
    padding: 20px;
    border: none;
    outline: none;
    box-shadow: 0 0 5px var(--main-color);
    background: #2d343f;
    color: var(--text-color);
    text-align: center;
    margin-bottom: 20px;
    border-radius: 8px;
}

form input::placeholder,
form textarea::placeholder{
    color: var(--other-color);
    font-size: 15px;
}

form .send-btn {
    display: block;
    margin: 0 auto;
    padding: 11px 26px;
    background: var(--main-color);
    color: var(--bg-color);
    text-align: center;
    border: 2px solid var(--main-color);
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    transition: all .50s ease;
    width: auto;
}

form .send-btn:hover{
    background: transparent;
    color: var(--main-color);
    box-shadow: 0 0 20px var(--main-color);
    cursor: pointer;
}

/* === FOOTER === */
.footer{
    padding: 22px 16%;
    background: var(--bg-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.copyright p{
    font-size: 15px;
    font-weight: 400;
    color: var(--other-color);
}

.scroll-top i{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #075fe4;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    color: var(--text-color);
    font-size: 27px;
}

/* === HERO EDITOR (INDEX) === */
#hero-editor h2 {
    color: #fff;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, #00d4ff, #0099cc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

#hero-editor p {
    color: #c9d1d9;
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

#hero-editor p strong {
    color: #00d4ff;
    font-weight: 600;
}

#hero-editor .tagline {
    color: #00d4ff;
    font-style: italic;
    font-size: 1.1rem;
    font-weight: 500;
    margin-top: 1.5rem;
}

/* === TOAST NOTIFICATIONS === */
.toast {
    position: fixed;
    top: 200px;
    left: 50%;
    transform: translateX(-50%);
    padding: 20px 30px;
    border-radius: 12px;
    color: white !important;
    font-weight: 600;
    font-size: 18px;
    z-index: 10000;
    opacity: 0;
    transition: all 0.3s ease;
    min-width: 300px;
    text-align: center;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast-success {
    background: #000000 !important;
    color: #ffffff !important;
    border: 2px solid #00ff88;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
}

.toast-error {
    background: #000000 !important;
    color: #ffffff !important;
    border: 2px solid #ff4444;
    box-shadow: 0 0 20px rgba(255, 68, 68, 0.3);
}

.toast-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.toast button {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
}

/* ============================= */
/* === PAGE MARKETING RETAIL === */
/* ============================= */

/* === HERO ANALYSIS === */
.hero-analysis {
    padding: 150px 16% 60px;
    background: var(--third-bg-color);
}

.analysis-container {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.analysis-header h1 {
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.analysis-header h2 {
    font-size: 1.8rem;
    color: var(--text-color);
    margin-bottom: 2rem;
    line-height: 1.3;
}

.highlight-number {
    color: var(--main-color);
    font-weight: bold;
    font-size: 2.2rem;
}

.context-box {
    background: #000000;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--main-color);
    max-width: 800px;
    margin: 0 auto;
}

.context-box p {
    color: var(--other-color);
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* === SECTION RAPPORT === */
.report-section {
    padding-top: 40px !important;
    padding-bottom: 100px;
    min-height: auto;
    position: relative;
    z-index: 1;
}

.report-container {
    max-width: 1000px;
    margin: 0 auto;
}

.report-title {
    text-align: center;
    margin-bottom: 3rem;
}

.report-title h2 {
    font-size: var(--h2-font);
    color: var(--text-color);
}

.report-title span {
    color: var(--main-color);
}

/* === LIEN DATASET === */
.dataset-link {
    text-align: center;
    margin-top: 0.5rem;
}

.dataset-link a:visited,
.dataset-link a:hover,
.dataset-link a:active {
    color: #0081B8 !important;
}

.dataset-link .resource-link {
    color: var(--main-color);
    text-decoration: underline;
    font-style: italic;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.dataset-link .resource-link:hover {
    color: var(--main-color);
    text-decoration: underline;
    text-shadow: 0 0 8px var(--main-color);
}

.dataset-link .resource-link:visited {
    color: var(--main-color) !important;
}

/* === CHAPITRES EXPANDABLES === */
.chapter-container {
    margin-bottom: 1rem;
}

.chapter-box {
    background: #22282f;
    border-left: 4px solid var(--main-color);
    padding: 1rem;
    cursor: pointer;
    transition: all .3s ease;
    border-radius: 8px;
}

.chapter-box:hover {
    background: var(--second-bg-color);
    border: 1px solid var(--main-color);
    box-shadow: 0 0 20px rgba(0, 129, 184, 0.3);
    transform: translateY(-2px);
}

.chapter-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chapter-left {
    display: flex;
    align-items: center;
}

.chapter-number {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: transparent;
    border: 2px solid var(--main-color);
    color: var(--main-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 1.5rem;
}

.chapter-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color);
}

.expand-icon {
    color: var(--main-color);
    font-size: 1.2rem;
    transition: transform .3s ease;
}

.expand-icon.expanded {
    transform: rotate(90deg);
}

/* === CONTENU ARTICLES EXPANDÉS === */
.article-content {
    background: #000000;
    border-left: 4px solid var(--main-color);
    padding: 2rem;
    margin-top: 0.5rem;
    margin-left: 100px;
    border-radius: 0 8px 8px 0;
    display: none;
}

.article-content.show {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 1000px;
    }
}

.article-content h3 {
    color: var(--main-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.article-content h4 {
    color: var(--text-color);
    margin: 1.5rem 0 0.8rem 0;
    font-size: 1.1rem;
}

.article-content p {
    color: var(--other-color);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.article-content ul,
.article-content ol {
    color: var(--other-color);
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.article-content li {
    color: var(--other-color);
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.article-content code {
    background: var(--bg-color);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: var(--main-color);
}

.article-content pre {
    background: var(--bg-color);
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1rem 0;
}

.highlight {
    color: var(--main-color);
    font-weight: 600;
}

/* === MÉTRIQUES STYLÉES === */
.metric {
    background: var(--bg-color);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--main-color);
    margin: 1rem 0;
    text-align: center;
}

.metric-value {
    font-size: 2rem;
    font-weight: bold;
    color: var(--main-color);
}

.metric-label {
    color: var(--other-color);
    font-size: 0.9rem;
}

/* === EXECUTIVE SUMMARY === */
.opportunity-item {
    display: flex !important;
    align-items: center !important;
    gap: 1rem !important;
    margin-bottom: 2rem !important;
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
}

.opportunity-number {
    width: 2rem;
    height: 2rem;
    background: var(--main-color);
    color: var(--bg-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.opportunity-content h4 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.opportunity-content p {
    color: var(--other-color);
    line-height: 1.6;
}

.impact-summary {
    background: var(--second-bg-color);
    padding: 2rem;
    border-radius: 12px;
    border: 2px solid var(--main-color);
    text-align: center;
    margin-top: 2rem;
}

.impact-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.impact-number {
    font-size: 3rem;
    font-weight: bold;
    color: var(--main-color);
}

.impact-label {
    font-size: 1.2rem;
    color: var(--text-color);
}

.impact-details p {
    color: var(--other-color);
    margin-bottom: 0.5rem;
}

/* === MEDIA QUERIES === */
@media (max-width: 1700px) {
    header { padding: 20px 8%; }
    header.sticky { padding: 14px 8%; }
    section { padding: 90px 8% 80px; }
    .footer { padding: 18px 8%; }
    .logo { font-size: 28px; }
}

@media (max-width: 1380px) {
    header { padding: 20px 5%; }
    header.sticky { padding: 14px 5%; }
    section { padding: 90px 5% 80px; }
    .footer { padding: 18px 5%; }
    .hero { height: 90vh; background-position: center; }
}

@media (max-width: 1240px) {
    :root {
        --h1-font: 4rem;
        --h2-font: 2.2rem;
        --p-font: 15px;
    }
    .about-img img {
        width: 100%;
        height: 400px;
        max-width: 400px;
        border-radius: 50%;
        object-fit: cover;
        margin: 0 auto;
    }
}

/* ===== BREAKPOINT TABLETTE (manquait totalement) ===== */
@media (max-width: 950px) {
    :root { --h1-font: 3.5rem; }

    /* Nav mobile */
    #menu-icon { display: block; }
    .navlist {
        position: absolute;
        top: 100%;
        right: -100%;
        width: 255px;
        min-height: 100vh;
        flex-direction: column;
        background: var(--bg-color);
        transition: all .50s ease;
    }
    .navlist a { display: block; padding: 17px; font-size: 22px; }
    .navlist.active { right: 0; }

    /* Hero : stack vertical */
    .hero {
        flex-direction: column;
        justify-content: center;
        height: auto;
        min-height: 100vh;
        padding-top: 120px;
        padding-bottom: 60px;
        gap: 3rem;
        text-align: center;
    }
    .main-content p { width: 100%; }
    .main-content h4 { margin-top: 0; }
    .about-img { order: -1; }
    .about-img img { height: 260px; max-width: 260px; }
    .social { margin-bottom: 20px; }

    /* Services boxes : stack vertical */
    .services-content .box {
        flex-direction: column !important;
        text-align: center;
        max-width: 100%;
    }
    .services-content .box img {
        width: 160px !important;
        height: 160px !important;
        margin: 0 auto 1rem auto;
    }

    /* Article content : plus de margin-left fixe */
    .article-content { margin-left: 0; }
}

@media (max-width: 680px) {
    :root {
        --h1-font: 3rem;
        --h2-font: 1.9rem;
    }
    .main-content p { width: 100%; }

    /* Contact form : pas de largeur fixe */
    .contact-form form { width: 100%; }

    /* Portfolio : 1 colonne forcée */
    .portfolio-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 470px) {
    :root {
        --h1-font: 2.6rem;
        --h2-font: 1.7rem;
    }
    .about-img img {
        height: 220px;
        max-width: 220px;
    }
    header { padding: 16px 4%; }
    section { padding: 80px 4% 60px; }
    .footer { padding: 16px 4%; flex-direction: column; text-align: center; }
}

/* === RESPONSIVE IFRAMES / APPS NICEGUI === */
@media (max-width: 950px) {
    /* Stack le layout code→résultat en colonne */
    .code-result-pair {
        flex-direction: column;
    }
    .code-block,
    .result-block {
        width: 100%;
    }

    /* Iframes apps interactives */
    .code-result-pair iframe,
    .app-container iframe,
    iframe[src*="portfolio-api"] {
        height: 600px !important;
        width: 100% !important;
    }
}

@media (max-width: 680px) {
    .code-result-pair iframe,
    .app-container iframe,
    iframe[src*="portfolio-api"] {
        height: 480px !important;
    }

    /* L'app highoptic a des tables larges, forcer le scroll horizontal */
    .app-container {
        overflow-x: auto;
    }
}

@media (max-width: 470px) {
    .code-result-pair iframe,
    .app-container iframe,
    iframe[src*="portfolio-api"] {
        height: 380px !important;
    }
}

@media (max-width: 950px) {
    .code-result-pair {
        flex-direction: column; /* Stack vertical, pas de wrap */
    }
    .code-block,
    .result-block {
        width: 100%;
        min-width: 0; /* Évite le débordement */
    }

    .code-result-pair iframe,
    .app-container iframe,
    iframe[src*="portfolio-api"] {
        height: 600px !important;
        width: 100% !important;
    }
}

/* === FORCE EXECUTIVE SUMMARY === */
.opportunity-item {
    background: transparent !important;
    border-radius: 0 !important;
    padding: 1.2rem 0 !important;
    border-bottom: 1px solid rgba(0, 129, 184, 0.2) !important;
}

/* Titres de section VULGARISATION / ACADÉMIQUE */
.section-title {
    text-align: center;
    color: var(--main-color) !important;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 2rem 0 1.5rem 0;
    padding: 0.8rem;
    background: rgba(0, 129, 184, 0.1);
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Divers */
.center-text {
    text-align: center;
}

.center-text h2 {
    font-size: var(--h2-font);
}

.services-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, auto));
    align-items: stretch; /* Change center en stretch */
    gap: 2.3rem;
    margin-top: 4.2rem;
}


.box {
    padding: 20px 20px 20px;
    background: #2d343f;
    border-radius: 28px;
    border: 1px solid transparent;
    box-shadow: 0 0 5px var(--main-color);
    transition: all .50s ease;
    cursor: pointer;
}

.box img {
    margin-bottom: 20px;
}

.box h3 {
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 10px;
}

.box p {
    font-size: var(--p-font);
    font-weight: 400;
    color: var(--other-color);
    line-height: 30px;
    margin-bottom: 20px;
}

.box a {
    display: inline-block;
    font-size: 22px;
    line-height: 1.273em;
    font-weight: 700;
    padding: 7px 0;
    color: var(--text-color);
    border-bottom: 2px solid #5d6c83;
    transition: all .50s ease;
    transform: scale(1);
}

.box a:hover {
    border-bottom: 2px solid var(--main-color);
    transform: scale(1.15); /* 15% plus grand */
    text-shadow: 0 0 10px var(--main-color); /* Glow en bonus */
}

.box i {
    vertical-align: middle;
    font-size: 25px;
    color: var(--main-color);
    margin-left: 5px;
}

.box a:hover {
    border-bottom: 2px solid var(--main-color);
}

.box:hover {
    border: 1px solid var(--main-color);
    transform: translateY(-5px) scale(1.03);
}

.box a.btn3 {
    padding: 11px 26px !important;
    border-radius: 8px !important;
    font-size: 15px !important;
    border-bottom: none !important;
    background: var(--third-bg-color) !important;
    color: var(--main-color) !important;
    border: 2px solid var(--main-color) !important;
}

.app-container iframe {
    padding-top: 2rem; /* Espace en haut pour centrer le titre */
    box-sizing: border-box;
}

/* Flèche personnalisée au DÉBUT pour les balises <summary> */
.custom-arrow {
    background: var(--main-color);
    color: black;
    padding: 0.75rem 1rem;
    padding-left: 2.5rem; /* Ajuste l'espace pour la flèche */
    cursor: pointer;
    font-weight: 600;
    display: block;
    position: relative;
}

.custom-arrow::before {
    content: '▶'; /* Caractère de la flèche fermée */
    position: absolute;
    left: 1rem; /* Positionne la flèche à gauche */
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    transition: transform 0.3s ease;
}

details[open] .custom-arrow::before {
    content: '▼'; /* Caractère de la flèche ouverte */
}

details[open] .custom-arrow {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

/* Style pour l'encadré complet de la balise <details> */
.library-box {
    border: 1px solid var(--main-color);
    border-radius: 8px;
    margin: 1rem 0;
    background: var(--second-bg-color);
    width:60%
}

/* Tableaux standardisés */
.data-table {
    border-collapse: collapse;
    margin: 1rem 0;
    border: 1px solid #ddd;
    width: auto; /* ou max-width: 600px si tu veux limiter */
}

.data-table th {
    background: var(--main-color);
    color: black;
    padding: 0.5rem;
    text-align: left;
    border-right: 1px solid black;
    border-bottom: 1px solid #ddd;
    font-weight: 600;
}

.data-table th:last-child {
    border-right: none; /* Pas de bordure droite sur la dernière colonne */
}

.data-table td {
    padding: 0.5rem;
    border-right: 1px solid #eee;
    border-bottom: 1px solid #eee;
    text-align: center;
}

.data-table td:last-child {
    border-right: none;
}

.data-table tr:last-child td {
    border-bottom: none;
}

/* Tableaux style 2 - plus détaillé */
.data-table-2 {
    border-collapse: collapse;
    margin: 1rem 0;
    border: 1px solid #ddd;

    width: auto;
}

.data-table-2 th {
    background: #0081B8;
    color: black;
    padding: 0.5rem;
    text-align: center;
    border-right: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
}

.data-table-2 th:last-child {
    border-right: none;
}

.data-table-2 td {
    padding: 0.5rem;
    border-right: 1px solid #eee;
}

.data-table-2 td:last-child {
    border-right: none;
}

.data-table-2 tr {
    border-bottom: 1px solid #eee;
}

.data-table-2 tr:last-child {
    border-bottom: none;
}

/* Exercices - style simple avec bordure gauche */
.exercises-box {
    border-left: 4px solid var(--main-color);
    padding-left: 2rem;
    margin: 1.5rem 0 1.5rem 7rem;
    line-height: 1.8;
}

.exercises-box .exercise {
    margin-bottom: 1.2rem;
}

.exercises-box .exercise-title {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color) !important; /* Force la couleur normale */
}

.exercises-box .exercise-title strong {
    color: var(--text-color) !important; /* Force aussi le <strong> */
}

.exercises-box .subtasks {
    margin-left: 2rem;
    list-style: none;
    padding: 0;
}

.exercises-box .subtasks li {
    margin-bottom: 0.3rem;
    color: var(--text-color) !important; /* Force la couleur des sous-tâches */
}

.exercises-box .subtasks li::before {
    content: "• ";
    margin-right: 0.5rem;
}

/* ===============================================
   PRISM.JS - HOLI THEME
   À ajouter dans css/style.css ou créer css/prism-vscode.css
   =============================================== */
/**
 * MIT License
 * Copyright (c) 2021 Ayush Saini
 * Holi Theme for prism.js
 * @author Ayush Saini <@AyushCodes on Twitter>
 *prism-holi-theme.css https://github.com/PrismJS/prism-themes/blob/master/themes/prism-holi-theme.css
 */

code[class*='language-'],
pre[class*='language-'] {
	color: #d6e7ff;
	background: #030314;
	text-shadow: none;
	font-family: Consolas, Monaco, "Andale Mono", "Ubuntu Mono", monospace;
	font-size: 1em;
	line-height: 1.5;
	letter-spacing: .2px;
	white-space: pre;
	word-spacing: normal;
	word-break: normal;
	word-wrap: normal;
	text-align: left;

	-moz-tab-size: 4;
	-o-tab-size: 4;
	tab-size: 4;

	-webkit-hyphens: none;
	-moz-hyphens: none;
	-ms-hyphens: none;
	hyphens: none;
}

pre[class*='language-']::-moz-selection,
pre[class*='language-'] ::-moz-selection,
code[class*='language-']::-moz-selection,
code[class*='language-'] ::-moz-selection,
pre[class*='language-']::selection,
pre[class*='language-'] ::selection,
code[class*='language-']::selection,
code[class*='language-'] ::selection {
	color: inherit;
	background: #1d3b54;
	text-shadow: none;
}

pre[class*='language-'] {
	border: 1px solid #2a4555;
	border-radius: 5px;
	padding: 1.5em 1em;
	margin: 1em 0;
	overflow: auto;
}

:not(pre) > code[class*='language-'] {
	color: #f0f6f6;
	background: #2a4555;
	padding: 0.2em 0.3em;
	border-radius: 0.2em;
	box-decoration-break: clone;
}

.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
	color: #446e69;
}

.token.punctuation {
	color: #d6b007;
}

.token.property,
.token.tag,
.token.boolean,
.token.number,
.token.constant,
.token.symbol,
.token.deleted {
	color: #d6e7ff;
}

.token.selector,
.token.attr-name,
.token.builtin,
.token.inserted {
	color: #e60067;
}

.token.string,
.token.char {
	color: #49c6ec;
}

.token.operator,
.token.entity,
.token.url,
.language-css .token.string,
.style .token.string {
	color: #ec8e01;
	background: transparent;
}

.token.atrule,
.token.attr-value,
.token.keyword {
	color: #0fe468;
}

.token.function,
.token.class-name {
	color: #78f3e9;
}

.token.regex,
.token.important,
.token.variable {
	color: #d6e7ff;
}

.data-link {
    color: var(--main-color);
    text-decoration: none;
    transition: transform 0.2s ease;
    display: inline-block;
    transform-origin: left center;
}

.data-link:hover {
    transform: scale(1.1);
    text-decoration: underline;
}

.markdown-content a {
    color: var(--main-color);
    text-decoration: none;
}

.markdown-content a:hover {
    text-decoration: underline;
}

.bullet-list {
    list-style-type: disc !important;
    padding-left: 2rem !important;
}

.bullet-list li {
    list-style-type: disc !important;
    display: list-item !important;
}

/* Formules mathématiques */
.math-formula {
    text-align: center;
    margin: 1.5rem 0;
    padding: 1rem;
    background: rgba(0, 129, 184, 0.1);
    border-radius: 8px;
}

/* ===== NOUVEAU STYLE À APPLIQUER ===== */
.article-content .h2-with-icon {
    text-align: center;
    color: var(--main-color) !important;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 2rem 0 1.5rem 0;
    padding: 0.8rem;
    background: rgba(0, 129, 184, 0.1);
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: none; /* On s'assure que l'ancienne bordure est bien partie */
}

.header-spacer {
    height: 50px;
}

.services-content .box {
    flex: 1;
    min-height: 280px;
    max-width: 600px;
}



<!---CSS pour le pattern Code → Résultat--->
    /* Sakura Sun Theme pour Prism */
    code[class*='language-'], pre[class*='language-'] {
        color: #00d7ff !important;
        background: #070b11 !important;
    }
    :not(pre) > code[class*='language-'], pre[class*='language-'] {
        color: white !important;
        background: #070b11 !important;
        padding: 0.1em;
        border-radius: 0.3em;
    }
    .token.keyword { color: #f25477 !important; }
    .token.string { color: #ffdcdc !important; }
    .token.function { color: #0078aa !important; }
    .token.comment { color: #ffffff55 !important; font-style: italic; }
    .token.operator { color: #00d7ff !important; }
    .token.punctuation { color: #ffa7a6 !important; }
    .token.number { color: #256d85 !important; }
    .token.builtin { color: #00d7ff !important; }
    .token.class-name { color: #00d7ff !important; }
    .token.constant { color: #ffa7a6 !important; }
    .token.variable { color: #ffa7a6 !important; }

    /* Pattern Code → Résultat */
    .code-result-pair {
        margin: 2rem 0;
        border: 1px solid rgba(0, 129, 184, 0.3);
        border-radius: 12px;
        overflow: hidden;
        background: var(--second-bg-color);
    }

    .code-block {
        background: #070b11;
        border-bottom: 1px solid rgba(0, 129, 184, 0.3);
    }

    .code-block pre {
        margin: 0;
        padding: 1.5rem;
        background: #070b11;
        border-radius: 0;
    }

    .result-block {
        padding: 1.5rem;
        background: var(--bg-color);
        text-align: center;
    }

    .result-block img {
        max-width: 100%;
        border-radius: 8px;
        border: 1px solid var(--main-color);
    }

    .result-placeholder {
        background: var(--second-bg-color);
        padding: 2rem;
        border-radius: 8px;
        border: 2px dashed var(--main-color);
        margin: 1rem 0;
    }

    .result-placeholder h5 {
        color: var(--text-color);
        margin-bottom: 0.5rem;
        font-size: 1.1rem;
    }

    .result-placeholder p {
        color: var(--main-color);
        font-style: italic;
        margin: 0;
    }

    /* Formules LaTeX */
    .math-formula {
        text-align: center;
        margin: 1.5rem 0;
        padding: 1rem;
        background: rgba(0, 129, 184, 0.1);
        border-radius: 8px;
    }

    /* Métriques */
    .metric {
        background: var(--second-bg-color);
        padding: 1rem;
        border-radius: 8px;
        text-align: center;
        border: 1px solid var(--main-color);
    }

    .metric-value {
        font-size: 1.8rem;
        font-weight: 700;
        color: var(--main-color);
        margin-bottom: 0.5rem;
    }

    .metric-label {
        color: var(--text-color);
        font-size: 0.9rem;
    }

    /* Google Sheets embed */
    .sheets-container {
        margin: 1.5rem 0;
        border: 1px solid var(--main-color);
        border-radius: 8px;
        overflow: hidden;
    }

    .sheets-header {
        background: var(--second-bg-color);
        padding: 1rem;
        border-bottom: 1px solid var(--main-color);
    }

    .sheets-header h5 {
        margin: 0;
        color: var(--text-color);
    }

    .sheets-embed {
        width: 100%;
        height: 400px;
        border: none;
    }

    .sheets-links {
        background: var(--bg-color);
        padding: 1rem;
        text-align: center;
        border-top: 1px solid var(--main-color);
    }

    .sheets-links a {
        color: var(--main-color);
        text-decoration: none;
        margin: 0 1rem;
        padding: 0.5rem 1rem;
        border: 1px solid var(--main-color);
        border-radius: 4px;
        transition: all 0.3s ease;
    }

    .sheets-links a:hover {
        background: var(--main-color);
        color: var(--bg-color);
    }

    .lang-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 40px;
}

.lang-switcher .lang-label {
    font-size: 15px;
    font-weight: 600;
    color: var(--main-color);
    transition: color .3s;
}

.lang-switcher .lang-label.inactive {
    color: var(--other-color);
}

.switch-track {
    width: 44px;
    height: 24px;
    background: var(--second-bg-color);
    border: 1px solid var(--main-color);
    border-radius: 5px;
    cursor: pointer;
    position: relative;
}

.switch-thumb {
    width: 18px;
    height: 18px;
    background: var(--main-color);
    border-radius: 3px;
    position: absolute;
    top: 2px;
    left: 3px;
    transition: left .25s cubic-bezier(.4,0,.2,1);
}

.switch-track.en .switch-thumb {
    left: 23px;
}