/*!******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[2].use[1]!./node_modules/next/dist/build/webpack/loaders/next-font-loader/index.js??ruleSet[1].rules[14].oneOf[2].use[2]!./node_modules/next/font/google/target.css?{"path":"src/app/layout.tsx","import":"Montserrat","arguments":[{"subsets":["latin"]}],"variableName":"montserrat"} ***!
  \******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/* cyrillic-ext */
@font-face {
  font-family: '__Montserrat_069ab3';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/_next/static/media/b1f344208eb4edfe-s.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: '__Montserrat_069ab3';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/_next/static/media/48e2044251ef3125-s.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* vietnamese */
@font-face {
  font-family: '__Montserrat_069ab3';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/_next/static/media/bf24a9759715e608-s.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: '__Montserrat_069ab3';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/_next/static/media/1f173e5e25f3efee-s.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: '__Montserrat_069ab3';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/_next/static/media/904be59b21bd51cb-s.p.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}@font-face {font-family: '__Montserrat_Fallback_069ab3';src: local("Arial");ascent-override: 85.79%;descent-override: 22.25%;line-gap-override: 0.00%;size-adjust: 112.83%
}.__className_069ab3 {font-family: '__Montserrat_069ab3', '__Montserrat_Fallback_069ab3';font-style: normal
}

/*!*****************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[3]!./src/app/globals.css ***!
  \*****************************************************************************************************************************************************************************************************************************************************************/
*, ::before, ::after {
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x:  ;
  --tw-pan-y:  ;
  --tw-pinch-zoom:  ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position:  ;
  --tw-gradient-via-position:  ;
  --tw-gradient-to-position:  ;
  --tw-ordinal:  ;
  --tw-slashed-zero:  ;
  --tw-numeric-figure:  ;
  --tw-numeric-spacing:  ;
  --tw-numeric-fraction:  ;
  --tw-ring-inset:  ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur:  ;
  --tw-brightness:  ;
  --tw-contrast:  ;
  --tw-grayscale:  ;
  --tw-hue-rotate:  ;
  --tw-invert:  ;
  --tw-saturate:  ;
  --tw-sepia:  ;
  --tw-drop-shadow:  ;
  --tw-backdrop-blur:  ;
  --tw-backdrop-brightness:  ;
  --tw-backdrop-contrast:  ;
  --tw-backdrop-grayscale:  ;
  --tw-backdrop-hue-rotate:  ;
  --tw-backdrop-invert:  ;
  --tw-backdrop-opacity:  ;
  --tw-backdrop-saturate:  ;
  --tw-backdrop-sepia:  ;
  --tw-contain-size:  ;
  --tw-contain-layout:  ;
  --tw-contain-paint:  ;
  --tw-contain-style:  ;
}

::backdrop {
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x:  ;
  --tw-pan-y:  ;
  --tw-pinch-zoom:  ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position:  ;
  --tw-gradient-via-position:  ;
  --tw-gradient-to-position:  ;
  --tw-ordinal:  ;
  --tw-slashed-zero:  ;
  --tw-numeric-figure:  ;
  --tw-numeric-spacing:  ;
  --tw-numeric-fraction:  ;
  --tw-ring-inset:  ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur:  ;
  --tw-brightness:  ;
  --tw-contrast:  ;
  --tw-grayscale:  ;
  --tw-hue-rotate:  ;
  --tw-invert:  ;
  --tw-saturate:  ;
  --tw-sepia:  ;
  --tw-drop-shadow:  ;
  --tw-backdrop-blur:  ;
  --tw-backdrop-brightness:  ;
  --tw-backdrop-contrast:  ;
  --tw-backdrop-grayscale:  ;
  --tw-backdrop-hue-rotate:  ;
  --tw-backdrop-invert:  ;
  --tw-backdrop-opacity:  ;
  --tw-backdrop-saturate:  ;
  --tw-backdrop-sepia:  ;
  --tw-contain-size:  ;
  --tw-contain-layout:  ;
  --tw-contain-paint:  ;
  --tw-contain-style:  ;
}/*
! tailwindcss v3.4.19 | MIT License | https://tailwindcss.com
*//*
1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)
*/

*,
::before,
::after {
  box-sizing: border-box; /* 1 */
  border-width: 0; /* 2 */
  border-style: solid; /* 2 */
  border-color: #e5e7eb; /* 2 */
}

::before,
::after {
  --tw-content: '';
}

/*
1. Use a consistent sensible line-height in all browsers.
2. Prevent adjustments of font size after orientation changes in iOS.
3. Use a more readable tab size.
4. Use the user's configured `sans` font-family by default.
5. Use the user's configured `sans` font-feature-settings by default.
6. Use the user's configured `sans` font-variation-settings by default.
7. Disable tap highlights on iOS
*/

html,
:host {
  line-height: 1.5; /* 1 */
  -webkit-text-size-adjust: 100%; /* 2 */
  -moz-tab-size: 4; /* 3 */
  -o-tab-size: 4;
     tab-size: 4; /* 3 */
  font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; /* 4 */
  font-feature-settings: normal; /* 5 */
  font-variation-settings: normal; /* 6 */
  -webkit-tap-highlight-color: transparent; /* 7 */
}

/*
1. Remove the margin in all browsers.
2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.
*/

body {
  margin: 0; /* 1 */
  line-height: inherit; /* 2 */
}

/*
1. Add the correct height in Firefox.
2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)
3. Ensure horizontal rules are visible by default.
*/

hr {
  height: 0; /* 1 */
  color: inherit; /* 2 */
  border-top-width: 1px; /* 3 */
}

/*
Add the correct text decoration in Chrome, Edge, and Safari.
*/

abbr:where([title]) {
  -webkit-text-decoration: underline dotted;
          text-decoration: underline dotted;
}

/*
Remove the default font size and weight for headings.
*/

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
}

/*
Reset links to optimize for opt-in styling instead of opt-out.
*/

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

/*
Add the correct font weight in Edge and Safari.
*/

b,
strong {
  font-weight: bolder;
}

/*
1. Use the user's configured `mono` font-family by default.
2. Use the user's configured `mono` font-feature-settings by default.
3. Use the user's configured `mono` font-variation-settings by default.
4. Correct the odd `em` font sizing in all browsers.
*/

code,
kbd,
samp,
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; /* 1 */
  font-feature-settings: normal; /* 2 */
  font-variation-settings: normal; /* 3 */
  font-size: 1em; /* 4 */
}

/*
Add the correct font size in all browsers.
*/

small {
  font-size: 80%;
}

/*
Prevent `sub` and `sup` elements from affecting the line height in all browsers.
*/

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/*
1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)
2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)
3. Remove gaps between table borders by default.
*/

table {
  text-indent: 0; /* 1 */
  border-color: inherit; /* 2 */
  border-collapse: collapse; /* 3 */
}

/*
1. Change the font styles in all browsers.
2. Remove the margin in Firefox and Safari.
3. Remove default padding in all browsers.
*/

button,
input,
optgroup,
select,
textarea {
  font-family: inherit; /* 1 */
  font-feature-settings: inherit; /* 1 */
  font-variation-settings: inherit; /* 1 */
  font-size: 100%; /* 1 */
  font-weight: inherit; /* 1 */
  line-height: inherit; /* 1 */
  letter-spacing: inherit; /* 1 */
  color: inherit; /* 1 */
  margin: 0; /* 2 */
  padding: 0; /* 3 */
}

/*
Remove the inheritance of text transform in Edge and Firefox.
*/

button,
select {
  text-transform: none;
}

/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Remove default button styles.
*/

button,
input:where([type='button']),
input:where([type='reset']),
input:where([type='submit']) {
  -webkit-appearance: button; /* 1 */
  background-color: transparent; /* 2 */
  background-image: none; /* 2 */
}

/*
Use the modern Firefox focus style for all focusable elements.
*/

:-moz-focusring {
  outline: auto;
}

/*
Remove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)
*/

:-moz-ui-invalid {
  box-shadow: none;
}

/*
Add the correct vertical alignment in Chrome and Firefox.
*/

progress {
  vertical-align: baseline;
}

/*
Correct the cursor style of increment and decrement buttons in Safari.
*/

::-webkit-inner-spin-button,
::-webkit-outer-spin-button {
  height: auto;
}

/*
1. Correct the odd appearance in Chrome and Safari.
2. Correct the outline style in Safari.
*/

[type='search'] {
  -webkit-appearance: textfield; /* 1 */
  outline-offset: -2px; /* 2 */
}

/*
Remove the inner padding in Chrome and Safari on macOS.
*/

::-webkit-search-decoration {
  -webkit-appearance: none;
}

/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Change font properties to `inherit` in Safari.
*/

::-webkit-file-upload-button {
  -webkit-appearance: button; /* 1 */
  font: inherit; /* 2 */
}

/*
Add the correct display in Chrome and Safari.
*/

summary {
  display: list-item;
}

/*
Removes the default spacing and border for appropriate elements.
*/

blockquote,
dl,
dd,
h1,
h2,
h3,
h4,
h5,
h6,
hr,
figure,
p,
pre {
  margin: 0;
}

fieldset {
  margin: 0;
  padding: 0;
}

legend {
  padding: 0;
}

ol,
ul,
menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

/*
Reset default styling for dialogs.
*/
dialog {
  padding: 0;
}

/*
Prevent resizing textareas horizontally by default.
*/

textarea {
  resize: vertical;
}

/*
1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)
2. Set the default placeholder color to the user's configured gray 400 color.
*/

input::-moz-placeholder, textarea::-moz-placeholder {
  opacity: 1; /* 1 */
  color: #9ca3af; /* 2 */
}

input::placeholder,
textarea::placeholder {
  opacity: 1; /* 1 */
  color: #9ca3af; /* 2 */
}

/*
Set the default cursor for buttons.
*/

button,
[role="button"] {
  cursor: pointer;
}

/*
Make sure disabled buttons don't get the pointer cursor.
*/
:disabled {
  cursor: default;
}

/*
1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)
2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)
   This can trigger a poorly considered lint error in some tools but is included by design.
*/

img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
  display: block; /* 1 */
  vertical-align: middle; /* 2 */
}

/*
Constrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)
*/

img,
video {
  max-width: 100%;
  height: auto;
}

/* Make elements with the HTML hidden attribute stay hidden by default */
[hidden]:where(:not([hidden="until-found"])) {
  display: none;
}
.sticky {
  position: sticky;
}
.block {
  display: block;
}
.flex {
  display: flex;
}
.inline-flex {
  display: inline-flex;
}
.table {
  display: table;
}
.grid {
  display: grid;
}
.hidden {
  display: none;
}
.border {
  border-width: 1px;
}
.uppercase {
  text-transform: uppercase;
}
.tabular-nums {
  --tw-numeric-spacing: tabular-nums;
  font-variant-numeric: var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction);
}
.filter {
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}
.transition {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

/*
 * IMPORTANT: Thème sombre - NE PAS MODIFIER ces variables de couleur
 * Le site utilise un thème sombre (fond bleu-gris foncé, texte clair)
 * Toute modification doit conserver ce thème sombre.
 */
:root {
  --primary: #8dd7e3;
  --secondary: #11141f;
  --tertiary: #c78779;
  --background: #0d1117;
  --background-soft: #161b22;
  --text: #f0f6fc;
  --muted: #8b949e;
  --card: rgba(22, 27, 34, 0.95);
  --card-border: rgba(141, 215, 227, 0.25);
}

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

body {
  font-family: "Montserrat", sans-serif;
  background: linear-gradient(180deg, var(--background) 0%, var(--background-soft) 40%, #1a2332 100%);
  color: var(--text);
  min-height: 100vh;
}

/* ─── Header & Nav ───────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(10px);
  background: rgba(13, 17, 23, 0.9);
  border-bottom: 1px solid rgba(141, 215, 227, 0.15);
  z-index: 10;
}

.nav {
  max-width: 1600px;
  margin: 0 auto;
  padding: 20px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 20px;
  color: var(--text);
  text-decoration: none;
}

.logo a {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.logo-image {
  width: 40px;
  height: 40px;
  max-width: 48px;
  max-height: 48px;
  border-radius: 12px;
  -o-object-fit: contain;
     object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 18px;
  flex: 1;
  justify-content: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  font-size: 14px;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.nav-actions a {
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}

.nav-actions .ghost {
  color: var(--text);
  border: 1px solid rgba(141, 215, 227, 0.3);
}

.nav-actions .primary {
  background: var(--secondary);
  color: var(--primary);
}

/* ─── Layout principal ───────────────────────────────────────── */
main {
  max-width: 1600px;
  margin: 0 auto;
  padding: 48px 44px 72px;
}

/* ─── Hero ─────────────────────────────────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  margin-bottom: 48px;
}

.hero-content h1 {
  font-size: 40px;
  color: var(--text);
  margin-bottom: 12px;
}

.hero-content .subtitle {
  color: var(--muted);
  max-width: 560px;
  line-height: 1.6;
  margin-bottom: 24px;
}

.tag {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 12px;
  font-weight: 600;
  color: var(--tertiary);
  margin-bottom: 16px;
}

.hero-panel {
  background: radial-gradient(circle at top, rgba(141, 215, 227, 0.35), rgba(17, 20, 31, 0.9));
  border-radius: 24px;
  padding: 24px;
  color: #fff;
  box-shadow: 0 30px 60px rgba(17, 20, 31, 0.25);
}

.hero-panel-inner h2 {
  margin-bottom: 16px;
  font-size: 20px;
}

.hero-panel-inner ul {
  list-style: none;
  display: grid;
  gap: 12px;
}

.hero-panel-inner .label {
  display: block;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}

.auth-hero {
  margin-bottom: 32px;
}

/* ─── Grille de sections ───────────────────────────────────────── */
.grid-section {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

/* ─── Cards ─────────────────────────────────────────────────────── */
.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 24px;
  color: #fff;
  box-shadow: 0 18px 40px rgba(17, 20, 31, 0.18);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.card-header h3 {
  font-size: 18px;
  font-weight: 600;
}

.pill {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(141, 215, 227, 0.25);
  font-size: 11px;
  font-weight: 700;
  color: #fff;
}

/* ─── Tableau de données ──────────────────────────────────────── */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.data-table th {
  text-align: left;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  padding-bottom: 10px;
}

.data-table td {
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.data-table tr:last-child td {
  border-bottom: none;
}

/* ─── Bouton principal ──────────────────────────────────────────── */
.match-btn {
  background: var(--primary);
  color: var(--secondary);
  border: none;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  font-family: "Montserrat", sans-serif;
  transition: opacity 0.2s ease;
  text-decoration: none;
  display: inline-block;
}

.match-btn:hover {
  opacity: 0.85;
}

/* ─── Auth (connexion / messages) ────────────────────────────── */
.auth-wrapper {
  display: grid;
  gap: 24px;
}

.auth-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.auth-card {
  display: none;
}

.auth-card.is-visible {
  display: block;
}

.auth-card .form-actions {
  justify-content: flex-end;
}

.auth-message {
  border-radius: 16px;
  padding: 16px;
  font-size: 14px;
}

.auth-message.error {
  background: rgba(199, 135, 121, 0.2);
  border: 1px solid rgba(199, 135, 121, 0.4);
  color: var(--text);
}

.auth-message.success {
  background: rgba(141, 215, 227, 0.15);
  border: 1px solid rgba(141, 215, 227, 0.35);
  color: var(--text);
}

/* ─── Formulaires ───────────────────────────────────────────────── */
.form-grid {
  display: grid;
  gap: 16px;
}

.form-grid label {
  display: grid;
  gap: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
}

.form-grid input,
.form-grid select,
.form-grid textarea {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 10px 12px;
  background: rgba(17, 20, 31, 0.6);
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-size: 13px;
}

.form-grid select option,
select option {
  background: #0d1117;
  color: #e2e8f0;
}

.form-grid input::-moz-placeholder, .form-grid textarea::-moz-placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.form-grid input::placeholder,
.form-grid textarea::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.form-grid input[readonly] {
  opacity: 0.6;
  cursor: default;
}

.form-helper {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
}

.form-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ─── Mot de passe ────────────────────────────────────────────── */
.password-field {
  gap: 10px;
}

.password-input {
  display: flex;
  gap: 8px;
  align-items: center;
}

.password-input input {
  flex: 1;
}

.password-toggle {
  min-width: 98px;
  border-radius: 999px;
  border: 1px solid rgba(141, 215, 227, 0.45);
  background: rgba(141, 215, 227, 0.15);
  color: #fff;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 600;
  font-family: "Montserrat", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.password-toggle:hover {
  border-color: rgba(141, 215, 227, 0.9);
  background: rgba(141, 215, 227, 0.3);
  transform: translateY(-1px);
}

.password-toggle[aria-pressed="true"] {
  background: rgba(141, 215, 227, 0.45);
  color: var(--secondary);
}

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 960px) {
  .nav {
    flex-direction: column;
    padding: 16px;
    gap: 12px;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .logo-image {
    width: 32px;
    height: 32px;
    max-width: 36px;
    max-height: 36px;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero-content h1 {
    font-size: 28px;
  }
}

@media (max-width: 600px) {
  main {
    padding: 24px 16px 48px;
  }

  .card {
    padding: 16px;
    border-radius: 16px;
  }

  .auth-grid {
    grid-template-columns: 1fr;
  }

  .grid-section {
    grid-template-columns: repeat(2, 1fr);
  }

  .data-table {
    font-size: 12px;
  }
}

/* ─── Boutons ghost / danger ──────────────────────────────────── */
.match-btn--ghost {
  background: transparent;
  border: 1px solid rgba(141, 215, 227, 0.35);
  color: var(--text);
}
.match-btn--ghost:hover {
  background: rgba(141, 215, 227, 0.08);
  opacity: 1;
}
.match-btn--danger {
  background: rgba(199, 135, 121, 0.85);
  color: #fff;
}
.match-btn--danger:hover {
  background: rgba(199, 135, 121, 1);
  opacity: 1;
}

/* ─── Auction card ─────────────────────────────────────────────── */
.auction-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease;
  text-decoration: none;
  color: var(--text);
  display: block;
}

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

.auction-card__image {
  aspect-ratio: 1;
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auction-card__image img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  transition: transform 0.3s ease;
}

.auction-card:hover .auction-card__image img {
  transform: scale(1.05);
}

.auction-card__body {
  padding: 14px 16px;
}

.auction-card__name {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.auction-card__price-label {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 2px;
}

.auction-card__price {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
}

.auction-card__bids {
  font-size: 11px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
  padding: 3px 8px;
  border-radius: 999px;
}

/* ─── Auth page layout ────────────────────────────────────────── */
.auth-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-box {
  width: 100%;
  max-width: 420px;
}

.auth-box__logo {
  text-align: center;
  margin-bottom: 32px;
}

.auth-box__logo h1 {
  font-size: 28px;
  font-weight: 700;
  margin-top: 16px;
}

.auth-box__logo p {
  color: var(--muted);
  font-size: 14px;
  margin-top: 4px;
}

.auth-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.auth-link:hover {
  text-decoration: underline;
}

/* ─── Live Homepage layout ───────────────────────────────────── */
.live-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  align-items: start;
}

.live-center {
  min-width: 0;
}

.live-sidebar {
  position: sticky;
  top: 96px;
}

.live-auction-card {
  /* inherits .card */
}

.live-player-header {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.live-player-avatar {
  flex-shrink: 0;
  position: relative;
  width: 120px;
}

.live-player-avatar img {
  width: 120px;
  height: 120px;
  border-radius: 16px;
  -o-object-fit: cover;
     object-fit: cover;
  border: 2px solid var(--card-border);
  display: block;
}

.live-player-role-badge {
  display: block;
  text-align: center;
  margin-top: 8px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid currentColor;
  opacity: 0.9;
}

.live-player-info {
  flex: 1;
  min-width: 0;
}

.live-player-name {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
}

.live-status-badge {
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.live-status-badge.pending { background: rgba(255,200,50,0.18); color: #ffc832; }
.live-status-badge.live    { background: rgba(199,100,100,0.2); color: #ff8080; }
.live-status-badge.ended   { background: rgba(141,215,227,0.18); color: var(--primary); }

.live-price-row {
  display: flex;
  align-items: flex-end;
  gap: 28px;
}

.live-current-price {
  font-size: 36px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.live-timer {
  text-align: center;
  transition: transform 0.15s ease;
}
.live-timer.flash { transform: scale(1.1); }

.live-timer-value {
  font-size: 36px;
  font-weight: 700;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
  letter-spacing: -1px;
  line-height: 1;
  transition: color 0.3s ease;
}

.live-timer.urgent .live-timer-value {
  color: var(--tertiary);
  animation: pulse-urgent 0.5s ease infinite alternate;
}

@keyframes pulse-urgent {
  from { opacity: 1; }
  to   { opacity: 0.6; }
}

/* ─── Player card (liste page) ──────────────────────────────── */
.player-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.player-card {
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.player-card--live {
  border-color: rgba(255,200,50,0.45);
  box-shadow: 0 0 20px rgba(255,200,50,0.08);
  animation: live-glow 2s ease-in-out infinite alternate;
}

@keyframes live-glow {
  from { box-shadow: 0 0 10px rgba(255,200,50,0.08); }
  to   { box-shadow: 0 0 24px rgba(255,200,50,0.2); }
}

.player-card:hover {
  transform: translateY(-2px);
  border-color: rgba(141,215,227,0.3);
}

.player-card__header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.player-card__avatar {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.1);
}

.player-card__avatar img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}

.player-card__pseudo {
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.player-card__role {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid;
  align-self: flex-start;
}

.player-card__elo {
  font-size: 13px;
  color: var(--muted);
}

.player-card__elo-rank {
  font-weight: 600;
  color: var(--text);
}

.player-card__footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* ─── Responsive live layout ─────────────────────────────────── */
@media (max-width: 900px) {
  .live-layout {
    grid-template-columns: 1fr;
  }
  .live-sidebar {
    position: static;
  }
  .live-player-avatar {
    width: 80px;
  }
  .live-player-avatar img {
    width: 80px;
    height: 80px;
  }
  .live-player-name {
    font-size: 20px;
  }
  .live-current-price,
  .live-timer-value {
    font-size: 28px;
  }
}

@media (max-width: 600px) {
  .player-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .live-player-header {
    flex-direction: column;
    gap: 12px;
  }
  .live-player-avatar {
    width: 100%;
  }
  .live-player-avatar img {
    width: 72px;
    height: 72px;
  }
}

/* ─── Sale recap panel ───────────────────────────────────────── */
.sale-recap {
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: recap-in 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes recap-in {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.sale-recap__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--primary);
}

.sale-recap__player {
  display: flex;
  align-items: center;
  gap: 16px;
}

.sale-recap__player-avatar {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid var(--primary);
  background: rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sale-recap__player-avatar img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}

.sale-recap__player-name {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
}

.sale-recap__price-row {
  text-align: center;
  padding: 16px;
  border-radius: 16px;
  background: rgba(141,215,227,0.08);
  border: 1px solid rgba(141,215,227,0.2);
}

.sale-recap__price {
  font-size: 42px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.sale-recap__winner {
  padding: 16px;
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
}

