/* Général */
body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background: #121212;
    color: #ffffff;
    scroll-behavior: smooth;
    box-sizing: border-box;
    font-size: 1rem;
    line-height: 1.6;
}

.concept-box {
    color: white !important;
    background: linear-gradient(135deg, #1a2a44 0%, #2e4372 100%);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.8) !important;
    font-size: 1.1rem;
    font-weight: 400;
}

.snf-container *:hover {
    color: #d4af37;
    transition: color 0.3s ease;
    cursor: pointer;
}

/* Conteneur principal */
.snf-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    background: linear-gradient(135deg, #1a2a44 0%, #2e4372 100%);
    border-radius: 1rem;
}

/* Ligne en flex, enfants étirés en hauteur */
@media (min-width: 992px) {
    #galerie-concept .row {
        display: flex;
        align-items: stretch;
    }
    #galerie,
    #concept {
        display: flex;
        flex-direction: column;
    }
    #galerie>div.border {
        flex: 1 1 auto;
        display: flex;
        flex-direction: column;
    }
    #concept>.concept-border {
        padding: 2rem;
        flex-grow: 0;
        height: 480px;
    }
}

/* Hauteur fixe pour carousel */
#galerie .carousel-inner {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 1rem;
}

#galerie .carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#galerie .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #1a2a44;
}

.carousel-inner img {
    height: 400px;
    object-fit: contain;
    border-radius: 12px;
}

.carousel-control-prev,
.carousel-control-next {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    top: 50%;
    transform: translateY(-50%);
    transition: background 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: rgba(0, 0, 0, 0.8);
}

.carousel-caption {
    background: rgba(0, 0, 0, 0.6);
    border-radius: 0.5rem;
    padding: 0.5rem;
}

/* Espacements */
.snf-my-5 { margin: 2rem 0; }
.snf-mb-3 { margin-bottom: 1.2rem; }
.snf-mb-4 { margin-bottom: 2rem; }
.snf-mb-5 { margin-bottom: 2rem; }
.snf-mt-2 { margin-top: 0.7rem; }
.snf-mt-3 { margin-top: 1.2rem; }

/* Titres */
.section-title {
    font-family: 'Inter', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    border-bottom: 2px solid #d4af37;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    letter-spacing: 0.02em;
}

p, li {
    font-size: 1.1rem;
    line-height: 1.8;
}

.snf-text-center { text-align: center; }
.snf-text-dark { color: #ffffff; }
.snf-fw-bold { font-weight: bold; }
.snf-fs-5 { font-size: 1.15rem; }
.snf-text-muted { color: #d1d1d1; }

/* Grille responsive */
.snf-row {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.snf-col-6 {
    flex: 1 1 50%;
    min-width: 321px;
    box-sizing: border-box;
}

.snf-col-3 {
    flex: 1 1 22%;
    min-width: 220px;
    max-width: 260px;
    margin-bottom: 1.5rem;
    box-sizing: border-box;
}

.snf-g-4 { gap: 2rem; }
.snf-justify-center { justify-content: center; }
.snf-product {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Box / Card */
.snf-box, .snf-card {
    border-radius: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.8) !important;
    padding: 2rem;
    background: linear-gradient(135deg, #1a2a44 0%, #2e4372 100%);
}

.snf-card { margin-bottom: 1.5rem; }

/* Images */
.snf-img-thumb {
    width: 100%;
    max-width: 180px;
    border-radius: 1rem;
    background: linear-gradient(135deg, #1a2a44 0%, #2e4372 100%);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.8) !important;
    transition: transform 0.2s;
}

.snf-img-thumb:hover {
    transform: scale(1.05);
}

/* Boutons */
.snf-btn {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 1.1rem;
    padding: 0.8rem 2rem;
    border-radius: 2rem;
    border: none;
    cursor: pointer;
    background: linear-gradient(135deg, #1a2a44 0%, #2e4372 100%);
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.snf-btn-primary {
    background: #d4af37;
    color: #121212;
}

.snf-btn-primary:hover {
    background: #c19b2e;
    transform: scale(1.05);
}

.snf-btn-outline {
    background: transparent;
    color: #d4af37;
    border: 2px solid #d4af37;
}

.snf-btn-outline:hover {
    background: #d4af37;
    color: #121212;
    transform: scale(1.05);
}

.snf-me-2 { margin-right: 0.7rem; }

/* Accessibilité */
.snf-btn:focus {
    outline: 2px solid #d4af37;
    outline-offset: 2px;
}

/* Notes */
.snf-note {
    display: block;
    margin-top: 1rem;
    color: #ffffff;
    text-align: center;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
}

/* Formulaires */
.snf-form {
    max-width: 500px;
    margin: 0 auto;
    font-family: 'Inter', sans-serif;
}

.snf-form-group {
    margin-bottom: 1.2rem;
    display: flex;
    flex-direction: column;
}

.snf-form-label {
    margin-bottom: 0.4rem;
    font-weight: 500;
    color: #ffffff;
}

.snf-input {
    padding: 0.7rem 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.8) !important;
    border-radius: 0.7rem;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    background: #fafafa;
    transition: border 0.2s;
}

.snf-input:focus {
    border-color: #d4af37;
    outline: none;
    background: #fff;
}

.snf-form-message {
    margin-top: 1rem;
    text-align: center;
    font-size: 1rem;
    color: #B22222;
    font-family: 'Inter', sans-serif;
}

#intro {
    background: linear-gradient(135deg, #1a2a44 0%, #2e4372 100%);
    color: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.8) !important;
}

#intro .section-title {
    font-size: 1.9rem !important;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

#intro p.fs-5 {
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 1.8;
    max-width: 1200px;
    margin: 0 auto;
}

/* Supprime les styles de .img-thumbnail */
.img-thumbnail {
    border: none;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
}

/* Uniformise les images des produits */
#produits img {
    width: 100%;
    height: 250px;
    object-fit: contain;
    border-radius: 12px;
}

/* Animation pour changement de langue */
[data-i18n], [data-i18n-placeholder], [data-i18n-title] {
    transition: opacity 0.3s ease;
}

[data-i18n].fade-out, [data-i18n-placeholder].fade-out, [data-i18n-title].fade-out {
    opacity: 0;
}

/* Responsive pour petits écrans */
@media (max-width: 576px) {
    .snf-container {
        width: 95%;
        padding: 1rem;
    }
    .section-title {
        font-size: 1.8rem;
    }
    p, li {
        font-size: 0.95rem;
    }
    #galerie .carousel-inner {
        height: 250px;
    }
    #produits img {
        height: 150px;
    }
}

/* Responsive mobile */
@media (max-width: 900px) {
    .snf-container {
        width: 98%;
    }
    .snf-row {
        flex-direction: column;
        gap: 1rem;
    }
    .snf-col-6 {
        flex: 1 1 100%;
        min-width: 0;
    }
    .snf-col-3 {
        flex: 1 1 100%;
        max-width: 350px;
    }
    .snf-box {
        padding: 1rem;
    }
}

/* Alignement vertical Galerie / Concept sur desktop */
@media (min-width: 992px) {
    #galerie-concept .row {
        align-items: stretch;
    }
    #galerie,
    #concept {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    #galerie .carousel-inner {
        flex-grow: 1;
    }
    #concept .concept-border {
        height: 100%;
    }
}
