
:root {
  --primary-color: #6A994E;
  --secondary-color: #ffc107;
  --text-color: #2c3e50;
  --bg-color: #fafafa;
  --accent-bg: #F8F7F4;
}


/* =========================================================
   RESET / GLOBAL
========================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Roboto', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.7;
  overflow-x: hidden;
}


/* =========================================================
   CONTAINER
========================================================= */

.container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}


/* =========================================================
   HEADER
========================================================= */

header {
  position: relative;
  z-index: 1;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  width: 100%;
  max-width: 100vw;

  padding: 6rem 0;

  background: var(--accent-bg);
  color: var(--text-color);

  text-align: center;

  clip-path: polygon(
    0 0,
    100% 0,
    100% 85%,
    0 100%
  );

  animation: slideIn 1s ease-out;

  overflow-x: hidden;
}


/* Header background image */

header::before {
  content: "";

  position: absolute;
  inset: 0;

  z-index: 0;
  pointer-events: none;

  background-image: url("image/header.png");
  background-size: cover;
  background-position: left center;

  -webkit-mask-image: linear-gradient(
    135deg,
    #000 0%,
    #000 51.93%,
    transparent 51.93%
  );

  mask-image: linear-gradient(
    135deg,
    #000 0%,
    #000 51.93%,
    transparent 51.93%
  );
}


/* Make sure header content stays above the image */

.header-content {
  position: relative;
  z-index: 2;

  display: flex;
  align-items: center;
  justify-content: space-between;

  width: 100%;
  gap: 3rem;
}


/* =========================================================
   HEADER TEXT
========================================================= */

.header-text {
  flex: 2;
}

.header-image {
  flex: 1;
  text-align: center;
}


/* Header title */

header h1 {
  margin: 0;

  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 8vw, 4rem);
  font-weight: 700;
  line-height: 1.2;

  color: #2c3e50;

  text-align: center;
  word-break: break-word;

  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
}


/* Header paragraph */

header p {
  max-width: 600px;

  margin-top: 1rem;

  font-size: 1.5rem;
  font-weight: 300;

  color: #2c3e50;
}


/* =========================================================
   IMPORTANT:
   HEADER STRONG TEXT
========================================================= */

/*
   This forces <strong> inside the header paragraph
   to remain yellow even if JavaScript adds classes
   such as .bg-aware-char or .on-header-image.
*/

header p strong {
  font-weight: 900 !important;

  color: var(--secondary-color) !important;

  -webkit-text-fill-color: var(--secondary-color) !important;

  background: none !important;
  background-image: none !important;

  -webkit-background-clip: initial !important;
  background-clip: initial !important;

  text-shadow: none;
}


/*
   If your JavaScript puts .bg-aware-char on the
   <strong> itself, this rule still keeps it yellow.
*/

header p strong.bg-aware-char,
header p strong.bg-aware-char.on-header-image {
  color: var(--secondary-color) !important;
  -webkit-text-fill-color: var(--secondary-color) !important;

  background: none !important;
  background-image: none !important;

  -webkit-background-clip: initial !important;
  background-clip: initial !important;
}


/*
   Normal background-aware characters.
   These can still change color normally.
*/

.bg-aware-char {
  color: #2c3e50;
  transition: color 0.12s linear;
}

.bg-aware-char.on-header-image {
  color: #fff;
}


/*
   BUT strong text always wins.
*/

header p strong.bg-aware-char.on-header-image {
  color: var(--secondary-color) !important;
  -webkit-text-fill-color: var(--secondary-color) !important;
}


/* =========================================================
   HEADER IMAGE
========================================================= */

.header-image img {
  display: block;

  max-width: 100%;
  height: auto;

  border-radius: 30px;

  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);

  transition: transform 0.5s ease;
}

.header-image img:hover {
  transform: scale(1.05);
}


/* =========================================================
   HEADER ANIMATION
========================================================= */

@keyframes slideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}


/* =========================================================
   CTA BUTTON
========================================================= */

.cta-button {
  display: inline-block;

  margin-top: 2rem;
  padding: 18px 45px;

  background-color: var(--secondary-color);
  color: var(--text-color);

  border-radius: 50px;

  font-size: 1.1rem;
  font-weight: 700;

  text-decoration: none;

  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.cta-button:hover {
  transform: translateY(-5px) scale(1.035);

  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.2);
}


/* =========================================================
   SECTIONS
========================================================= */

.section {
  padding: 6rem 0;
  text-align: center;
}

.section-title {
  margin-bottom: 3rem;

  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 700;

  color: var(--text-color);

  text-align: center;
  word-break: break-word;

  animation: popIn 0.8s ease-out;
}


/* =========================================================
   SECTION TITLE ANIMATION
========================================================= */

@keyframes popIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}


/* =========================================================
   CARDS
========================================================= */

.cards-container1 {
  display: grid;

  grid-template-columns:
    repeat(auto-fit, minmax(300px, 1fr));

  gap: 2rem;

  align-items: stretch;
}

.cards-container {
  display: grid;

  grid-template-columns: repeat(2, 1fr);

  gap: 2rem;
}

.cards-container a {
  display: block;

  height: 100%;

  color: inherit;
  text-decoration: none;
}


/* =========================================================
   CARD
========================================================= */

.card {
  position: relative;

  padding: 2.5rem;

  background-color: #fff;

  border-left: 5px solid var(--secondary-color);
  border-radius: 12px;

  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);

  text-align: left;

  overflow: hidden;

  transition:
    transform 0.4s cubic-bezier(
      0.25,
      0.46,
      0.45,
      0.94
    );
}


/* Card hover overlay */

.card::before {
  content: "";

  position: absolute;
  inset: 0;

  background: rgba(13, 71, 161, 0.05);

  transform: scaleX(0);
  transform-origin: left;

  transition: transform 0.5s ease;

  pointer-events: none;
}

.card:hover::before {
  transform: scaleX(1);
}

.card:hover {
  transform: translateY(-15px);
}


/* Card title */

.card h3 {
  position: relative;
  z-index: 2;

  margin-top: 0;

  font-size: 1.5rem;
}
 

/* Card paragraph */

.card p {
  position: relative;
  z-index: 2;

  color: #5b6b7b;
}


/* Card image */

.card-image {
  width: 100%;
  height: auto;

  margin-top: 10px;

  border-radius: 8px;
}


/* =========================================================
   TESTIMONIALS
========================================================= */

.testimonial-section {
  position: relative;

  width: 100%;
  max-width: 100vw;

  padding: 8rem 0 10rem;

  background-color: var(--accent-bg);

  overflow-x: hidden;
}

.testimonial-section::before {
  content: "";

  position: absolute;
  inset: 0;

  z-index: -1;

  background-color: var(--accent-bg);

  clip-path: polygon(
    0 15%,
    100% 0,
    100% 85%,
    0 100%
  );
}

.testimonial-card {
  max-width: 1000px;

  margin: 0 auto;

  text-align: center;
}

.testimonial-card blockquote {
  margin: 0;

  font-size: clamp(3rem, 10vw, 7rem);
  font-weight: 900;

  -webkit-text-stroke: 4px #2c3e50;
}

.testimonial-author {
  font-size: 1.1rem;
  font-weight: 500;
}


/* =========================================================
   LANGUAGE SELECTOR
========================================================= */

.language-selector {
  position: absolute;

  top: 20px;
  right: 20px;

  z-index: 100;

  width: 150px;

  font-family: 'Nunito Sans', sans-serif;
}

.language-display {
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 0.75rem 1rem;

  background-color: #F8F7F4;

  border-radius: 6px;

  cursor: pointer;

  transition: 0.3s;
}

.language-display:hover {
  background-color: #efe9d8;

  border-color: #343a40;

  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.language-options {
  position: absolute;

  width: 100%;

  margin: 5px 0 0;
  padding: 0;

  background-color: #F8F7F4;

  border-radius: 6px;

  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);

  list-style: none;

  display: none;
}

.language-selector.active .language-options {
  display: block;
}


/* =========================================================
   CONTACT FORM
========================================================= */

.form-container {
  padding-top: 1%;
  padding-bottom: 2rem;

  background-color: #efe9d8;

  border-radius: 8px;
}

.contact-form {
  max-width: 600px;

  margin: 2rem auto;
  padding: 2rem;

  background-color: #fff;

  border-radius: 8px;

  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.contact-form input,
.contact-form textarea {
  width: 100%;

  margin-bottom: 1rem;
  padding: 0.75rem;

  border: 1px solid #ddd;
  border-radius: 6px;
}

.contact-form button {
  padding: 0.75rem 1.5rem;

  background-color: #6A994E;
  color: #fff;

  border: none;
  border-radius: 6px;

  cursor: pointer;
}

.form-container h5 {
  text-align: center;
}


/* =========================================================
   REVEAL ANIMATION
========================================================= */

.reveal {
  opacity: 0;

  transform: translateY(60px);

  transition:
    opacity 1.2s ease,
    transform 1.2s
      cubic-bezier(
        0.215,
        0.61,
        0.355,
        1
      );
}

.reveal.active {
  opacity: 1;

  transform: translateY(0);
}


/* =========================================================
   RESPONSIVE — TABLET / MOBILE
========================================================= */

@media (max-width: 768px) {

  /* Header */

  header {
    display: block;

    min-height: 200svh;

    padding: 0 1.5rem;

    overflow: visible;
  }

  header::before {
    inset: 0 0 auto 0;

    height: 100svh;
  }


  /* Header content */

  .header-content {
    position: sticky;

    top: 0;

    min-height: 100svh;

    display: flex;

    flex-direction: column;

    justify-content: flex-start;

    gap: 2rem;

    padding-top: 18svh;

    text-align: center;
  }


  /* Header text/image */

  .header-text,
  .header-image {
    width: 100%;
  }

  .header-text {
    padding: 0 2.5rem;
  }


  /* Cards */

  .cards-container {
    grid-template-columns: 1fr;
  }


  /* Section title */

  .section-title {
    font-size: clamp(2rem, 8vw, 3rem);

    margin-bottom: 2rem;
  }


  /* Testimonial */

  .testimonial-section::before {
    clip-path: polygon(
      0 10%,
      100% 0,
      100% 90%,
      0 100%
    );
  }


  /* Form */

  .form-container {
    padding-bottom: 10rem;
  }
}


/* =========================================================
   RESPONSIVE — SMALL PHONES
========================================================= */

@media (max-width: 480px) {

  .testimonial-card blockquote {
    line-height: 1.1;

    margin-bottom: 2rem;
  }

  .form-container {
    padding-bottom: 1rem;
  }
}


/* =========================================================
   RESPONSIVE — VERY SMALL SCREENS
========================================================= */

@media (max-width: 400px) {

  .cards-container1,
  .cards-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  header::before {
    inset: -150px 0 auto 0;
    height: calc(100svh + 150px);

    background-position: left center;
  }
}





/* =========================================================
   SCROLL IMAGE
   ========================================================= */

.image-scroll-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 5rem 20px;
}

.scroll-image-container {
    width: 75%;
    max-width: 85%;
    opacity: 0;
    transform: translateY(70px) scale(0.96);
    transition:
        opacity 1s cubic-bezier(0.22, 1, 0.36, 1),
        transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

.scroll-image-container.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.scroll-image {
    display: block;
    width: 100%;
    height: auto;

    /* Border adapté au style du site */
    border: 4px solid #6A994E;
    border-radius: 28px;

    /* Ombre douce et moderne */
    box-shadow:
        0 12px 35px rgba(44, 62, 80, 0.14),
        0 3px 10px rgba(106, 153, 78, 0.10);

    transition:
        transform 0.4s ease,
        box-shadow 0.4s ease;
}

.scroll-image:hover {
    transform: translateY(-4px);
    box-shadow:
        0 18px 45px rgba(44, 62, 80, 0.18),
        0 5px 15px rgba(106, 153, 78, 0.14);
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 768px) {

    .image-scroll-section {
        padding: 4rem 20px;
    }

    .scroll-image-container {
        width: 90%;
        max-width: 600px;
    }

    .scroll-image {
        border-width: 3px;
        border-radius: 22px;
    }
}