:root{
    --nav-height: 138px; /* augmenté d'environ 50px (était 88px) */
    --accent: #4169e1;
    --bg: #0a0a2a;
    --panel: rgba(65,105,225,0.12);
    --panel-border: rgba(65,105,225,0.28);
    --glass: rgba(0,0,0,0.35);
    --max-width: 1200px;
    --theme-accent: #4169e1; /* alias for --accent */
    --radius-md: 16px;
}

/* SAMS Theme Override */
body.sams-theme {
    --accent: #e74c3c; /* Red accent for medical theme */
    --theme-accent: #e74c3c;
    --panel: rgba(231,76,60,0.12);
    --panel-border: rgba(231,76,60,0.28);
}

/* Meca Theme Override */
body.meca-theme {
    --accent: #808080; /* Gray accent for mechanic theme */
    --theme-accent: #808080;
    --panel: rgba(128,128,128,0.12);
    --panel-border: rgba(128,128,128,0.28);
}

/* Taxi Theme Override */
body.taxi-theme {
    --accent: #ffd700; /* Yellow accent for taxi theme */
    --theme-accent: #ffd700;
    --panel: rgba(255,215,0,0.12);
    --panel-border: rgba(255,215,0,0.28);
}

/* Reset / base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,body {
    height: 100%;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: var(--bg);
    color: #fff;
    line-height: 1.6;
    padding-top: var(--nav-height); /* Empêche le contenu d'apparaitre sous la navbar fixe */
    -webkit-font-smoothing:antialiased;
    -moz-osx-font-smoothing:grayscale;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0,0,0,0.92);
    padding: 0 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10000;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
    transition: background-color .18s, padding .18s;
    /* hauteur contrôlée via --nav-height (body utilise padding-top: var(--nav-height)) */
}

/* hauteur contrôlée via variable : permet d'adapter le padding-top du body */
nav .nav-inner{
    width: 100%;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:1rem;
    height: var(--nav-height);
}

/* Logo & menu */
.logo {
    font-size: 1.35rem; /* légèrement plus grand */
    font-weight: 700;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

nav ul li {
    white-space: nowrap;
}

nav ul li a {
    color: white;
    text-decoration: none;
    padding: 0.6rem 1.05rem; /* augmentée pour meilleure cliquabilité */
    transition: all 0.18s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 10px;
}

nav ul li a:hover {
    color: var(--accent);
    transform: translateY(-2px);
    background: rgba(255,255,255,0.02);
}

/* header */
header {
    min-height: calc(100vh - var(--nav-height));
    position: relative;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)),
                url('background.png') center/cover no-repeat;
}

.header-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: min(90%, 1000px);
    padding: 0 1rem;
}

/* CTAs */
.cta-button {
    margin-top: 1.2rem;
    padding: 0.9rem 1.6rem;
    font-size: 1rem;
    background-color: var(--accent);
    color: white;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    transition: transform .18s, box-shadow .18s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.cta-button:hover{
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(65,105,225,0.18);
}

/* Sections and grids */
.tabs-section {
    padding: 3rem 1rem;
    background-color: #0d0d35;
}

h2 {
    text-align: center;
    font-size: clamp(1.4rem, 2.5vw, 2.4rem);
    margin-bottom: 2rem;
    color: var(--accent);
}

/* Tabs — nouveau style plus propre */
.tabs {
    position: relative;
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 1.2rem;
    padding: 8px;
    background: rgba(255,255,255,0.02);
    border-radius: 14px;
    align-items: center;
}

/* boutons onglets */
.tab-button {
    appearance: none;
    background: rgba(255,255,255,0.04);
    color: #dbe9ff;
    border: 1px solid rgba(255,255,255,0.03);
    padding: 10px 18px;
    border-radius: 10px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 140px;
    justify-content: center;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.45);
}

/* état actif */
.tab-button.active {
    background: linear-gradient(90deg, var(--accent), #7ca6ff);
    color: #071029;
    border-color: rgba(255,255,255,0.14);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(65,105,225,0.18);
}

/* focus visible (accessibilité) */
.tab-button:focus {
    outline: 3px solid rgba(65,105,225,0.18);
    outline-offset: 4px;
}

/* petite icône dans le bouton */
.tab-button i { font-size: 1.05rem; color: inherit; }

/* indicator (optionnel) : discret ou masqué si tu préfères l'effet uniquement sur les boutons */
.tab-indicator{
    position: absolute;
    bottom: 6px;
    left: 0;
    width: 0;
    height: 6px;
    border-radius: 6px;
    background: rgba(255,255,255,0.08);
    box-shadow: 0 6px 18px rgba(65,105,225,0.06);
    transition: transform .32s cubic-bezier(.2,.9,.2,1), width .32s cubic-bezier(.2,.9,.2,1);
    pointer-events: none;
    z-index: 2;
}

/* spacing ensure space for indicator */
.tab-button { padding-bottom: 1.1rem; }

/* small screens tweak */
@media (max-width: 600px) {
    .tab-indicator { bottom: 6px; height:5px; }
    .tab-button { padding-bottom: 1rem; }
}

/* responsive — réduit la taille des onglets sur petits écrans */
@media (max-width: 720px) {
    .tab-button { min-width: 100px; padding: 8px 12px; font-size: 0.95rem; gap: 8px; }
    .tabs { gap: 8px; padding: 6px; }
}

/* very small */
@media (max-width: 420px) {
    .tab-button { min-width: 86px; padding: 6px 10px; font-size: 0.9rem; }
}

/* Optionnel : accentuer l'onglet actif */
.tab-button.active {
    font-weight: 700;
    color: #fff;
}

/* Reusable responsive grid helper */
.responsive-grid {
    display: grid;
    gap: 1rem;
}

/* Features grid */
.features-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    padding: 1rem;
}
.feature-card {
    background: var(--panel);
    padding: 1.2rem;
    border-radius: 12px;
    border: 1px solid var(--panel-border);
    text-align: center;
    transition: transform .18s, box-shadow .18s;
}
.feature-card:hover { transform: translateY(-8px); box-shadow: 0 8px 20px rgba(0,0,0,0.4); }
.feature-card i { font-size: 1.9rem; color: var(--accent); margin-bottom: .6rem; }

/* Jobs (métiers) - responsive and consistent */
.jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    padding: 1rem 0;
}

.job-card {
    background: linear-gradient(145deg, rgba(65,105,225,0.06), rgba(65,105,225,0.10));
    border: 1px solid rgba(65,105,225,0.2);
    padding: 1rem;
    border-radius: 12px;
    text-align: left;
    transition: transform .18s, box-shadow .18s;
    overflow: hidden;
    display:flex;
    gap:1rem;
    align-items:flex-start;
}

.job-card:hover { transform: translateY(-6px); box-shadow: 0 10px 25px rgba(0,0,0,0.45); }

.job-card i { font-size: 1.8rem; color: var(--accent); min-width:36px; }

.job-card h3 { margin: 0; font-size: 1.1rem; color: #fff; }
.job-card p { margin: .2rem 0 .6rem 0; color: #cfcfcf; font-size: .95rem; }
.job-description { color:#d9d9d9; font-size:.9rem; opacity: .98; }

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 1rem;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 16/9;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.3));
    transition: transform 0.3s ease;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover figcaption {
    transform: translateY(0);
}

.gallery-item h3 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.gallery-item p {
    color: rgba(255,255,255,0.9);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1rem;
    }
}

/* Rules / panels */
.rules-container {
    max-width: var(--max-width);
    margin: 2rem auto;
    padding: 1rem;
    position: relative;
    z-index: 1;
}

.rules-header { text-align:center; margin-bottom:1.2rem; }
.rules-header h1 { color:var(--accent); font-size: clamp(1.6rem, 3vw, 2.6rem); }

/* Rule section card */
.rule-section {
    background: linear-gradient(145deg, rgba(65,105,225,0.06), rgba(65,105,225,0.10));
    border: 1px solid var(--panel-border);
    border-radius: 12px;
    padding: 1rem;
    transition: transform .18s;
}
.rule-section h2 { font-size: 1.15rem; color: var(--accent); margin-bottom: .8rem; display:flex; gap:.6rem; align-items:center; }
.rule-grid {
    display:grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: .8rem;
}
.rule-item {
    display:flex;
    gap:.8rem;
    align-items:flex-start;
    padding:.8rem;
    background: var(--glass);
    border-radius:8px;
    transition: transform .12s, background .12s;
}
.rule-item i { font-size:1.2rem; color:var(--accent); margin-top:4px; }
.rule-item span { font-size: .98rem; color: #e6e6e6; }

/* Footer */
footer { background-color: rgba(0,0,0,0.9); padding: 1.2rem; text-align:center; margin-top: 2rem; }
.social-links { margin-bottom:.6rem; }
.social-links a { color:#fff; font-size:1.25rem; margin: 0 .4rem; }

/* Utility */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1rem; }

/* Small / narrow screens */
@media (max-width: 1024px) {
    :root { --nav-height: 134px; } /* était 84px */
    .header-content { width: min(94%, 900px); }
}

@media (max-width: 768px) {
    :root { --nav-height: 170px; } /* était 120px */
    nav {
        padding: 0.5rem 0.8rem;
    }
    nav .nav-inner { height: auto; flex-direction: column; align-items: flex-start; gap: .4rem; padding: .4rem 0; }
    nav ul { width:100%; gap:.25rem; justify-content:flex-start; }
    nav ul li a { padding: .5rem .6rem; font-size:.95rem; }

    .header-content { width: 96%; transform: translate(-50%, -45%); }
    .tabs-section { padding: 2rem 1rem; }
    .rules-container { margin: 1rem auto; padding: .8rem; }

    .feature-card, .job-card, .rule-item { flex-direction: column; align-items: flex-start; }
    .job-card i { min-width: 0; }

    h1 { font-size: clamp(1.6rem, 5vw, 2.6rem); }
}

@media (max-width: 420px) {
    :root { --nav-height: 190px; } /* était 140px */
    .logo { font-size: 1.05rem; }
    nav ul li a { font-size:.9rem; padding: .45rem .55rem; }
    .cta-button { padding: .7rem 1rem; font-size:.95rem; }
    .rule-section h2 { font-size: 1rem; }
}

/* Ensure footer spacing from content */
body > footer { margin-top: 2rem; }
/* Cards Styles */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 2rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

.info-card, .feature-card, .garage-card {
    background: rgba(255,255,255,0.03);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.info-card:hover, .feature-card:hover, .garage-card:hover {
    transform: translateY(-8px);
    border-color: var(--theme-accent);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4),
                0 0 20px rgba(65,105,225,0.1);
}

.info-card i, .feature-card i, .garage-card i {
    font-size: 2.5rem;
    color: var(--theme-accent);
    margin-bottom: 1.5rem;
    display: block;
}

.info-card h3, .feature-card h3, .garage-card h3 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.info-card p, .feature-card p, .garage-card p {
    color: rgba(255,255,255,0.8);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.garage-card img {
    width: calc(100% + 4rem);
    margin: -2rem -2rem 2rem -2rem;
    height: 200px;
    object-fit: cover;
}

.garage-card .services {
    list-style: none;
    margin: 1.5rem 0;
}

.garage-card .services li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.8rem;
    color: rgba(255,255,255,0.9);
}

.garage-card .services i {
    font-size: 1.2rem;
    margin: 0;
    min-width: 24px;
}

.garage-card .location {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}

.garage-card .location i {
    font-size: 1.2rem;
    margin: 0;
}

/* Recruitment, Career & Pricing Cards */
.requirements, .pricing {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2rem;
}

/* Common card styles */
.requirements h3, 
.price-card h3 {
    color: var(--theme-accent);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Requirements list style */
.requirements ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    list-style: none;
}

.requirements li {
    background: rgba(255,255,255,0.03);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    padding: 1.2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.requirements li:before {
    content: "✓";
    color: var(--theme-accent);
    font-weight: bold;
    font-size: 1.2rem;
}

.requirements li:hover {
    transform: translateY(-5px);
    border-color: var(--theme-accent);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

/* Pricing cards */
.pricing {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.price-card {
    background: rgba(255,255,255,0.03);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.price-card:hover {
    transform: translateY(-5px);
    border-color: var(--theme-accent);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.price-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.price-card p {
    color: rgba(255,255,255,0.9);
    font-size: 1.2rem;
    margin: 0.5rem 0;
}

/* Section styles */
.section-light {
    background: rgba(255,255,255,0.02);
    padding: 4rem 2rem;
}

.section-dark {
    background: rgba(0,0,0,0.2);
    padding: 4rem 2rem;
}

/* Mandat card */
.mandat-card {
    background: rgba(255,255,255,0.03);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    padding: 2rem;
    max-width: var(--max-width);
    margin: 0 auto;
    text-align: center;
}

.mandat-card h3 {
    color: var(--theme-accent);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.mandat-card ul {
    list-style: none;
    margin: 1.5rem 0;
    padding: 0;
}

.mandat-card li {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    color: rgba(255,255,255,0.9);
    font-weight: 500;
}

.mandat-card p {
    color: rgba(255,255,255,0.8);
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* Base h1 style */
h1 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
}

/* Footer content */
.footer-content {
    max-width: var(--max-width);
    margin: 0 auto;
}

/* Team sections */
.equipe-sams, .equipe-sasp, .equipe-credits, .equipe-staff {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2rem;
    text-align: center;
}

.equipe-sams h3, .equipe-sasp h3, .equipe-credits h3, .equipe-staff h3 {
    color: var(--theme-accent);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.equipe-sams ul, .equipe-sasp ul, .equipe-credits ul, .equipe-staff ul {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.equipe-sams li, .equipe-sasp li, .equipe-credits li, .equipe-staff li {
    background: rgba(255,255,255,0.03);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    padding: 1rem;
    color: rgba(255,255,255,0.9);
    font-weight: 500;
    transition: all 0.3s ease;
}

.equipe-sams li:hover, .equipe-sasp li:hover, .equipe-credits li:hover, .equipe-staff li:hover {
    transform: translateY(-5px);
    border-color: var(--theme-accent);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

/* Media Queries */
@media (max-width: 768px) {
    .requirements ul {
        gap: 1rem;
    }
    
    .requirements li,
    .price-card {
        padding: 1rem;
    }
    
    .price-card h3 {
        font-size: 1.3rem;
    }
    
    .price-card p {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .requirements h3,
    .price-card h3 {
        font-size: 1.4rem;
    }
}