/*
Theme Name: certis
Theme URI: https://www.jeremieberton.fr
Author: jberton
Author URI: 
Description: Thème Certis
Version: 1.0
*/

/* ============================================================
   VARIABLES & POLICES
   ============================================================ */

/*
 * @font-face — Roboto & Gotham
 *
 * Les fichiers .woff2 étaient déjà présents dans assets/fonts/Roboto/
 * et assets/fonts/Gotham/, mais aucune règle @font-face ne les
 * déclarait nulle part dans le thème. Résultat : chaque font-family
 * 'Roboto' / 'Gotham' utilisée dans les feuilles de style (home.css,
 * local.css, fissures.css, etc., + le plugin "Bibliothèque CERTIS" qui
 * déclare Roboto en premier choix) retombait silencieusement sur le
 * sans-serif système, sans erreur visible.
 *
 * Poids Gotham déduits des 4 fichiers disponibles (Book/Regular/Medium/
 * Bold) faute de spécimen — à ajuster si le rendu visuel ne correspond
 * pas exactement à la maquette d'origine.
 */
@font-face {
	font-family: 'Roboto';
	src: url('../fonts/Roboto/Roboto-Regular.woff2') format('woff2');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Roboto';
	src: url('../fonts/Roboto/Roboto-Medium.woff2') format('woff2');
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Roboto';
	src: url('../fonts/Roboto/Roboto-Bold.woff2') format('woff2');
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Roboto';
	src: url('../fonts/Roboto/Roboto-ExtraBold.woff2') format('woff2');
	font-weight: 800;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Gotham';
	src: url('../fonts/Gotham/Gotham-Book.woff2') format('woff2');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Gotham';
	src: url('../fonts/Gotham/Gotham-Regular.woff2') format('woff2');
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Gotham';
	src: url('../fonts/Gotham/Gotham-Medium.woff2') format('woff2');
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Gotham';
	src: url('../fonts/Gotham/Gotham-Bold.woff2') format('woff2');
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

:root {
	/* Certis design system */
	--btn-color: #C4312B;
	--btn-color-hover: #e74c3c;
	--bg-site: white;
	--bg-section: rgb(247, 249, 252);
	--title-color: #2E3F5F;
	--title-color-hover: #162240;
	--txt-color: #6E6E6E;
	--border-color : #e2e6ea;
	--header-height: 80px;
}

/* ============================================================
   GÉNÉRAL
   ============================================================ */

.post-title {
	opacity: 0;
}

html {
	scroll-padding-top: 7rem;
}

body {
	font-family: 'Inter', sans-serif;
	background: var(--bg-site);
	font-size: 16px;
	margin: 0;
	padding: 0;
	border: 0;
	height: 100% !important;
	width: 100%;
}

h1 {
	font-weight: 800 !important;
	font-size: 2.5rem !important;
	color: var(--txt-color) !important;
	margin: 0;
	padding: 0;
}

h2 {

	font-weight: 400 !important;
}

p {
	 font-weight: 500 !important;
}

/*
 * La règle globale ci-dessus (p { font-weight: 500 !important }) s'applique
 * à toute balise <p> du site, y compris celles générées par le plugin
 * "Bibliothèque CERTIS" (.certis-bib) — dont les feuilles de style n'ont
 * jamais eu à s'en prémunir car le texte courant y est pensé en Roboto
 * Regular (400). Sans cette exception, tout le corps de texte des pages
 * de la bibliothèque (intro, articles, recherche) s'affiche en Roboto
 * Medium (500) au lieu du Regular attendu.
 */
.certis-bib p {
	font-weight: 400 !important;
}

a {
	color: inherit;
	text-decoration: none;
}

.page-container {
	margin: auto;
}

/* Conteneur global — utilisé sur toutes les pages custom */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

.page {
	margin: auto !important;
}

.btn-action {
	color: var(--txt-color);
	border: 2px solid var(--txt-color);
	border-radius: 30px;
	padding: 5px 10px;
	font-size: 15px;
	transition: all .5s;
	-webkit-transition: all .5s;
}

.btn-action:hover {
	color: var(--btn-color);
	background-color: var(--btn-color-hover);
}

.btn-contact-accueil.is-visible .btn-action {
	border: 2px solid var(--btn-color-hover);
	color: var(--btn-color) !important;
}

/* ============================================================
   HEADER
   ============================================================ */

.site-header,
header {
	width: 100% !important;
	position: sticky;
	top: 0;
	z-index: 1000;
	background: white;
	border-bottom: 2px solid var(--border-color);
	box-shadow: 0 2px 12px rgba(43, 63, 95, 0.08);
	transition: 0.3s;
	height: var(--header-height);
	overflow: visible;
}

header ul {
	list-style-type: none;
	padding: 0;
	margin: 0;
}

header li {
	text-decoration: none;
}

header li a {
	text-decoration: none;
	color: var(--txt-color);
	font-size: 16px;
}

/* --- Navbar --- */
nav,
.navbar {
	position: relative;
	display: flex;
	flex-direction: row;
	align-items: center;
	height: var(--header-height);
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 32px;
}

/* --- Logo header --- */
.header-logo,
.logo {
	flex-shrink: 0;
	margin-right: 40px;
}

.header-logo a,
.logo a {
	display: flex;
	align-items: center;
	gap: 14px;
	text-decoration: none;
	color: black;
	height: var(--header-height);
}

.header-logo img,
.logo img {
	height: 75px;
	width: auto;
}

.logo-text {
	display: flex;
	flex-direction: column;
	line-height: 1.1;
}

.logo-name {
	font-weight: 700;
	font-size: 28px;
	letter-spacing: -0.5px;
	color: var(--title-color);
}

.logo-tagline {
	font-weight: 500;
	font-size: 14px;
	letter-spacing: 0.2px;
	color: var(--title-color);
	text-transform: uppercase;
}

/* --- Navigation principale --- */
.header-nav {
	flex: 1;
	display: flex;
	align-items: center;
}

.header-nav .main-menu,
.navbar-nav {
	display: flex;
	flex-direction: row;
	align-items: center;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: 0;
	width: auto;
	justify-content: unset;
}

.header-nav .main-menu > li > a,
.navbar-nav > li > a {
	display: block;
	padding: 0 18px;
	height: var(--header-height);
	line-height: var(--header-height);
	font-weight: 500;
	font-size: 14px;
	letter-spacing: 0;
	text-transform: uppercase;
	color: var(--title-color);
	text-decoration: none;
	border-bottom: 3px solid transparent;
	transition: color 0.2s, border-color 0.2s;
	white-space: nowrap;
	position: relative;
}

.header-nav .main-menu > li > a:hover,
.header-nav .main-menu > li.current-menu-item > a,
.header-nav .main-menu > li.current_page_item > a,
.navbar-nav > li > a:hover {
	color: var(--btn-color);
	border-bottom-color: var(--btn-color-hover);
}

/* Chevron sous-menu */
.header-nav .main-menu > li.menu-item-has-children > a::after {
	content: '';
	display: inline-block;
	width: 10px;
	height: 6px;
	margin-left: 5px;
	vertical-align: middle;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpolyline points='1,1 5,5 9,1' fill='none' stroke='%23555' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
	transition: transform 0.2s;
}

.header-nav .main-menu > li.menu-item-has-children:hover > a::after {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpolyline points='1,1 5,5 9,1' fill='none' stroke='%23C4312B' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	transform: rotate(180deg);
}

/* Bouton flèche dédié au sous-menu — injecté en JS, actif uniquement en mobile */
.submenu-toggle {
	display: none;
}

/* Sous-menu dropdown */
.header-nav .main-menu > li,
.navbar-nav > li {
	position: relative;
	display: inline-block;
}

.header-nav .main-menu .sub-menu,
.navbar-nav .sub-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 290px;
	background: white;
	border-top: 3px solid var(--btn-color);
	box-shadow: 0 8px 24px rgba(43, 63, 95, 0.12);
	list-style: none;
	margin: 0;
	padding: 8px 0;
	z-index: 999;
}

@media (hover: hover) and (pointer: fine) {
	.header-nav .main-menu > li:hover .sub-menu,
	.navbar-nav > li:hover .sub-menu {
		display: block;
	}
}

.header-nav .main-menu .sub-menu li a,
.navbar-nav .sub-menu li a {
	display: block;
	padding: 10px 20px;
	font-size: 14px;
	font-weight: 500;
	color: var(--title-color);
	text-decoration: none;
	border-bottom: none;
	height: auto;
	line-height: 1.4;
	transition: all 0.15s, color 0.15s;
}

.header-nav .main-menu .sub-menu li a:hover,
.navbar-nav .sub-menu li a:hover {
	color: var(--btn-color);
	border-bottom: none;
}

/* --- Bloc téléphone header --- */
.header-contact {
    flex-shrink: 0;
    margin-left: 24px;
    padding: 10px 15px;
    border: 2px solid var(--border-color);
    text-align: center;
    border-radius: 15px;
    cursor: pointer;
    transition: border-color 0.2s;
    display: block; /* car c'est maintenant un <a> */
}

.header-contact:hover {
    border-color: var(--btn-color-hover);
}

.header-phone {
	display: flex;
	align-items: center;
	gap: 8px;
}

.phone-icon {
    font-size: 18px;
    color: var(--btn-color);
    line-height: 1;
    display: flex;
	gap: 10px
}

.phone-number {
	font-size: 20px;
	font-weight: 800;
	color: var(--title-color);
	text-decoration: none;
	transition: color 0.2s;
}

.phone-hours {
	font-size: 10px;
	color: var(--title-color);
	margin: 3px 0 0 0;
	white-space: nowrap;
	letter-spacing: -0.5px;
}

/* --- Boutons contact --- */
.btn-contact-accueil {
	display: flex;
	justify-content: center;
	gap: 30px;
}

/* --- Burger --- */
.burger {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 6px;
	cursor: pointer;
	margin-left: 20px;
	padding: 8px;
	flex-shrink: 0;
	z-index: 1001;
}

.line {
	height: 3px;
	background-color: var(--title-color);
	display: block;
	width: 24px;
	transition: transform 0.3s, opacity 0.3s;
	transform-origin: center center;
}

.burger[aria-expanded="true"] .line1,
.toggle .line1 { transform: translateY(9px) rotate(-45deg); }
.burger[aria-expanded="true"] .line2,
.toggle .line2 { opacity: 0; transform: scaleX(0); }
.burger[aria-expanded="true"] .line3,
.toggle .line3 { transform: translateY(-9px) rotate(45deg); }

.menu-backdrop {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
	z-index: 9;
}

.fixed-position {
	overflow: hidden;
	height: 100%;
}

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer,
footer {
	background: var(--title-color);
	color: white;
	width: 100%;
	margin: 0;
}

.footer-main {
	display: flex;
	align-items: flex-start;
	gap: 0;
	max-width: 1280px;
	margin: 0 auto;
	padding: 48px 32px;
}

/* Séparateurs verticaux */
.footer-divider {
	width: 1px;
	background: rgba(255, 255, 255, 0.15);
	align-self: stretch;
	margin: 0 20px;
	flex-shrink: 0;
}

/* Colonne 1 : Brand */
.footer-brand {
    flex: 0 0 auto;
}

/* Colonne 1b : Description */
.footer-description-col {
    flex: 0 0 200px;
    display: flex;
    align-items: center;
}

.footer-description {
    font-size: 14px !important;
    line-height: 1.7 !important;
    color: rgba(255, 255, 255, 0.75) !important;
    margin: 0 !important;
}

.footer-logo {
	display: flex;
	align-items: center;
	text-decoration: none;
	margin-bottom: 10px;
}

.footer-logo img {
	height: 100px;
	width: auto;
}

.footer-logo-text {
	display: flex;
	flex-direction: column;
	line-height: 1.3;
}

.footer-logo-name {
	font-size: 20px;
	font-weight: 800;
	color: white;
	letter-spacing: 2px;
}

.footer-logo-tagline {
	font-size: 8px;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.7);
	letter-spacing: 1.5px;
	text-transform: uppercase;
}

.footer-description {
	font-size: 14px !important;
	line-height: 1.7 !important;
	color: rgba(255, 255, 255, 0.75) !important;
	margin: 0 !important;
}

/* Colonne 2 : Navigation */
.footer-nav {
	flex: 0 0 auto;
}

.footer-nav .footer-menu,
footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: auto auto;
    gap: 8px 20px;
    justify-content: start;
}

.footer-nav .footer-menu li a,
footer ul a {
	font-size: 14px;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.8);
	text-decoration: none;
	transition: color 0.2s;
	position: relative;
}

.footer-nav .footer-menu li a:hover,
footer ul a:hover {
	color: white;
}

/* Annule le grid sur les sous-menus */
.footer-nav .footer-menu .sub-menu,
.footer-nav ul ul {
    display: block;
    grid-template-columns: unset;
}

/* Colonne 3 : Mentions légales */
.footer-legal {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.footer-legal-link {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.8px;
	color: rgba(255, 255, 255, 0.75);
	text-decoration: none;
	text-transform: uppercase;
	transition: color 0.2s;
}

.footer-legal-link:hover {
	color: white;
}

/* Colonne 4 : Contact */
.footer-contact {
	flex-shrink: 0;
}

.footer-phone-block {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 10px;
}

.footer-phone-icon {
	font-size: 18px;
	color: var(--btn-color-hover);
}

.footer-phone-number {
	font-size: 20px;
	font-weight: 800;
	color: white;
	text-decoration: none;
	letter-spacing: 0.5px;
	transition: color 0.2s;
}

.footer-phone-number:hover {
	color: var(--btn-color-hover);
}

.footer-email-block {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 10px;
}

.footer-email-icon {
	font-size: 15px;
	color: rgba(255, 255, 255, 0.6);
}

.footer-email {
	font-size: 14px;
	color: rgba(255, 255, 255, 0.8);
	text-decoration: none;
	transition: color 0.2s;
}

.footer-email:hover {
	color: white;
}

.footer-hours {
	font-size: 12px;
	color: rgba(255, 255, 255, 0.65);
	margin: 0;
}

/* Barre copyright */
.footer-bottom {
	background: rgba(0, 0, 0, 0.2);
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	text-align: center;
	padding: 14px 32px;
}

.footer-bottom p {
	font-size: 12px !important;
	color: rgba(255, 255, 255, 0.55) !important;
	margin: 0 !important;
	letter-spacing: 0.3px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media screen and (max-width: 1024px) {
	.header-nav .main-menu > li > a,
	.navbar-nav > li > a {
		padding: 0 12px;
		font-size: 12px;
	}

	.phone-number {
		font-size: 16px;
	}
}

@media screen and (max-width: 768px) {
	/* Header mobile */
	.burger {
		display: flex;
	}

	.header-contact {
		display: none;
	}

	nav,
	.navbar {
		justify-content: space-between;
		padding: 0 20px;
		overflow: visible;
	}

	.header-logo,
	.logo {
		margin-right: 0;
		width: auto;
	}

	/* header-nav toujours visible pour que le menu puisse s'ouvrir */
	.header-nav {
		display: flex;
		flex: unset;
		overflow: visible;
		position: static;
	}

	/* Menu mobile — cible .main-menu généré par WordPress */
	.header-nav .main-menu {
		position: fixed;
		top: var(--header-height);
		left: 0;
		width: 100%;
		height: calc(100vh - var(--header-height));
		background-color: white;
		flex-direction: column;
		align-items: center;
		justify-content: flex-start;
		gap: 0;
		padding-top: 5px;
		transform: translateX(-110%);
		transition: transform 0.5s ease-in-out;
		z-index: 999;
		overflow-y: auto;
	}

	/* Menu ouvert */
	.header-nav .main-menu.nav-active {
		transform: translateX(0);
	}

	/* Items du menu mobile */
	.header-nav .main-menu > li {
		display: block;
		width: 100%;
		text-align: center;
		opacity: 0;
		animation: navLinkFade 0.5s ease forwards 0.3s;
	}

	.header-nav .main-menu > li > a {
		display: block;
		height: auto;
		line-height: 1.4;
		padding: 16px 20px;
		font-size: 18px;
		border-bottom: 1px solid var(--border-color);
		white-space: normal;
		color: var(--title-color);
	}

	.header-nav .main-menu > li > a:hover {
		color: var(--btn-color);
		border-bottom-color: var(--border-color);
	}

	/* Sous-menu mobile : replié par défaut, déplié au clic sur la flèche */
	.header-nav .main-menu > li.menu-item-has-children {
		position: relative;
	}

	.header-nav .main-menu .sub-menu {
		display: none;
		position: static;
		width: 100%;
		min-width: 0;
		background: var(--bg-section, #f5f7fa);
		border-top: none;
		box-shadow: none;
		margin: 0;
		padding: 0;
	}

	.header-nav .main-menu > li.menu-item-has-children.submenu-open > .sub-menu {
		display: block;
	}

	.header-nav .main-menu .sub-menu li a {
		text-align: center;
		padding: 12px 20px;
		font-size: 15px;
		border-bottom: 1px solid var(--border-color);
	}

	/* Masque le chevron généré sur le lien (desktop) : remplacé par la flèche dédiée ci-dessous */
	.header-nav .main-menu > li.menu-item-has-children > a::after {
		display: none;
	}

	/* Flèche dédiée au sous-menu, distincte du lien pour ne pas déclencher la navigation */
	.header-nav .main-menu .submenu-toggle {
		display: flex;
		align-items: center;
		justify-content: center;
		position: absolute;
		top: 0;
		right: 0;
		width: 54px;
		height: 54px;
		cursor: pointer;
		color: var(--title-color);
	}

	.header-nav .main-menu .submenu-toggle svg {
		width: 12px;
		height: 8px;
		transition: transform 0.25s ease;
	}

	.header-nav .main-menu > li.menu-item-has-children.submenu-open .submenu-toggle {
		color: var(--btn-color);
	}

	.header-nav .main-menu > li.menu-item-has-children.submenu-open .submenu-toggle svg {
		transform: rotate(180deg);
	}

	@keyframes navLinkFade {
		from { opacity: 0; transform: translateX(-10px); }
		to   { opacity: 1; transform: translateX(0); }
	}

	.btn-contact-accueil {
		display: none;
	}

	/* Footer mobile */
	.footer-main {
		flex-direction: column;
		gap: 32px;
		padding: 36px 20px;
	}

	.footer-divider {
		display: none;
	}

	.footer-brand,
	.footer-description-col,
	.footer-nav,
	.footer-legal,
	.footer-contact {
		flex: none;
	}

	.footer-nav .footer-menu,
	footer ul {
		grid-template-columns: 1fr;
	}
}

@media screen and (max-width: 1200px) {
	.site-header,
	header {
		width: 100% !important;
	}

	footer,
	.site-footer {
		width: 100%;
	}
}

/* ============================================================
   SECTION AVIS CLIENTS
============================================================ */

.section-avis {
    padding: 80px 0;
    background: #f8fafc;
}

.section-title {
    text-align: center;
    margin-bottom: 48px;
}

/* ============================================================
   GRID
============================================================ */

.avis-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* ============================================================
   CARD
============================================================ */

.avis-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 300px;
    transition: transform .2s ease,
                box-shadow .2s ease;
}

.avis-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,.08);
}

/* ============================================================
   CARTE GOOGLE
============================================================ */

.avis-card-google {
    border: 2px solid rgba(66,133,244,.10);
    background: #fff;
    justify-content: center;
    gap: 25px;
	padding: 35px 30px;
}

.avis-google-score {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.avis-google-header {
    display: flex;
    align-items: center;
    gap: 14px;
}

.avis-google-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.avis-google-note-stars {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.avis-note {
    font-size: 2rem;
    font-weight: 900;
    line-height: 1;
    color: var(--title-color-hover);
}

.avis-stars-bar {
    color: #f59e0b;
    font-size: 22px;
    letter-spacing: 2px;
}

.avis-base {
    font-size: 14px;
    line-height: 1.5;
    color: #64748b;
}

.avis-google-text {
    margin: 0;
    font-size: 15px;
    line-height: 1.8;
    color: var(--title-color-hover);
    font-style: italic;
}

/* ============================================================
   AVIS
============================================================ */

.avis-stars {
    color: #f59e0b;
    font-size: 18px;
    letter-spacing: 2px;
    margin-bottom: 18px;
}

.avis-card p {
    margin: 0;
    line-height: 1.8;
    color: #475569;
    flex: 1;
}

.avis-author {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--txt-color);
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
    margin-top: auto;
}

.avis-initials {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--title-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.avis-author strong {
    color: var(--title-color);
}

.avis-author small {
    color: #64748b;
}

/* ============================================================
   RESPONSIVE
============================================================ */

@media (max-width: 1200px) {
    .avis-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    .section-avis {
        padding: 60px 0;
    }

    .avis-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .avis-card {
        min-height: auto;
    }

    .avis-note {
        font-size: 2rem;
    }

	.avis-author {
		margin-top: 15px;
	}
}

/* ============================================================
   NOS DOMAINES D'EXPERTISE — section-domaines.php
   Chargé sur : accueil, nos-expertises, contact, local
============================================================ */

.section-domaines {
    padding: 50px 0;
    background: var(--bg-section, #f5f7fa);
}

.domaines-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 32px;
}

.domaine-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 28px 16px 20px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}
.domaine-card:hover {
    box-shadow: 0 4px 16px rgba(26,58,107,0.1);
    border-color: #8fa3bf;
	transform: translateY(-2px);
}

.domaine-icon {
    width: 52px;
    height: 52px;
    object-fit: contain;
    margin-bottom: 14px;
}

.domaine-name {
    font-family: 'Gotham', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: var(--title-color, #1a3a6b);
    margin: 0 0 10px;
    line-height: 1.4;
    letter-spacing: 0.03em;
}

.domaine-desc {
    font-size: 14px;
    color: var(--txt-color, #666);
    line-height: 1.55;
    margin: 0;
    flex: 1;
}

.domaine-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid var(--border-color, #e8ecf1);
    color: var(--btn-color, #C4312B);
    margin-top: 16px;
    flex-shrink: 0;
    transition: background 0.2s, border-color 0.2s;
}
.domaine-card:hover .domaine-arrow {
    background: var(--btn-color, #C4312B);
    border-color: var(--btn-color, #C4312B);
    color: #fff;
}

.expertises-warning {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border-radius: 6px;
    padding: 14px 20px;
    font-size: 14px;
    color: var(--title-color-hover);
    font-weight: 600;
    margin-top: 8px;
}

.expertises-warning svg {
    flex-shrink: 0;
    color: #f59e0b;
}

@media (max-width: 1024px) {
    .domaines-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .domaines-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   SCROLL REVEAL — Apparition des sections au scroll (bas → haut)
   Classes utilitaires génériques, réutilisables sur tout le site.
   La classe .is-visible est ajoutée en JS via IntersectionObserver
   (voir assets/js/script.js).
============================================================ */

.reveal-up {
    opacity: 0;
    transform: translateY(48px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
    will-change: opacity, transform;
}

.reveal-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Apparition latérale (gauche → droite), avec délai échelonné par étape */
.reveal-left {
    opacity: 0;
    transform: translateX(-48px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    transition-delay: calc(var(--reveal-delay, 0) * 1s);
    will-change: opacity, transform;
}

.reveal-left.is-visible {
    opacity: 1;
    transform: translateX(0);
}

/* Respecte les préférences d'accessibilité : pas d'animation si demandé */
@media (prefers-reduced-motion: reduce) {
    .reveal-up,
    .reveal-left {
        transition: none;
        opacity: 1;
        transform: none;
    }
}

