* {
    box-sizing: border-box;
}

:root {
    --bg: #0f2f24;
    --bg-soft: #123629;
    --panel: #163d2f;
    --panel-border: rgba(255, 255, 255, 0.08);
    --text: #ffffff;
    --muted: rgba(255, 255, 255, 0.72);
    --input-bg: #ffffff;
    --input-text: #111111;
    --accent: #e57b4e;
    --accent-strong: #ff9d00;
    --accent-soft: rgba(229, 123, 78, 0.18);
    --danger: #ff6b6b;
    --radius-xl: 18px;
    --radius-lg: 14px;
    --radius-md: 12px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    --max-width: 860px;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    background: linear-gradient(180deg, var(--bg) 0%, #0b221a 100%);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

input,
select,
button,
textarea {
    font: inherit;
}

.app-shell {
    padding: 16px;
}

.page {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    gap: 14px;
}

.page--narrow {
    max-width: 560px;
}

.panel {
    background: rgba(18, 54, 41, 0.95);
    border: 1px solid var(--panel-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    padding: 16px;
}

.hero-panel h1 {
    margin: 0;
    font-size: 28px;
    line-height: 1.15;
}

.hero-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.hero-kicker {
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-strong);
    font-weight: 700;
}

.mode-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: #ffd6c4;
    font-size: 13px;
    font-weight: 700;
}

.hero-text {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.5;
}

.order-form {
    display: grid;
    gap: 14px;
}

.form-grid {
    display: grid;
    gap: 12px;
}

.form-grid--two,
.form-grid--three {
    grid-template-columns: 1fr;
}

.field {
    display: grid;
    gap: 8px;
}

.field__label {
    font-size: 14px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.88);
}

.field input,
.field select,
.field textarea {
    width: 100%;
    min-height: 52px;
    padding: 0 14px;
    border: 0;
    border-radius: var(--radius-md);
    background: var(--input-bg);
    color: var(--input-text);
    outline: none;
}

.field textarea {
    min-height: 110px;
    padding: 14px;
    resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    box-shadow: 0 0 0 3px rgba(255, 157, 0, 0.24);
}

.toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 14px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
}

.toggle input {
    width: 18px;
    height: 18px;
    margin: 0;
}

.racket-cards {
    display: grid;
    gap: 12px;
}

.racket-card {
    padding: 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.racket-card__header {
    margin-bottom: 12px;
}

.racket-card__header h2 {
    margin: 0;
    font-size: 18px;
}

.form-actions {
    display: grid;
    gap: 10px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 16px;
    border: 0;
    border-radius: 12px;
    text-decoration: none;
    cursor: pointer;
    font-weight: 800;
}

.btn--primary {
    background: var(--accent);
    color: #ffffff;
}

.btn--ghost {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.alert {
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
}

.alert--error {
    background: rgba(255, 107, 107, 0.14);
    color: #ffd1d1;
    border: 1px solid rgba(255, 107, 107, 0.25);
    margin-bottom: 12px;
}

.summary-list {
    display: grid;
    gap: 12px;
    margin: 0;
}

.summary-list div {
    display: grid;
    gap: 4px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.summary-list dt {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-strong);
}

.summary-list dd {
    margin: 0;
    font-size: 16px;
}

.top-gap {
    margin-top: 4px;
}

@media (min-width: 640px) {
    .app-shell {
        padding: 24px;
    }

    .panel {
        padding: 20px;
    }

    .form-grid--two {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .form-grid--three {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .form-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
.price-total{
    margin-top:18px;
    padding:16px 18px;
    border:2px solid #111;
    border-radius:14px;
    background:#ea0707;
    text-align:center;
    font-size:18px;
    font-weight:700;
    letter-spacing:.3px;
}

.price-total strong{
    display:block;
    margin-top:6px;
    font-size:34px;
    line-height:1;
}
/* ===== ACCESSOIRES / MOBILE FIX ===== */

.panel-box{
    padding:14px;
    border-radius:16px;
    background:rgba(255,255,255,0.03);
    border:1px solid rgba(255,255,255,0.06);
}

.panel-box h3{
    margin:0 0 12px;
    font-size:18px;
    line-height:1.2;
}

.check-line{
    display:flex;
    align-items:center;
    gap:10px;
    min-height:42px;
    margin:0 0 8px;
    white-space:nowrap;
    font-size:16px;
    line-height:1.2;
}

.check-line:last-child{
    margin-bottom:0;
}

.check-line input{
    width:20px;
    height:20px;
    margin:0;
    flex:0 0 20px;
}

.check-line span{
    display:block;
    flex:1;
}

/* iPhone / petits écrans */
@media (max-width:480px){

    .app-shell{
        padding:12px;
    }

    .panel{
        padding:14px;
    }

    .hero-panel h1{
        font-size:24px;
    }

    .check-line{
        font-size:15px;
        gap:8px;
    }

    .price-total{
        padding:14px;
    }

    .price-total strong{
        font-size:30px;
    }
}
/* ===== DATE RETOUR WIDTH FIX ===== */

.field input[type="date"]{
    width:100%;
    max-width:100%;
    min-width:0;
    display:block;
    appearance:none;
    -webkit-appearance:none;
}