/* ============================================
   STYLES PERSONNALISÉS - Motosport Genève
   Site web Honda officiel
   ============================================ */

/* === VARIABLES CSS === */
:root {
    --red: #c81023;
    --dark: #212529;
    max-width: 1140px;
    margin: auto;
}

/* ============================================
   BOOTSTRAP 5 MIGRATION
   ============================================ */

/* === NAVBAR === */
.navbar.navbar-light.navbar-expand-lg.clean-navbar {
    height: 80px;
    background-color: #fff !important;
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1030;
}

.navbar.navbar-light.navbar-expand-lg.clean-navbar .container-fluid {
    max-width: 1140px;
    margin: 0 auto;
}

.clean-navbar .navbar-nav .nav-item {
    padding-right: 1.1rem;
}

.navbar-light .navbar-toggler {
    color: rgba(0, 0, 0, 0.5);
    border-color: rgba(0, 0, 0, 0.1);
    background-color: transparent;
}

.navbar-light .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 0.5%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.clean-navbar .navbar-nav .nav-link {
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: rgba(0, 0, 0, 0.7);
}

.clean-navbar .navbar-nav .nav-link:hover,
.clean-navbar .navbar-nav .nav-link:focus {
    color: rgba(0, 0, 0, 0.7);
    font-weight: 700;
}

.navbar-collapse {
    background-color: #fff;
}

/* Menu mobile aligné à droite */
@media (max-width: 991.98px) {
    .navbar-nav {
        text-align: right;
    }
    
    .navbar-nav .nav-item {
        text-align: right;
    }
}

/* === FORMULAIRES === */
.form-group {
    margin-bottom: 1rem;
}

.form-control {
    display: block;
    width: 100%;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.form-control:focus {
    color: #495057;
    background-color: #fff;
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, .25);
}

.custom-select, .form-select {
    display: block;
    width: 100%;
    padding: 0.375rem 1.75rem 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='4' height='5' viewBox='0 0 4 5'%3e%3cpath fill='%23343a40' d='M2 0L0 2h4zm0 5L0 3h4z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 8px 10px;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    appearance: none;
}

.form-text {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: #6c757d;
}

label {
    display: inline-block;
    margin-bottom: 0.5rem;
}

/* === BOUTONS === */
.btn {
    display: inline-block;
    font-weight: 400;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    border-radius: 0.25rem;
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
    border: 1px solid transparent;
}

.btn-primary {
    color: #fff !important;
    background-color: var(--red) !important;
    border-color: #c81923 !important;
}

.btn-primary:hover {
    color: #fff !important;
    background-color: #294294 !important;
    border-color: #294294 !important;
}

.btn-block {
    display: block;
    width: 100%;
}

/* ============================================
   LAYOUT GÉNÉRAL
   ============================================ */

body {
    padding-top: 80px;
}

main.page {
    padding-top: 0;
}

.row {
    margin-right: 0;
    margin-left: 0;
}

/* === TITRES === */
.h1, h1 {
    color: var(--red);
    padding-top: 60px;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
    line-height: 1.2;
}

h2 {
    padding-top: 40px;
    color: var(--red);
    margin-bottom: 30px;
    font-size: 2rem;
    text-align: center;
}

.h3, h3 {
    font-size: 1.75rem;
    color: var(--red);
}

h5.text-primary {
    color: var(--red) !important;
}

/* === BLOCK HEADING === */
.clean-block .block-heading {
    padding-top: 0;
    margin-bottom: 40px;
    text-align: center;
}

.clean-block .block-heading p {
    max-width: 600px;
    margin: 0 auto;
}

.clean-block .block-heading .first {
    padding-top: 60px;
}

/* === SLOGAN === */
.slogan {
    text-transform: uppercase;
    letter-spacing: 5px;
    padding: auto;
    font-size: 1.4em;
    font-weight: 100;
    text-align: center;
}

/* === IMAGES === */
.card-img-top {
    object-fit: contain !important;
    width: 100%;
    height: auto;
    max-height: 250px;
}

.d-md-flex.justify-content-md-center {
    display: flex;
    justify-content: center;
}

/* === FOOTER === */
.page-footer {
    background-color: rgb(200, 24, 36);
    color: #fff;
    font-weight: 400;
    padding-top: 25px;
    margin-top: 100px;
}

.page-footer .container {
    padding-right: 15px;
    padding-left: 15px;
    padding-bottom: 30px;
}

.page-footer .row {
    --bs-gutter-x: 1.5rem;
    margin-right: 0;
    margin-left: 0;
}

.page-footer ul {
    list-style: none;
    padding-left: 0;
    line-height: 1.5;
}

.page-footer h4 {
    font-size: 1.4em;
    font-weight: 400;
    color: #fff;
    margin-bottom: 25px;
}

.page-footer p {
    margin: 0;
    padding: 2px 0;
    color: #fff;
}

.page-footer a {
    color: #fff;
    text-decoration: none;
}

.page-footer a:hover {
    color: #fff;
    text-decoration: underline;
}

.page-footer strong {
    color: #fff;
    font-weight: 700;
}

.page-footer i {
    margin-right: 7px;
}

.footer-copyright {
    padding: 13px 0;
    text-align: center;
    background-color: white;
}

.footer-copyright p {
    margin-bottom: 0;
    font-size: 15px;
    color: var(--dark);
}

/* ============================================
   COMPONENTS
   ============================================ */

/* === CARTES === */
.card {
    border: 1px solid rgba(0, 0, 0, 0.125);
    border-radius: 0.25rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
    transition: box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.card-title {
    font-size: 1.25rem;
    color: var(--red);
    font-weight: 500;
}

.card-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}

.card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
}

.card-body .mt-auto {
    margin-top: auto;
}

.card-body ul {
    padding-left: 1.2rem;
}

.card-body ul li {
    margin-bottom: 0.5rem;
}

.card-body h4.h5 {
    font-size: 1rem;
    margin-bottom: 1rem;
}

.card-paragraph {
    margin-bottom: 0;
    font-size: 0.95rem;
}

.text-danger {
    color: var(--red) !important;
}

/* === BADGES TECHNIQUES === */
.tech-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.badge-tech {
    display: inline-block;
    background-color: var(--red) !important;
    color: #fff !important;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
    text-decoration: none !important;
}

.badge-tech.badge-new {
    font-weight: 700;
}

.tech-badges .badge-tech,
.row.modele .tech-badges .badge-tech,
.row.modele a .tech-badges .badge-tech {
    color: #fff !important;
    background-color: var(--red) !important;
}

/* ============================================
   PAGES SPÉCIFIQUES
   ============================================ */

/* === PAGE GAMME === */
.row.modele {
    margin-bottom: 2rem;
}

.row.modele .card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.row.modele .card:hover {
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.row.modele .card-title {
    margin-bottom: 0.75rem;
}

.row.modele .card-body {
    padding: 1rem;
}

.row.modele a.text-decoration-none:hover .card-title {
    color: #294294;
}

/* Filtres de gamme */
#gammeFilters .form-label {
    margin-bottom: 0.5rem;
    font-weight: 500;
}

#gammeFilters.align-items-center > .col-md-3 {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Sliders Honda - couleur rouge */
.honda-range::-webkit-slider-thumb {
    background-color: var(--red);
}

.honda-range::-webkit-slider-thumb:hover {
    background-color: #a30d1f;
}

.honda-range::-moz-range-thumb {
    background-color: var(--red);
    border: none;
}

.honda-range::-moz-range-thumb:hover {
    background-color: #a30d1f;
}

.honda-range::-webkit-slider-runnable-track {
    background-color: #ddd;
}

.honda-range::-moz-range-track {
    background-color: #ddd;
}

/* === PAGE OFFRES HONDA === */
.offer-image-link {
    display: block;
    height: 190px;
    overflow: hidden;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.offer-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

/* ============================================
   STYLES LEGACY (depuis ancien styles.min.css)
   À conserver pour compatibilité
   ============================================ */

/* Logo responsive */
@media (max-width: 512px) {
    #logo {
        width: 210px;
    }
}

/* Texte rouge gras */
b {
    font-weight: 500;
    color: rgb(200, 24, 36);
}

/* Suppression des marges sur les iframes */
iframe {
    border: 0;
}

/* Carousel controls */
.carousel-control-next:focus,
.carousel-control-next:hover,
.carousel-control-prev:focus,
.carousel-control-prev:hover,
.red-honda {
    color: var(--red);
}

/* SVG Icons (footer) */
.svg-icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    fill: currentColor;
}

/* === BOUTON WHATSAPP FLOTTANT === */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    background-color: #20ba5a;
    transform: scale(1.1);
    color: #FFF;
    box-shadow: 2px 2px 15px rgba(0, 0, 0, 0.4);
}

.whatsapp-float svg {
    width: 35px;
    height: 35px;
    fill: white;
}

@media screen and (max-width: 767px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 24px;
    }
    
    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }
}

.text-info {
    color: var(--red) !important;
}

/* ============================================
   FACEBOOK POSTS STYLING
   ============================================ */

.fb-post.card {
    max-width: 700px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fb-post.card:hover {
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1) !important;
}

.fb-post .card-text {
    font-size: 1rem;
    line-height: 1.6;
    color: #212529;
}

.fb-post .card-text a {
    color: #1877F2;
    text-decoration: none;
    font-weight: 500;
}

.fb-post .card-text a:hover {
    text-decoration: underline;
}

/* Facebook posts grid layout */
.row .col-md-6 .card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.row .col-md-6 .card:hover {
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1) !important;
}

.row .col-md-6 .card .card-img-top {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.row .col-md-6 .card .card-body {
    padding: 1.5rem;
}

.row .col-md-6 .card .card-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #212529;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.row .col-md-6 .card .card-text a {
    color: #1877F2;
    text-decoration: none;
    font-weight: 500;
}

.row .col-md-6 .card .card-text a:hover {
    text-decoration: underline;
}

/* ============================================
   MODEL PAGE - PERMIS & GRAD BADGES
   ============================================ */

/* Triangle badge for license (permis) - desktop only */
.permis {
    top: 0;
    left: 0;
    position: absolute;
    text-align: center;
    display: inline-block;
    height: 0;
    width: 0;
    border-top: 87px solid var(--red);
    border-right: 50px solid transparent;
    border-left: 50px solid transparent;
    margin-left: -50px;
}

.permis p {
    color: #fff;
    margin-top: -80px;
    width: 100px;
    margin-left: -50px;
    font-size: 1rem;
}

/* Beveled block for price/power/torque (grad) - desktop only */
.grad {
    background: var(--red);
    background: linear-gradient(160deg, #fff 0, #fff 15px, var(--red) 15px, var(--red) 100%);
    width: auto;
    padding: 15px 5px 5px;
    color: #fff;
    top: 0;
    position: absolute;
    right: 0;
    text-align: right;
    margin-right: -50px;
}

/* Mobile version - brief-small inline display */
.brief-small {
    background-color: var(--red);
    color: #fff;
    font-weight: 700;
    font-size: smaller;
    padding: 10px;
    margin: 25px 0;
    text-align: center;
}

.brief-small span {
    display: inline-block;
    margin: 0 5px;
}

.prix p,
.price {
    font-size: 1rem;
}

.info {
    font-size: 10px;
}

.info hr {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    border-top: 1px solid #fff;
}

.info p {
    margin: 0;
}

/* Ensure profile-wrapper has relative positioning for absolute children */
.profile-wrapper {
    position: relative !important;
    display: block;
}

.profile-wrapper img#profil {
    display: block;
    width: 100%;
    height: auto;
}


