/*
Theme Name:   Aisance Domotique Child
Theme URI:    https://www.aisance-domotique.fr
Description:  Thème enfant Aisance Domotique — Design anthracite & turquoise premium
Author:       Aisance Domotique
Author URI:   https://www.aisance-domotique.fr
Template:     hello-elementor
Version:      1.0.0
Text Domain:  aisance-domotique-child
*/

/* =============================================
   VARIABLES & RESET
   ============================================= */
:root {
  --ad-bg:            #f4f4f2;
  --ad-surface:       #ffffff;
  --ad-dark:          #1e2025;
  --ad-anthracite:    #2c2f36;
  --ad-mid:           #3d4149;
  --ad-turq:          #00b4a6;
  --ad-turq-light:    #e0f7f5;
  --ad-turq-mid:      #4dd4ca;
  --ad-turq-dark:     #007d75;
  --ad-text:          #1e2025;
  --ad-muted:         rgba(30,32,37,0.45);
  --ad-border:        rgba(30,32,37,0.08);
  --ad-font-display:  'Lora', Georgia, serif;
  --ad-font-body:     'Syne', 'Inter', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: var(--ad-font-body);
  background: var(--ad-bg);
  color: var(--ad-text);
  -webkit-font-smoothing: antialiased;
}

/* =============================================
   TYPOGRAPHIE
   ============================================= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--ad-font-display);
  font-weight: 400;
  line-height: 1.15;
  color: var(--ad-dark);
}

p { line-height: 1.85; }

/* =============================================
   NAVIGATION
   ============================================= */
.site-header,
header.site-header {
  background: var(--ad-dark) !important;
  border-bottom: none !important;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.elementor-nav-menu a,
.site-navigation a {
  font-family: var(--ad-font-body);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45) !important;
  transition: color 0.2s;
}

.elementor-nav-menu a:hover,
.site-navigation a:hover {
  color: var(--ad-turq-mid) !important;
}

.site-logo .site-title a,
.site-logo a {
  font-family: var(--ad-font-display);
  color: #fff !important;
  font-size: 1.1rem;
  letter-spacing: 0.06em;
}

/* =============================================
   BOUTONS GLOBAUX
   ============================================= */
.elementor-button,
.wp-block-button__link,
button.ad-btn {
  font-family: var(--ad-font-body);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  border-radius: 2px;
  transition: all 0.2s;
  cursor: pointer;
}

/* Bouton primaire turquoise */
.elementor-button.btn-turq,
.ad-btn-turq {
  background: var(--ad-turq) !important;
  color: var(--ad-dark) !important;
  border: none !important;
}
.ad-btn-turq:hover { background: var(--ad-turq-mid) !important; }

/* Bouton outline blanc */
.ad-btn-outline {
  background: transparent !important;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,0.2) !important;
}
.ad-btn-outline:hover { border-color: rgba(255,255,255,0.45) !important; }

/* Bouton sombre */
.ad-btn-dark {
  background: var(--ad-dark) !important;
  color: #fff !important;
  border: none !important;
}

/* =============================================
   SECTION HERO — page d'accueil
   ============================================= */
.ad-hero {
  background: var(--ad-dark);
  min-height: 88vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  overflow: hidden;
}

.ad-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 50%; bottom: 0;
  width: 1px;
  background: rgba(0,180,166,0.12);
  pointer-events: none;
}

.ad-hero-glow {
  position: absolute;
  right: -50px; top: 50%;
  transform: translateY(-50%);
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(0,180,166,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.ad-hero-left {
  padding: 5rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.ad-hero-right {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  position: relative;
  z-index: 2;
}

/* Badge animé */
.ad-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(0,180,166,0.35);
  border-radius: 2px;
  padding: 0.3rem 0.8rem;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ad-turq-mid);
  margin-bottom: 2rem;
  width: fit-content;
}

.ad-tag-pulse {
  width: 5px; height: 5px;
  background: var(--ad-turq);
  border-radius: 50%;
  animation: ad-pulse 2s infinite;
  flex-shrink: 0;
}

@keyframes ad-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.25; }
}

/* Titre hero */
.ad-hero-title {
  font-family: var(--ad-font-display);
  font-size: clamp(2.4rem, 4vw, 3.8rem);
  font-weight: 400;
  line-height: 1.12;
  color: #fff;
  margin-bottom: 1.5rem;
}
.ad-hero-title em {
  font-style: italic;
  color: var(--ad-turq-mid);
}

/* Sous-titre hero */
.ad-hero-sub {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.4);
  line-height: 1.9;
  max-width: 400px;
  margin-bottom: 2.5rem;
}

/* KPIs hero */
.ad-hero-kpis {
  display: flex;
  gap: 2.5rem;
  margin-top: 1rem;
}

.ad-kpi {
  border-left: 2px solid rgba(0,180,166,0.3);
  padding-left: 1rem;
}

.ad-kpi-n {
  font-family: var(--ad-font-display);
  font-size: 1.8rem;
  color: var(--ad-turq-mid);
  line-height: 1;
}

.ad-kpi-l {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-top: 0.25rem;
}

/* =============================================
   DASHBOARD WIDGET (hero droite)
   ============================================= */
.ad-dash {
  width: 340px;
  background: #23272f;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(0,180,166,0.15);
  box-shadow: 0 32px 64px rgba(0,0,0,0.4);
}

.ad-dash-header {
  background: #1a1e25;
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(0,180,166,0.1);
}

.ad-dash-title {
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ad-dash-status {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  color: var(--ad-turq-mid);
}

.ad-dash-dot {
  width: 5px; height: 5px;
  background: var(--ad-turq);
  border-radius: 50%;
}

.ad-dash-body { padding: 16px; display: flex; flex-direction: column; gap: 10px; }

.ad-scene-row { display: flex; gap: 8px; }

.ad-scene-btn {
  flex: 1;
  padding: 8px 0;
  background: #1a1e25;
  border: 1px solid rgba(0,180,166,0.1);
  border-radius: 3px;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  text-align: center;
  cursor: pointer;
  font-family: var(--ad-font-body);
}

.ad-scene-btn.on {
  background: rgba(0,180,166,0.15);
  border-color: var(--ad-turq);
  color: var(--ad-turq-mid);
}

.ad-dash-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.ad-dc {
  background: #1a1e25;
  border-radius: 4px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,0.04);
}

.ad-dc-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.ad-dc-label {
  font-size: 9px;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ad-dc-val {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  line-height: 1;
}

.ad-dc-val span { font-size: 11px; color: rgba(255,255,255,0.3); font-weight: 400; }

.ad-dc-bar {
  height: 2px;
  background: rgba(255,255,255,0.06);
  border-radius: 1px;
  margin-top: 8px;
  overflow: hidden;
}

.ad-dc-fill { height: 100%; background: var(--ad-turq); border-radius: 1px; }

.ad-dash-footer {
  background: #1a1e25;
  padding: 10px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(0,180,166,0.08);
}

.ad-df-text { font-size: 9px; color: rgba(255,255,255,0.25); letter-spacing: 0.08em; }
.ad-df-val  { font-size: 10px; color: var(--ad-turq-mid); font-weight: 500; }

/* =============================================
   BANDE MARQUES PARTENAIRES
   ============================================= */
.ad-brands {
  padding: 1.5rem 3rem;
  background: var(--ad-surface);
  border-bottom: 1px solid var(--ad-border);
  display: flex;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.ad-brands-label {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ad-muted);
  white-space: nowrap;
}

.ad-brands-sep {
  width: 1px; height: 18px;
  background: var(--ad-border);
  flex-shrink: 0;
}

.ad-brand {
  font-size: 0.78rem;
  color: rgba(30,32,37,0.28);
  letter-spacing: 0.06em;
  font-weight: 600;
}

/* =============================================
   SECTIONS GÉNÉRIQUES
   ============================================= */
.ad-section { padding: 5rem 3rem; }

.ad-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.8rem;
}

.ad-eyebrow-line {
  width: 1.8rem; height: 2px;
  background: var(--ad-turq);
  flex-shrink: 0;
}

.ad-eyebrow-text {
  font-size: 0.67rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ad-turq-dark);
  font-weight: 600;
}

.ad-section-title {
  font-family: var(--ad-font-display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 400;
  color: var(--ad-dark);
  line-height: 1.2;
  margin-bottom: 3rem;
}

/* =============================================
   CARTES SERVICES
   ============================================= */
.ad-srv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--ad-border);
}

.ad-srv {
  background: var(--ad-surface);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  transition: background 0.2s;
}

.ad-srv::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--ad-turq);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}

.ad-srv:hover { background: #fafafa; }
.ad-srv:hover::before { transform: scaleX(1); }

.ad-srv-num {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ad-turq);
  font-weight: 600;
  margin-bottom: 1rem;
}

.ad-srv-name {
  font-family: var(--ad-font-display);
  font-size: 1.25rem;
  color: var(--ad-dark);
  margin-bottom: 0.8rem;
}

.ad-srv-desc {
  font-size: 0.8rem;
  color: var(--ad-muted);
  line-height: 1.85;
}

.ad-srv-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ad-turq-dark);
  margin-top: 1.5rem;
  cursor: pointer;
  font-weight: 600;
  text-decoration: none;
}

/* =============================================
   SECTION SPLIT (approche)
   ============================================= */
.ad-split {
  margin: 0 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--ad-border);
}

.ad-split-left {
  padding: 4rem;
  background: var(--ad-surface);
}

.ad-split-left p {
  font-size: 0.84rem;
  color: var(--ad-muted);
  line-height: 1.9;
  margin-bottom: 1rem;
}

.ad-split-right {
  background: var(--ad-anthracite);
  padding: 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.2rem;
}

.ad-spec {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.2rem;
  background: rgba(255,255,255,0.04);
  border-radius: 4px;
  border-left: 2px solid var(--ad-turq);
}

.ad-spec-ico {
  flex-shrink: 0;
  width: 32px; height: 32px;
  background: rgba(0,180,166,0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ad-spec-ico svg { width: 14px; height: 14px; }

.ad-spec-n {
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.2rem;
}

.ad-spec-d {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.35);
}

/* =============================================
   RÉALISATIONS
   ============================================= */
.ad-r-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 1.2rem;
}

.ad-r-card {
  background: var(--ad-surface);
  border: 1px solid var(--ad-border);
  border-radius: 4px;
  overflow: hidden;
  transition: border-color 0.2s;
}

.ad-r-card:hover { border-color: rgba(0,180,166,0.3); }

.ad-r-img {
  width: 100%;
  object-fit: cover;
  display: block;
}

.ad-r-img-placeholder {
  background: linear-gradient(135deg, #1e2025, #2c2f36);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ad-r-img-placeholder.feat { height: 220px; }
.ad-r-img-placeholder.sm   { height: 120px; background: linear-gradient(135deg, #eef2f7, #e2eaf2); }

.ad-r-body { padding: 1.3rem; }

.ad-r-tag {
  font-size: 0.63rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ad-turq-dark);
  margin-bottom: 0.4rem;
  font-weight: 600;
}

.ad-r-name {
  font-family: var(--ad-font-display);
  font-size: 1.05rem;
  color: var(--ad-dark);
  margin-bottom: 0.2rem;
}

.ad-r-loc {
  font-size: 0.72rem;
  color: var(--ad-muted);
}

.ad-r-more {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80px;
  border: 1px dashed rgba(0,180,166,0.25);
  border-radius: 4px;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ad-turq-dark);
  cursor: pointer;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}

.ad-r-more:hover {
  border-color: var(--ad-turq);
  background: var(--ad-turq-light);
}

/* =============================================
   BANDE CTA CONTACT
   ============================================= */
.ad-cta-band {
  margin: 0 3rem 5rem;
  background: var(--ad-anthracite);
  border-radius: 6px;
  padding: 3.5rem 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.ad-cta-glow {
  position: absolute;
  right: -50px; top: 50%;
  transform: translateY(-50%);
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(0,180,166,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.ad-cta-left { position: relative; z-index: 1; }

.ad-cta-title {
  font-family: var(--ad-font-display);
  font-size: 2rem;
  font-weight: 400;
  color: #fff;
  margin: 0.8rem 0 0.4rem;
}

.ad-cta-sub {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
}

.ad-cta-right {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  align-items: flex-end;
  position: relative;
  z-index: 1;
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: var(--ad-dark) !important;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.ad-footer-inner {
  padding: 3rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
}

.ad-ft-logo {
  font-family: var(--ad-font-display);
  font-size: 1rem;
  color: #fff;
  margin-bottom: 0.8rem;
}

.ad-ft-logo span { color: var(--ad-turq-mid); }

.ad-ft-text {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
  line-height: 1.8;
}

.ad-ft-head {
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
  margin-bottom: 1rem;
  font-weight: 600;
}

.ad-ft-links { display: flex; flex-direction: column; gap: 0.6rem; }

.ad-ft-links a {
  font-size: 0.76rem;
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  transition: color 0.2s;
}

.ad-ft-links a:hover { color: var(--ad-turq-mid); }

.ad-ft-bottom {
  padding: 1.2rem 3rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  display: flex;
  justify-content: space-between;
}

.ad-ft-copy {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.2);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .ad-hero             { grid-template-columns: 1fr; min-height: auto; }
  .ad-hero-right       { display: none; }
  .ad-hero-left        { padding: 4rem 2rem; }
  .ad-split            { grid-template-columns: 1fr; margin: 0 1.5rem; }
  .ad-split-right      { padding: 2.5rem; }
  .ad-srv-grid         { grid-template-columns: 1fr; gap: 1px; }
  .ad-r-grid           { grid-template-columns: 1fr; }
  .ad-cta-band         { flex-direction: column; gap: 2rem; text-align: center; margin: 0 1.5rem 3rem; }
  .ad-cta-right        { align-items: center; }
  .ad-footer-inner     { grid-template-columns: 1fr 1fr; gap: 2rem; padding: 2rem; }
  .ad-section          { padding: 3rem 1.5rem; }
  .ad-brands           { padding: 1.2rem 1.5rem; gap: 1.5rem; }
}

@media (max-width: 640px) {
  .ad-hero-kpis        { gap: 1.5rem; }
  .ad-footer-inner     { grid-template-columns: 1fr; }
  .ad-split-left       { padding: 2rem; }
  .ad-cta-band         { padding: 2.5rem 2rem; }
}
