:root{
  --brand-green: #01655C;
  --accent: #ec2222;
  --bg: #fafafa;
  --text: #222;
  --nav-bg: #ffffff;
  --container-width: 1000px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: 'Space Grotesk', "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 400;
  color:var(--text);
  background:var(--bg);
  line-height:1.45;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 700;
}

strong, b {
  font-weight: 500;
}

/* style de l'encadré Ressources */
aside h4 { margin-top: 0; font-size: 1rem; color: #0b3b3a; }
.resource-list { margin: 10px 0 8px; }
.resource-list a {
  display: inline-block;
  background: #01655C;
  color: #fff;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 6px;
  margin-right: 8px;
  margin-bottom: 6px;
  font-size: 0.9rem;
}
.resource-list a:hover { background: #014f47; }
.small-note { font-size: 0.85rem; color: #555; margin-top: 8px; }

/* container centré */
.container{
  width:92%;
  max-width:var(--container-width);
  margin:0 auto;
}

/* en-tête centré*/
header{
  background:var(--accent);
  color:#f3f3f3;
  padding:22px 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.06);
}
header .container { display:flex; justify-content:center; align-items:center; }
header h1{margin:0;font-size:1.5rem;font-weight:600;letter-spacing:0.2px}

/* layout principal */
.layout{
  display:grid;
  grid-template-columns: 240px 1fr;
  gap:24px;
  align-items:start;
  margin-top:20px;
}

/* navigation verticale */
.site-nav{
  background:var(--nav-bg);
  padding:18px;
  border-radius:6px;
  border:1px solid #e6e6e6;
  height:100%;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
}
.site-nav .logo-block{
  width:100%;
  text-align:center;
  margin-bottom:12px;
}
.site-nav .logo-block img{ max-width:140px; height:auto; display:block; margin:0 auto 8px; }
.site-nav .logo-block .logo-text{ font-size:0.85rem; color:#333; font-weight:600; line-height:1.1; text-align:center; }

/* menu items */
.site-nav ul{list-style:none;margin:0;padding:0;width:100%}
.site-nav li{margin:8px 0}
.site-nav a{
  display:block;
  text-decoration:none;
  color:var(--text);
  padding:10px 12px;
  border-radius:4px;
  width:100%;
}
.site-nav a:hover{background:#f5f5f5}
.site-nav a.active{font-weight:700;background:#f0f0f0}

/* main */
main{min-height:360px}
section{
  display:grid;
  grid-template-columns: 1fr 300px;
  gap:20px;
}
article{
  background:#fff;
  padding:20px;
  border-radius:6px;
  border:1px solid #e9e9e9;
}
article h2{margin-top:0;font-size:1.2rem;color:#0b3b3a}
article p{margin:10px 0 14px}

/* aside styling */
aside{
  background:#fff;
  padding:16px;
  border-radius:6px;
  border:1px solid #e9e9e9;
  font-size:0.95rem;
}

/* listes */
ul, ol { margin:10px 0 12px 20px; }

/* images */
.aside-image, .content-image, .nav-logo{
  max-width:100%;
  height:auto;
  display:block;
}

/* bas de page */
footer{
  background:var(--brand-green);
  color:#fff;
  padding:14px 0;
  margin-top:22px;
  text-align:center;
  font-size:0.95rem;
}

/* responsive : empilement sur petits écrans */
@media (max-width:900px){
  .layout{grid-template-columns:1fr}
  section{grid-template-columns:1fr}
  .site-nav{order:0; display:flex; flex-direction:row; gap:12px; overflow-x:auto; padding:12px}
  .site-nav .logo-block{display:none}
  .site-nav a{white-space:nowrap}
}

/* tableaux stylés */
.styled-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #999; /* contours */
  background: #fff;
  margin: 12px 0;
  font-size: 0.95rem;
}

.styled-table th,
.styled-table td {
  border: 1px solid #999; /* traits internes */
  padding: 10px 12px;
  text-align: left;
  vertical-align: middle;
}

.styled-table thead th {
  background: #01655C; /* en-tête Aston Martin Racing Green */
  color: #fff;
  font-weight: 600;
}

.styled-table tbody tr:nth-child(even) {
  background: #fbfbfb; /* alternance légère */
}

.styled-table tbody tr:hover {
  background: #f0f7f6; /* survol pour repérage */
}

/* petites écrans : tableau scrollable horizontalement */
.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 6px;
  padding-bottom: 6px;
}
