/* --- RESET & BASE --- */
* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background-color: #e9ecef;
    padding-top: 120px;
    text-align: center;
}

/* --- BANDEAU NOIR (HEADER GLOBAL) --- */
.header-bandeau {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #000;
    height: 100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    z-index: 1000;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-site {
    height: 80px !important;
    width: auto !important;
}

.header-info {
    color: #fff;
    font-size: 0.9rem;
    text-align: left;
    line-height: 1.3;
}

/* --- MENU --- */
.nav-menu {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
}

.nav-menu a {
    color: #fff !important;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.75rem;
}

.nav-menu a:hover {
    color: #dc3545 !important;
}

/* --- HAMBURGER --- */
.hamburger {
    display: none;
    font-size: 32px;
    color: white;
    cursor: pointer;
    margin-left: 15px;
}

/* --- HERO SECTION (ACCUEIL) --- */
.hero-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.hero-title {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 10px;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: #dc3545;
    font-weight: bold;
    margin-bottom: 30px;
}

/* --- 3 CARTES ACCUEIL --- */
.services-preview {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.preview-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    width: 30%;
    min-width: 280px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-top: 8px solid #343a40;
    transition: transform 0.3s;
}

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

.preview-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 15px;
}

.preview-card h3 {
    color: #333;
    margin-bottom: 10px;
}

.btn-plus {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background: #dc3545;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 0.85rem;
}

/* --- DÉPANNAGE : STRUCTURE 3 BLOCS --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}

h1 {
    font-size: 2.2rem;
    margin-bottom: 5px;
    color: #333;
}

.subtitle {
    color: #dc3545;
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 40px;
    text-transform: uppercase;
}

.services-wrapper {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: nowrap;
    align-items: stretch;
    text-align: left;
}

.service-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    width: 32%;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-top: 8px solid #343a40;
    display: flex;
    flex-direction: column;
}

.card-rouge {
    border-top: 8px solid #dc3545 !important;
}

.service-card img {
    width: 100%;
    height: auto;
    max-height: 160px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 15px;
}

h2 {
    font-size: 1.2rem;
    color: #dc3545;
    text-transform: uppercase;
    margin-top: 0;
    margin-bottom: 15px;
}

.intro-bloc {
    font-size: 0.95rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
    line-height: 1.4;
}

ul {
    padding-left: 20px;
    font-size: 0.9rem;
    color: #444;
    flex-grow: 1;
}

li {
    margin-bottom: 8px;
}

/* --- FOOTER --- */
footer {
    background: #1a1a1a;
    color: #fff;
    padding: 25px;
    margin-top: 50px;
    border-top: 3px solid #dc3545;
    font-size: 0.8rem;
}

footer a {
    color: #fff !important;
    text-decoration: underline;
    margin: 0 10px;
}

/* --- RESPONSIVE MOBILE GLOBAL --- */
@media (max-width: 768px) {

    body {
        padding-top: 90px;
    }

    .header-bandeau {
        height: 70px;
        padding: 0 15px;
    }

    .logo-site {
        height: 50px !important;
    }

    .header-info {
        font-size: 0.7rem;
        line-height: 1.1;
    }

    .nav-menu {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .nav-menu.mobile-open {
        display: flex;
        flex-direction: column;
        background: #000;
        position: absolute;
        top: 70px;
        right: 0;
        width: 100%;
        padding: 20px 0;
        text-align: center;
        gap: 15px;
    }

    .preview-card {
        width: 90%;
        max-width: 350px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }
}

/* --- RESPONSIVE DÉPANNAGE --- */
@media (max-width: 900px) {

    .services-wrapper {
        flex-direction: column;
        align-items: center;
    }

    .service-card {
        width: 90%;
        margin-bottom: 20px;
        align-items: center;
        text-align: center;
    }

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

/* --- CONTACT : STRUCTURE --- */
.contact-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    text-align: left;
}

.contact-wrapper h1,
.contact-wrapper h2 {
    text-align: center;
    color: #dc3545;
    margin-bottom: 20px;
}

.contact-coordonnees {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    margin-bottom: 40px;
}

.contact-coordonnees p {
    font-size: 0.95rem;
    margin-bottom: 10px;
    color: #333;
}

.contact-form {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 0.9rem;
    font-family: 'Segoe UI', sans-serif;
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form button {
    background: #dc3545;
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 0.9rem;
    cursor: pointer;
}

/* --- RESPONSIVE CONTACT --- */
@media (max-width: 768px) {
    .contact-wrapper {
        padding: 10px;
    }

    .contact-coordonnees,
    .contact-form {
        padding: 15px;
    }

    .contact-form input,
    .contact-form textarea {
        font-size: 1rem;
    }

    .contact-form button {
        width: 100%;
    }
}
/* --- CONTACT : STRUCTURE --- */
.contact-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.contact-wrapper h1,
.contact-wrapper h2 {
    text-align: center;
    color: #dc3545;
    margin-bottom: 20px;
}

.contact-grid {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.contact-coordonnees,
.contact-form {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    flex: 1;
}

.contact-coordonnees p {
    font-size: 0.95rem;
    margin-bottom: 10px;
    color: #333;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 0.9rem;
    font-family: 'Segoe UI', sans-serif;
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form button {
    background: #dc3545;
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 0.9rem;
    cursor: pointer;
}

/* --- RESPONSIVE CONTACT --- */
@media (max-width: 768px) {
    .contact-wrapper {
        padding: 10px;
    }

    .contact-grid {
        flex-direction: column;
    }

    .contact-coordonnees,
    .contact-form {
        padding: 15px;
    }

    .contact-form button {
        width: 100%;
    }
}
.contact-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.contact-wrapper h1 {
    font-size: 2.2rem;
    color: #dc3545;
    margin-bottom: 30px;
    text-align: center;
}

.contact-grid {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.contact-coordonnees,
.contact-form {
    flex: 0 0 calc(50% - 10px); /* 50% moins la moitié du gap */
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .contact-grid {
        flex-direction: column;
        gap: 20px;
    }

    .contact-coordonnees,
    .contact-form {
        width: 100%;
    }
}

/* --- RÉALISATIONS : STRUCTURE --- */
.realisations-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.realisations-wrapper h1 {
    font-size: 2.2rem;
    color: #dc3545;
    text-align: center;
    margin-bottom: 40px;
}

.rea-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    display: flex;
    gap: 20px;
    align-items: center;
}

.rea-card img {
    width: 200px;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

.rea-card .rea-text {
    flex: 1;
}

.rea-card h2 {
    font-size: 1.2rem;
    color: #343a40;
    margin-bottom: 10px;
}

.rea-card p {
    font-size: 0.95rem;
    color: #444;
    line-height: 1.4;
}

/* --- RESPONSIVE RÉALISATIONS --- */
@media (max-width: 768px) {
    .rea-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .rea-card img {
        width: 100%;
        max-width: 300px;
        height: auto;
        margin-bottom: 15px;
    }

    .rea-card .rea-text {
        width: 100%;
    }
}
/* --- RÉALISATIONS : STRUCTURE --- */
.realisations-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.rea-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    display: flex;
    gap: 20px;
    align-items: center;
}

.rea-card img {
    width: 200px;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

.rea-text h2 {
    font-size: 1.2rem;
    color: #dc3545;
    margin-bottom: 10px;
}

.rea-text p {
    font-size: 0.95rem;
    color: #444;
    line-height: 1.4;
}

/* --- RESPONSIVE RÉALISATIONS --- */
@media (max-width: 768px) {
    .rea-card {
        flex-direction: column;
        text-align: center;
    }

    .rea-card img {
        width: 100%;
        max-width: 300px;
        margin-bottom: 15px;
    }
}

.realisations-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 900px) {
    .realisations-wrapper {
        grid-template-columns: 1fr 1fr;
    }

    .rea-card {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 20px;
    }

    .rea-card img {
        width: 200px;
        height: auto;
        object-fit: cover;
        border-radius: 8px;
    }

    .rea-text {
        flex: 1;
    }
}
@media (max-width: 768px) {
    .services-wrapper {
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 30px;
        padding: 0 10px;
    }

    .service-card {
        width: 100%;
        padding: 20px;
        text-align: center;
    }

    .service-card img {
        width: 100%;
        height: auto;
        margin-bottom: 15px;
    }

    .service-card h2 {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }

    .description {
        font-size: 0.95rem;
        line-height: 1.5;
    }
}
@media (max-width: 768px) {
  .services-wrapper {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 30px;
    padding: 0 10px;
  }

  .service-card {
    width: 100%;
    padding: 20px;
    text-align: center;
  }

  .service-card img {
    width: 100%;
    height: auto;
    margin-bottom: 15px;
  }

  .service-card h2 {
    font-size: 1.1rem;
    margin-bottom: 10px;
  }

  .description {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .service-card ul {
    padding-left: 0;
    list-style-position: inside;
    font-size: 0.9rem;
  }
}

@media (max-width: 768px) {
  .service-card {
    text-align: center;
  }

  .service-card h2,
  .service-card .description {
    text-align: center;
  }

  .service-card ul {
    padding-left: 20px;
    list-style-position: outside;
    text-align: left;
    margin: 10px auto;
  }

  .service-card li {
    margin-bottom: 5px;
    text-align: left;
  }
}
@media (max-width: 768px) {
  .nav-menu {
    display: none;
    flex-direction: column;
    background-color: #000;
    position: absolute;
    top: 100px;
    left: 0;
    width: 100%;
    padding: 20px;
    z-index: 999;
  }

  .nav-menu.mobile-open {
    display: flex;
  }

  .hamburger {
    display: block;
    font-size: 1.5rem;
    cursor: pointer;
    color: #fff;
  }
}

@media (min-width: 769px) {
  .nav-menu {
    display: flex !important;
    position: static;
    background: none;
    flex-direction: row;
    padding: 0;
  }

  .hamburger {
    display: none;
  }
}
.footer-info {
    margin-top: 10px;
    margin-bottom: 10px;
}

/* === Bouton "En savoir plus" pour encart TIP/TSSR === */
.btn-savoir-plus {
  display: inline-block;
  background-color: #0078d4;
  color: white;
  padding: 8px 16px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}
.btn-savoir-plus:hover {
  background-color: #005fa3;
}

/* === Bouton "En savoir plus" dans les encarts formations === */
.service-card .btn-savoir-plus {
  display: inline-block;
  background-color: #0078d4;
  color: white;
  padding: 8px 16px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

/* Centrage du bouton */
.service-card p:last-child {
  text-align: center;
  margin-top: 10px; /* réduit l'espace */
}

/* Réduction de l'espace sous la liste */
.service-card ul {
  margin-bottom: 10px;
}

/* Ajustement des marges autour du bouton "En savoir plus" */
.service-card p:last-child {
  margin-top: 1px;   /* espace au-dessus du bouton */
  margin-bottom: 1px; /* espace en dessous du bouton */
  text-align: center;
}

.service-card .btn-savoir-plus {
  display: inline-block;
  background-color: #0078d4;
  color: white;
  padding: 8px 16px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}
.service-card .btn-savoir-plus:hover {
  background-color: #005fa3;
}

.service-card .intro-bloc {
    margin-bottom: 12px;
    line-height: 1.5;
}

.service-card .intro-bloc {
    margin-bottom: 12px;
    line-height: 1.5;
}
.service-card ul li {
    margin-bottom: 4px;
}

.service-card ul {
    margin-bottom: 1px; /* ou 4px si tu veux très serré */
}
