/*
Theme Name: Azur Sentinelle
Theme URI: https://azur-sentinelle.fr
Author: Azur Sentinelle
Description: Thème sur mesure pour Azur Sentinelle, installateur d'alarmes et de vidéosurveillance Ajax à Cannes. Fond noir, typographie Roboto hébergée localement, compatible Elementor et Elementor Pro (Theme Builder).
Version: 1.2.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: azur-sentinelle
Tags: dark, one-column, custom-logo, custom-menu, full-width-template
*/

/* ---------- Polices (hébergées localement, sans Google) ---------- */
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 300; font-display: swap; src: url("assets/fonts/roboto-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/roboto-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 500; font-display: swap; src: url("assets/fonts/roboto-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 700; font-display: swap; src: url("assets/fonts/roboto-latin-700-normal.woff2") format("woff2"); }

/* ---------- Variables ---------- */
:root {
	--as-black: #000000;
	--as-surface-1: #0A0A0A;
	--as-surface-2: #111111;
	--as-surface-3: #161616;
	--as-surface-4: #1F1F1F;
	--as-line: #262626;
	--as-white: #FFFFFF;
	--as-text: #C7C7C7;
	--as-text-2: #A3A3A3;
	--as-text-3: #8F8F8F;
	--as-accent: #5AE4AA;
	--as-accent-hover: #1DCF94;
	--as-on-accent: #181818;
	--as-radius: 24px;
	--as-wrap: 1240px;
	--as-font: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--as-black);
	color: var(--as-text);
	font-family: var(--as-font);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--as-white); text-decoration: none; }
a:hover { color: var(--as-accent); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
	outline: 2px solid var(--as-accent);
	outline-offset: 3px;
}
h1, h2, h3, h4, h5, h6 { color: var(--as-white); font-family: var(--as-font); line-height: 1.15; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
address { font-style: normal; }

.as-wrap { max-width: var(--as-wrap); margin: 0 auto; padding: 0 40px; }
.as-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.as-skip { position: absolute; left: 16px; top: -60px; z-index: 1000; background: var(--as-accent); color: var(--as-black); padding: 10px 16px; border-radius: 8px; }
.as-skip:focus { top: 16px; color: var(--as-black); }
section[id] { scroll-margin-top: 80px; }

/* ---------- Boutons ---------- */
.as-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 52px; padding: 0 28px; border-radius: 999px;
	font-family: var(--as-font); font-weight: 500; font-size: 16px; line-height: 1;
	border: 1px solid transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.as-btn--light { background: var(--as-accent); color: var(--as-on-accent); }
.as-btn--light:hover { background: var(--as-accent-hover); color: var(--as-on-accent); }
.as-btn--ghost { border-color: #4D4D4D; color: var(--as-white); background: transparent; }
.as-btn--ghost:hover { border-color: var(--as-accent); color: var(--as-accent); }
.as-btn--sm { min-height: 44px; padding: 0 22px; font-size: 15px; }
.as-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- En-tête ---------- */
.as-header { position: sticky; top: 0; z-index: 100; background: rgba(0,0,0,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--as-surface-4); }
.admin-bar .as-header { top: 32px; }
.as-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.as-brand { display: flex; align-items: center; gap: 12px; color: var(--as-white); }
.as-brand:hover { color: var(--as-white); }
.as-logo-mark { color: var(--as-accent); flex: none; }
.as-brand__name { font-weight: 700; font-size: 18px; letter-spacing: .04em; }
.as-brand__logo { max-height: 44px; width: auto; }
.as-header__menu { display: flex; align-items: center; gap: 40px; }
.as-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 32px; font-size: 15px; }
.as-menu li { position: relative; }
.as-menu .sub-menu { display: none; position: absolute; left: -16px; top: 100%; list-style: none; margin: 0; padding: 12px 16px; background: var(--as-surface-3); border-radius: 12px; min-width: 220px; }
.as-menu li:hover > .sub-menu, .as-menu li:focus-within > .sub-menu { display: block; }
.as-menu .sub-menu a { display: block; padding: 6px 0; }
.as-header__cta { display: flex; align-items: center; gap: 20px; }
.as-header__phone { font-size: 15px; white-space: nowrap; }
.as-nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid #333; border-radius: 10px; background: transparent; cursor: pointer; position: relative; }
.as-nav-toggle__bar, .as-nav-toggle__bar::before, .as-nav-toggle__bar::after { position: absolute; left: 11px; width: 20px; height: 2px; background: var(--as-white); content: ""; transition: transform .2s, opacity .2s; }
.as-nav-toggle__bar { top: 20px; }
.as-nav-toggle__bar::before { left: 0; top: -6px; }
.as-nav-toggle__bar::after { left: 0; top: 6px; }
.is-open .as-nav-toggle__bar { background: transparent; }
.is-open .as-nav-toggle__bar::before { transform: translateY(6px) rotate(45deg); }
.is-open .as-nav-toggle__bar::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Sections ---------- */
.as-section { padding: 128px 0; background: var(--as-black); }
.as-section--alt { background: var(--as-surface-1); }
.as-section--lined { border-top: 1px solid #1A1A1A; border-bottom: 1px solid #1A1A1A; }
.as-eyebrow { font-size: 14px; font-weight: 500; color: var(--as-text-3); margin: 0; }
.as-h2 { font-weight: 300; font-size: 52px; line-height: 1.08; letter-spacing: -.02em; margin: 0; color: var(--as-white); }
.as-h2 strong, .as-hero__title strong { font-weight: 500; }
.as-head { display: flex; flex-direction: column; gap: 18px; max-width: 760px; margin-bottom: 64px; }
.as-head__lead { margin: 0; max-width: 620px; color: var(--as-text-2); }
.as-head--split { max-width: none; flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.as-head--split > div { display: flex; flex-direction: column; gap: 18px; max-width: 700px; }
.as-head--split .as-head__lead { max-width: 400px; }

/* ---------- Héros ---------- */
.as-hero { background: var(--as-black); }
.as-hero__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 64px; padding-top: 112px; padding-bottom: 120px; }
.as-hero__text { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.as-hero__text .as-eyebrow { font-size: 15px; }
.as-hero__title { margin: 0; font-weight: 300; font-size: 72px; line-height: 1.02; letter-spacing: -.03em; color: var(--as-white); }
.as-hero__lead { margin: 0; max-width: 500px; font-size: 19px; line-height: 1.55; color: #BDBDBD; }
.as-hero__badge { padding-top: 12px; }
.as-badge { width: 180px; height: auto; }
.as-hero__badge .as-ph { width: 180px; height: 56px; border-radius: 10px; font-size: 12px; }

/* Héros plein écran avec vidéo de fond */
.as-hero--full { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
.as-hero--full .as-hero__inner { position: relative; z-index: 2; width: 100%; padding-top: 160px; padding-bottom: 112px; }
.as-hero--full .as-hero__text { max-width: 640px; flex: 0 1 640px; }
.as-hero--full .as-hero__lead { color: #E0E0E0; }
.as-hero--full .as-eyebrow { color: #D0D0D0; }
.as-hero--full .as-btn--ghost { background: rgba(0,0,0,.35); border-color: rgba(255,255,255,.55); }
.as-hero__media { position: absolute; inset: 0; z-index: 0; background: #0B0B0B; }
.as-hero__poster, .as-hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.as-hero__video { opacity: 0; transition: opacity .8s ease; }
.as-hero__video.is-playing { opacity: 1; }
/* Voile uni pour la lisibilité du texte (réglable dans l'outil de personnalisation) */
.as-hero__shade { position: absolute; inset: 0; background: #000; opacity: var(--as-dim, .45); }
.as-hero__hint { position: absolute; top: 50%; right: 40px; z-index: 1; max-width: 320px; padding: 16px; border: 1px dashed #444; border-radius: 12px; color: #9E9E9E; font-size: 13px; }
.as-hero__toggle, .as-hero__scroll {
	position: absolute; z-index: 3; bottom: 32px; width: 44px; height: 44px; border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	background: rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.35); color: var(--as-white); cursor: pointer;
}
.as-hero__toggle { right: 40px; }
.as-hero__toggle[hidden] { display: none; }
.as-hero__toggle .as-icon-play { display: none; }
.as-hero__toggle[aria-pressed="true"] .as-icon-play { display: block; }
.as-hero__toggle[aria-pressed="true"] .as-icon-pause { display: none; }
.as-hero__scroll { left: 50%; margin-left: -22px; }
.as-hero__toggle:hover, .as-hero__scroll:hover { background: rgba(0,0,0,.7); color: var(--as-white); border-color: var(--as-white); }

/* En-tête transparent au-dessus de la vidéo, opaque au défilement */
.as-header--overlay { margin-bottom: -73px; background: transparent; border-bottom-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; transition: background .3s, border-color .3s; }
.as-header--overlay.is-scrolled, .as-header--overlay.is-open { background: rgba(0,0,0,.92); border-bottom-color: var(--as-surface-4); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }

/* Emplacement d'image vide */
.as-ph { background: var(--as-surface-3); border-radius: 16px; display: flex; align-items: center; justify-content: center; text-align: center; color: #9E9E9E; font-size: 13px; line-height: 1.5; padding: 16px; }

/* ---------- Bandeau villes ---------- */
.as-strip { background: #0E0E0E; border-top: 1px solid var(--as-surface-4); border-bottom: 1px solid var(--as-surface-4); }
.as-strip__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding-top: 22px; padding-bottom: 22px; font-size: 15px; }
.as-strip__label { font-weight: 500; color: var(--as-white); }
.as-strip__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 28px; color: #BDBDBD; }

/* ---------- Atouts ---------- */
.as-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 48px 40px; }
.as-feature { padding-top: 24px; border-top: 1px solid var(--as-white); }
.as-feature h3 { font-size: 22px; font-weight: 500; margin: 0 0 14px; }
.as-feature p { margin: 0; font-size: 16px; color: var(--as-text-2); }

/* ---------- Cartes solutions ---------- */
.as-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 24px; }
.as-card { background: var(--as-surface-3); border-radius: var(--as-radius); overflow: hidden; display: flex; flex-direction: column; }
.as-card__img { width: 100%; height: 240px; object-fit: cover; }
.as-card .as-ph { height: 240px; border-radius: 0; background: var(--as-surface-4); }
.as-card__body { padding: 32px; display: flex; flex-direction: column; gap: 16px; flex-grow: 1; }
.as-card h3 { margin: 0; font-size: 28px; font-weight: 500; line-height: 1.2; }
.as-card ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 16px; color: var(--as-text-2); }
.as-card__link { margin-top: auto; font-weight: 500; color: var(--as-accent); }
.as-card--light { background: var(--as-white); }
.as-card--light .as-ph { background: #EDEDED; color: #5C5C5C; }
.as-card--light h3, .as-card--light .as-card__link { color: var(--as-black); }
.as-card--light .as-eyebrow { color: #5C5C5C; }
.as-card--light ul { color: #3D3D3D; }
.as-card--light .as-card__link:hover { color: #555; }

/* ---------- Équipements ---------- */
.as-products { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 40px 24px; }
.as-product__img, .as-product .as-ph { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: var(--as-surface-2); border-radius: 16px; margin-bottom: 20px; }
.as-product h3 { font-size: 21px; font-weight: 500; margin: 0 0 6px; }
.as-product p { margin: 0; font-size: 15.5px; color: var(--as-text-2); }

/* ---------- Étapes ---------- */
.as-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 40px; }
.as-steps li { padding-top: 24px; border-top: 1px solid var(--as-white); }
.as-steps__num { display: block; font-size: 44px; font-weight: 300; color: var(--as-accent); line-height: 1; margin-bottom: 12px; }
.as-steps h3 { font-size: 21px; font-weight: 500; margin: 0 0 12px; }
.as-steps p { margin: 0; font-size: 16px; color: var(--as-text-2); }

/* ---------- Zones ---------- */
.as-split { display: flex; flex-wrap: wrap; gap: 64px; align-items: flex-start; }
.as-split__side { flex: 1 1 380px; min-width: 0; margin-bottom: 0; }
.as-split__main { flex: 1 1 560px; min-width: 0; }
.as-cities { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 32px; }
.as-cities a { padding: 18px 0; border-bottom: 1px solid var(--as-line); display: flex; justify-content: space-between; gap: 12px; }
.as-cities a span { color: var(--as-text-3); }
.as-cities a:hover span { color: var(--as-accent); }

/* ---------- Contact ---------- */
.as-contact { display: flex; flex-direction: column; gap: 8px; padding-top: 12px; color: var(--as-text-3); font-size: 15px; }
.as-contact a { color: var(--as-text); font-size: 17px; }
.as-contact .as-contact__phone { font-size: 30px; font-weight: 500; color: var(--as-white); }
.as-form { background: var(--as-surface-3); border-radius: var(--as-radius); padding: 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.as-form--shortcode { display: block; }
.as-form label { font-size: 14px; font-weight: 500; color: var(--as-text); display: flex; flex-direction: column; gap: 8px; }
.as-form input, .as-form select, .as-form textarea {
	font-family: var(--as-font); font-size: 16px; color: var(--as-white); background: #0A0A0A;
	border: 1px solid #333; border-radius: 12px; padding: 14px 16px; width: 100%;
}
.as-form input::placeholder, .as-form textarea::placeholder { color: #7A7A7A; }
.as-form__full { grid-column: 1 / -1; }
.as-form__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.as-form__legal { font-size: 13px; color: var(--as-text-3); max-width: 320px; }
.as-form__notice { grid-column: 1 / -1; margin: 0; padding: 14px 16px; border-radius: 12px; font-size: 15px; }
.as-form__notice--ok { background: #0F2A17; color: #B6F0C6; }
.as-form__notice--err { background: #2E1212; color: #F6C1C1; }
.as-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Pages et articles ---------- */
.as-page__header { padding: 96px 0 48px; border-bottom: 1px solid var(--as-surface-4); margin-bottom: 64px; }
.as-page__title { font-weight: 300; font-size: 56px; letter-spacing: -.02em; margin: 0; }
.as-prose { max-width: 820px; padding-bottom: 128px; }
.as-prose h2 { font-size: 34px; font-weight: 500; margin: 2em 0 .6em; }
.as-prose h3 { font-size: 24px; font-weight: 500; margin: 1.6em 0 .5em; }
.as-prose a { text-decoration: underline; text-underline-offset: 3px; }
.as-prose ul, .as-prose ol { padding-left: 22px; }
.as-prose li { margin-bottom: .4em; }
.as-prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 24px; border-left: 2px solid var(--as-white); color: var(--as-white); }
.as-prose img { border-radius: 16px; }
.as-prose table { width: 100%; border-collapse: collapse; }
.as-prose th, .as-prose td { padding: 12px; border-bottom: 1px solid var(--as-line); text-align: left; }
.as-prose .wp-block-button__link { background: var(--as-accent); color: var(--as-on-accent); border-radius: 999px; padding: 14px 28px; text-decoration: none; }
.as-post__thumb { border-radius: var(--as-radius); margin-bottom: 40px; }
.as-posts { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px 24px; padding-bottom: 96px; }
.as-post-card__img { border-radius: 16px; margin-bottom: 16px; aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.as-post-card h2 { font-size: 22px; font-weight: 500; }
.as-post-card p { color: var(--as-text-2); font-size: 15.5px; }
.as-pagination { padding-bottom: 96px; }
.alignwide { max-width: 1100px; margin-left: auto; margin-right: auto; }
.alignfull { width: 100vw; margin-left: calc(50% - 50vw); }

/* ---------- Pied de page ---------- */
.as-footer { background: var(--as-black); color: var(--as-text-3); padding: 64px 0 40px; border-top: 1px solid var(--as-surface-4); font-size: 15px; }
.as-footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; margin-bottom: 40px; }
.as-footer__brand { display: flex; flex-direction: column; gap: 10px; max-width: 380px; }
.as-footer__name { font-weight: 700; font-size: 18px; letter-spacing: .04em; color: var(--as-white); }
.as-footer__address { line-height: 1.7; }
.as-footer__address a, .as-footer__col a { color: var(--as-text-2); }
.as-footer__address a:hover, .as-footer__col a:hover { color: var(--as-accent); }
.as-footer__nav { display: flex; flex-wrap: wrap; gap: 64px; }
.as-footer__col { display: flex; flex-direction: column; gap: 10px; }
.as-footer__title { color: var(--as-white); font-weight: 500; }
.as-footer__menu { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.as-footer__menu a { color: var(--as-text-2); }
.as-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 24px; border-top: 1px solid var(--as-line); font-size: 13px; }

/* ---------- Elementor : le thème donne la police et les couleurs de base ---------- */
:root { --e-global-color-primary: #FFFFFF; --e-global-color-secondary: #A3A3A3; --e-global-color-text: #C7C7C7; --e-global-color-accent: #5AE4AA; }
.elementor-page .as-main { overflow-x: hidden; }
.elementor-widget-text-editor, .elementor-widget-heading .elementor-heading-title { font-family: var(--as-font); }

/* ---------- Mobile ---------- */
@media (max-width: 1080px) {
	.as-nav-toggle { display: block; }
	.as-header__menu {
		display: none; position: absolute; left: 0; right: 0; top: 100%;
		flex-direction: column; align-items: flex-start; gap: 24px;
		padding: 24px 40px 32px; background: var(--as-black); border-bottom: 1px solid var(--as-surface-4);
	}
	.as-header.is-open .as-header__menu { display: flex; }
	.as-menu { flex-direction: column; gap: 16px; font-size: 18px; }
	.as-menu .sub-menu { position: static; display: block; background: none; padding: 8px 0 0 16px; }
	.as-header__cta { flex-wrap: wrap; }
}
@media (max-width: 782px) {
	.admin-bar .as-header { top: 46px; }
}
@media (max-width: 760px) {
	.as-wrap { padding: 0 20px; }
	.as-header__menu { padding: 24px 20px 32px; }
	.as-section { padding: 88px 0; }
	.as-h2 { font-size: 36px; }
	.as-hero__inner { padding-top: 64px; padding-bottom: 80px; gap: 48px; }
	.as-hero__title { font-size: 46px; }
	.as-hero--full .as-hero__inner { padding-top: 120px; padding-bottom: 104px; }
	.as-hero__toggle { right: 20px; bottom: 24px; }
	.as-hero__scroll { bottom: 24px; }
	.as-hero__hint { right: 20px; left: 20px; top: 96px; max-width: none; }
	.as-head { margin-bottom: 40px; }
	.as-cards { grid-template-columns: 1fr; }
	.as-form { padding: 24px; }
	.as-page__title { font-size: 38px; }
	.as-page__header { padding: 64px 0 32px; margin-bottom: 40px; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
}
