/* === Style global === */
body {
    font-family: "Segoe UI", Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

h1, h2, h3 {
    color:blue;
    margin-bottom: 10px;
    font-weight: 600;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: auto;
    padding: 30px 0;
}

/* === Cartes de service (business / carrière) === */
.service-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.service-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.2s ease-in-out;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-icon {
    font-size: 45px;
    color: #0073e6;
    margin-bottom: 15px;
}

.service-card h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

.service-card p {
    font-size: 15px;
    color: #555;
    margin-bottom: 20px;
}

.service-link {
    display: inline-block;
    text-decoration: none;
    background: #2a73bc;
    color: #fff;
    padding: 10px 18px;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.service-link:hover {
    background: #3184d8;
}

/* === Formulaires (contact + candidature) === */
form {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    margin-top: 30px;
}

form h3 {
    margin-bottom: 20px;
    font-size: 20px;
    color: #0080ff;
    text-align: center;
}

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    font-weight: 500;
    margin-bottom: 6px;
    color: #333;
}

input[type="text"],
input[type="email"],
input[type="file"],
textarea,
select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.3s;
}

input:focus,
textarea:focus,
select:focus {
    border-color: #156ec7;
}

/* === Boutons === */
button,
.submit-btn {
    background: #0073e6;
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.3s;
}

button:hover,
.submit-btn:hover {
    background: #005bb5;
}

/* === Messages de feedback === */
.success-message {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    text-align: center;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    text-align: center;
}

/* === Hero Section === */
.hero {
    position: relative;
    width: 100%;
    height: 320px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    padding: 0 20px;
}

.hero::after {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5); /* filtre sombre pour lisibilité */
    border-radius: 0 0 20px 20px;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero h1 {
    font-size: 36px;
    margin-bottom: 10px;
    font-weight: 700;
}

.hero p {
    font-size: 18px;
    line-height: 1.4;
}

/* === HEADER & NAVBAR === */
/* Header */
.header {
  background: var(--white);
  border-bottom: 1px solid #eeeeee;
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* Conteneur 3 colonnes */
.navbar { padding: 10px 20px; }
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: max-content minmax(120px, 1fr) max-content; /* logo | centre | menu */
  align-items: center;
  gap: 24px;
}

/* Colonne gauche (logo) */
.logo {
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  color: blue;
  text-decoration: none;
  gap: 12px;
}
.custom-logo { width: 44px; height: auto; }

/* Colonne centre */
.nav-middle {
  display: flex;
  align-items: center;
  justify-content: center; /* centre horizontalement */
  min-height: 40px;
}
.tagline {
  font-weight: 600;
  color: blue;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Colonne droite (menu) */
.nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
}

/* Menu desktop */
.nav-menu {
  list-style: none;
  display: flex;
  gap: 20px;
}
.nav-menu li { position: relative; }
.nav-link {
  text-decoration: none;
  color: var(--dark-gray);
  font-weight: 500;
  padding: 8px 10px;
}
.nav-link:hover { color: var(--primary-blue); }

/* Burger (mobile) */
.burger {
  display: none;
  background: transparent;
  border: 0;
  font-size: 24px;
  cursor: pointer;
  padding: 6px;
  color: var(--dark-gray);
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #52acff;
    min-width: 220px;
    display: none;
    flex-direction: column;
    padding: 10px 0;
    border-radius: 6px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
    z-index: 999;
}

.dropdown:hover .dropdown-menu {
    display: flex;
}

.dropdown-menu li {
    width: 100%;
}

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

.dropdown-menu a:hover {
    background: #45a8ff;
}

/* Sous-menu (niveau 2) */
.dropdown-sub {
    position: relative;
}

.dropdown-submenu {
    position: absolute;
    top: 0;
    left: 100%;
    background: #43b2fc;
    min-width: 220px;
    display: none;
    flex-direction: column;
    padding: 10px 0;
    border-radius: 6px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}

.dropdown-sub:hover .dropdown-submenu {
    display: flex;
}
/* Footer */
.footer {
    background: #444444;
    color: #ddd;
    padding: 40px 20px 20px;
    width: 100%;
    z-index: 1000;
}

.footer .container {
    max-width: 1200px;
    margin: auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-section {
    flex: 1;
    min-width: 220px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: bold;
    color: blue;
}

.footer-slogan {
    margin: 10px 0;
    font-style: italic;
    color: #aaa;
}

.footer-section h4 {
    margin-bottom: 15px;
    font-size: 18px;
    color: blue;
    border-bottom: 2px solid #074dff;
    display: inline-block;
    padding-bottom: 5px;
}

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

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: #dddddd;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: #05a8ff;
}

.footer-section p {
    margin: 8px 0;
}

.footer-section i {
    margin-right: 8px;
    color: #002fff;
}

/* Icônes sociales */
.social-icons a {
    display: inline-block;
    margin-right: 10px;
    color: blue;
    font-size: 16px;
    transition: color 0.3s, transform 0.3s;
}

.social-icons a:hover {
    color: blue;
    transform: scale(1.2);
}

/* Bas du footer */
.footer-bottom {
    text-align: center;
    padding: 10px 0;
    border-top: 1px solid #444;
    margin-top: 20px;
    font-size: 14px;
    color: #aaa;
}
/* ✅ Responsive */
@media (max-width: 992px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .footer-section {
        min-width: 100%;
    }

    .footer-section h4 {
        border: none;
        padding-bottom: 0;
    }

    .social-icons {
        margin-top: 10px;
    }
}

@media (max-width: 576px) {
    .footer {
        padding: 30px 15px 15px;
    }

    .footer-logo {
        font-size: 18px;
    }

    .footer-section h4 {
        font-size: 16px;
    }

    .footer-section p, 
    .footer-section ul li a {
        font-size: 14px;
    }

    .footer-bottom {
        font-size: 12px;
    }
}
/* Responsive menu */
@media (max-width: 991px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-menu {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }

    .dropdown-menu,
    .dropdown-submenu {
        position: static;
        box-shadow: none;
    }
}

/* Responsive */
@media (max-width: 992px) {
  .tagline { font-size: 0.95rem; }
}

@media (max-width: 768px) {
  /* La grille reste 3 colonnes mais la colonne du milieu peut se réduire */
  .nav-container {
    grid-template-columns: max-content 1fr max-content;
    gap: 12px;
  }

  /* Afficher le burger, cacher le menu par défaut */
  .burger { display: inline-flex; }
  .nav-menu {
    position: absolute;
    top: 58px;           /* sous le header */
    right: 0;
    background: #fff;
    width: min(85vw, 320px);
    border: 1px solid #eee;
    box-shadow: var(--shadow);
    padding: 12px;
    display: none;       /* caché par défaut */
    flex-direction: column;
    gap: 10px;
    z-index: 1100;
  }
  .nav-menu.active { display: flex; }

  /* Option : réduire la tagline pour garder de la place */
  .nav-middle { justify-content: flex-start; }
  .tagline { font-size: 0.9rem; max-width: 50vw; }
}


/* Responsive */
@media (max-width: 768px) {
    .hero {
        height: 220px;
    }

    .hero h1 {
        font-size: 26px;
    }

    .hero p {
        font-size: 14px;
    }
}


/* === Responsive === */
@media (max-width: 768px) {
    .service-section {
        grid-template-columns: 1fr;
    }

    form {
        padding: 20px;
    }
}
/* Petits mobiles */
@media (max-width: 420px) {
  .tagline { display: none; } /* tu peux la masquer si tu veux garder de l’air */
}