:root {
    --ocean-900: #06121f;
    --ocean-800: #0a1f33;
    --ocean-700: #0b2a3d;
    --ocean-500: #0e5a6b;
    --ocean-300: #3aa7c2;
    --gold: #f5c76a;
    --gold-strong: #ffda8a;
    --text: #e9f2f5;
    --muted: #a9c0c7;
    --panel: rgba(6, 18, 31, 0.6);
    --panel-soft: rgba(6, 18, 31, 0.35);
}

/* GLOBAL BOX MODEL */
*, *::before, *::after {
    box-sizing: border-box;
}

/* GLOBAL */
body {
    margin: 0;
    min-height: 100vh;
    font-family: "Manrope", "Segoe UI", Arial, sans-serif;
    font-size: 15px;
    font-weight: 300;
    color: var(--text);
    background:
        radial-gradient(circle at 20% 10%, rgba(58,167,194,0.25), transparent 40%),
        radial-gradient(circle at 80% 0%, rgba(245,199,106,0.2), transparent 35%),
        linear-gradient(160deg, var(--ocean-900), var(--ocean-700) 45%, var(--ocean-500));
    background-attachment: fixed;
}
/* FOND CINÉMATIQUE */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;

    background:
        linear-gradient(180deg, rgba(6,18,31,0.35), rgba(6,18,31,0.7)),
        repeating-linear-gradient(
            45deg,
            rgba(255,255,255,0.03) 0,
            rgba(255,255,255,0.03) 1px,
            transparent 1px,
            transparent 6px
        );
}

img {
    position: relative;
    z-index: 1;
}

/* TITRES */
h1, h2, h3 {
    font-family: "Playfair Display", "Manrope", serif;
    color: var(--gold-strong);
    font-weight: 600;
    letter-spacing: 0.2px;
}

.poi h3 i {
    margin-right: 8px;
    width: 18px;
    text-align: center;
}

/* HERO */
.hero {
    text-align: left;
}

.poi-header {
    width: min(1200px, 100%);
    margin: 16px auto 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 18px;
    background: rgba(6, 18, 31, 0.08);
    opacity: 1;
    position: relative;
    overflow: hidden;
}

.poi-header::before {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid rgba(58,167,194,0.35);
    transform: scaleX(0);
    transform-origin: left center;
    animation: poi-header-reveal 1100ms ease forwards;
    pointer-events: none;
}

@keyframes poi-header-reveal {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

.poi-header > * {
    opacity: 0;
    animation: poi-header-content 380ms ease forwards;
    animation-delay: 520ms;
    transform: translateX(-6px);
}

@keyframes poi-header-content {
    from { opacity: 0; transform: translateX(-6px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Masque directionnel pour révéler le header de gauche à droite */
.poi-header::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(6, 18, 31, 0.6);
    transform: scaleX(1);
    transform-origin: right center;
    animation: poi-header-mask 950ms ease forwards;
    pointer-events: none;
}

@keyframes poi-header-mask {
    from { transform: scaleX(1); }
    to { transform: scaleX(0); }
}

@media (prefers-reduced-motion: reduce) {
    .poi-header::before {
        animation: none;
        transform: scaleX(1);
    }
    .poi-header > * {
        animation: none;
        opacity: 1;
        transform: none;
    }
    .poi-header::after {
        animation: none;
        transform: scaleX(0);
    }
    .poi-hero::before {
        animation: none;
        transform: scaleX(1);
    }
    .poi-hero::after {
        animation: none;
        transform: scaleX(0);
    }
    .poi-hero > * {
        animation: none;
        opacity: 1;
        transform: none;
    }
    .poi-col--left,
    .poi-col--right {
        animation: none;
    }
.poi-col--center::before,
.poi-col--center::after {
        animation: none;
        opacity: 0.08;
        transform: none;
    }
    .poi-slab--primary::before,
    .poi-slab--primary::after {
        animation: none;
        transform: scaleX(1);
    }
}


.poi-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    font-size: 0.78rem;
}

.poi-brand__code {
    padding: 4px 8px;
    border: 1px solid rgba(245,199,106,0.45);
    color: var(--gold-strong);
}

.poi-brand__name {
    color: rgba(233,242,245,0.85);
}

.poi-nav {
    display: flex;
    gap: 16px;
}

.poi-nav a {
    color: rgba(233,242,245,0.8);
    text-decoration: none;
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
}

.poi-nav a:hover {
    color: var(--gold-strong);
}

.poi-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 1px;
    background: var(--gold-strong);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 180ms ease;
}

.poi-nav a:hover::after,
.poi-nav a:focus-visible::after {
    transform: scaleX(1);
}

.poi-burger {
    display: none;
    width: 32px;
    height: 24px;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}

.poi-burger span {
    display: block;
    height: 2px;
    background: rgba(233,242,245,0.8);
}

.poi-nav-toggle {
    display: none;
}

/* POI THEME */
.poi {
    width: min(1300px, 100%);
    margin: 20px auto 60px auto;
    position: relative;
    color: rgba(233,242,245,0.95);
}

.poi::before {
    display: none;
}

.poi-hero {
    position: relative;
    overflow: hidden;
    opacity: 1;
}

.poi-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid rgba(245,199,106,0.4);
    transform: scaleX(0);
    transform-origin: right center;
    animation: poi-hero-reveal 1100ms ease forwards;
    pointer-events: none;
}

@keyframes poi-hero-reveal {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

.poi-hero > * {
    opacity: 0;
    animation: poi-hero-content 420ms ease forwards;
    animation-delay: 560ms;
    transform: translateX(6px);
}

@keyframes poi-hero-content {
    from { opacity: 0; transform: translateX(6px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Masque directionnel pour révéler le bloc de droite vers la gauche */
.poi-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(6, 18, 31, 0.6);
    transform: scaleX(1);
    transform-origin: left center;
    animation: poi-hero-mask 950ms ease forwards;
    pointer-events: none;
}

@keyframes poi-hero-mask {
    from { transform: scaleX(1); }
    to { transform: scaleX(0); }
}

.poi-slab {
    background: rgba(6, 18, 31, 0.08);
    border: 1px solid rgba(245,199,106,0.4);
    padding: 22px 24px;
    position: relative;
    box-shadow: none;
}

/* Interférence légère sur la colonne centrale */
.poi-col--center {
    overflow: hidden;
}

.poi-col--center > *,
.poi-col--left > *,
.poi-col--right > * {
    position: relative;
    z-index: 1;
}

.poi-col--center::before,
.poi-col--left::before,
.poi-col--right::before {
    content: "";
    position: absolute;
    inset: -12% -8%;
    z-index: 0;
    background:
        linear-gradient(
            0deg,
            rgba(245,199,106,0.0) 0%,
            rgba(245,199,106,0.05) 18%,
            rgba(245,199,106,0.0) 35%,
            rgba(58,167,194,0.05) 52%,
            rgba(58,167,194,0.0) 70%,
            rgba(245,199,106,0.04) 88%,
            rgba(245,199,106,0.0) 100%
        ),
        repeating-linear-gradient(
            0deg,
            rgba(255,255,255,0.06) 0,
            rgba(255,255,255,0.06) 1px,
            rgba(255,255,255,0.0) 2px,
            rgba(255,255,255,0.0) 4px
        );
    opacity: 0.98;
    mix-blend-mode: normal;
    transform: translateY(-8px);
    animation: poi-interf-scan 20s ease-in-out infinite;
    transition: opacity 2000ms ease, transform 2000ms ease;
    pointer-events: none;
}

.poi-col--center::after,
.poi-col--left::after,
.poi-col--right::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(
        90deg,
        rgba(6,18,31,0.0) 0%,
        rgba(255,255,255,0.08) 50%,
        rgba(6,18,31,0.0) 100%
    );
    opacity: 0.98;
    transform: translateX(-20%);
    animation: poi-interf-flicker 20s ease-in-out infinite;
    transition: opacity 2000ms ease, transform 2000ms ease;
    pointer-events: none;
}


@keyframes poi-interf-scan {
    0% { transform: translateY(-10px); opacity: 0.98; }
    50% { transform: translateY(10px); opacity: 1; }
    100% { transform: translateY(-10px); opacity: 0.98; }
}

@keyframes poi-interf-flicker {
    0% { opacity: 0.98; transform: translateX(-20%); }
    50% { opacity: 1; transform: translateX(20%); }
    100% { opacity: 0.98; transform: translateX(-20%); }
}

.poi-slab h3 {
    font-size: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold-strong);
}

.poi-slab--primary {
    border-color: rgba(245,199,106,0.45);
    overflow: hidden;
}

.poi-slab--primary > * {
    position: relative;
    z-index: 1;
}

.poi-slab--primary::before {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid rgba(245,199,106,0.45);
    transform: scaleX(0);
    transform-origin: left center;
    animation: poi-slab-primary-reveal 1000ms ease forwards;
    pointer-events: none;
}

.poi-slab--primary::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(6, 18, 31, 0.65);
    transform: scaleX(1);
    transform-origin: right center;
    animation: poi-slab-primary-mask 900ms ease forwards;
    pointer-events: none;
}

@keyframes poi-slab-primary-reveal {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

@keyframes poi-slab-primary-mask {
    from { transform: scaleX(1); }
    to { transform: scaleX(0); }
}

.poi-tri {
    width: 0;
    height: 0;
    border-left: 0;
    border-right: 0 solid transparent;
    border-top: 80px solid rgba(58,167,194,0.35);
    margin-left: auto;
    margin-top: -18px;
}

.poi-columns {
    display: grid;
    grid-template-columns: 1fr 1.4fr 1fr;
    gap: 22px;
    position: relative;
}

.poi-col {
    display: grid;
    gap: 18px;
}

.poi-col--left,
.poi-col--right {
    overflow: hidden;
    opacity: 1;
    position: relative;
}

.poi-col--left {
    animation: none;
}

.poi-col--right {
    animation: none;
}

@keyframes poi-col-reveal-up {}

@keyframes poi-col-reveal-rtl {}

.poi-slab--accent {
    border-color: rgba(245,199,106,0.4);
}

.poi-list {
    margin: 0;
    padding: 0;
    list-style: none;
    color: rgba(233,242,245,0.95);
}

.poi-list i,
.poi-keywords i,
.poi-contact i,
.poi-nav i {
    margin-right: 6px;
    width: 16px;
    text-align: center;
}

.poi-list li {
    margin: 8px 0;
}

.poi-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.poi-keywords span {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(58,167,194,0.4);
    padding: 6px 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.7rem;
}

.poi-keywords span::after {
    content: "";
    position: absolute;
    inset: -60% -60%;
    background: linear-gradient(
        45deg,
        transparent 20%,
        rgba(245, 199, 106, 0.0) 35%,
        rgba(245, 199, 106, 0.35) 50%,
        rgba(245, 199, 106, 0.0) 65%,
        transparent 80%
    );
    transform: translate(-120%, 120%);
    animation: poi-keywords-sheen 5s ease-in-out infinite;
    pointer-events: none;
}

@keyframes poi-keywords-sheen {
    0% { transform: translate(-120%, 120%); }
    45% { transform: translate(120%, -120%); }
    100% { transform: translate(120%, -120%); }
}

.poi-timeline .poi-entry {
    padding: 12px 0;
    border-bottom: 1px solid rgba(58,167,194,0.2);
}

.poi-entry__head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.poi-entry__meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.poi-entry__company {
    display: flex;
    align-items: center;
    gap: 10px;
}

.poi-company-logo {
    width: 90px;
    height: 90px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid rgba(58,167,194,0.2);
    box-shadow: 0 8px 16px rgba(2, 8, 16, 0.35);
    overflow: hidden;
}

.poi-company-logo img {
    display: block;
    max-height: 64px;
    max-width: 68px;
    height: auto;
    width: auto;
    filter: saturate(1.05);
    animation: poi-logo-random 3.6s steps(1) infinite;
    will-change: transform;
}

.poi-company-logo i {
    font-size: 32px;
    color: #6fd3ff;
    filter: drop-shadow(0 0 8px rgba(111, 211, 255, 0.4));
}


.poi-company-logo--group {
    width: auto;
    height: 90px;
    padding: 0 12px;
}

.poi-company-logo--group img {
    max-height: 40px;
    max-width: 40px;
    animation-duration: 4.2s;
}

@keyframes poi-logo-random {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    11% {
        transform: translate(1px, -1px) rotate(-0.5deg);
    }
    23% {
        transform: translate(-1px, 1px) rotate(0.6deg);
    }
    37% {
        transform: translate(0, 1px) rotate(-0.4deg);
    }
    51% {
        transform: translate(1px, 0) rotate(0.5deg);
    }
    64% {
        transform: translate(-1px, -1px) rotate(-0.6deg);
    }
    78% {
        transform: translate(0, -1px) rotate(0.4deg);
    }
    92% {
        transform: translate(1px, 1px) rotate(-0.5deg);
    }
    100% {
        transform: translate(0, 0) rotate(0deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .poi-company-logo img {
        animation: none;
    }
}

.poi-company {
    color: var(--gold-strong);
    font-weight: 600;
}

.poi-logo-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border: 1px solid rgba(245,199,106,0.45);
    background: rgba(6, 18, 31, 0.45);
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 999px;
    box-shadow: 0 10px 24px rgba(2, 8, 16, 0.45);
    line-height: 1;
}

.poi-logo-group {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.poi-company--accent {
    color: #6fd3ff;
}

.poi-role {
    font-style: italic;
    color: rgba(233,242,245,0.95);
}

.poi-dates {
    font-size: 0.9rem;
    color: rgba(233,242,245,0.95);
}

.poi-slab--contact {
    border-color: rgba(245,199,106,0.45);
}

.poi-contact {
    display: grid;
    gap: 6px;
    margin-bottom: 14px;
}


.hero h1 {
    font-weight: 600;
    letter-spacing: 0.6px;
}

/* Unified overlay (same look as center) for left/right/header/hero */
.poi-col--center,
.poi-col--left,
.poi-col--right,
.poi-hero,
.poi-header {
    overflow: hidden;
}

.poi-col--center > *,
.poi-col--left > *,
.poi-col--right > *,
.poi-hero > *,
.poi-header > * {
    position: relative;
    z-index: 1;
}

.poi-col--center::before,
.poi-col--left::before,
.poi-col--right::before,
.poi-hero::before,
.poi-header::before {
    content: "";
    position: absolute;
    inset: -12% -8%;
    z-index: 0;
    background:
        linear-gradient(
            0deg,
            rgba(245,199,106,0.0) 0%,
            rgba(245,199,106,0.05) 18%,
            rgba(245,199,106,0.0) 35%,
            rgba(58,167,194,0.05) 52%,
            rgba(58,167,194,0.0) 70%,
            rgba(245,199,106,0.04) 88%,
            rgba(245,199,106,0.0) 100%
        ),
        repeating-linear-gradient(
            0deg,
            rgba(255,255,255,0.06) 0,
            rgba(255,255,255,0.06) 1px,
            rgba(255,255,255,0.0) 2px,
            rgba(255,255,255,0.0) 4px
        );
    opacity: 0.98;
    mix-blend-mode: normal;
    transform: translateY(-8px);
    animation: poi-interf-scan 20s ease-in-out infinite;
    transition: opacity 2000ms ease, transform 2000ms ease;
    pointer-events: none;
    border: none;
}

.poi-col--center::after,
.poi-col--left::after,
.poi-col--right::after,
.poi-hero::after,
.poi-header::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(
        90deg,
        rgba(6,18,31,0.0) 0%,
        rgba(255,255,255,0.08) 50%,
        rgba(6,18,31,0.0) 100%
    );
    opacity: 0.98;
    transform: translateX(-20%);
    animation: poi-interf-flicker 20s ease-in-out infinite;
    transition: opacity 2000ms ease, transform 2000ms ease;
    pointer-events: none;
    border: none;
}

.poi-header > *,
.poi-hero > * {
    opacity: 1;
    animation: none;
    transform: none;
}

/* Remove all POI overlays */
.poi::before,
.poi-header::before,
.poi-header::after,
.poi-hero::before,
.poi-hero::after,
.poi-slab--primary::before,
.poi-slab--primary::after,
.poi-col--center::before,
.poi-col--center::after,
.poi-col--left::before,
.poi-col--left::after,
.poi-col--right::before,
.poi-col--right::after {
    display: none !important;
}

.hero p {
    color: var(--gold-soft);
}

/* LIENS (LOGIQUE FINALE) */
a {
    color: #4da3ff;
    text-decoration: underline;
}

a:hover {
    text-decoration: none;
}

a i {
    color: inherit;
    text-decoration: none;
}

a:has(i) {
    text-decoration: none;
}

/* ICONES */
.sidebar i,
.timeline i {
    margin-right: 6px;
    width: 16px;
    text-align: center;
}

.tags span i {
    margin-right: 4px;
}

/* LAYOUT */
.container {
    max-width: 1200px;
    margin: auto;
    padding: 32px 20px 60px 20px;
}

/* GALLERY LAYOUT */
.gallery {
    width: min(1200px, 100%);
    margin: 14px auto 40px auto;
    display: grid;
    gap: 24px;
}

.gallery-hero {
    display: grid;
}

.gallery-wide {
    display: grid;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.gallery-card {
    background: rgba(6, 18, 31, 0.6);
    border-radius: 18px;
    padding: 20px;
    border: 1px solid rgba(58,167,194,0.25);
    box-shadow:
        0 16px 40px rgba(2,8,16,0.5),
        inset 0 1px 0 rgba(255,255,255,0.06);
}

.gallery-card--hero {
    background: linear-gradient(140deg, rgba(6,18,31,0.8), rgba(10,42,61,0.6));
    border: 1px solid rgba(245,199,106,0.35);
    box-shadow:
        0 20px 50px rgba(2,8,16,0.6),
        0 0 40px rgba(245,199,106,0.12);
}

.poi-portfolio {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin: 24px 0 40px;
}

.poi-portfolio-card {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(6, 18, 31, 0.55);
    border: 1px solid rgba(111, 211, 255, 0.18);
    box-shadow: 0 18px 32px rgba(2, 8, 16, 0.45);
}

.poi-portfolio-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    background: transparent;
    transition: transform 220ms ease;
    filter: none;
}

.poi-portfolio-body {
    padding: 18px 22px 22px;
}

.poi-portfolio-media {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 10px;
    padding: 0;
    background: transparent;
}

.poi-portfolio-media__main {
    height: 260px;
    border-radius: 0;
    overflow: hidden;
    border: none;
    background: #ffffff;
}

.poi-portfolio-media__main img {
    transform: scale(1);
}

.poi-portfolio-media__main img[data-device="mobile"] {
    object-fit: contain;
    object-position: center;
    background: transparent;
}

.poi-portfolio-card:hover .poi-portfolio-media__main img {
    transform: scale(1.18);
}

.poi-portfolio-card:hover .poi-portfolio-media__main img[data-device="mobile"] {
    transform: scale(1);
}

.poi-portfolio-media__main {
    cursor: pointer;
}

.poi-portfolio-media__main img {
    cursor: zoom-in;
}

.poi-modal-open {
    overflow: hidden;
}

.poi-image-modal[hidden] {
    display: none;
}

.poi-image-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
}

.poi-image-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 8, 16, 0.78);
    backdrop-filter: blur(3px);
}

.poi-image-modal__dialog {
    position: relative;
    width: min(1100px, calc(100vw - 32px));
    max-height: calc(100vh - 32px);
    padding: 16px;
    border-radius: 18px;
    background: rgba(6, 18, 31, 0.92);
    border: 1px solid rgba(111, 211, 255, 0.22);
    box-shadow: 0 28px 70px rgba(2, 8, 16, 0.7);
    z-index: 1;
}

.poi-image-modal__close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid rgba(111, 211, 255, 0.22);
    background: rgba(6, 18, 31, 0.65);
    color: var(--text);
    cursor: pointer;
    font-size: 26px;
    line-height: 1;
}

.poi-image-modal__close:hover,
.poi-image-modal__close:focus-visible {
    color: var(--gold-strong);
    border-color: rgba(245, 199, 106, 0.45);
    outline: none;
}

.poi-image-modal__img {
    width: 100%;
    height: auto;
    max-height: calc(100vh - 90px);
    object-fit: contain;
    border-radius: 12px;
    display: block;
    background: #ffffff;
}

.poi-image-modal__img[data-device="mobile"] {
    background: transparent;
}

.poi-portfolio-media__alt {
    display: grid;
    gap: 10px;
}

.poi-portfolio-media__alt img {
    height: 260px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(111, 211, 255, 0.18);
    background: #ffffff;
    cursor: zoom-in;
}

.poi-portfolio-media__alt img[data-device="mobile"] {
    object-fit: contain;
    object-position: center;
    background: transparent;
}

@media (max-width: 720px) {
    .poi-portfolio-media {
        grid-template-columns: 1fr;
    }

    .poi-portfolio-media__main {
        height: 220px;
    }

    .poi-portfolio-media__alt {
        grid-template-columns: 1fr 1fr;
    }

    .poi-portfolio-media__alt img {
        height: 140px;
    }
}

.poi-image-modal__dialog[data-device="mobile"] {
    width: min(520px, calc(100vw - 32px));
}

.poi-portfolio-v2 {
    margin: 24px 0 44px;
}

.poi-portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 18px;
}

@media (max-width: 1100px) {
    .poi-portfolio-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .poi-portfolio-grid {
        grid-template-columns: 1fr;
    }
}

.poi-portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 18px;
}

@media (max-width: 1100px) {
    .poi-portfolio-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .poi-portfolio-grid {
        grid-template-columns: 1fr;
    }
}

.poi-project-card {
    border-radius: 18px;
    overflow: hidden;
    background: rgba(6, 18, 31, 0.55);
    border: 1px solid rgba(111, 211, 255, 0.16);
    box-shadow: 0 18px 32px rgba(2, 8, 16, 0.45);
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.poi-project-card__media {
    position: relative;
    padding: 14px;
    background: rgba(6, 18, 31, 0.35);
}

.poi-device {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(111, 211, 255, 0.18);
    box-shadow: 0 18px 30px rgba(2, 8, 16, 0.45);
    background: rgba(2, 8, 16, 0.18);
}

.poi-device--desktop {
    aspect-ratio: 16 / 9;
}

.poi-device__bar {
    height: 34px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    background: rgba(6, 18, 31, 0.75);
    border-bottom: 1px solid rgba(111, 211, 255, 0.14);
}

.poi-device__bar span {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(233, 242, 245, 0.22);
}

.poi-device__bar span:nth-child(1) { background: rgba(245, 199, 106, 0.75); }
.poi-device__bar span:nth-child(2) { background: rgba(58, 167, 194, 0.65); }
.poi-device__bar span:nth-child(3) { background: rgba(233, 242, 245, 0.24); }

.poi-device img {
    width: 100%;
    height: calc(100% - 34px);
    display: block;
    object-fit: cover;
    object-position: top center;
    cursor: zoom-in;
    background: transparent;
}

.poi-device--desktop img[data-role="desktop"] {
    height: calc(100% - 34px);
}

.poi-device--mobile {
    position: absolute;
    right: 18px;
    bottom: 18px;
    width: min(170px, 38%);
    aspect-ratio: 9 / 16;
    border-radius: 28px;
    padding: 12px;
    background:
        radial-gradient(circle at 30% 10%, rgba(245,199,106,0.10), transparent 45%),
        radial-gradient(circle at 70% 0%, rgba(58,167,194,0.10), transparent 40%),
        rgba(6, 18, 31, 0.78);
    border: 2px solid rgba(233, 242, 245, 0.18);
    box-shadow:
        0 18px 36px rgba(2, 8, 16, 0.62),
        inset 0 1px 0 rgba(255,255,255,0.06);
}

.poi-device--mobile::before {
    content: "";
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 72px;
    height: 14px;
    border-radius: 0 0 12px 12px;
    background: rgba(6, 18, 31, 0.95);
    border: 1px solid rgba(111, 211, 255, 0.14);
    pointer-events: none;
}

.poi-device--mobile::after {
    content: "";
    position: absolute;
    inset: 7px;
    border-radius: 22px;
    border: 1px solid rgba(245, 199, 106, 0.14);
    pointer-events: none;
}

.poi-device--mobile img {
    height: 100%;
    width: 100%;
    border-radius: 18px;
    object-fit: contain;
    object-position: center;
    background: transparent;
}

@media (max-width: 720px) {
    .poi-project-card__media {
        padding: 12px;
    }

    .poi-device--mobile {
        position: static;
        width: 100%;
        margin-top: 12px;
        aspect-ratio: 9 / 16;
    }
}

.poi-project-card__body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.poi-project-card__title {
    margin: 0;
    font-size: 1rem;
    color: rgba(233, 242, 245, 0.92);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.poi-project-card__desc {
    margin: 0;
    color: rgba(233, 242, 245, 0.72);
}

.poi-project-card__actions {
    margin-top: auto;
}

.poi-project-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #6fd3ff;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    font-size: 0.78rem;
}

.poi-project-card__cta::after {
    content: "↗";
    font-size: 0.9rem;
}

.poi-portfolio-empty {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 18px;
    align-items: center;
    border-radius: 18px;
    overflow: hidden;
    background: rgba(6, 18, 31, 0.55);
    border: 1px solid rgba(111, 211, 255, 0.16);
    box-shadow: 0 18px 32px rgba(2, 8, 16, 0.45);
}

.poi-portfolio-empty__media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    background: transparent;
}

.poi-portfolio-empty__body {
    padding: 18px;
}

@media (max-width: 720px) {
    .poi-portfolio-empty {
        grid-template-columns: 1fr;
    }
}

.poi-portfolio-body h2 {
    margin: 0 0 8px;
    font-size: 1.1rem;
    color: #e9f2f5;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.poi-portfolio-body p {
    margin: 0 0 12px;
    color: rgba(233, 242, 245, 0.75);
}

.poi-portfolio-body a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #6fd3ff;
    text-decoration: none;
    font-weight: 600;
}

.poi-portfolio-body a::after {
    content: "↗";
    font-size: 0.9rem;
}


@media (max-width: 720px) {
    .poi-portfolio-card img {
        height: 220px;
    }
}

/* PANELS */
.panel {
    background: var(--panel);
    border-radius: 16px;
    padding: 22px;
    border: 1px solid rgba(58,167,194,0.18);
    box-shadow:
        0 18px 40px rgba(2,8,16,0.5),
        inset 0 1px 0 rgba(255,255,255,0.06);
}

.poi-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
}

.poi-form-group label {
    color: rgba(233, 242, 245, 0.8);
    font-size: 0.85rem;
    letter-spacing: 0.6px;
}

.poi-form-group input {
    background: rgba(6, 18, 31, 0.6);
    border: 1px solid rgba(58, 167, 194, 0.25);
    border-radius: 10px;
    padding: 10px 12px;
    color: #e9f2f5;
}

.poi-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 10px;
    border: 1px solid rgba(245, 199, 106, 0.6);
    background: rgba(6, 18, 31, 0.8);
    color: var(--gold-strong);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.poi-btn:hover {
    color: #fff3c7;
    border-color: rgba(245, 199, 106, 0.9);
}

.poi-alert {
    margin: 0 0 12px;
    padding: 8px 12px;
    border-radius: 10px;
    background: rgba(180, 40, 40, 0.2);
    border: 1px solid rgba(180, 40, 40, 0.35);
    color: #ffb3b3;
}

/* LEGACY CARD SUPPORT */
.card {
    background: var(--panel);
    border-radius: 16px;
    padding: 22px;
    border: 1px solid rgba(58,167,194,0.18);
    box-shadow:
        0 18px 40px rgba(2,8,16,0.5),
        inset 0 1px 0 rgba(255,255,255,0.06);
}

.card--soft {
    background: var(--panel-soft);
}

.card--glow {
    border: 1px solid rgba(245,199,106,0.35);
    box-shadow:
        0 18px 40px rgba(2,8,16,0.55),
        0 0 40px rgba(245,199,106,0.12);
}

.panel--soft {
    background: var(--panel-soft);
}

.panel--primary {
    border: 1px solid rgba(245,199,106,0.35);
    box-shadow:
        0 18px 40px rgba(2,8,16,0.55),
        0 0 40px rgba(245,199,106,0.12);
}

.panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.panel__tag {
    padding: 4px 10px;
    font-size: 0.75rem;
    border-radius: 999px;
    color: #0a1623;
    background: linear-gradient(90deg, var(--gold), var(--gold-strong));
}


.text-muted {
    color: var(--muted);
}

.text-small {
    font-size: 0.92rem;
}

/* INFO LIST */
.info-list li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 10px 0;
    border-bottom: 1px solid rgba(58,167,194,0.15);
}

.info-list span {
    color: var(--muted);
    font-size: 0.9rem;
}

.info-list strong {
    color: #dfeff3;
}

/* CARD SOFT */
.card--soft {
    border: 1px solid rgba(245,199,106,0.22);
    box-shadow:
        0 0 18px rgba(245,199,106,0.08),
        0 20px 40px rgba(0,0,0,0.6);
}

/* CARD GLOW */
.card--glow {
    position: relative;
    padding: 0;
}

.card__inner {
    padding: 26px;
    border-radius: 12px;
    position: relative;
    z-index: 1;
}

.card--glow::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 1px;
    border-radius: 12px;

    background: linear-gradient(
        180deg,
        rgba(245,199,106,0.25),
        rgba(245,199,106,0.95),
        rgba(245,199,106,0.25)
    );

    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;

    box-shadow:
        var(--glow-soft),
        var(--glow-medium),
        0 0 140px rgba(245,199,106,0.18);

    pointer-events: none;
}

/* TITRES CARD */
.card h3 {
    position: relative;
    padding-bottom: 12px;
}

.card h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 70px;
    height: 1px;

    background: linear-gradient(
        90deg,
        var(--gold-bright),
        transparent
    );

    box-shadow: 0 0 14px rgba(245,199,106,0.7);
}

/* LISTES */
ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

li,
p {
    font-weight: 300;
}

strong {
    font-weight: 600;
}

.link-list li,
.cert-list li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(58,167,194,0.12);
}

.link-list a {
    color: #9fe3f0;
    text-decoration: none;
}

.link-list a:hover {
    text-decoration: underline;
}

/* SIDEBAR */
.sidebar {
}

.sidebar li {
    margin-bottom: 14px;
    color: var(--muted);
}

.sidebar strong {
    color: var(--gold);
}

/* TAGS */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* COMPETENCES */
.skills-list li {
    margin: 0 0 6px 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.skills-list strong {
    color: var(--gold);
}

/* EXPERIENCES */
.experience-list li {
    padding: 14px 0;
    margin-bottom: 14px;
    border-bottom: 1px solid rgba(58,167,194,0.2);
}

.exp-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.exp-company {
    font-weight: 600;
    color: var(--gold-strong);
}

.exp-company--accent {
    color: #63d2ff;
}

.exp-role {
    font-style: italic;
    color: var(--muted);
    text-align: right;
    white-space: nowrap;
}

.exp-dates {
    margin-top: 4px;
    font-size: 0.95rem;
    color: rgba(233,242,245,0.7);
    letter-spacing: 0.3px;
}

.experience-list p {
    margin: 8px 0 0 0;
    color: #e6e6e6;
}

/* FORM */
.panel form {
    padding: 8px 6px;
}

form input,
form select {
    width: 100%;
    padding: 12px;
    margin-bottom: 14px;

    background: rgba(6,18,31,0.8);
    border: 1px solid rgba(58,167,194,0.4);
    color: var(--text);
    border-radius: 6px;
}

/* FILE */
.file-input {
    display: flex;
    align-items: center;
    gap: 10px;
}

.file-input input[type="file"] {
    display: none;
}

.file-input label {
    padding: 8px 14px;
    background: rgba(58,167,194,0.18);
    border: 1px solid rgba(58,167,194,0.45);
    border-radius: 6px;
    color: #d6f3f9;
    cursor: pointer;
    font-size: 13px;
}

/* BUTTON */
button {
    position: relative;
    width: 100%;
    padding: 14px 0;
    margin-top: 24px;

    background: linear-gradient(
        180deg,
        #ffefc5 0%,
        #f5c76a 55%,
        #e3b45a 100%
    );

    border: 1px solid rgba(245,199,106,0.85);
    border-radius: 8px;

    color: #000;
    font-size: 15px;
    font-weight: 600;

    cursor: pointer;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.65),
        0 0 24px rgba(245,199,106,0.65),
        0 0 70px rgba(245,199,106,0.35);

    transition: all 0.2s ease;
}

button::after {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 10px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,0.4),
        transparent
    );
    opacity: 0.18;
    pointer-events: none;
}

button:hover {
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.75),
        0 0 30px rgba(245,199,106,0.85),
        0 0 90px rgba(245,199,106,0.45);
}

button:active {
    transform: translateY(1px);
}

/* FOOTER */
.footer {
    margin-top: 60px;
    padding: 30px;
    text-align: center;
    color: rgba(233,242,245,0.65);
    border-top: 1px solid rgba(58,167,194,0.35);
    box-shadow: 0 -12px 28px rgba(10,42,61,0.25);
}
