/* ==============================
   STYLES GLOBAUX
   ============================== */
   body {
    background-color: #F7F9FC;
    font-family: 'Lato', sans-serif;
    font-size: 1em;
    color: #333;
    margin: 0;
    padding: 0;
}

/* ==============================
   NAVIGATION
   ============================== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background-color: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

#logo {
    width: 150px;
    height: auto;
    display: block;
}

.navbar__lien {
    color: #0073E6;
    margin-right: 20px;
    text-decoration: none;
    font-size: 1.1em;
    transition: color 0.3s ease-in-out;
}

.navbar__lien:hover {
    color: #004A99;
    text-decoration: underline;
}

/* ==============================
   SECTION BIO & PRÉSENTATION
   ============================== */
.bio {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    background-color: #EEF3F7;
}

.bio__portrait img {
    height: 500px;
    width: auto;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-right: 100px;
}

.bio__presentation {
    max-width: 600px;
    padding: 20px;
}

.bio__presentation h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5em;
    color: #0073E6;
}

.bio__presentation p {
    font-size: 1.2em;
    line-height: 1.6;
    text-align: justify;
}

/* ==============================
   PORTFOLIO
   ============================== */
.portfolio {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 50px;
    background-color: #fff;
}

.portfolio__projet {
    background: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    transition: transform 0.3s ease-in-out;
    padding: 20px;
    text-align: center;
}

.portfolio__projet:hover {
    transform: translateY(-10px);
}

.portfolio__projet img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 5px;
}

.portfolio__projet h2 {
    font-size: 1.4em;
    padding: 15px;
    background: #0073E6;
    color: #fff;
    text-align: center;
}

.portfolio__projet p {
    text-align: justify;
    margin-bottom: 15px;
}

/* ==============================
   BOUTONS GLOBAUX
   ============================== */
.btn,
.btn-container {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 15px;
    padding: 15px 0;
}

.btn a,
.btn-details,
.btn-mockups,
.btn-prototype {
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease-in-out;
}

.btn a,
.btn-details {
    background-color: #0073E6;
    color: #fff;
    padding: 10px 20px;
}

.btn a:hover,
.btn-details:hover {
    background-color: #004A99;
}

.btn-mockups,
.btn-prototype {
    background-color: #EEF3F7;
    color: #0073E6;
    padding: 8px 15px;
}

.btn-mockups:hover,
.btn-prototype:hover {
    background-color: #CCE1F9;
}

.btn-group {
    display: flex;
    justify-content: center;
    gap: 10px;
}

/* ==============================
   PAGE CV
   ============================== */
.mon-cv {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    margin: 50px auto;
    max-width: 1200px;
    padding: 20px;
}

.mon-cv__atouts,
.mon-cv__parcours {
    background: #EEF3F7;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.titres {
    color: #0073E6;
    font-family: 'Playfair Display', serif;
    font-size: 1.8em;
    margin-bottom: 15px;
    text-align: center;
}

.sous-titres {
    font-family: 'Lato', sans-serif;
    font-size: 1.3em;
    font-weight: bold;
    color: #004A99;
    margin-top: 20px;
}

ul {
    padding-left: 20px;
}

li {
    font-size: 1em;
    line-height: 1.5;
    color: #333;
    margin-bottom: 5px;
}

/* ==============================
   ÉTUDE DE CAS ACSP
   ============================== */
.back-button-container {
    text-align: left;
    margin-top: 20px;
    margin-bottom: 30px;
}

.back-button {
    background-color: #0073E6;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease-in-out;
}

.back-button:hover {
    background-color: #004A99;
}

.case-study {
    max-width: 900px;
    margin: auto;
    padding: 40px 20px;
    text-align: center;
}

.case-intro {
    background: #EEF3F7;
    padding: 50px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    margin-bottom: 40px;
}

.case-intro h1 {
    font-size: 2.5em;
    color: #0073E6;
    font-family: 'Playfair Display', serif;
    margin-bottom: 15px;
}

.case-intro p {
    font-size: 1.2em;
    color: #333;
    line-height: 1.6;
}

.subtitle {
    font-size: 1.1em;
    color: #555;
    margin-bottom: 20px;
}

.case-content article {
    background: #fff;
    padding: 30px;
    margin-bottom: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: justify;
}

.case-content h2 {
    color: #0073E6;
    font-size: 1.8em;
    font-family: 'Playfair Display', serif;
    border-bottom: 3px solid #0073E6;
    padding-bottom: 10px;
    margin-bottom: 20px;
    display: inline-block;
}

.case-content ul,
.case-content ol {
    padding-left: 40px;
    text-align: left;
    display: inline-block;
    margin-bottom: 20px;
}

.case-content ul {
    list-style-type: disc;
}

.case-content li {
    font-size: 1.1em;
    color: #333;
    line-height: 1.8;
    margin-bottom: 10px;
}

.case-content img {
    width: 80%;
    height: auto;
    border-radius: 8px;
    margin-top: 20px;
}

.three-miniatures {
    display: flex;
    justify-content: center;
    gap: 0;
    max-width: 800px;
    margin: 40px auto;
}

.mini-box {
    text-align: center;
    width: 33.33%;
    overflow: hidden;
}

.mini-box img {
    display: block;
    width: 100%;
    height: auto;
}

/* Figcaption stylisé (optionnel) */
.mini-box figcaption {
    font-size: 0.9em;
    color: #333;
    margin-top: 5px;
}

.gif-demo {
    text-align: center;
    margin: 40px 0;
}

/* Le GIF lui-même */
.gif-demo img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Paragraphe explicatif */
.gif-demo p {
    margin-top: 10px;
    font-size: 1em;
    color: #555;
    line-height: 1.5;
}

.images-grid-2x3 {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
    text-align: center;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 15px;
}

/* Conteneur de chaque image+texte */
.img-box {
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    padding: 10px;
}

/* L'image occupe la totalité de la largeur de la box */
.img-box img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 0 auto;
}

.img-box figcaption {
    font-size: 1em;
    color: #333;
    margin-top: 8px;
}

/* FOOTER */
.foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #0073E6;
    color: #fff;
    padding: 20px;
}

.foot_contacts {
    font-size: 1em;
    color: #fff;
    margin-right: 20px;
}

.foot_contacts a {
    text-decoration: none;
    color: #fff;
}

.linkedin {
    width: 50px;
    height: 50px;
    margin: 10px;
}

.foot a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease-in-out;
}

.foot a:hover {
    text-decoration: underline;
}

/* RÉPONSIVE DESIGN */
@media screen and (max-width: 1024px) {
    .mon-cv {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}