/* ==========================================================================
   Sensor Instruments Blog — feuille de style principale
   Identité reprise de sensorinstruments.fr : police Campton, bleu #00A3DA,
   bleu nuit #062257, boutons arrondis (25px), hover translateY(-2px).
   Déclinaison bleu ciel / blanc.
   ========================================================================== */

/* ---------- Polices Campton (fichiers à placer dans assets/fonts/) ---------- */
@font-face { font-family: "Campton Book";   src: url("../fonts/campton_book-webfont.woff2") format("woff2"),   url("../fonts/campton_book-webfont.woff") format("woff");   font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Campton Light";  src: url("../fonts/campton_light-webfont.woff2") format("woff2"),  url("../fonts/campton_light-webfont.woff") format("woff");  font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Campton Medium"; src: url("../fonts/campton_medium-webfont.woff2") format("woff2"), url("../fonts/campton_medium-webfont.woff") format("woff"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Campton Bold";   src: url("../fonts/campton_bold-webfont.woff2") format("woff2"),   url("../fonts/campton_bold-webfont.woff") format("woff");   font-weight: 700; font-style: normal; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
	--sky:        #00a3da;   /* bleu de marque Sensor Instruments */
	--sky-hover:  #009bcf;
	--sky-active: #0093c4;
	--sky-deep:   #0082ae;
	--sky-light:  #5cc8ee;   /* bleu ciel */
	--sky-200:    #a9e0f5;
	--sky-100:    #d6f1fb;
	--sky-50:     #eef9fd;
	--navy:       #062257;   /* titres */
	--text:       #4f5b6b;
	--muted:      #7a8796;
	--line:       #dcecf3;
	--white:      #ffffff;

	--font-book:   "Campton Book", "Helvetica Neue", Helvetica, Arial, sans-serif;
	--font-light:  "Campton Light", "Campton Book", "Helvetica Neue", Helvetica, Arial, sans-serif;
	--font-medium: "Campton Medium", "Campton Book", "Helvetica Neue", Helvetica, Arial, sans-serif;
	--font-bold:   "Campton Bold", "Helvetica Neue", Helvetica, Arial, sans-serif;

	--radius-pill: 25px;
	--radius:      14px;
	--shadow-sm:   0 2px 0 rgba(34, 34, 34, .2);
	--shadow-card: 0 6px 24px rgba(0, 163, 218, .10);
	--shadow-lift: 0 18px 40px rgba(0, 130, 174, .20);
	--ease:        cubic-bezier(.22, .61, .36, 1);
	--container:   1180px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--font-book);
	font-size: 17px;
	line-height: 1.7;
	color: var(--text);
	background: var(--white);
	-webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--sky); text-decoration: none; transition: color .25s ease-in; }
a:hover { color: var(--navy); }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-bold); font-weight: 700; font-weight: 700; color: var(--navy); line-height: 1.25; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 4vw, 2.9rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1.2em; }
::selection { background: var(--sky-100); color: var(--navy); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link:focus { position: fixed !important; top: 12px; left: 12px; width: auto; height: auto; clip: auto; z-index: 999; background: #fff; color: var(--navy); padding: 10px 18px; border-radius: var(--radius-pill); }
:focus-visible { outline: 3px solid var(--sky-200); outline-offset: 3px; }

/* ==========================================================================
   Boutons — repris du site (pill 25px, bold, translateY(-2px))
   + animations : reflet lumineux, flèche qui glisse, pression au clic
   ========================================================================== */
.button,
button.button,
input[type="submit"],
.wp-block-button__link,
.search-submit {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5em;
	overflow: hidden;
	isolation: isolate;
	padding: 12px 22px;
	border: 2px solid transparent;
	border-radius: var(--radius-pill);
	background-color: var(--sky);
	color: var(--white);
	font-family: var(--font-book);
	font-weight: 700;
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
	text-decoration: none;
	transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s ease-in, color .25s ease-in, border-color .25s ease-in;
}
.button.large { font-size: 1.15rem; padding: 16px 26px; }

/* reflet lumineux qui balaye le bouton */
.button::after,
input[type="submit"]::after,
.wp-block-button__link::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, .45) 50%, transparent 80%);
	transform: translateX(-120%);
	transition: transform .6s var(--ease);
}
.button:hover,
input[type="submit"]:hover,
.wp-block-button__link:hover {
	transform: translateY(-2px);
	box-shadow: var(--shadow-sm), 0 10px 22px rgba(0, 163, 218, .28);
	background-color: var(--sky-hover);
	color: #f7f7f7;
}
.button:hover::after,
.wp-block-button__link:hover::after { transform: translateX(120%); }
.button:active,
input[type="submit"]:active { transform: translateY(0) scale(.97); background-color: var(--sky-active); box-shadow: none; }
.button svg { transition: transform .3s var(--ease); }
.button:hover svg { transform: translateX(4px); }

/* Inversé : blanc, texte bleu (bouton « Contact rapide » du site) */
.button-inverted { background-color: var(--white); color: var(--sky); }
.button-inverted::after { background: linear-gradient(110deg, transparent 20%, rgba(0, 163, 218, .18) 50%, transparent 80%); }
.button-inverted:hover { background-color: var(--white); color: var(--sky-deep); box-shadow: var(--shadow-sm), 0 10px 24px rgba(6, 34, 87, .18); }
.button-inverted:active { background-color: #e6f6fc; }

/* Fantôme blanc (sur fond bleu) */
.button-ghost-inverted { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .85); }
.button-ghost-inverted:hover { background: var(--white); color: var(--sky); border-color: var(--white); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--sky);
	color: var(--white);
	transition: box-shadow .3s ease, background-color .3s ease;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(6, 34, 87, .18); }
/* Fine ligne blanche qui sépare la barre du haut et le menu (comme sur le site) */
.site-header::before {
	content: "";
	position: absolute;
	left: 0; right: 0;
	top: 52px;
	height: 1px;
	background: rgba(255, 255, 255, .75);
	pointer-events: none;
}
.header-top { position: relative; display: flex; align-items: center; justify-content: flex-end; gap: 28px; height: 52px; }
/* Le logo chevauche les deux rangées, la ligne passe entre « Sensor » et « Instruments » */
.branding { position: absolute; left: 24px; top: 27px; z-index: 2; display: flex; align-items: flex-start; }
.site-logo, .custom-logo-link { display: inline-block; color: var(--white); line-height: 0; }
.site-logo svg { width: 212px; height: auto; transition: transform .4s var(--ease); }
.branding .tagline { position: absolute; left: 130px; top: 10px; font-size: 10.5px; }
.header-top .button-inverted { padding: 12px 22px; font-size: 16px; }
.site-logo:hover { color: var(--white); }
.site-logo:hover svg { transform: scale(1.03); }
.site-logo:hover svg path { animation: sparkle 1.2s ease; }
@keyframes sparkle { 50% { filter: drop-shadow(0 0 6px rgba(255, 255, 255, .9)); } }
.custom-logo { max-height: 60px; width: auto; }
.tagline { font-family: var(--font-light); font-style: italic; font-size: 12px; opacity: .9; white-space: nowrap; }

.header-actions { display: flex; align-items: center; gap: 22px; }
.header-phone { display: inline-flex; align-items: center; gap: 8px; color: var(--white); font-family: var(--font-medium); font-weight: 500; font-size: 15px; }
.header-phone svg { transition: transform .3s var(--ease); }
.header-phone:hover { color: var(--white); }
.header-phone:hover svg { animation: ring .6s ease; }
@keyframes ring { 0%,100% { transform: rotate(0); } 20% { transform: rotate(-18deg); } 40% { transform: rotate(14deg); } 60% { transform: rotate(-10deg); } 80% { transform: rotate(6deg); } }

/* Navigation : majuscules, Campton Bold, blanc */
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; }
.main-nav .container { padding-top: 10px; padding-bottom: 14px; }
.main-nav li { position: relative; }
/* Liens : pastille bleu clair au survol, comme sur le site */
.main-nav a {
	position: relative;
	display: block;
	padding: 11px 18px;
	border-radius: var(--radius-pill);
	color: var(--white);
	font-family: var(--font-bold); font-weight: 700;
	font-size: 17px;
	letter-spacing: .01em;
	text-transform: uppercase;
	transition: background-color .25s ease-in, transform .25s var(--ease);
}
.main-nav a:hover,
.main-nav a:focus-visible { color: var(--white); background-color: rgba(255, 255, 255, .2); }
.main-nav > .container > ul > li > a:hover { transform: translateY(-1px); }
.main-nav .current-menu-item > a,
.main-nav .current_page_parent > a { background-color: rgba(255, 255, 255, .2); }
/* sous-menus */
.main-nav .sub-menu { position: absolute; top: 100%; left: 0; min-width: 220px; display: block; padding: 8px; background: var(--white); border-radius: 12px; box-shadow: var(--shadow-lift); opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .25s var(--ease); }
.main-nav li:hover > .sub-menu, .main-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.main-nav .sub-menu a { color: var(--navy); text-transform: none; font-family: var(--font-medium); font-weight: 500; border-radius: 8px; }
.main-nav .sub-menu a:hover { background: var(--sky-50); color: var(--sky); padding-left: 20px; }

.menu-toggle { display: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .15); cursor: pointer; padding: 12px 11px; transition: background .25s; }
.menu-toggle:hover { background: rgba(255, 255, 255, .3); }
.menu-toggle .bar { display: block; height: 2px; background: #fff; border-radius: 2px; margin: 4px 0; transition: transform .3s var(--ease), opacity .2s; }
.menu-toggle[aria-expanded="true"] .bar:nth-child(2) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bar:nth-child(3) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .bar:nth-child(4) { transform: translateY(-6px) rotate(-45deg); }

/* ==========================================================================
   Hero (bandeau bleu ciel → blanc, rayons inspirés de l'étoile du logo)
   ========================================================================== */
.hero {
	position: relative;
	overflow: hidden;
	color: var(--white);
	background: linear-gradient(160deg, var(--sky) 0%, var(--sky-light) 70%, #8fdaf4 100%);
	padding: 70px 0 120px;
}
.hero::before {
	content: "";
	position: absolute;
	top: -40%; right: -10%;
	width: 720px; height: 720px;
	background: repeating-conic-gradient(from 0deg, rgba(255, 255, 255, .14) 0deg 2deg, transparent 2deg 15deg);
	border-radius: 50%;
	-webkit-mask: radial-gradient(circle, #000 0 20%, transparent 70%);
	        mask: radial-gradient(circle, #000 0 20%, transparent 70%);
	animation: spin 90s linear infinite;
	pointer-events: none;
}
@keyframes spin { to { transform: rotate(360deg); } }
.hero-inner { position: relative; z-index: 1; }
.hero-title { color: var(--white); font-family: var(--font-book); font-weight: 400; max-width: 760px; }
.hero-single .hero-title { font-family: var(--font-bold); font-weight: 700; }
.hero-text { font-size: 1.2rem; max-width: 640px; opacity: .95; }
.hero .post-meta { color: rgba(255, 255, 255, .9); }
.hero .badge { background: rgba(255, 255, 255, .2); color: var(--white); margin-bottom: 16px; }
.hero .badge:hover { background: var(--white); color: var(--sky); }
.hero-search { max-width: 480px; margin-top: 28px; }
.hero-wave { position: absolute; left: 0; bottom: -1px; width: 100%; height: 80px; fill: var(--white); }
.hero-404 { text-align: center; padding: 90px 0 140px; }
.hero-404 .hero-title, .hero-404 .hero-text { margin-left: auto; margin-right: auto; }
.big-404 { font-family: var(--font-bold); font-weight: 700; font-size: clamp(5rem, 14vw, 9rem); line-height: 1; margin: 0; opacity: .9; }

/* Recherche */
.search-form { position: relative; display: flex; }
.search-field {
	width: 100%;
	padding: 15px 60px 15px 22px;
	border: 2px solid var(--line);
	border-radius: var(--radius-pill);
	background: var(--white);
	color: var(--navy);
	font: inherit;
	font-size: 16px;
	transition: border-color .25s, box-shadow .25s;
}
.hero .search-field { border-color: transparent; box-shadow: 0 10px 30px rgba(6, 34, 87, .15); }
.search-field:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 4px var(--sky-100); }
.search-submit { position: absolute; right: 5px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; padding: 0; }
.search-submit:hover { transform: translateY(-50%) scale(1.08); box-shadow: 0 6px 16px rgba(0, 163, 218, .35); }

/* ==========================================================================
   Filtres catégories (chips)
   ========================================================================== */
.cat-filter { display: flex; flex-wrap: wrap; gap: 10px; margin-top: -20px; margin-bottom: 36px; position: relative; z-index: 2; }
.chip {
	padding: 8px 18px;
	border-radius: var(--radius-pill);
	background: var(--sky-50);
	border: 1px solid var(--sky-100);
	color: var(--sky-deep);
	font-family: var(--font-medium); font-weight: 500;
	font-size: 14px;
	transition: all .25s var(--ease);
}
.chip:hover { background: var(--sky); border-color: var(--sky); color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.chip.is-active { background: var(--sky); border-color: var(--sky); color: var(--white); }

/* ==========================================================================
   Grille d'articles / cartes
   ========================================================================== */
.site-main { padding-top: 20px; padding-bottom: 70px; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.card {
	display: flex;
	flex-direction: column;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow-card);
	transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); border-color: var(--sky-200); }
.card-media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: linear-gradient(135deg, var(--sky) 0%, var(--sky-light) 100%); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card-media img { transform: scale(1.08); }
.card-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(0, 130, 174, .25)); opacity: 0; transition: opacity .35s; }
.card:hover .card-media::after { opacity: 1; }
.card-placeholder { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; color: var(--white); }
.card-placeholder svg { width: 55%; opacity: .9; transition: transform .6s var(--ease); }
.card:hover .card-placeholder svg { transform: scale(1.06) rotate(-2deg); }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 26px; }
.card-title { font-size: 1.25rem; margin: 10px 0 6px; }
.card-title a {
	color: var(--navy);
	background-image: linear-gradient(var(--sky), var(--sky));
	background-size: 0 2px;
	background-position: 0 100%;
	background-repeat: no-repeat;
	transition: background-size .4s var(--ease), color .25s;
}
.card:hover .card-title a { background-size: 100% 2px; color: var(--sky-deep); }
.card-excerpt { font-size: 15px; color: var(--text); flex: 1; }
.card-excerpt p { margin-bottom: 14px; }

.badge {
	display: inline-block;
	align-self: flex-start;
	padding: 4px 12px;
	border-radius: var(--radius-pill);
	background: var(--sky-50);
	color: var(--sky-deep);
	font-family: var(--font-bold); font-weight: 700;
	font-size: 12px;
	letter-spacing: .04em;
	text-transform: uppercase;
	transition: all .25s var(--ease);
}
.badge:hover { background: var(--sky); color: var(--white); }
.post-meta { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); margin-bottom: 10px; }

.readmore { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; font-family: var(--font-bold); font-weight: 700; font-size: 15px; color: var(--sky); padding-bottom: 2px; border-bottom: 2px solid transparent; transition: color .25s, border-color .25s, gap .3s var(--ease); }
.readmore svg { transition: transform .3s var(--ease); }
.readmore:hover { color: var(--navy); border-color: var(--sky); gap: 10px; }
.readmore:hover svg { transform: translateX(3px); }

/* Pagination */
.pagination { margin-top: 50px; }
.nav-links { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.page-numbers {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 44px; height: 44px; padding: 0 14px;
	border-radius: var(--radius-pill);
	border: 2px solid var(--sky-100);
	color: var(--sky-deep);
	font-family: var(--font-bold); font-weight: 700;
	transition: all .25s var(--ease);
}
.page-numbers:hover { background: var(--sky); border-color: var(--sky); color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.page-numbers.current { background: var(--sky); border-color: var(--sky); color: var(--white); }
.page-numbers.dots { border: 0; }

.empty-state { text-align: center; padding: 60px 0; }

/* ==========================================================================
   Article seul
   ========================================================================== */
.reading-progress { position: fixed; top: 0; left: 0; right: 0; height: 4px; z-index: 100; pointer-events: none; }
.reading-progress span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--sky-light), var(--white)); transform-origin: 0 50%; transform: scaleX(0); }
.layout-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; align-items: start; }
.entry-thumb { margin: -70px 0 36px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lift); position: relative; z-index: 3; }
.entry-thumb img { width: 100%; }
.entry-content { font-size: 18px; }
.entry-content > * + * { margin-top: 0; }
.entry-content h2 { margin-top: 1.6em; position: relative; padding-left: 18px; }
.entry-content h2::before { content: ""; position: absolute; left: 0; top: .2em; bottom: .2em; width: 5px; border-radius: 4px; background: linear-gradient(var(--sky), var(--sky-light)); }
.entry-content h3 { margin-top: 1.4em; }
.entry-content a { color: var(--sky-deep); background-image: linear-gradient(var(--sky-100), var(--sky-100)); background-size: 100% 35%; background-position: 0 100%; background-repeat: no-repeat; transition: background-size .3s var(--ease), color .25s; }
.entry-content a:hover { background-size: 100% 100%; color: var(--navy); }
.entry-content a.button, .entry-content .wp-block-button__link { background-image: none; color: var(--white); }
.entry-content ul, .entry-content ol { padding-left: 1.3em; margin: 0 0 1.4em; }
.entry-content li { margin-bottom: .4em; }
.entry-content ul li::marker { color: var(--sky); }
.entry-content img { border-radius: 10px; }
.entry-content blockquote, .wp-block-quote {
	margin: 2em 0; padding: 22px 28px;
	border-left: 5px solid var(--sky);
	background: var(--sky-50);
	border-radius: 0 var(--radius) var(--radius) 0;
	font-size: 1.1em; color: var(--navy);
}
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: 16px; }
.entry-content th { background: var(--sky); color: var(--white); text-align: left; font-family: var(--font-bold); font-weight: 700; }
.entry-content th, .entry-content td { padding: 12px 14px; border-bottom: 1px solid var(--line); }
.entry-content tr:nth-child(even) td { background: var(--sky-50); }
.entry-content pre, .entry-content code { background: var(--sky-50); border-radius: 6px; font-size: .9em; }
.entry-content code { padding: 2px 6px; }
.entry-content pre { padding: 18px; overflow: auto; }
.entry-content figcaption { font-size: 14px; color: var(--muted); text-align: center; margin-top: 8px; }
.alignwide { margin-left: -60px; margin-right: -60px; }
.aligncenter { margin-left: auto; margin-right: auto; }

.entry-footer { margin-top: 40px; padding-top: 26px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; align-items: center; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags a { padding: 6px 14px; border-radius: var(--radius-pill); background: var(--sky-50); color: var(--sky-deep); font-size: 14px; transition: all .25s var(--ease); }
.tags a:hover { background: var(--sky); color: var(--white); transform: translateY(-2px); }
.share { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.share-btn { padding: 6px 14px; border: 2px solid var(--sky-100); border-radius: var(--radius-pill); color: var(--sky-deep); font-family: var(--font-bold); font-weight: 700; font-size: 13px; transition: all .25s var(--ease); }
.share-btn:hover { background: var(--sky); border-color: var(--sky); color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow-sm); }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 40px; }
.post-nav-link { display: block; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); transition: all .3s var(--ease); }
.post-nav-link.next { text-align: right; grid-column: 2; }
.post-nav-link small { display: block; color: var(--sky); font-family: var(--font-bold); font-weight: 700; font-size: 13px; margin-bottom: 4px; }
.post-nav-link strong { color: var(--navy); font-family: var(--font-bold); font-weight: 700; font-weight: 700; line-height: 1.35; display: block; }
.post-nav-link:hover { border-color: var(--sky-200); background: var(--sky-50); transform: translateY(-4px); box-shadow: var(--shadow-card); }

.related { padding-bottom: 80px; }
.section-title { font-size: 1.6rem; margin-bottom: 26px; }

/* Sidebar */
.sidebar { position: sticky; top: 140px; display: flex; flex-direction: column; gap: 26px; }
.widget { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.widget-title { font-size: 1.05rem; text-transform: uppercase; letter-spacing: .03em; margin-bottom: 14px; }
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget li { padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.45; }
.widget li:last-child { border-bottom: 0; }
.widget li a { color: var(--navy); display: inline-block; transition: color .25s, transform .3s var(--ease); }
.widget li a:hover { color: var(--sky); transform: translateX(5px); }
.widget-contact { background: linear-gradient(150deg, var(--sky), var(--sky-light)); border: 0; color: var(--white); }
.widget-contact .widget-title { color: var(--white); }
.widget-contact .button { width: 100%; margin: 6px 0 14px; }
.widget-phone { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--white); font-family: var(--font-medium); font-weight: 500; }
.widget-phone:hover { color: var(--white); }
.widget-phone:hover svg { animation: ring .6s ease; }

/* Commentaires */
.comments-area { margin-top: 56px; }
.comment-list { list-style: none; padding: 0; }
.comment-list .comment-body { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 16px; }
.comment-list .children { list-style: none; padding-left: 28px; }
.comment-author img { border-radius: 50%; float: left; margin-right: 12px; }
.comment-meta a { color: var(--muted); font-size: 13px; }
.comment-form label { display: block; font-family: var(--font-medium); font-weight: 500; color: var(--navy); margin-bottom: 6px; }
.comment-form input:not([type="submit"]):not([type="checkbox"]), .comment-form textarea {
	width: 100%; padding: 12px 16px; border: 2px solid var(--line); border-radius: 12px; font: inherit; transition: border-color .25s, box-shadow .25s;
}
.comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 4px var(--sky-100); }

/* ==========================================================================
   Bandeau contact + footer
   ========================================================================== */
.cta-band { background: linear-gradient(120deg, var(--sky-50), var(--sky-100)); padding: 60px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-inner h2 { margin-bottom: .3em; }
.cta-inner p { margin: 0; max-width: 560px; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.cta-band .button-inverted { background: var(--sky); color: var(--white); }
.cta-band .button-inverted:hover { background: var(--sky-hover); color: #f7f7f7; }
.cta-band .button-ghost-inverted { color: var(--sky); border-color: var(--sky); }
.cta-band .button-ghost-inverted:hover { background: var(--sky); color: var(--white); }

.site-footer { background: var(--sky); color: var(--white); padding: 34px 0; font-size: 14px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.footer-brand .site-logo svg { width: 140px; }
.footer-brand p { margin: 0; opacity: .9; }
.footer-links ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { color: var(--white); position: relative; }
.footer-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: #fff; transform: scaleX(0); transform-origin: right; transition: transform .3s var(--ease); }
.footer-links a:hover { color: var(--white); }
.footer-links a:hover::after { transform: scaleX(1); transform-origin: left; }

.back-to-top {
	position: fixed; right: 22px; bottom: 22px; z-index: 60;
	width: 48px; height: 48px; border: 0; border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	background: var(--white); color: var(--sky);
	box-shadow: 0 8px 22px rgba(0, 130, 174, .28);
	cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(14px);
	transition: all .3s var(--ease);
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--sky); color: var(--white); transform: translateY(-4px); }
.back-to-top:hover svg { animation: bounce .7s ease infinite; }
@keyframes bounce { 50% { transform: translateY(-3px); } }

/* ==========================================================================
   Apparition au scroll
   ========================================================================== */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ==========================================================================
   Blocs Gutenberg
   ========================================================================== */
.wp-block-button.is-style-outline .wp-block-button__link { background: transparent; color: var(--sky); border-color: var(--sky); }
.wp-block-button.is-style-outline .wp-block-button__link:hover { background: var(--sky); color: var(--white); }
.wp-block-separator { border: 0; height: 2px; background: var(--sky-100); margin: 2.5em 0; }
.has-sky-background-color { background-color: var(--sky); }
.has-sky-light-background-color { background-color: var(--sky-50); }
.has-navy-color { color: var(--navy); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
	.post-grid { grid-template-columns: repeat(2, 1fr); }
	.layout-sidebar { grid-template-columns: 1fr; }
	.sidebar { position: static; }
	.alignwide { margin-left: 0; margin-right: 0; }
	.tagline { display: none; }
}
@media (max-width: 1120px) {
	.main-nav a { font-size: 14px; padding: 9px 10px; }
}
@media (max-width: 820px) {
	.site-header::before { display: none; }
	.header-top { height: 68px; justify-content: space-between; }
	.branding { position: static; }
	.menu-toggle { display: block; }
	.header-phone span { display: none; }
	.header-actions { gap: 12px; }
	.main-nav { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease); }
	.main-nav > .container { overflow: hidden; }
	.main-nav.is-open { grid-template-rows: 1fr; }
	.main-nav ul { flex-direction: column; gap: 0; padding: 6px 0 14px; }
	.main-nav a { padding: 12px 10px; border-radius: 8px; font-size: 15px; border-bottom: 1px solid rgba(255, 255, 255, .2); }
	.main-nav ul { justify-content: flex-start; }
	.main-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: transparent; padding: 0 0 0 16px; }
	.main-nav .sub-menu a { color: var(--white); }
}
@media (max-width: 640px) {
	body { font-size: 16px; }
	.container { padding: 0 16px; }
	.post-grid { grid-template-columns: 1fr; }
	.site-logo svg { width: 150px; }
	.header-top .button-inverted { padding: 10px 14px; font-size: 14px; }
	.hero { padding: 46px 0 96px; }
	.post-nav { grid-template-columns: 1fr; }
	.post-nav-link.next { grid-column: auto; }
	.entry-content { font-size: 17px; }
	.footer-inner, .footer-brand { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 420px) {
	.header-top .button-inverted { display: none; }
}

/* Accessibilité : réduction des animations */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
	.js .reveal { opacity: 1; transform: none; }
}
