/*
Theme Name: TPC Services
Theme URI: https://tpc-services.fr
Description:  TPC Services - Plomberie, chauffage et electricite en Aquitaine. Depannage 24h/24 7j/7  -  Expert en Plomberie & Chauffage Intervention rapide dans toute la region Aquitaine
Author: XPI Concept
Author URI: https://xpi-concept.fr
Version: 1.0
Text Domain: tpc-services
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: Développe par : XPI Concept - www.xpi-concept.fr  - Email : contact@xpi-concept.fr
*/

/* Import des Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&family=Montserrat:wght@700;800&display=swap');

/* Variables CSS */
:root {
    --primary: #0a2c5e;    /* Bleu foncé professionnel */
    --secondary: #ff7f26;  /* Orange pour les accents */
    --accent: #1a5fad;     /* Bleu moyen */
    --light: #ffffff;
    --dark: #333333;
    --gray: #f8f9fa;
}

[data-theme="dark"] {
    --primary: #1a5fad;
    --secondary: #f8ec18;
    --accent: #4d9df7;
    --light: #121212;
    --dark: #f5f5f5;
    --gray: #1e1e1e;
}

* {
    transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--light);
    color: var(--dark);
    overflow-x: hidden;
}

.navbar {
    background-color: var(--light) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

[data-theme="dark"] .navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 50px;
    height: 50px;
    background-color: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    font-weight: bold;
}

.logo-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.8rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

[data-theme="dark"] .logo-text {
    color: white;
}

.logo-text span {
    color: var(--secondary);
}

.theme-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s;
    margin-left: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    background-color: rgba(0,0,0,0.05);
}

[data-theme="dark"] .theme-toggle:hover {
    background-color: rgba(255,255,255,0.1);
}

.theme-toggle i {
    font-size: 20px;
    color: var(--primary);
}

[data-theme="dark"] .theme-toggle i {
    color: var(--dark);
}

.nav-link {
    color: var(--primary) !important;
    font-weight: 500;
}

[data-theme="dark"] .nav-link {
    color: white !important;
}

.dropdown-menu {
    background-color: var(--light);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border: none;
    padding: 10px 0;
}

[data-theme="dark"] .dropdown-menu {
    background-color: #1e1e1e;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.dropdown-item {
    padding: 10px 20px;
    font-weight: 500;
    transition: all 0.3s;
    color: var(--dark);
}

[data-theme="dark"] .dropdown-item {
    color: var(--dark);
}

.dropdown-item:hover {
    background-color: var(--gray);
    color: var(--primary);
    padding-left: 25px;
}

/* Hero Slider */
.hero-slider {
    height: 85vh;
    position: relative;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: translateX(100%);
    transition: all 1.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    align-items: center;
}

.slide.active {
    opacity: 1;
    transform: translateX(0);
}

.slide.prev {
    transform: translateX(-100%);
    opacity: 0;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(10, 44, 94, 0.7), rgba(0, 0, 0, 0.5));
}

.slide-content {
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
    padding: 0 20px;
    max-width: 900px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(30px);
    transition: all 1.2s cubic-bezier(0.165, 0.84, 0.44, 1) 0.3s;
}

.slide.active .slide-content {
    opacity: 1;
    transform: translateY(0);
}

.slide-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.slide-content p {
    font-size: 1.5rem;
    margin-bottom: 30px;
}

.hero-btn {
    background-color: var(--secondary);
    border: none;
    padding: 12px 35px;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s;
}

.hero-btn:hover {
    background-color: #e06e1f;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 127, 38, 0.4);
}

.slider-nav {
    position: absolute;
    bottom: 30px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 10;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.5);
    margin: 0 8px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}

.slider-dot.active {
    background-color: var(--secondary);
    transform: scale(1.3);
}

/* Services Section */
.services-section {
    padding: 100px 0;
    background-color: var(--gray);
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    position: relative;
    margin-bottom: 60px;
    text-align: center;
    color: var(--primary);
}

[data-theme="dark"] .section-title {
    color: var(--dark);
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--secondary);
    border-radius: 2px;
}

.service-card {
    background-color: var(--light);
    border-radius: 10px;
    padding: 30px;
    height: 100%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.4s ease;
    border-top: 4px solid var(--secondary);
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(10, 44, 94, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 0;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.service-card.highlight {
    animation: highlightService 1.5s ease-out;
}


/* --------------------------------------------------
   HOVER SERVICES – effet CodePen (wWQeEB)
   -------------------------------------------------- */
.service-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.5s ease;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--secondary) 0%, transparent 70%);
  opacity: 0%;
  transform: scale(0.9) translateZ(0);
  transition: opacity 0.4s ease, transform 0.5s ease;
  pointer-events: none;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(255, 127, 38, 0.6);
}

.service-card:hover::before {
  opacity: 0.18;
  transform: scale(1) translateZ(0);
}

.service-card .service-icon,
.service-card h3,
.service-card .service-list {
  position: relative;
  z-index: 2;
}

@keyframes highlightService {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 127, 38, 0.6);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(255, 127, 38, 0.2);
        transform: scale(1.02);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 127, 38, 0);
        transform: scale(1);
    }
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary);
    position: relative;
    z-index: 1;
}

[data-theme="dark"] .service-icon {
    color: var(--dark);
}

.service-card h3 {
    color: var(--primary);
    margin-bottom: 20px;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

[data-theme="dark"] .service-card h3 {
    color: var(--dark);
}

.service-list {
    list-style-type: none;
    padding-left: 0;
    position: relative;
    z-index: 1;
    color: var(--dark);
}

[data-theme="dark"] .service-list {
    color: var(--dark);
}

.service-list li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 25px;
}

.service-list li::before {
    content: "•";
    color: var(--secondary);
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    top: -5px;
}

/* Contact Section */
.contact-section {
    padding: 100px 0;
    background-color: var(--light);
}

.contact-info {
    background: linear-gradient(to right, var(--primary), var(--accent));
    padding: 30px;
    border-radius: 10px;
    color: white;
    margin-bottom: 30px;
    height: 100%;
}

.contact-info i {
    font-size: 1.5rem;
    margin-right: 10px;
    vertical-align: middle;
}

.btn-primary-custom {
    background-color: var(--secondary);
    border-color: var(--secondary);
    color: white;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s;
}

.btn-primary-custom:hover {
    background-color: #e06e1f;
    border-color: #e06e1f;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 127, 38, 0.3);
}

/* Footer */

.footer {
    background-color: var(--primary);
    color: white;
    padding: 60px 0 20px;
}

.footer .col-md-4 h5 {
    color: #ff7f26 !important;
    font-weight: 700;
    margin-bottom: 15px;
}

/* Icônes du footer en orange */

.footer .list-unstyled li i {
    color: #ff7f26;
    font-size: 1.1rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-logo-icon {
    width: 40px;
    height: 40px;
    background-color: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    font-weight: bold;
}

.footer-logo-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: rgb(255, 255, 255);
}

/* Liens Services dans le footer */
.footer .list-unstyled li a {
    color: white;
    text-decoration: none;
    position: relative;
    display: inline-block;
    transition: color 0.3s ease;
}

/* Couleur orange au survol */
.footer .list-unstyled li a:hover {
    color: #ff7f26;
}

/* Souligné animé */
.footer .list-unstyled li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background-color: #ff7f26;
    transition: width 0.3s ease;
}

.footer .list-unstyled li a:hover::after {
    width: 100%;
}

.copyright {
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 20px;
    margin-top: 40px;
    text-align: center;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.7);
}

.xpi-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.xpi-icon {
    width: 25px;
    height: 25px;
    background-color: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 14px;
    font-weight: bold;
}

.highlight {
    color: var(--secondary);
    font-weight: bold;
}

.section-anchor {
    padding-top: 100px;
    margin-top: -100px;
}

.contact-form .form-control {
    border-radius: 8px;
    padding: 12px 15px;
    border: 1px solid #ddd;
    background-color: var(--light);
    color: var(--dark);
}

.contact-form .form-control:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 0.25rem rgba(255, 127, 38, 0.25);
}

.contact-form {
    background-color: var(--light);
    color: var(--dark);
}

.contact-info i {
    color: #ff7f26;
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .slide-content h1 {
        font-size: 2.5rem;
    }
    
    .slide-content p {
        font-size: 1.2rem;
    }
    
    .services-section, .contact-section {
        padding: 60px 0;
    }
    
    .theme-toggle {
        margin-left: auto;
        margin-right: 15px;
    }

    .navbar-collapse {
        background-color: var(--light);
        padding: 15px;
        border-radius: 8px;
        margin-top: 10px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }

    [data-theme="dark"] .navbar-collapse {
        background-color: #1e1e1e;
        box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    }
}

/* Ajustements reCAPTCHA */
.grecaptcha-badge { 
    opacity: 0.8;
    z-index: 1000;
}

.grecaptcha-badge:hover {
    opacity: 1;
}

/* Logo mobile – jaune fixe */
.logo-mobile-yellow {
    color: #ffeb3b !important;
    font-weight: 800;
}

/* --- AJOUTS POUR HEADER MOBILE --- */

/* Texte jaune souligné */
.logo-mobile-yellow {
    color: #ffeb3b !important;
    font-weight: 800;
    text-decoration: none;
    position: relative;
}
.logo-mobile-yellow::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #ffeb3b;
}

/* Icône menu blanche sur mobile */

@media (max-width: 991.98px) {
    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    }
}

/* Alignement sur la même ligne (mobile) */
@media (max-width: 991.98px) {
    .navbar {
        padding: 0.5rem 0;
    }
    .navbar-brand {
        display: flex;
        align-items: center;
        margin-right: auto;
    }
}