@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600&family=Space+Grotesk:wght@500;600;700&display=swap');

:root{
    --color-primary: #0c142c;
    --color-secondary: #0f172a;
    --color-accent: #f5c044;
    --color-sand: #f5efe6;
    --color-muted: #9fb0d3;
    --shadow-soft: 0 20px 60px rgba(8, 15, 31, 0.38);
    --shadow-card: 0 16px 40px rgba(0, 0, 0, 0.22);
    --radius-lg: 20px;
    --radius-md: 12px;
    --font-heading: "Space Grotesk", "Science Gothic", sans-serif;
    --font-body: "Manrope", "Science Gothic", sans-serif;
}

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
    background: radial-gradient(circle at 18% 20%, #132b52 0%, #0d172d 35%, #0a0f1f 100%);
    color: #e8ecf5;
    font-family: var(--font-body);
    line-height: 1.6;
}

img{
    max-width: 100%;
    display: block;
}

/** Navigation **/
nav{
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(10, 15, 31, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 4dvw;
    gap: 18px;
}

.brand{
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #fff;
    padding: 18px 0;
}

.menu-container, .hamburger-group{
    display: flex;
    min-height: 72px;
    align-items: center;
    font-size: 1.05rem;
}

.menu-container{
    gap: min(4dvw, 28px);
    margin-left: auto;
}

.hamburger-group{
    display: none;
    margin-left: auto;
}

.menu-item{
    list-style: none;
}

.menu-link{
    color: #fff;
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 999px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.menu-link:hover{
    background-color: rgba(245, 192, 68, 0.15);
    color: var(--color-accent);
}

.label-toggle{
    color: #fff;
    font-size: 1.8rem;
}

nav:has(#menu-toggle:checked) .menu-container{
    display: flex;
}

#menu-toggle{
    display: none;
}

@media (max-width: 768px){
    nav{
        flex-wrap: wrap;
        padding: 0 6dvw;
    }
    .menu-container{
        width: 100%;
        flex-direction: column;
        gap: 14px;
        padding: 18px 0 24px;
        display: none;
        margin-left: 0;
    }
    .hamburger-group{
        display: flex;
        margin-left: auto;
    }
}

/** Typo **/
h1, h2, h3{
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
}

h1{
    font-size: clamp(2.6rem, 4vw, 3.8rem);
}

h2{
    font-size: clamp(2rem, 3vw, 2.6rem);
}

h3{
    font-size: 1.3rem;
}

p, li{
    font-size: 1.05rem;
    color: #d8deeb;
}

.lead{
    color: var(--color-muted);
    font-size: 1.15rem;
}

/** Sections **/
.section{
    padding: clamp(48px, 8vw, 96px) clamp(20px, 8vw, 120px);
}

.section-heading{
    max-width: 900px;
    margin: 0 auto 38px;
    text-align: center;
}

.bg-primary{
    background-color: var(--color-primary);
    color: #fff;
}

.bg-dark{
    background-color: #050915;
    color: #fff;
}

.text-center{
    text-align: center;
}

.v-padding{
    padding-top: 1dvh;
    padding-bottom: 1dvh;
}

.small{
    font-size: 0.95rem;
    color: var(--color-muted);
}

.shadow{
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.5));
}

/** Hero **/
.hero{
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: clamp(28px, 4vw, 60px);
    padding: clamp(56px, 9vw, 110px) clamp(20px, 8vw, 120px);
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(22, 38, 72, 0.9));
}

.hero-copy{
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.badge{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(245, 192, 68, 0.14);
    color: #fbd686;
    padding: 8px 14px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    width: fit-content;
}

.pill-group{
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pill{
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #dfe6f5;
    font-size: 0.95rem;
}

.cta-group{
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 700;
    letter-spacing: -0.01em;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.2s ease;
}

.btn:hover{
    transform: translateY(-2px);
}

.btn-primary{
    background: linear-gradient(120deg, #f5c044, #f5a524);
    color: #0c142c;
    box-shadow: 0 12px 30px rgba(245, 192, 68, 0.35);
}

.btn-ghost{
    background: rgba(255, 255, 255, 0.06);
    color: #e8ecf5;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-visual{
    position: relative;
    display: grid;
    gap: 12px;
    justify-items: center;
}

.photo-frame{
    background: radial-gradient(circle at 30% 20%, rgba(245, 192, 68, 0.3), rgba(15, 23, 42, 0.2));
    padding: 14px;
    border-radius: 28px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.portrait{
    border-radius: 22px;
    object-fit: cover;
    width: min(360px, 90vw);
    height: auto;
}

.note{
    color: var(--color-muted);
    font-size: 0.95rem;
    text-align: center;
}

@media (max-width: 900px){
    .hero{
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-copy{
        align-items: center;
    }
    .pill-group, .cta-group{
        justify-content: center;
    }
    .brand{
        padding: 16px 0;
    }
}

/** Section cartes **/
.highlight-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 3fr));
    gap: 18px;
}

.highlight-card{
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 22px 22px 26px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(6px);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.highlight-card:hover{
    transform: translateY(-4px);
    border-color: rgba(245, 192, 68, 0.35);
}

.highlight-card h3{
    margin-bottom: 10px;
    color: #fff;
}

/** Portfolio horizontal cards **/
.cards-row{
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 5dvh 10dvw;
}

.card{
    display: grid;
    grid-template-columns: minmax(220px, 280px) 1fr;
    align-items: stretch;
    gap: 0;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(4px);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.cards-row .card:hover{
    transform: translateY(-4px);
    border-color: rgba(245, 192, 68, 0.35);
}

.cards-row .card .card-media{
    position: relative;
}

.cards-row .card .card-media img{
    width: 100%;
    height: 100%;
    min-height: 200px;
    object-fit: cover;
}

.cards-row .card .card-body{
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px 22px;
}

.cards-row .card h3{
    margin: 0;
    font-size: 1.2rem;
}

@media (max-width: 768px){
    .cards-row .card{
        grid-template-columns: 1fr;
    }
}

/** Stats **/
.stats{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    padding: clamp(32px, 5vw, 54px) clamp(20px, 8vw, 120px);
}

.stat{
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 18px;
    border-radius: var(--radius-md);
    text-align: center;
}

.stat-value{
    display: block;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: #fbd686;
}

.stat-label{
    font-size: 0.98rem;
    color: var(--color-muted);
}

/** Grilles existantes **/
.grid{
    display: grid;
    grid-template-columns: 1fr;
    padding: 5dvh 10dvw;
    gap: 20px;
}

.gap-lg{
    gap: 50px;
}

@media (min-width: 768px){
    .grid-2-1{
        grid-template-columns: 2fr 1fr;
    }
    .grid-1-1-1{
        grid-template-columns: 1fr 1fr 1fr;
    }
}

/** Formulaire **/
form input, form textarea, form button{
    font-family: var(--font-body);
    font-size: 1rem;
}

input, textarea{
    padding: 12px 14px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.06);
    color: #e8ecf5;
}

textarea{
    min-height: 140px;
    resize: vertical;
}

button[type="submit"]{
    cursor: pointer;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    border: none;
    background: linear-gradient(120deg, #f5c044, #f5a524);
    color: #0c142c;
    font-weight: 700;
    transition: transform 0.15s ease;
}

button[type="submit"]:hover{
    transform: translateY(-2px);
}

.skill progress{
    border-radius: 2dvh;
    width: 100%;
    height: 3dvh;
    overflow: hidden;
}

/* Chrome / Edge / Safari */
.skill progress::-webkit-progress-bar{
  background-color: #2a2f3a; /* fond */
  border-radius: 2dvh;
}
.skill progress::-webkit-progress-value{
  background-color: #f5c044; /* couleur de la barre */
  border-radius: 2dvh;
}

.form label{
    font-size: 2em;
    font-family:"Roboto", sans-serif;
}

.form input textarea{
    border-radius: 5px;
    border: 1px solid var(--color-primary);
    padding: 2px 10px;
}

input{
    height: 3dvh;
}

textarea{
    height: 15dvh;
}

form button{
    background-color: var(--color-primary);
    color: #fff;
    padding: 10px;
    font-size: 1em;
    max-width: 200px;
    border-radius: 10px;
}

/**Image**/


.img{
    height: 250px;
    border-radius: 50%;
}

