/* Updated font faces - Variable Fonts */
@font-face {
    font-family: 'Manrope';
    src: url('fonts/Manrope-VariableFont_wght.ttf') format('truetype-variations');
    font-weight: 200 800;
    font-display: swap;
}

@font-face {
    font-family: 'Space Grotesk';
    src: url('fonts/SpaceGrotesk-VariableFont_wght.ttf') format('truetype-variations');
    font-weight: 300 700;
    font-display: swap;
}

/* Fallback for browsers that don't support variable fonts */
@font-face {
    font-family: 'Manrope';
    src: url('fonts/Manrope-VariableFont_wght.ttf') format('truetype');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'Space Grotesk';
    src: url('fonts/SpaceGrotesk-VariableFont_wght.ttf') format('truetype');
    font-weight: 400;
    font-display: swap;
}

/* TMC color scheme and variables */
:root {
    --tmc-dark-blue: #0A2234;
    --tmc-light-blue: #5087AB;
    --tmc-orange: #EA8000;
    --tmc-charcoal: #4D4D4D;
    --tmc-slate-grey: #666666;
    --tmc-silver: #C0C0C0;
    --tmc-light-grey: #FBFBFB;
    --tmc-white: #FFFFFF;
    --tmc-hero-background: rgba(10, 34, 52, 0.6);
    --tmc-dark-blue-transparent: #0A2234D1;

    --brand-primary: #1D2252;
    --brand-alt: #3E1E70;
    --brand-bright: #F58220;

    --brand-primary-light: #d9ddff;
    --brand-alt-light: #d4c2f2;
    --brand-bright-light: #f2d8c2;

    --brand-primary-bg: #f7f8ff;
    --brand-alt-bg: #faf7ff;
    --brand-bright-bg: #fffbf7;

    --tmc-gradient-primary-angle: 61deg;
    --tmc-gradient-primary-stops: #1D2252 10%, #3E1E70 35%, #F58220 90%;

    --tmc-border-radius: 12px;
    --tmc-border-radius-small: 6px;
    --tmc-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    --tmc-shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.25);

    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Typography variables */
    --font-display: 'Space Grotesk', 'Arial Black', sans-serif;
    --font-body: 'Manrope', 'Helvetica Neue', sans-serif;
}

/* Base styles with new typography */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    background: linear-gradient(var(--tmc-gradient-primary-angle), var(--tmc-gradient-primary-stops));
    background-attachment: fixed;
    color: var(--tmc-white);
    line-height: 1.5;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    font-feature-settings: "kern" 1, "liga" 1;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    background-color: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
}

/* Language switcher with Space Grotesk */
.language-switcher {
    text-align: center;
    margin-bottom: 30px;
}

.lang-btn {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--tmc-white);
    padding: 10px 18px;
    cursor: pointer;
    border-radius: var(--tmc-border-radius-small);
    margin: 0 5px;
    transition: var(--transition-smooth);
    backdrop-filter: blur(10px);
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    font-weight: 700;
}

.lang-btn.active {
    background: var(--tmc-white);
    color: var(--brand-primary);
    box-shadow: var(--tmc-shadow);
    font-weight: 700;
}

/* Header with updated typography */
header {
    text-align: center;
    margin-bottom: 40px;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(255, 255, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

.profile-picture {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--tmc-white);
    animation: pulse 3s infinite;
    margin-bottom: 20px;
    transition: var(--transition-smooth);
}

.profile-picture:hover {
    transform: scale(1.05);
}

h1 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--tmc-white);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.subtitle {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    margin: 2px 0;
    letter-spacing: 0.25px;
}

/* Section titles with Space Grotesk */
.section-title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--tmc-white);
    text-align: center;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* Links section */
.links-section {
    margin: 25px 0;
}

.links-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: 1fr;
}

/* Link cards */
.link-card {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(255, 255, 255, 1);
    border-radius: var(--tmc-border-radius);
    overflow: hidden;
    box-shadow: var(--tmc-shadow);
    transition: var(--transition-smooth);
    position: relative;
}

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

.link-card.featured {
    position: relative;
    overflow: hidden;
    border: none;
    min-height: 200px;
    background: none;
}

.link-content {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 20px;
    text-decoration: none;
    color: var(--tmc-charcoal);
    min-height: 80px;
    transition: var(--transition-smooth);
}

.link-card:hover .link-content {
    background: linear-gradient(135deg, rgba(29, 34, 82, 0.05) 0%, rgba(62, 30, 112, 0.05) 100%);
}

.link-card.featured .link-content {
    position: relative;
    flex-direction: column;
    text-align: left;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 30px 30px;
    min-height: 200px;
    background: none;
    z-index: 2;
}

/* Background image container */
.link-card.featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: 1;
    transition: var(--transition-smooth);
}

.link-card.featured[data-feature-type="photo"]::before {
    filter: sepia(1) saturate(1.5) hue-rotate(15deg) brightness(0.7) contrast(1.2);
}

/* Orange overlay filter for photos */
.link-card.featured[data-feature-type="photo"]::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgb(245, 130, 32, 0.6);
    z-index: 1;
    transition: var(--transition-smooth);
}

/* Hover effects for featured cards */
.link-card.featured:hover::before {
    transform: scale(1.05);
}

/* Featured card styling */
.link-card.featured .link-image {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
    margin-right: 0;
    align-self: flex-start;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--tmc-border-radius);
    padding: 10px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.link-card.featured .link-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

/* Featured text with new typography */
.link-card.featured .link-text h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--tmc-white);
    padding: 0;
    margin-bottom: 8px;
    letter-spacing: -0.25px;
}

.link-card.featured .link-text p {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    padding: 0;
    line-height: 1.4;
    letter-spacing: 0.15px;
}

/* Background customizations */
.link-card.featured[data-feature-type="photo"][data-bg="prophoto"]::before {
    background-image: url('https://pro-photo.fr/wp-content/uploads/2025/06/prophoto-webslider-4062.jpg');
}

.link-card.featured[data-feature-type="photo"][data-bg="prophoto2"]::before {
    background-image: url('https://pro-photo.fr/wp-content/uploads/2025/07/prophoto-webslider-706.jpg');
}

.link-card.featured[data-feature-type="photo"][data-bg="betaxel472"]::before {
    background-image: url('https://pro-photo.fr/wp-content/uploads/2025/07/prophoto-betaxel_472_axel-kerriel.jpg');
}

.link-card.featured[data-feature-type="gradient"]::before {
    background: linear-gradient(135deg, rgb(29, 34, 82, 0.8) 30%, rgb(29, 34, 82, 0.5) 50%, rgb(29, 34, 82, 0.7) 80%);
}

.link-card.featured[data-feature-type="gradient"][data-gradient="primary"]::before {
    background: linear-gradient(61deg, #3E1E70 30%, #F58220 80%);
}

.link-card.featured[data-feature-type="gradient"][data-gradient="blue"]::before {
    background: linear-gradient(61deg, #1D2252 30%, #5087AB 100%);
}

.link-card.featured[data-feature-type="gradient"][data-gradient="softwhite"]::before {
    background: linear-gradient(61deg, rgb(255, 255, 255, 0.2) 30%, rgb(255, 255, 255, 0.1) 80%);
}

/* Regular link image styling */
.link-image {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(61deg, rgb(51, 51, 51,0.08) 0%, rgb(51, 51, 51,0.04) 100%);
    border-radius: var(--tmc-border-radius);
    padding: 12px;
}

.link-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Regular link text with new typography */
.link-text h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--brand-primary);
    margin: 0;
    padding: 0;
    letter-spacing: -0.25px;
}

.link-text p {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.3;
    color: var(--tmc-slate-grey);
    letter-spacing: 0.15px;
}

/* Regular social links */
.link-icon {
    width: 40px;
    height: 40px;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(61deg, rgb(51, 51, 51,0.08) 0%, rgb(51, 51, 51,0.04) 100%);
    border-radius: var(--tmc-border-radius-small);
    padding: 6px;
    flex-shrink: 0;
}

.link-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.link-content span {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.2;
    color: var(--brand-primary);
    letter-spacing: 0.15px;
}

/* About section with new typography */
.about-section {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--tmc-border-radius);
    border: 2px solid rgba(255, 255, 255, 0.2);
    margin: 0 0 20px 0;
    padding: 25px 20px;
    backdrop-filter: blur(15px);
}

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

.about-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.about-icon {
    font-size: 1rem;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--tmc-border-radius-small);
    border: 2px solid rgb(255, 255, 255,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.about-text {
    flex: 1;
}

.about-text p {
    font-family: var(--font-body);
    font-weight: 450;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
    font-size: 0.95rem;
    letter-spacing: 0.15px;
}

.about-text a {
    color: var(--tmc-white);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-smooth);
    border-bottom: 1px solid transparent;
}

.about-text a:hover {
    color: var(--brand-bright);
    border-bottom-color: var(--brand-bright);
}

/* Language functionality */
.en, .fr {
    display: none;
}

.en.active, .fr.active {
    display: block;
}

span.en.active, span.fr.active {
    display: inline;
}

/* Responsive design */
@media screen and (min-width: 768px) {
    .container {
        padding: 30px;
        border-radius: var(--tmc-border-radius);
        margin: 30px auto;
        box-shadow: var(--tmc-shadow-hover);
        min-height: auto;
    }

    .language-switcher {
        text-align: right;
        margin-bottom: 40px;
    }

    header {
        display: flex;
        align-items: center;
        text-align: left;
        margin-bottom: 25px;
    }

    .profile-picture {
        margin-right: 40px;
        margin-bottom: 0;
    }

    .header-text {
        flex: 1;
    }

    h1 {
        font-size: 1.8rem;
        margin-bottom: 8px;
    }

    .subtitle {
        font-size: 1rem;
    }

    .links-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
    }

    .link-card.featured {
        min-height: 220px;
    }

    .link-card.featured .link-content {
        min-height: 220px;
        padding: 45px 35px;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 25px;
    }

    .about-content {
        gap: 35px;
    }

    .about-text p {
        font-size: 1rem;
    }
}

@media screen and (min-width: 1024px) {
    .links-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .link-card.featured {
        min-height: 240px;
        grid-column: 1 / -1;
    }

    .link-card.featured .link-content {
        min-height: 240px;
        padding: 50px 40px;
    }

    main {
        display: grid;
        gap: 60px;
    }

    h1 {
        font-size: 1.8rem;
    }

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

/* Animation for page load */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.link-card {
    animation: fadeInUp 0.6s ease-out forwards;
}

.link-card:nth-child(1) { animation-delay: 0.1s; }
.link-card:nth-child(2) { animation-delay: 0.2s; }
.link-card:nth-child(3) { animation-delay: 0.3s; }
.link-card:nth-child(4) { animation-delay: 0.4s; }
.link-card:nth-child(5) { animation-delay: 0.5s; }
.link-card:nth-child(6) { animation-delay: 0.6s; }
.link-card:nth-child(7) { animation-delay: 0.7s; }