/* ============================================================
   styles.css — feuille de style centralisée du portfolio
   Élodie Dené
   ============================================================ */

:root {
    --bg: #FFFFFF;
    --bg-soft: #F2EDE3;
    --text: #1A1A1A;
    --text-muted: #6B6660;
    --border: #E8E2D5;
    --primary: #2E2A5C;
    --primary-soft: #E8E4F0;
    --primary-light: #7165C8;
    --accent: #E8614A;
    --accent-soft: #FBE4DE;
    --orange: var(--primary);
    --orange-dark: #8A5A3C;
    --orange-bg: var(--primary-soft);
    --peach: var(--bg-soft);
    --bg-card: #FFFFFF;
    --green: var(--primary);
    --green-bg: var(--primary-soft);
    --yellow: var(--accent);
    --sand: #EAE3D3;
    --card-cream: #FBF9F3;
    --project-bg: #F3EEE4;
    --dark: #1E1A17;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg);
    background-image: radial-gradient(rgba(26, 26, 46, 0.05) 1.5px, transparent 1.5px);
    background-size: 24px 24px;
    color: var(--text);
    line-height: 1.6;
}

nav {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 4rem;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.nav-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    transition: color 0.2s;
}

.nav-logo-img {
    height: 1.7rem;
    width: auto;
    display: block;
    filter: brightness(0);
    transition: filter 0.2s;
}

.nav-logo:hover {
    color: var(--accent);
}

.nav-logo:hover .nav-logo-img {
    filter: none;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--text);
}

@media (max-width: 600px) {
    .nav-logo {
        font-size: 0;
    }
    .nav-links {
        gap: 0.9rem;
    }
    .nav-links a {
        font-size: 0.82rem;
    }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.hero,
.about {
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem 4rem;
    position: relative;
}

.hero-content {
    position: relative;
}

/* Badge : label textuel partagé (hero, cards projet, pages projet, titres de section) */
.badge,
.section-title {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
    color: var(--orange-dark);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    --dot-color: var(--orange);
}

.hero .badge {
    margin-bottom: 2rem;
}

.badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--dot-color, var(--primary));
    animation: blink 2s ease-in-out infinite;
}

.hero h1 {
    font-family: "Playfair Display", serif;
    font-size: clamp(2.4rem, 4.5vw, 4rem);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -0.01em;
    max-width: 900px;
}

.hero h1 em {
    font-style: normal;
    color: var(--orange);
}

.hero h1 em.em-accent {
    font-style: italic;
    color: var(--accent);
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 3rem;
}

/* Bouton plein (hero) — noir, hover orange vif */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--text);
    color: #fff;
    border: 1.5px solid var(--text);
    padding: 0.85rem 1.75rem;
    border-radius: 100px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.btn-primary svg {
    transition: transform 0.2s;
}

.btn-primary:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(232, 97, 74, 0.28);
}

.btn-primary:hover svg {
    transform: translate(3px, -3px);
}

/* Bouton secondaire (hero) — contour noir, hover orange vif */
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: var(--text);
    border: 1.5px solid var(--text);
    padding: 0.85rem 1.75rem;
    border-radius: 100px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: color 0.2s, border-color 0.2s, transform 0.2s;
}

.btn-secondary svg {
    transition: transform 0.2s;
}

.btn-secondary:hover {
    color: var(--accent);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.btn-secondary:hover svg {
    transform: translateY(3px);
}

/* Lien texte harmonisé — noir, orange au hover, flèche animée */
.link {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 0.4rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    transition: color 0.2s;
}

.link svg {
    transition: transform 0.2s;
}

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

.link:hover svg {
    transform: translateX(3px);
}

/* Variante « Retour » : flèche orientée à gauche */
.link.back {
    margin-bottom: 3rem;
}

.link.back:hover svg {
    transform: translateX(-3px);
}

.link .more-short {
    display: none;
}

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

.projects {
    scroll-margin-top: 44px;
}

.projects {
    background: var(--project-bg);
    padding: 4rem 0;
}

.projects-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 4rem;
    position: relative;
}

.projects-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.project-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 1.25rem;
    text-decoration: none;
    color: var(--text);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.12);
}

.project-card-visual {
    aspect-ratio: 16 / 10;
    border-radius: 12px;
    background-color: var(--bg-soft);
    background-size: cover;
    background-position: center;
}

.project-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.75rem;
    padding: 1.5rem 0.5rem 0.5rem;
}

.project-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
    font-size: 0.72rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.project-card-title {
    font-family: "Playfair Display", serif;
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1.2;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.project-card-title em {
    font-style: italic;
    color: var(--accent);
}

.project-card-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.project-card-results {
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent);
}

/* Side project (pleine largeur) */
.project-side {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    grid-template-areas:
        "meta meta"
        "title desc"
        "status .";
    column-gap: 2.5rem;
    align-items: center;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2.5rem 3rem;
    margin-top: 1.5rem;
}

.project-side-meta {
    grid-area: meta;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
    font-size: 0.72rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.project-side-badge {
    grid-area: status;
    justify-self: start;
    margin-top: 1rem;
    border: 1px solid var(--accent);
    color: var(--accent);
    border-radius: 100px;
    padding: 0.2rem 0.7rem;
    font-size: 0.68rem;
}

.project-side-title {
    grid-area: title;
    font-family: "Playfair Display", serif;
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 500;
    line-height: 1.2;
    color: var(--text);
}

.project-side-title em {
    font-style: italic;
    color: var(--accent);
}

.project-side-desc {
    grid-area: desc;
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.about-content {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 4rem;
    align-items: center;
}

.about-photo {
    aspect-ratio: 3 / 4;
    border-radius: 16px;
    overflow: hidden;
    background: var(--bg-soft);
}

.about-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 35%;
}

.about-text {
    display: flex;
    flex-direction: column;
}

.about-title {
    margin-bottom: 2rem;
}

.about-text p {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

.principles-grid,
.objectives-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* ── Témoignages : bandeau beige + scroll horizontal ── */
.testimonials {
    background: var(--sand);
    padding: 5rem 0;
}

.testimonials-head {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 4rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 0.9rem 2rem;
    flex-wrap: wrap;
}

/* Grand titre de section (serif) */
.section-headline {
    font-family: "Playfair Display", serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.01em;
    margin-top: 0.75rem;
}

.section-headline em {
    font-style: italic;
    color: var(--accent);
}

.testimonials-title {
    max-width: 20ch;
}

.testimonials-foot {
    max-width: 1100px;
    margin: 1rem auto 0;
    padding: 0 4rem;
}


.testimonials-scroll {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scroll-padding-left: max(1.5rem, calc((100% - 1100px) / 2 + 4rem));
    margin-top: 1.5rem;
    padding: 0.5rem max(1.5rem, calc((100% - 1100px) / 2 + 4rem)) 1rem;
    scrollbar-width: none;
}

.testimonials-scroll::-webkit-scrollbar {
    display: none;
}

.testimonial-card {
    flex: 0 0 340px;
    scroll-snap-align: start;
    background: var(--card-cream);
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 2.5rem;
    min-height: 300px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.testimonial-quote {
    font-family: "Playfair Display", serif;
    font-size: 1.15rem;
    line-height: 1.55;
    color: var(--text);
}

.testimonial-foot {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
}

.testimonial-name {
    font-family: "Playfair Display", serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
}

.testimonial-role {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

.testimonial-num {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    flex-shrink: 0;
}

/* ── CTA finale : bandeau sombre + footer intégré ── */
.cta {
    background: var(--dark);
}

.cta-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 7rem 4rem;
}

.cta-title {
    font-family: "Playfair Display", serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.01em;
    color: var(--bg-soft);
    max-width: 22ch;
    margin-bottom: 2.5rem;
}

.cta-title em {
    font-style: italic;
    color: var(--accent);
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-soft);
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.85rem 1.75rem;
    border-radius: 100px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.cta-btn svg {
    transition: transform 0.2s;
}

.cta-btn:hover svg {
    transform: translate(3px, -3px);
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
    background: #fff;
}

.cta-footer {
    display: block;
    max-width: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid rgba(242, 237, 227, 0.12);
}

.cta-footer p {
    font-size: inherit;
    color: inherit;
}

.cta-footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.5rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
    font-size: 0.78rem;
    color: rgba(242, 237, 227, 0.5);
}

.cta-footer-inner a {
    color: rgba(242, 237, 227, 0.5);
    text-decoration: none;
    transition: color 0.2s;
}

.cta-footer-inner a:hover {
    color: var(--bg-soft);
}

/* ── Projet suivant (pages projet) : même bandeau sombre que la CTA ── */
.next-project {
    display: block;
    padding: 6rem 4rem;
    text-decoration: none;
}

.next-project-label {
    display: block;
    font-family: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1.25rem;
}

.next-project .cta-title {
    margin-bottom: 0;
    transition: color 0.2s;
}

.next-project:hover .cta-title {
    color: #fff;
}

footer {
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem 4rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

footer p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.case-header {
    max-width: 1100px;
    margin: 0 auto;
    padding: 6rem 4rem 0;
}


.case-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

/* Titres serif des pages About & Projet — cohérence avec l'accueil */
.about-intro h1,
.about-section h2,
.case-header h1,
.case-section h2 {
    font-family: "Playfair Display", serif;
}

.case-header h1 {
    font-size: clamp(1.75rem, 3.5vw, 3rem);
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.case-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 4rem 8rem;
}

.case-meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    padding: 1.75rem 2rem;
    background: var(--bg-soft);
    border-radius: 16px;
    margin-top: 2rem;
    margin-bottom: 4rem;
}

.meta-item {
    padding: 0 1.75rem;
    border-right: 1px solid rgba(46, 42, 92, 0.12);
}

.meta-item:first-child {
    padding-left: 0;
}

.meta-item:last-child {
    border-right: none;
}

.meta-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
}

.meta-item p {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text);
}

.case-section {
    margin-bottom: 4rem;
}

.case-section h2 {
    font-size: 1.8rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.case-section h3 {
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-top: 2.5rem;
    margin-bottom: 0.5rem;
}

.case-section p {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 1.75rem;
}

.case-section p:last-child {
    margin-bottom: 0;
}

.objectives-grid {
    margin: 1.5rem 0 1.75rem;
}

.objective-item {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.objective-number {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.03em;
    color: var(--text);
}

.objective-text {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 0;
}

/* ── Contexte & Objectifs : bandeau crème pleine largeur, 2 colonnes ── */
.case-intro {
    position: relative;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 4rem;
    align-items: start;
    padding: 5rem 0;
    margin-bottom: 5rem;
    background: var(--bg-soft);
    /* fond étendu à toute la largeur de l'écran sans casser la grille */
    box-shadow: 0 0 0 100vmax var(--bg-soft);
    clip-path: inset(0 -100vmax);
}

.case-intro-label {
    display: block;
    margin-bottom: 1.5rem;
}

.case-section .case-intro-title {
    font-size: clamp(2rem, 3.6vw, 2.75rem);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 1.75rem;
    padding-bottom: 0;
    border-bottom: none;
}

.case-intro-title em {
    font-style: italic;
    color: var(--accent);
}

.case-section .case-intro-text p {
    max-width: 52ch;
    margin-bottom: 0;
}

.case-intro-goals-label {
    display: block;
    font-family: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 0.4rem 0 1.25rem;
    border-bottom: 1px solid var(--sand);
}

.case-intro-goals ol {
    list-style: none;
}

.case-intro-goals li {
    display: grid;
    grid-template-columns: 4rem 1fr;
    align-items: baseline;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--sand);
    font-family: "Playfair Display", serif;
    font-size: 1.4rem;
    line-height: 1.3;
    color: var(--text);
}

.case-intro-goals li span {
    font-style: italic;
    color: var(--accent);
}

.decisions-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 1.5rem 0 0.5rem;
}

.decision-block {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.decision-row {
    display: grid;
    grid-template-columns: 95px 1fr;
    gap: 0.75rem;
    align-items: baseline;
}

.decision-row-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.decision-row-label--avant {
    color: var(--accent);
}

.decision-row-label--avant + .decision-row-text {
    color: var(--accent);
}

.decision-row-text {
    font-size: 0.9rem;
    color: var(--text);
    line-height: 1.6;
}

.decision-divider {
    height: 1px;
    background: var(--border);
    margin: 0.25rem 0;
}

.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    background: var(--accent);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s, transform 0.3s, background 0.2s;
    z-index: 9999;
    pointer-events: none;
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.back-to-top:hover {
    background: var(--text);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.75rem;
}

.stat-card,
.principle-card {
    background: var(--bg-soft);
    border-radius: 20px;
    padding: 1.75rem 1.75rem 1.5rem;
    display: flex;
    flex-direction: column;
}

.stat-card {
    gap: 0.75rem;
}

.stat-big-num {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    letter-spacing: -0.05em;
}

.stat-label {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.insights-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 1.75rem;
}

.insight-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border);
}

.insight-item:last-child {
    border-bottom: none;
}

.insight-num {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: -0.03em;
    line-height: 1;
    padding-top: 0.1rem;
    flex-shrink: 0;
    width: 2.5rem;
}

.insight-body,
.principle-body {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.card-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.01em;
    line-height: 1.4;
}

.insight-body .card-title {
    margin-bottom: 0;
}

.insight-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.65;
}

.carousel {
    position: relative;
    margin-bottom: 1.75rem;
    user-select: none;
}

.carousel-track-wrap {
    overflow: hidden;
    border-radius: 16px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
}

.carousel-track {
    display: flex;
    width: 100%;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.carousel-slide img {
    width: 100%;
    height: 420px;
    display: block;
    object-fit: cover;
    object-position: center top;
}

.carousel-caption {
    padding: 0.75rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 0;
    overflow-wrap: break-word;
    word-break: break-word;
}

.carousel-caption p {
    margin-bottom: 0;
}

.carousel-caption-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text);
    overflow-wrap: break-word;
}

.carousel-caption-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
    overflow-wrap: break-word;
}

.carousel-btn {
    position: absolute;
    top: calc(50% - 30px);
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(8px);
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, box-shadow 0.2s;
    z-index: 2;
}

.carousel-btn:hover {
    background: #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.carousel-btn--prev {
    left: 0.75rem;
}

.carousel-btn--next {
    right: 0.75rem;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.carousel-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--border);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s, transform 0.2s;
}

.carousel-dot.active {
    background: var(--primary);
    transform: scale(1.3);
}

.data-table-wrap {
    overflow-x: auto;
    margin-bottom: 1.75rem;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.data-table thead tr {
    border-bottom: 2px solid var(--border);
}

.data-table th {
    text-align: left;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0 0 0.75rem;
}

.data-table th + th,
        .data-table td + td {
    padding-left: 2rem;
}

.data-table tbody tr {
    border-bottom: 1px solid var(--border);
}

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

.data-table td {
    padding: 1rem 0;
    color: var(--text-muted);
    line-height: 1.6;
    vertical-align: top;
}

.insight-item:first-child {
    border-top: 1px solid var(--border);
}

.subsection-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.pills-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin: 1rem 0 2rem;
    --dot-color: var(--primary-light);
}

.pill {
    display: inline-flex;
    align-items: flex-start;
    gap: 0.6rem;
    background: var(--bg-soft);
    color: var(--text);
    font-size: 0.88rem;
    font-weight: 500;
    padding: 0.65rem 1rem;
    border-radius: 10px;
    line-height: 1.5;
}

.pill-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 0.48rem;
    background: var(--dot-color, var(--primary-light));
}

.pills-list--hmw {
    --dot-color: var(--accent);
}

.pills-list--hmw .pill {
    background: var(--bg-soft);
}

.benchmark-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1.25rem 0 0.5rem;
}

.benchmark-card {
    background: var(--bg-soft);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.benchmark-card-name {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
}

.benchmark-card-points {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.benchmark-card-points li {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.55;
    padding-left: 0.9rem;
    position: relative;
}

.benchmark-card-points li::before,
.priority-card-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 4px;
    height: 4px;
    border-radius: 50%;
}

.benchmark-card-points li::before {
    background: var(--text-muted);
}

.benchmark-card-takeaway {
    font-size: 0.82rem;
    color: var(--text);
    line-height: 1.55;
    border-top: 1px solid var(--border);
    padding-top: 0.75rem;
    margin: 0;
}

.benchmark-card-takeaway strong {
    color: var(--accent);
}

.case-section img {
    width: 100%;
    display: block;
    margin: 1.5rem 0 0.75rem;
}

.personas-grid,
.two-col-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin: 1.5rem 0 0.75rem;
}

.personas-grid img {
    margin: 0;
}

.figma-embed-wrap {
    position: relative;
    width: 100%;
    padding-bottom: 65%;
    margin: 1.5rem 0 0.75rem;
    border: 1px solid var(--border);
    background: var(--bg-soft);
}

.figma-embed-wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.case-section a img {
    cursor: zoom-in;
    transition: opacity 0.2s, transform 0.2s;
}

.case-section a:hover img {
    opacity: 0.9;
    transform: scale(1.01);
}

.two-col-grid .col-label {
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--text);
    margin-bottom: 0.75rem;
}

.two-col-grid p:not(.col-label) {
    font-style: italic;
    margin-top: 0.75rem;
}

.design-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin: 1.5rem 0 0.5rem;
}

.design-grid-item img {
    min-height: 240px;
    margin: 0 0 0.6rem;
}

.image-caption {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.55;
    font-style: italic;
}

.features-priority-alt {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

.priority-card {
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.priority-card--must {
    background: #E8F1EA;
}

.priority-card--should {
    background: #FBF3D9;
}

.priority-card--nice {
    background: #FCEAE4;
}

.priority-card--wont {
    background: #FBE3E3;
}

.priority-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    width: fit-content;
    background: #fff;
}

.priority-card--must  .priority-badge {
    color: #2F6B43;
}

.priority-card--should .priority-badge {
    color: #A87F12;
}

.priority-card--nice  .priority-badge {
    color: #E8614A;
}

.priority-card--wont  .priority-badge {
    color: #C0392B;
}

.priority-card-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.priority-card-list li {
    font-size: 0.88rem;
    color: var(--text);
    line-height: 1.5;
    padding-left: 1rem;
    position: relative;
}

.priority-card-list li::before {
    background: var(--text);
}

.cmp {
    --cmp-bg: #efeadd;
    --cmp-accent: #d95f3f;
    --cmp-text: #4a4540;
    --cmp-muted: #9a9387;
    --cmp-line: rgba(74, 69, 64, 0.14);
    --cmp-col1: 220px;
    font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    color: var(--cmp-text);
    background: var(--cmp-bg);
    border-radius: 24px;
    padding: 0px;
    margin: 32px 0;
}

.cmp-scroll {
    overflow-x: auto;
    border-radius: 16px;
    -webkit-overflow-scrolling: touch;
}

.cmp table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    min-width: 980px;
    font-size: 14px;
    line-height: 1.5;
}

.cmp th,
.cmp td {
    padding: 16px 20px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--cmp-line);
}

.cmp tbody tr:last-child th,
.cmp tbody tr:last-child td {
    border-bottom: 0;
}

.cmp thead th {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.5;
    color: var(--cmp-accent);
    padding-top: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--cmp-line);
}

.cmp thead th:first-child {
    font-size: 14px;
    font-weight: 500;
    color: var(--cmp-muted);
    letter-spacing: 0;
}

.cmp tbody th {
    font-weight: 600;
    color: var(--cmp-text);
    width: var(--cmp-col1);
    min-width: var(--cmp-col1);
}

.cmp td {
    font-weight: 400;
}

.cmp td.no {
    color: var(--cmp-muted);
}

.cmp thead th:first-child,
.cmp tbody th {
    position: sticky;
    left: 0;
    z-index: 1;
    background: var(--cmp-bg);
}

.about-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 6rem 4rem 5rem;
}

.about-intro b,
.about-text b {
    color: var(--accent);
    font-weight: 600;
}

.about-quote-wrap {
    background: var(--bg-soft);
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 2.5rem;
}

.about-intro h1 {
    font-size: clamp(1.9rem, 4vw, 3rem);
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.025em;
    margin-bottom: 0;
}

.about-intro p {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.85;
    margin-bottom: 1.1rem;
}

.about-intro p:last-of-type {
    margin-bottom: 1.75rem;
}

.about-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 4rem 5rem;
}

.about-section h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 400;
    letter-spacing: -0.02em;
    margin-bottom: 2.5rem;
}

.principle-card {
    gap: 1.25rem;
}

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

.principle-visual {
    display: flex;
    align-items: baseline;
    justify-content: flex-start;
    gap: 0.75rem;
}

.principle-big-num {
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    letter-spacing: -0.05em;
    user-select: none;
}

.principle-visual .card-title {
    font-family: "Playfair Display", serif;
    font-size: 1.5rem;
    font-weight: 400;
}

.principle-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.65;
}

.principle-list {
    list-style: none;
    padding: 1rem 0 0;
    margin-top: 0.6rem;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.principle-list li {
    position: relative;
    padding-left: 1rem;
    font-size: 0.85rem;
    color: var(--text);
    line-height: 1.5;
}

.principle-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
}

/* Parcours (about) */
.timeline {
    list-style: none;
    padding: 0;
    border-top: 1px solid var(--border);
}

.timeline-item {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 2rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--border);
}

.timeline-date {
    font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
    font-size: 0.8rem;
    letter-spacing: 0.03em;
    color: var(--text-muted);
    padding-top: 0.2rem;
}

.timeline-role {
    font-size: 1rem;
    color: var(--text);
    line-height: 1.5;
}

.timeline-role strong {
    font-weight: 700;
}

.timeline-role + .timeline-role {
    margin-top: 0.4rem;
}

.timeline-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-top: 0.2rem;
}

.toolbox {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 1rem;
}

@media (max-width: 900px) {
    .toolbox {
        grid-template-columns: repeat(4, 1fr);
    }
}

.tool {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem 0.75rem 1.25rem;
    background: var(--bg-soft);
    border-radius: 16px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.tool:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.tool-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    transition: transform 0.25s ease;
}

.tool:hover .tool-logo {
    transform: scale(1.1);
}

.tool-name {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text);
}

.fun-list {
    list-style: none;
    padding-left: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.fun-list li {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.fun-list li::before {
    content: '';
    display: block;
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 34'%3E%3Cpath d='M17 0L19.8 14.2L34 17L19.8 19.8L17 34L14.2 19.8L0 17L14.2 14.2L17 0Z' fill='%232E2A5C'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.about-page-photo {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 4rem 5rem;
    overflow: hidden;
}

.about-page-photo img {
    width: 100%;
    display: block;
}

/* ─────────── Media queries ─────────── */
@media (max-width: 768px) {
    nav {
        padding: 1rem 1.5rem;
    }
    .hero {
        padding: 3rem 1.5rem;
    }
    .about {
        padding: 3rem 1.5rem;
    }
    .projects-inner {
        padding: 0 1.5rem;
    }
    .testimonials-head {
        padding: 0 1.5rem;
    }
    .testimonials-foot {
        padding: 0 1.5rem;
    }
    .cta-inner {
        padding: 4.5rem 1.5rem;
    }
    .next-project {
        padding: 4rem 1.5rem;
    }
    .cta-footer-inner {
        padding: 1.25rem 1.5rem;
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    .projects-grid {
        grid-template-columns: 1fr;
    }
    .project-side {
        grid-template-columns: 1fr;
        grid-template-areas:
            "meta"
            "title"
            "status"
            "desc";
        gap: 1.25rem;
        padding: 2rem 1.5rem;
    }
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .about-photo {
        max-width: 240px;
    }
    footer {
        flex-direction: column;
        gap: 0.5rem;
        padding: 2rem 1.5rem;
        text-align: center;
    }
    .case-header {
        padding: 4rem 1.5rem 2rem;
    }
    .case-content {
        padding: 0 1.5rem 5rem;
    }
    .case-meta {
        grid-template-columns: 1fr;
    }
    .meta-item {
        padding: 0.75rem 0;
        border-right: none;
        border-bottom: 1px solid rgba(46, 42, 92, 0.12);
    }
    .meta-item:first-child {
        padding-top: 0;
    }
    .meta-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
    .objectives-grid {
        grid-template-columns: 1fr 1fr;
    }
    .case-intro {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 3.5rem 0;
        margin-bottom: 3.5rem;
    }
    .case-intro-goals li {
        grid-template-columns: 3rem 1fr;
        font-size: 1.15rem;
        padding: 1.15rem 0;
    }
    .carousel-slide img {
        height: 280px;
        object-position: center center;
    }
    .carousel-btn {
        width: 34px;
        height: 34px;
    }
    .carousel-caption {
        padding: 1rem 1.25rem 1.25rem;
    }
    .benchmark-cards {
        grid-template-columns: 1fr;
    }
    .personas-grid {
        grid-template-columns: 1fr;
    }
    .two-col-grid {
        grid-template-columns: 1fr;
    }
    .design-grid-item img {
        min-height: 0;
    }
    .image-caption {
        font-size: 0.6rem;
    }
    .features-priority-alt {
        grid-template-columns: 1fr;
    }
    .about-page {
        padding: 4rem 1.5rem 3rem;
    }
    .about-section {
        padding: 0 1.5rem 3rem;
    }
    .principles-grid {
        grid-template-columns: 1fr;
    }
    .timeline-item {
        grid-template-columns: 1fr;
        gap: 0.35rem;
    }
    .about-page-photo {
        padding: 0 1.5rem 3rem;
    }
}

@media (max-width: 480px) {
    .link .more-full {
        display: none;
    }
    .link .more-short {
        display: inline;
    }
}

@media (max-width: 720px) {
    .cmp {
        --cmp-col1: 150px;
    }
    .cmp th,
    .cmp td {
        padding: 14px 16px;
    }
    .cmp thead th {
        font-size: 15px;
    }
}
