:root {
    --espresso: #2C1810;
    --torrefaction: #6B4423;
    --creme: #F5F0E8;
    --kraft: #D4C4A8;
    --cuivre: #B87333;
    --blanc-casse: #FEFDFB;
    --shadow: rgba(44, 24, 16, 0.12);
    --success: #2d5a27;
    --success-light: rgba(45, 90, 39, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', sans-serif;
    background-color: var(--creme);
    color: var(--espresso);
    line-height: 1.7;
    font-size: 17px;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.03;
    z-index: 1000;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%' height='100%' filter='url(%23noise)'/%3E%3C/svg%3E");
}

nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--blanc-casse);
    border-bottom: 1px solid var(--kraft);
    z-index: 100;
    padding: 0 2rem;
    box-shadow: 0 2px 20px var(--shadow);
}

nav .nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

nav .logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--espresso);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

nav .logo .bean {
    width: 28px;
    height: 34px;
    background: var(--torrefaction);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    position: relative;
}

nav .logo .bean::after {
    content: '';
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 60%;
    background: var(--espresso);
    border-radius: 2px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 0.5rem;
}

nav a {
    color: var(--torrefaction);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    transition: all 0.3s ease;
}

nav ul a:hover {
    background: var(--creme);
    color: var(--espresso);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

@media (max-width: 900px) {
    .mobile-toggle {
        display: block;
    }

    nav ul {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--blanc-casse);
        flex-direction: column;
        padding: 1rem;
        gap: 0;
        border-bottom: 1px solid var(--kraft);
        display: none;
    }

    nav ul.open {
        display: flex;
    }

    nav ul a {
        display: block;
        padding: 0.75rem 1rem;
    }
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6rem 2rem 4rem;
    background: linear-gradient(135deg, var(--blanc-casse) 0%, var(--creme) 50%, var(--kraft) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 150%;
    background: radial-gradient(ellipse, var(--kraft) 0%, transparent 70%);
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-badge {
    display: inline-block;
    background: var(--torrefaction);
    color: var(--blanc-casse);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 2rem;
    animation: fadeInDown 0.8s ease;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    color: var(--espresso);
    margin-bottom: 1rem;
    line-height: 1.1;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero h1 span {
    color: var(--cuivre);
    font-style: italic;
}

.hero p {
    font-size: 1.25rem;
    color: var(--torrefaction);
    margin-bottom: 2.5rem;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--espresso);
    color: var(--blanc-casse);
    padding: 1rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.hero-cta:hover {
    background: var(--cuivre);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px var(--shadow);
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.main-container {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 2rem;
    max-width: 1300px;
    margin: 0 auto;
    padding: 2rem;
}

@media (max-width: 1000px) {
    .main-container {
        grid-template-columns: 1fr;
    }

    .sidebar {
        order: -1;
    }
}

section {
    margin-bottom: 2rem;
}

.section-header {
    margin-bottom: 1.5rem;
}

.section-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--espresso);
    margin-bottom: 0.25rem;
}

.section-header .subtitle {
    color: var(--torrefaction);
    font-size: 1rem;
}

.card {
    background: var(--blanc-casse);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 20px var(--shadow);
    border: 1px solid rgba(212, 196, 168, 0.3);
}

.card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: var(--espresso);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.card h3 .icon {
    width: 32px;
    height: 32px;
    background: var(--creme);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.task-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.task-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--creme);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.task-item:hover {
    border-color: var(--kraft);
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--creme);
    border-radius: 6px;
    border: 1px solid var(--kraft);
    margin-bottom: 0.5rem;
}

.info-item:last-child {
    margin-bottom: 0;
}


.task-item.completed {
    background: var(--success-light);
    border-color: rgba(45, 90, 39, 0.2);
}

.task-item input[type="checkbox"] {
    display: none;
}

.task-checkbox {
    width: 22px;
    height: 22px;
    border: 2px solid var(--kraft);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
    margin-top: 2px;
}

.task-checkbox svg {
    opacity: 0;
    transition: opacity 0.2s ease;
}

.task-item.completed .task-checkbox {
    background: var(--success);
    border-color: var(--success);
    color: white;
}

.task-item.completed .task-checkbox svg {
    opacity: 1;
}

.task-content {
    flex: 1;
}

.task-title {
    font-weight: 600;
    color: var(--espresso);
    margin-bottom: 0.25rem;
}

.task-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.skill-tag {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    background: var(--blanc-casse);
    color: var(--torrefaction);
    border-radius: 3px;
    border: 1px solid var(--kraft);
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-block;
}

.skill-tag:hover {
    background: var(--creme);
    color: var(--espresso);
    border-color: var(--torrefaction);
    transform: translateY(-1px);
}

.task-item.completed .skill-tag {
    background: rgba(45, 90, 39, 0.1);
    border-color: rgba(45, 90, 39, 0.2);
    color: var(--success);
}

.task-item.completed .skill-tag:hover {
    background: rgba(45, 90, 39, 0.2);
    border-color: var(--success);
}

.task-resources {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.task-resource-link {
    font-size: 0.75rem;
    color: var(--cuivre);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.task-resource-link:hover {
    text-decoration: underline;
}

.sidebar {
    position: sticky;
    top: 90px;
    height: fit-content;
}

.progress-card {
    background: var(--blanc-casse);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px var(--shadow);
    margin-bottom: 1rem;
}

.progress-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: var(--espresso);
    margin-bottom: 1rem;
    text-align: center;
}

.progress-circle-container {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.progress-circle {
    width: 120px;
    height: 120px;
    position: relative;
}

.progress-circle svg {
    transform: rotate(-90deg);
}

.progress-circle circle {
    fill: none;
    stroke-width: 8;
}

.progress-circle .bg {
    stroke: var(--creme);
}

.progress-circle .progress {
    stroke: var(--cuivre);
    stroke-linecap: round;
    transition: stroke-dashoffset 0.5s ease;
}

.progress-circle.complete .progress {
    stroke: var(--success);
}

.progress-percent {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--espresso);
}

.progress-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    text-align: center;
}

.stat-box {
    background: var(--creme);
    padding: 0.75rem;
    border-radius: 6px;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--espresso);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--torrefaction);
}

.skills-card {
    background: var(--blanc-casse);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px var(--shadow);
    max-height: 400px;
    overflow-y: auto;
}

.skills-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: var(--espresso);
    margin-bottom: 1rem;
    position: sticky;
    top: 0;
    background: var(--blanc-casse);
    padding-bottom: 0.5rem;
}

.skill-category {
    margin-bottom: 1rem;
}

.skill-category-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--torrefaction);
    margin-bottom: 0.5rem;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid var(--kraft);
}

.skill-list {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--torrefaction);
    padding: 0.35rem 0;
    cursor: pointer;
    transition: all 0.2s ease;
}

.skill-item:hover {
    color: var(--espresso);
}

.skill-item .skill-check {
    width: 16px;
    height: 16px;
    border: 2px solid var(--kraft);
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.skill-item .skill-check svg {
    opacity: 0;
    transition: opacity 0.2s ease;
}

.skill-item.validated .skill-check {
    background: var(--success);
    border-color: var(--success);
    color: white;
}

.skill-item.validated .skill-check svg {
    opacity: 1;
}

.skill-item.validated {
    color: var(--success);
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (max-width: 600px) {
    .resources-grid {
        grid-template-columns: 1fr;
    }
}

.resource-card {
    background: var(--blanc-casse);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px var(--shadow);
    transition: all 0.3s ease;
}

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

.resource-preview {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--creme);
    border-bottom: 1px solid var(--kraft);
}

.resource-preview img {
    max-height: 70px;
    max-width: 80%;
}

.resource-preview.favicon {
    background: var(--espresso);
}

.resource-preview.favicon img {
    max-height: 45px;
}

.resource-info {
    padding: 1rem;
}

.resource-info h4 {
    color: var(--espresso);
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.resource-info p {
    font-size: 0.8rem;
    color: var(--torrefaction);
    margin-bottom: 0.75rem;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--torrefaction);
    color: var(--blanc-casse);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 700;
    transition: all 0.3s ease;
}

.download-btn:hover {
    background: var(--cuivre);
}

.tabs {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.tab-btn {
    background: var(--creme);
    border: none;
    padding: 0.5rem 1rem;
    font-family: 'Lato', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--torrefaction);
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.tab-btn:hover {
    background: var(--kraft);
}

.tab-btn.active {
    background: var(--cuivre);
    color: var(--blanc-casse);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.image-links {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.image-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
    background: var(--creme);
    border-radius: 4px;
    text-decoration: none;
    color: var(--torrefaction);
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.image-link:hover {
    background: var(--kraft);
    color: var(--espresso);
}

.accordion-item {
    background: var(--blanc-casse);
    border-radius: 8px;
    margin-bottom: 0.5rem;
    overflow: hidden;
    box-shadow: 0 2px 10px var(--shadow);
}

.accordion-header {
    padding: 1rem 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.2s ease;
}

.accordion-header:hover {
    background: var(--creme);
}

.accordion-header h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    color: var(--espresso);
}

.accordion-header .chevron {
    transition: transform 0.3s ease;
    color: var(--cuivre);
}

.accordion-item.open .accordion-header .chevron {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-item.open .accordion-content {
    max-height: 500px;
}

.accordion-body {
    padding: 0 1.25rem 1.25rem;
}

.prompt-block {
    background: var(--espresso);
    color: var(--creme);
    padding: 1rem;
    border-radius: 6px;
    font-family: monospace;
    font-size: 0.8rem;
    line-height: 1.5;
    margin-bottom: 0.75rem;
    position: relative;
}

.copy-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: var(--torrefaction);
    color: var(--blanc-casse);
    border: none;
    padding: 0.3rem 0.6rem;
    border-radius: 3px;
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.copy-btn:hover {
    background: var(--cuivre);
}

.copy-btn.copied {
    background: var(--success);
}

.content-block {
    background: var(--creme);
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 0.75rem;
    border-left: 3px solid var(--cuivre);
}

.content-block h5 {
    font-size: 0.9rem;
    color: var(--espresso);
    margin-bottom: 0.5rem;
}

.content-block p {
    color: var(--torrefaction);
    font-size: 0.9rem;
}

.copy-text-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--blanc-casse);
    color: var(--torrefaction);
    border: 1px solid var(--kraft);
    padding: 0.35rem 0.6rem;
    border-radius: 3px;
    font-size: 0.75rem;
    cursor: pointer;
    margin-top: 0.5rem;
    transition: all 0.2s ease;
}

.copy-text-btn:hover {
    background: var(--kraft);
}

.coffee-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

@media (max-width: 700px) {
    .coffee-grid {
        grid-template-columns: 1fr;
    }
}

.coffee-card {
    background: var(--creme);
    border-radius: 6px;
    padding: 1rem;
    border-left: 3px solid var(--cuivre);
}

.coffee-card h5 {
    font-family: 'Playfair Display', serif;
    color: var(--espresso);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.coffee-card .details {
    font-size: 0.85rem;
    color: var(--torrefaction);
    line-height: 1.6;
}

.coffee-card .details strong {
    color: var(--espresso);
}

.colors-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.75rem;
}

@media (max-width: 600px) {
    .colors-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

.color-swatch .swatch {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 6px;
    margin-bottom: 0.5rem;
    box-shadow: 0 2px 8px var(--shadow);
    border: 2px solid var(--blanc-casse);
}

.color-swatch .name {
    font-weight: 700;
    font-size: 0.75rem;
    color: var(--espresso);
}

.color-swatch .hex {
    font-family: monospace;
    font-size: 0.7rem;
    color: var(--torrefaction);
}

.completion-banner {
    display: none;
    background: linear-gradient(135deg, var(--success), #3d7a37);
    color: white;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 1rem;
    animation: celebrate 0.5s ease;
}

.completion-banner.show {
    display: block;
}

.completion-banner h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

@keyframes celebrate {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

footer {
    background: var(--espresso);
    color: var(--kraft);
    text-align: center;
    padding: 2rem;
    margin-top: 2rem;
}

footer p {
    font-size: 0.85rem;
}

.client-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.5rem 1rem;
    font-size: 0.95rem;
}

.client-grid .label {
    font-weight: 700;
    color: var(--espresso);
}

.client-grid .value {
    color: var(--torrefaction);
}

.section-divider {
    height: 3px;
    background: linear-gradient(to right, var(--cuivre), transparent);
    border-radius: 2px;
    margin: 2rem 0;
}