:root{
    --accent: #2563eb;      /* Couleur principale (bleu moderne) */
    --accent-dark: #1d4ed8;
    --accent-soft: #e5edff;
    --accent-muted: #bfdbfe;

    --primary: #0f172a;
    --secondary: #ffffff;

    --bgaccent: #1d4ed8;
    --lightaccent: #f8fafc;

    --radius-xl: 1.25rem;
    --radius-lg: 0.875rem;
    --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.14);
}

/* --------------------
   Global
--------------------- */

html, body {
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

body {
  background: radial-gradient(circle at top, #abb2ba 0, #585f66 35%, #3a3d46 100%);
  color: var(--primary);
}

/* Lien actif dans le menu */
nav a.active {
  background-color: color-mix(in srgb, var(--accent) 85%, transparent);
  color: white;
  box-shadow: 0 10px 32px rgba(37, 99, 235, 0.35);
}

/* Utilitaires couleurs (réutilisés dans ton HTML) */
.primary {
    color: var(--primary);
}

.secondary {
    color: var(--secondary);
}

.accent {
    color: var(--accent);
}

.light-accent {
    background-color: var(--lightaccent);
}

.bg-accent {
    background-color: var(--accent);
}

.bg-accent:hover {
    background-color: var(--bgaccent);
}

.bg-accent-footer {
    background: radial-gradient(circle at top left, #1d4ed8, #0f172a);
}

#menu-btn {
    cursor: pointer;
}

#menu-btn:hover {
    color: white;
    transition-duration: 0.1s;
}

/* Hover générique accentué */
.accent-hover {
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.accent-hover::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 0 0, rgba(148, 163, 253, 0.4), transparent 55%);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.accent-hover:hover::before {
    opacity: 1;
}

.accent-hover:hover {
    color: white;
}

/* --------------------
   Header + Nav
--------------------- */

header {
    background: rgba(15, 23, 42, 0.9);           /* un peu plus opaque */
    backdrop-filter: blur(8px);                  /* flou réduit */
    border-bottom: 1px solid rgba(148, 163, 184, 0.3);
}

/* Titre de la marque dans le header */
header a.text-lg {
    color: #ffffff !important;
    text-shadow: 0 0 12px rgba(15, 23, 42, 0.9);
}

header .container {
    max-width: 1120px;
}

header img {
    border-radius: 999px;
    box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.7);
}

header nav a {
    border-radius: 10px;
    padding-inline: 1rem;
    padding-block: 0.45rem;
    font-size: 0.84rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #e5e7eb;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

header nav a:hover {
    border-color: rgba(148, 163, 184, 0.4);
    background-color: rgba(15, 23, 42, 0.7);
}

/* Menu mobile */
#mobile-menu {
    border-top: 1px solid rgba(148, 163, 184, 0.35);
}

#mobile-menu a {
    border-radius: 0.5rem;
}

/* --------------------
   Hero
--------------------- */

.hero-bg {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background-image:
      linear-gradient(rgba(15, 23, 42, 0.72), rgba(15, 23, 42, 0.95)),
      url('../images/chauffage.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* On ajoute une couche visuelle moderne sans toucher à ton inline style existant */
.hero-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
      radial-gradient(circle at 0 0, rgba(96, 165, 250, 0.45), transparent 55%),
      linear-gradient(135deg, rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.8));
    mix-blend-mode: soft-light;
    opacity: 0.7; /* <-- au lieu de 0.9 */
    pointer-events: none;
}

.hero-bg::after {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.22), transparent 65%);
    top: -120px;
    right: -140px;
    filter: blur(4px);
    opacity: 0.9;
    pointer-events: none;
}

.hero-bg > .container {
    position: relative;
    z-index: 1;
    max-width: 1120px;
}

.hero-bg h1 {
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.hero-bg p {
    font-weight: 300;
}

/* CTA hero (téléphone / urgences) */
.hero-bg a[href^="tel"],
.hero-bg a[href*="wa.me"] {
    border-radius: 10px;
    padding-block: 0.9rem;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.4);
    backdrop-filter: blur(10px);
}

.hero-bg a[href^="tel"]:hover,
.hero-bg a[href*="wa.me"]:hover {
    transform: translateY(-1px);
}

/* --------------------
   Sections génériques
--------------------- */

section {
    scroll-margin-top: 88px;
}

section .container {
    max-width: 1220px;
}

/* Titres de section */
section h2 {
    position: relative;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

section h2 + div.w-20 {
    height: 2px;
    background: linear-gradient(90deg, var(--accent), rgba(129, 140, 248, 0.1));
}

/* --------------------
   Cartes Services
--------------------- */

.service-card {
    border-radius: var(--radius-xl);
    border: 1px solid rgba(148, 163, 184, 0.28);
    background:
      radial-gradient(circle at 0 0, rgba(37, 99, 235, 0.04), #ffffff);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.service-card img {
    transition: transform 0.35s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-soft);
    border-color: rgba(59, 130, 246, 0.7);
    background:
      radial-gradient(circle at 0 0, rgba(59, 130, 246, 0.06), #ffffff);
}

.service-card:hover img {
    transform: scale(1.03);
}

.service-card h3 {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.18rem 0.6rem;
    border-radius: 999px;
    font-size: 0.92rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background-color: var(--accent-soft);
    color: var(--accent-dark);
    text-decoration: none;
}

/* Items de liste dans les cartes services */
.service-card ul li {
    border-radius: 10px;
    padding-inline: 0.75rem;
    padding-block: 0.4rem;
    background-color: #ffffff;
    border: 1px solid rgba(229, 231, 235, 0.8);
}

/* Bouton "Demande de devis" */
#services a[href="#contact"] {
    border-radius: 10px;
    background: rgba(22, 38, 216, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.6);
    box-shadow: 0 7px 15px rgba(148, 163, 184, 0.3);
    color: #f9fafb;
}

#services a[href="#contact"]:hover {
    background: #6478de;
    color: #f9fafb;
    transform: translateY(-1px);
}

/* --------------------
   Section À propos
--------------------- */

#about .shadow-md {
    border-radius: var(--radius-lg);
    border: 1px solid rgba(226, 232, 240, 0.9);
    background: linear-gradient(135deg, #f9fafb, #ffffff);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

#about img.w-64 {
    filter: drop-shadow(0 22px 45px rgba(15, 23, 42, 0.18));
}

/* --------------------
   Témoignages
--------------------- */

section.py-12.bg-gray-50 .grid .bg-white {
    border-radius: var(--radius-xl);
    border: 1px solid rgba(226, 232, 240, 0.95);
    background:
      radial-gradient(circle at top, rgba(219, 234, 254, 0.6), #ffffff);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

section.py-12.bg-gray-50 .grid .bg-white:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(148, 163, 184, 0.45);
}

/* --------------------
   LOCATION
--------------------- */
.location {
    font-weight: bold;
    border: 1px solid lightgray;
}
/* --------------------
   FAQ
--------------------- */

.faq-toggle {
    font-size: 0.95rem;
}

.faq-toggle span {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.7);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    font-size: 1rem;
    background-color: #f9fafb;
}

.faq-content {
    background-color: #ffffff;
}

/* --------------------
   Carte / Maps
--------------------- */

.maps-container {
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.1);
}

/* Carte dans le bloc contact */
.contact-map {
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.7);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.75);
}

.contact-map iframe {
    width: 100%;
    height: 230px;
    border: 0;
    display: block;
}

/* --------------------
   Contact
--------------------- */

#contact {
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.35), transparent 55%),
                radial-gradient(circle at bottom right, rgba(30, 64, 175, 0.6), #020617);
}

#contact::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(135deg, rgba(15, 23, 42, 0.45), rgba(15, 23, 42, 0.9));
    mix-blend-mode: soft-light;
    opacity: 0.9;
}

/* #contact > .container {
    position: relative;
    z-index: 1;
} */

#contact .grid > div {
    border-radius: var(--radius-xl);
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(148, 163, 184, 0.55);
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.7);
    padding: 1.75rem 1.5rem;
}

#contact h3 {
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.9rem;
}

/* Inputs/form */
#contact input,
#contact select,
#contact textarea {
    border-radius: 0.75rem;
    border: 1px solid rgba(148, 163, 184, 0.7);
    font-size: 0.9rem;
}

#contact input:focus,
#contact select:focus,
#contact textarea:focus {
    outline: none;
    box-shadow: 0 0 0 1px rgba(129, 140, 248, 0.85);
    border-color: rgba(129, 140, 248, 1);
}

/* Bouton formulaire */
#contact button[type="submit"] {
    border-radius: 20px;
    border: 1px solid rgba(203, 213, 225, 0.9);
    background: linear-gradient(135deg, #ffffff, #e5edff);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.6);
    font-size: 0.92rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

#contact button[type="submit"]:hover {
    background: rgba(129, 140, 248, 0.85);
    color: #f9fafb;
}

/* --------------------
   Cookie banner
--------------------- */

#cookie-banner {
    backdrop-filter: blur(16px);
    background: rgba(15, 23, 42, 0.92);
    border-top: 1px solid rgba(148, 163, 184, 0.4);
}

#cookie-banner button {
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

/* Bouton Refuser */
#cookie-banner #reject-cookies:hover {
  background-color: rgba(223, 226, 234, 0.9); /* fond sombre */
  color: #131236;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.35);
  font-weight: bold;
}

/* Bouton Accepter */
#cookie-banner #accept-cookies:hover {
  background-color: rgba(223, 226, 234, 0.9);
  color: #131236;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.35);
  font-weight: bold;
}

/* --------------------
   Footer
--------------------- */

footer {
    border-top: 1px solid rgba(30, 64, 175, 0.65);
}

footer .container {
    max-width: 1120px;
}

footer p,
footer li a {
    font-size: 0.82rem;
}

.sdrBtn:hover {
    color: white;
    text-decoration: underline;
}

/* --------------------
   Bouton "Retour en haut"
--------------------- */

#backToTop {
    outline: none;
    --shadow: 0 8px 20px rgba(16,24,40,.12);
    position:fixed;
    right:var(--gap, 18px);
    bottom:var(--gap, 18px);
    width:var(--size, 56px);
    height:var(--size, 56px);
    border-radius:999px;
    background:linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(228, 231, 240, 0.92));
    display:grid;
    place-items:center;
    box-shadow:var(--shadow);
    border:1px solid rgba(148,163,184,.6);
    backdrop-filter: blur(12px);
    cursor:pointer;
    transform:translateY(20px) scale(.94);
    opacity:0;
    pointer-events:none;
    transition:transform 200ms ease, opacity 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.cursor {
    cursor: pointer;
}

#backToTop.show {
    transform:translateY(0) scale(1);
    opacity:1;
    pointer-events:auto;
}

#backToTop svg{
    width:28px;
    height:28px;
    display:block;
}

#backToTop .circle{
    fill:var(--accent);
    filter: drop-shadow(0 10px 28px rgba(37,99,235,.75));
}

#backToTop .arrow{
    fill:white;
}

#backToTop:hover {
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.6);
    border-color: rgba(96, 165, 250, 0.9);
}

/* Réduction du mouvement */
@media (prefers-reduced-motion: reduce){
    #backToTop{transition:none}
}

/* Smartphone */
@media (max-width:420px){
    :root{
        --gap:14px;
        --size:50px;
    }
    #backToTop{
        box-shadow:0 6px 14px rgba(16,24,40,.1)
    }
}
