/* Base */
* {
    box-sizing: border-box;
    margin: 0;
}

html {
    font-size: 62.5%;
}

/* Couleurs Dark mode et Clear mode */
:root {
    --bg: #171724;
    --panel: #171724;
    --text: #e9e9e9;
    --muted: #b7b7b7;
    --accent: #8f0606;
    --line: #242424;
}

:root[data-light] {
    --bg: #f7f7f7;
    --panel: #ffffff;
    --text: #141414;
    --muted: #4b4b4b;
    --accent: #58088d;
    --line: #dcdcdc;
}

body {
    font-family: "Work Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    font-size: 1.6rem;
    color: var(--text);
    background: linear-gradient(180deg, var(--bg) 0%, #0a0a0a 100%);
}

/* Lisibilité : marges */
h1,
h2,
h3,
h4,
h5,
h6,
p {
    margin: 1.6rem 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Oswald", sans-serif;
    text-transform: uppercase;
    letter-spacing: .04em;
}

h1 {
    font-size: 3.2rem;
    font-weight: 800;
}

h2 {
    font-size: 2.6rem;
    font-weight: 700;
}

h3 {
    font-size: 2.0rem;
    font-weight: 700;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Listes */
.list,
.list-unstyled {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

/* Lien skip */
.skip-link {
    position: absolute;
    left: -9999px;
}

.skip-link:focus {
    position: fixed;
    left: 1rem;
    top: 1rem;
    padding: .8rem 1rem;
    background: #222;
    color: #fff;
    border: 1px solid var(--accent);
    border-radius: 6px;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--panel);
    border-bottom: 1px solid var(--line);
}

.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

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

/* Nav + bouton */
.menu {
    display: none;
}

.burger {
    display: block;
    background: none;
    border: 0;
    cursor: pointer;
    color: var(--text);
    width: 40px;
    height: 40px;
    position: relative;
}

.burger .bar {
    position: absolute;
    left: 8px;
    right: 8px;
    top: 50%;
    height: 2px;
    background: var(--text);
    transform: translateY(-50%);
}

.menu.is-open {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--panel);
    border-bottom: 1px solid var(--line);
    padding: 1.2rem 2rem;
}

.menu a {
    padding: .8rem 1.2rem;
    position: relative;
}

.menu a::after {
    content: "";
    position: absolute;
    left: 1.2rem;
    right: 1.2rem;
    bottom: .4rem;
    height: 2px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 200ms ease;
    background: var(--accent);
}

.menu a:hover::after,
.menu a:focus::after {
    transform: scaleX(1);
}

@media (min-width:750px) {
    .burger {
        display: none;
    }

    .menu {
        display: flex;
        gap: 2rem;
        position: static;
        background: transparent;
        padding: 0;
        border: 0;
    }
}

/* Socials */
.socials {
    display: flex;
    gap: 1.2rem;
}

.socials a:hover {
    text-decoration: underline;
    text-decoration-color: var(--accent);
}

/* Layout */
.grid {
    display: grid;
    gap: 2rem;
    align-items: center;
}

.cards {
    display: grid;
    gap: 1.6rem;
}

@media (min-width:750px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.4rem;
    }
}

@media (min-width:1200px) {
    .cards {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Sections */
.section {
    padding: 5.6rem 0;
}

.title {
    margin-bottom: 1.2rem;
    position: relative;
}

.title::after {
    content: "";
    display: block;
    width: 72px;
    height: 2px;
    background: var(--accent);
    margin-top: .8rem;
}

.section-head p {
    color: var(--muted);
}

/* Hero */
.hero {
    background: linear-gradient(180deg, rgba(99, 230, 190, .06), rgba(99, 230, 190, 0) 55%);
}

.hero-title {
    font-size: 3.6rem;
    font-weight: 800;
    letter-spacing: .02em;
    text-shadow: 0 2px 0 rgba(0, 0, 0, .35);
}

.hero-sub {
    font-weight: 700;
    font-size: 2rem;
    color: var(--muted);
}

.avatar img {
    max-width: 90%;
    margin: 0 auto;
    display: block;
    filter: contrast(115%) saturate(90%) grayscale(10%);
}

.hero-left {
    text-align: left;
}

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

@media (max-width:749px) {

    .hero-left,
    .hero-right {
        text-align: center;
    }
}

/* Bullets */
.bullets li {
    margin: .6rem 0;
    padding-left: 1.6rem;
    position: relative;
}

.bullets li::before {
    content: none;
    position: absolute;
    left: 0;
    color: var(--accent);
}

/* Cards */
.card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 1.2rem 1.4rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .15);
}

.card-img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
}

.card-body {
    padding: .8rem 0 0;
}

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

/* Formulaire */
.field {
    margin-bottom: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: .4rem;
}

label {
    font-weight: 700;
}

input[type="text"],
input[type="email"],
textarea {
    background: #0f0f0f;
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: .9rem 1.1rem;
    outline: none;
}

input:focus,
textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(99, 230, 190, .18);
}

.error {
    color: #ff8a8a;
    min-height: 1.2em;
}

.check {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin: 1rem 0;
}

/* Boutons */
.btn-primary,
.btn-ghost {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    padding: .9rem 1.4rem;
    border-radius: 999px;
    cursor: pointer;
    border: 1px solid var(--accent);
}

.btn-primary {
    background: var(--accent);
    color: #0a0a0a;
    font-weight: 800;
}

.btn-ghost {
    background: transparent;
    color: var(--text);
}

/* Footer */
.footer {
    border-top: 1px solid var(--line);
    padding: 2rem 0;
    background: var(--panel);
}

.footer-grid {
    align-items: center;
}