:root {
    --bg: #0b0e13;
    --text: #eaf0f7;
    --muted: #a8b0bd
}

* {
    box-sizing: border-box
}

html,
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial
}

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.2rem
}
figure {
  text-align: center; /* centre le contenu */
  margin: 2rem 0;     /* espace au-dessus/en-dessous */
}

figure img {
  display: inline-block;
  max-width: 100%;     /* s’adapte aux petits écrans */
  height: auto;
  border-radius: 1rem; /* arrondi doux (16px) */
  box-shadow: 0 0 18px rgba(126, 179, 255, 0.15); /* halo bleu léger comme le reste du site */
}

figure img:hover {
  transform: scale(1.03); /* léger zoom */
  box-shadow: 0 0 28px rgba(126, 179, 255, 0.35); /* halo bleu plus fort */
}
.header {
    position: sticky;
    top: 0;
    background: linear-gradient(to bottom, rgba(11, 14, 19, .9), rgba(11, 14, 19, .55));
    backdrop-filter: blur(6px);
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    z-index: 20
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px
}



.brand img {
    width: 120px;
    height: auto;
    filter: drop-shadow(0 0 12px rgba(126, 179, 255, .35));
    transition: transform 0.3s ease, filter 0.3s ease;
    /* transition fluide */
}

.brand img:hover {
    transform: scale(1.03);
    /* zoom léger */
    filter: drop-shadow(0 0 20px rgba(126, 179, 255, .55));
    /* halo bleu + fort et collé au contour */
}

.menu a {
    margin-left: 1rem;
    color: #dbe6f7;
    text-decoration: none
}

.btn.small {
    padding: .45rem .75rem;
    border-radius: .6rem;
    border: 1px solid #8fb6ff
}

.hero {
    position: relative;
    text-align: center;
    overflow: hidden
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url('assets/hero-bg.svg') center/cover no-repeat;
    opacity: .9;
    z-index: 0
}

.hero .container {
    position: relative;
    z-index: 1;
    padding: 5.5rem 1.2rem 3.2rem
}

.logo-hero {
    width: min(680px, 94%);
    margin: 0 auto;
    display: block;
    filter: drop-shadow(0 0 24px rgba(126, 179, 255, .35))
}

.logo-hero {
    width: min(680px, 94%);
    margin: 0 auto;
    display: block;
    filter: drop-shadow(0 0 24px rgba(126, 179, 255, .35));
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* animation fluide */
}

.logo-hero:hover {
    transform: scale(1.03);
    /* léger zoom */


    filter: drop-shadow(0 0 36px rgba(126, 179, 255, .55));
    /* halo plus fort sur les contours réels */
}


.section {
    padding: 3rem 0;
    border-top: 1px solid rgba(255, 255, 255, .06)
}

.section h2 {
    text-align: center;
    margin: 0 0 1.4rem;
    font-size: 1.5rem;
    letter-spacing: .08em
}

.grid {
    display: grid;
    gap: 1rem
}

.grid.cols-2 {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr))
}

.card {
    display: flex;
    flex-direction: column;
   
    justify-content: space-between;

    /* pousse le bouton en bas */
    background: linear-gradient(180deg, rgba(126, 179, 255, .08), transparent);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 1rem;
    padding: 1.1rem;
}

.card h3,
.card p {
    flex-grow: 0;
    /* le texte prend la place qu'il faut */
}

.card .btn {
    margin-top: auto;
    /* force le bouton à descendre en bas */
}

.card p {
    color: #cfd6e0;
    line-height: 1.55
}

.icon {
    width: 28px;
    height: 28px
}

.map {
    position: relative;
    height: 300px;
    border-radius: 1rem;
    border: 1px dashed rgba(255, 255, 255, .15);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.map::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url('assets/gallery/chalon-filigranne.png') center/cover no-repeat;
    opacity: .15;
    /* discrétion du filigrane */ 
    mix-blend-mode: lighten;
    /* pour que ça s’intègre au fond sombre */
    z-index: 0;
}

.map p {
    position: relative;
    z-index: 1;
    /* le texte reste bien au-dessus */
}

.footer {
    padding: 2rem 0;
    color: #c8c8cc;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, .06)
}

.cta {
    margin-top: 1.3rem;
    display: flex;
    gap: .75rem;
    justify-content: center;
    flex-wrap: wrap
}

.button.call {
    background: #7fb2ff;
    color: #0b0e13;
    border-radius: 0.75rem;
    padding: 0.9rem 1.1rem;
    font-weight: 700;
    transition: transform 0.2s ease;
}

.button.call:hover {
    transform: scale(1.05);
    animation: pulse 1.5s infinite;
}




.button {
    display: inline-block;
    padding: .9rem 1.1rem;
    margin: 0 .5rem; /* espace horizontal entre les boutons */
    border-radius: .75rem;
    background: #7fb2ff;
    color: #0b0e13;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, .1);
    transition: transform 0.2s ease;
}

.button.secondary {
    background: transparent;
    color: #eaf0f7;
    border: 1px solid #7fb2ff
}


.button:hover {
  transform: scale(1.05);          /* petit zoom */
  animation: pulse 1.5s infinite;  /* applique l’animation */
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(127, 178, 255, 0.6);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(127, 178, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(127, 178, 255, 0);
    }
}
    .note {
        margin-top: 1rem;
        padding: 1rem;
        border: 1px dashed rgba(255, 255, 255, .2);
        border-radius: .8rem;
        color: #cfd6e0
    }

    figure {
        text-align: center;
        /* centre le contenu */
        margin: 2rem 0;
        /* espace au-dessus/en-dessous */
    }

    figure img {
        display: inline-block;
        max-width: 100%;
        /* s’adapte aux petits écrans */
        height: auto;
        border-radius: 1rem;
        /* arrondi doux (16px) */
        box-shadow: 0 0 18px rgba(126, 179, 255, 0.15);
        /* halo bleu léger comme le reste du site */
    }

    figure img {
        display: inline-block;
        max-width: 100%;
        height: auto;
        border-radius: 1rem;
        box-shadow: 0 0 18px rgba(126, 179, 255, 0.15);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    figure img:hover {
        transform: scale(1.03);
        box-shadow: 0 0 28px rgba(126, 179, 255, 0.35);
    }

   .titre-depannage {
        font-size: 1.2rem;
        /* taille du texte */
        margin: 1rem 0;
        /* espace autour */
        color: var(--text);
        /* couleur héritée de ta palette */
        font-weight: 600;
        /* un peu moins gras que par défaut */
        padding-left: 2rem;
        /* décale tout le bloc du titre */
        display: inline-block;
        /* pour que la ligne suive la largeur du texte */
        padding-bottom: 0.2rem;
        /* espace entre le texte et la ligne */
        border-bottom: 3px solid #7fb2ff;
        /* soulignement bleu épais */
    } 

.section h1 {
  display: inline-block;        /* garde la largeur du texte */
  margin: 0 auto 2rem auto;     /* centre horizontalement */
  position: relative;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text);
  text-align: center;
}

/* petit trait bleu animé sous le titre */
.section h1::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -8px;
  transform: translateX(-50%);
  width: 3500px; /* ↔️ fixe : adapte la valeur à ce que tu veux */
  height: 3px;
  background: linear-gradient(90deg, transparent, #7fb2ff, transparent);
  border-radius: 2px;
  animation: glow 2s infinite ease-in-out;
}

@keyframes glow {
  0%,100% { opacity: .3; width: 40px; }
  50%     { opacity: 1; width: 80px; }
}

/* Étire les cartes pour qu'elles aient la même hauteur */
.grid.cols-2 {
  align-items: stretch;
}

/* Chaque card occupe toute la hauteur disponible */
.card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Texte en haut */
.card h3, 
.card p {
  margin-top: 0;
}

/* Bouton descend tout seul en bas */
.card .button,
.card .btn {
  margin-top: auto;      /* pousse vers le bas */
  align-self: flex-start; /* reste aligné à gauche si besoin */
}
.card-body { flex: 1 1 auto; }     /* prend la place -> colle le footer en bas */

.card h3 {
  display: flex;
  align-items: flex-start;   /* l’icône reste en haut */
  justify-content: flex-start; /* tout à gauche */
  gap: .5rem;                /* espace entre l’icône et le texte */
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 1rem 0;
  text-align: left;          /* texte aligné à gauche */
}

.card h3 .icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;            /* l’icône ne se réduit pas */
  margin-top: .2rem;         /* petit ajustement pour être pile alignée */
}


/* ===== NAV MOBILE ===== */
@media (max-width: 640px) {
  .header .nav {
    flex-wrap: wrap;           /* autorise le retour à la ligne */
    height: auto;              /* plus de hauteur fixe */
    padding: .4rem 0;
    gap: .4rem;
  }

  .brand img {
    width: 140px;              /* logo plus petit sur mobile */
    height: auto;
  }

  .menu {
    display: flex;
    gap: .6rem;
    flex: 1 0 100%;            /* passe à la ligne sous le logo */
    justify-content: center;   /* centre les liens */
    margin-top: .2rem;
  }

  .menu a {
    white-space: nowrap;       /* évite que les mots se coupent */
    font-size: .95rem;
    padding: .35rem .55rem;
    border-radius: .5rem;
  }

  .btn.small {
    padding: .35rem .6rem;     /* réduit légèrement le bouton "Contact" */
  }
}
