/* === Couleur d'accent (remplace le bleu) ============================= */
:root{
  --accent: #7F1D1D;      /* or: #00e5ff / #7c5cff / #ff7a59 */
  --accent-700: #7F1D1D;  /* hover/active */
  --bs-primary: var(--accent); /* pour les utilitaires Bootstrap */
}

/* Global */
body {
  background-color: #0d0d0d;
  color: #eaeaea;
  font-family: 'Segoe UI', Arial, sans-serif;
  line-height: 1.6;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-700); text-decoration: underline; }

/* Important pour éviter un espace en haut */
html, body { height: 100%; }
body { margin: 0; }

/* Le hero prend toute la hauteur de l'écran */
.hero {
  position: relative;
  /* fallback puis unités modernes pour mobiles (iOS/Android) */
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;

  /* centrage vertical (complète le d-flex Bootstrap) */
  display: flex;
  align-items: center;
}

/* Le bloc <picture> couvre tout le hero */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* L’image remplit sans déformation + assombrie (pas de flou) */
.hero-bg > img {
  width: 100%;
  height: 100%;
  object-fit: cover;       /* pas de déformation */
  object-position: center; /* cadrage */
  display: block;
  filter: brightness(0.38) contrast(1.05);
  transform: scale(1.03);  /* évite bords assombris visibles */
}

/* Le contenu au-dessus */
.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 { font-size: 3rem; font-weight: 700; }
.hero p.lead { font-size: 1.3rem; color: #ddd; }
.hero .btn {
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
}
.hero .btn-light {
  background: var(--accent);
  border: none;
  color: #0b0b0b;
}
.hero .btn-light:hover {
  background: var(--accent-700);
}
.hero .btn-outline-light {
  border: 1px solid #fff;
  color: #fff;
}
.hero .btn-outline-light:hover {
  background: rgba(255,255,255,0.1);
}

/* Sections */
section {
  padding: 4rem 0;
}
.section-title {
  font-weight: 700;
  text-align: center;
  margin-bottom: 2rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #fff;
}

/* Services */
.service.card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  color: #eee;
  transition: transform 0.3s;
}
.service.card:hover { transform: translateY(-4px); }
.service-icon {
  width: 60px; height: 60px;
  display: grid; place-items:center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  margin-bottom: 1rem;
  font-size: 24px;
}

/* Process */
.process-step {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 1.5rem;
  height: 100%;
}
.step-number {
  width: 40px; height: 40px;
  background: var(--accent);
  color: #0b0b0b;
  font-weight: bold;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto 1rem;
}

/* Projets */
.project-img {
  width: 100%; height: 220px;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.3s, filter 0.3s;
}
.project-img:hover {
  transform: scale(1.03);
  filter: brightness(1.1);
}

/* Avis */
blockquote.card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  padding: 1.5rem;
  font-style: italic;
}

/* Tarifs */
.pricing {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  color: #eee;
}
.pricing .card-title {
  font-weight: bold;
  margin-bottom: 1rem;
}
.pricing .display-6 {
  color: #fff;
}
.pricing .btn {
  background: var(--accent);
  color: #0b0b0b;
  border: none;
  border-radius: 8px;
  margin-top: 1rem;
}
.pricing .btn:hover {
  background: var(--accent-700);
}

/* CTA */
.cta {
  background: url('https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?q=80&w=1600&auto=format&fit=crop') center/cover no-repeat;
  position: relative;
  text-align: center;
  color: #fff;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.65);
}
.cta .container {
  position: relative;
  z-index: 1;
}
.cta h2 { font-size: 2rem; margin-bottom: 1rem; }

/* Footer */
footer {
  background: #000;
  color: #aaa;
}
footer a { color: #ddd; }
footer a:hover { color: var(--accent); }

/* Neutraliser les fonds clairs Bootstrap en thème sombre */
.bg-light { 
  background-color: #121212 !important; 
  color: #eaeaea !important;
}

/* Renforcer le contraste dans le bloc Méthode */
.process-step h6 { color: #ffffff; }
.process-step p  { color: #cfcfcf; }

/* Optionnel : atténuer "text-muted" trop pâle en dark */
.text-muted, .blockquote-footer { color: #b8b8b8 !important; }

/* Couverture Bootstrap utilitaires primaires */
.btn-primary{ background-color: var(--accent); border-color: var(--accent); }
.btn-primary:hover{ background-color: var(--accent-700); border-color: var(--accent-700); }
.border-primary{ border-color: var(--accent) !important; }
.text-primary{ color: var(--accent) !important; }

/* Boutons : texte blanc partout */
.hero .btn-light,
.pricing .btn,
.btn-primary {
  color: #fff !important;
}

/* Conserver le blanc au survol/focus/active */
.hero .btn-light:hover,
.hero .btn-light:focus,
.pricing .btn:hover,
.pricing .btn:focus,
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  color: #fff !important;
}

/* Logo fixe en haut à droite */
.brand-logo{
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 1050; /* au-dessus du hero/nav */
  display: inline-block;
}
.brand-logo img{
  height: 44px; /* ajuste si besoin */
  width: auto;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.45));
  transition: transform .15s ease;
}
.brand-logo:hover img{
  transform: scale(1.03);
}

/* Responsive: un peu plus petit sur mobile, plus grand sur grands écrans */
@media (max-width: 576px){
  .brand-logo{ top: 12px; right: 12px; }
  .brand-logo img{ height: 36px; }
}
@media (min-width: 992px){
  .brand-logo img{ height: 56px; }
}
/* Logo 25% plus petit */
.brand-logo img { height: 33px; }           /* avant: 44px */
@media (max-width: 576px){
  .brand-logo img { height: 27px; }         /* avant: 36px */
}
@media (min-width: 992px){
  .brand-logo img { height: 42px; }         /* avant: 56px */
}

/* Centre tout le contenu du hero */
.hero { 
  justify-content: center;              /* centre horizontalement le contenu flex */
}

/* Centre le texte + limite la largeur pour une belle lecture */
.hero > .container { 
  text-align: center; 
}
.hero > .container > * {                /* ex. ton .col-lg-8 */
  margin-left: auto;
  margin-right: auto;
  max-width: 920px;                     /* ajuste si tu veux plus/moins large */
}

/* Centre les groupes de boutons / badges / infos */
.hero .container .d-flex { 
  justify-content: center; 
}
.hero .badge { 
  display: inline-block; 
  margin-inline: auto; 
}








/* Formulaires dark */
.form-control, .form-select, .form-check-input {
  background-color: #111;
  border-color: rgba(255,255,255,0.15);
  color: #eaeaea;
}
.form-control::placeholder { color: #9aa; }
.form-control:focus, .form-select:focus {
  background-color: #111;
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 .2rem rgba(127, 29, 29, .25); /* adapte à ta couleur d'accent */
}
.form-check-input:checked {
  background-color: var(--accent);
  border-color: var(--accent);
}
.invalid-feedback { color: #ffb4b4; }
.alert-success {
  background: rgba(40,167,69,.15);
  border-color: rgba(40,167,69,.35);
  color: #c8f5d2;
}


/* Cartes de la page Contact : tout en blanc */
.contact-page .card { color: #fff; }
.contact-page .card h1,
.contact-page .card h2,
.contact-page .card h3,
.contact-page .card h4,
.contact-page .card h5,
.contact-page .card h6,
.contact-page .card p,
.contact-page .card li,
.contact-page .card .small,
.contact-page .card .text-muted,
.contact-page .card .fw-semibold,
.contact-page .card a,
.contact-page .card .link-light {
  color: #fff !important;
}

/* Icônes rondes déjà à ta couleur d’accent */
.contact-page .card .service-icon {
  background: var(--accent);
  color: #fff;
}

/* Boutons de la carte "Infos utiles" */
.contact-page .card .btn-primary { color: #fff !important; }
.contact-page .card .btn-outline-light { color: #fff !important; border-color: #fff !important; }


/* Pages Mentions légales / Politique (dark + lisible) */
.legal-page header { padding-block: 4rem 1rem; }
.legal-page header .text-muted { color: #b8b8b8 !important; }

.legal-page main .card{
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
}

.legal-page main h2{
  margin-top: 1.75rem;
  margin-bottom: .75rem;
  font-size: 1.125rem;
  letter-spacing: .2px;
  color:#fff;
}

.legal-page main p,
.legal-page main li { color:#eaeaea; }
.legal-page main ul{ margin-left: 1.1rem; }
.legal-page main li{ margin-bottom: .5rem; }

.legal-page main a{ color: var(--accent); }
.legal-page main a:hover{ color: var(--accent-700); }

.legal-page hr,
.legal-page .border-secondary{ border-color: rgba(255,255,255,0.18) !important; }

.legal-page .btn-outline-light{ color:#fff; border-color:#fff; }
.legal-page .btn-outline-light:hover{ background: rgba(255,255,255,0.12); }

.legal-page .container .small { color:#b8b8b8; }
