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

:root {
    --primary: #5e2c04;
    /* Marron profond (terre, racines) */
    --secondary: #d4a76a;
    /* Marron clair doré (soleil, chaleur) */
    --accent: #8b4513;
    /* Marron moyen */
    --accent-light: #cd853f;
    /* Marron doré */
    --dark: #1c1c1c;
    /* Noir profond */
    --light: #f8f4e9;
    /* Crème/Beige chaleureux */
    --text: #333;
    --gradient: linear-gradient(135deg, #5e2c04, #8b4513);
    --gradient-gold: linear-gradient(135deg, #d4a76a, #cd853f);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.8;
    color: var(--text);
    background: var(--light);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    border-radius: 12px;
}

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

.btn {
    display: inline-block;
    padding: 14px 32px;
    background: var(--gradient);
    color: white;
    text-decoration: none;
    border-radius: 60px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(94, 44, 4, 0.3);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(94, 44, 4, 0.4);
}

.btn-secondary {
    background: var(--gradient-gold);
    box-shadow: 0 4px 15px rgba(212, 167, 106, 0.3);
}

.btn-secondary:hover {
    box-shadow: 0 8px 25px rgba(212, 167, 106, 0.4);
}

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

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

section {
    padding: 100px 0;
    position: relative;
}

.section-title {
    text-align: center;
    font-size: 2.8rem;
    color: var(--primary);
    margin-bottom: 60px;
    position: relative;
    font-weight: 700;
}

.section-title:after {
    content: '';
    display: block;
    width: 100px;
    height: 5px;
    background: var(--secondary);
    margin: 20px auto 0;
    border-radius: 3px;
}

/* Header */
header {
    background: white;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

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

nav a {
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

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

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

nav a:hover:after {
    width: 100%;
}

/* Hero */
.hero {
    padding: 180px 0 120px;
    background: linear-gradient(135deg, #fdf6ec 0%, #f8f4e9 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
    background: url(images/hero.jpg) -300px 50px no-repeat;
    background-size: cover;
}

.hero:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient-gold);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        transform: translateX(-100%);
    }

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

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    color: var(--dark);
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

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

.hero p {
    font-size: 1.4rem;
    color: #555;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-image {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    overflow: hidden;
    margin: 40px auto;
    border: 6px solid white;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* About */
.about {
    background: white;
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 60px;
    align-items: center;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text h3 {
    font-size: 1.9rem;
    color: var(--primary);
    margin-bottom: 25px;
    font-weight: 600;
}

.about-text p {
    margin-bottom: 18px;
    color: #555;
    font-size: 1.1rem;
}

.education {
    margin-top: 30px;
    padding: 25px;
    background: #fdf6ec;
    border-radius: 15px;
    border-left: 5px solid var(--secondary);
}

.education-title {
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.education-title:before {
    content: '🎓';
}

.education-item {
    background: white;
    padding: 18px;
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    border-left: 4px solid var(--accent);
}

.education-item h4 {
    color: var(--dark);
    margin-bottom: 6px;
    font-size: 1.2rem;
}

.education-item p {
    color: var(--accent);
    font-size: 1.05rem;
    margin: 0;
    font-weight: 500;
}

.about-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

/* Skills */
.skills {
    background: #f9f7f2;
}

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

.skill-card {
    background: white;
    padding: 35px;
    border-radius: 18px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    border-top: 4px solid var(--primary);
}

.skill-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 15px 40px rgba(94, 44, 4, 0.15);
}

.skill-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    font-size: 1.8rem;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(94, 44, 4, 0.2);
}

.skill-card h3 {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 1.5rem;
    font-weight: 600;
}

.skill-card ul {
    list-style: none;
    color: #555;
    font-size: 1.1rem;
}

.skill-card ul li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 25px;
    line-height: 1.5;
}

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

/* Course */
.course {
    background: white;
    position: relative;
    overflow: hidden;
}

.course-content {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    align-items: center;
}

.course-text {
    flex: 1;
    min-width: 300px;
}

.course-text h3 {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 25px;
    font-weight: 700;
}

.course-text p {
    margin-bottom: 20px;
    color: #555;
    font-size: 1.15rem;
}

.course-features {
    margin: 30px 0;
    padding: 25px;
    background: #fdf6ec;
    border-radius: 15px;
    border: 2px dashed var(--secondary);
}

.course-features h4 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.course-features ul {
    list-style: none;
    margin-left: 10px;
}

.course-features li {
    margin-bottom: 12px;
    color: #555;
    position: relative;
    padding-left: 25px;
}

.course-features li:before {
    content: '✨';
    position: absolute;
    left: 0;
}

.course-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
    position: relative;
}

.character-images {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.character {
    width: 120px;
    height: 160px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.character-levi {
    background: linear-gradient(45deg, #5e2c04, #8b4513);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
}

.character-sophie {
    background: linear-gradient(45deg, #d4a76a, #cd853f);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5e2c04;
    font-weight: bold;
    font-size: 1.2rem;
}

.course-badge {
    position: absolute;
    top: -15px;
    right: -15px;
    background: var(--gradient);
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 5px 15px rgba(94, 44, 4, 0.3);
    transform: rotate(10deg);
}

/* Portfolio */
.portfolio {
    background: #f9f7f2;
}

.portfolio-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 15px;
}

.tab-button {
    padding: 12px 25px;
    background: white;
    border: 2px solid var(--secondary);
    color: var(--primary);
    border-radius: 50px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tab-button.active {
    background: var(--primary);
    color: white;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    background: white;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(94, 44, 4, 0.15);
}

.project-image {
    height: 200px;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

.project-content {
    padding: 25px;
}

.project-content h3 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.project-content .category {
    display: inline-block;
    background: #fdf6ec;
    color: var(--primary);
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.project-content p {
    color: #666;
    margin-bottom: 15px;
    font-size: 1.05rem;
}

/* Testimonials */
.testimonials {
    background: white;
    text-align: center;
}

.testimonials-slider {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.testimonial-card {
    background: #fdf6ec;
    padding: 40px;
    border-radius: 20px;
    margin: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 2px solid var(--secondary);
}

.testimonial-text {
    font-size: 1.3rem;
    color: var(--dark);
    line-height: 1.8;
    margin-bottom: 25px;
    font-style: italic;
    position: relative;
}

.testimonial-text:before {
    content: '"';
    font-size: 4rem;
    color: var(--secondary);
    opacity: 0.3;
    position: absolute;
    top: -30px;
    left: -20px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.author-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.8rem;
}

.author-info {
    text-align: left;
}

.author-info .name {
    font-weight: 600;
    color: var(--primary);
    font-size: 1.2rem;
}

.author-info .role {
    color: var(--accent);
    font-size: 0.95rem;
    margin: 0;
}

/* Contact */
.contact {
    background: #f9f7f2;
}

.contact-content {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-info h3 {
    color: var(--primary);
    margin-bottom: 30px;
    font-size: 1.8rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
}

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

.contact-text h4 {
    color: var(--dark);
    margin-bottom: 5px;
    font-size: 1.15rem;
}

.contact-text p {
    color: #666;
    margin: 0;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.3rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--secondary);
    transform: translateY(-5px);
}

.contact-form {
    flex: 1;
    min-width: 300px;
}

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px;
    border: 2px solid #ddd;
    border-radius: 12px;
    font-size: 1rem;
    transition: border 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

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

/* Footer */
footer {
    background: var(--dark);
    color: var(--light);
    padding: 60px 0 30px;
}

/* Notification Toast */
.notification-toast {
    position: fixed;
    top: 30px;
    right: 30px;
    background: white;
    color: var(--text);
    padding: 20px 25px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 10000;
    transform: translateX(150%);
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-left: 5px solid var(--secondary);
    max-width: 400px;
    font-weight: 500;
}

.notification-toast.show {
    transform: translateX(0);
}

.notification-toast.success {
    border-left-color: #2ecc71;
}

.notification-toast.error {
    border-left-color: #e74c3c;
}

.notification-icon {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-message {
    font-size: 1rem;
    line-height: 1.4;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand {
    flex: 1;
    min-width: 250px;
}

.footer-brand .logo {
    color: var(--light);
    font-size: 2rem;
    margin-bottom: 15px;
    display: block;
}

.footer-brand p {
    color: #bdc3c7;
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.footer-links h4 {
    color: var(--light);
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--secondary);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #34495e;
    color: #95a5a6;
    font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 768px) {
    .section-title {
        font-size: 2.3rem;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .hero p {
        font-size: 1.2rem;
    }

    .hero-image {
        width: 180px;
        height: 180px;
    }

    nav ul {
        gap: 20px;
    }

    .character-images {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    section {
        padding: 80px 0;
    }

    .hero {
        padding: 160px 0 100px;
    }

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

    .hero h1 {
        font-size: 2.3rem;
    }

    .btn {
        padding: 12px 24px;
        font-size: 1rem;
    }
}

/* Honeypot field for spam protection */
.hidden-field {
    display: none !important;
    visibility: hidden;
    height: 0;
    width: 0;
    opacity: 0;
    position: absolute;
    left: -9999px;
    z-index: -1;
}