/* ============================================
   MODERN DESIGN SYSTEM - Override & Enhancement
   ============================================ */

/* --- CSS Variables --- */
:root {
    --primary: #0d7377;
    --primary-dark: #094c4f;
    --primary-light: #14a3a8;
    --accent: #f0a500;
    --accent-light: #ffd166;
    --success: #2ecc71;
    --danger: #e74c3c;
    --text-dark: #1a1a2e;
    --text-medium: #4a4a68;
    --text-light: #7a7a8e;
    --bg-white: #ffffff;
    --bg-light: #f8f9fc;
    --bg-muted: #eef1f6;
    --border-light: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --shadow-xl: 0 16px 48px rgba(0,0,0,0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Global Reset & Base --- */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.7;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-dark);
    line-height: 1.3;
    font-weight: 700;
}

h1 { font-size: clamp(1.8rem, 4vw, 3rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.5rem); }

p {
    color: var(--text-medium);
    line-height: 1.8;
}

a {
    color: var(--primary);
    transition: var(--transition);
}
a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

/* --- Header & Navigation --- */
header.w3-top {
    position: sticky !important;
    top: 0;
    z-index: 100;
    background: var(--bg-white);
    box-shadow: var(--shadow-md);
    margin-top: 0 !important;
}

header nav {
    background: var(--primary) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 0;
    border-radius: 0;
}

header nav .w3-button {
    color: rgba(255,255,255,0.85) !important;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 14px 24px !important;
    transition: var(--transition);
    border-radius: 0;
    background: transparent !important;
    position: relative;
}

header nav .w3-button::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--accent);
    border-radius: 3px 3px 0 0;
    transition: var(--transition);
}

header nav .w3-button:hover {
    color: #fff !important;
    background: rgba(255,255,255,0.1) !important;
}

header nav .w3-button:hover::after {
    width: 60%;
}

/* Sticky header area */
.sticky {
    background: var(--bg-white) !important;
    padding: 16px 0 !important;
    border-bottom: 1px solid var(--border-light);
}

.sticky h1 {
    font-family: "Bruno Ace", sans-serif;
    color: var(--primary) !important;
    text-shadow: none !important;
    font-size: clamp(1.4rem, 3.5vw, 2.2rem) !important;
    margin: 8px 0;
}

.sticky h1 sup {
    font-size: 0.5em;
}

.sticky .w3-large {
    color: var(--primary-dark) !important;
    font-size: clamp(0.9rem, 2vw, 1.2rem) !important;
}

/* --- Services Scrolling List --- */
.services-container {
    background: var(--bg-muted);
    padding: 10px 0 !important;
    margin: 0 !important;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    width: 100% !important;
}

.services-list {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 32px;
    padding: 8px 16px !important;
    animation: scroll 30s linear infinite alternate !important;
}

.services-list .service-item {
    white-space: nowrap;
    font-size: 0.85rem;
    color: var(--text-medium);
    font-weight: 500;
    transition: var(--transition);
}

.services-list .service-item i {
    color: var(--primary);
    margin-right: 6px;
}

.services-list .service-item:hover {
    color: var(--primary);
}

header aside h2 {
    color: var(--danger) !important;
    font-size: clamp(1rem, 2.5vw, 1.3rem) !important;
    font-weight: 800 !important;
    text-shadow: none !important;
    text-align: center;
    padding: 12px 0 4px;
}

/* --- Call Button --- */
.call-button {
    background: var(--bg-white) !important;
    border: 3px solid var(--primary) !important;
    border-radius: 50px !important;
    color: var(--primary) !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    padding: 12px 28px !important;
    box-shadow: var(--shadow-md) !important;
    transition: var(--transition);
    max-width: 320px !important;
    height: auto !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.call-button:hover {
    background: var(--primary) !important;
    color: var(--bg-white) !important;
    box-shadow: var(--shadow-lg) !important;
    border-color: var(--primary-dark) !important;
    transform: translateY(-2px);
}

.call-button i {
    color: var(--primary) !important;
    font-size: 1.2rem;
    transition: var(--transition);
}

.call-button:hover i {
    color: var(--bg-white) !important;
}

.phone-number {
    color: var(--primary) !important;
    background: none !important;
    -webkit-text-fill-color: var(--primary) !important;
    animation: none !important;
    font-weight: 700;
}

.call-button:hover .phone-number {
    color: var(--bg-white) !important;
    -webkit-text-fill-color: var(--bg-white) !important;
}

/* --- Main Content Area --- */
.w3-content {
    max-width: 1100px !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding: 40px 16px;
    position: relative;
}

main {
    background: linear-gradient(180deg, var(--bg-white) 0%, var(--bg-light) 100%);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin: 24px 0;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary));
}

/* --- Expert Card --- */
.card-expert-serrurier {
  background: linear-gradient(135deg, var(--bg-white) 0%, var(--bg-light) 100%);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg) !important;
  padding: 28px !important;
  max-width: 100% !important;
  margin: 24px auto !important;
  box-shadow: var(--shadow-md) !important;
  font-family: 'Figtree', sans-serif !important;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.card-expert-serrurier::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary));
}

.card-expert-serrurier::after {
  content: '🔧';
  position: absolute;
  top: -20px;
  right: -20px;
  font-size: 120px;
  opacity: 0.05;
  transform: rotate(-15deg);
}

.card-expert-serrurier:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--primary-light);
}

.card-expert-serrurier header {
  text-align: center;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.card-expert-serrurier header::before {
  content: '👤';
  display: block;
  font-size: 3rem;
  margin-bottom: 8px;
  animation: float-avatar 3s ease-in-out infinite;
}

@keyframes float-avatar {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.card-expert-serrurier header h2 {
  font-size: 1.4em !important;
  color: var(--primary) !important;
  text-align: center;
  margin: 0;
  padding: 0;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.card-expert-serrurier header h2 sup {
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 100%);
  color: var(--text-dark);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.6em;
  margin-left: 6px;
  font-weight: 700;
}

.card-expert-serrurier dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px 16px;
  margin: 0 !important;
  padding: 0 !important;
  position: relative;
  z-index: 1;
  background: var(--bg-white);
  padding: 20px !important;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.card-expert-serrurier dt {
  font-weight: 600;
  color: var(--text-medium);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-expert-serrurier dt::before {
  content: '•';
  color: var(--primary);
  font-size: 1.2rem;
  line-height: 1;
}

.card-expert-serrurier dd {
  margin: 0 !important;
  color: var(--text-dark);
  font-weight: 700;
  font-size: 0.95rem;
  background: linear-gradient(135deg, var(--bg-muted) 0%, #e8f4f4 100%);
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid var(--border-light);
}

/* --- Icon Door --- */
.icon-door-open {
    width: 120px !important;
    height: 120px !important;
    opacity: 0.7;
    margin: 0 auto 16px;
}

/* --- Services Section (Cards) --- */
#services {
    padding: 0 !important;
    position: relative;
}

#services::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(13, 115, 119, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

#services .w3-center:first-child {
    margin-bottom: 40px !important;
    position: relative;
    z-index: 1;
}

#services .w3-center:first-child h2 {
    color: var(--text-dark);
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    position: relative;
    display: inline-block;
    padding-bottom: 16px;
    font-weight: 800;
}

#services .w3-center:first-child h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
}

#services .w3-center:first-child h2::before {
    content: '🔒';
    display: block;
    font-size: 2.5rem;
    margin-bottom: 12px;
    animation: bounce-icon 2s ease-in-out infinite;
}

@keyframes bounce-icon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

#services article {
    border-radius: var(--radius-lg) !important;
    overflow: hidden;
    transition: var(--transition);
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    position: relative;
    z-index: 1;
}

#services article::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

#services article:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl) !important;
    border-color: var(--primary-light);
}

#services article:hover::before {
    transform: scaleX(1);
}

#services article h2 {
    font-size: 1.25rem !important;
    padding: 20px 16px !important;
    margin: 0;
    letter-spacing: 0.3px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
}

#services article h2 i {
    font-size: 1.4rem;
    transition: transform 0.3s ease;
}

#services article:hover h2 i {
    transform: scale(1.1) rotate(5deg);
}

#services article h2.w3-black {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%) !important;
    color: var(--bg-white) !important;
}

#services article h2.w3-dark-grey {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #094c4f 100%) !important;
    color: var(--bg-white) !important;
}

#services article .w3-ul {
    border: none !important;
    background: var(--bg-white);
    margin: 0 !important;
}

#services article .w3-ul li {
    padding: 12px 16px !important;
    border-bottom: 1px dashed var(--border-light);
    transition: var(--transition);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#services article .w3-ul li::before {
    content: '✓';
    color: var(--success);
    font-weight: bold;
    margin-right: 8px;
}

#services article .w3-ul li:last-child {
    border-bottom: none;
    padding: 0 !important;
}

#services article .w3-ul li:hover {
    background: var(--bg-muted);
    padding-left: 20px !important;
}

#services article .w3-ul li b {
    color: var(--text-dark);
    font-weight: 600;
}

#services article .w3-ul li b + * {
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 100%);
    color: var(--text-dark);
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

#services article .w3-light-grey {
    background: linear-gradient(135deg, var(--bg-muted) 0%, #f0f4f8 100%) !important;
    padding: 20px !important;
    border-top: 1px solid var(--border-light);
}

#services article .w3-button.w3-green {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%) !important;
    color: var(--bg-white) !important;
    border-radius: 50px !important;
    font-weight: 600;
    padding: 12px 28px !important;
    transition: var(--transition);
    border: none;
    box-shadow: 0 4px 12px rgba(13, 115, 119, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
    position: relative;
    overflow: hidden;
}

#services article .w3-button.w3-green::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

#services article .w3-button.w3-green:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%) !important;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(13, 115, 119, 0.4);
}

#services article .w3-button.w3-green:hover::before {
    left: 100%;
}

/* Rounded top corners for first/last cards */
.rounded-top-left,
.rounded-top-right {
    border-radius: var(--radius-md) var(--radius-md) 0 0 !important;
}

/* --- About Section --- */
#about {
    background: linear-gradient(135deg, var(--bg-white) 0%, var(--bg-light) 100%);
    border-radius: var(--radius-lg);
    padding: 48px 24px !important;
    margin: 48px 0 !important;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

#about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary));
}

#about .w3-center:first-child {
    margin-bottom: 32px !important;
}

#about .w3-center h2 {
    color: var(--text-dark) !important;
    border-bottom: none !important;
    padding-bottom: 0 !important;
    font-size: clamp(1.6rem, 3vw, 2.2rem) !important;
    font-weight: 800;
}

#about .w3-center h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    margin: 12px auto 0;
    border-radius: 2px;
}

#about .w3-center p {
    max-width: 850px;
    margin: 0 auto 16px;
    font-size: 1.05rem;
    color: var(--text-medium);
    line-height: 1.9;
}

#about article .w3-card-4 {
    border-radius: var(--radius-lg) !important;
    overflow: hidden;
    box-shadow: var(--shadow-md) !important;
    transition: var(--transition);
    border: none;
    background: var(--bg-white);
    position: relative;
}

#about article .w3-card-4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

#about article .w3-card-4:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl) !important;
}

#about article .w3-card-4:hover::after {
    transform: scaleX(1);
}

#about article .w3-card-4 img {
    height: 220px;
    object-fit: cover;
    width: 100%;
    transition: transform 0.5s ease;
}

#about article .w3-card-4:hover img {
    transform: scale(1.05);
}

#about article .w3-card-4 .w3-container {
    padding: 24px !important;
    background: var(--bg-white);
}

#about article .w3-card-4 h2 {
    color: var(--primary) !important;
    font-size: 1.25rem !important;
    margin-bottom: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

#about article .w3-card-4 h2::before {
    content: '';
    width: 4px;
    height: 24px;
    background: linear-gradient(180deg, var(--primary), var(--accent));
    border-radius: 2px;
}

#about article .w3-card-4 p {
    font-size: 0.9rem;
    color: var(--text-medium);
    margin-bottom: 12px;
    line-height: 1.7;
}

#zone {
    background: linear-gradient(135deg, var(--bg-muted) 0%, #e8f4f4 100%) !important;
    border-radius: var(--radius-lg);
    padding: 32px 24px !important;
    margin: 48px 0 !important;
    position: relative;
    overflow: hidden;
}

#zone::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary));
}

#zone::after {
    content: '📍';
    position: absolute;
    top: -20px;
    right: -20px;
    font-size: 150px;
    opacity: 0.03;
    transform: rotate(-15deg);
}

#zone > ul {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
    z-index: 1;
}

#zone > ul > li {
    margin: 0 !important;
    padding: 0;
}

#zone article {
    background: var(--bg-white) !important;
    border-radius: var(--radius-md) !important;
    box-shadow: var(--shadow-sm) !important;
    padding: 16px !important;
    margin: 0 !important;
    width: 100% !important;
    float: none !important;
    transition: var(--transition);
    border: 1px solid var(--border-light);
    position: relative;
}

#zone article::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

#zone article:hover {
    box-shadow: var(--shadow-md) !important;
    transform: translateY(-2px);
    border-color: var(--primary-light);
}

#zone article:hover::before {
    transform: scaleX(1);
}

#zone article h2 {
    color: var(--primary) !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    text-shadow: none !important;
    margin: 0 0 8px;
    padding: 0;
}

#zone article a {
    text-decoration: none;
    color: var(--primary);
    font-weight: 600;
}

#zone article a:hover {
    color: var(--primary-dark);
}

#zone article article {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    padding: 4px 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
}

#zone article article:hover {
    box-shadow: none !important;
    transform: none !important;
}

#zone article article h2 {
    color: var(--text-medium) !important;
    font-size: 0.85rem !important;
    font-weight: 400 !important;
    text-shadow: none !important;
    margin: 0;
    padding: 2px 0;
}

#zone article article h2:hover {
    color: var(--primary) !important;
}

#zone ul {
    list-style: none;
    padding: 0;
    margin: 4px 0 0;
}

#zone ul li {
    margin: 0;
    padding: 0;
}

/* --- Footer --- */
footer {
    background: var(--primary-dark) !important;
    color: var(--bg-white);
    padding: 40px 16px 24px !important;
    margin-top: 48px !important;
    text-align: center;
}

footer a {
    color: rgba(255,255,255,0.8);
    transition: var(--transition);
}

footer a:hover {
    color: var(--accent);
}

footer h2 {
    color: var(--bg-white) !important;
    font-family: 'Figtree', sans-serif !important;
    font-size: 1.1rem !important;
    text-shadow: none !important;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

footer ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    padding: 0;
    margin: 0 0 24px;
}

footer ul li {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.8rem;
}

footer ul li a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.8);
    transition: var(--transition);
}

footer ul li a:hover {
    background: rgba(255,255,255,0.2);
    color: var(--bg-white);
}

footer small {
    color: rgba(255,255,255,0.5) !important;
    cursor: pointer;
    transition: var(--transition);
    display: inline-block;
    padding: 8px;
}

footer small:hover {
    color: rgba(255,255,255,0.8);
}

footer hr {
    border: none;
    border-top: 1px solid rgba(255,255,255,0.15);
    margin: 20px 0;
}

footer .w3-table-all {
    background: rgba(255,255,255,0.05);
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin: 16px auto;
    max-width: 600px;
}

footer .w3-table-all th {
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.9);
    font-weight: 600;
    text-align: left;
    padding: 8px 12px;
}

footer .w3-table-all td {
    color: rgba(255,255,255,0.7);
    padding: 8px 12px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

footer img {
    border-radius: 8px;
}

footer p {
    color: rgba(255,255,255,0.7);
}

/* --- Contact Modal Enhancement --- */
#contactModalWrapper.w3-modal {
    z-index: 1100 !important;
}

#contact > div:first-child {
    z-index: 1050 !important;
}

.w3-modal-content {
    border-radius: var(--radius-lg) !important;
    overflow: hidden;
}

.w3-modal-content header.w3-green {
    background: var(--primary) !important;
}

/* --- Pulsing Contact Button --- */
.pulsing-contact-btn {
    animation: pulse-btn 2s infinite, glow-contact 1.5s ease-in-out infinite alternate;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.pulsing-contact-btn:hover {
    transform: scale(1.05) !important;
    filter: brightness(1.1);
}

@keyframes pulse-btn {
    0% { box-shadow: 0 0 0 0 rgba(0, 180, 0, 0.6); }
    70% { box-shadow: 0 0 0 18px rgba(0, 180, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 180, 0, 0); }
}

@keyframes glow-contact {
    0% {
        box-shadow: 0 0 8px rgba(0, 180, 0, 0.4), 0 4px 12px rgba(0,0,0,0.15);
    }
    100% {
        box-shadow: 0 0 20px rgba(0, 180, 0, 0.7), 0 4px 20px rgba(0,0,0,0.2);
    }
}

/* Fixed contact button container */
#contact > div:first-child {
    z-index: 1050 !important;
}

#contact > div:first-child .pulsing-contact-btn {
    font-size: 1rem !important;
    padding: 12px 24px !important;
    white-space: nowrap;
    max-width: 90vw;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* --- Form Styling --- */
.form-group {
    margin-bottom: 18px !important;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 14px !important;
    border: 2px solid var(--border-light) !important;
    border-radius: var(--radius-sm) !important;
    box-sizing: border-box;
    font-family: 'Figtree', sans-serif;
    font-size: 0.95rem;
    color: var(--text-dark);
    background: var(--bg-white);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary) !important;
    outline: none;
    box-shadow: 0 0 0 3px rgba(13, 115, 119, 0.15);
}

.form-group input:disabled,
.form-group select:disabled {
    background: var(--bg-muted);
    color: var(--text-medium);
    cursor: not-allowed;
    opacity: 0.8;
}

/* --- Section Spacing --- */
section {
    margin-top: 24px !important;
    margin-bottom: 24px !important;
    padding: 16px !important;
}

/* --- Services de Serrurerie Section --- */
section > h2:first-of-type {
    text-align: center;
    font-size: clamp(1.6rem, 3vw, 2.2rem) !important;
    color: var(--text-dark) !important;
    font-weight: 800;
    margin-bottom: 32px !important;
    position: relative;
    padding-bottom: 20px;
}

section > h2:first-of-type::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
}

section > h2:first-of-type::before {
    content: '🔧';
    display: block;
    font-size: 2.5rem;
    margin-bottom: 12px;
    animation: bounce-icon 2s ease-in-out infinite;
}

section ol {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

section ol li {
    margin: 0;
    padding: 0;
}

section ol li article {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

section ol li article::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

section ol li article:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

section ol li article:hover::before {
    transform: scaleX(1);
}

section ol li article h2 {
    color: var(--primary) !important;
    font-size: 1.15rem !important;
    font-weight: 700;
    margin: 0 0 12px 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

section ol li article h2::before {
    content: '•';
    color: var(--accent);
    font-size: 1.5rem;
    line-height: 1;
}

section ol li article p {
    color: var(--text-medium);
    font-size: 0.9rem;
    line-height: 1.7;
    margin: 0;
}

section ol li article p strong {
    color: var(--text-dark);
    font-weight: 700;
}

/* --- Scroll Animation --- */
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-100% + 200px)); }
}

/* --- Responsive Design --- */
@media screen and (max-width: 768px) {
    header nav .w3-button {
        padding: 10px 14px !important;
        font-size: 0.75rem;
    }

    .sticky h1 {
        font-size: 1.2rem !important;
    }

    .w3-content {
        padding: 32px 16px !important;
    }

    #about {
        padding: 32px 16px !important;
    }

    #zone > ul {
        grid-template-columns: 1fr;
    }

    .call-button {
        font-size: 0.9rem !important;
        padding: 10px 20px !important;
    }

    .icon-door-open {
        width: 60px !important;
        height: 60px !important;
    }

    .card-expert-serrurier {
        padding: 20px !important;
        margin: 20px 0 !important;
    }

    /* Contact button responsive tablet */
    #contact > div:first-child .pulsing-contact-btn {
        font-size: 0.85rem !important;
        padding: 10px 18px !important;
    }
}

@media screen and (max-width: 480px) {
    header nav {
        flex-wrap: wrap;
    }

    header nav .w3-button {
        padding: 8px 10px !important;
        font-size: 0.7rem;
        flex: 1;
    }

    .sticky h1 {
        font-size: 1rem !important;
    }

    .w3-content {
        padding: 24px 12px !important;
    }

    .icon-door-open {
        width: 50px !important;
        height: 50px !important;
    }

    /* Services single column on mobile */
    #services article {
        width: 100% !important;
        margin-bottom: 16px !important;
    }

    #services article h2 {
        font-size: 1rem !important;
        padding: 14px 12px !important;
    }

    #services article .w3-ul li {
        font-size: 0.85rem !important;
        padding: 10px 12px !important;
    }

    #services article .w3-button {
        font-size: 0.85rem !important;
        padding: 8px 16px !important;
    }

    /* About section cards */
    #about article {
        width: 100% !important;
        margin-bottom: 20px !important;
    }

    #about article .w3-card-4 img {
        height: 180px !important;
    }

    #about article .w3-card-4 .w3-container {
        padding: 16px !important;
    }

    #about article .w3-card-4 h2 {
        font-size: 1rem !important;
    }

    #about article .w3-card-4 p {
        font-size: 0.85rem !important;
    }

    /* Expert card */
    .card-expert-serrurier {
        padding: 20px 16px !important;
        margin: 20px 0 !important;
    }

    .card-expert-serrurier header::before {
        font-size: 2.5rem !important;
        margin-bottom: 6px !important;
    }

    .card-expert-serrurier header h2 {
        font-size: 1rem !important;
        line-height: 1.3 !important;
    }

    .card-expert-serrurier header h2 sup {
        font-size: 0.55em !important;
        padding: 1px 6px !important;
    }

    .card-expert-serrurier dl {
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
        padding: 16px !important;
    }

    .card-expert-serrurier dt {
        font-size: 0.75rem !important;
        padding: 0 !important;
    }

    .card-expert-serrurier dt::before {
        display: none !important;
    }

    .card-expert-serrurier dd {
        font-size: 0.85rem !important;
        padding: 8px 12px !important;
    }

    /* Services de serrurerie section mobile */
    section > h2:first-of-type {
        font-size: 1.3rem !important;
        padding-bottom: 16px !important;
    }

    section > h2:first-of-type::before {
        font-size: 2rem !important;
        margin-bottom: 8px !important;
    }

    section ol {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    section ol li article {
        padding: 18px !important;
    }

    section ol li article h2 {
        font-size: 1rem !important;
    }

    section ol li article p {
        font-size: 0.85rem !important;
    }

    footer ul {
        flex-direction: column;
        align-items: center;
    }

    footer ul li a {
        width: 100%;
        justify-content: center;
    }

    /* Contact button responsive mobile */
    #contact > div:first-child {
        bottom: 12px !important;
        right: 8px !important;
        left: 8px !important;
        text-align: center;
    }

    #contact > div:first-child .pulsing-contact-btn {
        font-size: 0.75rem !important;
        padding: 10px 14px !important;
        border-width: 3px !important;
        width: 100%;
        max-width: 100%;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        gap: 6px;
    }

    #contact > div:first-child .pulsing-contact-btn i {
        font-size: 0.9rem !important;
    }

    #contact > div:first-child .pulsing-contact-btn sup {
        font-size: 0.6rem !important;
    }
}

/* --- Utility Overrides --- */
.w3-button {
    border-radius: var(--radius-sm) !important;
    transition: var(--transition);
}

.w3-card-4 {
    border-radius: var(--radius-md) !important;
    box-shadow: var(--shadow-md) !important;
    border: 1px solid var(--border-light);
}

.w3-ul {
    list-style: none !important;
}

.w3-padding-64 {
    padding-top: 48px !important;
    padding-bottom: 48px !important;
}

.w3-margin-bottom {
    margin-bottom: 24px !important;
}

/* --- Back to top button --- */
footer > a:first-child {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px;
    color: rgba(255,255,255,0.6);
    transition: var(--transition);
    text-decoration: none;
    font-size: 0.8rem;
}

footer > a:first-child:hover {
    color: var(--bg-white);
    transform: translateY(-2px);
}

footer > a:first-child i {
    font-size: 1.2rem;
}

/* --- Legal mentions toggle --- */
#MentionsLegales {
    text-align: center;
    margin-top: 16px;
}

#MentionsLegales p {
    color: rgba(255,255,255,0.6);
    font-size: 0.8rem;
}

/* --- Smooth page load --- */
body {
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
