@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

/* --- Variables de Conception & Thème --- */
:root {
    --bg-primary: #07090e;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --primary-color: #3b82f6;
    --accent-color: #2dd4bf;
    
    /* Liquid Glass Effect System */
    --glass-bg: rgba(15, 23, 42, 0.45);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-highlight: rgba(255, 255, 255, 0.05);
    --glass-blur: blur(24px);
    --glass-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5), 
                    inset 0 1px 1px rgba(255, 255, 255, 0.12);
    
    /* Dynamic Spacers */
    --section-gap: 80px;
    --carousel-offset: 340px;
    --transition-speed: 0.4s;
    --transition-curve: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (max-width: 1024px) {
    :root {
        --carousel-offset: 240px;
        --section-gap: 60px;
    }
}

@media (max-width: 768px) {
    :root {
        --carousel-offset: 130px;
        --section-gap: 40px;
    }
}

@media (max-width: 480px) {
    :root {
        --carousel-offset: 70px;
    }
}

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

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--glass-border) transparent;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* Masquer la scrollbar par défaut sur Webkit */
body::-webkit-scrollbar {
    width: 6px;
}
body::-webkit-scrollbar-track {
    background: transparent;
}
body::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 10px;
}

/* --- Fond Vivant : Blobs Animes --- */
.bg-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
    background: radial-gradient(circle at 50% 50%, #0c111d 0%, #05070a 100%);
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(130px);
    opacity: 0.35;
    mix-blend-mode: screen;
    animation: floatBlob 25s infinite alternate ease-in-out;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #6d28d9 0%, transparent 80%);
    top: -10%;
    left: 10%;
    animation-duration: 28s;
}

.blob-2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #0f766e 0%, transparent 80%);
    bottom: -10%;
    right: -5%;
    animation-duration: 35s;
    animation-delay: -5s;
}

.blob-3 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, #1d4ed8 0%, transparent 80%);
    top: 35%;
    left: 45%;
    animation-duration: 22s;
    animation-delay: -10s;
}

@keyframes floatBlob {
    0% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(90px, -70px) scale(1.15);
    }
    66% {
        transform: translate(-60px, 80px) scale(0.9);
    }
    100% {
        transform: translate(40px, -30px) scale(1.05);
    }
}

/* --- Cartes Liquid Glass --- */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: var(--glass-shadow);
    transition: transform var(--transition-speed) var(--transition-curve), 
                border-color var(--transition-speed) var(--transition-curve),
                box-shadow var(--transition-speed) var(--transition-curve);
}

.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

/* --- En-tete (Header) --- */
header {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 650px;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 40px;
    padding: 6px 16px;
    z-index: 1000;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5),
                inset 0 1px 1px rgba(255, 255, 255, 0.08);
}

header nav ul {
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
}

header nav ul li {
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

header nav ul li a {
    display: block;
    width: 100%;
    max-width: 160px;
    text-align: center;
    padding: 10px 0;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 30px;
    transition: all 0.3s ease;
}

header nav ul li a:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
}

header nav ul li a.active {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

/* --- Communs Sections --- */
section {
    padding: 120px 20px 40px;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* --- Section 1 : Presentation --- */
#accueil-section {
    justify-content: center;
    min-height: 100vh;
    gap: 30px;
}

.presentation-card {
    width: 100%;
    max-width: 1080px;
    padding: 70px 60px;
    text-align: center;
    min-height: 420px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.presentation-card h1 {
    font-size: 3.6rem;
    font-weight: 700;
    margin-bottom: 26px;
    background: linear-gradient(135deg, #a78bfa 0%, #2dd4bf 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.presentation-card h2 {
    font-size: 1.7rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 22px;
}

.presentation-card p {
    font-size: 1.45rem;
    color: var(--text-secondary);
    text-align: justify;
    line-height: 1.95;
}

/* --- Séparateurs Visuels de Section --- */
.section-separator {
    width: 100%;
    max-width: 1250px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.04) 10%, rgba(59, 130, 246, 0.2) 50%, rgba(255, 255, 255, 0.04) 90%, transparent);
    margin: 40px auto;
}

/* Bulle interactive pour glisser vers le bas */
.scroll-bubble {
    padding: 20px 36px;
    cursor: pointer;
    font-size: 1.15rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 35px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.scroll-bubble:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.scroll-bubble svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
    animation: bounceDown 1.6s infinite ease-in-out;
}

@keyframes bounceDown {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(6px);
    }
}

/* --- Section 2 : Projets (Carousel 3D) --- */
#projets-section {
    position: relative;
    overflow: visible;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 50px;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #a78bfa, #2dd4bf);
    border-radius: 2px;
    margin: 12px auto 0;
}

/* Carrousel Wrapper */
.carousel-wrapper {
    position: relative;
    width: 100%;
    max-width: 900px;
    height: 520px;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    transform-style: preserve-3d;
}

/* Carte du Carrousel */
.carousel-card {
    position: absolute;
    width: 380px;
    height: 480px;
    display: flex;
    flex-direction: column;
    padding: 24px;
    cursor: pointer;
    user-select: none;
    transition: transform var(--transition-speed) var(--transition-curve), 
                opacity var(--transition-speed) var(--transition-curve),
                border-color var(--transition-speed) var(--transition-curve);
    transform-origin: center center;
}

@media (max-width: 480px) {
    .carousel-card {
        width: 280px;
        height: 420px;
        padding: 16px;
    }
}

.carousel-card.active {
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.6), 
                inset 0 1px 1px rgba(255, 255, 255, 0.15),
                0 0 2px rgba(255, 255, 255, 0.3);
}

.carousel-card:not(.active) {
    filter: blur(1px);
}

.carousel-card:not(.active):hover {
    opacity: 0.8 !important;
}

/* Composants de la Carte */
.card-header {
    margin-bottom: 16px;
    text-align: center;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-image-wrapper {
    width: 100%;
    height: 180px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 16px;
    border: 1px solid var(--glass-border);
}

@media (max-width: 480px) {
    .card-image-wrapper {
        height: 140px;
    }
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--transition-curve);
}

.carousel-card.active:hover .card-image {
    transform: scale(1.05);
}

.card-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow: hidden;
    margin-bottom: 16px;
}

.card-section {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.card-subtitle {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: justify;
}

.card-footer {
    display: flex;
    justify-content: center;
    margin-top: auto;
}

/* Boutons generaux */
.btn {
    border: 1px solid var(--glass-border);
    padding: 10px 24px;
    border-radius: 30px;
    color: white;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    transform: scale(1.03);
}

.btn-primary {
    background: linear-gradient(135deg, rgba(109, 40, 217, 0.6) 0%, rgba(59, 130, 246, 0.6) 100%);
    border-color: rgba(255, 255, 255, 0.15);
}

.btn-primary:hover {
    background: linear-gradient(135deg, rgba(109, 40, 217, 0.85) 0%, rgba(59, 130, 246, 0.85) 100%);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
}

/* Fleches du carrousel */
.carousel-arrow {
    position: absolute;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    color: var(--text-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 20;
    transition: all 0.3s ease;
    box-shadow: var(--glass-shadow);
}

.carousel-arrow:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.08);
}

.carousel-arrow svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

#carousel-prev {
    left: -80px;
}

#carousel-next {
    right: -80px;
}

@media (max-width: 1024px) {
    #carousel-prev { left: -10px; }
    #carousel-next { right: -10px; }
}

@media (max-width: 768px) {
    .carousel-arrow {
        width: 40px;
        height: 40px;
    }
    .carousel-arrow svg {
        width: 16px;
        height: 16px;
    }
}

/* --- Vue Étendue Inline (Agrandissement Morphing) --- */

.carousel-wrapper {
    position: relative;
    width: 100%;
    max-width: 900px;
    height: 520px;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
    transition: height 0.6s var(--transition-curve), max-width 0.6s var(--transition-curve);
}

.carousel-wrapper.expanded {
    height: 730px;
    max-width: 1260px;
}

.carousel-card {
    position: absolute;
    width: 380px;
    height: 480px;
    display: flex;
    flex-direction: column;
    padding: 24px;
    cursor: pointer;
    user-select: none;
    transition: transform 0.6s var(--transition-curve), 
                width 0.6s var(--transition-curve), 
                height 0.6s var(--transition-curve), 
                opacity 0.6s var(--transition-curve),
                border-color 0.6s var(--transition-curve);
    transform-origin: center center;
}

/* Carte en mode étendu */
.carousel-card.expanded {
    width: 100%;
    max-width: 1210px;
    height: 700px;
    z-index: 100;
    transform: translateX(0) scale(1) !important;
    cursor: default;
    padding: 0;
    overflow: hidden;
}

/* Cache les flèches du carrousel global quand étendu */
.expanded-view #carousel-prev,
.expanded-view #carousel-next {
    opacity: 0;
    pointer-events: none;
}

/* Gestion du cross-fade petite vue / vue étendue */
.card-small-view {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    opacity: 1;
    pointer-events: auto;
    transition: opacity 0.2s ease;
}

.carousel-card.expanded .card-small-view {
    opacity: 0;
    pointer-events: none;
    height: 0;
    overflow: hidden;
    padding: 0;
    margin: 0;
}

.card-expanded-view {
    display: none;
    flex-direction: column;
    height: 100%;
    width: 100%;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease 0.2s;
}

.carousel-card.expanded .card-expanded-view {
    display: flex;
    opacity: 1;
    pointer-events: auto;
}

/* --- Éléments de la vue détaillée (anciennement modale) --- */

/* Header interne */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid var(--glass-border);
    background: rgba(15, 23, 42, 0.3);
}

.modal-nav-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.modal-nav-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.08);
}

.modal-nav-btn svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.modal-close-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    cursor: pointer;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
}

.modal-close-btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* Contenu */
.modal-content {
    flex-grow: 1;
    overflow: hidden;
    padding: 24px;
    background: rgba(10, 15, 30, 0.1);
}

.modal-grid {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 24px;
    height: 100%;
}

@media (max-width: 900px) {
    .modal-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
        overflow-y: auto;
        gap: 20px;
    }
    
    .carousel-card.expanded {
        height: auto;
        min-height: 580px;
        padding-bottom: 20px;
    }
    
    .carousel-wrapper.expanded {
        height: auto;
    }
}

/* Colonne gauche */
.modal-left-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: 100%;
    min-height: 0;
}

@media (max-width: 900px) {
    .modal-left-col {
        height: auto;
        min-height: auto;
    }
}

.modal-image-container {
    width: 100%;
    height: 180px;
    border-radius: 16px;
    overflow: hidden;
    flex-shrink: 0;
}

.modal-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-meta-box {
    padding: 16px 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 14px;
    overflow-y: auto;
    border-radius: 16px;
    min-height: 0;
}

.modal-info-block h5 {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-color);
    margin-bottom: 2px;
}

.modal-info-block p {
    font-size: 0.92rem;
    color: var(--text-secondary);
}

.modal-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.modal-info-row h5 {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-color);
}

.badge {
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.4);
    color: #60a5fa;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.82rem;
    font-weight: 600;
}

.project-link {
    color: #60a5fa;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.project-link:hover {
    color: #93c5fd;
    text-decoration: underline;
}

/* Colonne droite */
.modal-right-col {
    padding: 24px;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border-radius: 16px;
    min-height: 0;
}

@media (max-width: 900px) {
    .modal-right-col {
        height: auto;
        overflow: visible;
        padding: 16px;
        min-height: auto;
    }
}

.modal-project-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.3;
    background: linear-gradient(135deg, #f8fafc 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.modal-scroll-area {
    flex-grow: 1;
    overflow-y: auto;
    padding-right: 10px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-height: 0;
}

@media (max-width: 900px) {
    .modal-scroll-area {
        overflow-y: visible;
        padding-right: 0;
        min-height: auto;
    }
}

.modal-scroll-area::-webkit-scrollbar,
.modal-meta-box::-webkit-scrollbar {
    width: 6px;
}
.modal-scroll-area::-webkit-scrollbar-track,
.modal-meta-box::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
}
.modal-scroll-area::-webkit-scrollbar-thumb,
.modal-meta-box::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}
.modal-scroll-area::-webkit-scrollbar-thumb:hover,
.modal-meta-box::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4);
}

.modal-section-block h4 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    border-left: 3px solid var(--primary-color);
    padding-left: 8px;
}

.formatted-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    text-align: justify;
    line-height: 1.7;
    margin-bottom: 10px;
}

.skills-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
}

.skill-tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.skill-tag:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

/* --- Section 3 : Contact (Formulaire & Details) --- */
#contact-section {
    padding-bottom: 40px;
}

.contact-wrapper {
    width: 100%;
    max-width: 1210px;
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 30px;
}

@media (max-width: 820px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

/* Colonne Gauche : Deux bulles superposées */
.contact-left-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.contact-info-card {
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 20px;
    width: 100%;
}

.info-card-large {
    flex-grow: 3;
    justify-content: center;
}

.info-card-small {
    flex-grow: 1;
    justify-content: center;
}

.contact-card-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    border-left: 3px solid var(--accent-color);
    padding-left: 10px;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Liste des coordonnées (Mail / Tél) */
.contact-items-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
}

.contact-item svg {
    width: 22px;
    height: 22px;
    color: var(--accent-color);
    flex-shrink: 0;
}

.contact-item a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
    word-break: break-all;
}

.contact-item a:hover {
    color: var(--text-primary);
}

/* Boutons Réseaux (GitHub / LinkedIn) */
.social-btns-container {
    display: flex;
    flex-direction: row;
    gap: 12px;
    width: 100%;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 0;
    width: 50%;
    border-radius: 14px;
    text-decoration: none;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.02);
    font-size: 0.92rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.social-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.social-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: var(--glass-shadow);
}

/* --- Formulaire de Contact Modernisé --- */
.contact-form-card {
    padding: 40px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 30px;
}

@media (max-width: 580px) {
    .form-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

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

.form-group-full {
    grid-column: span 2;
}

@media (max-width: 580px) {
    .form-group-full {
        grid-column: span 1;
    }
}

.form-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding-left: 2px;
    margin-bottom: 2px;
}

.form-input {
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 14px 18px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.3s var(--transition-curve);
    width: 100%;
}

.form-input::placeholder {
    color: #475569;
}

.form-input:focus {
    outline: none;
    border-color: rgba(59, 130, 246, 0.6);
    background: rgba(15, 23, 42, 0.65);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.25),
                inset 0 1px 1px rgba(255, 255, 255, 0.05);
    transform: translateY(-1px);
}

.form-textarea {
    resize: none;
    height: 150px;
}

.form-submit-wrapper {
    display: flex;
    justify-content: flex-end;
}

.form-submit-btn {
    min-width: 200px;
    padding: 14px 36px;
    font-size: 0.98rem;
    font-weight: 600;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Système de Notification Toast en Verre --- */
.notification {
    position: fixed;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 14px 28px;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5),
                inset 0 1px 1px rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: top 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
}

.notification.show {
    top: 100px;
}

.notification-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    flex-shrink: 0;
}

.notification-success {
    border-left: 4px solid var(--accent-color);
}
.notification-success .notification-icon {
    background: rgba(45, 212, 191, 0.2);
    color: var(--accent-color);
}

.notification-error {
    border-left: 4px solid #ef4444;
}
.notification-error .notification-icon {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

