/* Georges Blanc — direction de travaux
   Base commune : polices, réglages, en-tête, menu mobile, pied de page, boutons de contact,
   préchargement, animations d'apparition. Chaque page ajoute sa feuille dans assets/css/pages/. */

@font-face {
	font-family: "League Gothic";
	src: url("../fonts/LeagueGothic.ttf") format("truetype");
	font-display: auto;
}
@font-face {
	font-family: "Raleway-Medium";
	src: url("../fonts/Raleway-Medium.ttf") format("truetype");
	font-display: auto;
}
@font-face {
	font-family: "Raleway-Bold";
	src: url("../fonts/Raleway-Bold.ttf") format("truetype");
	font-display: auto;
}

:root {
	--blue: #114396;
	--blue-dark: #134387;
	--grey: #e8e8e8;
	--black: #000;
	--white: #fff;
	--text: #333;
	--display: "League Gothic", sans-serif;
	--sans: "Raleway", sans-serif;
	/* largeur utile des sections (comme le site d'origine : 90 % sur ordinateur) */
	--wrap: 90%;
	--gap: 20px;
}
@media (max-width: 1200px) { :root { --wrap: 1024px; } }
@media (max-width: 767px) { :root { --wrap: 767px; } }

/* ---------- réglages de base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { line-height: 1.15; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	max-width: 100%;
	overflow-x: hidden;
	background: var(--white);
	color: var(--text);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
button, input, textarea { font: inherit; }
h1, h2, h3, h4, h5, h6 { margin: 0; padding: 0; font-weight: 500; line-height: 1; }
/* polices imposées sur tout le site d'origine */
h1, h2 { font-family: var(--display); font-weight: 400; }
h3, h4, h5, h6, a { font-family: var(--sans); font-weight: 700; }
p, span, button, input, textarea { font-family: var(--sans); font-weight: 500; }
p { margin-block: 0 .9rem; }
a { color: #c36; background-color: transparent; text-decoration: none; }
img { max-width: 100%; height: auto; border: none; vertical-align: middle; }
ul { margin: 0; padding: 0; list-style: none; }
/* champ piège de Formspree (_gotcha) : les robots le remplissent, Formspree rejette alors l'envoi */
.hp { display: none !important; }
.visually-hidden {
	position: absolute !important;
	width: 1px; height: 1px; margin: -1px; padding: 0;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
	position: fixed; top: 5px; left: 5px; z-index: 100000;
	width: auto; height: auto; clip: auto;
	padding: 15px 23px 14px; background: #f1f1f1; color: #444;
	font-size: .875rem; line-height: normal;
}

/* largeur utile commune */
.wrap { width: 100%; max-width: min(100%, var(--wrap)); margin-inline: auto; }

/* ---------- boutons ---------- */
.btn {
	display: inline-block;
	padding: 12px 24px;
	border-radius: 50px;
	background: var(--blue);
	color: var(--white);
	font-family: var(--sans);
	font-size: 15px;
	font-weight: 500;
	line-height: 1;
	text-align: center;
	transition: all .3s;
}
.btn:hover, .btn:focus { color: var(--white); }

/* ---------- en-tête ---------- */
.site-header { position: relative; z-index: 9999; }
.hdr {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	transition: all .4s ease-in-out, margin 0s;
}
.hdr__logo { display: inline-block; flex-shrink: 0; }
.hdr__logo img { display: block; transition: all .4s ease-in-out; }

/* ordinateur : logo + menu en pilule, fixé en noir après 60 px de défilement */
.hdr--desktop { position: relative; margin-top: 10px; }
.hdr--desktop .hdr__inner {
	display: flex;
	align-items: center;
	gap: var(--gap);
	width: 100%;
	max-width: var(--wrap);
	margin-inline: auto;
}
.hdr--desktop .hdr__logo { flex: 0 1 9%; }
.hdr--desktop .hdr__logo img { width: 100%; }
.hdr--desktop .hdr__menu { display: flex; flex: 0 1 91%; justify-content: flex-end; }
.hdr__nav {
	display: flex;
	padding: 5px 25px;
	border-radius: 50px;
	background: rgba(255, 255, 255, .5);
	transition: background .3s, border .3s, border-radius .3s, box-shadow .3s;
}
.hdr__nav ul { display: flex; flex-wrap: wrap; justify-content: flex-end; }
.hdr__nav a {
	display: flex;
	align-items: center;
	padding: 13px 10px;
	color: var(--white);
	font-family: var(--sans);
	font-size: 16px;
	font-weight: 500;
	line-height: 20px;
	white-space: nowrap;
	transition: .4s;
}
.hdr--desktop.is-stuck { position: fixed; top: 0; margin-top: 0; background: var(--black); }

/* tablette et mobile : logo + bouton menu, masqué en descendant au-delà de 500 px */
/* contenu limité à 1024 px et centré (comme le site d'origine entre 1025 et 1200 px) */
.hdr--mobile { display: none; padding: 0 max(10px, (100% - 1024px) / 2); }
.hdr--mobile .hdr__logo { width: 20%; padding-block: 10px; }
.hdr--mobile .hdr__logo img { width: 100%; }
.hdr__burger {
	display: inline-flex;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	color: var(--white);
	cursor: pointer;
	transition: transform .3s;
}
.hdr__burger:hover { transform: scale(1.1); }
.hdr__burger svg { display: block; width: 19.5px; height: 26px; fill: currentColor; }
.hdr--mobile.is-stuck { position: fixed; top: 0; }
.hdr--mobile.is-hidden { transform: translateY(-110vh); transition: transform .4s ease-in-out; }

@media (max-width: 1200px) {
	.hdr--desktop { display: none; }
	.hdr--mobile { display: flex; }
}

/* ---------- menu mobile (panneau latéral) ---------- */
.menu-panel {
	position: fixed;
	inset: 0;
	z-index: 10000;
	display: flex;
	justify-content: flex-end;
	align-items: center;
	width: 100%;
	max-width: none;
	height: 100%;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: rgba(0, 0, 0, .8);
}
.menu-panel:not([open]) { display: none; }
.menu-panel::backdrop { background: transparent; }
.menu-panel__box {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--gap);
	width: 350px;
	height: 100vh;
	padding: 10px;
	background: var(--blue);
	box-shadow: 2px 8px 23px 3px rgba(0, 0, 0, .2);
	animation: fadeInRight 1.2s both;
}
.menu-panel.is-closing .menu-panel__box { animation: fadeOutRight 1.2s both; }
.menu-panel__logo { text-align: center; }
.menu-panel__logo img { width: 50%; }
.menu-panel nav { width: 100%; }
.menu-panel nav a {
	display: block;
	padding: 13px 20px;
	color: var(--white);
	font-family: var(--sans);
	font-weight: 600;
	line-height: 20px;
	text-align: center;
}
.menu-panel__close {
	position: absolute;
	top: 15px;
	right: 15px;
	display: flex;
	padding: 0;
	border: 0;
	background: none;
	color: var(--white);
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
}
.menu-panel__close svg { width: 1em; height: 1em; fill: currentColor; }

/* ---------- pied de page ---------- */
.site-footer {
	padding-block: 50px;
	border-radius: 50px 50px 0 0;
	background: var(--black);
	color: var(--white);
	font-family: var(--sans);
	font-weight: 500;
}
.site-footer .wrap { display: flex; gap: var(--gap); }
.footer-col { display: flex; flex-direction: column; gap: var(--gap); min-width: 0; padding: 10px; }
.footer-col--about { width: 27%; }
.footer-col--contact { width: 20%; }
.footer-col--pages { width: 23%; }
.footer-col--news { width: 30%; }
.footer-col p { margin: 0 0 .9rem; }
.footer-logo img { width: 40%; }
.footer-title {
	color: var(--white);
	font-family: var(--sans);
	font-size: 18px;
	font-weight: 700;
	line-height: 1;
	text-transform: uppercase;
}
.footer-contact { display: flex; align-items: center; gap: 15px; }
.footer-contact__icon {
	display: inline-flex;
	padding: 5px;
	border-radius: 50%;
	background: var(--white);
	color: var(--black);
	line-height: 1;
}
.footer-contact__icon svg { width: 18px; height: 18px; fill: currentColor; }
.footer-contact a {
	margin: 8px 0 16px;
	color: var(--white);
	font-weight: 500;
	line-height: 1.2;
}
.footer-links { display: flex; flex-direction: column; }
.footer-links a { display: flex; color: var(--white); font-weight: 500; line-height: 24px; transition: color .3s; }
.newsletter {
	display: flex;
	border: 1px solid var(--white);
	border-radius: 25px;
}
/* le champ cède la place si le bouton ne tient pas dans ses 20 % (sinon il déborde et mange le contour) */
.newsletter input {
	flex: 1 1 80%;
	min-width: 0;
	min-height: 40px;
	padding: 8px 16px;
	border: 0;
	border-radius: 25px;
	background: var(--black);
	color: var(--white);
	font-family: var(--sans);
	font-size: 15px;
	font-weight: 500;
	line-height: 1.4;
	outline: 0;
}
.newsletter input::placeholder { color: var(--white); opacity: .6; }
.newsletter button {
	display: flex;
	flex: 0 0 20%;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 0 24px;
	border: 0;
	border-radius: 25px;
	background: var(--black);
	color: var(--white);
	font-family: var(--sans);
	font-size: 15px;
	font-weight: 500;
	cursor: pointer;
}
.newsletter button svg { width: 15px; height: 15px; fill: currentColor; }

@media (max-width: 767px) {
	.site-footer { padding-block: 25px; }
	.site-footer .wrap { flex-direction: column; }
	.footer-col { width: 100%; }
	.footer-col--about { text-align: center; }
	.footer-col--about p { padding: 0 35px; }
	.footer-col--contact { align-items: center; }
	.footer-col--pages { text-align: center; }
	.footer-links a { justify-content: center; }
	.footer-col--news { padding: 0 35px; }
	.newsletter input { flex-basis: 60%; }
	.newsletter button { flex-basis: 40%; }
}

/* ---------- boutons de contact flottants ---------- */
.contact-float {
	position: fixed;
	top: 50%;
	right: 0;
	z-index: 9999;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 6px;
	transform: translateY(-50%);
	/* la boîte garde la largeur des libellés repliés hors écran : elle laisse passer les clics,
	   seuls les boutons visibles les reçoivent */
	pointer-events: none;
}
.contact-float a { pointer-events: auto; }
.contact-float a {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 12px 0 12px 12px;
	border-radius: 50px 0 0 50px;
	background: var(--black);
	box-shadow: 4px 4px 10px 0 rgba(0, 0, 0, .15);
	color: var(--white);
	font-family: var(--sans);
	font-size: 14px;
	font-weight: 700;
	line-height: 21px;
	white-space: nowrap;
	transform: translateX(calc(100% - 38px));
	transition: all .3s;
}
.contact-float a:hover, .contact-float a:focus-visible { transform: none; }
.contact-float span { padding-right: 12px; font-weight: 500; }
/* 3e bouton : pictogramme de carte à la place du globe (comme le site d'origine) */
.contact-float a:nth-child(3) { position: relative; }
.contact-float a:nth-child(3) svg { opacity: 0; }
.contact-float a:nth-child(3)::before {
	content: "";
	position: absolute;
	top: 10px;
	left: 12px;
	width: 25px;
	height: 25px;
	background: url("../img/map.png") 0 0 / 100% no-repeat;
}
.contact-float svg { width: 20px; height: 20px; flex-shrink: 0; overflow: hidden; fill: currentColor; }

/* ---------- apparitions au défilement ---------- */
[data-reveal] { visibility: hidden; }
/* pas de remplissage : rien ne subsiste après l'animation (le délai est géré en JS) */
[data-reveal].is-visible { visibility: visible; animation-duration: 1.25s; }
[data-reveal].is-visible[data-speed="slow"] { animation-duration: 2s; }
[data-reveal="fadeIn"].is-visible { animation-name: fadeIn; }
[data-reveal="fadeInUp"].is-visible { animation-name: fadeInUp; }
[data-reveal="fadeInLeft"].is-visible { animation-name: fadeInLeft; }
[data-reveal="fadeInRight"].is-visible { animation-name: fadeInRight; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInUp { from { opacity: 0; transform: translate3d(0, 100%, 0); } to { opacity: 1; transform: none; } }
@keyframes fadeInLeft { from { opacity: 0; transform: translate3d(-100%, 0, 0); } to { opacity: 1; transform: none; } }
@keyframes fadeInRight { from { opacity: 0; transform: translate3d(100%, 0, 0); } to { opacity: 1; transform: none; } }
@keyframes fadeOutRight { from { opacity: 1; } to { opacity: 0; transform: translate3d(100%, 0, 0); } }
html.no-js [data-reveal] { visibility: visible; }
@media (prefers-reduced-motion: reduce) {
	[data-reveal].is-visible { animation: none; }
}
