@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    color: #222;
}

/* PAGE D'ACCUEIL */
body:not(.page-projet) header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #fff;
    z-index: 999;
    padding-block: 10px;
    box-shadow: 1px 1px 25px rgba(0, 0, 0, 0.15);
}

.slider {
    width: 100%;
    height: 80vh;
    position: relative;
    overflow: hidden;
}

.slider-background {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(50%);
}

.slider-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
    z-index: 2;
    width: 100%;
    padding: 0 20px;
}

.slider-content h1 {
    font-size: 4rem;
    margin: 0;
    color: white;
}

.slider-content p {
    color: white;
    font-size: 2rem;
    font-weight: 300;
    margin-top: 10px;
}

h1 {
    color: white;
    font-size: 5rem;
}

h2 {
    scroll-margin-top: 120px;
    font-size: 2rem;
    margin-bottom: 50px;
}

p {
    font-size: 1.5rem;
    line-height: 1.5em;
}

.section {
    padding: 100px 0;
    scroll-margin-top: 120px;
}

.boxed {
    max-width: 1280px;
    margin-inline: auto;
    padding: 0 20px;
}

.flex {
    display: flex;
}

.wrap {
    flex-wrap: wrap;
}

.aligncenter {
    align-items: center;
}

.space-between {
    justify-content: space-between;
}

.gap20 {
    gap: 20px;
}

.orange {
    background: #13414a;
    background-size: cover;
    background-position-y: 50%;
    color: white;
}

.text-center {
    text-align: center;
}

.w25 {
    width: 25%;
}

.w32 {
    width: 32%;
}

.w40 {
    width: 30%;
    margin-bottom: 20px;
}

.w60 {
    width: 60%;
}

.btn-download {
    display: inline-block;
    margin: 20px 0;
    padding: 12px 24px;
    background-color: #13414a;
    color: white;
    text-decoration: none;
    font-weight: bold;
    border-radius: 8px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-download:hover {
    background-color: #0f353c;
    transform: scale(1.05);
}

/* HEADER */
.header-logo {
    display: block;
}

.header-logo img {
    width: 60px;
}

.header-menu {
    display: flex;
    align-items: center;
    list-style: none;
}

.header-menu li a {
    text-decoration: none;
    color: #000;
    padding: 10px 20px;
    display: block;
    box-sizing: border-box;
    transition: 0.2s ease;
}

.header-menu li a:hover {
    background-color: #f2f2f2;
}

/* COMPÉTENCES */
.skill {
    background: white;
    border-radius: 25px;
    padding: 20px;
    text-align: center;
}

.skill img {
    width: 100px;
    height: 100%;
    aspect-ratio: 1/1;
    object-fit: contain;
}

.skill h3 {
    margin-top: -2px;
    color: black;
}

.skill ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.skill li {
    margin-bottom: 8px;
    font-size: 1rem;
    color: black;
}

.skill-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    width: calc(50% - 20px);
    margin-bottom: 20px;
    text-align: left;
    color: black;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-5px);
}

/* titres des cartes */
.skill-card h3 {
    margin-bottom: 15px;
    font-size: 1.25rem;
    color: #13414a;
}

/* petits sous-titres type "Objectif :" */
.skill-card h4,
.skill-card strong {
    font-size: 1.25rem;
    color: #13414a;
    font-weight: 700;
}

/* texte uniforme dans les cartes */
.skill-card p,
.skill-card ul,
.skill-card li,
.skill-card a {
    font-size: 1rem;
    line-height: 1.6;
}

.skill-card p {
    margin-bottom: 12px;
}

.skill-card ul {
    padding-left: 20px;
    margin-bottom: 12px;
    list-style: none;
}

.skill-card li {
    margin-bottom: 8px;
    padding-left: 1em;
    position: relative;
}

.skill-card li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #13414a;
}

/* RÉALISATIONS */
.section-subtitle {
    font-size: 1rem;
    color: #666;
    margin-top: -30px;
    margin-bottom: 40px;
}

.realisation {
    background: white;
    border-radius: 20px;
    padding: 25px 20px;
    margin-bottom: 30px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transition: 0.3s ease;
    text-align: center;
}

.realisation:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}

.realisation a {
    text-decoration: none;
    color: #13414a;
    display: block;
}

.realisation-circle {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, #13414a, #1f6f7a);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    font-size: 32px;
    color: white;
    box-shadow: 0 6px 15px rgba(19, 65, 74, 0.3);
}

.realisation h3 {
    font-size: 1.1rem;
    line-height: 1.4;
    margin: 0;
}

.category-title {
    text-align: left;
    font-size: 1.5rem;
    margin: 50px 0 30px 0;
    color: #13414a;
}

/* CONTACT */
.contact-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    padding: 40px 0;
}

.contact {
    flex: 1 1 calc(33.333% - 20px);
    border: 2px dashed #13414a;
    border-radius: 15px;
    padding: 30px;
    min-width: 250px;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.05);
}

.icon {
    display: block;
    font-size: 40px !important;
}

.label {
    display: block;
    font-weight: 700;
    text-transform: uppercase;
    margin: 10px 0;
    font-size: 1.5rem;
}

.value {
    display: block;
    font-size: 1.5rem;
}

/* PAGES PROJET */
body.page-projet {
    background-color: #f4f7f8;
    color: #222;
    line-height: 1.6;
}

.page-projet .project-header {
    background: linear-gradient(135deg, #13414a, #1f6f7a);
    color: white;
    text-align: center;
    padding: 100px 20px 60px 20px;
}

.page-projet .main-title {
    color: white;
    font-size: 2.8rem;
    margin-bottom: 15px;
}

.page-projet .project-intro {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.95);
}

.page-projet .container {
    width: 90%;
    max-width: 1000px;
    margin: 0 auto;
}

.page-projet main {
    padding: 50px 0;
}

.page-projet .project-card {
    background: white;
    border-radius: 18px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.page-projet .subtitle,
.page-projet .orange-title {
    color: #13414a;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.page-projet .content p {
    margin-bottom: 18px;
    font-size: 1.05rem;
    line-height: 1.8;
}

.page-projet .orange-bullets {
    padding-left: 20px;
}

.page-projet .orange-bullets li {
    margin-bottom: 12px;
    font-size: 1.05rem;
    line-height: 1.6;
}

.page-projet .project-footer {
    text-align: center;
    padding: 20px 0 50px 0;
}

.page-projet .btn-retour {
    display: inline-block;
    padding: 12px 20px;
    background-color: #13414a;
    color: white;
    text-decoration: none;
    border-radius: 10px;
    transition: 0.3s ease;
}

.page-projet .btn-retour:hover {
    background-color: #1f6f7a;
}

/* images */
.project-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    display: block;
    margin: 25px auto;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

.download-outside {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

/* RESPONSIVE */
@media screen and (max-width: 900px) {
    .w40,
    .w60,
    .w32,
    .w25 {
        width: 100%;
    }

    .skill-card {
        width: 100%;
    }

    .contact {
        flex: 1 1 100%;
    }

    .header-menu {
        flex-wrap: wrap;
        justify-content: center;
    }

    .slider-content h1 {
        font-size: 2.8rem;
    }

    .slider-content p {
        font-size: 1.3rem;
    }

    p {
        font-size: 1.1rem;
    }

    h1 {
        font-size: 3rem;
    }

    .page-projet .main-title {
        font-size: 2rem;
    }

    .page-projet .project-card {
        padding: 20px;
    }

    .page-projet .subtitle,
    .page-projet .orange-title {
        font-size: 1.4rem;
    }
}