/* === POLICES LOCALES === */
@font-face {
  font-family: 'GoblinOne';
  src: url('fonts/GoblinOne.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

/* === RÈGLES GLOBALES === */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
}

body {
  color: #222;
  line-height: 1.6;
  background-image: url(img/divers/font.png);  /* image de fond */
  background-size: cover;                      /* l'image couvre tout l'ecran */
  background-attachment: fixed;                /* image fixe */
  background-position: center;
  background-repeat: no-repeat;
  padding-top: 60px;                           /* hauteur du header sur PC */
}

html, body {
  max-width: 100%;
  overflow-x: hidden;  /* empêche le scroll horizontal */
}

/* === HEADER & MENU === */
header {
  background: #111827;
  color: #fff;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
}

.nav-logo span {
  font-size: 1rem;
  font-weight: bold;
}

/* liens du menu */
.nav-links {
  list-style: none;
  display: flex;
  gap: 15px;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.95rem;
}

.nav-links a:hover {
  text-decoration: underline;
}

/* bouton burger (caché sur PC) */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
}

/* === BANNIÈRE D'ACCUEIL === */
.main-banner {
  position: relative;
  background: transparent;
  color: #111827;
  padding: 60px 20px;
  text-align: center;
}

.main-banner h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.main-banner p {
  font-size: 1rem;
  max-width: 700px;
  margin: 0 auto 20px;
}

/* Logo dans la bannière */
.banner-logo {
  margin-top: 25px;
  display: flex;
  justify-content: center;
}

.banner-logo img {
  height: 800px;     /* très grand sur PC, ajuste si besoin */
  max-width: 90%;
}

/* Bouton d'appel */
.btn-primary {
  display: inline-block;
  padding: 14px 28px;
  background: #b91c1c;        /* rouge vif */
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  font-size: 1.05rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  border: 2px solid #fff;
}

.btn-primary:hover {
  background: #7f1d1d;
}

/* === CONTENEURS & SECTIONS === */
.container {
  max-width: 1100px;
  margin: 30px auto;
  padding: 0 15px;
}

.section {
  background: rgba(255, 255, 255, 0.85); /* blanc légèrement transparent */
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.section h2 {
  font-size: 1.4rem;
  margin-bottom: 10px;
  border-left: 4px solid #f59e0b;
  padding-left: 8px;
}

h1,
h2,
h3 {
  text-align: center;
}

.section ul {
  margin-left: 18px;
  margin-top: 5px;
}

.section li {
  margin-bottom: 5px;
}

/* === TABLEAU TARIFS === */
.tarifs-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  font-size: 0.95rem;
}

.tarifs-table th,
.tarifs-table td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: center;
}

.tarifs-table th {
  background: #f3f4f6;
}

.telechargement-flyer {
  margin-top: 1.5rem;
  font-size: 0.95rem;
  font-weight: 500;
}

.lien-flyer {
  color: #c40000;
  font-weight: 700;
  text-decoration: underline;
}

.lien-flyer:hover {
  color: #ff0000;
  text-decoration: none;
}

/* === CARTES (accueil) === */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 15px;
}

.card {
  background: rgba(255, 255, 255, 0.5);
  padding: 15px;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

/* === LIEN CGV === */
.mention-cgv {
  font-size: 0.95rem;
  margin-top: 1.2rem;
  font-weight: 500;
}

.lien-cgv-important {
  color: #c40000;           /* rouge visible */
  font-weight: 700;
  text-decoration: underline;
}

.lien-cgv-important:hover {
  color: #ff0000;
  text-decoration: none;
}

/* === HIGHLIGHT === */
.highlight {
  color: #b91c1c;
  font-weight: bold;
}

/* === FORMULAIRE CONTACT === */
.formulaire-centre {
  max-width: 600px;
  margin: 40px auto;
}

form {
  display: grid;
  gap: 10px;
  max-width: 500px;
}

label {
  font-weight: bold;
  font-size: 0.9rem;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid #d1d5db;
  border-radius: 3px;
  font-size: 0.9rem;
}

textarea {
  min-height: 120px;
}

input[type="submit"] {
  width: fit-content;
  padding: 8px 16px;
  background: #111827;
  color: #fff;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  font-weight: bold;
}

input[type="submit"]:hover {
  background: #374151;
}

/* === GALERIE === */
.galerie {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.galerie img {
  width: 100%;
  border-radius: 4px;
  object-fit: cover;
  height: 180px;
}

/* === FOOTER === */
footer {
  background: #111827;
  color: #9ca3af;
  text-align: center;
  padding: 15px 25px;
  margin-top: 30px;
  font-size: 0.85rem;
  font-family: Arial, sans-serif;  /* footer en Arial */
}

footer a {
  color: #e5e7eb;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

footer,
footer p,
footer a {
  font-family: Arial, sans-serif !important;
}

/* === FAQ === */
.faq-services {
  margin-top: 3rem;
}

.faq-services h2 {
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
}

.faq-item + .faq-item {
  margin-top: 1.2rem;
}

.faq-item h3 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.faq-item p {
  font-size: 0.95rem;
  line-height: 1.5;
}

/* === RÉSEAUX SOCIAUX === */
.reseaux-sociaux {
  margin-top: 3rem;
}

.reseaux-sociaux h2 {
  font-size: 1.5rem;
  margin-bottom: 0.8rem;
}

.reseaux-sociaux a {
  font-weight: 600;
  color: #c40000;
  text-decoration: underline;
}

.reseaux-sociaux a:hover {
  color: #ff0000;
  text-decoration: none;
}

.footer-reseaux {
  font-size: 0.8rem;
  opacity: 0.9;
}

.accroche-home {
  text-align: center;
  padding: 40px 20px;
  background: linear-gradient(135deg, #111827 0%, #374151 100%);
  color: white;
  border-radius: 10px;
  margin: 20px;
}
.accroche-home h1 { font-size: 2.5rem; margin-bottom: 20px; }
.logo-accroche img { max-height: 200px; width: auto; margin: 20px 0; }
.btn-urgence {
  display: inline-block;
  background: #dc2626;
  color: white;
  padding: 15px 30px;
  text-decoration: none;
  border-radius: 50px;
  font-weight: bold;
  font-size: 1.2rem;
  margin: 20px 0;
  transition: background 0.3s;
}
.btn-urgence:hover { background: #b91c1c; }
.tarif-info { font-size: 0.9rem; opacity: 0.9; }
@media (max-width: 768px) {
  .accroche-home h1 { font-size: 2rem; }
  .logo-accroche img { max-height: 150px; }
}
.tarif-info a {
  color: #facc15;
  text-decoration: underline;
  font-weight: bold;
}
.tarif-info a:hover {
  color: white;
}


/* ===================================================== */
/* === RESPONSIVE SMARTPHONE (<= 768px) ================ */
/* ===================================================== */
@media (max-width: 768px) {

  body {
    font-size: 16px;
    line-height: 1.5;
    padding-top: 50px;          /* header un peu moins haut sur mobile */
  }

  .section-page p {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  h1 {
    font-size: 1.7rem;
  }

  h2 {
    font-size: 1.3rem;
  }

  h3 {
    font-size: 1.1rem;
  }

  .contenu-principal,
  .section-page {
    padding-left: 1.2rem;
    padding-right: 1.2rem;
  }

  .lien-cgv-important,
  .lien-flyer {
    display: inline-block;
    padding: 0.15rem 0.25rem;
  }

  /* Header plus fin */
  header {
    padding: 0;
  }

  .nav {
    padding: 8px 12px;
  }

  /* Bouton burger visible sur mobile */
  .nav-toggle {
    display: block;
  }

  /* Menu mobile déroulant */
  .nav-links {
    position: absolute;
    top: 100%;          /* juste sous la barre noire */
    left: 0;
    right: 0;
    background: #111827;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    display: none;      /* caché par défaut */
  }

  .nav-links.nav-open {
    display: flex;      /* affiché quand on clique sur ☰ */
  }

  .nav-links a {
    font-size: 1rem;
  }

  .banner-logo img {
    height: 400px;      /* logo plus petit sur smartphone */
    max-width: 95%;
  }

  .btn-primary {
    width: 100%;        /* bouton pleine largeur sur mobile */
    max-width: 320px;
  }

  .container {
    margin: 20px auto;
    padding: 0 10px;
  }

  footer {
    padding: 25px 25px;
  }
}
