/* ==========================================================================
   1. VARIABLES ET CONFIGURATION
   ========================================================================== */

:root {
    /* Couleurs */
    --color-primary: rgba(235, 93, 29, 1);
    --color-primary-light: rgba(235, 93, 29, 0.8);
    --color-primary-lighter: rgba(235, 93, 29, 0.3);
    --color-primary-dark: rgba(235, 93, 29, 0.9);
    --color-bg: #000000;
    --color-bg-secondary: #0e0e0e;
    --color-bg-card: rgba(20, 20, 20, 0.5);
    --color-text: #fff;
    --color-text-secondary: #b0b0b0;
    --color-text-muted: #787878;

    /* Dimensions */
    --vh: 1vh;
    --safe-area-inset-top: env(safe-area-inset-top, 0px);
    --safe-area-inset-bottom: env(safe-area-inset-bottom, 0px);
    --container-padding: 5vw;
    --border-radius-sm: 5px;
    --border-radius-md: 10px;
    --border-radius-lg: 20px;

    /* Transitions */
    --transition-fast: 0.3s ease;
    --transition-medium: 0.5s ease;
    --transition-slow: 1s cubic-bezier(0.645, 0.045, 0.355, 1);

    /* Shadows */
    --shadow-sm: 0 5px 15px rgba(235, 93, 29, 0.08);
    --shadow-md: 0 10px 30px rgba(235, 93, 29, 0.1);

    /* Typographie */
    --font-family-primary: "Poppins", sans-serif;
    --font-family-heading: "Soliden Trial Bold", sans-serif;
    --font-family-light: "Neue Plak Extended Light", sans-serif;
    --font-family-regular: "Soliden Trial Regular", sans-serif;
}

/* ==========================================================================
   2. RESET ET STYLES GÉNÉRAUX
   ========================================================================== */

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

body,
html {
    height: 100%;
    background-color: var(--color-bg);
    font-family: var(--font-family-primary);
    overflow: hidden;
    color: var(--color-text);
}

/* ==========================================================================
   3. LAYOUT ET STRUCTURE
   ========================================================================== */

.scroll-container {
    display: flex;
    width: 100%;
    height: calc(100 * var(--vh) - var(--safe-area-inset-bottom));
    padding-top: var(--safe-area-inset-top);
    padding-bottom: max(var(--safe-area-inset-bottom), 20px);
    transition: transform var(--transition-slow);
    will-change: transform;
}

.section {
    min-width: 100vw;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    height: 100%;
    padding: var(--container-padding);
    position: relative;
    animation: fadeIn 2s ease forwards;
}

/* Titre de section commun */
.section-title {
    font-family: var(--font-family-heading);
    font-size: 4rem;
    margin-bottom: 60px;
    color: var(--color-text);
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

/* Effets de défilement */
.scroll-hint {
    position: absolute;
    bottom: 5vh;
    right: 5vw;
    display: flex;
    align-items: center;
    color: var(--color-text-muted);
    opacity: 0;
    animation: fadeIn 2s ease 0.7s forwards, floating3D 5s ease-in-out infinite;
}

.scroll-hint .scroll-arrow {
    width: 100px;
    height: 100px;
    cursor: pointer;
    opacity: 0.5;
}

/* Navigation entre sections */
.navigation-controls {
    position: relative;
    width: 100%;
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
}

/* Style commun pour les boutons de navigation */
.nav-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    background: transparent;
    border: none;
    color: var(--color-text-secondary);
    font-family: var(--font-family-light);
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    padding: 8px 0;
    transition: all var(--transition-fast);
}

.nav-button::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-primary-light);
    transition: width var(--transition-fast);
}

.nav-button:hover {
    color: var(--color-primary-dark);
}

.nav-button:hover::after {
    width: 100%;
}

/* Style spécifique pour le bouton précédent */
.back-button {
    position: absolute;
    left: 0;
    top: 10px;
}

.back-arrow {
    width: 20px;
    height: 20px;
    transform: rotate(180deg);
    margin-right: 8px;
    opacity: 0.6;
    transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.back-button:hover .back-arrow {
    transform: rotate(180deg) translateX(-3px);
    opacity: 0.9;
}

/* Style spécifique pour le bouton suivant */
.next-projects-contact {
    position: absolute;
    right: 0;
    top: 10px;
}

.next-button {
    text-align: right;
}

.next-arrow {
    width: 20px;
    height: 20px;
    margin-left: 8px;
    opacity: 0.6;
    transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.next-button:hover .next-arrow {
    transform: translateX(3px);
    opacity: 0.9;
}

/* Effet de lumière du curseur */
.cursor-light {
    position: fixed;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle at center,
            rgba(235, 93, 29, 0.15) 0%,
            rgba(235, 93, 29, 0.1) 20%,
            rgba(235, 93, 29, 0.05) 40%,
            rgba(235, 93, 29, 0.02) 60%,
            rgba(235, 93, 29, 0) 80%);
    opacity: 0;
    transition: opacity var(--transition-fast), width 0.2s ease, height 0.2s ease;
    z-index: 0;
    mix-blend-mode: screen;
}

.cursor-light-active {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle at center,
            rgba(235, 93, 29, 0.25) 0%,
            rgba(235, 93, 29, 0.15) 20%,
            rgba(235, 93, 29, 0.08) 40%,
            rgba(235, 93, 29, 0.03) 60%,
            rgba(235, 93, 29, 0) 80%);
}

/* ==========================================================================
   4. SECTION ACCUEIL
   ========================================================================== */

h1 {
    color: var(--color-text-muted);
    font-family: "Neue Plak Extended Thin";
    font-size: 2rem;
    animation: fadeIn 2s ease forwards, floating3D 20s ease-in-out infinite;
}

h1 .small {
    color: var(--color-text);
    font-weight: 700;
}

.hero {
    position: relative;
    perspective: 800px;
}

.hero h2 {
    --spot-x: 50%;
    --spot-y: 50%;
    --spot2-x: 30%;
    --spot2-y: 70%;
    font-size: 14vw;
    font-family: var(--font-family-heading);
    position: relative;
    color: #0f0f0f;
    user-select: none;
    transform-style: preserve-3d;
    z-index: 1;
}

/* Effet de grain renforcé UNIQUEMENT à l'intérieur du texte */
.hero h2::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    background-size: 60px 60px;
    opacity: 1;
    mix-blend-mode: overlay;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    z-index: 1;
}

/* Effet de spot lumineux masqué par le texte */
.hero h2::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at var(--spot-x) var(--spot-y),
            var(--color-primary) 0%,
            rgba(235, 93, 29, 0.8) 5%,
            rgba(235, 93, 29, 0.4) 15%,
            rgba(235, 93, 29, 0.1) 25%,
            rgba(235, 93, 29, 0) 35%),
        radial-gradient(circle at var(--spot2-x) var(--spot2-y),
            rgba(235, 93, 29, 0.9) 0%,
            rgba(235, 93, 29, 0.6) 5%,
            rgba(235, 93, 29, 0.3) 15%,
            rgba(235, 93, 29, 0.05) 30%,
            rgba(235, 93, 29, 0) 40%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

/* ==========================================================================
   5. SECTION ABOUT
   ========================================================================== */

.about-container {
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: 1200px;
    height: 100%;
    margin: 0 auto;
    padding: 5%;
}

.about-container .blob-wrapper {
    flex-shrink: 0;
    margin: 0 auto;
}

.about-content {
    max-width: 500px;
}

.about-content h2 {
    font-family: var(--font-family-heading);
    font-size: 3.5rem;
    margin: 0;
    color: var(--color-text);
}

.tagline {
    color: var(--color-primary-light);
    font-family: var(--font-family-light);
    font-size: 1.2rem;
    margin: 0.5rem 0 1.5rem;
}

.bio {
    font-family: var(--font-family-light);
    line-height: 1.6;
    margin-bottom: 2rem;
    color: var(--color-text-secondary);
}

.skills-container h3 {
    font-family: var(--font-family-regular);
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Style générique des tags */
.skill-tag {
    background: var(--color-bg);
    border: 1px solid var(--color-primary-lighter);
    color: var(--color-primary-dark);
    padding: 6px 12px;
    border-radius: var(--border-radius-lg);
    font-size: 0.9rem;
    transition: all var(--transition-fast);
    user-select: none;
}

.skill-tag:hover {
    background: rgba(235, 93, 29, 0.2);
    transform: translateY(-2px);
    cursor: pointer;
}

/* Variantes de couleurs pour les tags */
.skill-tag.green {
    border: 1px solid #42b883a0;
    color: #42b883df;
}

.skill-tag.green:hover {
    background-color: #42b8832f;
}

.skill-tag.red {
    border: 1px solid #b84242a0;
    color: #b84242df;
}

.skill-tag.red:hover {
    background-color: #b842422f;
}

.skill-tag.yellow {
    border: 1px solid #b8b242a0;
    color: #b8b242df;
}

.skill-tag.yellow:hover {
    background-color: #b4b8422f;
}

.skill-tag.white {
    border: 1px solid #b2b2b2a0;
    color: #afafafdf;
}

.skill-tag.white:hover {
    background-color: #b2b2b22f;
}

.skill-tag.blue {
    border: 1px solid #427fb8a0;
    color: #4277b8df;
}

.skill-tag.blue:hover {
    background-color: #4289b82f;
}

.go-projects {
    position: absolute;
    bottom: 5vh;
    right: 5vw;
    color: white;
    font-size: 20px;
    cursor: pointer;
    user-select: none;
    animation: fadeIn 2s ease 0.7s forwards, floating3D 5s ease-in-out infinite;
}

.next-hint {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    animation: fadeIn 2s ease 0.7s forwards, floating3D 5s ease-in-out infinite;
}

.next-hint:hover .next-arrow {
    opacity: 0.8;
    transform: translateX(5px);
}

/* ==========================================================================
   6. SECTION PROJETS
   ========================================================================== */

/* Style de la section projets pour le défilement vertical */
.projects-section {
    overflow-y: auto !important;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(235, 93, 29, 0.3) rgba(0, 0, 0, 0.1);
}

/* Style de la barre de défilement */
.projects-section::-webkit-scrollbar {
    width: 6px;
}

.projects-section::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

.projects-section::-webkit-scrollbar-thumb {
    background-color: rgba(235, 93, 29, 0.3);
    border-radius: 10px;
}

.projects-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5% 5% 10%;
    min-height: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    animation: fadeIn 2s ease forwards;
}

.projects-container .section-title {
    font-size: 4rem;
    margin-bottom: 60px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    width: 100%;
}

/* Cartes de projets */
.project-card {
    background-color: var(--color-bg-card);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.project-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.project-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform var(--transition-fast);
}

.project-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #1c1c1c, #0a0a0a);
    position: relative;
    overflow: hidden;
}

.project-placeholder::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent,
            rgba(235, 93, 29, 0.1),
            transparent);
    transform: rotate(45deg);
    animation: shimmer 3s infinite;
}

.project-info {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-info h3 {
    font-family: var(--font-family-regular);
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--color-text);
}

.project-tech {
    color: var(--color-primary-light);
    font-family: var(--font-family-light);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.project-desc {
    font-family: var(--font-family-light);
    line-height: 1.5;
    color: var(--color-text-secondary);
    margin-bottom: 20px;
    flex-grow: 1;
}

.project-links {
    display: flex;
    gap: 15px;
    margin-top: auto;
}

.project-link {
    display: inline-block;
    padding: 8px 16px;
    border-radius: var(--border-radius-lg);
    background-color: rgba(235, 93, 29, 0.2);
    color: var(--color-primary-dark);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}

.project-link:hover {
    background-color: rgba(235, 93, 29, 0.3);
    transform: translateY(-2px);
}

.project-link.secondary {
    background-color: transparent;
    border: 1px solid var(--color-primary-lighter);
}

.project-link.secondary:hover {
    background-color: rgba(235, 93, 29, 0.1);
}

/* ==========================================================================
   7. SECTION CONTACT
   ========================================================================== */

.contact-section {
    overflow-y: auto !important;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(235, 93, 29, 0.3) rgba(0, 0, 0, 0.1);
}

.contact-section::-webkit-scrollbar {
    width: 6px;
}

.contact-section::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

.contact-section::-webkit-scrollbar-thumb {
    background-color: rgba(235, 93, 29, 0.3);
    border-radius: 10px;
}

.contact-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 5% 5% 10%;
    min-height: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    animation: fadeIn 2s ease forwards;
}

.contact-container .section-title {
    font-size: 2rem;
    margin-bottom: 60px;
}

.contact-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-intro {
    font-family: var(--font-family-light);
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--color-text-secondary);
    margin-bottom: 30px;
}

/* Formulaire de contact */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-family: var(--font-family-light);
    font-size: 1rem;
    color: var(--color-text);
}

.optional {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.contact-form input,
.contact-form textarea {
    background-color: var(--color-bg-secondary);
    border: 1px solid var(--color-primary-lighter);
    border-radius: var(--border-radius-sm);
    padding: 12px 15px;
    color: var(--color-text);
    font-family: var(--font-family-light);
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-primary-light);
    box-shadow: 0 0 0 2px rgba(235, 93, 29, 0.1);
}

.contact-form textarea {
    resize: vertical;
    min-height: 150px;
}

.submit-button {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(235, 93, 29, 0.2);
    color: var(--color-primary-dark);
    border: none;
    border-radius: 30px;
    padding: 14px 30px;
    font-family: var(--font-family-light);
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
    margin-top: 10px;
    align-self: flex-start;
}

.submit-button:hover {
    background-color: rgba(235, 93, 29, 0.3);
    transform: translateY(-2px);
}

.button-text {
    opacity: 1;
    transition: opacity var(--transition-fast);
}

.button-loader {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(235, 93, 29, 0.3);
    border-top: 2px solid var(--color-primary-dark);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    opacity: 0;
    pointer-events: none;
}

.loading .button-text {
    opacity: 0;
}

.loading .button-loader {
    opacity: 1;
}

.form-status {
    margin-top: 20px;
    font-family: var(--font-family-light);
    font-size: 1rem;
    width: 100%;
}

.success-message,
.error-message {
    padding: 15px 20px;
    border-radius: var(--border-radius-sm);
    opacity: 0;
    transition: opacity var(--transition-medium);
    display: none;
}

.success-message {
    background-color: rgba(66, 184, 131, 0.15);
    color: #42b883;
    border: 1px solid rgba(66, 184, 131, 0.3);
}

.error-message {
    background-color: rgba(184, 66, 66, 0.15);
    color: #b84242;
    border: 1px solid rgba(184, 66, 66, 0.3);
}

.show-success .success-message {
    opacity: 1;
    display: block;
}

.show-error .error-message {
    opacity: 1;
    display: block;
}

/* ==========================================================================
   8. ANIMATIONS
   ========================================================================== */

@keyframes morph {
    0% {
        clip-path: path("M 75 0 Q 150 0 150 75 Q 150 150 75 150 Q 0 150 0 75 Q 0 0 75 0 Z");
    }

    33% {
        clip-path: path("M 65 0 Q 155 20 150 65 Q 140 140 75 150 Q 20 140 0 75 Q 10 10 65 0 Z");
    }

    66% {
        clip-path: path("M 70 0 Q 160 15 145 70 Q 140 140 80 150 Q 15 145 0 75 Q 5 5 70 0 Z");
    }

    100% {
        clip-path: path("M 75 0 Q 150 0 150 75 Q 150 150 75 150 Q 0 150 0 75 Q 0 0 75 0 Z");
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

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

@keyframes bounceRight {

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

    50% {
        transform: translateX(10px);
    }
}

@keyframes floating3D {
    0% {
        transform: translateZ(0) rotateX(0deg) rotateY(0deg) rotateZ(0deg);
    }

    15% {
        transform: translateZ(15px) translateY(-5px) rotateX(2deg) rotateY(3deg) rotateZ(0.5deg);
    }

    30% {
        transform: translateZ(5px) translateX(8px) rotateX(-1deg) rotateY(1deg) rotateZ(0deg);
    }

    45% {
        transform: translateZ(-10px) translateY(-3px) rotateX(-2deg) rotateY(-2deg) rotateZ(-0.5deg);
    }

    60% {
        transform: translateZ(20px) translateX(-6px) rotateX(1deg) rotateY(-3deg) rotateZ(0.2deg);
    }

    75% {
        transform: translateZ(10px) translateY(5px) rotateX(3deg) rotateY(1deg) rotateZ(-0.5deg);
    }

    90% {
        transform: translateZ(-5px) translateX(4px) rotateX(0deg) rotateY(2deg) rotateZ(0.2deg);
    }

    100% {
        transform: translateZ(0) rotateX(0deg) rotateY(0deg) rotateZ(0deg);
    }
}

@keyframes shimmer {
    0% {
        transform: translate(-50%, -50%) rotate(45deg);
    }

    100% {
        transform: translate(150%, 150%) rotate(45deg);
    }
}

@keyframes fadeParticles {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 0.8;
        transform: scale(1);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ==========================================================================
   9. MEDIA QUERIES
   ========================================================================== */

/* Tablettes et petits écrans */
@media (max-width: 768px) {

    .about-content,
    .about-container {
        flex-direction: column;
        gap: 4rem;
    }

    .section-title {
        font-size: 3rem;
    }

    .hero h2 {
        font-size: 16vw;
    }

    .about-content h2 {
        font-size: 2.8rem;
    }

    .bio {
        font-size: 0.95rem;
    }

    .go-projects {
        font-size: 18px;
        right: 10vw;
        bottom: 4vh;
    }

    /* Section projets */
    .projects-container .section-title {
        font-size: 3rem;
        margin-bottom: 40px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-card {
        max-width: 100%;
    }

    .navigation-controls {
        margin-bottom: 50px;
    }

    .nav-button {
        font-size: 0.85rem;
    }

    .back-arrow,
    .next-arrow {
        width: 18px;
        height: 18px;
    }

    /* Section contact */
    .contact-container {
        padding: 5% 5% 15%;
    }

    .contact-intro {
        font-size: 1.1rem;
    }

    .submit-button {
        width: 100%;
    }

    /* Taille blob */
    .blob-wrapper {
        width: 300px;
        height: 300px;
    }
}

/* Smartphones */
@media (max-width: 480px) {

    /* Ajustements généraux */
    .container {
        padding: 4vw;
    }

    /* Section accueil */
    h1 {
        font-size: 1.5rem;
    }

    .hero h2 {
        font-size: 15vw;
    }

    .scroll-hint .scroll-arrow {
        width: 70px;
        height: 70px;
    }

    /* Section about */
    .about-container {
        padding: 3%;
        margin-left: 20px;
        margin-right: 20px;
        gap: 30px;
    }

    .about-content h2 {
        font-size: 2.2rem;
    }

    .tagline {
        font-size: 1rem;
        margin: 0.3rem 0 1rem;
    }

    .bio {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 1.5rem;
    }

    .skills-container h3 {
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
    }

    .skill-tag {
        padding: 4px 10px;
        font-size: 0.8rem;
        border-radius: 15px;
    }

    .go-projects,
    .next-hint {
        display: none;
    }

    /* Section projets */
    .projects-container .section-title {
        font-size: 2.5rem;
        margin-bottom: 30px;
    }

    .navigation-controls {
        margin-bottom: 40px;
        position: relative;
        padding-top: 60px;
    }

    .contact-container .section-title {
        margin-bottom: 0 !important;
    }

    .back-button {
        top: 15px;
        left: 0;
        position: absolute;
    }

    .next-projects-contact {
        top: 15px;
        right: 0;
        position: absolute;
    }

    .nav-button {
        font-size: 0.8rem;
    }

    .back-arrow,
    .next-arrow {
        width: 16px;
        height: 16px;
    }

    .section-title {
        margin-top: 0;
        font-size: 2.2rem;
    }

    .project-info h3 {
        font-size: 1.3rem;
    }

    .project-tech {
        font-size: 0.8rem;
    }

    .project-desc {
        font-size: 0.9rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .project-card {
        max-width: 100%;
        min-height: auto;
    }

    .project-image {
        height: 160px;
    }

    .project-image img {
        height: 160px;
    }

    .project-info {
        padding: 20px;
    }

    .projects-container {
        padding: 5% 5% 20%;
    }

    /* Section contact */
    .section {
        overflow-y: auto !important;
        overflow-x: hidden;
        scrollbar-width: thin;
        scrollbar-color: rgba(235, 93, 29, 0.3) rgba(0, 0, 0, 0.1);
    }

    .contact-intro {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .form-group label {
        font-size: 0.9rem;
    }

    .contact-form input,
    .contact-form textarea {
        padding: 10px 12px;
        font-size: 0.9rem;
    }

    .submit-button {
        padding: 12px 25px;
        font-size: 0.9rem;
    }

    .form-status {
        font-size: 0.9rem;
    }
}

/* Très petits écrans */
@media (max-width: 360px) {
    .hero h2 {
        font-size: 14vw;
    }

    .about-content h2 {
        font-size: 1.8rem;
    }

    .tagline {
        font-size: 0.9rem;
    }

    .skill-tag {
        padding: 3px 8px;
        font-size: 0.75rem;
    }

    .go-projects {
        font-size: 14px;
    }

    .project-image {
        height: 140px;
    }

    .project-image img {
        height: 140px;
    }

    .project-info {
        padding: 15px;
    }

    .project-links {
        flex-direction: column;
        gap: 10px;
    }

    .project-link {
        text-align: center;
    }
}