/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    filter: brightness(50%);
}

.hero-content {
    max-width: 900px;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.5);
    text-align: center;
}

.hero-content p {
    font-size: 1.6rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
    text-align: center;
}

.btn-offres {
    display: inline-block;
    background-color: #e60000;
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}
.btn-offres:hover {
    background-color: #005bb5;
}

/* Section Titles */
section h2 {
    font-size: 2.8rem;
    margin-bottom: 3rem;
    color: #d32f2f;
    text-align: center;
}

/* Pourquoi choisir HME CANADA */
.why-us {
    padding: 5rem 2rem;
    background-color: #f8f8f8;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    justify-items: center;
    align-items: stretch;
    width: 100%;
    max-width: 1200px;
}

.benefit-card {
    background-color: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.benefit-card img {
    width: 60px;
    margin-bottom: 1rem;
    display: block;
}

/* Services Section */
.services {
    padding: 5rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    justify-items: center;
    width: 100%;
    max-width: 1200px;
}

.card {
    background-color: #f5f5f5;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 6px 15px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1rem;
    display: block;
}

/* Process Section */
.process {
    padding: 5rem 2rem;
    background-color: #f0f0f0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    justify-items: center;
    align-items: stretch;
    width: 100%;
    max-width: 1200px;
}

.step {
    background-color: white;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.step:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.step img {
    width: 60px;
    margin-bottom: 1rem;
    display: block;
}

/* Stats Section */
.stats {
    padding: 5rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    justify-items: center;
    text-align: center;
    width: 100%;
    max-width: 1000px;
}

.stat-card {
    background-color: #f5f5f5;
    padding: 2rem;
    border-radius: 12px;
    font-size: 1.5rem;
    font-weight: bold;
    box-shadow: 0 6px 15px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-card h3 {
    font-size: 3rem;
    color: #d32f2f;
    margin-bottom: 0.5rem;
}
.stat-card p {
    font-size: 1.2rem;
    color: #555;
}
/* Testimonials Section – Format “Google” */
.testimonials {
    padding: 5rem 2rem;
    background-color: #f7f7f7;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.testimonials h2 {
    font-size: 3rem;
    color: #d32f2f;
    margin-bottom: 3rem;
}

/* Container – cartes centrées sur desktop */
.testimonial-container {
    display: flex;
    justify-content: center; /* centre les cartes */
    gap: 2rem;
    flex-wrap: wrap; /* passe à la ligne si trop petit */
    max-width: 1200px;
    width: 100%;
}

/* Cartes */
.testimonial-card {
    background-color: #fff;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1 1 300px; /* largeur minimale et flexible */
    max-width: 350px;
}

.testimonial-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.testimonial-card img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    margin-bottom: 1rem;
    display: block;
}

.testimonial-card h3 {
    font-size: 1.2rem;
    color: #d32f2f;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.testimonial-card p {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
    text-align: center;
}

/* Responsive – tablette */
@media (max-width: 1024px) {
    .testimonial-card {
        flex: 1 1 45%;
        max-width: 45%;
        margin-bottom: 1.5rem;
    }
}

/* Responsive – mobile */
@media (max-width: 768px) {
    .testimonial-container {
        display: flex;
        overflow-x: auto;
        gap: 1.5rem;
        padding-bottom: 1rem;
        justify-content: flex-start;
    }

    .testimonial-container::-webkit-scrollbar {
        height: 6px;
    }

    .testimonial-container::-webkit-scrollbar-thumb {
        background-color: #d32f2f;
        border-radius: 3px;
    }

    .testimonial-card {
        flex: 0 0 80%; /* largeur des cartes sur mobile */
        max-width: none;
    }
}

/* Responsive – très petit écran */
@media (max-width: 480px) {
    .testimonials h2 {
        font-size: 2rem;
    }
    .testimonial-card {
        padding: 1.5rem;
    }
    .testimonial-card p {
        font-size: 0.95rem;
    }
    .testimonial-card h3 {
        font-size: 1rem;
    }
}

/* Final CTA Section */
.final-cta {
    padding: 5rem 2rem;
    background-color: #d32f2f;
    color: white;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.final-cta h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-align: center;
}

.final-cta p {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    text-align: center;
}

.final-cta button {
    padding: 1rem 3rem;
    background-color: white;
    color: #d32f2f;
    border: none;
    font-size: 1.3rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.final-cta button:hover {
    background-color: #b71c1c;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

/* Footer */
footer {
    padding: 3rem 2rem;
    background-color: #d32f2f;
    color: white;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
    text-align: center;
}

.footer-icons {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.footer-icons img {
    width: 40px;
    margin: 0 0.5rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.footer-icons img:hover {
    transform: scale(1.1);
}

/* Responsive */
@media(max-width: 1024px) {
    .hero-content h1 {
        font-size: 3rem;
    }
    .hero-content p {
        font-size: 1.4rem;
    }
}

@media(max-width: 768px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }
    .hero-content p {
        font-size: 1.2rem;
    }

    .hero-content button {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }
}

/*SUIVANT CSS */

/* Animation SVG stroke */
@keyframes draw {
  0% { stroke-dasharray: 0, 100; }
  100% { stroke-dasharray: 100, 0; }
}

svg path {
  stroke: #d32f2f;
  stroke-width: 2;
  fill: none;
  stroke-dasharray: 100, 0;
  animation: draw 1.5s forwards;
}

/* Pulse léger pour CTA et cartes */
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.hero-content button, .final-cta button {
  animation: pulse 3s infinite;
}

.benefit-card:hover, .card:hover, .step:hover, .testimonial-card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

/* Fade-in au scroll */
.fade-in {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ================== Section À propos HME CANADA ================== */
.about-hme {
    background-color: #fff;
    padding: 4rem 2rem;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.about-hme .about-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.about-hme h2 {
    text-align: center;
    font-size: 2rem;
    color: #d32f2f;
    margin-bottom: 2rem;
    font-weight: bold;
}

.about-hme p {
    text-align: justify;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.about-hme strong {
    color: #b71c1c;
}

/* ================== Responsive ================== */
@media (max-width: 1024px) {
    .about-hme h2 { font-size: 1.8rem; }
    .about-hme p { font-size: 0.95rem; }
}

@media (max-width: 768px) {
    .about-hme { padding: 3rem 1.5rem; }
    .about-hme h2 { font-size: 1.6rem; }
    .about-hme p { font-size: 0.95rem; }
}

@media (max-width: 480px) {
    .about-hme { padding: 2rem 1rem; }
    .about-hme h2 { font-size: 1.4rem; }
    .about-hme p { font-size: 0.9rem; }
}

/* ================== Section FAQ ================== */
.faq {
    background-color: #fff;
    padding: 4rem 2rem;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.faq h2 {
    text-align: center;
    color: #d32f2f;
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

.faq p {
    text-align: center;
    margin-bottom: 2.5rem;
    color: #555;
    font-size: 1rem;
}

.faq-item {
    margin-bottom: 1rem;
    border-bottom: 1px solid #ddd;
}

.faq-question {
    width: 100%;
    background-color: #f9f9f9;
    border: none;
    outline: none;
    padding: 1rem 1.5rem;
    text-align: left;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
}

.faq-question:hover {
    background-color: #d32f2f;
    color: #fff;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    background-color: #fff;
    padding: 0 1.5rem;
}

.faq-answer p {
    margin: 1rem 0;
    font-size: 0.95rem;
    color: #555;
}

/* ================== Responsive ================== */
@media (max-width: 768px) {
    .faq h2 { font-size: 1.6rem; }
    .faq-question { font-size: 1rem; padding: 0.8rem 1rem; }
    .faq-answer p { font-size: 0.9rem; }
}

/*SECTION DES OFFRE PREC*/
.partner-recruitment {
  padding: 50px 20px;
  background-color: #f7f7f7;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.partner-recruitment h2 {
  font-size: 2em;
  margin-bottom: 40px;
  color: #ff0000;
}

.partner-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  width: 100%;
  max-width: 1200px;
}

.partner-card {
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
  width: 250px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.partner-card:hover {
  transform: translateY(-10px);
}

.partner-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.partner-info {
  padding: 20px;
  text-align: center;
}

.partner-info h3 {
  font-size: 1.2em;
  margin-bottom: 15px;
}

.domain-title {
  color: #e63946;
}

.partner-info p {
  font-size: 0.95em;
  color: #555;
  line-height: 1.4;
}

/* Responsive */
@media (max-width: 1024px) {
  .partner-card {
    width: 45%;
  }
}

@media (max-width: 768px) {
  .partner-card {
    width: 100%;
  }
}
