/*
Theme Name: Patrice Monnet
Theme URI: https://www.patricemonnet.fr/
Author: Patrice Monnet
Description: Thème sur mesure du site patricemonnet.fr, construit à partir des maquettes desktop et mobile (accueil, expertise, expérience, formation, contact).
Version: 1.0.1
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: patricemonnet
*/

/* Bases communes aux maquettes */
html { scroll-behavior: smooth; }
body { margin: 0; background: #ffffff; }
* { box-sizing: border-box; }
img { max-width: 100%; }
a { color: #1b6f8f; }
a:hover { color: #155a75; }
[hidden] { display: none !important; }

/* Apparition du bandeau haut au chargement */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
main > section:first-of-type > div > * { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
main > section:first-of-type > div > *:nth-child(2) { animation-delay: .08s; }
main > section:first-of-type > div > *:nth-child(3) { animation-delay: .16s; }
main > section:first-of-type > div > *:nth-child(4) { animation-delay: .24s; }
main > section:first-of-type > div > *:nth-child(5) { animation-delay: .32s; }

/* Survol des cartes, des boutons et des liens */
figure, div[style*="border-top: 2px solid #dde4e7"] { transition: transform .3s ease, box-shadow .3s ease; }
figure:hover, div[style*="border-top: 2px solid #dde4e7"]:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(27, 111, 143, .12); }
a[style*="border: 1px solid #dde4e7"] { transition: background-color .2s ease, border-color .2s ease; }
a[style*="border: 1px solid #dde4e7"]:hover { border-color: #1b6f8f; background: #f5f8f9; }
a[style*="text-decoration: none"] { transition: opacity .2s ease; }
a[style*="text-decoration: none"]:hover { opacity: .75; }

/* Blocs à faire défiler (mobile) */
[data-track]::-webkit-scrollbar { display: none; }

/* Bascule entre la maquette desktop et la maquette mobile */
.pm-mobile { display: none; }
@media (max-width: 767px) {
	.pm-desktop { display: none; }
	.pm-mobile { display: block; }
}

/* Barre d’administration WordPress (visible uniquement une fois connecté) */
.admin-bar .pm-desktop > div:first-child,
.admin-bar .pm-mobile > div:first-child { top: 32px !important; }
@media (max-width: 782px) {
	.admin-bar .pm-mobile > div:first-child { top: 46px !important; }
}
@media (max-width: 600px) {
	.admin-bar .pm-mobile > div:first-child { top: 0 !important; }
}

/* Contenu des autres pages et articles */
.pm-content > * { max-width: 72ch; }
.pm-content img { height: auto; }

@media (prefers-reduced-motion: reduce) {
	* { animation: none !important; transition: none !important; }
	html { scroll-behavior: auto; }
}
