/**
Theme Name: Astra Child
Author: Brainstorm Force
Author URI: http://wpastra.com/about/
Description: Avelis Sécurité - Thème enfant Astra personnalisé
Version: 2.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: astra-child
Template: astra
*/

/* ============================================================
   VARIABLES & RESET
============================================================ */
:root {
  --red:        #E62C2A;
  --red-dark:   #C42220;
  --red-light:  #FDE8E8;
  --blue:       #44B9D9;
  --blue-mid:   #2FA3C3;
  --blue-light: #6DCDE6;
  --black:      #0D0D0D;
  --dark:       #111827;
  --dark-2:     #1F2937;
  --gray:       #6B7280;
  --gray-light: #D1D5DB;
  --light:      #F3F4F6;
  --white:      #FFFFFF;
  --font:       'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --transition: 0.3s ease;
  --shadow:     0 4px 24px rgba(0,0,0,0.12);
  --shadow-lg:  0 8px 48px rgba(0,0,0,0.2);
  --radius:     8px;
  --radius-lg:  16px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
.avelis-home ul, .avelis-home ol { list-style: none; margin: 0; }
.header-nav ul, .footer-col ul, .hero-status-list, .hero-trust, .certif-badges, .why-list, .footer-social { padding: 0; }
body { font-family: var(--font); color: var(--dark); background: var(--white); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
img { display: block; max-width: 100%; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: var(--font); }

/* ============================================================
   UTILITIES
============================================================ */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.text-center { text-align: center; }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(224,36,36,0.12); color: var(--red);
  border: 1px solid rgba(224,36,36,0.3);
  padding: 6px 14px; border-radius: 20px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
}

/* ============================================================
   BUTTONS
============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: var(--radius);
  font-size: 15px; font-weight: 600; letter-spacing: 0.02em;
  transition: all var(--transition); white-space: nowrap;
}
.btn-primary {
  background: var(--red); color: var(--white);
  box-shadow: 0 4px 16px rgba(224,36,36,0.35);
}
.btn-primary:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: 0 6px 24px rgba(224,36,36,0.45); color: var(--white); }
.btn-outline {
  background: transparent; color: var(--white);
  border: 2px solid rgba(255,255,255,0.5);
}
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.08); color: var(--white); }
.btn-dark {
  background: var(--dark); color: var(--white);
}
.btn-dark:hover { background: var(--dark-2); transform: translateY(-2px); color: var(--white); }

/* ============================================================
   SECTION HEADINGS
============================================================ */
.section-label {
  font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--red); margin-bottom: 12px;
}
.section-title {
  font-size: clamp(28px, 4vw, 44px); font-weight: 800; line-height: 1.2;
  color: var(--dark); margin-bottom: 16px;
}
.section-title span { color: var(--red); }
.section-subtitle {
  font-size: 17px; color: var(--gray); max-width: 580px; line-height: 1.7;
}
.section-title.light, .section-subtitle.light { color: var(--white); }
.section-label.light { color: rgba(255,255,255,0.7); }

/* ============================================================
   TOPBAR
============================================================ */
.avelis-topbar {
  background: var(--dark);
  padding: 8px 0;
  font-size: 13px;
  color: rgba(255,255,255,0.85);
}
.avelis-topbar .container {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px;
}
.topbar-left { display: flex; gap: 20px; }
.topbar-right { display: flex; gap: 20px; }
.topbar-left a, .topbar-right a {
  color: rgba(255,255,255,0.85); display: flex; align-items: center; gap: 6px;
}
.topbar-left a:hover, .topbar-right a:hover { color: var(--white); }

/* ============================================================
   HEADER / NAVIGATION
============================================================ */
.avelis-header {
  background: var(--white);
  position: sticky; top: 0; z-index: 1000;
  border-bottom: 2px solid var(--blue);
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}
.avelis-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; gap: 32px;
}
.header-logo {
  display: flex; align-items: center; gap: 12px;
  flex-shrink: 0;
}
.header-logo img,
.header-logo .custom-logo {
  height: 52px; width: auto; display: block;
}
.logo-text { display: flex; flex-direction: column; }
.logo-name {
  font-size: 20px; font-weight: 800; color: var(--white);
  letter-spacing: -0.02em; line-height: 1;
}
.logo-name span { color: var(--red); }
.logo-tagline {
  font-size: 10px; color: rgba(255,255,255,0.5);
  letter-spacing: 0.1em; text-transform: uppercase;
}
.header-nav { display: flex; align-items: center; }
.header-nav > ul,
.header-nav-list {
  display: flex !important; flex-direction: row !important;
  align-items: center; gap: 4px;
  list-style: none; margin: 0; padding: 0;
}
.header-nav > ul > li,
.header-nav-list > li { list-style: none; margin: 0; padding: 0; display: block; }
.header-nav > ul > li > a,
.header-nav-list > li > a,
.header-nav > a {
  color: var(--dark); font-size: 14px; font-weight: 500;
  padding: 8px 14px; border-radius: var(--radius); transition: all var(--transition);
  text-decoration: none; display: block;
}
.header-nav > ul > li > a:hover,
.header-nav-list > li > a:hover,
.header-nav > a:hover { color: var(--red); background: rgba(224,36,36,0.06); }
.header-cta { display: flex; align-items: center; gap: 16px; }
.header-phone {
  color: var(--dark); font-size: 14px; font-weight: 600;
  display: flex; align-items: center; gap: 8px;
}
.header-phone svg { color: var(--red); }

/* Mobile nav toggle */
.nav-toggle {
  display: none; flex-direction: column; gap: 5px; padding: 8px;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--dark); border-radius: 2px; transition: all var(--transition);
}

/* ============================================================
   HERO
============================================================ */
.avelis-hero {
  position: relative; min-height: 92vh;
  display: flex; align-items: center;
  background: var(--black);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(135deg, rgba(68,185,217,0.25) 0%, rgba(13,13,13,0.97) 60%),
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="60" height="60"><rect width="60" height="60" fill="%23111827"/><path d="M0 30 L30 0 L60 30 L30 60Z" fill="none" stroke="%2344B9D9" stroke-width="0.5" opacity="0.4"/></svg>');
  background-size: cover, 60px 60px;
}
.hero-grid {
  position: absolute; inset: 0; opacity: 0.04;
  background-image: linear-gradient(var(--blue-mid) 1px, transparent 1px),
                    linear-gradient(90deg, var(--blue-mid) 1px, transparent 1px);
  background-size: 40px 40px;
}
.hero-accent {
  position: absolute; top: 0; right: 0;
  width: 40%; height: 100%;
  background: linear-gradient(135deg, transparent 40%, rgba(224,36,36,0.06) 100%);
  clip-path: polygon(20% 0, 100% 0, 100% 100%, 0 100%);
}
.avelis-hero .container {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.hero-content { padding: 60px 0; }
.hero-badge { margin-bottom: 24px; }
.hero-title {
  font-size: clamp(36px, 5vw, 62px); font-weight: 900;
  color: var(--white); line-height: 1.1; letter-spacing: -0.03em;
  margin-bottom: 20px;
}
.hero-title .highlight {
  color: var(--red);
  display: block;
}
.hero-desc {
  font-size: 18px; color: rgba(255,255,255,0.7);
  line-height: 1.7; margin-bottom: 36px; max-width: 500px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 48px; }
.hero-trust {
  display: flex; gap: 28px; flex-wrap: wrap;
}
.trust-item {
  display: flex; align-items: center; gap: 10px;
  color: rgba(255,255,255,0.65); font-size: 13px; font-weight: 500;
}
.trust-icon {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(224,36,36,0.15); border: 1px solid rgba(224,36,36,0.3);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.trust-icon svg { color: var(--red); }

/* Hero visual panel */
.hero-visual {
  display: grid; grid-template-rows: auto auto; gap: 16px;
  padding: 60px 0;
}
.hero-card-main {
  background: var(--dark-2); border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg); padding: 28px; position: relative; overflow: hidden;
}
.hero-card-main::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--red), var(--blue-light));
}
.hero-card-header { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.hero-card-icon {
  width: 44px; height: 44px; background: rgba(224,36,36,0.15);
  border-radius: var(--radius); display: flex; align-items: center; justify-content: center;
}
.hero-card-icon svg { color: var(--red); }
.hero-card-title { color: var(--white); font-size: 16px; font-weight: 600; }
.hero-card-sub { color: var(--gray); font-size: 12px; }
.hero-card-main .hero-status-list {
  display: grid !important; grid-template-columns: 1fr 1fr; gap: 6px 10px;
  list-style: none; margin: 0; padding: 0;
}
.hero-card-main .hero-status-item {
  display: flex !important; align-items: center; gap: 7px;
  padding: 7px 10px; background: rgba(255,255,255,0.04); border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.07);
}
.hero-card-main .hero-status-item::before {
  content: ''; flex-shrink: 0;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--red); box-shadow: 0 0 6px var(--red);
}
.hero-card-main .hero-status-item a.status-label {
  color: var(--white); text-decoration: none;
  transition: color .15s;
}
.hero-card-main .hero-status-item a.status-label:hover {
  color: var(--red);
}
.status-label { color: rgba(255,255,255,0.8); font-size: 12px; font-weight: 500; }
.status-dot.alert { color: var(--red); }
.status-dot.alert::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--red); animation: pulse-red 1s infinite; }
@keyframes pulse-green { 0%,100%{opacity:1} 50%{opacity:0.4} }
@keyframes pulse-red   { 0%,100%{opacity:1} 50%{opacity:0.3} }

.hero-cards-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hero-mini-card {
  background: var(--dark-2); border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg); padding: 20px; text-align: center;
}
.hero-mini-card .num {
  font-size: 32px; font-weight: 900; color: var(--white);
  line-height: 1; margin-bottom: 4px;
}
.hero-mini-card .num span { color: var(--white); }
.hero-mini-card .num span em { color: var(--red); font-style: normal; }
.hero-mini-card .lbl { color: var(--gray); font-size: 12px; }

/* ============================================================
   SERVICES SECTION
============================================================ */
.avelis-services { background: var(--light); }
.services-header { text-align: center; margin-bottom: 60px; }
.services-header .section-subtitle { margin: 0 auto; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  align-items: stretch;
}
.service-card {
  display: flex;
  flex-direction: column;
  background: var(--white); border-radius: var(--radius-lg);
  padding: 36px 28px; position: relative; overflow: hidden;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: all 0.4s ease;
}
.service-card::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--red), var(--blue-mid));
  transform: scaleX(0); transform-origin: left; transition: transform 0.4s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service-card:hover::after { transform: scaleX(1); }

.service-icon {
  flex-shrink: 0; margin-bottom: 20px;
}
.service-icon img {
  width: 64px; height: 64px; object-fit: contain;
  transition: transform var(--transition);
}
.service-card:hover .service-icon img { transform: scale(1.08); }

.service-name {
  flex-shrink: 0;
  min-height: 48px;
  font-size: 18px; font-weight: 700; color: var(--dark);
  line-height: 1.3; margin-bottom: 12px;
}

/* flex: 1 = absorbe tout l'espace restant → séparateur au même niveau sur toutes les cartes */
.service-desc {
  flex: 1;
  font-size: 14px; color: var(--gray); line-height: 1.7;
}

.service-features {
  flex-shrink: 0;
  border-top: 1px solid var(--gray-light);
  padding: 16px 0 0 0 !important;
  margin-top: 20px;
  list-style: none;
}
.service-features li {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--gray); padding: 5px 0;
  list-style: none;
}
.service-features li::before { content: '✓'; color: var(--red); font-weight: 700; flex-shrink: 0; }
.avelis-services .section-label { color: var(--blue); }

.service-link {
  flex-shrink: 0;
  display: flex; align-items: center; gap: 8px;
  color: var(--blue); font-size: 14px; font-weight: 600;
  transition: gap var(--transition);
  padding-top: 20px;
}
.service-card:hover .service-link { gap: 12px; }


/* ============================================================
   WHY US SECTION
============================================================ */
.avelis-why { background: var(--dark); }
.why-header {
  text-align: center;
  margin-bottom: 52px;
}
.why-header .section-title { color: var(--white); margin-bottom: 12px; }
.why-header .why-label { color: rgba(255,255,255,0.6); }
.why-header .section-subtitle { color: rgba(255,255,255,0.7); margin: 0 auto; }
.why-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start;
}
.why-list { display: flex; flex-direction: column; gap: 20px; }
.why-item {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 20px; background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius-lg);
  transition: background var(--transition);
}
.why-item:hover { background: rgba(255,255,255,0.1); }
.why-item-icon {
  width: 48px; height: 48px; flex-shrink: 0;
  background: rgba(224,36,36,0.2); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
}
.why-item-icon svg { color: var(--red); }
.why-item-text h4 { color: var(--white); font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.why-item-text p { color: rgba(255,255,255,0.6); font-size: 14px; line-height: 1.6; }
.why-visual { display: flex; flex-direction: column; gap: 16px; }
.why-stat-card {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg); padding: 24px 28px;
  display: flex; align-items: center; gap: 20px;
}
.why-stat-card:first-child { border-left: 4px solid var(--red); }
.why-stat-num {
  font-size: 42px; font-weight: 900; color: var(--white);
  line-height: 1; flex-shrink: 0;
}
.why-stat-num em { color: var(--red); font-style: normal; }
.why-stat-lbl { color: rgba(255,255,255,0.6); font-size: 14px; line-height: 1.5; }
.why-certif {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg); padding: 24px 28px;
}
.why-certif h4 { color: var(--white); font-size: 15px; font-weight: 700; margin-bottom: 14px; }
.certif-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.certif-badge {
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  border-radius: 6px; padding: 6px 12px;
  color: rgba(255,255,255,0.8); font-size: 12px; font-weight: 600;
}

/* ============================================================
   PROCESS SECTION
============================================================ */
.avelis-process { background: var(--white); }
.process-header { text-align: center; margin-bottom: 60px; }
.process-header .section-subtitle { margin: 0 auto; }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.avelis-process .section-label { color: var(--blue); }
.process-grid::before {
  content: ''; position: absolute; top: 40px; left: 10%; right: 10%; height: 2px;
  background: var(--blue);
  z-index: 0;
}
.process-step {
  text-align: center; padding: 0 20px; position: relative; z-index: 1;
}
.step-number {
  width: 80px; height: 80px; border-radius: 50%;
  background: var(--white); border: 3px solid var(--blue);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 900; color: var(--blue);
  margin: 0 auto 24px; position: relative;
  box-shadow: 0 0 0 8px var(--white);
}
.step-title { font-size: 17px; font-weight: 700; color: var(--dark); margin-bottom: 10px; }
.step-desc { font-size: 14px; color: var(--gray); line-height: 1.6; }

/* ============================================================
   CTA SECTION
============================================================ */
.avelis-cta {
  background: var(--dark);
  position: relative; overflow: hidden;
  padding: 80px 0;
}
.avelis-cta::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(224,36,36,0.12) 0%, transparent 60%);
}
.avelis-cta::after {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}
.cta-header {
  position: relative; z-index: 2;
  text-align: center; margin-bottom: 52px;
}
.cta-header .section-label { color: rgba(255,255,255,0.6); }
.cta-header .section-title { color: var(--white); margin-bottom: 12px; }
.cta-header p { color: rgba(255,255,255,0.6); font-size: 16px; max-width: 540px; margin: 0 auto; }
.cta-inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr 1.6fr; gap: 64px; align-items: start;
}
.cta-contact-info { display: flex; flex-direction: column; gap: 28px; }
.cta-info-item { display: flex; align-items: flex-start; gap: 16px; }
.cta-info-icon {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 10px;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue);
}
.cta-info-text { display: flex; flex-direction: column; gap: 3px; }
.cta-info-label { font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.45); text-transform: uppercase; letter-spacing: 0.08em; }
.cta-info-value { font-size: 16px; font-weight: 600; color: var(--white); text-decoration: none; }
.cta-info-value:hover { color: var(--blue); }
.cta-actions { display: flex; gap: 16px; flex-shrink: 0; flex-wrap: wrap; }
/* ── Formulaire Gravity Forms dans le CTA ── */
.cta-form { flex: 1 1 420px; min-width: 0; }

/* Reset wrapper GF – supprime fond blanc et marges parasites */
.cta-form .gform_wrapper,
.cta-form .gform_wrapper.gravity-theme,
.cta-form .gform_body,
.cta-form .gform-body,
.cta-form .gform_wrapper form {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Liste des champs */
.cta-form .gform_fields {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
}
.cta-form .gfield { margin: 0 !important; padding: 0 !important; }

/* Labels */
.cta-form .gfield_label,
.cta-form .gfield label,
.cta-form .ginput_complex label { color: rgba(255,255,255,0.8) !important; font-size: 13px !important; font-weight: 600 !important; margin-bottom: 6px !important; }
.cta-form .gfield_description { color: rgba(255,255,255,0.5) !important; font-size: 12px !important; }

/* Tous les inputs / textarea / select */
.cta-form .ginput_container input,
.cta-form .ginput_container textarea,
.cta-form .ginput_container select,
.cta-form input:not([type=submit]):not([type=hidden]):not([type=checkbox]):not([type=radio]),
.cta-form textarea,
.cta-form select {
    background: rgba(255,255,255,0.08) !important;
    border: 1.5px solid rgba(255,255,255,0.2) !important;
    color: #fff !important;
    border-radius: 8px !important;
    padding: 11px 14px !important;
    font-size: 14px !important;
    font-family: inherit !important;
    width: 100% !important;
    box-sizing: border-box !important;
    transition: border-color .15s, background .15s !important;
    -webkit-appearance: none !important;
}
.cta-form .ginput_container input:focus,
.cta-form .ginput_container textarea:focus,
.cta-form input:not([type=submit]):focus {
    border-color: var(--blue) !important;
    background: rgba(255,255,255,0.12) !important;
    outline: none !important;
    box-shadow: none !important;
}
.cta-form input::placeholder, .cta-form textarea::placeholder { color: rgba(255,255,255,0.35) !important; }
.cta-form textarea, .cta-form .ginput_container textarea { height: 110px !important; resize: vertical !important; }

/* Champ nom prénom/nom côte à côte */
.cta-form .ginput_container_name { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 10px !important; }
.cta-form .ginput_container_name .name_first,
.cta-form .ginput_container_name .name_last { display: flex !important; flex-direction: column !important; gap: 4px !important; }
.cta-form .ginput_container_name span > label { font-size: 11px !important; font-weight: 400 !important; color: rgba(255,255,255,0.45) !important; }

/* Pied du formulaire */
.cta-form .gform_footer, .cta-form .gform_page_footer { margin-top: 6px !important; padding: 0 !important; }

/* Bouton envoyer */
.cta-form input[type=submit],
.cta-form .gform_button,
.cta-form button[type=submit] {
    background: var(--red) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 13px 28px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    font-family: inherit !important;
    cursor: pointer !important;
    width: 100% !important;
    transition: background .15s, transform .15s !important;
    box-shadow: none !important;
}
.cta-form input[type=submit]:hover,
.cta-form .gform_button:hover { background: #c42220 !important; transform: translateY(-2px) !important; }

/* Message de confirmation */
.cta-form .gform_confirmation_wrapper {
    background: rgba(22,163,74,0.15) !important;
    border: 1px solid rgba(22,163,74,0.5) !important;
    border-radius: 10px !important;
    padding: 20px !important;
    text-align: center !important;
}
.cta-form .gform_confirmation_message {
    color: #fff !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: 15px !important;
}

/* Erreurs de validation */
.cta-form .gfield_validation_message,
.cta-form .validation_message { color: #fca5a5 !important; font-size: 12px !important; margin-top: 4px !important; background: transparent !important; border: none !important; padding: 0 !important; }
.cta-form .validation_error { display: none !important; }
.cta-form .gfield--error .ginput_container input,
.cta-form .gfield--error .ginput_container textarea { border-color: #f87171 !important; }
.cta-form .gfield_required { color: var(--red) !important; }
.cta-form .gform_title,
.cta-form .gform_description,
.cta-form .gform_heading { display: none !important; }
.btn-white { background: var(--white); color: var(--dark); }
.btn-white:hover { background: var(--light); color: var(--dark); transform: translateY(-2px); }
.btn-red-outline { background: transparent; color: var(--white); border: 2px solid var(--red); }
.btn-red-outline:hover { background: var(--red); color: var(--white); }

/* ============================================================
   FOOTER
============================================================ */
/* ============================================================
   CARTE DE LOCALISATION
============================================================ */
.avelis-map { background: var(--dark); }
.map-header {
  text-align: center;
  padding: 48px 0 0;
}
.map-title {
  font-size: clamp(20px, 2.5vw, 28px); font-weight: 700;
  color: var(--white); margin: 0;
}
.map-frame { line-height: 0; position: relative; }
.map-header + .map-frame { margin-top: 24px; }
.map-frame iframe { display: block; width: 100%; height: 400px; border: none; }
.map-overlay {
  position: absolute; inset: 0; z-index: 10;
  background: rgba(0,0,0,0.35);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: opacity .2s;
}
.map-overlay.map-overlay-hidden { opacity: 0; pointer-events: none; }
.map-overlay-msg {
  display: flex; align-items: center; gap: 10px;
  background: rgba(0,0,0,0.65); color: #fff;
  padding: 12px 20px; border-radius: 8px;
  font-size: 14px; font-weight: 600; backdrop-filter: blur(4px);
}

.avelis-footer { background: #080808; padding: 64px 0 0; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
  padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.08);
  align-items: start;
}
.footer-grid > * { min-width: 0; }
.footer-logo { height: 128px; width: auto; margin-bottom: 4px; }
.footer-desc { color: rgba(255,255,255,0.45); font-size: 14px; line-height: 1.7; margin: 16px 0 24px; }
.footer-social { display: flex; gap: 12px; }
.social-link {
  width: 38px; height: 38px; border-radius: var(--radius);
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.6); transition: all var(--transition);
}
.social-link:hover { background: var(--red); border-color: var(--red); color: var(--white); }
.footer-col h3 {
  color: var(--white); font-size: 14px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  margin: 0 0 20px 0; padding: 0;
}
.footer-col ul {
  display: flex; flex-direction: column; gap: 10px;
  list-style: none; padding: 0; margin: 0;
}
.footer-col ul li {
  padding: 0; margin: 0; list-style: none;
}
.footer-col ul li a {
  color: rgba(255,255,255,0.45); font-size: 14px;
  display: block; padding: 0; transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--red); }
.footer-contact-item {
  display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px;
}
.contact-icon {
  width: 36px; height: 36px; background: rgba(224,36,36,0.15);
  border-radius: var(--radius); display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 2px;
}
.contact-icon svg { color: var(--red); }
.contact-text { display: flex; flex-direction: column; }
.contact-label { color: rgba(255,255,255,0.35); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; }
.contact-value { color: rgba(255,255,255,0.75); font-size: 14px; }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 0; flex-wrap: wrap; gap: 12px;
}
.footer-copy { color: rgba(255,255,255,0.3); font-size: 13px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-copy span { color: var(--red); }
.footer-credit { color: rgba(255,255,255,0.2); font-size: 12px; }
.footer-credit a { color: rgba(255,255,255,0.35); text-decoration: none; }
.footer-credit a:hover { color: var(--blue); }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { color: rgba(255,255,255,0.3); font-size: 13px; }
.footer-legal a:hover { color: rgba(255,255,255,0.6); }
.footer-legal-list { margin-top: 16px !important; padding-top: 14px !important; border-top: 1px solid rgba(255,255,255,0.08) !important; }
.footer-legal-list a { color: rgba(255,255,255,0.35) !important; font-size: 12px !important; }
.footer-legal-list a:hover { color: rgba(255,255,255,0.6) !important; }

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; gap: 48px; }
  .process-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .process-grid::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .avelis-topbar { display: none; }
  .avelis-hero .container { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .hero-content { padding: 40px 0; }
  .services-grid { grid-template-columns: 1fr; }
  .cta-inner { grid-template-columns: 1fr; gap: 40px; }
  .cta-header { text-align: center; }
  .cta-actions { justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-logo { margin: 0 auto 4px; }
  .footer-social { justify-content: center; }
  .footer-contact-item { justify-content: center; }
  .footer-bottom { flex-direction: column; align-items: center; }
  .footer-legal { justify-content: center; }
  .header-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); border-top: 1px solid var(--gray-light); box-shadow: 0 8px 24px rgba(0,0,0,0.1); z-index: 200; }
  .header-nav.open { display: block; }
  .header-nav > ul,
  .header-nav-list { flex-direction: column !important; gap: 0; padding: 8px 0; }
  .header-nav > ul > li > a,
  .header-nav-list > li > a { padding: 14px 20px; border-radius: 0; font-size: 15px; }
  .header-phone { display: none; }
  .header-cta .btn { display: none; }
  .nav-toggle { display: flex; }
  .process-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .btn { justify-content: center; width: 100%; }
  .hero-trust { flex-direction: column; gap: 12px; }
}

/* ============================================================
   SCROLL TO TOP (override Astra #ast-scroll-top)
============================================================ */
#ast-scroll-top {
  display: none !important;
  background: var(--blue) !important;
  border-radius: 50% !important;
  width: 48px !important; height: 48px !important;
  line-height: 1 !important;
  align-items: center !important; justify-content: center !important;
  box-shadow: 0 4px 16px rgba(68,185,217,0.35) !important;
  transition: background .2s, transform .2s, opacity .25s !important;
}
#ast-scroll-top.avelis-show {
  display: flex !important;
}
#ast-scroll-top:hover { background: var(--blue-mid) !important; transform: translateY(-3px); }
#ast-scroll-top .ast-icon.icon-arrow svg {
  width: 20px !important; transform: translate(0, 0) rotate(180deg) !important;
}

/* ============================================================
   PAGES SERVICE (template-service.php)
============================================================ */

/* ── Hero ── */
.sp-hero {
  position: relative;
  padding: 100px 0 80px;
  background:
    var(--sp-hero-bg, none)
    center / cover no-repeat;
  background-color: var(--dark);
  overflow: hidden;
}
.sp-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg,
    rgba(13,13,13,0.92) 0%,
    rgba(13,13,13,0.75) 60%,
    rgba(68,185,217,0.18) 100%);
  z-index: 0;
}
.sp-hero .container { position: relative; z-index: 1; }

.sp-breadcrumb {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: rgba(255,255,255,0.55);
  margin-bottom: 32px;
}
.sp-breadcrumb a { color: rgba(255,255,255,0.55); transition: color var(--transition); }
.sp-breadcrumb a:hover { color: var(--blue); }
.sp-breadcrumb svg { opacity: 0.45; flex-shrink: 0; }
.sp-breadcrumb span { color: rgba(255,255,255,0.9); }

.sp-hero-body { max-width: 680px; }

.sp-hero-icon {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, var(--red), var(--blue-mid));
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
  color: #fff;
}

.sp-hero-title {
  font-size: clamp(30px, 5vw, 52px);
  font-weight: 800; color: var(--white);
  line-height: 1.15; margin-bottom: 16px;
}

.sp-hero-tagline {
  font-size: 17px; color: rgba(255,255,255,0.72);
  line-height: 1.6; margin-bottom: 36px;
}

.sp-hero-actions {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.sp-btn-outline-light {
  border-color: rgba(255,255,255,0.35);
  color: rgba(255,255,255,0.85);
}
.sp-btn-outline-light:hover {
  border-color: var(--white);
  color: var(--white);
  background: rgba(255,255,255,0.08);
}

/* ── Content Row ── */
.sp-content-section { padding: 80px 0; }

.sp-content-row {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 56px;
  align-items: start;
}
.sp-content-row.sp-no-sidebar {
  grid-template-columns: 1fr;
}

/* ── Sidebar engagements ── */
.sp-engagements {
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
  position: sticky;
  top: 90px;
}
.sp-engagements h2 {
  font-size: 17px; font-weight: 700; color: var(--dark);
  margin: 0 0 20px;
}

.sp-sidebar-cta {
  margin-top: 28px;
  padding-top: 24px;
  display: flex; flex-direction: column; gap: 12px;
}

.sp-features-list {
  list-style: none; padding: 0; margin: 0 0 28px;
  display: flex; flex-direction: column; gap: 10px;
}
.sp-features-list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px; color: var(--gray); line-height: 1.5;
  padding: 0;
}
.sp-features-list li::before {
  content: '✓';
  color: var(--red); font-weight: 700;
  flex-shrink: 0; margin-top: 1px;
}


/* ── Main content (Gutenberg) ── */
.sp-main-content {
  font-size: 16px; color: var(--dark); line-height: 1.75;
}
.sp-main-content h2 {
  font-size: 26px; font-weight: 800; color: var(--dark);
  margin: 48px 0 16px; line-height: 1.25;
}
.sp-main-content h2:first-child { margin-top: 0; }
.sp-main-content h3 {
  font-size: 20px; font-weight: 700; color: var(--dark);
  margin: 36px 0 12px; line-height: 1.3;
}
.sp-main-content p { margin-bottom: 20px; color: var(--gray); }
.sp-main-content ul, .sp-main-content ol {
  padding-left: 20px; margin-bottom: 20px;
}
.sp-main-content ul li, .sp-main-content ol li {
  color: var(--gray); margin-bottom: 6px; line-height: 1.6;
}
.sp-main-content img {
  max-width: 100%; border-radius: var(--radius-lg);
  margin: 24px 0; display: block;
}
.sp-main-content .wp-block-image { margin: 28px 0; }
.sp-main-content .wp-block-image img { border-radius: var(--radius-lg); }
.sp-main-content strong { color: var(--dark); font-weight: 600; }
.sp-main-content a { color: var(--red); text-decoration: underline; }
.sp-main-content a:hover { color: var(--red-dark); }
.sp-main-content blockquote {
  border-left: 4px solid var(--red);
  margin: 28px 0; padding: 16px 24px;
  background: var(--light); border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic; color: var(--gray);
}

/* ── Gallery ── */
.sp-gallery-section {
  background: var(--light);
  padding: 80px 0;
}
.sp-gallery-section .section-label { text-align: center; }

.sp-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.sp-gallery-item {
  position: relative;
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--dark-2);
}
.sp-gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.sp-gallery-item:hover img { transform: scale(1.05); }

.sp-gallery-zoom {
  position: absolute; inset: 0;
  background: rgba(13,13,13,0.45);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.sp-gallery-item:hover .sp-gallery-zoom { opacity: 1; }

/* ── Lightbox ── */
.sp-lightbox {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease;
}
.sp-lightbox.active { opacity: 1; pointer-events: auto; }

.sp-lb-img-wrap {
  display: flex; flex-direction: column; align-items: center;
  max-width: 90vw; max-height: 88vh;
}
.sp-lb-img {
  max-width: 90vw; max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius-lg);
  display: block;
}
.sp-lb-caption {
  color: rgba(255,255,255,0.65);
  font-size: 13px; margin-top: 12px; text-align: center;
}

.sp-lb-close, .sp-lb-prev, .sp-lb-next {
  position: fixed;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%; color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}
.sp-lb-close { top: 20px; right: 20px; width: 44px; height: 44px; }
.sp-lb-prev  { left: 20px;  top: 50%; transform: translateY(-50%); width: 52px; height: 52px; }
.sp-lb-next  { right: 20px; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; }
.sp-lb-close:hover, .sp-lb-prev:hover, .sp-lb-next:hover { background: rgba(255,255,255,0.22); }

/* ── Responsive service page ── */
@media (max-width: 900px) {
  .sp-content-row { grid-template-columns: 1fr; }
  .sp-engagements { position: static; }
  .sp-gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .sp-hero { padding: 72px 0 56px; }
  .sp-hero-title { font-size: 28px; }
  .sp-content-section { padding: 52px 0; }
  .sp-gallery-grid { grid-template-columns: 1fr; }
  .sp-lb-prev { left: 8px; }
  .sp-lb-next { right: 8px; }
}

/* ══════════════════════════════════════════════════════════════════
   PAGE LÉGALE
══════════════════════════════════════════════════════════════════ */

.legal-hero {
  background: var(--dark-1);
  padding: 80px 0 56px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.legal-hero-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  color: var(--white);
  margin: 16px 0 0;
  line-height: 1.2;
}

.legal-content-section {
  padding: 64px 0 80px;
  background: var(--white);
}
.legal-content {
  max-width: 780px;
  color: #1d2327;
  font-size: 15px;
  line-height: 1.8;
}
.legal-content h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--dark-1);
  margin: 40px 0 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--red);
}
.legal-content h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--dark-1);
  margin: 28px 0 10px;
}
.legal-content p { margin: 0 0 16px; }
.legal-content ul, .legal-content ol {
  margin: 0 0 16px 24px;
  padding: 0;
}
.legal-content li { margin-bottom: 6px; }
.legal-content a { color: var(--blue); text-decoration: underline; }
.legal-content a:hover { color: var(--red); }
.legal-content strong { font-weight: 700; }

/* ── Admin editor row large ── */
.av-row--editor { align-items: flex-start; }
.av-row--editor .av-row-label { padding-top: 12px; }
.av-row--editor .av-wp-editor { width: 100%; }
