html { overflow-y: scroll; }

body {
  font-family: Arial, sans-serif;
  margin: 0;
  line-height: 1.6;
}

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

header {
  padding-top: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid #ddd;
}

h1 {
  margin: 0;
}

h2 {
  margin-top: 30px;
}

.header {
  text-align: center;
}

.logo {
  display: block;
  margin: 0 auto 20px auto;
  width: 420px;
  height: auto;
}
section {
  margin-top: 40px;
}

section p {
  margin-bottom: 20px;
}

h2 {
  padding-left: 0;
  margin-top: 15px;
  color: #1f3c88;
  font-weight: 600;
  border-left: none;
}
h1 {
  font-size: 28px;
  line-height: 1.4;
  margin: 20px auto 0 auto;
  max-width: 800px;
  text-align: center;
  font-weight: 600;
  color: #1f3c88;
}
main {
  margin-top: 40px;
}

section:first-of-type {
  background-color: #f4f6f9;
  padding: 30px;
  border-radius: 6px;
}
section:first-of-type p {
  text-align: justify;
}

section:first-of-type {
  text-align: justify;
}
.expertise {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
  margin-top: 50px;
}

.card {
  background: #ffffff;
  padding: 25px;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  text-align: left;
}
body {
  background-color: #f0f2f5;
}

main {
  padding: 40px 0; /* plus de padding gauche/droite */
}

.page-wrapper {
  background: #ffffff;
  padding: 40px;
  margin-bottom: 40px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.05);
}

@media (max-width: 900px) {
  .logo {
    width: 280px;
  }

  main {
    padding: 20px;
  }

  .expertise {
    grid-template-columns: 1fr;
   gap: 15px;
    margin-top: 30px;
  }

.main-nav a {
    font-size: 12px;
    padding: 0 10px;
  }
}
p {
  font-size: 16px;
  line-height: 1.7;
  color: #333;
}
p {
  margin-bottom: 12px;
}
header {
  padding-bottom: 30px;
  margin-bottom: 30px;
  border-bottom: 2px solid #e5e5e5;
}
.btn {
  display: inline-block;
  background-color: #2aa84a;
  color: #ffffff;
  padding: 12px 25px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  margin-top: 20px;
}

.btn:hover {
  background-color: #238c3e;
}

.main-nav a {
  text-decoration: none;
  color: #1f3c88;
  font-weight: 600;
  font-size: 13px;        /* un peu plus compact */
  padding: 0 12px;        /* réduit la largeur */
  white-space: nowrap;
}

.main-nav a:hover {
  color: #2aa84a;
}
.h2-icon {
 display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
}

.h2-icon svg {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  fill: #2aa84a;
}
.contact-line {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  font-size: 15px;
}

.contact-line svg {
  width: 18px;
  height: 18px;
  fill: #2aa84a;
}

.contact-person {
  background: #ffffff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.06);
  text-align: left;   /* au lieu de center */
  border-top: 4px solid #2aa84a;
}

.contact-person h2 {
  margin-top: 0;
  margin-bottom: 20px;
}

.contact-person + .contact-person {
  margin-top: 20px;
}

main section:not(.expertise) h2 {
  border-left: 4px solid #2aa84a;
  padding-left: 12px;
}

h2:not(.h2-icon) {
  border-left: 4px solid #2aa84a;
  padding-left: 12px;
}

.main-nav{
  margin-top: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  flex-wrap: nowrap;     /* 1 ligne par défaut */
  white-space: nowrap;
}

@media (max-width: 900px) {
  .main-nav{
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .main-nav a{
    width: 90%;
    text-align: center;
    padding: 10px 12px;
    border-right: none;
  }

  .main-nav a.active::after{
    left: 12px;
    right: 12px;
  }
}

.main-nav a {
  position: relative;
}

.main-nav a.active {
  color: #999999;
}

.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: -6px;
  height: 2px;
  background-color: #2aa84a;
}

.site-footer {
  background-color: #111111;
  color: #ffffff;
  margin-top: auto;
}

.footer-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 8px 15px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.footer-col h3 {
  margin: 0 0 6px 0;
  font-size: 13px;
  font-weight: 600;
 }

.footer-col p,
.footer-col li {
  font-size: 12px;
  margin: 0px 0;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col a {
  color: #cccccc;
  text-decoration: none;
}

.footer-col a:hover {
  color: #2aa84a;
}

.footer-logo {
  width: 130px;
  margin-bottom: 2px;
}

.footer-bottom {
  text-align: center;
  padding: 3px 0;
  background-color: #000000;
  font-size: 11px;
}

@media (max-width: 900px) {
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.center { text-align: center; }

.client-alert {
  text-align: center;
  margin-bottom: 20px;
  font-size: 32px;
  font-weight: 700;
  color: #c00000;
}

.center { text-align: center; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Apparition douce du contenu */
main {
  animation: fadeUp 0.35s ease-out both;
}

/* Cartes : léger “lift” au survol */
.card,
.contact-card,
.contact-person {
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card:hover,
.contact-card:hover,
.contact-person:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.10);
}

/* Bouton : survol plus vivant */
.btn {
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.12);
}

/* Respect des préférences d’accessibilité */
@media (prefers-reduced-motion: reduce) {
  main { animation: none; }
  .card, .contact-card, .contact-person, .btn { transition: none; }
}

.main-nav a.active::after {
  transition: width 0.25s ease, left 0.25s ease, right 0.25s ease, opacity 0.25s ease;
}

.logo {
  transition: transform 0.18s ease;
}

.logo:hover {
  transform: scale(1.01);
}

.expertise .card {
  animation: fadeUp 0.35s ease-out both;
}

.expertise .card:nth-child(1) { animation-delay: 0.05s; }
.expertise .card:nth-child(2) { animation-delay: 0.10s; }
.expertise .card:nth-child(3) { animation-delay: 0.15s; }
.expertise .card:nth-child(4) { animation-delay: 0.20s; }


.btn-small {
  padding: 8px 16px;
  font-size: 13px;
}

.muted { opacity: 0.85; }
.news-list { display: grid; gap: 1rem; margin-top: 1rem; }
.news-item time { display: inline-block; font-size: 0.9rem; opacity: 0.85; margin-bottom: 0.35rem; }
.news-item h3 { margin: 0.2rem 0 0.4rem; }

.block-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.card:has(.block-link) { cursor: pointer; }

/* Carte cliquable : feedback clair */
.contact-card:has(.block-link) {
  cursor: pointer;
}

/* Accessibilité : focus visible quand on tabule */
.block-link:focus-visible {
  outline: 3px solid rgba(42, 168, 74, 0.55);
  outline-offset: 6px;
  border-radius: 6px;
}

.contact-card h2 {
  position: relative;
}

.contact-card h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background-color: #2aa84a;
  transition: width 0.2s ease;
}

.contact-card:hover h2::after {
  width: 100%;
}

/* Onglets en haut (titres cliquables) */
.media-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.media-tab {
  display: inline-block;
  text-decoration: none;
  color: #1f3c88;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 6px;
  border: 1px solid #e5e5e5;
  background: #fff;
}

.media-tab:hover {
  border-color: #2aa84a;
}

.media-tab.active {
  color: #2aa84a;
  border-color: #2aa84a;
}

/* Viewer + flèches */
.media-viewer {
  display: grid;
  grid-template-columns: 52px 1fr 52px;
  gap: 12px;
  align-items: center;
}

.media-viewer{
  position: relative;
}

.nav-arrow{
  display: flex;
  align-items: center;
  justify-content: center;

  width: 52px;
  height: 52px;
  border-radius: 999px;
  border: 1px solid #e5e5e5;
  background: #fff;

  font-size: 30px;
  line-height: 1;
  text-decoration: none;
  box-sizing: border-box;

font-weight: bold;
font-family: Arial, sans-serif;
}

.nav-arrow:hover {
  border-color: #2aa84a;
}

.media-placeholder {
  border: 1px dashed #d0d0d0;
  border-radius: 8px;
  padding: 50px 18px;
  text-align: center;
  color: #555;
}

/* Onglets services */
.service-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.service-tab {
  text-decoration: none;
  color: #1f3c88;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 6px;
  border: 1px solid #e5e5e5;
  background: #fff;
}

.service-tab:hover {
  border-color: #2aa84a;
}

.service-tab.active {
  color: #2aa84a;
  border-color: #2aa84a;
}

/* Bloc détail */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: center;
}

.service-image img {
  width: 100%;
  border-radius: 8px;
}

@media (max-width: 900px) {
  .service-detail {
    grid-template-columns: 1fr;
  }
}

/* Onglets type "dossier" */
.folder-tabs{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:flex-end;
  margin-bottom:-1px; /* colle l'onglet au panneau */
}

.folder-tab{
  position:relative;
  display:inline-block;
  padding:10px 14px;
  text-decoration:none;
  color:#1f3c88;
  font-weight:600;

  background:#f4f6f9;
  border:1px solid #dcdfe6;
  border-bottom:none;
  border-top-left-radius:10px;
  border-top-right-radius:10px;
}

/* petite "languette" pour effet dossier */
.folder-tab::before{
  content:"";
  position:absolute;
  left:10px;
  top:-6px;
  width:34px;
  height:10px;
  background:inherit;
  border:1px solid #dcdfe6;
  border-bottom:none;
  border-top-left-radius:8px;
  border-top-right-radius:8px;
}

/* Onglet actif = dossier ouvert */
.folder-tab.is-active{
  background:#ffffff;
  border-color:#cfd6e4;
  color:#2aa84a;
  z-index:2; /* passe au dessus du panneau */
}

.folder-tab.is-active::before{
  background:#ffffff;
  border-color:#cfd6e4;
}

/* Panneau du dossier */
.folder-panel{
  background:#ffffff;
  border:1px solid #cfd6e4;
  border-radius:10px;
  padding:22px;
}

/* ton layout existant (si tu n’as pas déjà) */
.service-detail{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:30px;
  align-items:center;
}

.service-image img{
  width:100%;
  height:auto;
  border-radius:8px;
}

@media (max-width:900px){
  .service-detail{ grid-template-columns:1fr; }
}

.docs-placeholder {
  margin-top: 18px;
  padding: 18px;
  border: 1px dashed #d0d0d0;
  border-radius: 8px;
  background: #f9fafb;
  color: #555;
}

.docs-nav{
  display: grid;
  grid-template-columns: 52px 1fr 52px;
  align-items: center;
  gap: 12px;
  margin: 10px 0 18px;
}

.docs-meta{
  text-align: center;
  font-weight: 600;
  color: #1f3c88;
  opacity: 0.9;
}

.nav-arrow:disabled{
  opacity: 0.35;
  cursor: not-allowed;
}

/* ===== FIX MENU (à laisser tout en bas) ===== */

/* Desktop: 1 ligne + séparateurs */
.header .main-nav{
  margin-top: 25px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0;
}

.header .main-nav a{
  text-decoration: none;
  color: #1f3c88;
  font-weight: 600;
  font-size: 13px;
  padding: 0 12px;          /* compact pour tenir dans 900px */
  white-space: nowrap;
  position: relative;
  display: inline-block;
}

/* Barres grises entre boutons (desktop) */
.header .main-nav a:not(:last-child){
  border-right: 1px solid #d0d0d0;
}

/* Actif (tu avais déjà, mais on sécurise) */
.header .main-nav a.active{
  color: #999999;
}
.header .main-nav a.active::after{
  content:"";
  position:absolute;
  left: 12px;
  right: 12px;
  bottom: -6px;
  height: 2px;
  background-color:#2aa84a;
}

/* Mobile: menu en colonne (réorganisation seulement quand petit) */
@media (max-width: 900px){
  .header .main-nav{
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .header .main-nav a{
    width: 90%;
    text-align: center;
    padding: 10px 12px;
    border-right: none;      /* pas de barres en colonne */
    font-size: 12px;
  }
}

.page-fadeout {
  opacity: 0;
  transition: opacity .18s ease;
}
.page-fadein {
  opacity: 1;
  transition: opacity .18s ease;
}

html, body { height: 100%; }

body{
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ton contenu principal */
main{
  flex: 1;
  }

/* ===== MOBILE MENU TOGGLE ===== */
.header-top {
  position: relative;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 10;
}

.mobile-menu-toggle span {
  display: block;
  height: 3px;
  background: #1f3c88;
  border-radius: 3px;
  transition: transform .2s ease, opacity .2s ease;
}

.mobile-menu-toggle.is-active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.mobile-menu-toggle.is-active span:nth-child(2) {
  opacity: 0;
}
.mobile-menu-toggle.is-active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 900px) {
  .mobile-menu-toggle {
    display: flex;
  }

  .header .main-nav {
    display: none;
  }

  .header .main-nav.is-open {
    display: flex;
  }
}

/* CONTACT (scopé): conteneur des cartes */
.page-wrapper.contact-page .contact-grid{
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: stretch;

  background-color: #f4f6f9;
  border-radius: 6px;
  padding: 0;
}

/* CONTACT: réduit l'espace interne pour un rendu plus dense */
.page-wrapper.contact-page{
  padding: 25px;
}

/* CONTACT: évite débordement + centre proprement */
.page-wrapper.contact-page{
  padding: 25px;            /* tu l’as déjà, garde */
  overflow-x: hidden;       /* coupe tout dépassement */
}

.contact-grid{
  margin: 0;
  padding: 0;
  background: transparent;
}

.contact-stack{
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row{
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 16px !important;
  width: 100%;
  margin-bottom: 14px;
}

.form-row-2{
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 16px !important;
  width: 100%;
}

.form-group{
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.form-group label{
  margin-bottom: 6px;
}

.form-group input,
.form-group select{
  width: 100%;
  margin-bottom: 0;
  box-sizing: border-box;
}

@media (max-width: 992px){
  .form-row{
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .form-row-2{
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 640px){
  .form-row,
  .form-row-2{
    grid-template-columns: 1fr !important;
  }
}

/* ===== FORMULAIRE ===== */

.reception-form{
  max-width: 1100px;
  margin: 0 auto;
}


/* ===== FOND FENETRE RECEPTION ===== */

main.reception-form section.contact-card{
  background: #dfe7ef !important;
  border: 1px solid #c7d3df !important;
  border-radius: 14px !important;
  padding: 24px !important;
}


/* ===== GRID FORMULAIRE ===== */

.form-row{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}


/* ===== BLOC TRANSPORT ===== */

.transport-block{
  border: 1px solid #d9e2ec;
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 24px;
  background: #f8fbff;
}

/* =====================================================
   TABLEAU LIGNES DE RECEPTION — SCROLL HORIZONTAL
   ===================================================== */

.table-wrap{
  width: 100%;
  overflow-x: auto;
}

.detail-table{
  border-collapse: collapse;
  width: max-content;
  min-width: 1200px;
}

.detail-table th,
.detail-table td{
  white-space: nowrap;
}

