/* Personnalisation Loue ta pelle */
@media (min-width: 992px) and (max-width: 1365px) {
	.page_header a.logo img { height: 42px; width: auto; }
	.page_header a.logo img + .logo_text .highlight { font-size: 25px; }
	.page_header a.logo img + .logo_text .highlight + span { font-size: 9px; letter-spacing: 0.3em; }
}
/* Petits écrans : laisser de la place à l'icône du menu */
@media (max-width: 480px) {
	.page_header a.logo img { height: 42px; width: auto; }
}
@media (max-width: 420px) {
	.page_header a.logo img { height: 36px; }
	.page_header a.logo img + .logo_text .highlight { font-size: 22px; }
	.page_header a.logo img + .logo_text .highlight + span { font-size: 8px; letter-spacing: 0.22em; }
}

/* Carte de France - zone desservie */
.carte-zone { max-width: 520px; margin: 0 auto 20px; }
.carte-zone img { display: block; width: 100%; height: auto; }
.carte-zone-liste { margin: 6px 0 0; font-size: 14px; }
.carte-zone-credit { margin: 8px 0 0; font-size: 11px; color: #aaa; }
.carte-zone-credit a { color: inherit; text-decoration: underline; }

/* Grille de cartes alignées par rangée (pages Services et Accueil) */
.row.grille-alignee { display: flex; flex-wrap: wrap; }
.row.grille-alignee:before, .row.grille-alignee:after { display: none; }
.row.grille-alignee > [class*="col-"] { float: none; }

/* Bouton retour en haut : icône dépanneuse */
#toTop:after { content: '\e907'; font-family: 'towyicon'; font-size: 30px; }

/* Lien d'évitement (accessibilité) : visible uniquement au clavier */
.lien-evitement { position: absolute; left: -9999px; top: 0; z-index: 10000; padding: 12px 20px; background: #ffc326; color: #232323; font-weight: 700; }
.lien-evitement:focus { left: 10px; top: 10px; color: #232323; }

/* Champ piège anti-spam du formulaire de contact */
.champ-piege { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Barre latérale : bloc « Nous contacter » */
.widget-contact-rapide .media-body a { font-weight: 700; }

/* Pages légales et plan du site */
.texte-legal h2 { font-size: 22px; margin: 30px 0 12px; text-transform: none; }
.texte-legal h2:first-child { margin-top: 0; }
.texte-legal .a-completer { padding: 10px 14px; background: #fff8e1; border-left: 4px solid #ffc326; color: #232323; }
.plan-du-site li { padding: 4px 0; }

/* Bouton flottant mobile (téléphone pendant les horaires, e-mail sinon) */
.cta-flottant { display: none; }
@media (max-width: 767px) {
	.cta-flottant {
		display: flex; align-items: center; justify-content: center;
		position: fixed; left: 0; top: 50%; transform: translateY(-50%); z-index: 9990;
		width: 52px; height: 56px; border-radius: 0 28px 28px 0;
		background: #ffc326; color: #232323; box-shadow: 0 2px 10px rgba(0, 0, 0, .35);
	}
	.cta-flottant:hover, .cta-flottant:focus { color: #232323; background: #ffd25a; }
	.cta-flottant:focus-visible { outline: 3px solid #232323; outline-offset: 2px; }
}

/* Plan du site */
.plan-du-site-colonnes h2 { font-size: 22px; margin-bottom: 15px; }
.plan-du-site-colonnes ul { margin-bottom: 30px; }

/* Pied de page pleine largeur */
.pied-pleine-largeur { padding-left: 20px; padding-right: 20px; }
@media (min-width: 992px) { .pied-pleine-largeur { padding-left: 50px; padding-right: 50px; } }
@media (min-width: 1600px) { .pied-pleine-largeur { padding-left: 90px; padding-right: 90px; } }
.liens-pied-aleatoires li { margin-bottom: 4px; }
/* Pied de page compact : il s'arrête sous la dernière ligne de « Nous contacter » */
@media (min-width: 992px) {
	.page_footer.section_padding_bottom_50 > [class*="container"] { padding-bottom: 0; }
	.page_footer.section_padding_bottom_50 { padding-bottom: 35px; }
	.page_footer.columns_margin_bottom_40 [class*="col-"] { margin-bottom: 0; }
	.page_footer .liens-pied-aleatoires { font-size: 14px; line-height: 20px; }
	.page_footer .liens-pied-aleatoires li { padding-top: 2px; padding-bottom: 2px; line-height: 24px; margin-bottom: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
	.page_footer .liens-pied-aleatoires li a { display: inline; padding-top: 2px; padding-bottom: 2px; }
	.page_footer .row > .col-md-3:nth-child(2) .greylinks li a { padding-top: 5px; padding-bottom: 5px; }
	.page_footer .row > .col-md-3:first-child p { font-size: 14px; line-height: 22px; margin-bottom: 10px; }
	.page_footer .widget, .page_footer .widget .media:last-child { margin-bottom: 0; }
}

/* Planning de l'accueil : 30 jours glissants */
.ag-jour .ag-mois-court { display: block; font-size: 10px; line-height: 1; text-transform: uppercase; opacity: .8; }

/* Planning : actions de réservation */
.ag-actions .theme_button { margin: 0 8px 8px 0; }

/* ===== Survols lisibles (contraste suffisant au passage de la souris) ===== */
/* Liens sur fond clair : jaune du thème (#ffc326) illisible sur blanc -> doré foncé */
.ls a:not(.theme_button):not(.ag-jour):hover,
.ls a:not(.theme_button):not(.ag-jour):focus { color: #7a5600; }
/* Sections sombres incluses dans une section claire : jaune conservé */
.ls .ds a:not(.theme_button):hover, .ls .ds a:not(.theme_button):focus { color: #ffc326; }
/* Fil d'Ariane et blocs à fond jaune : texte foncé au survol */
.cs a:not(.theme_button):hover, .cs a:not(.theme_button):focus,
.page_breadcrumbs a:hover, .page_breadcrumbs a:focus { color: #232323; text-decoration: underline; }
/* Questions (accordéons) : texte foncé quand le fond devient jaune */
.panel-group .panel-heading .panel-title > a:not(.collapsed),
.panel-group .panel-heading .panel-title > a:hover,
.panel-group .panel-heading .panel-title > a:focus { color: #232323; }
/* Bouton jaune contouré sur fond clair (« Nous écrire », « Retourner à l'accueil ») */
.ls .theme_button.color1 { color: #232323; }
.ls .theme_button.color1:hover, .ls .theme_button.color1:focus { background-color: #ffc326; border-color: #ffc326; color: #232323; }
/* Boutons du détail du planning : texte blanc sur fond foncé au survol */
.ag-actions .theme_button:not(.color1):hover, .ag-actions .theme_button:not(.color1):focus { color: #fff; }

/* Page Nos dépanneuses */
.fiche-depanneuse { height: 100%; margin-bottom: 30px; }
.fiche-depanneuse .item-media img { width: 100%; height: 280px; object-fit: cover; }
.fiche-depanneuse h3 { margin-top: 0; }
.fiche-depanneuse .ag-badge { font-size: 12px; }
.caracteristiques-depanneuse th { width: 50%; font-weight: 600; }
.fiche-actions .theme_button { margin: 0 6px 10px; }

/* Menu à 6 entrées : tout tient sur une ligne entre 992 et 1199 px */
@media (min-width: 992px) and (max-width: 1199px) {
	.page_header .sf-menu > li > a { font-size: 15px; }
	.page_header a.logo img { height: 36px; }
	.page_header a.logo img + .logo_text .highlight { font-size: 21px; }
	.page_header a.logo img + .logo_text .highlight + span { font-size: 8px; letter-spacing: 0.2em; }
}

/* Page Contact : carte intégrée sans clé */
.carte-contact { position: relative; line-height: 0; }
.carte-contact iframe { display: block; width: 100%; height: 450px; border: 0; }
.carte-contact-lien { position: absolute; right: 12px; top: 12px; margin: 0; line-height: 1.4; }
.carte-contact-lien a { display: inline-block; padding: 6px 12px; background: #232323; color: #fff; font-size: 13px; border-radius: 3px; }
.ls .carte-contact-lien a:not(.theme_button):hover, .ls .carte-contact-lien a:not(.theme_button):focus { color: #ffc326; }
@media (max-width: 767px) { .carte-contact iframe { height: 300px; } }

/* Page Livraison en France */
.image-livraison { width: 100%; height: auto; border-radius: 4px; }
.etape-livraison { height: 100%; padding: 30px 20px; background: #fff; }
.etape-numero { display: inline-block; width: 52px; height: 52px; line-height: 52px; border-radius: 50%; background: #ffc326; color: #232323; font-size: 24px; font-weight: 700; margin-bottom: 15px; }

/* Tuile « Rendez votre entreprise visible ! » (bloc À découvrir) */
.tuile-agence { min-height: 100%; display: flex; align-items: center; justify-content: center; }
.page-nav > [class*="col-"] { margin-bottom: 10px; }
@media (min-width: 992px) {
	.row.page-nav { display: flex; }
	.row.page-nav:before, .row.page-nav:after { display: none; }
	.row.page-nav > [class*="col-"] { float: none; display: flex; }
	.row.page-nav > [class*="col-"] > div { flex: 1; }
}
.tarif-fiche { display: inline-block; margin-left: 8px; font-weight: 700; color: #232323; }

/* Formulaire de contact : succès en vert, erreur en rouge */
.contact-form .contact-form-respond.contact-form-ok { color: #1e7e34; }
.contact-form .contact-form-respond.contact-form-ko, .contact-form .contact-form-respond .form-errors { color: #c9302c; }
.carte-contact { margin-top: 0; }

/* Page Nos dépanneuses : galerie photos */
.galerie-depanneuses img { width: 100%; height: 180px; object-fit: cover; border-radius: 4px; margin-bottom: 20px; }

/* Carte de l'Europe : légende */
.carte-legende { display: inline-block; width: 14px; height: 14px; border-radius: 2px; vertical-align: -2px; margin-right: 6px; }
.carte-legende.france { background: #ffc326; }
.carte-legende.peninsule { background: repeating-linear-gradient(45deg, #ffc326 0 3px, #ffe7a3 3px 8px); }
.carte-zone-liste span.ligne { display: block; margin-top: 4px; }

/* Logo « LOUE TA DÉPANNEUSE » (texte plus long) : menu complet sur une ligne */
@media (min-width: 1200px) and (max-width: 1365px) {
	.page_header .sf-menu > li > a { font-size: 16px; }
	.page_header a.logo img + .logo_text .highlight { font-size: 22px; }
}
@media (min-width: 1366px) and (max-width: 1919px) {
	.page_header .sf-menu > li > a { font-size: 17px; }
	.page_header a.logo img + .logo_text .highlight { font-size: 28px; }
}
