/*
Theme Name: Flatsome Child
Description: Thème enfant Offroad Camper Parts
Author: Pass'Tech Solutions
Template: flatsome
Version: 3.0
*/

/* --- Offroad Camper Parts --- */
:root {
	--ocp-orange: #d86b05;
	--ocp-orange-vif: #ff7d04;
	--ocp-noir: #111111;
	--ocp-sable: #d1c8b8;
}

/* Titres clairs sur fonds sombres (les titres sont orange par défaut) */
.dark h1, .dark h2, .dark h3, .dark h4,
.banner h1, .banner h2, .banner h3 { color: #fff; }
.section.dark .section-title-main { color: #fff; }

/* Bandeau des trois engagements */
.ocp-usp { margin: 0; letter-spacing: .08em; font-size: .95em; color: var(--ocp-orange-vif); }

/* Cartes marques */
.ocp-card .col-inner { height: 100%; }
.ocp-card h3 { margin-top: .8em; }
.ocp-card .img-inner { border-radius: 6px; overflow: hidden; }
.ocp-card .img-inner img { transition: transform .5s ease; }

/* Colonne de texte centrée (page atelier) */
.ocp-center-col { margin-left: auto; margin-right: auto; }

/* Liens du pied de page */
ul.ocp-footer-links { list-style: none; margin: 0; padding: 0; }
ul.ocp-footer-links li { margin: 0 0 .5em; }
ul.ocp-footer-links a { color: #d1c8b8; transition: color .2s ease, padding-left .2s ease; }
ul.ocp-footer-links a:hover { color: var(--ocp-orange-vif); padding-left: 4px; }

/* Menu principal : soulignement animé au survol */
.header-bottom .nav > li > a { position: relative; }
.header-bottom .nav > li > a::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px;
	background: var(--ocp-orange-vif); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.header-bottom .nav > li:hover > a::after,
.header-bottom .nav > li.active > a::after { transform: scaleX(1); }

/* Fiches produit dans les listes : léger soulèvement au survol */
.product-small.box { background: #fff; border-radius: 6px; overflow: hidden; transition: transform .25s ease, box-shadow .25s ease; }
.product-small.box:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(17,17,17,.18); }
.product-small .box-text { padding: .8em .9em 1em; }

/* Boutons */
.button { transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease; }
.button.primary:hover { background-color: var(--ocp-orange-vif); transform: translateY(-1px); }

/* Champs de formulaire */
.wpcf7 label { display: block; font-weight: 700; }
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 textarea { border-radius: 4px; }

/* Pages légales : largeur de lecture confortable */
.page-wrapper .entry-content > h2 { margin-top: 1.6em; }

/* Respect du réglage « réduire les animations » */
@media (prefers-reduced-motion: reduce) {
	[data-animate] { opacity: 1 !important; transform: none !important; transition: none !important; }
	.product-small.box, .button, .ocp-card .img-inner img { transition: none; }
}