body{
    background:linear-gradient(to right, #15213f, #101b35);    
    color: white;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Header */
.site-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    width: 100%;
}

.logo {
    font-size: 35px;
    font-weight: bold;
    flex: 0 0 auto;
    order: -1;
}

.logo span {
    color: #38BDF8;
}

.navbar{
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px 18px;
    margin-top: 15px;
    margin-right: 15px;
}

.navbutton{
    text-decoration: none;
    color:white;
    margin: 0;
    font-size: 20px;
    transition: color 0.3s ease, opacity 0.3s ease;
}

.navbutton:hover,
footer a:hover,
.divcontact a:hover {
    color: #38BDF8;
}

.name{
    font-size: 50px;
    text-align: center;
}

.name span{
    color:#38BDF8
}

.présentation{
    color:white;
    font-size: 30px;
    text-align: center;
}

.text-presentation{
    padding: 15px 15px;
    margin-left:8px;
}
.présentation span {
    color: #b1aeae;
}

.infos{
    text-align: center;
    color:#38BDF8;
    font-size: 20px;
}

/* Paragraphes */
.paragraphe{
    background-color: #101b35;
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 15px;
    border-radius: 15px;
    padding: 20px 20px;
    transition: border-color 0.3s ease;
}

.paragraphe:hover {
    border-color: rgba(56, 189, 248, 0.45);
}

h2{
    text-align: center;
    color: #38BDF8;
    font-size: 40px;
}

/* Compétences */
.skills, .work, .projets{
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    margin-top: 10px;
    gap: 10px;
}

.cases{
    flex: 1 1 calc(50% - 10px);
    min-width: 0;
    padding: 20px;
    box-sizing: border-box;
    background-color: #15213f;
    border: 1px solid rgba(56, 189, 248, 0.55);
    border-radius: 8px;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.cases:hover {
    transform: translateY(-4px);
    border-color: #38BDF8;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
}

.cases span{
    text-align: center;
    color: #38BDF8;
    font-size: 20px;
}

/* Photos */
.image-photo {
    display: block;
    width: 100%;
    max-width: 200px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    margin: 0 auto;
    border-radius: 8px 8px 0 0;
}

.photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    margin-left: 15px;
    margin-right: 15px;
}

.photo {
    background: #101b35;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    margin: 0 auto;
    max-width: 100%;
    overflow: hidden;
}

.photo:hover {
    transform: translateY(-5px);
    border-color: #38BDF8;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
}

.photo img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

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

.contact-form input, .contact-form textarea {
    padding: 0.8rem;
    background: #15213f;
    border: 1px solid #4b4b4b;
    color: white;
    border-radius: 5px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input:hover,
.contact-form textarea:hover,
.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #38BDF8;
    outline: none;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.12);
}

.btn-sent {
    padding: 15px 5px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    border: none;
    background-color: #38BDF8;
}

.btn-sent:hover {
    transform: translateY(-3px);
    background-color: #7dd3fc;
    box-shadow: 0 8px 18px rgba(56, 189, 248, 0.22);
}

.contact{
    display: flex;
    width: 100%;
    margin-top: 10px;
    gap: 10px;
}

.divcontact{
    width: 50%;
    padding: 20px;
    box-sizing: border-box;
    border-radius: 8px;
}

.divcontact a{
    text-decoration: none;
    color:#38BDF8;
}

.contactlink{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    width: 100%;
    max-width: 280px;
    color: #38BDF8;
}

.contact-link-item {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.9rem;
    width: 100%;
    min-height: 40px;
    padding: 8px 10px;
    border-radius: 10px;
    background: #15213f;
    border: 1px solid #38BDF8;
    color: white;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
}

.contact-link-item:hover {
    transform: translateY(-3px);
    border-color: #38BDF8;
    background: rgba(27, 43, 80, 0.95);
}

.contact-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    flex-shrink: 0;
}

.contact-details {
    color: #dfeeff;
    font-size: 15px;
    line-height: 2;
}

/* Footer */
footer {
    background-color: #101b35;
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 15px;
    text-align: center;
    padding: 10px 5px;
}

footer a{
    text-decoration: none;
    color:white;
    transition: color 0.3s ease;
}

/* Média */
@media screen and (max-width: 800px) {
    .navbar {
        display: none;
    }

    .skills, .work, .projets {
        flex-direction: column;
    }

    .cases {
        flex-basis: 100%;
        width: 100%;
    }
}