/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        sans-serif;
    line-height: 1.6;
    color: #374151;
    background-color: #f9fafb;
}

/* Titres avec Montserrat */
h1,
h2,
h3,
h4,
h5,
h6,
.site-name,
.section-title,
.site-title {
    font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI",
        sans-serif;
}

.container {
    width: 100%;
    margin: 0;
    padding: 0 40px;
}

/* Header et Logo */
.header {
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
    padding: 25px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    position: relative;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    text-align: left;
    position: relative;
}

.logo-container::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 120px;
    height: 3px;
    background: linear-gradient(
        to right,
        #002654 33.33%,
        #ffffff 33.33%,
        #ffffff 66.66%,
        #ed2939 66.66%
    );
}

.logo {
    max-width: 120px;
    height: auto;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.logo:hover {
    transform: scale(1.05);
}

.site-title-logo {
    margin: 0;
    padding: 0;
    line-height: 1;
}

.header-text {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.site-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin: 0;
    line-height: 1.1;
}

.site-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 300;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin: 0;
}

/* Contact Header */
.header-contact {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
}

.contact-item {
    display: flex;
    align-items: center;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 400;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: white;
}

.contact-icon {
    font-size: 1rem;
    opacity: 0.8;
}

/* Header Center */
.header-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: 1;
    text-align: center;
}

.site-name {
    font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI",
        sans-serif;
    font-size: 1.8rem;
    color: white;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
}

.site-tagline {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Contenu principal */
.main-content {
    padding: 80px 0;
    min-height: calc(100vh - 300px);
}

/* Section d'introduction */
.intro-section {
    text-align: center;
    margin-bottom: 60px;
    padding: 0 20px;
}

.intro-section h2 {
    font-size: 2.2rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 20px;
}

.intro-section p {
    font-size: 1.1rem;
    color: #4a5568;
    max-width: 1200px;
    margin: 0 auto;
    line-height: 1.8;
}

.brands-section {
    text-align: center;
    margin-bottom: 80px;
}

/* Section B2B */
.b2b-section {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    padding: 60px 0;
    margin: 80px 0;
    border-radius: 20px;
}

.b2b-section .section-title {
    color: #1a202c;
}

.b2b-section .section-description {
    color: #4a5568;
    font-style: italic;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 20px;
    position: relative;
}

.section-description {
    font-size: 1.1rem;
    color: #4a5568;
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
    border-radius: 2px;
}

/* Grille des marques */
.brands-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 60px;
    padding: 0;
}

.brand-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    aspect-ratio: 1 / 1;
}

.brand-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.brand-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.brand-image-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 1 / 1;
}

.brand-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.brand-item:hover .brand-image {
    transform: scale(1.1);
}

.brand-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.brand-item:hover .brand-overlay {
    opacity: 1;
}

.brand-cta {
    background: white;
    color: #1f2937;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1.1rem;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.brand-item:hover .brand-cta {
    transform: translateY(0);
}

.brand-info {
    /* Masquer visuellement mais garder pour SEO */
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.brand-name {
    /* Styles conservés pour le SEO mais non visibles */
    font-size: 1.8rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 15px;
}

.brand-description {
    /* Styles conservés pour le SEO mais non visibles */
    font-size: 1rem;
    color: #6b7280;
    line-height: 1.6;
    font-weight: 400;
}

/* Section SEO */
.seo-content {
    margin-top: 80px;
    padding: 60px 0;
    background: #f8fafc;
    border-radius: 20px;
}

.seo-content h2 {
    font-size: 2.2rem;
    font-weight: 600;
    color: #1f2937;
    text-align: center;
    margin-bottom: 50px;
}

.seo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    padding: 0 40px;
}

.seo-item {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    text-align: left;
}

.seo-item h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 15px;
}

.seo-item p {
    color: #6b7280;
    line-height: 1.7;
}

.seo-item strong {
    color: #374151;
    font-weight: 600;
}

/* Section réassurances */
.reassurance-section {
    background: white;
    padding: 60px 0;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

.reassurance-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.reassurance-item {
    text-align: center;
    padding: 20px;
}

.reassurance-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: block;
}

.reassurance-item h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
    line-height: 1.3;
}

.reassurance-item p {
    font-size: 0.9rem;
    color: #6b7280;
    margin: 0;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    color: white;
    padding: 50px 0 20px;
}

.footer-main {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
    text-align: left;
}

.footer-section h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: white;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin: 0;
}

.footer-section p strong {
    color: white;
    font-weight: 600;
}

.brands-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 15px;
}

.brands-list li {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    padding: 2px 0;
    position: relative;
}

.brands-list li::before {
    content: "•";
    color: #93c5fd;
    font-weight: bold;
    margin-right: 8px;
}

/* Categories de marques */
.brands-categories {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.brand-category h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #93c5fd;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.brand-category .brands-list {
    grid-template-columns: 1fr;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-address {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.address-details {
    flex: 1;
}

.address-details strong {
    color: white;
    font-weight: 600;
}

.contact-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: #93c5fd;
}

.contact-icon {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .brands-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .seo-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 30px;
    }

    .intro-section h2 {
        font-size: 1.9rem;
    }

    .seo-content h2 {
        font-size: 1.9rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 30px;
    }

    .header-content {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .logo-container {
        gap: 8px;
    }

    .header-center {
        order: 2;
    }

    .header-contact {
        order: 3;
    }

    .site-name {
        font-size: 1.4rem;
    }

    .site-tagline {
        font-size: 0.8rem;
        letter-spacing: 1.5px;
    }

    .logo-container::after {
        width: 100px;
    }

    .logo {
        max-width: 100px;
    }

    .site-subtitle {
        font-size: 0.9rem;
        letter-spacing: 1px;
    }

    .header-contact {
        flex-direction: row;
        gap: 20px;
        align-items: center;
    }

    .contact-link {
        font-size: 0.85rem;
    }
    .section-title {
        font-size: 2rem;
    }

    .intro-section h2 {
        font-size: 1.6rem;
    }

    .seo-content h2 {
        font-size: 1.6rem;
    }

    .seo-content {
        margin-top: 50px;
        padding: 40px 0;
    }

    .seo-grid {
        padding: 0 20px;
    }

    .brands-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-top: 40px;
    }

    .main-content {
        padding: 50px 0;
    }

    .reassurance-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .reassurance-item h3 {
        font-size: 1rem;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-section h3 {
        font-size: 1.2rem;
    }

    .brands-list {
        text-align: left;
        grid-template-columns: 1fr;
    }

    .contact-address {
        justify-content: center;
        text-align: left;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }

    .brands-grid {
        padding: 0;
    }

    .reassurance-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .reassurance-section {
        padding: 40px 0;
    }

    .header-content {
        flex-direction: column;
        gap: 12px;
    }

    .logo-container {
        gap: 6px;
    }

    .site-name {
        font-size: 1.2rem;
    }

    .site-tagline {
        font-size: 0.7rem;
        letter-spacing: 1px;
    }

    .logo-container::after {
        width: 80px;
    }

    .logo {
        max-width: 80px;
    }

    .site-subtitle {
        font-size: 0.8rem;
        letter-spacing: 0.5px;
    }

    .header-contact {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    .contact-link {
        font-size: 0.8rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .header {
        padding: 20px 0;
    }

    .footer {
        padding: 40px 0 15px;
    }

    .contact-link {
        font-size: 0.95rem;
    }
}

/* Animations d'entrée */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.brand-item {
    animation: fadeInUp 0.6s ease forwards;
}

.brand-item:nth-child(1) {
    animation-delay: 0.1s;
}
.brand-item:nth-child(2) {
    animation-delay: 0.2s;
}
.brand-item:nth-child(3) {
    animation-delay: 0.3s;
}
.brand-item:nth-child(4) {
    animation-delay: 0.4s;
}
.brand-item:nth-child(5) {
    animation-delay: 0.5s;
}
.brand-item:nth-child(6) {
    animation-delay: 0.6s;
}

/* États de focus pour l'accessibilité */
.brand-link:focus {
    outline: 3px solid #6b7280;
    outline-offset: 2px;
}

.brand-link:focus .brand-overlay {
    opacity: 1;
}

.brand-link:focus .brand-cta {
    transform: translateY(0);
}
