/* =========================
   Utilitaires
========================= */
.sr-only{
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.is-hidden{
    display: none;
}

.champ-piege{
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* =========================
   Global
========================= */
body{
    margin: 0;
    font-family: "Roboto", sans-serif;
    color: #F5F8FF;
    background-color: #061426;
    background-image: linear-gradient(
        rgba(6, 20, 38, 0.78),
        rgba(6, 20, 38, 0.88)
    ), url("assets/video/img/background/background-portfolio.png");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

main{
    min-height: 70vh;
}

h1,
h2,
h3{
    font-family: "Rajdhani", "Roboto", sans-serif;
}

h1{
    margin: 0;
    font-size: clamp(2.4rem, 6vw, 4.8rem);
    font-weight: 700;
    text-align: center;
    color: #F5F8FF;
    text-transform: uppercase;
    letter-spacing: 0;
    text-shadow: 0 0 18px rgba(0, 174, 239, 0.45);
}

h2{
    text-align: center;
    color: #74BFFF;
}

/* =========================
   Header et navigation
========================= */
header,
footer{
    background-color: rgba(6, 20, 38, 0.92);
}

header{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 40px;
    border-bottom: 1px solid rgba(0, 174, 239, 0.45);
}

.identite-site{
    display: flex;
    align-items: center;
}

.logo-site{
    display: block;
    width: 160px;
    height: auto;
}

nav ul{
    display: flex;
    gap: 32px;
    list-style-type: none;
    padding: 0;
    margin: 0;
}

nav ul li{
    padding: 8px 4px;
}

nav ul li a{
    color: rgba(245, 248, 255, 0.75);
    text-decoration: none;
    font-family: "Rajdhani", sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

nav ul li a:hover,
nav ul li a:focus-visible{
    color: #00AEEF;
    border-bottom-color: #00AEEF;
}
video{
    display: block;
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    border-radius: 10px;
}

/* =========================
   Animations
========================= */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(28px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================
   Hero
========================= */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 120px);
    padding: 40px 48px;
}

.hero-contenu {
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: 1000px;
    width: 100%;
    margin-bottom: 48px;
}

.hero-texte {
    flex: 1;
}

.hero-photo img {
    width: 260px;
    height: 260px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top;
    border: 3px solid rgba(0, 174, 239, 0.6);
    box-shadow: 0 0 40px rgba(0, 174, 239, 0.18);
    flex-shrink: 0;
}

.hero-titre {
    margin: 0 0 12px;
    color: #00AEEF;
    font-family: "Rajdhani", sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.hero h1 {
    margin: 0 0 20px;
    text-align: left;
    background: linear-gradient(90deg, #F5F8FF 0%, #00AEEF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    max-width: 520px;
    margin: 0 0 32px;
    font-size: 1.1rem;
    line-height: 1.7;
    color: rgba(245, 248, 255, 0.82);
}

.hero-description span {
    color: #74BFFF;
    font-weight: 700;
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-principal {
    padding: 14px 28px;
    border-radius: 20px;
    background-color: #00AEEF;
    color: #061426;
    text-decoration: none;
    font-weight: 700;
    font-family: "Rajdhani", sans-serif;
    font-size: 1rem;
    transition: background-color 0.2s ease;
}

.btn-principal:hover {
    background-color: #74BFFF;
}

.btn-secondaire {
    padding: 14px 28px;
    border: 1px solid rgba(0, 174, 239, 0.7);
    border-radius: 20px;
    color: #F5F8FF;
    text-decoration: none;
    font-weight: 700;
    font-family: "Rajdhani", sans-serif;
    font-size: 1rem;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.btn-secondaire:hover {
    background-color: rgba(0, 174, 239, 0.12);
    border-color: #00AEEF;
}

.hero-competences {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 0;
    list-style: none;
    margin: 0;
}

.hero-competences li {
    padding: 6px 14px;
    border: 1px solid rgba(0, 174, 239, 0.45);
    border-radius: 20px;
    background-color: rgba(11, 61, 145, 0.4);
    color: #74BFFF;
    font-size: 0.9rem;
}

.badge-certification{
    display: inline-block;
    margin-top: 18px;
    padding: 8px 18px;
    border: 1px solid rgba(0, 174, 239, 0.5);
    border-radius: 20px;
    background-color: rgba(0, 174, 239, 0.1);
    color: #74BFFF;
    text-decoration: none;
    font-family: "Rajdhani", sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.03em;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.badge-certification:hover,
.badge-certification:focus-visible{
    background-color: rgba(0, 174, 239, 0.2);
    border-color: #00AEEF;
    color: #F5F8FF;
}

.hero-titre { animation: fadeInUp 0.6s ease both; }
.hero h1    { animation: fadeInUp 0.6s ease 0.15s both; }
.hero-description { animation: fadeInUp 0.6s ease 0.3s both; }
.hero-cta   { animation: fadeInUp 0.6s ease 0.45s both; }
.hero-photo img { animation: fadeInUp 0.7s ease 0.1s both; }
.hero-competences { animation: fadeInUp 0.6s ease 0.55s both; }
.badge-certification { animation: fadeInUp 0.6s ease 0.65s both; }

/* =========================
   Presentation
========================= */
.presentation{
    margin: 100px 50px;
    padding: 30px;
    border: 1px solid rgba(0, 174, 239, 0.6);
    border-radius: 14px;
    background-color: rgba(20, 31, 58, 0.9);
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.45);
}

.description{
    margin: 50px 100px;
    text-align: center;
}

.description span{
    color: #74BFFF;
    font-weight: 700;
}

.competences ul{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 12px;
}

.competences ul li{
    padding: 8px 14px;
    border: 1px solid #00AEEF;
    border-radius: 20px;
    list-style: none;
    background-color: #0B3D91;
    color: #F5F8FF;
}

/* =========================
   Cartes projets
========================= */
.projet-index{
    max-width: 1180px;
    margin: 80px auto;
    padding: 0 24px;
    text-align: center;
}

.projet-index h2{
    position: relative;
    display: inline-block;
    padding-bottom: 14px;
    margin-bottom: 8px;
}

.projet-index h2::after{
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 48px;
    height: 3px;
    border-radius: 2px;
    background: linear-gradient(90deg, #00AEEF, #74BFFF);
}

.liste-projets{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 30px;
}

.projet,
.projet1,
.projet2,
.projet3{
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(0, 174, 239, 0.55);
    border-radius: 14px;
    background-color: rgba(20, 31, 58, 0.9);
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.45);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.projet:hover,
.projet1:hover,
.projet2:hover,
.projet3:hover{
    transform: translateY(-4px);
    border-color: #00AEEF;
}

.projet-index a{
    display: block;
    height: 100%;
    color: #F5F8FF;
    text-decoration: none;
}

.projet1{
    border: 1px solid #00AEEF;
    background-color: rgba(20, 31, 58, 0.92);
}

.projet1 img,
.projet2 img{
    display: block;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.projet1 h3,
.projet2 h3,
.projet3 h3{
    margin: 12px 0;
    color: #74BFFF;
}

.contenu-carte-projet{
    padding: 18px;
}

.contenu-carte-projet p{
    margin: 0;
    line-height: 1.6;
}

.statut-projet{
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    background-color: rgba(0, 174, 239, 0.16);
    color: #00AEEF;
    font-size: 0.85rem;
    font-weight: 700;
}

.apercu-projet{
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #061426, #0B3D91);
    color: rgba(116, 191, 255, 0.85);
    font-size: 4rem;
    font-weight: 800;
}

/* =========================
   Page detail projet
========================= */
.detail-projet{
    max-width: 1100px;
    margin: 80px auto;
    padding: 24px;
    border: 1px solid #00AEEF;
    border-radius: 14px;
    background-color: rgba(20, 31, 58, 0.94);
    color: #F5F8FF;
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.45);
}

.detail-projet img{
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 10px;
}

.contenu-projet{
    max-width: 850px;
    margin: 30px auto 0;
    line-height: 1.7;
}

.contenu-projet h2,
.contenu-projet h3{
    color: #74BFFF;
}

.contenu-projet ul{
    padding-left: 20px;
}

.infos-projet{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
    margin-top: 28px;
}

.infos-projet div{
    padding: 18px;
    border: 1px solid rgba(0, 174, 239, 0.35);
    border-radius: 12px;
    background-color: rgba(6, 20, 38, 0.45);
}

.badges-projet{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin: 25px 0;
}

.badges-projet span{
    padding: 8px 14px;
    border-radius: 20px;
    background-color: #0B3D91;
    color: #F5F8FF;
}

.boutons-projet{
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

.bouton-retour{
    display: block;
    width: fit-content;
    padding: 12px 22px;
    border-radius: 20px;
    background-color: #00AEEF;
    color: #061426;
    text-decoration: none;
    font-weight: 700;
}

.bouton-retour:hover{
    background-color: #74BFFF;
}

.bouton-github{
    display: block;
    width: fit-content;
    padding: 12px 22px;
    border: 1px solid rgba(0, 174, 239, 0.7);
    border-radius: 20px;
    color: #F5F8FF;
    text-decoration: none;
    font-weight: 700;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.bouton-github:hover{
    background-color: rgba(0, 174, 239, 0.12);
    border-color: #00AEEF;
}

.bouton-demo{
    display: block;
    width: fit-content;
    padding: 12px 22px;
    border-radius: 20px;
    background-color: #00AEEF;
    color: #061426;
    text-decoration: none;
    font-weight: 700;
    transition: background-color 0.2s ease;
}

.bouton-demo:hover{
    background-color: #74BFFF;
}

.carte-actions{
    padding: 0 18px 18px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-github{
    display: inline-block;
    padding: 7px 16px;
    border: 1px solid rgba(0, 174, 239, 0.5);
    border-radius: 20px;
    color: #74BFFF;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.btn-github:hover{
    background-color: rgba(0, 174, 239, 0.1);
    border-color: #00AEEF;
}

.btn-demo{
    display: inline-block;
    padding: 7px 16px;
    border-radius: 20px;
    background-color: #00AEEF;
    color: #061426;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: background-color 0.2s ease;
}

.btn-demo:hover{
    background-color: #74BFFF;
}

/* =========================
   Page projet Ambre Café
========================= */
.page-projet-ambre{
    color: #2E1B12;
    background-color: #F7ECD9;
    background-image:
        linear-gradient(rgba(247, 236, 217, 0.88), rgba(247, 236, 217, 0.92)),
        radial-gradient(circle at top left, rgba(201, 125, 48, 0.28), transparent 32%),
        radial-gradient(circle at bottom right, rgba(124, 139, 93, 0.22), transparent 30%);
}

.page-projet-ambre header,
.page-projet-ambre footer{
    background-color: rgba(247, 236, 217, 0.94);
    border-color: rgba(201, 125, 48, 0.4);
}

.page-projet-ambre nav ul li a{
    color: rgba(46, 27, 18, 0.75);
}

.page-projet-ambre nav ul li a:hover,
.page-projet-ambre nav ul li a:focus-visible{
    color: #C97D30;
    border-bottom-color: #C97D30;
}

.detail-ambre{
    border-color: rgba(201, 125, 48, 0.7);
    background-color: rgba(255, 253, 248, 0.94);
    color: #2E1B12;
    box-shadow: 0 18px 35px rgba(46, 27, 18, 0.16);
}

.detail-ambre img{
    border: 1px solid rgba(201, 125, 48, 0.25);
}

.detail-ambre h2,
.detail-ambre h3{
    color: #C97D30;
}

.detail-ambre .statut-projet{
    background-color: rgba(201, 125, 48, 0.14);
    color: #C97D30;
}

.detail-ambre .infos-projet div{
    border-color: rgba(201, 125, 48, 0.28);
    background-color: rgba(247, 236, 217, 0.74);
}

.detail-ambre .badges-projet span{
    background-color: #7C8B5D;
    color: #FFFDF8;
}

.detail-ambre .bouton-retour{
    background-color: #C97D30;
    color: #FFFDF8;
}

.detail-ambre .bouton-retour:hover{
    background-color: #7C8B5D;
}

.page-projet-ambre .cp{
    color: #2E1B12;
}

.page-projet-ambre .bouton-github{
    border-color: rgba(201, 125, 48, 0.7);
    color: #C97D30;
}

.page-projet-ambre .bouton-github:hover{
    background-color: rgba(201, 125, 48, 0.1);
    border-color: #C97D30;
}

/* =========================
   Footer
========================= */
footer{
    padding: 20px;
    border-top: 1px solid rgba(0, 174, 239, 0.45);
    color: #FFFFFF;
}

.lien-reseaux-sociaux{
    display: flex;
    justify-content: space-around;
}

.cp{
    text-align: center;
}
    .contact{
       margin: 100px 200px;
        padding: 30px 40px;
        overflow: hidden;
        border: 1px solid rgba(0, 174, 239, 0.55);
        border-radius: 14px;
        background-color: rgba(20, 31, 58, 0.9);
        box-shadow: 0 18px 35px rgba(0, 0, 0, 0.45);

    }

.contact form{
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact label{
    color: #74BFFF;
    font-family: "Rajdhani", sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.contact input,
.contact textarea{
    padding: 12px 14px;
    margin-bottom: 12px;
    border: 1px solid rgba(0, 174, 239, 0.4);
    border-radius: 10px;
    background-color: rgba(6, 20, 38, 0.7);
    color: #F5F8FF;
    font-family: "Roboto", sans-serif;
    font-size: 1rem;
    resize: vertical;
}

.contact input::placeholder,
.contact textarea::placeholder{
    color: rgba(245, 248, 255, 0.5);
}

.contact input:focus,
.contact textarea:focus{
    outline: none;
    border-color: #00AEEF;
    box-shadow: 0 0 0 2px rgba(0, 174, 239, 0.25);
}

.contact button{
    align-self: flex-start;
    
    padding: 14px 28px;
    border: none;
    border-radius: 20px;
    background-color: #00AEEF;
    color: #061426;
    font-weight: 700;
    font-family: "Rajdhani", sans-serif;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.contact button:hover{
    background-color: #74BFFF;
}

.message-confirmation{
    margin-bottom: 16px;
    padding: 12px 16px;
    border: 1px solid rgba(0, 200, 120, 0.6);
    border-radius: 10px;
    background-color: rgba(0, 200, 120, 0.12);
    color: #6FE3A8;
    font-weight: 600;
}

.message-erreur{
    margin-bottom: 16px;
    padding: 12px 16px;
    border: 1px solid rgba(230, 80, 80, 0.6);
    border-radius: 10px;
    background-color: rgba(230, 80, 80, 0.12);
    color: #F08A8A;
    font-weight: 600;
}

/* =========================
   Responsive
========================= */
@media (max-width: 950px){
    .liste-projets{
        grid-template-columns: 1fr;
        max-width: 680px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 700px){
    .hero-contenu {
        flex-direction: column-reverse;
        text-align: center;
        gap: 32px;
    }

    .hero h1 {
        text-align: center;
    }

    .hero-photo img {
        width: 180px;
        height: 180px;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .btn-principal,
    .btn-secondaire {
        width: 200px;
        text-align: center;
    }

    .presentation,
    .projet,
    .projet1,
    .projet2,
    .projet3,
    .detail-projet,
    .contact{
        margin: 30px 16px;
    }

    .contact{
        padding: 24px 20px;
    }

    .description{
        margin: 30px 10px;
    }

    .competences ul{
        padding-left: 0;
    }

    .liste-projets,
    .infos-projet{
        grid-template-columns: 1fr;
    }

    .logo-site{
        width: min(220px, 82%);
    }


    h1{
        font-size: 2.6rem;
    }

    nav ul{
        flex-direction: column;
        align-items: center;
        gap: 12px;
        padding-left: 0;
    }

    nav ul li{
        width: 160px;
        text-align: center;
    }
}

.lien-espace{
    color: inherit;
    opacity: 0.6;
}
