:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --text-color: #333;
    --light-text: #ecf0f1;
    --light-bg: #f9f9f9;
    --dark-bg: #2c3e50;
    --border-color: #ddd;
    --card-bg: #fff;
    --transition: all 0.3s ease;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --radius: 8px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    line-height: 1.3;
    margin-bottom: 0.5em;
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
    font-weight: 600;
}

h3 {
    font-size: 1.8rem;
    font-weight: 600;
}

h4 {
    font-size: 1.4rem;
    font-weight: 500;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius);
}

ul, ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

/* Container */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    backdrop-filter: blur(10px);
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-list {
    display: flex;
    list-style: none;
}

.nav-list li {
    margin-left: 2rem;
}

.nav-list a {
    color: var(--primary-color);
    font-weight: 500;
    position: relative;
}

.nav-list a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

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

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 2px 0;
    border-radius: 3px;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(to bottom, rgba(44, 62, 80, 0.7), rgba(44, 62, 80, 0.9)),
                url('https://images.unsplash.com/photo-1518998053901-5348d3961a04?auto=format&fit=crop&q=80&w=1974') no-repeat center center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--light-text);
    padding: 0 2rem;
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
    opacity: 0.9;
}

.subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.8;
}

.languages {
    font-size: 1.1rem;
    margin-bottom: 3rem;
    opacity: 0.7;
}

.availability {
    margin: 2rem 0;
}

.availability-badge {
    display: inline-flex;
    align-items: center;
    background-color: rgba(46, 204, 113, 0.2);
    border: 2px solid #2ecc71;
    border-radius: 50px;
    padding: 0.8rem 1.5rem;
    color: #2ecc71;
    font-weight: 600;
    font-size: 1rem;
    backdrop-filter: blur(10px);
    transition: var(--transition);
    animation: pulse 2s infinite;
    text-decoration: none;
    cursor: pointer;
}

.availability-badge i {
    margin-right: 0.8rem;
    font-size: 1.2rem;
}

.availability-badge:hover {
    background-color: rgba(46, 204, 113, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.3);
    color: #2ecc71;
    text-decoration: none;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(46, 204, 113, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(46, 204, 113, 0);
    }
}

.scroll-down {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-down i {
    font-size: 2rem;
    color: var(--light-text);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

/* Sections */
.section {
    padding: 6rem 0;
}

.section:nth-child(even) {
    background-color: #fff;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

.section-header h2:after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.section-header p {
    color: #666;
    font-size: 1.2rem;
}

.subsection {
    margin-bottom: 4rem;
}

.subsection:last-child {
    margin-bottom: 0;
}

.subsection h3 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 0.5rem;
}

.subsection h3:after {
    content: '';
    position: absolute;
    width: 40px;
    height: 2px;
    background-color: var(--accent-color);
    bottom: 0;
    left: 0;
}

/* Notes */
.note {
    font-style: italic;
    color: #666;
    margin-bottom: 1.5rem;
    padding-left: 1rem;
    border-left: 3px solid var(--secondary-color);
}

/* Skill Lists */
.skill-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 2rem;
}

.skill-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.7rem;
}

.skill-list li:before {
    content: '•';
    color: var(--secondary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

/* Project Cards */
.project-card {
    background-color: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.card-media {
    position: relative;
}

.card-media img {
    width: 100%;
    border-radius: var(--radius) var(--radius) 0 0;
}

.card-content {
    padding: 1.5rem;
}

.card-content h4 {
    margin-bottom: 0.8rem;
    color: var(--primary-color);
}

.card-content p {
    color: #555;
}

/* Video Cards */
.video-card .card-media {
    position: relative;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    font-size: 1.5rem;
    transition: var(--transition);
}

.play-button:hover {
    background-color: white;
    transform: translate(-50%, -50%) scale(1.1);
}

/* Link Cards */
.link-card {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background-color: #f5f8fa;
    border-radius: var(--radius);
    text-align: center;
}

.full-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

.full-link i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.full-link span {
    font-weight: 500;
}

/* Grid Galleries */
.grid-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    grid-gap: 1.5rem;
    margin-bottom: 2rem;
}

.three-cards {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

/* Mini Cards */
.mini-card {
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition);
}

.mini-card:hover {
    background-color: #f5f8fa;
}

.mini-card a {
    color: var(--primary-color);
}

.mini-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(52, 152, 219, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.mini-icon i {
    font-size: 1.5rem;
    color: var(--secondary-color);
}

.mini-card h4 {
    margin-bottom: 0.5rem;
}

.tag {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0;
}

/* Features */
.feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    grid-gap: 2rem;
}

.feature {
    display: flex;
    align-items: flex-start;
    padding: 1.5rem;
    background-color: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    margin-right: 1rem;
    width: 50px;
    height: 50px;
    background-color: rgba(52, 152, 219, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon i {
    font-size: 1.3rem;
    color: var(--secondary-color);
}

.feature-content h4 {
    margin-bottom: 0.5rem;
}

.feature-content p {
    font-size: 0.95rem;
    color: #666;
}

/* Info Cards */
.info-card {
    background-color: #f5f8fa;
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.info-card h4 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* Bullet Lists */
.bullet-list {
    list-style: none;
    padding-left: 0;
}

.bullet-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.7rem;
}

.bullet-list li:before {
    content: '→';
    color: var(--secondary-color);
    position: absolute;
    left: 0;
}

/* Feature Bullets */
.feature-bullets {
    list-style: none;
    padding-left: 0;
    margin-bottom: 2rem;
}

.feature-bullets li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.feature-bullets li:before {
    content: '✓';
    color: var(--secondary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.columns {
    columns: 2;
}



/* Link Button */
.link-button {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background-color: rgba(52, 152, 219, 0.1);
    border-radius: 4px;
    color: var(--secondary-color);
    transition: var(--transition);
}

.link-button:hover {
    background-color: var(--secondary-color);
    color: white;
}

.link-button i {
    margin-right: 0.5rem;
}

/* Footer */
.footer {
    background-color: var(--dark-bg);
    color: var(--light-text);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.footer-info h3 {
    margin-bottom: 0.5rem;
}

.footer-info p {
    opacity: 0.8;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
}

.footer-nav a {
    color: var(--light-text);
    margin-left: 2rem;
    opacity: 0.8;
}

.footer-nav a:hover {
    opacity: 1;
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Responsive Styles */
@media (max-width: 992px) {
    html {
        font-size: 15px;
    }
    
    .hero h1 {
        font-size: 3.5rem;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .feature-list {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    .header {
        padding: 1rem;
    }
    
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: 0.5s;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        z-index: 1001;
    }
    
    .nav.active {
        right: 0;
    }
    
    .nav-list {
        flex-direction: column;
        align-items: center;
    }
    
    .nav-list li {
        margin: 1.5rem 0;
    }
    
    .menu-toggle {
        display: flex;
        z-index: 1002;
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .hero h2 {
        font-size: 1.5rem;
    }
    
    .grid-gallery,
    .feature-list {
        grid-template-columns: 1fr;
    }
    
    .columns {
        columns: 1;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-info {
        margin-bottom: 1.5rem;
    }
    
    .footer-nav {
        justify-content: center;
    }
    
    .footer-nav a {
        margin: 0.5rem 1rem;
    }
    
    .iframe-container {
        padding-top: 75%; /* Ajustement pour mobile */
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero h2 {
        font-size: 1.3rem;
    }
    
    .subtitle {
        font-size: 1.1rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .feature {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .feature-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    

}

/* Section Biographie */
.section-bio {
    background-color: #f8f9fa;
}

.bio-container {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
}

.bio-image {
    flex: 0 0 35%;
    position: sticky;
    top: 100px;
}

.image-frame {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    position: relative;
}

.image-frame:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius);
    pointer-events: none;
}

.bio-image img {
    width: 100%;
    display: block;
    transition: transform 0.5s ease;
}

.bio-image:hover img {
    transform: scale(1.02);
}

.bio-content {
    flex: 0 0 60%;
}

.bio-intro {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    line-height: 1.6;
    font-weight: 500;
    font-family: 'Playfair Display', serif;
    position: relative;
    padding-left: 1.2rem;
    border-left: 3px solid var(--secondary-color);
}

.bio-timeline {
    position: relative;
    padding-left: 2rem;
}

.bio-timeline:before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background-color: var(--border-color);
}

.timeline-item {
    position: relative;
    padding-bottom: 2.5rem;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-badge {
    position: absolute;
    width: 40px;
    height: 40px;
    left: -3.1rem;
    top: 0;
    border-radius: 50%;
    background-color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 0 0 4px white;
    z-index: 1;
}

.timeline-badge i {
    font-size: 1.2rem;
}

.timeline-content h4 {
    margin-bottom: 0.8rem;
    color: var(--primary-color);
}

.timeline-content p {
    color: #555;
}

/* Responsive styles for bio section */
@media (max-width: 992px) {
    .bio-container {
        flex-direction: column;
        gap: 2rem;
    }
    
    .bio-image {
        flex: 0 0 100%;
        max-width: 400px;
        margin: 0 auto;
        position: relative;
        top: 0;
    }
    
    .bio-content {
        flex: 0 0 100%;
    }
}

@media (max-width: 576px) {
    .bio-timeline {
        padding-left: 1.5rem;
    }
    
    .timeline-badge {
        width: 30px;
        height: 30px;
        left: -2.3rem;
    }
    
    .timeline-badge i {
        font-size: 0.9rem;
    }
    
    .bio-intro {
        font-size: 1.2rem;
    }
}

/* Styles pour les conteneurs d'iframe */
.iframe-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding-top: 56.25%; /* Ratio 16:9 */
    border-radius: var(--radius);
}

.model-iframe {
    padding-top: 75%; /* Ratio 4:3 pour les modèles 3D */
}

.gigapixel-iframe {
    padding-top: 66.67%; /* Ratio 3:2 pour les photos */
}

.iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: var(--radius);
}

/* Style pour rendre les iframes responsive */
@media (max-width: 768px) {
    .iframe-container {
        padding-top: 75%; /* Ajustement pour mobile */
    }
}

/* Ajouter ces styles à la fin du fichier CSS */
.contact-info {
    margin-top: 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.phone-link,
.email-link {
    display: inline-flex;
    align-items: center;
    color: var(--secondary-color);
    font-weight: 500;
    transition: var(--transition);
    margin-bottom: 0.5rem;
}

.phone-link i,
.email-link i {
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

.phone-link:hover,
.email-link:hover {
    color: var(--accent-color);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .contact-info {
        margin-top: 0.5rem;
        text-align: center;
    }
}

/* Vignettes pour modèles 3D */
.model-thumbnail {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 0;
    padding-top: 75%; /* Ratio 4:3 */
    border-radius: var(--radius);
    background-color: #2c3e50;
    background-image: linear-gradient(135deg, #34495e 25%, #2c3e50 25%, #2c3e50 50%, #34495e 50%, #34495e 75%, #2c3e50 75%, #2c3e50 100%);
    background-size: 20px 20px;
}

.model-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    transition: var(--transition);
}

.model-placeholder i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.model-placeholder span {
    font-weight: 500;
    letter-spacing: 0.5px;
}

.thumbnail-link {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: white;
    text-decoration: none;
}

.thumbnail-link:hover .model-placeholder {
    background-color: rgba(0, 0, 0, 0.3);
    transform: scale(1.05);
}

.thumbnail-link:hover .model-placeholder i {
    transform: rotate(10deg);
}

/* Ajouter ces styles à votre fichier CSS existant */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: var(--light-bg);
    padding: 2rem;
}

.login-form {
    background-color: white;
    padding: 2.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 400px;
}

.login-form h2 {
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--primary-color);
}

.form-group input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus {
    border-color: var(--secondary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.login-button {
    width: 100%;
    padding: 0.8rem;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.login-button:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
}

/* Styles pour Google Sign-In */
.g_id_signin {
    margin: 20px auto !important;
    width: 100% !important;
    max-width: 400px;
    display: flex !important;
    justify-content: center !important;
}

.g_id_signin div {
    width: 100% !important;
    max-width: 400px !important;
}

#g_id_onload {
    margin-bottom: 20px;
}

.login-form p {
    text-align: center;
    margin: 20px 0;
    color: var(--text-color);
    font-size: 0.9rem;
}

/* Styles pour la modal de mot de passe */
.password-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.password-modal-content {
    background-color: white;
    padding: 2rem;
    border-radius: var(--radius);
    width: 90%;
    max-width: 400px;
    text-align: center;
    box-shadow: var(--shadow);
}

.password-modal-content h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.password-modal-content p {
    margin-bottom: 1.5rem;
    color: #555;
}

#passwordInput {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

#passwordInput:focus {
    border-color: var(--secondary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

/* References Grid */
.references-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.reference-item {
    background-color: var(--card-bg);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    min-height: 120px;
}

.reference-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.reference-logo {
    max-width: 100%;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(0.3);
    transition: var(--transition);
}

.reference-item:hover .reference-logo {
    filter: grayscale(0);
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .references-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .reference-item {
        padding: 1rem;
        min-height: 100px;
    }
    
    .reference-logo {
        max-height: 60px;
    }
}

@media (max-width: 576px) {
    .references-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    .reference-item {
        padding: 0.8rem;
        min-height: 80px;
    }
    
    .reference-logo {
        max-height: 50px;
    }
}

/* Contact Section */
.contact-container {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.contact-card {
    background-color: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 3rem;
    max-width: 600px;
    width: 100%;
    text-align: center;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2.5rem;
    gap: 1.5rem;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
}

.contact-details h3 {
    margin: 0;
    color: var(--primary-color);
    font-size: 1.8rem;
}

.contact-details p {
    margin: 0.2rem 0 0 0;
    color: #666;
    font-size: 1.1rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background-color: var(--light-bg);
    border-radius: var(--radius);
    text-decoration: none;
    transition: var(--transition);
    border: 2px solid transparent;
}

.contact-method:hover {
    background-color: white;
    border-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.method-icon {
    width: 50px;
    height: 50px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.contact-method:hover .method-icon {
    background-color: var(--accent-color);
}

.method-details {
    text-align: left;
    flex-grow: 1;
}

.method-details h4 {
    margin: 0;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.method-details p {
    margin: 0.2rem 0 0 0;
    color: var(--secondary-color);
    font-weight: 500;
}

.contact-method:hover .method-details p {
    color: var(--accent-color);
}

.availability-section {
    border-top: 1px solid #eee;
    padding-top: 2rem;
}

.availability-status {
    display: inline-flex;
    align-items: center;
    background-color: rgba(46, 204, 113, 0.1);
    border: 2px solid #2ecc71;
    border-radius: 50px;
    padding: 1rem 2rem;
    color: #2ecc71;
    font-weight: 600;
    font-size: 1.1rem;
    gap: 0.8rem;
}

.availability-status i {
    font-size: 1.3rem;
}

@media (max-width: 768px) {
    .contact-card {
        padding: 2rem;
        margin: 0 1rem;
    }
    
    .contact-item {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .contact-method {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .method-details {
        text-align: center;
    }
    
    .availability-status {
        flex-direction: column;
        gap: 0.5rem;
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .contact-card {
        padding: 1.5rem;
    }
    
    .contact-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .contact-details h3 {
        font-size: 1.5rem;
    }
    
    .method-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
}

/* Protection des contenus */
.protected-content {
    display: none;
}

/* Sélecteur de langue */
.lang-switcher {
    display: flex;
    gap: 0.5rem;
    margin-left: 1rem;
}

.lang-btn {
    background: transparent;
    border: 1px solid var(--secondary-color);
    color: var(--secondary-color);
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.lang-btn:hover {
    background: var(--secondary-color);
    color: white;
}

.lang-btn.active {
    background: var(--secondary-color);
    color: white;
}

@media (max-width: 768px) {
    .lang-switcher {
        margin-left: 0;
        margin-top: 1rem;
    }
}

/* Styles pour la page de téléchargements */
.downloads-section {
    padding: 2rem 0;
}

.download-item {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.download-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.download-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.download-icon {
    font-size: 3rem;
    color: var(--primary-color);
}

.download-info h3 {
    margin: 0 0 0.5rem 0;
    color: var(--dark-color);
    font-size: 1.5rem;
}

.download-type {
    margin: 0;
    color: var(--text-light);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.download-description {
    margin: 1.5rem 0;
    padding: 1rem;
    background: var(--light-gray);
    border-radius: 6px;
    border-left: 4px solid var(--primary-color);
}

.download-description p {
    margin: 0;
    color: var(--text-color);
    line-height: 1.6;
}

.download-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
}

.download-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.download-btn i {
    font-size: 1.1rem;
}

.download-size {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Responsive pour la page downloads */
@media (max-width: 768px) {
    .download-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .download-icon {
        font-size: 2.5rem;
    }
    
    .download-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .download-btn {
        justify-content: center;
    }
}