/* =========================
   Variables & Reset léger
   ========================= */
:root {
  /* Couleurs */
  --bg: #ffffff;
  --bg-page: #9f9784;
  --text: #272727;
  --muted: #555;
  --border: #e6e6e6;

  /* header/footer */
  --brand:#d6642a;
  --brand-dark: #9f9784;        
  --brand-contrast: #ffffff;


  /* Dimensions */
  --maxw: 800px;       /* largeur max demandée */
  --pad-x: 40px;       /* padding horizontal général */
  --radius: 16px;
  --shadow: 0 18px 30px rgba(0,0,0,0.08);
  
  /* Espacements */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;


  /* Typo */
  --font-body: "Lexend", serif;
  --font-size: 16px;
  --line-height: 1.6;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: 0.8rem;
}

body {
  margin: 0;
  padding: var(--space-1) 0;
  color: var(--text);
  background: var(--bg-page);
  font-family: var(--font-body);
  line-height: var(--line-height);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* =========================
   Conteneur général
   ========================= */
.site-background { width: 100%; }

.site-card {
  max-width: var(--maxw);
  width: 100%;
  margin-inline: auto;
  background: var(--bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  box-shadow: 6px 6px 10px -1px rgba(0, 0, 0, 0.254),
                -6px -6px 10px -1px rgba(60, 53, 53, 0.192);
  overflow: clip;
}

/* =========================
   Logo dans le header
   ========================= */
.logo-img {
  display: block;
  height: auto;
  max-width: 100%;
}

/* =========================
   Wrapper interne
   ========================= */
.inner {
  width: var(--maxw);
  width: 100%;
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

/* =========================
   Header
   ========================= */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid #ffffff;
}

/* Zone logo + logotype */
.logo { padding: var(--space-4) 0; }
.logo-img {
  display: block;
  height: auto;
  width: 200px;
  margin-inline: auto;
}

/* =========================
   Navigation menu - sticky
   ========================= */
  .site-nav {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 10;
    background : #eeeeee;
    border-bottom: 1px solid #eee;
    padding: 6px 8px;  
   }
    .site-nav .logo {
     color: var(--brand-dark);
     font-size: 1.25rem;
     padding: 12px 0; /* override header padding that pushes menu links up */
     margin-right: auto; /* push following links to the right */
    }
  .logo span {
    color: var(--brand);
    font-weight: 600;
  }
  .menu-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center; /* align children vertically */
    gap: 16px;
   }
  .dropdown {
    position: relative;
  }
  .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: none;
    padding: var(--space-2) 0;
    min-width: 100px;
    box-shadow: var(--shadow);
    text-decoration: none;
  }
  .dropdown:hover .dropdown-menu {
    display: block;
  }
  
  .nav-links {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0;
    padding: 0;
    align-items: center; /* vertical centering of links inside nav bar */
    width: 100%;          /* occupy full width of menu-row container */
    justify-content: flex-end; /* push links to the right side */
  }

  .nav-links .logo {
  margin-right: auto;
  flex: 1 0 auto; /* allow logo to grow and push other items */
}  

  .nav-links > li {
    flex: 0 0 auto;
    min-width: 0;
  }
  .nav-links > li> a {
    display: block;
    white-space: nowrap;
    text-decoration: none;
    font-weight: 500;
    padding: 6px 8px;
    text-align: center;
    word-break: break-word;
  }
  .nav-links li a {
    white-space: nowrap;
  }
  .nav-links a {
    text-decoration: none;
    font-weight: 500;
    padding: 6px 4px;
    border-radius: none;
    color:#555;
  }
  .nav-links a:hover,
  .nav-links a:focus {
    color: rgba(212, 67, 10, 0.849);
    text-shadow: 0 0 10px rgba(212, 67, 10, 0.25);   
  }

  @media (max-width: 700px) {
  .menu-row {
    flex-wrap: wrap;
    justify-content: center; 
    text-align: center;
    gap: 10px;
  }
}

/* =========================
   MAIN
   ========================= */
.site-main { padding: var(--space-6) 0; }

.hero-img,
.content-img,
.residence-img,
.visuel-logistics-DDA {
  display: block;
  max-width: 100%;
  height: auto;
  margin-inline: auto;
}

.site-main h1 {margin: 0 0 10px; font-size: 28px;}
.site-main h2 {margin: 24px 0 12px; font-size: 22px; color: #222}
.site-main h3 {margin: 16px 0; font-size: 18px; color: var(--muted); }


/* =========================
   Features (cartes)
   ========================= */
/* Par défaut : mobile = 1 colonne */
   .features {
  display: grid;
  grid-template-columns: 1fr; /* 1 colonne par défaut (mobile) */
  gap: var(--space-4);
  margin-top: var(--space-4);
}
/* Si largeur >= 600px : 2 colonnes */
@media (min-width: 600px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
}
/* Si largeur >= 900px : 3 colonnes */
@media (min-width: 900px) {
  .features {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  background: #f8f8f8;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-4);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.feature-card:hover {
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.134);
  transform: translateY(-2px);
}

.section-separator {
  grid-column: 1 / -1;
  margin: 0;
  margin-inline: auto;
  text-align: center;
}

.icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand-dark);
  color: var(--brand-contrast);
  display: grid;
  place-items: center;
  margin-bottom: var(--space-3);
}

.icon-circle i {
  font-size: 1.5rem; /* Font Awesome */
}

/* =========================
   Accordion
   ========================= */

.accordion{
    margin: 0 auto;   
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    align-items: center; 
}
.accordion ul{
  margin: 0;
  padding: 0;  
  width: 100%;
  list-style: inside;
}

.accordion ol{
  margin: 0;
  padding: 24px;  
  width: 100%;
  height: auto;
  list-style: outside;
  list-style-type: decimal;
}

.accordion-button{
    list-style: inside;
    width: 100%;
    margin: 15px 0;
    padding: 10px;
    border-radius: 8px;
    background-color: #e6e6e6;
    box-shadow: 6px 6px 10px -1px rgba(0, 0, 0, 0.15),
                -6px -6px 10px -1px rgba(255, 255, 255, 0.7);
}
.accordion-button label{
    display: flex;
    align-items: center;
    padding: 10px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
}
label::before{
    content: "+";
    margin-right: 10px;
    font-size: 24px;
    font-weight: 600;
}
input[type="radio"]{
    display: none;
}
.accordion .content{
    color: #272727;
    padding: 0 10px;
    line-height: 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.5s ease;
}
.accordion input[type="radio"]:checked + label + .content{
    max-height: 1000px;
    padding: 10px 10px 20px;
}
.accordion input[type="radio"]:checked + label::before{
    content: "-";
}

/* =========================
   Listes & liens
   ========================= */
ol { padding-left: 1.25rem;}
a { color: var(--brand); }
a:hover { text-decoration: underline; }

/* =========================
   Footer
   ========================= */
.site-footer {
  background: var(--brand-dark);
  color: var(--brand-contrast);
  padding: var(--space-4) var(--space-3);
  border-top: 1rem solid #73727223;
  border-bottom: 6px solid #00000023;
  grid-template-columns: 1fr 1fr 1fr;
  width: 100%;
  border-bottom-left-radius: var(--radius);
  border-bottom-right-radius: var(--radius);
}

/* Footer : grille 3 colonnes */
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--space-1);
  align-items: stretch;
  min-height: 220px;
}

/* Zone entourant la colonne avec le titre nouvelle société */
.col-1 { background: rgba(255,0,0,0.2); }

/*Style de base des colonnes du footer*/
.footer-col { 
  display: flex;
  flex-direction: column;
 }

.footer-col a { color: var(--brand-contrast); 
  text-decoration: underline; 
}
.footer-col a:hover { opacity: 0.85 }

/*alignement des colonnes*/
.footer-center { text-align: left; }
.footer-right { text-align: center; }

/* Titre de la colonne 1 */
.footer-title {
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.4;
}

/* Colonne 2 ancrée en bas */
.col-2 {
  display: flex;
  flex-direction: column;
}
.footer-bottom {
  margin-top: auto;
}

/* Responsivité du footer : 1 colonne sur mobile */
@media (max-width: 800px) {
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .footer-center, .footer-right {
    text-align: left;
  }

.site-footer p {
  margin: 0.35rem 0;
}
.site-footer a {
  color: var(--brand-contrast);
  text-decoration: underline;
}
.site-footer a:hover {
  opacity: 0.85;
}

/* =========================
   Utilitaires
   ========================= */
.center {
  text-align: center;
}
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }