/* RESET */
:root {
  --brand: hsl(240 27% 27%);
  --brand-soft: hsl(240 27% 27% / 0.08);
  --brand-soft-strong: hsl(240 27% 27% / 0.12);
  --brand-border: hsl(240 27% 27% / 0.16);
  --brand-border-strong: hsl(240 27% 27% / 0.28);
  --brand-shadow-soft: hsl(240 27% 27% / 0.06);
  --brand-shadow: hsl(240 27% 27% / 0.12);
  --brand-shadow-strong: hsl(240 27% 27% / 0.18);
  --brand-ring: hsl(240 27% 27% / 0.15);
  --brand-footer-link: hsl(240 27% 88%);
  --accent: hsl(46 95% 63%);
  --accent-strong: hsl(44 92% 56%);
  --accent-soft: hsl(46 95% 63% / 0.18);
  --accent-border: hsl(44 85% 45% / 0.35);
  --accent-shadow: hsl(46 95% 63% / 0.28);
  --accent-text: hsl(35 42% 22%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body, html {
    height: 100%;
    font-family: sans-serif;
  }

  body {
    overflow-x: hidden;
    text-rendering: optimizeSpeed;
  }

  img {
    max-width: 100%;
    height: auto;
  }

  a,
  a:visited,
  a:hover,
  a:active {
    color: inherit;
    text-decoration: none;
  }
  
  /* --- SPLASH SCREEN --- */
  .splash {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh; /* centrer verticalement sur toute la hauteur */
    padding: 20px;
    background: #f5f5f5;
    text-align: center;
    position: relative;
  }
  
  
  #splash img {
    width: 120px;
    max-width: 60%;
    height: auto;
    margin-bottom: 20px;
  }

  /* --- NAVIGATION --- */
  .navbar {
    background:
      linear-gradient(180deg, hsl(46 95% 63% / 0.08), transparent 70%),
      #ffffff;
    padding: 10px 20px;
    border-bottom: 1px solid var(--accent-border);
    position: sticky;
    top: 0;
    z-index: 999;
  }
  
  .navbar.scrolled {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08), 0 8px 24px var(--accent-shadow);
    transition: box-shadow 0.3s ease;
  }
  
  .nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
  }
  
  /* LOGO dans NAV */
  .nav-logo-link {
    display: inline-flex;
    align-items: center;
  }

  .nav-logo {
    height: auto;
    max-height: 90px;
    max-width: 260px;
    object-fit: contain;
    display: block;
  }
  
  /* BURGER */
  .burger {
    display: none;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    border: 1px solid var(--accent-border);
    border-radius: 999px;
    color: var(--accent-text);
    padding: 10px 14px;
    line-height: 1;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 18px var(--accent-shadow);
  }

  .burger:hover {
    opacity: 0.92;
  }
  
  /* MENU */
  .menu {
    list-style: none;
    display: flex;
    gap: 20px;
    align-items: center;
    margin-left: 20px;
  }
  
  .menu > li {
    position: relative;
  }
  
  .menu a {
    color: var(--brand);
    text-decoration: none;
    font-weight: 600;
    padding: 8px 12px;
    display: block;
  }
  
  .menu a:hover {
    background-color: var(--accent-soft);
    border-radius: 4px;
  }
  
  /* SOUS-MENU */
  .submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    border: 1px solid #ddd;
    list-style: none;
    padding: 0;
    margin: 0;
    min-width: 180px;
    z-index: 1000;
  }
  
  .submenu li a {
    padding: 10px 15px;
    color: var(--brand);
  }
  
  .submenu li a:hover {
    background-color: var(--brand-soft);
  }
  
  .dropdown:hover .submenu {
    display: block;
  }
  
  /* --- RESPONSIVE --- */
  @media (max-width: 768px) {
    .nav-logo {
      max-width: 180px;
    }

    .nav-container {
      flex-direction: row;
      justify-content: space-between;
    }
  
    .burger {
      display: block;
    }
  
    .menu {
      display: none;
      flex-direction: column;
      width: 100%;
      background-color: #ffffff;
      border-top: 1px solid #eee;
      padding: 8px 0 12px;
      margin-top: 10px;
      margin-left: 0;
    }
  
    .menu.show {
      display: flex;
    }
  
    .menu > li {
      width: 100%;
    }

    .menu a {
      width: 100%;
      padding: 12px 8px;
    }
  
    .submenu {
      position: static;
      min-width: 100%;
      border: none;
    }
  
    .submenu li a {
      padding-left: 30px;
    }
  }
  
#main-content.hidden {
  display: none;
  opacity: 0;
}

#main-content.show {
  display: block;
  opacity: 1;
  transition: opacity 0.5s ease;
}


.zone-text {
  flex: 1;
  min-width: 280px;
  color: var(--brand); /* bleu foncé du site */
}

.zone-text h2 {
  font-size: 2rem;
  line-height: 1.25;
  margin: 0 0 10px;
}

.zone-text hr {
  width: 64px;
  border: none;
  border-top: 3px solid var(--accent-strong);
  margin: 12px 0 20px;
}

.zone-text p {
  margin-bottom: 14px;
  line-height: 1.6;
}

.zone-list {
  list-style: none;
  padding-left: 0;
  margin: 10px 0 24px;
}

.zone-list li {
  position: relative;
  padding-left: 22px;
  margin: 6px 0;
}

.zone-list li::before {
  content: "•";
  position: absolute;
  left: 6px;
  top: 0;
  color: var(--accent-strong);
  font-weight: 700;
}

/* Bouton appel */
.btn-call {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: var(--accent-text);
  text-decoration: none;
  padding: 12px 18px;
  border-radius: 8px;
  font-weight: 600;
  border: 1px solid var(--accent-border);
  box-shadow: 0 6px 18px var(--accent-shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
}

.btn-call:hover {
  background: linear-gradient(135deg, var(--accent-strong), var(--accent));
  transform: translateY(-1px);
  box-shadow: 0 10px 22px var(--accent-shadow);
}

/* Responsive */
@media (max-width: 900px) {
  .zone-container {
    flex-direction: column;
    text-align: center;
  }

  .zone-text hr {
    margin-left: auto;
    margin-right: auto;
  }
}

.zone-intervention {
  background-color: #ffffff;
  padding: 60px 20px;
  content-visibility: auto;
  contain-intrinsic-size: 1px 560px;
}

.zone-container {
  max-width: 1100px;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}

.zone-map img {
  width: 100%;
  max-width: 900px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08), 0 10px 26px var(--accent-shadow);
}

.zone-text {
  flex: 1;
  min-width: 280px;
  color: var(--brand);
}

.zone-text h2 {
  font-size: 2rem;
  margin-bottom: 10px;
  line-height: 1.3;
}

.zone-text hr {
  width: 60px;
  border: none;
  border-top: 3px solid var(--brand);
  margin: 10px 0 20px;
}

.zone-text p {
  margin-bottom: 15px;
  line-height: 1.6;
}

.zone-text strong {
  color: var(--brand);
}

@media (max-width: 768px) {
  .zone-container {
    flex-direction: column;
    text-align: center;
  }

  .zone-map img {
    max-width: 100%;
  }
}

/* --- Grille de conseils (3 colonnes) --- */
.tips-grid {
  padding: 10px 0; /* ta section a déjà des marges via .section */
}

.tips-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

@media (max-width: 980px) {
  .tips-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .tips-grid { grid-template-columns: 1fr; }
}

/* Cartes */
.tip-card {
  background: #ffffff;
  border: 1px solid var(--brand-border);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.tip-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px var(--brand-shadow), 0 14px 30px var(--accent-shadow);
  border-color: var(--accent-border);
}

.tip-card > img {
  width: 100%;
  height: 180px;
  object-fit: contain; /* afficher l'image en entier */
  object-position: center;
  background:
    linear-gradient(180deg, hsl(46 95% 63% / 0.14), transparent 70%),
    #f8fafc;
  display: block;
}

.tip-body {
  padding: 16px;
}

.tip-body h3 {
  color: var(--brand);
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.tip-excerpt {
  color: #4b5563;
  line-height: 1.6;
  margin-bottom: 10px;
}

/* Texte extensible (details/summary) */
.tip-more summary {
  cursor: pointer;
  list-style: none;
  color: var(--brand);
  font-weight: 700;
  position: relative;
  padding-right: 18px;
  display: inline-block;
}

.tip-more summary::marker { display: none; }
.tip-more summary::-webkit-details-marker { display: none; }

.tip-more summary::after {
  content: "➜";
  position: absolute;
  right: 0;
  top: 0;
  transition: transform .18s ease;
}

.tip-more[open] summary::after {
  transform: rotate(90deg);
}

.tip-content {
  margin-top: 10px;
  color: #374151;
  line-height: 1.7;
}

.tip-content ul {
  margin: 8px 0 0 18px;
}

main { max-width: 1100px; margin: 0 auto; padding: 32px 20px; }
    .section { margin: 40px 0; content-visibility: auto; contain-intrinsic-size: 1px 700px; }
    .lead { font-size: 1.1rem; line-height: 1.7; color:#4b5563; }
    .muted { color:#6b7280; }
    .sep { width:64px; height:4px; background:linear-gradient(90deg, var(--accent), var(--accent-strong)); border-radius:999px; margin:10px 0 18px; box-shadow: 0 4px 12px var(--accent-shadow); }

    /* Grilles 2 colonnes (split) */
    .split { display: grid; grid-template-columns: 1.15fr 1fr; gap: 28px; align-items: center; }
    .split.reverse { grid-template-columns: 1fr 1.15fr; }
    .split img { width: 100%; height: auto; display: block; border-radius: 12px; box-shadow: 0 8px 20px var(--brand-shadow), 0 14px 28px var(--accent-shadow); }
    @media (max-width: 900px) { .split, .split.reverse { grid-template-columns: 1fr; } }

    /* Zone d’intervention (reprend ton style + légers ajouts) */
    .zone-intervention { background-color: #ffffff; padding: 60px 20px; }
    .zone-container { max-width: 1100px; margin: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 40px; }
    .zone-map img { width: 100%; max-width: 900px; border-radius: 10px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); display:block; }
    .zone-text { flex: 1; min-width: 280px; color: var(--brand); }
    .zone-text h2 { font-size: 2rem; margin-bottom: 10px; line-height: 1.3; }
    .zone-text hr { width: 60px; border: none; border-top: 3px solid var(--accent-strong); margin: 10px 0 20px; }
    .zone-text p { margin-bottom: 15px; line-height: 1.6; }
    .zone-text strong { color: var(--brand); }
    @media (max-width: 768px) {
      .zone-container { flex-direction: column; text-align: center; }
      .zone-map img { max-width: 100%; }
    }

@media (max-width: 768px) {
  main {
    padding: 24px 16px;
  }

  .section {
    margin: 28px 0;
    contain-intrinsic-size: 1px 520px;
  }

  h1 {
    font-size: 1.9rem;
    line-height: 1.2;
    text-wrap: balance;
  }

  h2 {
    font-size: 1.5rem;
    line-height: 1.25;
    text-wrap: balance;
  }

  .lead {
    font-size: 1rem;
    line-height: 1.65;
  }

  .split,
  .split.reverse {
    gap: 18px;
  }

  .split img {
    border-radius: 10px;
    box-shadow: 0 6px 16px var(--brand-shadow), 0 10px 22px var(--accent-shadow);
  }

  .zone-intervention {
    padding: 36px 16px;
  }

  .zone-container {
    gap: 20px;
  }

  .zone-text {
    min-width: 0;
  }

  .zone-text h2 {
    font-size: 1.55rem;
  }

  .zone-text p {
    font-size: 0.98rem;
  }

  #faq details.tip-more {
    padding: 12px 14px;
  }

  #faq .tip-more summary {
    line-height: 1.45;
    padding-right: 22px;
  }
}

@media (max-width: 480px) {
  .navbar {
    padding: 8px 12px;
  }

  .nav-container {
    gap: 10px;
  }

  .nav-logo {
    max-width: 150px;
    max-height: 72px;
  }

  .burger {
    padding: 9px 12px;
    font-size: 0.95rem;
  }

  main {
    padding: 20px 12px;
  }

  .section {
    margin: 24px 0;
  }

  h1 {
    font-size: 1.65rem;
  }

  h2 {
    font-size: 1.35rem;
  }

  .lead {
    font-size: 0.98rem;
  }

  .sep {
    width: 54px;
    margin: 8px 0 14px;
  }

  .zone-intervention {
    padding: 28px 12px;
  }
}

/* --- Contact form --- */
.contact-wrapper { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: start; }
@media (max-width: 900px) { .contact-wrapper { grid-template-columns: 1fr; } }
.contact-card { background:#ffffff; border:1px solid var(--brand-border); border-radius:12px; padding:18px; box-shadow: 0 8px 20px var(--brand-shadow-soft), 0 12px 30px hsl(46 95% 63% / 0.10); }
.contact-card h2 { color:var(--brand); margin-bottom:8px; font-size:1.25rem; }
.contact-meta a { color:var(--brand); text-decoration:none; }
.contact-meta a:hover { text-decoration:underline; }

.contact-form { display:block; }
.form-row { display:flex; gap:14px; }
.form-row > .field { flex:1; }
.field { margin-bottom:12px; }
.field label { display:block; font-weight:600; color:var(--brand); margin-bottom:6px; }
.field input,
.field select,
.field textarea { width:100%; padding:10px 12px; border:1px solid #d1d5db; border-radius:8px; font:inherit; color:#111827; background:#fff; }
.field textarea { min-height:120px; resize:vertical; }
.field input:focus,
.field textarea:focus,
.field select:focus { outline:none; border-color:var(--accent-strong); box-shadow: 0 0 0 3px var(--accent-soft); }
.help { color:#6b7280; font-size:0.9rem; }
.form-actions { margin-top:10px; display:flex; gap:12px; align-items:center; }
.btn { display:inline-block; border:none; background:linear-gradient(135deg, var(--accent), var(--accent-strong)); color:var(--accent-text); padding:10px 16px; border-radius:8px; font-weight:700; cursor:pointer; border:1px solid var(--accent-border); box-shadow: 0 8px 18px var(--accent-shadow); }
.btn:hover { background:linear-gradient(135deg, var(--accent-strong), var(--accent)); }
.alert { display:none; margin-top:10px; padding:10px 12px; border-radius:8px; font-size:0.95rem; }
.alert.success { display:block; background:#ecfdf5; color:#065f46; border:1px solid #a7f3d0; }
.alert.error { display:block; background:#fef2f2; color:#991b1b; border:1px solid #fecaca; }

@media (max-width: 768px) {
  .form-row {
    flex-direction: column;
    gap: 0;
  }

  .form-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
    text-align: center;
  }
}

    /* --- Grille de conseils (3 colonnes) metier --- */
.tips-grid-metier {
  padding: 10px 0; /* ta section a déjà des marges via .section */
}

.tips-grid-metier {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

@media (max-width: 980px) {
  .tips-grid-metier { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .tips-grid-metier { grid-template-columns: 1fr; }
}

/* Cartes metier*/
.tip-card-metier {
  background: #ffffff;
  border: 1px solid var(--brand-border);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.tip-card-metier:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px var(--brand-shadow), 0 14px 30px var(--accent-shadow);
  border-color: var(--accent-border);
}

.tip-card-metier > img {
  width: auto;         /* largeur naturelle */
  max-width: 100%;     /* ne pas dépasser la carte */
  height: 180px;       /* zone d'en-tête homogène */
  object-fit: contain; /* afficher l'image en entier */
  object-position: center center; /* centrage horizontal + vertical */
  display: block;
  margin: 0 auto;      /* centrage horizontal dans la carte */
}

.tip-body-metier {
  padding: 16px;
}

.tip-body-metier h3 {
  color: var(--brand);
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.tip-excerpt-metier {
  color: #4b5563;
  line-height: 1.6;
  margin-bottom: 10px;
}

/* Listes dans le corps des cartes métier: aspect texte avec puces */
.tip-body-metier ul {
  list-style: disc;
  list-style-position: outside;
  padding-left: 1.2rem; /* indentation douce pour les puces */
  margin: 6px 0 0 0;
}
.tip-body-metier li {
  color: #4b5563;
  line-height: 1.6;
}

/* Texte extensible (details/summary) metier */
.tip-more-metier summary {
  cursor: pointer;
  list-style: none;
  color: var(--brand);
  font-weight: 700;
  position: relative;
  padding-right: 18px;
  display: inline-block;
}

.tip-more-metier summary::marker { display: none; }
.tip-more-metier summary::-webkit-details-marker { display: none; }

.tip-more-metier summary::after {
  content: "➜";
  position: absolute;
  right: 0;
  top: 0;
  transition: transform .18s ease;
}

.tip-more-metier[open] summary::after {
  transform: rotate(90deg);
}

/* --- Footer --- */
.site-footer {
  background:
    linear-gradient(180deg, hsl(46 95% 63% / 0.12), transparent 18%),
    var(--brand);
  border-top: 1px solid rgba(255,255,255,0.10);
  color: #e5e7eb; /* texte clair */
  margin-top: 40px;
  content-visibility: auto;
  contain-intrinsic-size: 1px 320px;
}
.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 20px;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 28px;
}
.footer-col h3 { color: #ffffff; margin-bottom: 8px; text-shadow: 0 2px 10px hsl(46 95% 63% / 0.16); }
.footer-brand-badge {
  width: fit-content;
  max-width: 100%;
  background: #ffffff;
  border: 1px solid hsl(240 27% 100% / 0.55);
  border-radius: 16px;
  padding: 10px 14px;
  box-shadow: 0 10px 24px hsl(240 27% 12% / 0.24), 0 6px 18px hsl(46 95% 63% / 0.14);
  margin-bottom: 12px;
}
.footer-brand-logo {
  width: 220px;
  max-width: 100%;
  height: auto;
  display: block;
}
.footer-col h4 { color: var(--accent); margin-bottom: 8px; font-size: 1rem; }
.footer-col p { color: #e5e7eb; line-height: 1.6; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin: 6px 0; }
.footer-col a { color: var(--brand-footer-link); text-decoration: none; }
.footer-col a:hover { color: var(--accent); text-decoration: underline; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}
.footer-links a { color: var(--brand-footer-link); text-decoration: none; margin: 0 6px; }
.footer-links a:hover { color: var(--accent); text-decoration: underline; }
@media (max-width: 800px) {
  .footer-container { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-links { display: flex; flex-wrap: wrap; gap: 8px 12px; }
  .footer-links a { margin: 0; }
}

.tip-content-metier {
  margin-top: 10px;
  color: #374151;
  line-height: 1.7;
}

.tip-content-metier ul {
  margin: 8px 0 0 18px;
}

/* Images dans le contenu des détails (voir plus) des cartes métier */
.tip-content-metier img {
  display: block;
  max-width: 100%; /* ne jamais dépasser la largeur de la carte */
  height: auto;    /* conserver le ratio */
  max-height: min(420px, 60vh); /* taille raisonnable pour éviter un panneau trop long */
  margin: 8px auto 0; /* centrer proprement */
  border-radius: 10px;
}

/* --- FAQ accordion (homepage) --- */
#faq { /* section wrapper already styled via .section */ }
#faq details.tip-more {
  background: #ffffff;
  border: 1px solid var(--brand-border);
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 8px 20px var(--brand-shadow-soft), 0 12px 28px hsl(46 95% 63% / 0.08);
  transition: border-color .18s ease, box-shadow .18s ease, transform .12s ease;
}
#faq details.tip-more + details.tip-more { margin-top: 10px; }
#faq details.tip-more:hover {
  border-color: var(--accent-border);
  transform: translateY(-1px);
}
#faq details.tip-more[open] {
  box-shadow: 0 12px 28px var(--brand-shadow);
}
#faq .tip-more summary {
  color: var(--brand); /* titre question */
  font-weight: 700;
}
#faq .tip-more summary::after { /* flèche déjà gérée, juste un léger accent */
  color: var(--brand);
}
.js #faq .tip-content {
  /* Transition douce contrôlée au JS (grâce à la classe .js) */
  overflow: hidden;
  height: 0;
  opacity: 0;
  margin-top: 0;
  transition: height .28s ease, opacity .2s ease, margin-top .2s ease;
}
#faq .tip-content { /* fallback sans JS */
  margin-top: 10px;
  color: #374151;
  line-height: 1.7;
}
#faq details.tip-more:focus-within {
  outline: none;
  border-color: var(--accent-border);
  box-shadow: 0 0 0 3px var(--accent-soft), 0 8px 20px var(--brand-shadow-soft);
}
