* {
    box-sizing: border-box;
}


:root {
    --color1: #D89584;
    --color2: #F4F4F4;
    --primary-color: #87CEEB;
    --secondary-color: #1F2833;
    --text-color: #D3D3D3;
    --bg-color: #1F2833;
}

body {
    margin: 0;
    padding-top: 70px;
    font-family: 'Roboto', Arial, sans-serif;
    line-height: 1.6;
    background-color: var(--bg-color);
    color: var(--text-color);
}

iframe {
    width: 100%;
    border: none;
    height: 400px;
    display: block;
    margin: 0 auto;
}

div.cover {
    background : linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url(cover.jpg) no-repeat center/cover;
    /* background: linear-gradient(rgba(0, 0, 255, 0.5), rgba(255, 255, 0, 0.5)),url(cover.jpg) cover;*/
    height: 620px; 
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

img.cover-profile, svg.cover-profile {
    height: 200px;
    width: 200px;
    display: block;
    margin: 20px auto 0;
    border-radius: 15px;
    background-color: rgba(0, 0, 0, .1);
    object-fit: cover;
}

h1 {
    color: white;
    text-align: center;
    font-size: 48px;
    margin: 20px 0 20px 0;
    font-weight: 700;
}

div.cover p {
    color: lightgray;
    text-align: center;
    margin: 0 0 40px 0;
    font-size: 18px;
    letter-spacing: 0.5px;
}

div.cover-contact {
    display: none;
}

div.cover-contact p {
    text-align: left;
    margin-top: 0px;
    margin-bottom: 0px;
}

div.cover-contact p:first-child {
    margin-bottom: 14px;
}

div.cover-contact * {
    color: white;
    font-size: 14px;
}

/* Supprimé - pas utilisé dans le nouveau design */

a.contact-button {
    color: #87CEEB;
    border: 3px solid #87CEEB;
    padding: 8px 20px;
    text-decoration: none;
    background-color: #00000040;
    display: inline-block;
    margin-top: 18px;
    font-size: 14px;
}

a.contact-button-portfolio {
    position: absolute; 
    right: 20px; 
    top:5px;
    color: #87CEEB;
}

a.contact-button:hover {
    color: white;
    border: 3px solid white;
}

.cover-cta {
    text-align: center;
}

.section {
    padding-left: 40px;
    padding-right: 40px;
    padding-top: 30px;
    padding-bottom: 30px;
    overflow: auto;
}

div.section-grise1 {
    background: url(triangle2white.svg) no-repeat center bottom -1px/100%;
    background-color: var(--color2);
    padding-bottom: 70px;
}

div.section-grise2 {
    background: url(triangle1white.svg) no-repeat center top/100%;
    background-color: var(--color2);
    padding-top: 80px;
}

h2 {
    text-align: center;
    font-size: 34px;
    margin-top: 0px;
    color: #1F2833;
}

div.separateur {
    background-color: #979797;
    height: 1px;
    width: 150px;
    position: relative;
    left: 50%;
    margin-left: -75px;
}

div.section-grise1 p {
    font-size: 22px;
    color: #656565;
    text-align: center;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
}

img.col-contenu {
    width: 40%;
}

div.col-contenu {
    width: 60%;
    padding-left: 16px;
}

.float-right {
    float: right;
}

div.texte-avec-ligne-verticale {
    border-left: 4px solid #87CEEB;
    padding-left: 20px;
    display: block;
    background-color: rgba(135, 206, 235, 0.05);
    padding: 20px 20px 20px 20px;
    border-radius: 4px;
}

div.texte-avec-ligne-verticale p {
    margin-top: 0;
    color: #D3D3D3;
    font-size: 16px;
    line-height: 1.8;
    margin: 0;
    white-space: pre-wrap;
    text-align: justify;
    text-justify: inter-word;
}

/* Override for light backgrounds like portfolio pages */
.section-light .texte-avec-ligne-verticale p {
    color: #1F2833;
}

div.texte-avec-ligne-verticale a {
    color: #87CEEB;
    text-decoration: none;
}

div.texte-avec-ligne-verticale a:hover {
    text-decoration: underline;
}

div.barre-verticale {
    height: 50px;
    width: 4px;
    background-color: #87CEEB;
    margin-right: 8px;
}

.col-portfolio {
    width: 47%;
    display: inline-block;
    vertical-align: top;
    margin-bottom: 20px;
}

.col-portfolio img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 20px;
}

.portfolio-item {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.portfolio-content {
    display: flex;
    gap: 12px;
    padding: 20px;
}

.barre-verticale {
    height: 100%;
    width: 4px;
    background-color: #87CEEB;
    flex-shrink: 0;
}

.portfolio-text {
    flex: 1;
}

.portfolio-text h3 {
    margin: 0 0 10px 0;
    color: #1F2833;
    font-size: 22px;
}

.portfolio-text h3 a {
    color: #1F2833;
    text-decoration: none;
}

.portfolio-text h3 a:hover {
    color: #87CEEB;
}

.portfolio-text p {
    margin: 8px 0;
    color: #656565;
    font-size: 14px;
}

.portfolio-award {
    font-weight: bold;
    color: #D89584;
}

.portfolio-tech {
    font-size: 12px;
    color: #999;
    margin-top: 12px;
}

.portfolio-link {
    display: inline-block;
    margin-top: 10px;
    color: #87CEEB;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.portfolio-link:hover {
    color: #1F2833;
}

div.frame {
    margin: 30px 50px;
    padding: 20px 30px;
    background-color: white;
    box-shadow: 0px 0px 8px 8px rgba(0, 0, 0, 0.1);
    color: #28323e;

}

p.frame-title {
    font-size: 30px;
    margin-top: 5px;
    margin-bottom: 20px;
    text-align: center;
    color: #1F2833;
}

div.frame img {
    width: 100px;
}

/* PORTFOLIO */
.portfolio-header {
    height: 70px;
    background: url(header.jpg) no-repeat center/cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.portfolio-header-title {
    font-size: 22px;
    font-weight: bold;
    color: white;
    padding: 0;
    margin: 0;
    line-height: 1;
}

h1.portfolio {
    font-size: 46px;
    color: black;
    line-height: 1;
    padding-top: 10px;
}

h2.portfolio {
    font-size: 26px;
    color: black;
    font-weight: normal;
    margin-bottom: 0;
}

a.portfolio-back {
    color: #87CEEB;
    margin-left: -10px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

a.portfolio-back:hover {
    color: white;
}

img.portfolio {
    width: 70%;
    max-width: 475px;
}

.display-mobile {
    display: none;
}

/* NAVIGATION */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(31, 40, 51, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: background-color 0.3s ease;
    padding: 16px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    position: relative;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    border: none;
    background: none;
    padding: 0;
    gap: 6px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.nav-logo {
    color: var(--primary-color);
    font-size: 28px;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-logo:hover {
    color: white;
}

.nav-menu {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    gap: 24px;
}

.nav-item {
    margin-left: 0;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
    padding: 8px 12px;
    border-radius: 4px;
}

.nav-link:hover {
    color: var(--primary-color);
    background-color: rgba(135, 206, 235, 0.1);
}

/* FOOTER */
.footer {
    background: linear-gradient(135deg, #0a0e1a 0%, #1F2833 50%, #151a22 100%);
    color: var(--text-color);
    padding: 80px 0 30px;
    margin-top: 60px;
    border-top: 1px solid rgba(135, 206, 235, 0.3);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    margin-bottom: 50px;
}

.footer-section h3 {
    font-size: 24px;
    color: #87CEEB;
    margin-bottom: 15px;
    font-weight: 700;
}

.footer-section h4 {
    font-size: 16px;
    color: #87CEEB;
    margin-bottom: 15px;
    font-weight: 600;
}

.footer-tagline {
    font-size: 14px;
    color: #D3D3D3;
    margin-bottom: 10px;
}

.footer-description {
    font-size: 14px;
    color: #D3D3D3;
    line-height: 1.6;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #D3D3D3;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: #87CEEB;
    transform: translateX(5px);
}

.footer-social {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.social-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #87CEEB;
    border-radius: 50%;
    color: #87CEEB;
    transition: all 0.3s ease;
    font-size: 20px;
    background-color: transparent;
}

.social-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.social-icon i {
    font-size: 24px;
    color: #87CEEB;
}

.social-icon:hover {
    background-color: rgba(135, 206, 235, 0.1);
    transform: scale(1.1);
}

.social-icon:hover i {
    color: white;
}

.footer-cta {
    display: inline-block;
    background-color: #87CEEB;
    color: #1F2833;
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    width: 100%;
    text-align: center;
}

.footer-cta:hover {
    background-color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(135, 206, 235, 0.3);
}

.footer-bottom {
    border-top: 1px solid rgba(135, 206, 235, 0.2);
    padding-top: 30px;
    text-align: center;
}

.footer-bottom p {
    font-size: 12px;
    color: #D3D3D3;
    margin: 0;
}

/* INTRO TEXT */
.intro-text {
    font-size: 18px;
    color: #656565;
    text-align: center;
    margin-bottom: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ABOUT SECTION */
.about-section {
    background: linear-gradient(135deg, #1F2833 0%, #151a22 100%);
    color: #D3D3D3;
    padding: 60px 20px;
}

.about-section h2 {
    color: #87CEEB;
    margin-bottom: 40px;
    text-align: center;
    font-size: 32px;
}

.about-container {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    margin-bottom: 30px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.about-section img.col-contenu {
    width: 45%;
    max-width: 450px;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.about-section div.col-contenu {
    width: 55%;
    padding-left: 30px;
}

.about-content {
    max-width: 100%;
}

.about-text {
    text-align: left;
}

.about-text p {
    font-size: 16px;
    line-height: 1.8;
    color: #1F2833;
    margin-bottom: 20px;
    text-align: left;
}

.about-intro {
    font-size: 18px;
    margin-bottom: 30px;
    color: #87CEEB;
}

.about-services {
    font-size: 18px;
    color: #1F2833;
    margin-top: 30px;
    margin-bottom: 20px;
    font-weight: 600;
}

.about-list {
    display: block;
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
    margin: 20px 0 30px 0;
}

.about-list li {
    padding: 12px 0;
    background-color: transparent;
    border-left: none;
    border-radius: 0;
    text-align: left;
    color: #1F2833;
    font-weight: 500;
    list-style: disc;
    margin-left: 20px;
    line-height: 1.6;
}

.about-approach {
    font-size: 16px;
    margin-top: 30px;
    padding: 20px;
    background-color: rgba(135, 206, 235, 0.1);
    border-radius: 8px;
    color: #1F2833;
}

/* Nouveau styles pour sections, cartes, compétences, animations */
.section-light {
    background-color: var(--color2);
    color: #1F2833;
}

.section-light h2 {
    color: #1F2833;
}

.tagline {
    color: lightgray;
    text-align: center;
    margin-top: 8px;
    font-size: 14px;
}

.social-links a {
    color: #87CEEB;
    text-decoration: none;
    margin: 0 6px;
    font-size: 14px;
}
.social-links a:hover { color: white; }

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.card {
    background-color: white;
    color: #1F2833;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    transition: transform .2s ease, box-shadow .2s ease;
    animation: fadeInUp .6s ease both;
}
.card h3 {
    margin-top: 0;
    margin-bottom: 6px;
    color: #1F2833;
    font-size: 20px;
}
.card p { margin-top: 0; margin-bottom: 8px; }
.card img { width: 100%; height: auto; border-radius: 6px; }
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0,0,0,0.16); }

.card-img {
    width: 100%;
    height: auto;
    border-radius: 6px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 14px;
    align-items: center;
    justify-items: center;
}

.skill {
    background-color: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    padding: 12px 10px;
    width: 100%;
    text-align: center;
    transition: background-color .2s ease, transform .2s ease;
}
.skill i {
    font-size: 30px;
    display: block;
    margin-bottom: 6px;
}
.skill span { font-size: 14px; color: #D3D3D3; }
.skill:hover { background-color: rgba(255,255,255,0.12); transform: translateY(-2px); }
.no-icon { display: inline-block; padding-top: 4px; }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* CONTACT FORM */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    animation: fadeInUp 0.6s ease both;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #1F2833;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    font-family: 'Roboto', Arial, sans-serif;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #87CEEB;
    box-shadow: 0 0 0 2px rgba(135, 206, 235, 0.2);
}

.submit-button {
    background-color: #87CEEB;
    color: #1F2833;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.submit-button:hover {
    background-color: #1F2833;
    color: #87CEEB;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(135, 206, 235, 0.3);
}

/* RESPONSIVE DESIGN : MOBILE */
@media only screen and (max-width: 767px) {
    .navbar {
        padding: 12px 0;
    }

    .nav-container {
        flex-wrap: wrap;
        padding: 0 15px;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-logo {
        font-size: 22px;
        flex: 1;
    }

    .nav-menu {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        margin-top: 0;
        background-color: rgba(31, 40, 51, 0.98);
    }

    .nav-menu.active {
        max-height: 300px;
        margin-top: 12px;
    }

    .nav-item {
        margin: 0;
        border-bottom: 1px solid rgba(135, 206, 235, 0.1);
    }

    .nav-link {
        font-size: 15px;
        padding: 12px 16px;
        display: block;
        border-radius: 0;
    }

    img.cover-profile {
        height: 150px;
        width: 150px;
        margin: 30px auto 20px;
    }

    h1 {
        font-size: 36px;
        margin: 0 0 12px 0;
    }

    /* ABOUT SECTION - MOBILE */
    .about-section {
        padding: 40px 15px;
    }

    .about-section h2 {
        font-size: 24px;
        margin-bottom: 30px;
    }

    .about-container {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

    .about-section img.col-contenu {
        width: 100%;
        max-width: 300px;
        height: auto;
    }

    .about-section div.col-contenu {
        width: 100%;
        padding-left: 0;
    }

    .about-text p {
        font-size: 15px;
        line-height: 1.6;
    }

    .about-intro {
        font-size: 16px;
    }

    .about-services {
        font-size: 16px;
    }

    .texte-avec-ligne-verticale {
        padding: 15px 15px 15px 15px;
    }

    .texte-avec-ligne-verticale p {
        font-size: 14px;
        line-height: 1.6;
    }

    div.cover p {
        font-size: 16px;
        margin: 0 0 20px 0;
    }

    .section {
        padding-left: 20px;
        padding-right: 20px;
    }

    div.section-grise1 {
        padding-bottom: 40px;
    }

    h2 {
        font-size: 30px;
    }

    img.col-contenu {
        width: 100%;
    }

    div.col-contenu {
        width: 100%;
        padding-left: 0px;
        margin-top: 20px;
    }

    .col-portfolio {
        width: 100%;
        margin-bottom: 20px;
    }

    div.frame {
        margin: 0px 0px;
        padding: 0px 0px;
        box-shadow: none;
    }

    div.frame img {
        width: 70px;
    }

    /* POSTFOLIO - MOBILE */
    .portfolio-header-title {
        font-size: 19px;
        padding-top: 10px;
        padding-left: 4px;
    }

    a.contact-button {
        padding: 7px 12px;
        margin-top: 22px;
        font-size: 12px;
    }

    a.contact-button-portfolio {
        right: 12px;
    }

    h1.portfolio {
        font-size: 40px;
    }

    h2.portfolio {
        font-size: 22px;
    }

    img.portfolio {
        width: 100%;
    }

    .display-mobile {
        display: block;
    }

    .footer {
        padding: 40px 0 20px;
    }

    .footer-container {
        padding: 0 15px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 30px;
    }

    .footer-section {
        text-align: center;
    }

    .footer-section h3 {
        font-size: 18px;
        margin-bottom: 12px;
    }

    .footer-section h4 {
        font-size: 14px;
        margin-bottom: 12px;
    }

    .footer-tagline {
        font-size: 13px;
    }

    .footer-description {
        font-size: 13px;
        margin-bottom: 15px;
    }

    .footer-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }

    .footer-links li {
        margin-bottom: 0;
    }

    .footer-links a {
        font-size: 13px;
    }

    .footer-social {
        justify-content: center;
        gap: 15px;
        margin-bottom: 15px;
    }

    .social-icon {
        width: 40px;
        height: 40px;
    }

    .social-img {
        width: 26px;
        height: 26px;
    }

    .footer-cta {
        width: 100%;
        padding: 12px 20px;
        font-size: 13px;
        margin-top: 15px;
    }

    .footer-bottom {
        padding-top: 20px;
    }

    .footer-bottom p {
        font-size: 11px;
        line-height: 1.5;
    }

    .intro-text {
        font-size: 16px;
    }

    .about-text p {
        font-size: 15px;
        line-height: 1.6;
    }

    .about-intro {
        font-size: 16px;
    }

    .about-list {
        flex-direction: column;
        gap: 15px;
    }

    .about-list li {
        min-width: 100%;
    }

    /* PORTFOLIO RESPONSIVE */
    .portfolio-header {
        height: 60px;
        padding: 0 15px;
    }

    .portfolio-header-title {
        font-size: 18px;
        padding-left: 4px;
    }

    h1.portfolio {
        font-size: 32px;
        padding-top: 8px;
    }

    h2.portfolio {
        font-size: 18px;
    }

    a.portfolio-back {
        font-size: 12px;
    }

    img.portfolio {
        width: 90%;
        max-width: 100%;
        margin: 20px auto;
        display: block;
    }

    .display-mobile {
        display: block;
    }

    /* CONTACT FORM MOBILE */
    .contact-form {
        padding: 20px;
        margin: 0 15px;
    }

    .form-group input,
    .form-group textarea {
        font-size: 14px;
    }

    .submit-button {
        font-size: 14px;
        padding: 10px 20px;
    }

    /* PORTFOLIO PAGES RESPONSIVE */
    .texte-avec-ligne-verticale p {
        text-align: justify;
        text-justify: inter-word;
    }

    .section h2 {
        text-align: center;
    }

    .section-light h2 {
        text-align: center;
    }

    .cards {
        justify-content: center;
    }

    .skills-grid {
        justify-content: center;
    }
}

