/* Variables et Reset de base */
:root {
    --primary-color: #cc0000; /* Rouge Tesla */
    --secondary-color: #1a1a1a; /* Noir/Gris très foncé */
    --accent-color: #007bff; 
    --light-gray: #f7f7f7; /* Un gris encore plus clair pour les fonds de section */
    --medium-gray: #e0e0e0;
    --text-color: #333; /* Un peu plus foncé pour meilleur contraste */
    --text-light: #f8f8f8;
    --font-main: 'Montserrat', sans-serif;
    --font-secondary: 'Lato', sans-serif;
    --container-width: 1180px; 
    --header-height: 70px; /* Hauteur définie pour le header */
}

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

html {
    scroll-behavior: smooth; /* Défilement doux pour les ancres */
}

body {
    font-family: var(--font-secondary);
    line-height: 1.7;
    color: var(--text-color);
    background-color: #fff;
    -webkit-font-smoothing: antialiased; /* Meilleur rendu des polices */
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
    font-family: var(--font-main);
    font-weight: 600;
    margin-bottom: 1rem; 
    color: var(--secondary-color);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.25s ease-in-out;
}
a:hover {
    color: #a60000; /* Rouge Tesla plus foncé au survol */
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 15px; 
}

/* Header */
header {
    background-color: rgba(255, 255, 255, 0.98); /* Légère transparence pour effet "verre dépoli" */
    height: var(--header-height);
    box-shadow: 0 1px 10px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(5px); /* Effet de flou si le fond le permet */
    -webkit-backdrop-filter: blur(5px);
}

.header-container { /* Renommé pour éviter conflit avec .container global si besoin */
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%; /* Pour que les éléments s'alignent bien sur la hauteur définie */
}

.logo-area .site-logo {
    height: 40px; /* Logo un peu plus petit pour header plus fin */
    width: auto;
}

nav ul {
    list-style: none;
    display: flex;
    align-items: center; 
}

nav ul li {
    margin: 0 15px; 
}

nav ul li a {
    color: var(--secondary-color);
    font-weight: 500; /* Un peu moins gras pour un look plus fin */
    font-size: 0.9rem; 
    font-family: var(--font-main);
    padding: 5px 0;
    position: relative; /* Pour le pseudo-élément de survol */
    letter-spacing: 0.5px;
}
nav ul li a::after { /* Ligne de survol subtile */
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    display: block;
    margin-top: 3px;
    right: 0;
    background: var(--primary-color);
    transition: width 0.3s ease;
    -webkit-transition: width 0.3s ease;
}
nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
    left: 0;
    background: var(--primary-color);
}
nav ul li a.active {
    color: var(--primary-color);
}


.partner-logo-header .tocf-logo-header {
    height: 30px; /* Logo TOCF plus petit */
    width: auto;
    opacity: 0.75;
    transition: opacity 0.25s ease;
}
.partner-logo-header .tocf-logo-header:hover {
    opacity: 1;
}

/* Main content wrapper */
main {
    padding-top: 0; /* Le header est sticky, pas besoin de pousser le contenu */
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)), url('https://placehold.co/1920x1080/1a1a1a/FFFFFF?text=Fond+TeslaShoes+Moderne') no-repeat center center/cover;
    color: var(--text-light);
    text-align: center;
    padding: 100px 20px; /* Padding vertical réduit un peu */
    min-height: calc(85vh - var(--header-height)); /* Hauteur dynamique en fonction du header */
    display: flex;
    flex-direction: column; 
    align-items: center;
    justify-content: center;
}

.hero h1 {
    font-size: 3rem; 
    margin-bottom: 1rem;
    color: #fff; 
    text-shadow: 1px 1px 4px rgba(0,0,0,0.6); 
    font-weight: 700; /* Plus affirmé */
}

.hero p {
    font-size: 1.2rem; 
    margin-bottom: 2.2rem;
    max-width: 650px; 
    line-height: 1.8; /* Meilleure lisibilité */
}

.btn {
    display: inline-block;
    padding: 12px 28px; 
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 30px; 
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 1rem; 
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 0 3px 8px rgba(var(--primary-color), 0.3); /* Ombre subtile de la couleur primaire */
    text-transform: uppercase; /* Style plus affirmé */
    letter-spacing: 0.5px;
}

.btn:hover {
    background-color: #a60000; 
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(var(--primary-color), 0.4);
}

/* Sections Générales */
section {
    padding: 60px 0; 
}

section:nth-child(even) { /* Alternance de fond pour les sections */
    background-color: var(--light-gray);
}

section h2 {
    text-align: center;
    font-size: 2.3rem; 
    margin-bottom: 45px; 
    position: relative;
    padding-bottom: 15px; /* Espace pour la ligne en dessous */
}
/* Ligne décorative sous les titres de section */
section h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 70px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
}


/* Product Grid */
.product-grid, .testimonial-grid, .article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 30px; 
}

.product-card, .testimonial-card, .article-card {
    background-color: #fff;
    border-radius: 10px; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    padding: 20px; 
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease-in-out, box-shadow 0.25s ease-in-out;
    overflow: hidden; 
}
.product-card:hover, .article-card:hover {
    transform: translateY(-6px); 
    box-shadow: 0 8px 25px rgba(0,0,0,0.09);
}

.product-card img, .article-card img {
    border-radius: 6px; 
    margin-bottom: 18px;
    aspect-ratio: 16 / 10; 
    object-fit: cover;
}

.product-card h3, .article-card h3 {
    font-size: 1.25rem; 
    margin-bottom: 0.6rem;
    font-weight: 600;
}

.product-card .price {
    font-size: 1.2rem;
    font-weight: 700; /* Prix plus visible */
    color: var(--primary-color);
    margin: 8px 0 12px 0;
}

.product-card .description, .article-card p {
    font-size: 0.9rem;
    color: #555; 
    flex-grow: 1;
    margin-bottom: 18px;
    line-height: 1.6;
}

.article-card .read-more {
    color: var(--primary-color);
    font-weight: 600; /* Un peu plus affirmé */
    align-self: flex-start;
    font-size: 0.9rem;
}
.article-card .read-more:hover {
    text-decoration: underline;
}

/* Testimonials */
/* .testimonials section utilise déjà :nth-child(even) pour son fond */
.testimonial-card {
    text-align: center;
    background-color: #fff; 
    padding: 25px;
    border-left: 4px solid var(--primary-color); /* Accent de couleur */
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 12px;
    font-size: 1rem;
    color: #444;
}

.testimonial-card span {
    font-weight: 600;
    color: var(--secondary-color); /* Nom du client plus sobre */
    font-size: 0.9rem;
    display: block; /* Pour mettre les étoiles avant */
    margin-top: 5px;
}
.testimonial-card span::before { /* Ajout des étoiles en contenu */
    content: '★★★★★'; /* Ou ajuster selon la note */
    color: var(--primary-color);
    display: block;
    font-size: 1.1rem;
    margin-bottom: 5px;
}


/* Footer */
footer {
    background-color: var(--secondary-color); 
    color: #a0a0a0; /* Texte un peu plus clair sur fond foncé */
    padding: 50px 0 25px;
    font-size: 0.9rem;
}

.footer-content {
    display: grid; /* Utilisation de grid pour plus de contrôle */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-content h4 {
    color: #fff; 
    margin-bottom: 15px;
    font-size: 1.1rem;
    font-weight: 600;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li a {
    color: #a0a0a0;
    line-height: 1.9;
}

.footer-links ul li a:hover {
    color: var(--primary-color);
    padding-left: 4px;
}

.social-media a {
    display: inline-block;
    margin-right: 10px;
    color: #a0a0a0;
    font-size: 1.2rem; /* Pour des icônes plus grandes */
}
.social-media a:hover {
    color: var(--primary-color);
}
/* Placeholder pour icônes si vous n'utilisez pas FontAwesome */
.social-icon { 
    border: 1px solid #a0a0a0;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
}
.social-icon:hover {
    border-color: var(--primary-color);
}


.copyright {
    text-align: center;
    border-top: 1px solid #333;
    padding-top: 25px;
    margin-top: 25px;
    font-size: 0.85rem;
    color: #777;
}


/* Responsive (ajustements) */
@media (max-width: 992px) { 
    .header-container {
        /* Comportement du header sur tablette géré par flex-wrap si besoin */
    }
    .hero h1 {
        font-size: 2.6rem;
    }
    .hero p {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) { /* Mobile */
    :root {
        --header-height: 60px; /* Header un peu plus petit sur mobile */
    }
    .header-container {
        flex-wrap: wrap; 
        justify-content: center; 
        padding: 5px 0; /* Réduire le padding pour s'adapter à la hauteur */
    }
    .logo-area {
        order: 1; /* Logo au centre en premier */
        width: 100%;
        text-align: center;
        margin-bottom: 5px;
    }
    .logo-area .site-logo {
        height: 35px;
    }
    nav {
        order: 3; /* Nav en dernier sous les logos */
        width: 100%;
    }
    nav ul {
        justify-content: space-around; /* Mieux espacer les liens */
        padding: 5px 0;
    }
    nav ul li {
        margin: 0 5px; /* Moins de marge latérale */
    }
    nav ul li a {
        font-size: 0.85rem;
    }
    .partner-logo-header {
        order: 2; /* Logo partenaire entre logo site et nav */
        position: absolute; /* Positionner plus précisément si besoin ou laisser dans le flux */
        top: calc(var(--header-height)/2 - 12.5px); /* Centrer verticalement */
        right: 15px; /* Le mettre à droite */
    }
    .partner-logo-header .tocf-logo-header {
        height: 25px;
    }

    .hero {
        padding: 60px 15px;
        min-height: calc(70vh - var(--header-height));
    }
    .hero h1 {
        font-size: 2.2rem;
    }
    .hero p {
        font-size: 1rem;
    }
    section {
        padding: 50px 0;
    }
    section h2 {
        font-size: 1.9rem;
        margin-bottom: 35px;
    }
    .product-grid, .testimonial-grid, .article-grid {
        grid-template-columns: 1fr; 
        gap: 25px;
    }
    .footer-content {
        grid-template-columns: 1fr; /* Une seule colonne */
        text-align: center;
    }
    .footer-content > div { /* Centrer le contenu de chaque div du footer */
        margin-bottom: 20px;
    }
    .social-media {
        margin-top: 10px;
    }
}