:root {
    --background-light: #e9edf0;
    --background-dark: #333333;
    --text-light: #333333;
    --text-dark: #f9f9f9;
    --link-light: #0066cc;
    --link-dark: #89b3e7;
    --cta-bg: #0066cc;
    --cta-bg-hover: #0b5cb8;
    --cta-bg-dark: #89b3e7;
    --cta-bg-dark-hover: #6fa3e1;
    --card-bg: #ffffff;
    --card-border: #d5d9dd;
    --shadow-soft: 0 2px 10px rgba(0, 0, 0, 0.1);
}

html { scroll-behavior: smooth; }

body {
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-light);
    background-color: var(--background-light);
    transition: background-color 0.3s ease, color 0.3s ease;
}

a {
    color: var(--text-light);
    text-decoration: underline;
    font-weight: 600;
}

a:hover {
    color: var(--link-light);
}
.card {
    background-color: var(--card-bg) !important;
    border: 1px solid var(--card-border) !important;
    border-radius: 6px !important;
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.tag {
    background-color: #f5f5f5 !important;
    color: var(--text-light) !important;
    border: 1px solid var(--card-border) !important;
    font-weight: 600;
    transition: transform 0.15s ease, background-color 0.2s ease, color 0.2s ease;
}

.tag:hover {
    transform: scale(1.04);
    color: var(--link-light) !important;
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.controls-btn {
    background-color: #ffffff !important;
    color: var(--text-light) !important;
    border-color: var(--card-border) !important;
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.controls-btn:hover { transform: scale(1.05); }

.bg-cream { background-color: var(--background-light) !important; }
.text-ink { color: var(--text-light) !important; }

.text-indigo-600,
.text-indigo-400,
.text-rose-600,
.text-rose-400,
.text-emerald-600,
.text-emerald-300,
.text-violet-600,
.text-violet-300,
.text-sky-700,
.text-rose-700,
.text-indigo-700,
.text-violet-700,
.text-emerald-700 {
    color: var(--link-light) !important;
}

.text-gray-500,
.text-gray-600,
.text-gray-400,
.text-gray-300 {
    color: var(--text-light) !important;
}

.bg-indigo-100,
.bg-violet-100,
.bg-rose-100,
.bg-emerald-100,
.bg-sky-100,
.bg-indigo-50,
.bg-rose-50,
.bg-emerald-50,
.bg-violet-50,
.bg-sky-50 {
    background-color: #f5f5f5 !important;
}

.border-warm,
.border-warm\/60,
.border-indigo-200,
.border-violet-200,
.border-rose-200,
.border-emerald-200,
.border-indigo-500\/30,
.border-violet-500\/30,
.border-rose-500\/30,
.border-emerald-500\/30,
.border-slate-700,
.border-slate-800 {
    border-color: var(--card-border) !important;
}

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

.dark .dark\:bg-slate-950 { background-color: var(--background-dark) !important; }
.dark .dark\:text-gray-100 { color: var(--text-dark) !important; }

.dark .card {
    background-color: #3b3b3b !important;
    border-color: #4a4a4a !important;
}

.dark .tag {
    background-color: #3b3b3b !important;
    border-color: #4a4a4a !important;
    color: var(--text-dark) !important;
}

.dark .controls-btn {
    background-color: #3b3b3b !important;
    color: var(--text-dark) !important;
    border-color: #4a4a4a !important;
}

.dark .text-indigo-600,
.dark .text-indigo-400,
.dark .text-rose-600,
.dark .text-rose-400,
.dark .text-emerald-600,
.dark .text-emerald-300,
.dark .text-violet-600,
.dark .text-violet-300,
.dark .text-sky-700,
.dark .text-rose-700,
.dark .text-indigo-700,
.dark .text-violet-700,
.dark .text-emerald-700 {
    color: var(--link-dark) !important;
}

.dark .text-gray-500,
.dark .text-gray-600,
.dark .text-gray-400,
.dark .text-gray-300 {
    color: var(--text-dark) !important;
}

.dark .bg-indigo-100,
.dark .bg-violet-100,
.dark .bg-rose-100,
.dark .bg-emerald-100,
.dark .bg-sky-100,
.dark .bg-indigo-50,
.dark .bg-rose-50,
.dark .bg-emerald-50,
.dark .bg-violet-50,
.dark .bg-sky-50 {
    background-color: #3b3b3b !important;
}

.hidden { display: none; }

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: var(--background-light);
    box-shadow: var(--shadow-soft);
    transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-btn {
    background-color: transparent;
    border: none;
    cursor: pointer;
    font-size: 2.2em;
    margin: 10px;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-light);
    text-decoration: none;
}

.logo img {
    max-width: 40%;
    height: auto;
    margin-left: 10%;
}

main {
    display: flex;
    justify-content: space-around;
    padding: 20px;
}

.section {
    width: 90%;
    margin-bottom: 20px;
    padding: 20px;
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.section:hover { transform: translateY(-5px); }

.section h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.project-item {
    margin-bottom: 24px;
    padding: 14px;
    border: 1px solid var(--card-border);
    border-radius: 8px;
    background-color: var(--card-bg);
}

.project-item h3 {
    margin: 0 0 8px;
}

.project-preview {
    margin-top: 10px;
}

.project-orano {
    border-left: 5px solid var(--link-light);
}

.project-pilotage {
    margin-top: 14px;
    padding: 12px;
    border: 1px solid var(--card-border);
    border-radius: 8px;
    background-color: #f7f9fb;
}

.project-pilotage h4 {
    margin: 0 0 10px;
    font-size: 20px;
}

.pilotage-block {
    margin-bottom: 12px;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid var(--card-border);
    background-color: var(--card-bg);
}

.pilotage-block:last-child {
    margin-bottom: 0;
}

.pilotage-block h5 {
    margin: 0 0 6px;
    font-size: 17px;
}

.poc-flow {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.poc-step {
    padding: 6px 10px;
    border: 1px solid var(--card-border);
    border-radius: 999px;
    font-weight: 700;
    background-color: #eef3f8;
}

.poc-arrow {
    color: var(--link-light);
    font-weight: 800;
}

.profile,
.contact {
    background-color: #f5f5f5;
    padding: 20px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--card-border);
}

.profile h2,
.contact h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.profile h3 { font-size: 20px; margin-bottom: 10px; }
.status-badge {
    display: inline-block;
    margin: 6px 0 12px;
    padding: 8px 12px;
    border-radius: 999px;
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    font-weight: 700;
    font-size: 14px;
    box-shadow: var(--shadow-soft);
    max-width: 100%;
    text-align: center;
}

.profile li { list-style-type: none; margin-bottom: 8px; }

.skills-list li { margin-bottom: 10px; }
.profile li a { text-decoration: none; color: var(--text-light); font-weight: 700; }

.profile li a:hover { color: var(--link-light); }

.profile-img {
    width: 100%;
    border-radius: 5px;
    margin: 20px auto;
}
.cta-cv {
    display: block;
    margin: 12px auto 16px;
    padding: 12px 16px;
    background-color: var(--cta-bg);
    color: #ffffff !important;
    text-decoration: none !important;
    border-radius: 8px;
    font-weight: 800;
    letter-spacing: 0.2px;
    text-align: center;
    border: 1px solid transparent;
    box-shadow: 0 8px 18px rgba(0, 102, 204, 0.25);
    position: sticky;
    top: 16px;
    z-index: 2;
}

.cta-cv:hover {
    background-color: var(--cta-bg-hover);
}

.contact label { display: block; margin-bottom: 10px; }

.contact input,
.contact textarea {
    width: 90%;
    padding: 10px;
    border: 1px solid #cccccc;
    border-radius: 5px;
    margin-bottom: 10px;
}

.contact textarea {
    max-width: 90%;
    min-width: 90%;
    min-height: 100px;
}

.contact input[type='checkbox'] { width: auto; margin: 10px; }

.contact label[for='cc'] { display: inline; margin-bottom: 10px; }

.contact input[type='submit'] {
    width: auto;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    background-color: var(--link-light);
    color: #ffffff;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact input:focus,
.contact textarea:focus {
    outline: none;
    border-color: var(--link-light);
}

tr {
    display: flex;
    justify-content: space-between;
    align-items: top;
}

td:first-child { width: 30%; }
td:last-child { width: 60%; }

footer {
    text-align: center;
    padding: 20px;
    background-color: var(--background-light);
    box-shadow: var(--shadow-soft);
}

.footer-text { font-size: 16px; }

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

.dark header,
.dark footer {
    background-color: var(--background-dark);
    color: var(--text-dark);
}

.dark .section,
.dark .profile,
.dark .contact {
    background-color: #3b3b3b;
    color: var(--text-dark);
    border-color: #4a4a4a;
}

.dark .project-item {
    background-color: #3b3b3b;
    border-color: #4a4a4a;
}

.dark .status-badge {
    background-color: #3b3b3b;
    border-color: #4a4a4a;
}

.dark .project-pilotage {
    background-color: #343434;
    border-color: #4a4a4a;
}

.dark .pilotage-block {
    background-color: #3b3b3b;
    border-color: #4a4a4a;
}

.dark .poc-step {
    background-color: #2f2f2f;
    border-color: #4a4a4a;
}

.dark .cta-cv {
    background-color: var(--cta-bg-dark);
    color: #0b1a2b !important;
    box-shadow: 0 8px 18px rgba(137, 179, 231, 0.25);
}

.dark .cta-cv:hover {
    background-color: var(--cta-bg-dark-hover);
}

.dark .profile li a,
.dark a { color: var(--link-dark); }

.dark a:hover { color: var(--text-light); }

@media only screen and (max-width: 768px) {
    body { font-size: 14px; }

    header {
        padding: 10px;
        display: flex;
        flex-direction: column;
    }

    header div {
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: center;
    }

    .logo img { max-width: 100%; margin-left: 0; }

    main { flex-direction: column; align-items: center; }

    .section { width: auto; margin: 0; }

    .profile h2 { font-size: 20px; }
    .profile h3 { font-size: 18px; }

    .profile-img { width: 100%; }

    .poc-flow {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .poc-arrow {
        transform: rotate(90deg);
        margin-left: 8px;
    }

    .cta-cv {
        position: static;
        top: auto;
    }

    tr { flex-direction: column; }
    td:first-child,
    td:last-child { width: 100%; }

    footer { padding: 10px; }
    .footer-text { font-size: 14px; }
}
