/* ============================================
   ÉLECTRICIEN DEGROOTE
   Palette 136 "Forêt & Or" (Haut Contraste)
   Typographie : Sora (titres) + Plus Jakarta Sans (corps)
   Système de couleurs : Variables HSL dynamiques
   ============================================ */

:root {
    /* Variables de typographie */
    --font-heading: 'Sora', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;

    /* Palette 136 - Forêt & Or (Variables HSL) */
    --primary-h: 159;
    --primary-s: 88%;
    --primary-l: 20%; /* #065F46 (Vert Forêt) */

    --secondary-h: 159;
    --secondary-s: 88%;
    --secondary-l: 20%; /* #065F46 (Vert Forêt) */

    --accent-h: 43;
    --accent-s: 96%;
    --accent-l: 56%; /* #FBBF24 (Or) */

    --bg-h: 0;
    --bg-s: 0%;
    --bg-l: 100%; /* #FFFFFF (Blanc Pur) */

    --text-h: 159;
    --text-s: 88%;
    --text-l: 20%; /* #065F46 (Vert Forcé) */

    /* Variables CSS principales dérivées */
    --primary: hsl(var(--primary-h), var(--primary-s), var(--primary-l));
    --primary-dark: hsl(var(--primary-h), var(--primary-s), 15%);
    --secondary: hsl(var(--secondary-h), var(--secondary-s), var(--secondary-l));
    --secondary-contrast: #FFFFFF;
    --accent: hsl(var(--accent-h), var(--accent-s), var(--accent-l));
    --accent-hover: hsl(var(--accent-h), var(--accent-s), 45%);
    --accent-contrast: #065F46;
    --bg: hsl(var(--bg-h), var(--bg-s), var(--bg-l));
    --text: hsl(var(--text-h), var(--text-s), var(--text-l));

    /* Variables complémentaires */
    --primary-contrast: #FFFFFF;
    --light-rose: hsl(var(--bg-h), var(--bg-s), 97%);
    --dark-text: hsl(var(--text-h), var(--text-s), 20%);
    --medium-text: #6B7280;
}

/* Police de base pour tout le document */
* {
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Police de titres appliquée sur tous les éléments titres */
h1, h2, h3, h4, h5, h6,
.font-heading {
    font-family: var(--font-heading);
    letter-spacing: -0.01em;
}

/* Force l'héritage de la police et du style pour les textes dynamiques et mis en avant */
.ville-dynamique,
span.text-accent,
.text-accent {
    font-family: inherit !important;
    font-style: inherit !important;
}

.hero-pattern {
    background-color: var(--light-rose);
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23065F46' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.nav-pattern {
    background-color: var(--primary);
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath fill-rule='evenodd' d='M0 38.59l2.83-2.83 1.41 1.41L1.41 40H0v-1.41zM0 1.4l2.83 2.83 1.41-1.41L1.41 0H0v1.41zM38.59 40l-2.83-2.83 1.41-1.41L40 38.59V40h-1.41zM40 1.41l-2.83 2.83-1.41-1.41L38.59 0H40v1.41zM20 18.6l2.83-2.83 1.41 1.41L21.41 20l2.83 2.83-1.41 1.41L20 21.41l-2.83 2.83-1.41-1.41L18.59 20l-2.83-2.83 1.41-1.41L20 18.59z'/%3E%3C/g%3E%3C/svg%3E");
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

.fade-in-up {
    animation: fadeInUp 0.7s ease-out forwards;
}

.fade-in-up-delay-1 {
    animation-delay: 0.15s;
    opacity: 0;
}

.fade-in-up-delay-2 {
    animation-delay: 0.3s;
    opacity: 0;
}

.fade-in-up-delay-3 {
    animation-delay: 0.45s;
    opacity: 0;
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

.pulse-ring::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    animation: pulse-ring 1.5s ease-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.float-animation {
    animation: float 3s ease-in-out infinite;
}

/* Animation de vibration (téléphone) au survol */
@keyframes ring-vibrate {

    0%,
    100% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(-15deg);
    }

    50% {
        transform: rotate(0deg);
    }

    75% {
        transform: rotate(15deg);
    }
}

.hover-ring-container:hover i[data-lucide="phone"],
.hover-ring-container:hover svg[data-lucide="phone"] {
    animation: ring-vibrate 0.3s ease-in-out infinite;
}

details summary {
    list-style: none;
}

details summary::-webkit-details-marker {
    display: none;
}

details.is-open summary .chevron-icon {
    transform: rotate(180deg);
}

summary .chevron-icon {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease-in-out, opacity 0.4s ease-in-out;
}

details.is-open .faq-content {
    opacity: 1;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
}

/* Animation de vibration (téléphone) au survol */
@keyframes ring-vibrate {

    0%,
    100% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(-15deg);
    }

    50% {
        transform: rotate(0deg);
    }

    75% {
        transform: rotate(15deg);
    }
}

.hover-ring-container:hover svg {
    animation: ring-vibrate 0.3s ease-in-out infinite;
}

/* Animation d'apparition des cartes de services */
.service-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.service-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Animation d'apparition des cartes de tarifs */
.pricing-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.pricing-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Map decorative */
.map-pin-pulse {
    animation: map-ping 2s ease-out infinite;
}

@keyframes map-ping {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    70% {
        transform: scale(2.5);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 0;
    }
}

/* City badge hover */
.city-badge {
    transition: all 0.2s ease;
}

.city-badge:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-1px);
}

/* Zoom de l'image au survol de la carte */
.service-card img {
    transition: transform 0.5s ease-out;
}

.service-card:hover img {
    transform: scale(1.08);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(230, 57, 70, 0.3);
}


.hero-img-wrapper {
    position: relative;
}

.hero-img-wrapper::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 20px;
    background: rgba(74, 30, 30, 0.15);
    border-radius: 50%;
    filter: blur(10px);
}

@media (max-width: 1023px) {
    .hero-img-wrapper {
        display: none;
    }
}

/* Ticker styles */
.ticker-block {
    overflow: hidden;
    background: var(--bg);
}

.ticker-track {
    display: flex;
    width: max-content;
    animation: go-right 30s linear infinite;
}

.ticker-track.reverse {
    animation: go-left 36s linear infinite;
}

.ticker-track:hover {
    animation-play-state: paused;
}

.ticker-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 40px;
    white-space: nowrap;
    border-right: 1px solid #e5e7eb;
}

/* Thème sombre pour la ligne 2 */
.ticker-block.dark {
    background: var(--primary-dark);
    border-bottom: none;
}

.ticker-block.dark .ticker-item {
    border-right-color: rgba(255, 255, 255, 0.08);
}

/* Typographie */
.sep {
    font-size: 10px;
    opacity: 0.3;
    color: var(--accent);
}

.ticker-block.dark .sep {
    color: var(--bg);
    opacity: 0.3;
}

.item-num {
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--accent);
    font-family: ui-serif, Georgia, serif;
}

.item-label {
    font-size: 14px;
    font-weight: 400;
    color: #4B5563;
}

.item-label strong {
    font-weight: 700;
    color: #111827;
}

.ticker-block.dark .item-label {
    color: rgba(255, 255, 255, 0.6);
}

.ticker-block.dark .item-label strong {
    color: rgba(255, 255, 255, 0.95);
}

@keyframes go-right {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes go-left {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }
}

/* ============================================
   BOUTON FLOTTANT (Style 54 - Forme Organique)
   ============================================ */
@keyframes pulse-btn {
    0%   { box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 0 0 0px rgba(251, 191, 36, 0.6); }
    70%  { box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 0 0 14px rgba(251, 191, 36, 0); }
    100% { box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 0 0 0px rgba(251, 191, 36, 0); }
}

@keyframes phone-vibrate {
    0%   { transform: rotate(0deg); }
    10%  { transform: rotate(-12deg); }
    20%  { transform: rotate(12deg); }
    30%  { transform: rotate(-10deg); }
    40%  { transform: rotate(10deg); }
    50%  { transform: rotate(-6deg); }
    60%  { transform: rotate(6deg); }
    70%  { transform: rotate(0deg); }
    100% { transform: rotate(0deg); }
}

.btn-flottant {
    position: fixed;
    bottom: 25px;
    right: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    padding: 14px 20px;
    border-radius: 0 24px 0 24px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    z-index: 1000;
    transition: all 0.3s ease;
    font-family: var(--font-body);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: pulse-btn 2s ease-out infinite;
}

.btn-flottant:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
    border-radius: 24px 0 24px 0;
}

.btn-flottant svg,
.btn-flottant i {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    animation: phone-vibrate 1.5s ease-in-out infinite;
}

.btn-flottant:hover svg,
.btn-flottant:hover i {
    animation: ring-vibrate 0.3s ease-in-out infinite;
}

/* Version mobile */
@media (max-width: 640px) {
    .btn-flottant {
        bottom: 20px;
        right: 20px;
        padding: 12px 16px;
        font-size: 14px;
    }

    .btn-flottant span {
        display: none;
    }

    .btn-flottant svg,
    .btn-flottant i {
        width: 24px;
        height: 24px;
    }
}


/* Correction du texte blanc sur fond blanc pour les select option */
select option {
    color: #0f172a !important;
    background-color: #ffffff !important;
}

/* ============================================
   HEADER SCROLL TRANSITION & INTELLIGENT EFFECT
   ============================================ */
header {
    transition: all 0.3s ease;
}

header.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

header.scrolled .nav-inner {
    padding-top: 12px;
    padding-bottom: 12px;
}

header.scrolled .logo img {
    height: 50px;
}

header.scrolled .nav-links a {
    color: var(--text);
}

header.scrolled .mobile-stars-bar {
    display: none !important;
}
