:root {
    --brick-ember: #c3331d;
    --cornsilk: #faf3dc;
    --shadow-grey: #231f20;
    --alabaster-grey: #d4d6d9;
}

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



body {
    font-family: 'Libre Bodoni', serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    background-color: var(--cornsilk);
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E"),
        radial-gradient(
            circle at bottom right,
            var(--brick-ember) 1%,
            var(--cornsilk) 50%
        );
    background-repeat: repeat, no-repeat;
    background-size: 200px 200px, cover;
    color: var(--shadow-grey);
    position: relative;
    overflow-x: hidden;
}

/*  background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E"),
        linear-gradient(
            180deg,
            #faf3dc 25%,
            #c3331d 95%
        );
*/

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation */
header {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
    background-color: var(--cornsilk);
    background-repeat: repeat, no-repeat;
    background-size: 200px 200px, cover;
    border-bottom: 1px solid var(--shadow-grey);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    padding: 2rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: lowercase;
    letter-spacing: 2px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 3rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--shadow-grey);
    font-weight: 400;
    text-transform: lowercase;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--brick-ember);
}

/* Hero Section */
.hero {
    max-width: 1200px;
    margin: 4rem auto 3rem;
    margin-bottom: 15vh;
    margin-top: 15vh;
    padding: 0 2rem;
}

.hero-content {
    text-align: right;
}

.hero-content h2 {
    font-size: 3.5rem;
    font-weight: 700;
    text-transform: lowercase;
    margin-bottom: 1rem;
    line-height: 1.1;
    letter-spacing: -1px;
}

.hero-content p {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--shadow-grey);
    margin-bottom: 0;
}

/* Projects Section */
.projects-preview h3 {
    font-size: 2rem;
    text-transform: lowercase;
    margin-bottom: 2rem;
}

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

.project-card {
    background: white;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(35, 31, 32, 0.1);
}

.project-image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
}

.project-card h4 {
    font-size: 1.3rem;
    margin: 1.5rem 1.5rem 0.5rem;
    text-transform: lowercase;
}

.project-card p {
    color: var(--shadow-grey);
    font-size: 0.9rem;
    margin: 0 1.5rem 1.5rem;
}

.project-link {
    display: inline-block;
    margin-top: 0.5rem;
    font-style: italic;
    color: var(--shadow-grey);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.project-link:hover {
    opacity: 0.7;
    text-decoration: underline;
}

/* CTA Section */
.cta-section {
    margin: 4rem auto;
    padding: 3rem 2rem;
    background: white;
}

.cta-section h3 {
    font-size: 2rem;
    text-transform: lowercase;
    margin-bottom: 1.5rem;
}

.cta-section p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 700px;
}

/* Buttons */
.btn {
    font-family: 'Libre Bodoni', serif;
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--brick-ember);
    color: var(--cornsilk);
    text-decoration: none;
    border: 2px solid var(--brick-ember);
    text-transform: lowercase;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 50px;
}

.btn:hover {
    background-color: transparent;
    color: var(--brick-ember);
}

/* Footer */
footer {
    background-color: var(--shadow-grey);
    color: var(--cornsilk);
    padding: 2rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-content img {
    width: 24px;
    height: 24px;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 2rem;
    }

    .nav-links {
        gap: 1.5rem;
    }

    .hero-content h2 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
    }
}

/* PAGE CV */

.titre {
    margin-top: 8vh;
    margin-bottom: 2vh;
    font-size: 2rem;
    font-weight: 700;
    text-transform: lowercase;
}

.cv-container {
    background: var;
    padding: 3rem;
    margin-bottom: 5rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.skill-category {
    border-left: 2px solid var(--brick-ember);
    padding-left: 1.5rem;
}

.skill-category h4 {
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: lowercase;
    margin-bottom: 0.5rem;
}

.skill-category p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--shadow-grey);
}

.cv-section {
    margin-bottom: 3rem;
}

.cv-section h2 {
    font-size: 1.8rem;
    text-transform: lowercase;
    font-weight: 700;
    border-bottom: 2px solid var(--brick-ember);
    padding-bottom: 0.75rem;
    margin-bottom: 1.5rem;
}

.section-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.subsection-col {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.cv-item {
    border-left: 2px solid var(--brick-ember);
    padding-left: 1.5rem;
}

.cv-item h3 {
    font-size: 1.2rem;
    text-transform: lowercase;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.cv-item .role {
    font-size: 0.95rem;
    font-style: italic;
    color: #666;
    margin-bottom: 0.5rem;
}

.cv-item .detail {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--shadow-grey);
}

.cv-item .years {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--brick-ember);
    margin-top: 0.5rem;
}

.interests {
    border-left: 2px solid var(--brick-ember);
    padding-left: 1.5rem;
}

.interests h4 {
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: lowercase;
    margin-bottom: 0.75rem;
}

.language-item {
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.language-item strong {
    display: block;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.interests-list {
    font-size: 0.9rem;
    line-height: 1.8;
}

@media (max-width: 768px) {
    .cv-header {
        text-align: left;
        margin-top: 4vh;
    }

    .cv-header h1 {
        font-size: 2rem;
    }

    .cv-header p {
        font-size: 1rem;
    }

    .cv-container {
        padding: 1.5rem;
    }

    .section-content {
        grid-template-columns: 1fr;
    }

    .cv-section h2 {
        font-size: 1.4rem;
    }
}

/* PAGES PROJETS */

.titre-projets {
    margin-top: 8vh;
    padding-bottom: 4vh;
}

/* PAGE CONTACT */

.contact-section {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
    margin-bottom: 8rem;
}

.contact-container {
    background: white;
    padding: 3rem;
}

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

.contact-header h1 {
    font-size: 2.5rem;
    text-transform: lowercase;
    margin-bottom: 1rem;
    font-weight: 700;
}

.contact-header p {
    font-size: 1.1rem;
    color: var(--shadow-grey);
}

.contact-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

/* Formulaire */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.form-group label {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--shadow-grey);
    text-transform: lowercase;
}

.contact-form input,
.contact-form textarea {
    padding: 0.75rem;
    border: 1px solid var(--alabaster-grey);
    border-radius: 4px;
    font-family: 'Libre Bodoni', serif;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--brick-ember);
    box-shadow: 0 0 0 2px rgba(195, 51, 29, 0.1);
}

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

.form-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.form-note {
    font-size: 0.85rem;
    color: var(--shadow-grey);
    margin: 0;
    opacity: 0.7;
}

/* Informations de contact */
.contact-info {
    padding: 2rem;
    background-image: url("fleurs.jpeg");
    background-color: #f9f9f9d9;
    background-blend-mode: lighten;
    background-size: cover;
    border-radius: 4px;
    height: fit-content;
}

.contact-info h3 {
    font-size: 1.3rem;
    text-transform: lowercase;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.info-item {
    margin-bottom: 1.5rem;
}

.info-item .label {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.info-item a {
    color: var(--brick-ember);
    text-decoration: none;
    font-size: 1rem;
    transition: opacity 0.3s ease;
}

.info-item a:hover {
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 768px) {
    .contact-section {
        margin: 2.5rem auto 4rem;
        padding: 0 0.5rem; /* Très peu de padding */
    }

    .contact-container {
        padding: 1.75rem 1.25rem; /* Confortable mais compact */
        margin: 0 0.25rem;
    }

    .contact-header h1 {
        font-size: 2rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .contact-info {
        margin-top: 1.5rem;
        padding: 1.75rem 1rem;
    }
}




/* Transitions en fondu */

html {
    scroll-behavior: smooth;
}

body {
    animation: fadeIn 0.6s ease-in;
}

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

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

body.fade-out {
    animation: fadeOut 0.4s ease-out forwards;
}
