/* ===== IMPORT & RESET ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;900&display=swap');

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

body,
html {
    overflow-x: hidden;
    width: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f9f9f9;
    color: #1a1a1a;
    line-height: 1.6;
}

/* ===== PROGRESS BAR ===== */
#progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: rgba(0, 0, 0, 0.1);
    z-index: 9999;
}

#progress-bar {
    height: 100%;
    width: 0%;
    background: #ffde00;
    transition: width 0.1s ease-out;
}

/* ===== NAVIGATION ===== */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    width: 100%;
    flex-wrap: wrap;
}

.logo {
    font-weight: 900;
    font-size: 1.2rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-links a {
    margin: 0 15px;
    text-decoration: none;
    color: #1a1a1a;
    font-weight: 900;
    position: relative;
    padding-bottom: 5px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    bottom: 0;
    left: 0;
    background-color: #ffde00;
    transform: scaleX(0);
    transform-origin: bottom center;
    transition: transform 0.3s ease-out;
}

.nav-links a:hover::after {
    transform: scaleX(1);
}

.nav-links a.no-line::after,
.nav-links a:has(button)::after {
    display: none;
}

.btn-black {
    background: #000;
    color: #fff;
    border: 2px solid #000;
    padding: 10px 20px;
    text-decoration: none;
    display: inline-block;
    font-weight: 900;
    transition: all 0.3s ease;
    text-align: center;
    border-radius: 20px;
}

.btn-black:hover {
    background: #ffde00;
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 4px 0 #000;
}

/* ===== BUTTON BACK TO TOP ===== */
.hk-back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #ffde00;
    border: 3px solid #000;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #000;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 5px 5px 0px #000;
}

.hk-back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.hk-back-to-top i {
    font-size: 1.2rem;
    margin-bottom: 2px;
}

.hk-back-to-top .back-text {
    font-size: 8px;
    font-weight: 900;
}

.hk-back-to-top:hover {
    transform: translateY(-5px);
    background-color: #000;
    color: #fff;
    box-shadow: 0px 0px 0px #000;
}

/* ===== HERO SECTION ===== */
.hero-creative {
    height: 80vh;
    background-color: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    cursor: default;
}

.hero-bg-text {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    white-space: nowrap;
    font-size: 15vw;
    font-weight: 900;
    color: rgba(0, 0, 0, 0.03);
    z-index: 1;
    pointer-events: none;
    text-transform: uppercase;
    animation: marquee 20s linear infinite;
}

@keyframes marquee {
    0% {
        transform: translate(0, -50%);
    }

    100% {
        transform: translate(-50%, -50%);
    }
}

.hero-container {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-title-main {
    font-family: 'Archivo Black', sans-serif;
    line-height: 0.8;
    color: #000000;
    margin: 0;
    letter-spacing: -0.05em;
    animation: title-vibration 0.2s ease-in-out infinite alternate;
    font-size: clamp(3rem, 10vw, 12rem);
    z-index: 2;
    position: relative;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    background: #ffde00;
    color: #000;
    padding: 12px 24px;
    font-weight: 900;
    font-size: 1.2rem;
    border: 3px solid #000;
    margin-top: -20px;
    transform: rotate(3deg) translateX(50px);
    box-shadow: 8px 8px 0px #fff;
}

.badge-dot {
    width: 10px;
    height: 10px;
    background: #000;
    border-radius: 50%;
    margin-right: 12px;
    animation: blink 1s infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

/* Hero decorative elements */
.hk-element {
    position: absolute;
    z-index: 1;
}

.squiggle-1 {
    top: -60px;
    left: -100px;
    width: 300px;
    transform: rotate(-20deg);
}

.circle-1 {
    width: 100px;
    height: 100px;
    border: 15px solid #ffde00;
    border-radius: 50%;
    bottom: -50px;
    right: -80px;
    animation: float 4s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Scroll indicator */
.hero-scroll-link {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    z-index: 10;
}

.scroll-line {
    width: 4px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    border-radius: 2px;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: #ffde00;
    animation: scroll-slide 2s cubic-bezier(0.65, 0, 0.35, 1) infinite;
    box-shadow: 0 0 10px rgba(255, 222, 0, 0.8);
}

@keyframes scroll-slide {
    0% {
        transform: translateY(-110%);
    }

    100% {
        transform: translateY(250%);
    }
}

/* ===== ABOUT SECTION ===== */
.section-humankind {
    background-color: #f9f9f9;
    padding: 100px 5px 50px 5%;
    color: #000;
}

.hk-container {
    max-width: 1100px;
    margin: 0 auto;
}

.hk-about-card {
    display: grid;
    justify-content: end;
    grid-template-columns: 0.7fr 1.3fr;
    /* Donne encore moins de place à l'image */
    background: #ffffff;
    border: 3px solid #000;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 10px 10px 0px rgba(0, 0, 0, 0.05);
    align-items: center;
    max-width: 950px;
    /* Limite la largeur totale de la carte */
    margin: 0 auto;
    /* Centre la carte dans la section */

}

.hk-image-column {
    background-image: url('../images/Wattiez_Axel.jpg');
    /* Vérifie bien le nom du fichier ici */
    background-size: cover;
    /* 'cover' remplira proprement le petit carré */
    background-position: center;
    background-repeat: no-repeat;
    height: 100%;
    /* Elle prendra la hauteur du texte d'à côté */
    min-height: 300px;
    /* Taille minimum pour ne pas qu'elle disparaisse */
    width: 100%;
    position: relative;
    border-right: 3px solid #000;
    /* Ajoute une séparation propre */
    flex: 1;
    min-height: 600px;
    /* On peut augmenter un peu la hauteur pour un look plus pro */
    background-color: #000;
    /* Fond noir pour éviter un flash blanc au chargement */
    border-right: 3px solid #000;
    display: flex;
    overflow: hidden;
    /* Important pour que l'image ne dépasse pas */
}

.hk-about-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* REMPLIT TOUT L'ESPACE SANS DÉFORMER */
    object-position: top center;
    /* Aligne sur le haut du visage si l'image est rognée */
    display: block;
}

.hk-main-img {
    width: 100%;
    height: 100%;
}

.hk-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: #ffde00;
    border: 3px solid #000;
    padding: 15px;
    border-radius: 15px;
    text-align: center;
    transform: rotate(5deg);
}

.hk-age {
    font-family: 'Archivo Black', sans-serif;
    font-size: 1.5rem;
    display: block;
}

.hk-badge p {
    font-size: 15px;
    font-weight: 900;
    margin: 0;
}

.hk-text-column {
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hk-section-title {
    font-family: 'Archivo Black', sans-serif;
    font-size: 3rem;
    line-height: 1;
    margin-bottom: 25px;
    text-transform: uppercase;
}

.hk-description {
    font-size: 1.1rem;
    color: #333;
    line-height: 1.6;
    margin-bottom: 30px;
}

.hk-info-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
    padding-top: 20px;
    border-top: 2px solid #eee;
}

.hk-label {
    font-size: 0.7rem;
    font-weight: 900;
    color: #888;
    display: block;
    margin-bottom: 5px;
}

.hk-info-item p {
    font-weight: 700;
    margin: 0;
}

.hk-info-item a {
    font-size: 1.1rem;
    color: #000;
    text-decoration: none;
    font-weight: bold;
}

.hk-actions {
    display: flex;
    gap: 15px;
}

.hk-btn {
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 900;
    font-size: 0.8rem;
    border: 3px solid #000;
    transition: 0.2s;
    text-align: center;
}

.hk-btn-yellow {
    background: #ffde00;
    color: #000;
}

.hk-btn-yellow:hover {
    background: #000;
    color: #fff;
}

.hk-btn-outline {
    background: transparent;
    color: #000;
    border: 3px solid #000;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.hk-btn-outline:hover {
    background-color: #000;
    color: #fff;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.hk-btn-outline:active {
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.15);
}

/* ===== SKILLS SECTION ===== */
.hk-skills-section {
    background-color: #f9f9f9;
    padding: 50px 5%;
    color: #000;
}

.hk-title-wrapper {
    text-align: center;
    margin-bottom: 60px;
}

.hk-huge-title {
    font-family: 'Archivo Black', sans-serif;
    font-size: clamp(2rem, 5vw, 4rem);
    text-transform: uppercase;
    color: #000;
    padding-bottom: 50px;
}

.hk-subtitle {
    font-weight: 700;
    color: #666;
}

.hk-skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.hk-skill-item {
    display: flex;
    align-items: center;
    background: #fff;
    border: 3px solid #000;
    border-radius: 20px;
    padding: 20px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hk-skill-item:hover {
    transform: translateY(-5px) rotate(1deg);
    background-color: #ffde00;
    box-shadow: 8px 8px 0px #000;
}

.hk-icon-box {
    width: 60px;
    height: 60px;
    border: 2px solid #000;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f4f4f4;
    margin-right: 20px;
    overflow: hidden;
}

.hk-icon-box img {
    width: 35px;
    height: auto;
}

.hk-skill-info h3 {
    font-family: 'Archivo Black', sans-serif;
    font-size: 1.1rem;
    margin: 0;
    text-transform: uppercase;
}

.hk-tag {
    font-size: 0.7rem;
    font-weight: 900;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== PROJECTS SECTION ===== */
.section-portfolio {
    padding: 80px 0;
    width: 100%;
}

.container-portfolio {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

.title-centered {
    text-align: center;
    margin-bottom: 50px;
    width: 100%;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.projects-grid .card {
    grid-column: span 2;
    display: flex;
    flex-direction: column;
    border: 3px solid #000;
    border-radius: 20px;
    background: #fff;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.projects-grid .card:hover {
    transform: translateY(-10px);
}

.projects-grid .card-image {
    height: 250px;
    border-bottom: 3px solid #000;
    overflow: hidden;
}

.projects-grid .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.projects-grid .card-image:hover img {
    transform: scale(1.05);
}

.card-content {
    padding: 20px;
    text-align: left;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-content p {
    font-size: 0.9rem;
    color: #333;
    line-height: 1.5;
    margin-bottom: 25px;
    flex-grow: 1;
}

.btn-yellow {
    background: #ffde00;
    width: fit-content;
    padding: 10px 25px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 900;
    border: 2px solid #000;
    transition: 0.2s;
    text-decoration: none;
    color: #090909;
}

.btn-yellow:hover {
    background: #000;
    color: #fff;
}

/* Specific card positioning */
.projects-grid .card:nth-child(4),
.projects-grid .card:nth-child(5) {
    grid-column: span 2;
}

/* ===== CONTACT SECTION ===== */
.contact-section-humankind {
    padding: 100px 10%;
    background-color: #090909;
}

.contact-hk-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.hk-card {
    background: #FFFFFF;
    border: 3px solid #000;
    border-radius: 25px;
    padding: 40px;
    color: #000;
}

.hk-card h3 {
    font-weight: 900;
    font-size: 1.5rem;
    margin-bottom: 30px;
}

.hk-social-circles {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.hk-social-circles a {
    width: 45px;
    height: 45px;
    border: 3px solid #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 1.2rem;
    transition: 0.2s ease-in-out;
    text-decoration: none;
}

.hk-social-circles a:hover {
    background: #ffde00;
    transform: scale(1.1);
}

.hk-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.hk-input-group {
    margin-bottom: 20px;
}

.hk-input-group label {
    display: block;
    font-weight: 900;
    font-size: 0.8rem;
    margin-bottom: 8px;
}

.hk-input-group input,
.hk-input-group textarea {
    width: 100%;
    padding: 15px;
    border: 3px solid #000;
    border-radius: 15px;
    background: #f4f4f4;
    font-family: inherit;
    font-weight: bold;
    color: #000;
}

.contact-container .hk-title-wrapper h2 {
    color: white !important;
}

.hk-submit-btn {
    width: 100%;
    padding: 18px;
    background: #ffde00;
    border: 3px solid #000;
    border-radius: 50px;
    font-weight: 900;
    cursor: pointer;
    transition: 0.2s;
    margin-top: 10px;
}

.hk-submit-btn:hover {
    background: #000;
    color: #fff;
    transform: translateY(-3px);
}

/* ===== FOOTER ===== */
.footer-simple {
    background-color: #090909;
    color: #ffffff;
    padding: 43px 20px;
    border-top: 1px solid #1a1a1a;
    width: 100%;
    box-sizing: border-box;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-copyright {
    color: #4b5563;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    text-align: center;
    line-height: 1.5;
}

/* ===== RESPONSIVE DESIGN (grouped at the end) ===== */

/* Tablet & Medium Screens (max-width: 1335px) */
@media (max-width: 1335px) {
    nav {
        padding: 20px 5%;
    }

    .nav-links a {
        margin: 0 10px;
        font-size: 0.9rem;
    }
}

@media (max-width: 1200px) and (min-width: 993px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 900px;
        margin: 0 auto;
    }

    .projects-grid .card,
    .projects-grid .card:nth-child(4),
    .projects-grid .card:nth-child(5) {
        grid-column: span 1;
    }
}

@media (max-width: 1100px) {
    .hero-creative {
        height: auto;
        min-height: 80vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 50px 20px;
    }

    .hero-title-main {
        font-size: clamp(4rem, 15vw, 9rem);
        line-height: 0.85;
        text-align: center;
        width: 100%;
        margin-bottom: 20px;
    }

    .hero-badge {
        position: relative;
        transform: rotate(-3deg);
        margin: 20px auto;
        display: table;
    }

    .squiggle-1,
    .squiggle-2,
    .circle-deco {
        display: none;
    }

    .hero-bg-text {
        font-size: 25vw;
        opacity: 0.05;
    }

    .scroll-line {
        position: fixed;
    }

    .nav-links {
        gap: 15px;
    }

    .nav-links a {
        font-size: 0.85rem;
        padding: 8px 12px;
    }
}

@media (max-width: 1084px) {
    .hero-img-container {
        width: 80%;
        max-width: 450px;
        height: auto;
        top: 55%;
    }

    .hero-img-container img {
        width: 100%;
        height: auto;
        object-fit: contain;
    }
}

@media (max-width: 1024px) {
    nav {
        flex-direction: column;
        gap: 15px;
    }

    .logo {
        font-size: 1.1rem;
    }
}

@media (max-width: 992px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .projects-grid .card,
    .projects-grid .card:nth-child(4),
    .projects-grid .card:nth-child(5) {
        grid-column: span 1;
    }

    .container-portfolio {
        padding: 0 20px;
    }

    .contact-hk-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 850px) {
    .section-humankind {
        padding: 60px 15px;
    }

    .hk-about-card {
        grid-template-columns: 1fr;
    }

    .hk-image-column {
        border-right: none;
        border-bottom: 3px solid #000;
        height: 300px;
    }

    .hk-text-column {
        padding: 30px 20px;
    }

    .hk-btn {
        justify-content: center;
    }

    .hk-section-title {
        font-size: 2rem;
        text-align: center;
    }

    .hk-info-box {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hk-actions {
        flex-direction: column;
        width: 100%;
    }

    .hk-btn {
        width: 100%;
    }

    .hero-creative {
        min-height: 20vh !important;
        height: auto !important;
        padding-top: 50px !important;
        padding-bottom: 60px !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .hero-title-main {
        font-size: 14vw !important;
        position: relative !important;
        z-index: 2 !important;
    }

    .hero-badge {
        position: relative !important;
        left: 0 !important;
        margin: 10px auto !important;
        display: table !important;
        transform: rotate(-3deg) !important;
    }

    nav {
        flex-direction: column;
        gap: 20px;
    }

    .nav-links {
        justify-content: center;
        width: 100%;
    }
}

/* --- FIX SPÉCIFIQUE ZONE DE TRANSITION (886px à 768px) --- */
@media (max-width: 886px) and (min-width: 768px) {
    .hk-about-card {
        display: flex !important;
        /* On force le maintien du côte à côte */
        align-items: stretch !important;
        /* Force les deux colonnes à avoir la même hauteur */
    }

    .hk-image-column {
        flex: 1 !important;
        height: auto !important;
        /* On laisse la hauteur s'adapter au texte d'à côté */
        min-height: 100% !important;
    }

    .hk-about-image {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        /* L'image s'étire pour remplir TOUTE la hauteur du texte */
        object-position: center;
    }

    .hk-text-column {
        flex: 1.2 !important;
        /* On donne un peu plus de place au texte */
        padding: 30px !important;
        /* On réduit un peu le padding pour gagner de la place */
    }
}

@media (max-width: 768px) {
    .nav-links {
        flex-direction: column;
    }

    .hk-image-column {
        width: 100% !important;
        height: 450px !important;
        /* On augmente la hauteur pour voir plus de photo */
        min-height: auto !important;
        border-right: none !important;
        border-bottom: 3px solid #000 !important;
    }

    .hero-creative {
        height: 70vh;
    }

    .hk-about-image {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        /* AJUSTEMENT ICI : */
        object-position: center 20%;
        /* Remonte l'image pour ne pas couper le visage */
    }

    .hk-about-card {
        flex-direction: column !important;
        /* On empile bien les éléments */
    }

    .hero-title-main {
        font-size: 15vw;
        line-height: 1;
    }

    .hero-badge {
        transform: rotate(0deg) translateX(0);
        margin-top: 10px;
        font-size: 0.9rem;
        padding: 8px 16px;
        box-shadow: 4px 4px 0px #fff;
    }

    .squiggle-1 {
        width: 150px;
        left: -20px;
        top: -30px;
    }

    .hk-image-column {
        height: 300px;
        min-height: auto;
    }

    .footer-simple {
        padding: 40px 20px;
    }

    .footer-copyright {
        font-size: 10px;
        letter-spacing: 0.2em;
    }
}

@media (max-width: 650px) {
    .projects-grid {
        grid-template-columns: 1fr;
        padding: 0 15px;
    }

    .projects-grid .card {
        grid-column: span 1;
    }

    .hk-huge-title {
        font-size: 2.2rem;
        margin-bottom: 40px;
    }
}

/* --- AJUSTEMENT PRÉCIS : 505px à 768px --- */
@media (max-width: 768px) and (min-width: 505px) {
    .hk-about-card {
        flex-direction: column !important;
        max-width: 95% !important;
        /* On donne un peu plus de largeur à la carte */
        margin: 0 auto !important;
    }

    .hk-image-column {
        width: 100% !important;
        /* Hauteur augmentée pour cette tranche */
        border-right: none !important;
        border-bottom: 4px solid #000 !important;
    }

    .hk-about-image {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        /* On descend légèrement le focus pour bien centrer le visage */
        object-position: center 10% !important;
    }

    .hk-text-column {
        padding: 40px !important;
    }
}

/* --- AJUSTEMENT POUR LES ÉCRANS SOUS 505px --- */
@media (max-width: 504px) {
    .hk-image-column {
        height: 400px !important;
        /* On réduit la hauteur pour les petits écrans */
    }

    .hk-about-image {
        object-position: center 5% !important;
    }
}

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

    .hero-img-container {
        width: 90%;
        top: 50%;
    }
}

@media (max-width: 480px) {

    .hero-img-container {
        max-width: 280px !important;
    }
}

/* Medium screens between 769px and 850px */
@media (min-width: 769px) and (max-width: 850px) {
    .hero-title-main {
        font-size: 14vw;
        line-height: 0.9;
    }

    .hero-badge {
        transform: rotate(0deg) translateX(0);
        margin-top: 10px;
        display: inline-flex;
    }

    .hero-bg-text {
        font-size: 20vw;
    }

    .squiggle-1 {
        width: 180px;
        left: -30px;
    }
}

/* --- AJUSTEMENT SPÉCIFIQUE : 469px à 768px --- */
@media (max-width: 768px) and (min-width: 469px) {
    .hk-about-card {
        flex-direction: column !important;
        /* On empile les éléments */
    }

    .hk-image-column {
        width: 100% !important;
        height: 500px !important;
        /* On donne une hauteur fixe généreuse pour cette tranche */
        border-right: none !important;
        border-bottom: 3px solid #000 !important;
    }

    .hk-about-image {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        /* On ajuste la position pour bien voir le visage malgré le format paysage du conteneur */
        object-position: center 15% !important;
    }

    .hk-text-column {
        padding: 40px 30px !important;
        /* Un peu plus d'espace pour le texte */
    }
}

/* --- AJUSTEMENT : 377px à 469px --- */
@media (max-width: 469px) and (min-width: 377px) {
    .hk-about-card {
        flex-direction: column !important;
    }

    .hk-image-column {
        width: 100% !important;
        /* Hauteur optimale pour cette largeur d'écran */
        border-right: none !important;
        border-bottom: 3px solid #000 !important;
    }

    .hk-about-image {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        /* On remonte un peu l'image pour bien cadrer le regard */
        object-position: center 10% !important;
    }

    .hk-text-column {
        padding: 25px 20px !important;
        /* On réduit le padding pour que le texte ne soit pas trop étiré */
    }

    .hk-section-title {
        font-size: 2.2rem !important;
        /* On réduit légèrement le titre pour éviter qu'il ne s'affiche sur trop de lignes */
    }
}

/* --- AJUSTEMENT POUR VOIR L'IMAGE ENTIÈRE : 557px à 769px --- */
@media (max-width: 769px) and (min-width: 557px) {
    .hk-about-card {
        flex-direction: column !important;
        /* Empilement vertical */
    }

    .hk-image-column {
        width: 100% !important;
        height: auto !important;
        /* La hauteur s'adapte à l'image */
        min-height: 700px !important;
        background-color: #000 !important;
        /* Fond noir pour boucher si l'image est étroite */
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        border-right: none !important;
        border-bottom: 3px solid #000 !important;
    }

    .hk-about-image {
        width: 100% !important;
        height: 100% !important;
        /* MODIFICATION MAJEURE : */
        object-fit: contain !important;
        /* L'IMAGE EST AFFICHÉE EN ENTIER */
        background-color: #000 !important;
    }
}

@media (max-width: 468px) {
    .hk-image-column {
        height: 400px !important;
    }
}

/* Large tablets between 992px and 1200px */
@media (max-width: 1200px) and (min-width: 993px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 900px;
        margin: 0 auto;
    }

    .projects-grid .card,
    .projects-grid .card:nth-child(4),
    .projects-grid .card:nth-child(5) {
        grid-column: span 1;
    }
}
/* ===== AJUSTEMENTS ULTRA-MOBILE (SOUS 400PX) ===== */
@media (max-width: 400px) {
    /* Navigation */
    .logo {
        font-size: 1rem;
    }
    
    .nav-links {
        gap: 10px;
    }

    /* Hero Section */
    .hero-creative {
        padding: 40px 10px !important;
    }

    .hero-title-main {
        font-size: 14vw !important; /* Ajustement pour que PORTFOLIO ne déborde pas */
        letter-spacing: -0.02em;
    }

    .hero-badge {
        font-size: 0.8rem;
        padding: 8px 12px;
        transform: rotate(-2deg);
        margin-top: 5px !important;
    }

    /* Section About */
    .hk-section-title {
        font-size: 1.8rem !important;
        margin-bottom: 15px;
    }

    .hk-description {
        font-size: 0.95rem;
    }

    .hk-image-column {
        height: 350px !important; /* Un peu moins haut pour laisser de la place au texte */
    }

    .hk-text-column {
        padding: 25px 15px !important;
    }

    .hk-info-box {
        gap: 10px;
        margin-bottom: 25px;
    }

    /* Boutons */
    .hk-actions {
        gap: 10px;
    }

    .hk-btn {
        padding: 12px 20px;
        font-size: 0.75rem;
    }

    /* Skills & Projects Titles */
    .hk-huge-title {
        font-size: 1.8rem !important;
        padding-bottom: 20px;
    }

    .hk-subtitle {
        font-size: 0.9rem;
    }

    /* Skills Grid */
    .hk-skill-item {
        padding: 15px;
    }

    .hk-icon-box {
        width: 50px;
        height: 50px;
        margin-right: 15px;
    }

    /* Projects */
    .container-portfolio {
        padding: 0 15px;
    }

    .card-content h3 {
        font-size: 1.1rem;
    }

    /* Contact Form */
    .hk-card {
        padding: 25px 15px;
    }

    .hk-form-row {
        grid-template-columns: 1fr; /* Force le nom et l'email l'un sur l'autre */
        gap: 0;
    }

    .hk-submit-btn {
        padding: 15px;
        font-size: 0.8rem;
    }

    /* Footer */
    .footer-copyright {
        font-size: 9px;
        letter-spacing: 0.15em;
    }
}
/* ===== OPTIMISATION EXTRÊME : 300px à 350px ===== */
@media (max-width: 350px) {
    /* Navigation ultra-compacte */
    nav {
        padding: 15px 10px !important;
    }
    
    .logo {
        font-size: 0.85rem !important;
        text-align: center;
        width: 100%;
        margin-bottom: 10px;
    }

    .nav-links {
        justify-content: center;
        gap: 8px !important;
    }

    .nav-links a {
        font-size: 0.75rem !important;
        margin: 0 5px !important;
        padding: 5px 0 !important;
    }

    .btn-black {
        padding: 8px 15px !important;
        font-size: 0.7rem !important;
    }

    /* Hero Section - Réduction massive des textes */
    .hero-title-main {
        font-size: 13vw !important; /* Pour que PORTFOLIO tienne sur une ligne */
        letter-spacing: -0.01em !important;
    }

    .hero-badge {
        font-size: 0.7rem !important;
        padding: 6px 10px !important;
        transform: rotate(0deg) !important; /* On remet droit pour gagner de la place */
        margin-top: 0 !important;
        box-shadow: 3px 3px 0px #fff !important;
    }

    /* Section À Propos */
    .hk-section-title {
        font-size: 1.5rem !important;
    }

    .hk-description {
        font-size: 0.85rem !important;
        text-align: left;
    }

    .hk-image-column {
        height: 280px !important; /* Image moins haute */
    }

    .hk-info-item p, .hk-info-item a {
        font-size: 0.9rem !important;
    }

    /* Grille de compétences (Skills) */
    .hk-skill-item {
        padding: 12px !important;
        flex-direction: column; /* On empile l'icône et le texte */
        text-align: center;
    }

    .hk-icon-box {
        margin-right: 0 !important;
        margin-bottom: 10px;
        width: 45px !important;
        height: 45px !important;
    }

    /* Projets */
    .hk-huge-title {
        font-size: 1.4rem !important;
    }

    .card-content {
        padding: 15px !important;
    }

    .card-content h3 {
        font-size: 1rem !important;
    }

    /* Formulaire de Contact */
    .hk-card {
        padding: 20px 10px !important;
        border-radius: 15px !important;
    }

    .hk-input-group input, 
    .hk-input-group textarea {
        padding: 12px !important;
        font-size: 0.85rem !important;
    }

    .hk-submit-btn {
        font-size: 0.75rem !important;
        padding: 15px 10px !important;
    }

    /* Bouton Back to Top */
    .hk-back-to-top {
        width: 45px !important;
        height: 45px !important;
        bottom: 15px !important;
        right: 15px !important;
    }
}