/* =========================
RESET
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  color: #333;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
}

/* =========================
HEADER
========================= */

header {
  background: #c62828;
  position: sticky;
  top: 0;
  z-index: 999;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
}

.logo {
  color: #fff;
  font-size: 1.6rem;
  font-weight: bold;
}

/* =========================
BURGER MENU
========================= */

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 101;
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  margin: 5px 0;
  background: #fff;
  border-radius: 2px;
  transition: 0.3s;
}

/* animation burger */
.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

/* =========================
NAV MENU (DESKTOP)
========================= */

.nav-menu {
  display: flex;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 25px;
  align-items: center;
}

.nav-list li {
  position: relative;
}

.nav-list a {
  color: #fff;
  font-weight: 500;
  padding: 10px 0;
  display: inline-block;
  list-style: none;
}

/* =========================
DROPDOWN / MEGA MENU (ONE SYSTEM ONLY)
========================= */

.dropdown-header {
  display: flex;
  align-items: center;
  gap: 6px;
}

.dropdown-toggle {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 12px;
  display: none;
}

/* mega menu */
.mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: #c62828;
  border-radius: 6px;
  padding: 8px 0;

  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: 0.25s ease;
  z-index: 999;
}

.mega-menu a {
  display: block;
  padding: 10px 15px;
  color: #fff;
}

.mega-menu a:hover {
  background: rgba(255,255,255,0.15);
}

/* =========================
DESKTOP HOVER ONLY
========================= */

@media (min-width: 1025px) {
  .dropdown:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}

/* =========================
MOBILE MENU (CLEAN FIX)
========================= */

@media (max-width: 1024px) {

  .menu-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 320px;
    height: 100vh;
    background: #c62828;
    flex-direction: column;
    padding: 80px 20px;
    transition: 0.3s ease;
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .dropdown-toggle {
    display: inline-block;
  }

  /* dropdown hidden mobile */
  .mega-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    background: rgba(255,255,255,0.05);
  }

  .dropdown.open .mega-menu {
    display: block;
  }
}
nav a.active { border-bottom: 2px solid #fff; }

/* Hero */
.hero { background: #c62828; color: #fff; text-align: center; padding: 100px 20px; }
.hero-header {
  position: relative;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  
   /* L'animation qui change les images */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  
  animation: slideShow 15s infinite;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
}
/*
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 2;
  
}
*/
.hero-content {
  position: relative;
  z-index: 3;
  color: #fff;
  padding: 20px;
  max-width: 900px;
}

.hero-content h1 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.2;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}

.hero-content p {
  font-size: 22px;
  margin-bottom: 30px;
  text-shadow: 1px 1px 6px rgba(0,0,0,0.5);
}

.hero-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  padding: 14px 28px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: 0.3s;
  display: inline-block;
}

.btn-white {
  background: #fff;
  color: #000;
}

.btn-white:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
}
/*
.btn-red {
  background: #c62828;
  color: #fff;
}
*/
.btn-red:hover {
  background: #a02121;
  transform: translateY(-2px);
}
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45); /* assombrit pour que le texte ressorte */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #fff;
  text-align: center;
}

.hero-overlay h1 {
  font-size: 48px;
  margin: 0 0 10px;
  font-weight: 700;
}

.hero-overlay p {
  font-size: 20px;
  margin: 0;
}

/* Animation du slider */
@keyframes slideShow {
 0%   { background-image: url('images/demenagement-agadir-camion.webp'); }
 33%  { background-image: url('images/demenagement-agadir-charge.webp'); }
 66%  { background-image: url('images/demenagement-agadir-montage.webp'); }
 100% { background-image: url('images/demenagement-agadir-remontage.webp'); }
}

/* Responsive mobile */
@media (max-width: 768px) {
  .hero-header {
    height: 450px;
  }
  .hero-content h1 {
    font-size: 32px;
  }
  .hero-content p {
    font-size: 18px;
  }
}
/* Hero avec camion */


.hero h1 { font-size: 3rem; margin-bottom: 20px; }
.btn-red { background: #c62828; color: #fff; padding: 15px 40px; border: none; border-radius: 5px; font-size: 1.1rem; cursor: pointer; text-decoration: none; display: inline-block; }
.features { padding: 60px 20px; background: #f8f9fa; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; text-align: center; }
.feature-box h1 { color: #c62828; font-size: 2rem; }
.feature-box h3 { color: #c62828; font-size: 2rem; }
.page-header { background: #c62828; color: #fff; text-align: center; padding: 60px 20px; }
.page-header h1 { font-size: 2.5rem; }
.agadir-section { padding: 70px 20px; }
.agadir-section h2 { color: #c62828; margin: 25px 0 15px 0; }
.agadir-section h2 { color: #c62828; margin: 25px 0 15px 0; }
.agadir-content { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 50px; align-items: center; }
.agadir-text h1 { color: #c62828; margin: 25px 0 15px 0; }
.agadir-text h2 { color: #c62828; margin: 25px 0 15px 0; }
.agadir-text h3 { color: #c62828; margin: 25px 0 15px 0; }
.agadir-text ul { margin: 20px 0; padding-left: 20px; }
.agadir-image img { width: 100%; border-radius: 10px; }
.services-detail { padding: 70px 20px; }
.service-detail-card { background: #fff; padding: 30px; margin-bottom: 30px; border-radius: 10px; box-shadow: 0 3px 15px rgba(0,0,0,0.1); border-left: 5px solid #c62828; }
.service-detail-card h3 { color: #c62828; margin-bottom: 15px; }
/*.gallery { padding: 70px 20px; background: #f8f9fa; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 15px; }
.gallery-item img { width: 100%; height: 250px; object-fit: cover; border-radius: 8px; }*/
.reviews { padding: 70px 20px; background: #f8f9fa; }
.review-card { background: #fff; padding: 30px; margin-bottom: 20px; border-radius: 10px; box-shadow: 0 3px 10px rgba(0,0,0,0.08); }
.stars { color: #ffc107; font-size: 1.5rem; }
.devis { padding: 70px 20px; }
.devis-form { max-width: 600px; margin: 0 auto; background: #f8f9fa; padding: 40px; border-radius: 10px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 12px; border: 2px solid #ddd; border-radius: 5px; }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; padding: 50px 0; }
.contact-card { background: #fff; padding: 30px; text-align: center; border-radius: 10px; box-shadow: 0 3px 10px rgba(0,0,0,0.08); }
.contact-card h3 { color: #c62828; margin-bottom: 15px; }
a:focus,
button:focus{
    outline:3px solid #fff;
}
@media (max-width: 900px) {.agadir-content { grid-template-columns: 1fr; }}
@media (max-width: 768px) {nav ul { flex-direction: column; gap: 15px; }.hero h1 { font-size: 2rem; }}

.footer-company{
background:#222;
color:#fff;
padding:60px 0 20px;
margin-top:0;
}

.footer-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
gap:40px;
}

.footer-col h3{
color:#c62828;
margin-bottom:15px;
font-size:1.2rem;
}

.footer-col p{
margin-bottom:10px;
color:#ddd;
}

.footer-col a{
color:#fff;
text-decoration:none;
transition:0.3s;
}

.footer-col a:hover{
  color: red;
}
.footer-bottom{
border-top:1px solid rgba(255,255,255,0.1);
margin-top:40px;
padding-top:20px;
text-align:center;
color:#bbb;
font-size:14px;
}

.footer-bottom p{

text-align:center;

}

@media(max-width:768px){
.footer-grid{
gap:25px;
text-align:center;
}
}

/* =========================
   GALERIE PROFESSIONNELLE
========================= */

.gallery {
    padding: 100px 0;
    background: #f8fafc;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.section-header span {
    color: #FF6D00;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-header h2 {
    font-size: 42px;
    color: #c62828;
    margin: 15px 0;
    font-weight: 700;
}

.section-header p {
    color: #666;
    line-height: 1.8;
    font-size: 16px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(320px,1fr));
    gap: 25px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 15px 40px rgba(0,0,0,.08);
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
    transition: .6s ease;
}

.gallery-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(13,71,161,.85),
        rgba(13,71,161,.05)
    );
    opacity: 0;
    transition: .4s;
    z-index: 1;
}

.gallery-item::after {
    content: "STE BAHSINE TRANSPORT EXPRESS";
    position: absolute;
    bottom: 25px;
    left: 25px;
    color: white;
    font-weight: 600;
    font-size: 16px;
    z-index: 2;
    opacity: 0;
    transition: .4s;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-item:hover::before {
    opacity: 1;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* IMAGE VEDETTE */

.gallery-item:first-child {
    grid-column: span 2;
}

.gallery-item:first-child img {
    height: 500px;
}

/* Responsive */

@media(max-width:992px){

    .gallery-item:first-child{
        grid-column: span 1;
    }

    .gallery-item:first-child img{
        height:320px;
    }

}

@media(max-width:768px){

    .gallery{
        padding:70px 0;
    }

    .section-header h2{
        font-size:32px;
    }

    .gallery-grid{
        gap:20px;
    }

    .gallery-item img{
        height:260px;
    }

}
/* =========================
   SEO INTERNAL LINK SECTION
   ========================= */

.seo-links {
  padding: 40px 20px;
  background: #fafafa;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.seo-links h2 {
  font-size: 24px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 15px;
}

.seo-links h3 {
  font-size: 20px;
  font-weight: 600;
  margin-top: 25px;
  margin-bottom: 10px;
  color: #222;
}

/* =========================
   GRID LINKS (CORE SEO LINKS)
   ========================= */

.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  margin-top: 15px;
}

/* =========================
   LINK STYLE (SEO FRIENDLY)
   ========================= */

.links-grid a {
  display: block;
  padding: 10px 12px;
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  text-decoration: none;
  color: #333;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  text-align: center;
}

/* Hover effect (light, not heavy for speed) */
.links-grid a:hover {
  border-color: #c62828;
  color: #c62828;
  transform: translateY(-1px);
}

/* Mobile optimization */
@media (max-width: 600px) {
  .seo-links {
    padding: 25px 15px;
  }

  .seo-links h2 {
    font-size: 20px;
  }

  .links-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .links-grid a {
    font-size: 13px;
    padding: 10px;
  }
}