@font-face {
    font-family : Bethany_Elingston;
    src: url(../fonts/Bethany_Elingston.otf);
}

body {
    margin: 0;
    font-family: 'Urbanist', sans-serif; 
    background-color: #F1F1E9;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
    margin: 0 10vw 0 10vw;
}

/* ========================================= */
/* PAGE D'ACCUEIL                            */
/* ========================================= */

.page-accueil {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8vh 32px;
}

.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1000px;
}

.hero-box {
    position: relative;
    width: 100%;
    border: 1px solid #000;
    border-radius: 20px;
    padding: 64px 80px 80px 80px;
    margin-bottom: 48px;
    box-sizing: border-box;
}

.hero-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.hero-portfolio {
    font-family: 'Urbanist', sans-serif;
    font-size: 5rem;
    font-weight: 300;
    color: #000;
}

.hero-annee {
    font-family: Bethany_Elingston, serif;
    font-size: 4rem;
    color: #000;
    margin-top: 48px;
}

.hero-nom {
    font-family: Bethany_Elingston, serif;
    font-size: 6.5rem;
    color: #000;
    text-align: center;
    margin: 0;
    font-weight: normal;
    line-height: 1;
}

.hero-tags-wrapper {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translate(-50%, 50%);
    background-color: #F1F1E9; 
    padding: 0 24px;
}

.hero-tags-wrapper .tags-container {
    margin-bottom: 0;
}

.hero-action {
    margin-top: 24px;
}

/* === Responsive : Adaptation pour tablettes et mobiles === */
@media (max-width: 900px) {
    .hero-box {
        padding: 40px 24px 64px 24px;
    }
    .hero-top {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
    .hero-annee {
        margin-top: 0;
        font-size: 3rem;
    }
    .hero-portfolio {
        font-size: 3.5rem;
    }
    .hero-nom {
        font-size: 4rem;
    }
    .hero-tags-wrapper {
        width: 100%;
        padding: 0 16px;
        box-sizing: border-box;
    }
    .hero-tags-wrapper .tags-container {
        flex-wrap: wrap;
        gap: 12px;
    }
}

/* ========================================= */
/* TAGS ACCUEIL                              */
/* ========================================= */

.tags-container {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 64px;
}

.tag {
    background-color: transparent;
    border: 1px solid #000;
    border-radius: 100px;
    padding: 8px 40px;
    color: #000;
    font-family: 'Urbanist', sans-serif;
    font-size: 22px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

/* ========================================= */
/* BOUTONS RÉUTILISABLES                     */
/* ========================================= */

.btn-primaire, .btn-secondaire {
    font-family: 'Urbanist', sans-serif;
    font-weight: 600;
    font-size: 16px;
    padding: 10px 32px;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    align-items: center;
    width: fit-content;
    text-decoration: none;
}

/* Bouton principal */
.btn-primaire {
    background-color: #0A332F;
    color: #F1F1E9;
    border: 2px solid #0A332F;
    box-shadow: 0 4px 10px rgba(10, 51, 47, 0.2);
}

.btn-primaire:hover {
    background-color: #1A544D;
    border-color: #1A544D;
    color: #F1F1E9;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(10, 51, 47, 0.3);
}

/* Bouton secondaire (Contour) */
.btn-secondaire {
    background-color: transparent;
    color: #0A332F;
    border: 2px solid #0A332F;
}

.btn-secondaire:hover {
    background-color: #9CC97F;
    color: #0A332F;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(156, 201, 127, 0.3);
}

.git-btn {
    height: 24px;
}

/* ========================================= */
/* HEADER - HOVER & PAGE ACTIVE              */
/* ========================================= */

header {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

header a {
    position: relative;
    padding-bottom: 4px;
}

header a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #333;
    transition: width 0.3s ease;
}

header a:hover::after,
header a.active::after {
    width: 100%;
}

img {
    width: 100%;
}

.logo {
    font-family: Bethany_Elingston;
    margin-right: auto;
}

a {
    text-decoration: none;
    color: #333;
}

header {
    background-color: #9CC97F;
    padding: 32px 64px 32px 32px;
    margin: 32px 32px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
}

h1 {
    font-family: Bethany_Elingston, serif;
    text-align: center;
    font-weight: 500;
    font-size: 48px;
    margin-top: 48px;
    margin-bottom: 24px;
}


/* =========================================
/* PAGE DÉTAIL D'UN PROJET                   */
/* ========================================= */

.page-projet {
    padding: 32px 64px 64px 64px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.lien-retour {
    display: inline-block;
    font-weight: 600;
    color: #0A332F;
    margin-bottom: 32px;
    transition: opacity 0.2s ease;
}

.lien-retour:hover {
    opacity: 0.7;
}

.projet-header {
    margin-bottom: 48px;
}

.projet-header h1 {
    text-align: left;
    margin-top: 0;
    margin-bottom: 16px;
}

.projet-technos {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.techno {
    background-color: #9CC97F;
    color: #0A332F;
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 700;
}

.projet-intro {
    margin-bottom: 64px;
    border-left: 3px solid #0A332F;
    padding-left: 24px;
}

.projet-intro p {
    font-size: 1.2rem;
    line-height: 1.7;
    color: #333;
    margin-top: 0;
    margin-bottom: 16px;
    max-width: 950px;
}

.projet-intro p:last-child {
    margin-bottom: 0;
}

.projet-visuel {
    flex: 5;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.projet-visuel img {
    display: block;
    width: 100%;
    aspect-ratio: 5 / 4; 
    object-fit: cover; 
    object-position: top center;   
    border-radius: 16px;
}

.projet-infos {
    flex: 5;
    display: flex;
    flex-direction: column;
}

.projet-infos h2 {
    font-family: 'Urbanist', sans-serif;
    color: #0A332F;
    margin-top: 0;
    margin-bottom: 16px;
}

.projet-infos p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333;
    margin-bottom: 16px;
} 

.projet-contenu {
    display: flex;
    gap: 48px;
    align-items: start;
    margin-bottom: 80px; 
}

.projet-contenu.inverse {
    flex-direction: row-reverse;
}

.projet-cta {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 48px;
    padding-top: 48px;
    border-top: 1px solid rgba(10, 51, 47, 0.1);
}

/* Espacement au-dessus du 2ème titre de la section A3 */
.design-a3-textes h2:not(:first-child) {
    margin-top: 40px;
}

/* Responsive */
@media (max-width: 900px) {
    .projet-contenu, .projet-contenu.inverse {
        flex-direction: column;
        margin-bottom: 48px;
    }
    .projet-cta {
        flex-direction: column;
        align-items: center;
    }
}

/* ========================================= */
/* LECTEUR VIDÉO RESPONSIVE (16/9)           */
/* ========================================= */

.video-wrapper {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto 40px auto;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ========================================= */
/* LECTEUR VIDÉO ALTERNATIF                  */
/* ========================================= */

.video-lien-externe {
    display: block;
    text-decoration: none;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto 40px auto;
}

.video-miniature-container {
    position: relative;
    padding-bottom: 56.25%; /* Ratio 16:9 */
    height: 0;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    background-size: cover;
    background-position: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.video-lien-externe:hover .video-miniature-container {
    transform: scale(1.01);
    box-shadow: 0 15px 35px rgba(10, 51, 47, 0.25);
    filter: brightness(0.9); /* Assombrit légèrement au survol */
}

/* bouton Play YouTube */
.play-button-youtube {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 68px;
    height: 48px;
    background-color: #FF0000; /* Rouge YouTube */
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

/* Triangle blanc du bouton Play */
.play-button-youtube::after {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 0 10px 18px;
    border-color: transparent transparent transparent #FFFFFF;
    margin-left: 4px;
}

.video-lien-externe:hover .play-button-youtube {
    background-color: #CC0000;
}

/* ========================================= */
/* PAGE À PROPOS                             */
/* ========================================= */

.page-propos {
    padding: 32px 0 64px 0;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.sous-titre {
    font-family: 'Urbanist', sans-serif;
    font-weight: 600;
    color: #9CC97F;
    font-size: 1.5rem;
    margin-top: -10px;
    margin-bottom: 24px;
}

/* --- Section Intro --- */
.propos-intro {
    display: flex;
    gap: 64px;
    align-items: center;
    margin-bottom: 80px;
}

.propos-texte {
    flex: 6;
}

.propos-texte p {
    font-size: 1.15rem;
    line-height: 1.7;
    color: #333;
    margin-bottom: 16px;
}

.propos-photo {
    flex: 4;
}

.propos-photo img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transform: rotate(2deg);
    transition: transform 0.3s ease;
}

.propos-photo img:hover {
    transform: rotate(0deg);
}

/* --- Section Parcours --- */
.propos-parcours {
    display: flex;
    gap: 48px;
    margin-bottom: 80px;
    background-color: #fff;
    padding: 48px;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.parcours-colonne {
    flex: 1;
}

.parcours-colonne h3 {
    color: #0A332F;
    font-size: 1.4rem;
    margin-top: 0;
    margin-bottom: 16px;
    border-bottom: 2px solid #9CC97F;
    padding-bottom: 8px;
    width: fit-content;
}

.parcours-colonne p {
    line-height: 1.6;
    color: #444;
}

/* --- Section Compétences --- */
.propos-competences h2 {
    color: #0A332F;
    margin-bottom: 32px;
}

.competences-grille {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.competence-carte {
    background-color: #0A332F;
    color: #F1F1E9;
    padding: 32px;
    border-radius: 24px;
    transition: transform 0.3s ease;
}

.competence-carte:hover {
    transform: translateY(-5px);
}

.carte-header h3 {
    margin-top: 0;
    color: #9CC97F;
    font-size: 1.3rem;
}

.competence-carte ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.competence-carte li {
    margin-bottom: 12px;
    line-height: 1.5;
    opacity: 0.9;
    padding-left: 20px;
    position: relative;
}

.competence-carte li::before {
    content: "•";
    color: #9CC97F;
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* --- Responsive Mobile --- */
@media (max-width: 900px) {
    .propos-intro, .propos-parcours {
        flex-direction: column;
        gap: 32px;
    }
    .competences-grille {
        grid-template-columns: 1fr;
    }
    .page-propos {
        padding: 24px;
    }
}

/* ========================================= */
/* PAGE MENTIONS LÉGALES                     */
/* ========================================= */

.page-mentions {
    padding: 32px 64px 64px 64px;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.page-mentions h1 {
    text-align: left;
    margin-bottom: 48px;
}

.mention-bloc {
    margin-bottom: 32px;
    background-color: #fff;
    padding: 32px 40px;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.mention-bloc h2 {
    color: #0A332F;
    font-size: 1.3rem;
    margin-top: 0;
    margin-bottom: 16px;
    border-bottom: 2px solid #9CC97F;
    padding-bottom: 8px;
    width: fit-content;
}

.mention-bloc p {
    line-height: 1.6;
    color: #444;
    margin-top: 0;
    margin-bottom: 12px;
}

.mention-bloc p:last-child {
    margin-bottom: 0;
}

.mention-bloc a {
    color: #9CC97F;
    font-weight: 700;
    transition: color 0.2s ease;
}

.mention-bloc a:hover {
    color: #0A332F;
}

/* --- Responsive Mobile --- */
@media (max-width: 900px) {
    .page-mentions {
        padding: 24px;
    }
    .mention-bloc {
        padding: 24px;
    }
}

/* ========================================= */
/* FOOTER                                    */
/* ========================================= */

footer {
    background-color: #0A332F;
    color: #F1F1E9;
    padding: 32px 64px 24px 64px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.footer-gauche {
    display: flex;
    flex-direction: column;
}

.footer-nom {
    font-family: Bethany_Elingston, serif;
    color: #B0BFA0;
    font-size: 24px;
    margin-bottom: 8px;
}

.footer-desc {
    font-size: 16px;
    color: #F1F1E9;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: right;
}

.footer-nav a {
    color: #F1F1E9;
    transition: color 0.2s ease;
}

.footer-nav a:hover {
    color: #B0BFA0;
}

.footer-copyright {
    width: 100%;
    text-align: center;
    color: #9D9D9D;
    margin-top: 32px;
    font-size: 14px;
}