body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f6f6f6;
}

footer {
    text-align: center;
}


.header-bar {
    background-color: #1e88e5;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.header-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
}

.header-logo {
    height: 100px;
    margin-right: 15px;
}

.header-text {
    font-size: 24px;
    font-weight: bold;
    color: white;
}

.header-form {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.header-form label {
	margin-top: 15px;
    color: white;
    font-weight: normal;
}

.header-form input[type="text"] {
    border-radius: 4px;
    border: 1px solid #ccc;
	    width: 300px;
	max-width: 100%;
    padding: 8px;
    margin-top: 15px;
}

.header-form .btn {
	 display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background-color: #1565c0;
    color: white;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
}

.encadre-blanc {
    background-color: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    max-width: 1000px;
    margin: 30px auto;
	justify-content: center;
	text-align: center;
}

main {
    padding: 20px;
}

.hero {
    background: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.explication {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

.formulaire {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

form label {
    display: block;
    margin-top: 10px;
}

form input {
    width: 300px;
	max-width: 100%;
    padding: 8px;
    margin-top: 5px;
}

 form input[type="text"],
        form input[type="password"] {
            width: 300px;
            max-width: 100%;
        }

.btn {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background-color: #1e88e5;
    color: white;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
}
/*****************************************footer du site**********************************************/
.footer-site {
    background-color: #f1f1f1;
    padding: 20px;
    text-align: center;
    font-size: 14px;
    border-top: 1px solid #ccc;
}

.footer-site nav ul {
    list-style: none;
    padding: 0;
    margin: 10px 0;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.footer-site nav ul li a {
    text-decoration: none;
    color: #333;
}

.footer-site .credits {
    margin-top: 10px;
    color: #777;
}
.modal-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    z-index: 1000;
}

.modal {
    position: fixed;
    max-width: 600px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 30px;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
    display: none;
    z-index: 1001;
    border-radius: 8px;
}

.modal h2 {
    margin-top: 0;
}

/*****************************************liens du site**********************************************/
a {
    color: #0074cc;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #004a99;
}

.liste-marques {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
    justify-content: center;
}

.marque-lien {
    padding: 8px 14px;
    background-color: #f0f0f0;
    border-radius: 20px;
    font-size: 0.95em;
    font-weight: 500;
    border: 1px solid #ccc;
    color: #333;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.marque-lien:hover {
    background-color: #0074cc;
    color: #fff;
    border-color: #0074cc;
}

/*****************************************slider de l'index**********************************************/
.slider {
    background: #f7f7f7;
    margin-bottom: 20px;
    position: relative;
}

.swiper {
    width: 100%;
    padding: 20px 0;
    overflow: visible;
}

.swiper-wrapper {
    display: flex;
    align-items: stretch;
}

.swiper-slide {
    padding: 10px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: stretch;
    height: auto !important;
    overflow: visible !important;
    position: relative;
    z-index: 1;
}

.slide-carte {
    width: 100%;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease;
    overflow: hidden;
    align-items: center;
    text-align: center;
    height: 100%;
}

.slide-carte:hover {
    transform: scale(1.05);
    z-index: 10;
}

.slide-header {
    padding: 10px;
    text-align: center;
    background: #fff;
}

.slide-logo {
    height: 30px;
    max-width: 100%;
    object-fit: contain;
    background: #fff;
}

.logo-manquant {
    font-size: 14px;
    font-weight: bold;
    color: #666;
    background: #fff;
}

.slide-image {
    height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fff;
    width: 100%;
    padding: 5px;
}

.slide-photo {
    max-height: 120px;
    max-width: 100%;
    object-fit: contain;
    background: #fff;
}


.slide-infos {
    padding: 10px 12px;
    font-size: 14px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.slide-infos h2 {
    font-size: 1em;
    margin: 5px 0;
    line-height: 1.2em;
}

.slide-infos p {
    margin: 0;
    font-size: 0.9em;
    color: #333;
}

/* flèches de navigation */
.swiper-button-next,
.swiper-button-prev {
    color: #333;
    top: 45%;
}

/*****************************************résultat de recherche**********************************************/
.liste-resultats {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
    justify-content: center;
}

.carte-mobile {
    width: 230px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s;
    overflow: hidden;
    align-items: center;
    text-align: center;
}

.carte-mobile:hover {
    transform: scale(1.03);
}

.vignette-haut {
    padding: 10px;
background: #fff;
    text-align: center;
}

.logo-marque {
    height: 30px;
    max-width: 100%;
    object-fit: contain;
	background: #fff;
}

.logo-manquant {
    font-size: 14px;
    font-weight: bold;
    color: #666;
	background: #fff;
}

.vignette-image {
    height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fafafa;
    width: 100%;
	background: #fff;
}

.photo-mobile {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
	background: #fff;
}

.infos {
    padding: 10px 12px;
    font-size: 14px;
}

/*****************************************page d'affichage du mobile (responsive corrigé)**********************************************/
.fiche-mobile {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
}

.fiche-mobile .image {
    flex: 1;
    min-width: 260px;
    max-width: 300px;
    text-align: center;
}

.fiche-mobile .image .logo {
    max-width: 100px;
    display: block;
    margin: 0 auto 12px;
}

.fiche-mobile .image .photo {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin: 0 auto;
    display: block;
}


.fiche-mobile .details {
    flex: 1;
    min-width: 260px;
    max-width: 500px;
    font-size: 1em;
    line-height: 1.5em;
    color: #333;
    padding: 0 10px;
}

.fiche-mobile .details p {
    margin: 6px 0;
}

.fiche-mobile .details p strong {
    color: #111;
}

h1 {
    font-size: 1.6em;
    text-align: center;
    margin-bottom: 20px;
}

.retour-resultats {
    display: inline-block;
    margin-top: 30px;
    font-size: 1em;
    text-decoration: none;
    color: #0077cc;
    transition: color 0.3s;
}

.retour-resultats:hover {
    text-decoration: underline;
    color: #005fa3;
}

@media (max-width: 768px) {
    .fiche-mobile {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 0 10px;
    }

    .fiche-mobile .image,
    .fiche-mobile .details {
        width: 100%;
        max-width: 320px;
    }

    .fiche-mobile .image .photo,
    .fiche-mobile .image .photo-absente {
        max-width: 90%;
    }
}

.encadre-info {
    background-color: #eef5ff;
    padding: 15px 20px;
    margin-top: 15px;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.encadre-info a {
    color: #2a75f3;
    text-decoration: underline;
    font-weight: bold;
}
/*****************************************page d'estimation du mobile (responsive corrigé)**********************************************/
.form-estimation {
    max-width: 800px;
    margin: auto;
    padding: 20px;
}

.alerte-info-payante {
    background-color: #e8f3ff;
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    font-size: 0.95em;
}

.form-estimation p {
    font-weight: bold;
    margin-top: 20px;
}

.form-estimation label {
    display: block;
    margin-left: 15px;
    font-weight: normal;
    margin-bottom: 5px;
}

.form-estimation button {
    background-color: #3399ff;
    border: none;
    padding: 10px 20px;
    color: white;
    font-weight: bold;
    font-size: 1em;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.3s;
}

.form-estimation button:hover {
    background-color: #1e7fd6;
}

.radio-group {
    display: flex;
    gap: 20px;
    margin: 10px 0 20px;
    align-items: center;
    flex-wrap: wrap;
}

.radio-group label {
    background: #f2f2f2;
    padding: 10px 15px;
    border-radius: 6px;
    border: 1px solid #ccc;
    cursor: pointer;
    transition: background 0.2s;
}

.radio-group input[type="radio"] {
    margin-right: 8px;
}

.radio-group label:hover {
    background: #eaeaea;
}

#message-non {
    background: #ffecec;
    color: #c40000;
    padding: 10px;
    border: 1px solid #c40000;
    border-radius: 5px;
    margin-bottom: 15px;
    display: none;
}


/*****************************************administration**********************************************/
       .admin-nav {
            margin: 20px auto;
            display: flex;
            justify-content: center;
        }

        .admin-nav ul {
            list-style-type: none;
            padding: 0;
            margin: 0;
            display: flex;
            flex-direction: row;
            gap: 10px;
        }

        .admin-nav ul li {
            flex: none;
        }

        .admin-nav ul li a {
            display: block;
            background-color: #007BFF;
            color: white;
            text-align: center;
            padding: 12px 20px;
            border-radius: 8px;
            text-decoration: none;
            font-weight: bold;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
            transition: background-color 0.2s;
        }

        .admin-nav ul li a:hover {
            background-color: #0056b3;
        }
/*****************************************administration edition des mobiles**********************************************/
.edition-mobiles-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    table-layout: fixed;
}

.edition-mobiles-table th,
.edition-mobiles-table td {
    padding: 4px 6px;
    text-align: left;
    vertical-align: middle;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.edition-mobiles-table input[type="text"],
.edition-mobiles-table input[type="number"] {
    width: 100%;
    box-sizing: border-box;
    padding: 4px;
    font-size: 0.9em;
}

.edition-mobiles-table tr:nth-child(even) {
    background-color: #f2f2f2;
}

.edition-mobiles-rouge {
    color: red;
}

.edition-mobiles-valider {
    padding: 4px 10px;
    cursor: pointer;
    font-size: 0.85em;
}

.message-flottant {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #f9f9a9;
    border: 1px solid #ccc;
    padding: 10px 15px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    display: none;
}
/*****************************************formulaire de contact**********************************************/
.contact-form {
    background: #fff;
    border-radius: 10px;
    padding: 30px;
    max-width: 800px;
    margin: 30px auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.contact-form h1 {
    margin-bottom: 20px;
    text-align: center;
}

.contact-form label {
    display: block;
    margin-top: 15px;
    font-weight: bold;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.contact-form textarea {
    height: 150px;
    resize: vertical;
}

.contact-form button {
    margin-top: 20px;
    padding: 12px 25px;
    background-color: #007bff;
    border: none;
    color: white;
    border-radius: 5px;
    cursor: pointer;
}

.contact-form button:hover {
    background-color: #0056b3;
}

.contact-form .success {
    color: green;
    text-align: center;
    font-weight: bold;
}

.contact-form .error {
    color: red;
    text-align: center;
    font-weight: bold;
}
