/* Variables CSS pour la thématique de couleurs */
:root {
    --primary-color: #2563eb;         /* Bleu principal */
    --primary-dark: #1d4ed8;          /* Bleu foncé */
    --primary-light: #60a5fa;         /* Bleu clair */
    --gradient-blue: linear-gradient(135deg, #2563eb, #60a5fa);
    --white: #ffffff;
    --off-white: #f8fafc;
    --light-gray: #e2e8f0;
    --medium-gray: #94a3b8;
    --dark-gray: #334155;
    --black: #0f172a;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

/* Reset et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--white);
}

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

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--black);
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
    color: var(--white);
}

.h3{
	font-size: 1.5rem;
	color: var(--primary-color);
}

p {
    margin-bottom: 1rem;
}

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

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Boutons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn.primary {
    background: var(--gradient-blue);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn.secondary {
    background-color: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

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

.btn.outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn.outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

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

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    color: var(--dark-gray);
    font-weight: 500;
}

nav ul li.active a,
nav ul li a:hover {
    color: var(--primary-color);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--dark-gray);
    margin: 5px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    background: var(--gradient-blue);
    color: var(--white);
    margin-top: 60px;
    position: relative;
    overflow: hidden;
}

.hero:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,256L48,240C96,224,192,192,288,181.3C384,171,480,181,576,181.3C672,181,768,171,864,170.7C960,171,1056,181,1152,181.3C1248,181,1344,171,1392,165.3L1440,160L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-repeat: no-repeat;
    background-position: bottom;
    background-size: 100% auto;
    opacity: 0.8;
}

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

.hero h1 {
    font-size: 3rem;
    color: var(--white);
    margin-bottom: 1rem;
}

.hero h1 span {
    color: var(--off-white);
}

.hero h2 {
    font-size: 2rem;
    color: var(--white);
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.2rem;
    color: var(--white);
    opacity: 0.9;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 15px;
}

/* About Preview Section */
.about-preview {
    padding: 100px 0;
    background-color: var(--off-white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

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

.image-container:before {
    content: '';
    display: block;
    padding-top: 100%;  /* 1:1 Aspect Ratio */
}

.image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.about-text h2 {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.about-text h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--gradient-blue);
}

/* Projects Section & Carousel */
.projects {
    padding: 100px 0;
    background-color: var(--white);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.carousel-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.carousel {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    background-color: var(--black);
}

.carousel-items {
    display: flex;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    position: relative;
    width: 100%;
    background-color: var(--black);
}

.carousel-item {
    flex: 0 0 100%;
    min-width: 100%;
    position: relative;
    display: block;
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform, opacity;
    background-color: var(--black);
}

.carousel-item.active {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}

.project-link {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    height: 100%;
}

.project-link img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    transition: transform 0.5s ease;
    will-change: transform;
}

.project-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: var(--white);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.project-link:hover .project-info {
    transform: translateY(0);
}

.project-link:hover img {
    transform: scale(1.05);
}

.tech-stack {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-top: 8px;
}

.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.7);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

.carousel-prev:hover,
.carousel-next:hover {
    background-color: var(--white);
}

.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background-color: var(--white);
}

/* Footer */
footer {
    background-color: var(--black);
    color: var(--white);
    padding: 50px 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.copyright {
    margin-bottom: 15px;
}

.social-links {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--white);
    color: var(--primary-color);
    font-size: 1.2rem;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.social-links a img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.social-links a img.rl-logo {
    width: 20px;
    height: 20px;
    object-fit: contain;
    position: relative;
    transform: none;
    top: auto;
    left: auto;
}

.social-links a:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    background-color: var(--off-white);
    color: var(--primary-dark);
}

.social-links a:hover img {
    transform: scale(1.1);
}

/* Install icon styling */
.install-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.install-icon img {
    margin: 0 auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .social-links a {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .social-links a img {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 480px) {
    .social-links {
        gap: 15px;
    }
    
    .social-links a {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .social-links a img {
        width: 15px;
        height: 15px;
        margin: 0 auto;
    }
    
    .install-icon img {
        width: 15px;
        height: 15px;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
}

/* Page Header */
.page-header {
    background: var(--gradient-blue);
    color: var(--white);
    padding: 120px 0 60px;
    text-align: center;
}

.page-header h1 {
    color: var(--white);
    margin-bottom: 0;
}

/* About Page Styles */
.about-content {
    padding: 80px 0;
}

.skills {
    padding: 80px 0;
    background-color: var(--off-white);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.skill-category {
    background-color: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.skill-category h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.skill-category ul {
    list-style: none;
}

.skill-category ul li {
    padding: 8px 0;
    border-bottom: 1px solid var(--light-gray);
}

.skill-category ul li:last-child {
    border-bottom: none;
}

.download-cv {
    margin-top: 30px;
    text-align: center;
}

/* Contact Page Styles */
.contact-content {
    padding: 80px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
}

.contact-info {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.contact-info h2 {
    color: var(--white);
    margin-bottom: 30px;
}

.contact-info ul {
    list-style: none;
    margin-bottom: 30px;
}

.contact-info ul li {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.contact-info ul li i {
    margin-right: 15px;
    font-size: 1.2rem;
}

.contact-info ul li a {
    color: var(--white);
}

.contact-info ul li a:hover {
    text-decoration: underline;
}

.contact-info .social-links {
    margin-top: 20px;
}

.contact-form {
    background-color: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

/* Style des messages d'erreur */
.error-message {
    color: #e53e3e;
    font-size: 0.875rem;
    margin-top: 5px;
    animation: fadeIn 0.3s ease;
}

.error {
    border-color: #e53e3e !important;
}

/* Style des messages de succès */
.success-message {
    background-color: #10b981;
    color: white;
    padding: 15px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    animation: fadeIn 0.3s ease;
    transition: opacity 0.3s ease;
}

/* Resume Page Styles */
.resume-content {
    padding: 80px 0;
}

.resume-section {
    margin-bottom: 60px;
}

.resume-section:last-child {
    margin-bottom: 0;
}

.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline:before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    height: calc(100% - 10px);
    width: 2px;
    background-color: var(--primary-color);
}

.timeline-item {
    padding-left: 30px;
    position: relative;
    margin-bottom: 40px;
}

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

.timeline-item:before {
    content: '';
    position: absolute;
    left: -8px;
    top: 10px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: var(--primary-color);
    box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.2);
}

.timeline-date {
    font-size: 0.9rem;
    color: var(--medium-gray);
    margin-bottom: 8px;
}

.timeline-content h3 {
    margin-bottom: 5px;
}

.timeline-content h4 {
    font-size: 1rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.skills-bars {
    margin-top: 20px;
}

.skill-item {
    margin-bottom: 20px;
}

.skill-name {
    margin-bottom: 8px;
    font-weight: 500;
}

.skill-bar {
    height: 10px;
    background-color: var(--light-gray);
    border-radius: 5px;
    overflow: hidden;
}

.skill-level {
    height: 100%;
    background: var(--gradient-blue);
    border-radius: 5px;
    position: relative;
    text-align: right;
    color: var(--white);
    font-size: 10px;
    padding-right: 5px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.languages-list {
    list-style: none;
    padding-left: 20px;
}

.languages-list li {
    margin-bottom: 10px;
    position: relative;
}

.languages-list li:before {
    content: '•';
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: -20px;
}

/* Error Page */
.error-page {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: var(--off-white);
}

.error-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.error-content h1 {
    font-size: 8rem;
    margin-bottom: 0;
    color: var(--primary-color);
}

.error-content h2 {
    margin-bottom: 20px;
}

.error-content p {
    margin-bottom: 15px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.error-content .btn-container {
    margin-top: 30px;
}

/* Contact Items Styling */
.contact-items {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    background-color: var(--white);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.contact-icon {
    margin-right: 20px;
}

.icon-placeholder {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--off-white);
    transition: var(--transition);
}

.icon-placeholder img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.contact-details {
    flex: 1;
}

.contact-details h3 {
    margin-bottom: 5px;
    color: var(--primary-color);
}

.contact-details p {
    color: var(--medium-gray);
    margin-bottom: 8px;
}

@media (max-width: 768px) {
    .contact-item {
        flex-direction: row;
        padding: 20px;
    }
    
    .contact-icon {
        margin-right: 15px;
    }
    
    .icon-placeholder {
        width: 40px;
        height: 40px;
    }
    
    .icon-placeholder img {
        width: 24px;
        height: 24px;
    }
}

@media (max-width: 480px) {
    .contact-item {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-icon {
        margin: 0 0 15px 0;
    }
    
    .icon-placeholder {
        margin: 0 auto;
    }
}

/* Style pour le CTA de contact */
.contact-cta {
    margin-top: 40px;
    padding: 25px;
    background-color: var(--off-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.contact-cta p {
    text-align: center;
}

.contact-cta p:first-child {
    font-weight: 600;
    color: var(--primary-color);
}

/* Style pour la bannière d'installation PWA */
.install-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 15px 0;
    animation: slideUp 0.3s ease-out;
}

.install-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.install-content p {
    margin: 0 20px 0 0;
    font-weight: 500;
}

.install-content .btn {
    margin-left: 10px;
    padding: 8px 16px;
}

/* Style pour la modal de désinstallation */
.uninstall-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1100;
    animation: fadeIn 0.3s ease-out;
}

.uninstall-content {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 30px;
    max-width: 500px;
    width: 90%;
    box-shadow: var(--shadow-lg);
}

.uninstall-content h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.uninstall-content ul {
    margin: 15px 0;
    padding-left: 20px;
}

.uninstall-content li {
    margin-bottom: 10px;
}

.uninstall-content .btn {
    margin-top: 20px;
    width: 100%;
}

/* Style pour le lien de désinstallation */
.uninstall-link {
    text-align: center;
    margin-top: 15px;
    font-size: 0.9rem;
}

.uninstall-link a {
    color: var(--medium-gray);
    text-decoration: underline;
    transition: var(--transition);
}

.uninstall-link a:hover {
    color: var(--primary-color);
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .install-content {
        flex-direction: column;
        text-align: center;
    }
    
    .install-content p {
        margin: 0 0 15px 0;
    }
    
    .install-content .btn {
        margin: 5px;
        width: auto;
    }
    
    .uninstall-content {
        padding: 20px;
    }
} 