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

body {
    background-color: #15151e;
    color: white;
    font-family: 'Titillium Web', sans-serif;
    text-align: center;
    background-image: url('https://media.formula1.com/image/upload/v1677244984/fom-website/2023/Miscellaneous/texture-carbon.png');
    background-attachment: fixed;
    padding-top: 80px;
}

h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 40px;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 4px 10px rgba(0,0,0,0.5);
    border-bottom: 3px solid #e10600;
    display: inline-block;
    padding-bottom: 10px;
}

.btn-retour {
    position: fixed;
    top: 20px;
    left: 20px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-family: 'Rajdhani', sans-serif;
    text-transform: uppercase;
    transition: 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.btn-retour:hover {
    background-color: #e10600;
    border-color: #e10600;
    padding-left: 15px;
}

.btn-retour i {
    margin-right: 8px;
}

.all-pilotes {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 0 20px 50px 20px;
}

.card {
    background: #1f1f1f;
    width: 220px;
    border-radius: 12px;
    text-decoration: none;
    color: white;
    transition: all 0.3s;
    overflow: hidden;
    position: relative;
    border: 1px solid #333;
    border-top: 3px solid transparent;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.card:hover {
    transform: translateY(-5px) scale(1.01);
    border-color: #e10600;
    box-shadow: 0 10px 30px rgba(225, 6, 0, 0.4);
}

.card-container {
    position: relative;
    background: radial-gradient(circle at center, #2c2c36 0%, #1f1f1f 100%);
    padding-top: 10px;
}

.card img {
    width: 100%;
    height: auto;
    display: block;
    border-bottom: 1px solid #333;
    mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
}

.numero {
    position: absolute;
    top: 5px;
    right: 10px;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.1);
    z-index: 1;
}

.card-content {
    padding: 15px;
}

.card h2 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ecurie {
    font-size: 0.85rem;
    color: #e10600;
    font-weight: bold;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.stats-container {
    display: flex;
    justify-content: space-between;
    background: #15151e;
    padding: 8px;
    border-radius: 6px;
    border: 1px solid #333;
}

.stat {
    display: flex;
    flex-direction: column;
    width: 45%;
}

.stat .label {
    margin: 0;
    font-size: 0.65rem;
    color: #888;
    font-family: 'Rajdhani', sans-serif;
    font-weight: bold;
    text-transform: uppercase;
}

.stat .infos {
    margin: 0;
    font-size: 1.1rem;
    font-weight: bold;
    font-family: 'Orbitron', sans-serif;
}

.btn-add-pilote {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #e10600;
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    border: 2px solid #e10600;
    font-weight: bold;
    font-family: 'Rajdhani', sans-serif;
    text-transform: uppercase;
    transition: 0.3s;
    z-index: 1000;
    cursor: pointer;
    font-size: 1rem;
    letter-spacing: 1px;
}

.btn-add-pilote:hover {
    background-color: transparent;
    color: #e10600;
    box-shadow: 0 5px 20px rgba(225, 6, 0, 0.5);
}

.btn-add-pilote i {
    margin-right: 8px;
}

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.popup-form {
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    border: 3px solid #e10600;
    border-radius: 15px;
    padding: 40px 50px;
    max-width: 600px;
    width: 90%;
    box-shadow: 0 15px 60px rgba(225, 6, 0, 0.6);
}

.popup-overlay.active .popup-form {
    transform: scale(1);
}

.popup-form h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    color: #e10600;
    text-transform: uppercase;
    margin-bottom: 30px;
    letter-spacing: 2px;
    text-align: center;
}

.popup-form h2 i {
    margin-right: 10px;
}

.ligne {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.info label {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.9rem;
    color: #aaa;
    text-transform: uppercase;
    margin-bottom: 8px;
    font-weight: 600;
    letter-spacing: 1px;
}

.info input {
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    transition: all 0.3s;
}

.info input:focus {
    outline: none;
    border-color: #e10600;
    background: rgba(255, 255, 255, 0.08);
}

.form-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.btn-annuler,
.btn-ajouter {
    flex: 1;
    padding: 15px;
    border: 2px solid;
    border-radius: 8px;
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s;
    letter-spacing: 1px;
}

.btn-annuler {
    background: transparent;
    border-color: #666;
    color: #666;
}

.btn-annuler:hover {
    border-color: #999;
    color: #999;
}

.btn-ajouter {
    background: #e10600;
    border-color: #e10600;
    color: white;
}

.btn-ajouter:hover {
    background: transparent;
    color: #e10600;
    box-shadow: 0 5px 20px rgba(225, 6, 0, 0.5);
}

.btn-ajouter i {
    margin-right: 8px;
}