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

:root {
    --dark: #212B40;
    --dark-opacity: rgb(33, 43, 64, 0.5);
    /*--accent: #ED0040;*/
    --accent:#FBBEBE;
    --accent-text: #FBBEBE;
    --green: #00ed43;
    --white: #f0eeff;
    --muted: #BCB8D3;
    --border: rgba(255, 255, 255, 0.07);
    --font-body: 'Atkinson Hyperlegible', sans-serif;
    --font-heading: 'Anton', sans-serif;
}

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

body {
    background: var(--dark) url("/assets/sonia-brunel-background-opacity.png") center top / cover fixed;
    color: var(--white);
    font-family: var(--font-body);
    min-height: 100vh;
    overflow-x: hidden;
    cursor: none;
    letter-spacing: 0.03em;
}

@media (pointer: coarse) {
    body {
        cursor: auto;
        background-attachment: scroll;
    }

    .cursor,
    .cursor-ring {
        display: none;
    }

    .urgency-btn,
    .btn-submit {
        cursor: pointer;
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .ticker-inner {
        animation: none;
    }
}

/* ── SKIP LINK ── */
.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    z-index: 200;
    padding: 12px 20px;
    background: var(--accent);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 0 0 4px 4px;
}

.skip-link:focus {
    top: 0;
}

/* ── CURSEUR CUSTOM ── */
.cursor {
    position: fixed;
    width: 10px;
    height: 10px;
    background: var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background 0.2s;
}

.cursor-ring {
    position: fixed;
    width: 34px;
    height: 34px;
    border: 1.5px solid var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: width 0.35s ease, height 0.35s ease, border-color 0.35s ease;
}

body:has(a:hover) .cursor,
body:has(button:hover) .cursor {
    width: 16px;
    height: 16px;
    background: var(--accent);
}

body:has(a:hover) .cursor-ring,
body:has(button:hover) .cursor-ring {
    width: 50px;
    height: 50px;
    border-color: var(--accent);
}

/* ── BARRE STATUS EN HAUT ── */
.statusbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 8px 24px;
    border-bottom: 1px solid var(--border);
    background: var(--dark-opacity);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    animation: slideDown 0.5s ease both;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.status-left,
.status-right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.status-dot {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--muted);
}

.dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
    background: var(--accent);
}


.dot-green {
    background: var(--green);
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.85);
    }
}

.status-time {
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--muted);
}

/* ── TICKER ── */
.ticker-wrap {
    position: fixed;
    top: var(--statusbar-h);
    left: 0;
    right: 0;
    z-index: 99;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
    background: var(--dark-opacity);
    backdrop-filter: blur(8px);
    padding: 9px 0;
    white-space: nowrap;
    animation: fadeIn 0.5s 0.2s ease both;
}

.ticker-inner {
    display: inline-block;
    animation: ticker 28s linear infinite;
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--muted);
    letter-spacing: 0.05em;
}

.ticker-inner span {
    color: var(--green);
    margin: 0 6px;
}

@keyframes ticker {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* ── MAIN ── */
main {
    position: relative;
    z-index: 1;
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px 100px;
}

/* ── SCROLL REVEAL ── */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ── HERO ── */
.hero {
    padding: 80px 0 60px;
    animation: fadeUp 0.6s 0.1s ease both;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 13px;
    letter-spacing: 0.1em;
    color: var(--accent-text);
    border: 1px solid rgba(237, 0, 64, 0.3);
    padding: 5px 14px 5px 10px;
    border-radius: 0;
    margin-bottom: 32px;
}

.hero-tag .dot {
    width: 6px;
    height: 6px;
    background: var(--accent);
    animation-delay: 0.3s;
}

h1 {
    font-size: clamp(46px, 9vw, 82px);
    font-weight: 800;
    line-height: 1.2em;
    font-family: var(--font-heading);
    letter-spacing: 0.12em;
    margin-bottom: 28px;
}

.h1-muted {
    color: var(--muted);
}

.h1-accent {
    color: var(--white);
}

.hero-desc {
    font-size: 17px;
    color: var(--muted);
    font-weight: 400;
    line-height: 1.75;
    margin-bottom: 10px;
}

.hero-desc strong {
    color: var(--white);
}

/* ── CASQUETTES ── */
.casquettes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 10px;
}

@media (max-width: 560px) {
    .casquettes {
        grid-template-columns: 1fr;
    }
}

.casquette {
    background: var(--dark);
    border: 1px solid var(--border);
    border-radius: 0;
    padding: 20px 18px;
    position: relative;
    overflow: hidden;
    transition: border-color 0.25s, transform 0.25s;
}

.casquette:hover {
    border-color: var(--ca, var(--accent));
    transform: translateY(-2px);
}

.casquette::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--ca, var(--accent));
}

.casquette::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at top left, color-mix(in srgb, var(--ca, var(--accent)) 10%, transparent), transparent 65%);
    opacity: 0;
    transition: opacity 0.3s;
}

.casquette:hover::after {
    opacity: 1;
}

.casquette-title {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 0.1rem;
    color: var(--ca, var(--accent));
    margin-bottom: 6px;
}

.casquette-desc {
    font-size: 13px;
    color: var(--muted);
    font-family: var(--font-body);
    line-height: 1.7;
}

/* ── SECTION TITLE ── */
.section-label {
    font-family: var(--font-body);
    font-size: 13px;
    letter-spacing: 0.14em;
    color: var(--muted);
    text-transform: uppercase;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* ── LINKEDIN BLOCK ── */
.linkedin-block {
    margin: 48px 0;
}

.linkedin-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px 28px;
    background: var(--dark);
    border: 1px solid var(--border);
    border-radius: 0;
    text-decoration: none;
    color: inherit;
    transition: transform 0.25s ease, border-color 0.25s ease;
    position: relative;
    overflow: hidden;
}

.linkedin-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at left, rgba(10, 102, 194, 0.08), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
}

.linkedin-card:hover {
    transform: translateY(-2px);
    border-color: rgba(10, 102, 194, 0.5);
}

.linkedin-card:hover::before {
    opacity: 1;
}

.li-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 0;
    background: rgba(10, 102, 194, 0.15);
    border: 1px solid rgba(10, 102, 194, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.li-body {
    flex: 1;
}

.li-label {
    font-family: var(--font-body);
    font-size: 13px;
    letter-spacing: 0.12em;
    color: #7AB4F5;
    margin-bottom: 4px;
}

.li-name {
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 3px;
}

.li-role {
    font-size: 13px;
    color: var(--muted);
}

.li-arrow {
    width: 34px;
    height: 34px;
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 15px;
    flex-shrink: 0;
    transition: all 0.25s;
}

.linkedin-card:hover .li-arrow {
    border-color: #7AB4F5;
    color: #7AB4F5;
    transform: translate(2px, -2px);
}

/* ── DIVIDER ── */
hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 48px 0;
}

/* ── FORM ── */

.form-intro {
    font-size: 15px;
    color: var(--muted);
    margin-bottom: 28px;
    line-height: 1.8;
}

.form-intro strong {
    color: var(--white);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}

@media (max-width: 520px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

.field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.field.full {
    grid-column: 1 / -1;
}

label {
    font-family: var(--font-body);
    font-size: 13px;
    letter-spacing: 0.1em;
    color: var(--muted);
    text-transform: uppercase;
}

label.required::after {
    content: ' *';
    color: var(--accent);
    font-weight: 700;
}

.form-legend {
    font-family: var(--font-body);
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 18px;
}

.form-legend span {
    color: var(--accent);
    font-weight: 800;
    font-size: 18px;
}

input.field-error,
textarea.field-error {
    border-color: var(--accent);
    background: rgba(237, 0, 64, 0.06);
}

input,
textarea,
select {
    background: var(--dark);
    border: 1px solid var(--border);
    border-radius: 0;
    padding: 13px 16px;
    color: var(--white);
    font-family: var(--font-body);
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s ease, background 0.2s ease;
}

input,
textarea,
select {
    width: 100%;
}

textarea {
    resize: none;
}

input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

input::placeholder,
textarea::placeholder {
    color: #8B86A6;
}

.urgency-btn:focus-visible,
.btn-submit:focus-visible,
.linkedin-card:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

input:focus,
textarea:focus,
select:focus {
    border-color: rgba(124, 92, 252, 0.55);
    background: rgba(30, 26, 48, 0.9);
}

textarea {
    height: 130px;
}

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

/* Urgency toggle */
.urgency-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.urgency-btn {
    font-family: var(--font-body);
    font-size: 13px;
    letter-spacing: 0.08em;
    padding: 8px 16px;
    border-radius: 0;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--muted);
    cursor: none;
    transition: all 0.2s;
}

.urgency-btn:hover {
    border-color: var(--accent);
    color:var(--accent);
}

.urgency-btn.active {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(237, 0, 64, 0.1);
}

.urgency-btn.active-red {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(237, 0, 64, 0.15);
}

/* Submit */
.btn-submit {
    width: 100%;
    padding: 16px;
    background: var(--accent);
    border: none;
    border-radius: 0;
    color: var(--dark);
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 700;
    cursor: none;
    letter-spacing: -0.2px;
    transition: background 0.2s ease, transform 0.15s ease;
    position: relative;
    overflow: hidden;
    margin-top: 6px;
}

.btn-submit::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent);
}

.btn-submit:hover {
    background: var(--green);
    color: var(--dark);
    transform: translateY(-1px);
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-submit.error {
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
    animation: shake 0.4s ease;
}

.btn-submit.sending {
    background: var(--muted);
    color: var(--dark);
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(23, 19, 42, 0.3);
    border-top-color: var(--dark);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    20%,
    60% {
        transform: translateX(-6px);
    }

    40%,
    80% {
        transform: translateX(6px);
    }
}

/* ── SUCCESS STATE ── */
.success-msg {
    display: none;
    text-align: center;
    padding: 40px 24px;
    background: var(--dark);
    border: 1px solid rgba(237, 0, 64, 0.3);
    border-radius: 0;
    animation: fadeUp 0.4s ease both;
}

.success-msg.show {
    display: block;
}

.success-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.success-msg h3 {
    font-size: 24px;
    margin-bottom: 10px;
    font-family: var(--font-heading);
    letter-spacing: 0.05em;
}

.success-msg p {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.7;
}

.btn-reset {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 24px;
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--muted);
    border: 1px solid var(--border);
    background: transparent;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
}

.btn-reset:hover {
    border-color: var(--accent);
    color: var(--white);
}

/* ── PORTRAIT FIXE ── */
.portrait-fixed {
    position: fixed;
    bottom: 0;
    right: 0;
    z-index: 50;
    width: 280px;
    pointer-events: none;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .portrait-fixed {
        width: 180px;
    }
}

@media (max-width: 560px) {
    .portrait-fixed {
        display: none;
    }
}

/* ── RESSOURCES ── */
.ressources-block {
    margin: 48px 0;
}

.ressources-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.ressource-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: var(--dark);
    border: 1px solid var(--border);
    padding: 24px;
    position: relative;
    overflow: hidden;
    transition: border-color 0.25s, transform 0.25s;
}

.ressource-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent);
    opacity: 0;
    transition: opacity 0.25s;
}

.ressource-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.ressource-card:hover::before {
    opacity: 1;
}

.ressource-tag {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    border: 1px solid rgba(237, 0, 64, 0.3);
    padding: 3px 10px;
    margin-bottom: 12px;
}

.ressource-title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--white);
    margin-bottom: 8px;
    line-height: 1.3;
}

.ressource-excerpt {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 14px;
}

.ressource-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-family: var(--font-body);
    font-size: 12px;
    color: var(--muted);
}

.ressource-meta time {
    opacity: 0.7;
}

.ressource-read {
    opacity: 0.5;
}

/* ── FOOTER ── */
footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--border);
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: start;
    flex-wrap: wrap;
    gap: 12px;
    background-color: var(--dark);
}

.footer-mono {
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--muted);
}

.footer-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.footer-pill {
    font-family: var(--font-body);
    font-size: 13px;
    padding: 4px 12px;
    border: 1px solid var(--border);
    border-radius: 0;
    color: var(--muted);
    transition: border-color 0.2s, color 0.2s;
}

.footer-pill:hover {
    border-color: var(--accent);
    color: var(--white);
}

/* ── TEXTAREA COUNTER ── */
.field-with-counter {
    position: relative;
}

.char-counter {
    font-family: var(--font-body);
    font-size: 11px;
    color: var(--muted);
    text-align: right;
    margin-top: 4px;
    transition: color 0.2s;
}

.char-counter.warn {
    color: var(--accent);
}

/* ── RESPONSIVE ── */

/* Tablette */
@media (max-width: 768px) {
    .statusbar {
        padding: 8px 16px;
        gap: 10px;
    }

    .status-left {
        gap: 10px;
    }

    main {
        padding: 0 20px 80px;
    }

    .hero {
        padding: 60px 0 40px;
    }

    h1 {
        margin-bottom: 20px;
    }

    .hero-desc {
        font-size: 16px;
    }

    .linkedin-card {
        padding: 20px;
        gap: 16px;
    }

    hr {
        margin: 36px 0;
    }

    .linkedin-block,
    .ressources-block {
        margin: 36px 0;
    }

    footer {
        padding: 20px;
    }
}

/* Mobile */
@media (max-width: 560px) {
    .statusbar {
        padding: 6px 12px;
        justify-content: center;
    }

    .status-left {
        gap: 8px;
        justify-content: center;
    }

    .status-right {
        display: none;
    }

    .status-dot {
        font-size: 11px;
    }

    .ticker-inner {
        font-size: 11px;
    }

    main {
        padding: 0 16px 60px;
    }

    .hero {
        padding: 40px 0 30px;
    }

    .hero-tag {
        font-size: 11px;
        padding: 4px 10px 4px 8px;
        margin-bottom: 24px;
    }

    h1 {
        letter-spacing: 0.06em;
        margin-bottom: 16px;
    }

    .hero-desc {
        font-size: 15px;
        line-height: 1.7;
    }

    .casquette {
        padding: 16px 14px;
    }

    .casquette-title {
        font-size: 22px;
    }

    .urgency-row {
        gap: 8px;
    }

    .urgency-btn {
        flex: 1 1 auto;
        text-align: center;
        padding: 10px 12px;
    }

    hr {
        margin: 28px 0;
    }

    .linkedin-block,
    .ressources-block {
        margin: 28px 0;
    }

    .ressource-card {
        padding: 18px 16px;
    }

    .ressource-title {
        font-size: 18px;
    }

    .form-intro {
        font-size: 14px;
    }

    footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 16px;
        padding: 20px 16px;
    }

    .footer-pills {
        justify-content: center;
    }

    .success-msg {
        padding: 30px 16px;
    }

    .success-icon {
        font-size: 36px;
    }

    .success-msg h3 {
        font-size: 20px;
    }
}

/* Très petit écran */
@media (max-width: 360px) {
    .hero-tag {
        font-size: 10px;
        gap: 6px;
    }

    .casquette-title {
        font-size: 20px;
    }

    .urgency-btn {
        font-size: 11px;
        padding: 8px 10px;
    }

    .btn-submit {
        font-size: 14px;
        padding: 14px;
    }
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}