/* ========== VARIABLES ========== */
:root {
  --teal: #2a9d8f;
  --teal-dark: #1f7a6e;
  --blue: #3a7bd5;
  --blue-dark: #2c5fb3;
  --dark: #2d3748;
  --dark-deep: #1a202c;
  --white: #ffffff;
  --gray-light: #f0f2f5;
  --gray-medium: #cbd5e0;
  --gray-text: #4a5568;
  --shadow: 0 2px 10px rgba(0,0,0,0.08);
  --shadow-hover: 0 6px 20px rgba(0,0,0,0.12);
  --transition: all 0.3s ease;
}

/* ========== RESET ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: 'Open Sans', sans-serif;
  color: #333;
  line-height: 1.7;
  overflow-x: hidden;
}
h1, h2, h3, h4, h5 {
  font-family: 'Poppins', sans-serif;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ========== HEADER ========== */
.header-top {
  background: var(--white);
  padding: 16px 0;
  border-bottom: 1px solid #eee;
}
.header-top-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
}
.logo-img {
  height: 65px;
  width: auto;
}
.header-top-right {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.header-tagline {
  font-size: 1.5rem;
  font-weight: 700;
  color: #299376;
  letter-spacing: -0.3px;
}
.header-buttons {
  display: flex;
  gap: 10px;
}
.btn-header-contact, .btn-header-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 28px;
  border-radius: 6px;
  font-size: .9rem;
  font-weight: 500;
  border: 1.5px solid var(--gray-medium);
  color: var(--dark);
  transition: var(--transition);
}
.btn-header-contact:hover, .btn-header-phone:hover {
  background: var(--gray-light);
  border-color: var(--teal);
  color: var(--teal);
}

/* ========== NAV ========== */
.main-nav {
  background: #1C63A4;
  border-bottom: none;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 0;
}
.nav-links li a {
  display: block;
  padding: 14px 22px;
  font-size: .92rem;
  font-weight: 500;
  color: rgba(255,255,255,.85);
  transition: var(--transition);
  border-bottom: 2px solid transparent;
}
.nav-links li a:hover {
  color: #ffffff;
}
.nav-links li a.active {
  color: #ffffff;
  font-weight: 600;
  background: rgba(255,255,255,.25);
  border-radius: 8px 8px 0 0;
  border: none;
  border-bottom: none;
  margin-bottom: -1px;
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
  margin-left: auto;
}
.hamburger span {
  width: 26px;
  height: 3px;
  background: var(--white);
  border-radius: 2px;
}

/* ========== HERO (HOME) ========== */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: var(--dark-deep);
  background-size: cover;
  background-position: center center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.35);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 60px 24px;
}
.hero-logo {
  height: 80px;
  margin-bottom: 30px;
  filter: brightness(0) invert(1);
}
.hero h1 {
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 20px;
}
.hero p {
  font-size: 1.05rem;
  color: rgba(255,255,255,.85);
  margin-bottom: 30px;
  line-height: 1.7;
}

/* ========== PAGE HERO (subpages) ========== */
.page-hero {
  position: relative;
  background: linear-gradient(135deg, #1a365d 0%, #2a4a7f 100%);
  padding: 70px 0;
  color: white;
  background-size: cover;
  background-position: center;
  min-height: 350px;
  display: flex;
  align-items: center;
}
.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26,54,93,.65);
  z-index: 1;
}
.page-hero .container {
  position: relative;
  z-index: 2;
}
.page-hero h1 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.3;
}
.page-hero p {
  font-size: 1rem;
  color: rgba(255,255,255,.85);
  margin-bottom: 16px;
  line-height: 1.7;
  max-width: 800px;
}
.page-hero a {
  color: rgba(255,255,255,.9);
  text-decoration: underline;
}
.page-hero .btn-cta {
  text-decoration: none;
  margin-top: 10px;
}

/* ========== BUTTONS ========== */
.btn-cta {
  display: inline-block;
  background: var(--blue);
  color: white;
  padding: 14px 36px;
  border-radius: 30px;
  font-weight: 600;
  font-size: .95rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}
.btn-cta:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(58,123,213,.4);
}
.btn-call {
  display: inline-block;
  background: var(--blue);
  color: white;
  padding: 14px 36px;
  border-radius: 30px;
  font-weight: 600;
  font-size: .95rem;
  transition: var(--transition);
}
.btn-call:hover {
  background: var(--blue-dark);
}

/* ========== SECTIONS ========== */
.section-white {
  padding: 80px 0;
  background: var(--white);
}
.section-gray {
  padding: 80px 0;
  background: var(--gray-light);
}
.section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 24px;
  line-height: 1.4;
}
.section-title.center {
  text-align: center;
}
.section-subtitle {
  text-align: center;
  color: var(--gray-text);
  max-width: 800px;
  margin: 0 auto 50px;
  font-size: .95rem;
}
.text-content p, .text-content .signature {
  color: var(--gray-text);
  margin-bottom: 16px;
  font-size: .95rem;
  line-height: 1.8;
}
.text-content .signature {
  font-weight: 600;
  font-style: italic;
  color: var(--dark);
  margin-top: 10px;
}
.text-center {
  text-align: center;
  margin-top: 30px;
}

/* ========== CONTENT BLOCKS ========== */
.content-block {
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid #eee;
}
.content-block:last-child {
  border-bottom: none;
}
.content-block h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 14px;
}
.content-block p {
  color: var(--gray-text);
  font-size: .95rem;
  line-height: 1.8;
  margin-bottom: 10px;
}
.content-block a {
  color: var(--blue);
  text-decoration: underline;
}
.reno-block {
  margin-bottom: 40px;
}
.reno-block h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 16px;
}
.reno-block h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--dark);
  margin: 20px 0 10px;
}
.reno-block p {
  color: var(--gray-text);
  font-size: .95rem;
  line-height: 1.8;
  margin-bottom: 12px;
}

/* ========== STEPS GRID ========== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin: 50px 0 40px;
}
.steps-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin: 50px 0 40px;
}
.step-card {
  background: var(--white);
  border-radius: 12px;
  padding: 35px 28px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.step-icon-fallback {
  font-size: 3rem;
  margin-bottom: 16px;
}
.step-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 14px;
}
.step-card p {
  color: var(--gray-text);
  font-size: .9rem;
  line-height: 1.7;
  margin-bottom: 8px;
}
.procedure-footer {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}
.procedure-footer p {
  color: var(--gray-text);
  font-size: .95rem;
  line-height: 1.8;
  font-style: italic;
}

/* ========== SERVICES GRID ========== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.service-block {
  background: var(--gray-light);
  border-radius: 12px;
  padding: 30px;
  transition: var(--transition);
}
.section-white .service-block {
  background: var(--gray-light);
}
.section-gray .service-block {
  background: var(--white);
}
.service-block:hover {
  box-shadow: var(--shadow-hover);
}
.service-block h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 14px;
}
.service-block p {
  color: var(--gray-text);
  font-size: .9rem;
  line-height: 1.7;
  margin-bottom: 8px;
}
.service-block ul {
  list-style: none;
  padding: 0;
}
.service-block ul li {
  padding: 6px 0;
  color: var(--gray-text);
  font-size: .9rem;
  border-bottom: 1px solid #e2e8f0;
}
.service-block ul li:last-child {
  border-bottom: none;
}
.service-block a {
  color: var(--blue);
}

/* ========== CTA BANNER ========== */
.cta-banner {
  background: linear-gradient(135deg, #1a365d 0%, #2a4a7f 50%, #1a365d 100%);
  padding: 70px 0;
  text-align: center;
}
.cta-banner h2 {
  font-size: 2.2rem;
  font-weight: 700;
  color: white;
  margin-bottom: 16px;
}
.cta-banner h2 span {
  color: #fbbf24;
}
.cta-banner p {
  font-size: 1rem;
  color: rgba(255,255,255, .85);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

/* ========== LOGO GRID (certs & partners) ========== */
.logo-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 40px;
}
.logo-item {
  background: white;
  border-radius: 10px;
  padding: 16px 24px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 90px;
  min-width: 120px;
  transition: var(--transition);
}
.section-white .logo-item {
  background: var(--gray-light);
}
.logo-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}
.logo-item img {
  max-height: 70px;
  width: auto;
  object-fit: contain;
}
.logo-text {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: .85rem;
  color: var(--teal-dark);
  text-align: center;
}

/* ========== CONTACT ========== */
.contact-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  align-items: start;
  margin-top: 40px;
}
.contact-info-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 50px;
  align-items: start;
}
.contact-details h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 16px;
}
.contact-details p {
  margin-bottom: 8px;
  color: var(--gray-text);
  font-size: .95rem;
}
.contact-details a {
  color: var(--teal);
}
.contact-form {
  background: var(--white);
  border-radius: 12px;
  padding: 35px;
  box-shadow: var(--shadow);
}
.contact-form h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 20px;
}
.form-group {
  margin-bottom: 18px;
}
.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: .88rem;
  color: #444;
}
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--gray-medium);
  border-radius: 6px;
  font-family: 'Open Sans', sans-serif;
  font-size: .92rem;
  transition: var(--transition);
  outline: none;
  background: var(--white);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(42,157,143, .1);
}
.form-group textarea {
  min-height: 120px;
  resize: vertical;
}
.form-required {
  font-size: .8rem;
  color: #999;
  margin-bottom: 10px;
}
.form-consent {
  margin-bottom: 18px;
}
.form-consent a {
  font-size: .8rem;
  color: var(--blue);
  text-decoration: underline;
}
.form-submit {
  background: var(--blue);
  color: white;
  padding: 12px 40px;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Poppins', sans-serif;
}
.form-submit:hover {
  background: var(--blue-dark);
}
.contact-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 20px;
}

/* ========== PAGE CTA ========== */
.page-cta {
  padding: 50px 0;
  background: var(--gray-light);
  text-align: center;
}
.page-cta p {
  color: var(--gray-text);
  margin-bottom: 20px;
  font-size: 1rem;
}

/* ========== FOOTER ========== */
footer {
  background: var(--white);
  border-top: 1px solid #ddd;
  padding: 40px 0 20px;
  color: var(--gray-text);
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.footer-logo {
  height: 50px;
  width: auto;
  margin-bottom: 16px;
}
.footer-brand p {
  font-size: .88rem;
  line-height: 1.6;
  margin-bottom: 4px;
}
.footer-brand a {
  color: var(--teal);
}
.footer-links-row {
  display: flex;
  align-items: center;
}
.footer-links-row a {
  font-size: .85rem;
  color: var(--blue);
  text-decoration: underline;
}
.footer-bottom {
  max-width: 1100px;
  margin: 30px auto 0;
  padding: 16px 24px 0;
  border-top: 1px solid #eee;
  text-align: center;
  font-size: .82rem;
  color: #999;
}
.footer-bottom a {
  color: var(--blue);
  text-decoration: underline;
}

/* ========== IMAGE-TEXT BLOCKS (alternating layout) ========== */
.img-text-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  padding: 50px 0;
}
.img-text-block:first-child {
  padding-top: 30px;
}
.img-text-block.reverse .img-text-img {
  order: 2;
}
.img-text-block.reverse .img-text-content {
  order: 1;
}
.img-text-img {
  border-radius: 12px;
  overflow: hidden;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
}
.img-text-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 12px;
}
.img-text-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 16px;
  line-height: 1.4;
}
.img-text-content p {
  color: var(--gray-text);
  font-size: .95rem;
  line-height: 1.8;
  margin-bottom: 12px;
}
.img-text-content a {
  color: var(--blue);
  text-decoration: underline;
}
.img-text-divider {
  border: none;
  border-top: 1px solid #eee;
  margin: 0;
}

/* ========== LEGAL PAGES ========== */
.legal-content h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--dark);
  margin: 35px 0 12px;
  padding-top: 10px;
}
.legal-content h2:first-child {
  margin-top: 0;
}
.legal-content p {
  color: var(--gray-text);
  font-size: .95rem;
  line-height: 1.8;
  margin-bottom: 12px;
}
.legal-content a {
  color: var(--teal);
  text-decoration: underline;
}
.legal-content strong {
  color: var(--dark);
}

/* ========== ANIMATIONS ========== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== FOCUS STYLES (Accessibilité) ========== */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

/* ========== SKIP NAV (Accessibilité) ========== */
.skip-nav {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--blue);
  color: white;
  padding: 10px 20px;
  border-radius: 0 0 8px 8px;
  z-index: 9999;
  font-weight: 600;
  transition: top 0.2s;
}
.skip-nav:focus {
  top: 0;
}

/* ========== FORM SUBMIT STATES ========== */
.form-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* ========== RESPONSIVE ========== */

/* ── Tablette & petit desktop ── */
@media(max-width: 900px) {
  .header-top-inner {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  .header-tagline {
    font-size: 1.1rem;
  }
  .header-buttons {
    justify-content: center;
    flex-wrap: wrap;
  }
  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    background: #1C63A4;
    position: absolute;
    top: 100%;
    left: 0;
    box-shadow: 0 10px 20px rgba(0,0,0,.15);
    z-index: 999;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links li a {
    padding: 14px 24px;
    border-bottom: 1px solid rgba(255,255,255,.15);
  }
  .nav-links li a.active {
    border-radius: 0;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,.15);
    background: rgba(255,255,255,.1);
  }
  .nav-inner {
    position: relative;
    justify-content: flex-end;
  }
  .hamburger {
    display: flex;
  }
  .hero h1, .page-hero h1 {
    font-size: 1.8rem;
  }
  .hero-logo {
    height: 50px;
  }
  .page-hero {
    min-height: 200px;
    padding: 40px 0;
  }
  .steps-grid, .services-grid {
    grid-template-columns: 1fr;
  }
  .img-text-block {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 30px 0;
  }
  .img-text-block.reverse .img-text-img,
  .img-text-block.reverse .img-text-content {
    order: 0;
  }
  .img-text-img {
    height: 240px;
  }
  .steps-grid-4 {
    grid-template-columns: 1fr 1fr;
  }
  .contact-grid, .contact-info-grid {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    flex-direction: column;
    text-align: center;
    align-items: center;
    gap: 20px;
  }
  .cta-banner h2 {
    font-size: 1.6rem;
  }
  .section-title {
    font-size: 1.4rem;
  }
}

/* ── Mobile ── */
@media(max-width: 600px) {
  body {
    font-size: 15px;
  }
  .container {
    padding: 0 16px;
  }
  .header-top {
    padding: 10px 0;
  }
  .header-top-inner {
    gap: 8px;
    padding: 0 16px;
  }
  .logo-img {
    height: 45px;
  }
  .header-tagline {
    font-size: 0.95rem;
  }
  .header-buttons {
    gap: 6px;
  }
  .btn-header-contact, .btn-header-phone {
    padding: 8px 14px;
    font-size: .8rem;
  }
  .hero {
    min-height: 60vh;
  }
  .hero h1, .page-hero h1 {
    font-size: 1.5rem;
  }
  .hero p {
    font-size: .95rem;
  }
  .page-hero {
    min-height: 160px;
    padding: 30px 0;
  }
  .page-hero p {
    font-size: .9rem;
  }
  .steps-grid-4 {
    grid-template-columns: 1fr;
  }
  .img-text-img {
    height: 200px;
  }
  .cta-banner {
    padding: 30px 16px;
  }
  .cta-banner h2 {
    font-size: 1.3rem;
  }
  .section-title {
    font-size: 1.2rem;
  }
  .footer-inner {
    padding: 0 16px;
  }
  .footer-logo {
    height: 40px;
  }
}