/* --- RESET LÉGER --- */

:root {
  --idem-red: #c82630;        /* rouge IDEM officiel */
  --idem-red-dark: #a91f28;   /* hover / actif */
  --idem-black: #1a1a1a;
  --idem-gray: #f5f5f5;
  --idem-border: #e6e6e6;
}


* {
  box-sizing: border-box;
}

body {
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  color: #1a1a1a;
  line-height: 1.65;
  background: #ffffff;
  margin: 0;
}

p {
  max-width: 75ch;
}

a {
  color: var(--idem-red);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  color: var(--idem-red-dark);
}

h1 {
  font-size: 42px;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

h2 {
  font-size: 32px;
  margin-top: 80px;
  margin-bottom: 30px;
  letter-spacing: -0.3px;
}

h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

h1, h2, h3 {
  color: var(--idem-black);
}

section,
.section {
  padding: 80px 20px;
}

.section.light {
  background: var(--idem-gray);
}

.container {
  max-width: 1100px;
  margin: auto;
}

.hero,
#intro,
.header-image {
  background: linear-gradient(135deg, #f1f4f8, #ffffff);
  padding: 100px 20px;
  text-align: center;
}

.hero p {
  font-size: 18px;
  margin: auto;
}

ul {
  padding-left: 20px;
  margin-top: 20px;
}

li {
  margin-bottom: 8px;
}

.card,
.bloc,
.box {
  background: #ffffff;
  border: 1px solid var(--idem-border);
  padding: 30px;
  border-radius: 8px;
  margin-bottom: 20px;
}

button,
input[type="submit"],
.btn {
  background: #1f4fa3;
  color: #ffffff;
  border: none;
  padding: 12px 22px;
  font-size: 15px;
  border-radius: 6px;
  cursor: pointer;
}

button:hover,
input[type="submit"]:hover,
.btn:hover,
.sticky-devis:hover {
  background: var(--idem-red-dark);
}

form {
  max-width: 600px;
  margin-top: 30px;
  background: #ffffff;
  padding: 35px;
  border-radius: 10px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.06);
}

input,
select,
textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  font-size: 14px;
}

textarea {
  min-height: 120px;
}

@media (max-width: 768px) {

  h1 {
    font-size: 30px;
  }

  h2 {
    font-size: 24px;
    margin-top: 50px;
  }

  section,
  .section {
    padding: 50px 15px;
  }

  .hero {
    padding: 70px 15px;
  }

  form {
    padding: 25px;
  }

  nav {
    display: none; /* simple & efficace si menu trop lourd */
  }
}

.team,
.equipe,
#team {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
}


/* --- STICKY DEVIS MOBILE --- */
.sticky-devis {
  display: none;
}

@media (max-width: 768px) {

  .sticky-devis {
    display: block;
    position: fixed;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--idem-red);
    box-shadow: 0 10px 25px rgba(200, 38, 48, 0.35);
    color: #ffffff;
    border: none;
    padding: 14px 26px;
    /* border-radius: 30px; */
    font-size: 15px;
    font-weight: 600;
    z-index: 9999;
    text-align: center;

    /* animation */
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  /* état masqué */
  .sticky-devis.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%) translateY(20px);
  }
}

html {
  scroll-behavior: smooth;
}

@media (max-width: 768px) {
  body {
    padding-bottom: 90px;
  }
}
