/* css/style.css */
:root {
    --bg-dark: #1A1A1B;
    --acc-cyan: #00a7ff;
    --acc-cyan-hover: #33ccff;
    --text-primary: #FFFFFF;
    --text-secondary: #B0B0B0;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.1);
    --font-main: 'Inter', sans-serif;
}

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

html {
    scroll-padding-top: 140px;
    /* Empêche le focus RGAA ou les ancres de passer sous le header fixe */
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    padding: 2rem;
}

/* Typography */
h1,
h2,
h3 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    letter-spacing: -0.05em;
}

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

h3 {
    font-size: 1.5rem;
}

p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.text-gradient {
    background: linear-gradient(90deg, #FFFFFF, var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-cyan {
    color: var(--acc-cyan);
    -webkit-text-fill-color: var(--acc-cyan);
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 6rem 0;
}

main {
    padding-top: 100px;
}

/* Button */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--acc-cyan);
    color: #000;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
}

.btn:hover {
    background-color: var(--acc-cyan-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 167, 255, 0.3);
}

.btn:focus-visible {
    outline: 3px solid var(--text-primary);
    outline-offset: 3px;
}

.btn-large {
    padding: 1.2rem 2.5rem;
    font-size: 1.25rem;
}

.btn-card {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    width: 100%;
    font-size: 1.1rem;
}

.btn-block {
    width: 100%;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(26, 26, 27, 0.85);
    /* var(--bg-dark) transparent */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(2px);
}

.header-container {
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    height: 100px;
    object-fit: contain;
}

/* Hero Section */
.hero {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding-top: 2rem;
}

.hero p {
    max-width: 700px;
    margin: 0 auto 3rem;
    font-size: 1.25rem;
}

/* Grid */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

/* Cards */
.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    backdrop-filter: blur(10px);
    transition: transform 0.5s ease, border-color 0.5s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card:hover,
.card.active:hover {
    transform: translateY(-20px);
    border-color: rgba(255, 255, 255, 0.4);
}

.card-subtitle {
    margin-bottom: 1rem;
    font-size: 1.3rem;
    line-height: 1.5rem;
    font-weight: 500;
}

.badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 229, 255, 0.1);
    color: var(--acc-cyan);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(0, 229, 255, 0.2);
}

.keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.keyword {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.85rem;
    color: var(--text-primary);
}

/* Double Profile */
.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0) 100%);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 4rem;
    margin-top: 2rem;
}

.profile-img img {
    width: 100%;
    border-radius: 16px;
    border: 1px solid var(--card-border);
}

.profile-title {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.highlight-box {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(0, 229, 255, 0.05);
    border-left: 4px solid var(--acc-cyan);
    border-radius: 0 8px 8px 0;
}

.highlight-box strong {
    color: var(--text-primary);
    display: block;
}

.highlight-box strong:first-of-type {
    margin-bottom: 0.5rem;
}

/* Engagement */
.badges-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 3rem;
}

.expertise-badge {
    padding: 1rem 2rem;
    border-radius: 50px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.expertise-badge:hover {
    border-color: var(--acc-cyan);
    color: var(--acc-cyan);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.1);
}

/* Contact */
#contact {
    padding-top: 2rem;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 24px;
    border: 1px solid var(--card-border);
}

.contact-form-title {
    text-align: center;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-secondary);
}

input,
select,
textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    color: white;
    padding: 1rem;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--acc-cyan);
    box-shadow: 0 0 0 2px rgba(0, 167, 255, 0.4);
}

select {
    appearance: none;
}

select option {
    background: var(--bg-dark);
}

.hidden-hp,
.hidden-button {
    display: none;
}

#form-response {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 8px;
    display: none;
}

#form-response.success {
    background: rgba(0, 255, 0, 0.1);
    color: #4ade80;
    border: 1px solid rgba(0, 255, 0, 0.2);
    display: block;
}

#form-response.error {
    background: rgba(255, 0, 0, 0.1);
    color: #f87171;
    border: 1px solid rgba(255, 0, 0, 0.2);
    display: block;
}

footer {
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid var(--card-border);
    margin-top: 4rem;
}

/* Responsive */
@media (max-width: 768px) {
    body {
        padding: 0rem;
    }

    .logo img {
        height: 100px;
        clear: both;
        display: block;
    }

    #services {
        padding-top: 2rem;
    }

    .split-section {
        grid-template-columns: 1fr;
        padding: 2rem;
    }

    .contact-form {
        padding: 2rem;
    }

    .hero {
        min-height: 60vh;
    }

    .header-container nav{
        display: none;
    }
}

/* Scroll Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s cubic-bezier(0.3, 0, 0, 1), transform 1s cubic-bezier(0.3, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

.delay-4 {
    transition-delay: 0.5s;
}

.delay-5 {
    transition-delay: 0.5s;
}

/* RGAA et Accessibilité au clavier */
:focus-visible {
    outline: 2px solid var(--acc-cyan);
    outline-offset: 4px;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--acc-cyan);
    color: var(--bg-dark);
    padding: 1rem 2rem;
    z-index: 10000;
    font-weight: bold;
    text-decoration: none;
    transition: top 0.2s ease;
    border-bottom-right-radius: 8px;
}

.skip-link:focus-visible {
    top: 0;
    outline: 2px solid var(--text-primary);
    outline-offset: -2px;
}