
:root{--bg:#222326;--panel:#2b2d31;--panel2:#25272b;--red:#e11d29;--line:#45484e;--muted:#b9bdc6;--white:#f7f7f9}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:repeating-linear-gradient(135deg,#242529,#242529 3px,#25262a 3px,#25262a 6px);color:var(--white);font:15px/1.5 Arial,Helvetica,sans-serif}a{color:inherit;text-decoration:none}.topbar{background:#161719;border-bottom:3px solid var(--red);position:sticky;top:0;z-index:20}.top-inner{max-width:1700px;margin:auto;display:flex;align-items:center;gap:36px;min-height:69px;padding:0 28px}.logo{font-size:clamp(25px,3vw,40px);font-style:italic;font-weight:900;letter-spacing:-2px;white-space:nowrap;color:#ececec;text-shadow:1px 2px 3px #000}.logo em{color:var(--red);font-style:italic}.menu{display:flex;align-items:center;gap:4px;flex:1}.menu>a,.drop>button{display:block;background:none;border:0;color:#f5f5f5;padding:17px 19px;font:600 15px Arial;cursor:pointer;border-radius:6px}.menu>a:hover,.drop:hover>button,.drop:focus-within>button{background:var(--red)}.drop{position:relative}.drop-content{display:none;position:absolute;top:100%;left:0;background:#25272a;border:1px solid #555;max-height:65vh;overflow:auto;min-width:235px;box-shadow:0 14px 35px #0008;z-index:40}.drop:hover .drop-content,.drop:focus-within .drop-content{display:grid}.drop-content a{padding:8px 15px;border-bottom:1px solid #383b40;font-size:13px}.drop-content a:hover{background:#9d1420}.nav-button{display:none}.page{max-width:1700px;margin:auto;padding:0 28px 70px}.hero{min-height:300px;background:#17191d;position:relative;display:flex;align-items:center;margin:0 -28px 16px;overflow:hidden}.hero img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 45%;filter:brightness(.73)}.hero:after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#161719 0%,#161719ee 19%,#1617197a 45%,transparent 80%)}.hero-content{z-index:1;position:relative;padding:35px 4%;max-width:850px}.hero h1{font-size:clamp(42px,5vw,77px);font-style:italic;font-weight:900;letter-spacing:-2px;line-height:1;margin:0 0 8px;text-transform:uppercase;text-shadow:2px 3px 6px #000}.hero p{font-size:clamp(17px,2.2vw,28px);font-style:italic;margin:0 0 18px}.hero p:after{content:'';display:block;background:var(--red);width:240px;max-width:70%;height:3px;margin-top:12px}.cta{display:inline-flex;align-items:center;background:var(--red);border-radius:7px;padding:12px 20px;font-weight:700;font-style:italic}.cta:hover{background:#b60f1a}.stats{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:16px;margin:16px 0 22px}.stat{background:linear-gradient(115deg,#303238,#23252a);border:1px solid #454850;border-left:4px solid var(--red);border-radius:9px;padding:15px 17px;min-height:90px;display:flex;gap:15px;align-items:center}.stat .ico{font-size:32px;color:var(--red)}.stat .name{font-style:italic;font-weight:700;color:#eee}.stat strong{display:block;font-size:29px;line-height:1.1}.section-title{font-size:26px;font-weight:800;font-style:italic;margin:20px 0 14px}.section-title:before{content:'';display:inline-block;background:var(--red);width:11px;height:28px;transform:skew(-20deg);margin-right:15px;vertical-align:-5px}.identity{background:linear-gradient(120deg,#313338,#24262a);border:1px solid #42454b;border-radius:10px;padding:20px 25px;display:grid;grid-template-columns:1.4fr 1fr;gap:25px}.identity-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 25px;align-content:center}.identity .field{padding:5px 0}.identity .field small{display:block;color:var(--muted);font-size:14px}.identity .field b{font-size:19px}.identity-image{width:100%;height:190px;object-fit:cover;border-radius:6px;border:1px solid #777}.years{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:0}.year-tab{background:#383b42;color:white;border:1px solid #4a4d54;border-radius:7px 7px 0 0;padding:10px 25px;font-size:16px;cursor:pointer}.year-tab.active,.year-tab:hover{background:var(--red);border-color:var(--red)}.year-panel{display:none}.year-panel.active{display:block}.table-scroll{overflow-x:auto;border:1px solid #4b4d53;border-radius:0 6px 6px 6px;background:#1b1c1f}.rally-table{width:100%;border-collapse:collapse;min-width:980px;font-size:14px}.rally-table th{background:#303238;color:white;font-style:italic;text-align:left;padding:11px 12px;white-space:nowrap}.rally-table td{padding:9px 12px;border-top:1px solid #3d4045;vertical-align:middle}.rally-table tbody tr:nth-child(even){background:#24262a}.rally-table tbody tr:hover{background:#373a40}.rally-table img{max-width:25px;max-height:17px;vertical-align:middle}.empty{padding:24px;color:var(--muted)}.summary{display:flex;flex-wrap:wrap;gap:10px;margin:15px 0}.chip{background:#303238;border:1px solid #454850;border-radius:20px;padding:5px 13px;color:#ddd;font-size:13px}.footer{border-top:1px solid #41434a;margin-top:50px;padding-top:20px;color:#b4b6bc;text-align:center}.back{color:#f6b5b8;text-decoration:underline}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}@media(max-width:1050px){.stats{grid-template-columns:repeat(3,1fr)}.top-inner{gap:15px}.menu>a,.drop>button{padding:13px 10px}}@media(max-width:740px){.top-inner{flex-wrap:wrap;padding:10px 16px}.nav-button{display:block;margin-left:auto;background:#e11d29;color:#fff;border:0;border-radius:5px;padding:8px 12px}.menu{display:none;flex-basis:100%;flex-direction:column;align-items:stretch}.menu.open{display:flex}.drop-content{position:static;max-height:220px}.drop:hover .drop-content,.drop:focus-within .drop-content{display:grid}.page{padding:0 14px 35px}.hero{margin:0 -14px 15px;min-height:275px}.hero-content{padding:25px}.hero:after{background:linear-gradient(90deg,#161719ee,#16171988)}.stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.stat{padding:10px;min-height:75px}.stat .ico{font-size:23px}.stat strong{font-size:23px}.identity{grid-template-columns:1fr;padding:15px}.identity-grid{gap:10px}.identity .field b{font-size:15px}.identity-image{height:170px}.section-title{font-size:22px}.year-tab{padding:9px 14px}}@media(max-width:410px){.stats{grid-template-columns:1fr 1fr}.stat{gap:8px}.stat .name{font-size:12px}}

/* Fiches chassis : identite en une colonne, informations sur plusieurs lignes */
.identity .identity-grid.identity-grid-stacked{grid-template-columns:minmax(0,1fr);gap:10px;align-content:start}
.identity-grid-stacked .field{min-width:0;padding:5px 0;border-bottom:1px solid #ffffff1c}
.identity-grid-stacked .field:last-child{border-bottom:0}
.identity-grid-stacked .field b{display:block;overflow-wrap:anywhere}
.identity-grid-stacked .field-multiline .field-line{display:block;line-height:1.55}

/* V3 : immatriculations, proprietaires et entretien cote a cote */
.identity .identity-grid.identity-grid-stacked{
 display:grid;
 grid-template-columns:repeat(3,minmax(0,1fr));
 gap:16px 20px;
 align-content:start;
}
.identity-grid-stacked>.field:nth-child(1){grid-column:1 / 2;grid-row:1}
.identity-grid-stacked>.field:nth-child(3){grid-column:2 / 4;grid-row:1}
.identity-grid-stacked>.field:nth-child(2){grid-column:1;grid-row:2}
.identity-grid-stacked>.field:nth-child(4){grid-column:2;grid-row:2}
.identity-grid-stacked>.field:nth-child(5){grid-column:3;grid-row:2}
.identity-grid-stacked>.field{border-bottom:0;min-width:0}
.identity-grid-stacked>.field:nth-child(n+2){border-top:1px solid #ffffff24;padding-top:12px}
.identity-grid-stacked>.field:nth-child(3){border-top:0;padding-top:5px}
@media(max-width:1050px){
 .identity{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:740px){
 .identity .identity-grid.identity-grid-stacked{grid-template-columns:minmax(0,1fr);gap:8px}
 .identity-grid-stacked>.field:nth-child(n){grid-column:1;grid-row:auto;border-top:0;border-bottom:1px solid #ffffff24;padding:8px 0}
}
