/************************************************ FONT ********************************************/
@font-face {
font-family: "Archivo";
text-rendering: optimizeLegibility;
font-style: normal;
font-weight: 200;
src: url(../font/archivo-v24-latin-200.woff2) format("woff2");
}
@font-face {
font-family: "Archivo";
text-rendering: optimizeLegibility;
font-style: italic;
font-weight: 200;
src: url(../font/archivo-v24-latin-200italic.woff2) format("woff2");
}
@font-face {
font-family: "Archivo";
text-rendering: optimizeLegibility;
font-style: normal;
font-weight: 400;
src: url(../font/archivo-v24-latin-regular.woff2) format("woff2");
}

@font-face {
font-family: "Archivo";
text-rendering: optimizeLegibility;
font-style: normal;
font-weight: 700;
src: url(../font/archivo-v24-latin-700.woff2) format("woff2");
}

/********************************************* GLOBAL STYLES *********************************************/
body {
margin: 0;
font-family: 'Archivo', sans-serif;
background-color: #f5f5f5;
}
.mobile-menu-icon {
display: none;
cursor: pointer;
margin-left: 1rem;
width: 30px;
height: 24px;
position: relative;
z-index: 1001;
}
.bar {
width: 100%;
height: 3px;
background-color: white;
position: absolute;
transition: 0.3s;
}
.bar:nth-child(1) {
top: 0;
}
.bar:nth-child(2) {
top: 10px;
}
.bar:nth-child(3) {
top: 20px;
}
.mobile-menu-icon.active .bar:nth-child(1) {
transform: rotate(45deg);
top: 5px;
}
.mobile-menu-icon.active .bar:nth-child(2) {
opacity: 0;
}
.mobile-menu-icon.active .bar:nth-child(3) {
transform: rotate(-45deg);
top: 5px;
}
.nav-container {
display: flex;
}
.overlay {
display: none;
}
*, *::before, *::after {
box-sizing: border-box;
}
body, h1, h2, h3, p, ul, li, a {
margin: 0;
padding: 0;
list-style: none;
text-decoration: none;
}
img {
max-width: 100%;
height: auto;
}
a {
color: inherit;
text-decoration: none;
}
button {
cursor: pointer;
}
/********************************************* HEADER *********************************************/
header {
  background-color: #001952;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 80px;
  color: #ffffff;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: background-color 0.3s, color 0.3s;
}

header.scrolled {
  background-color: #f5f5f5;
  color: #001952;
}

body {
  margin-top: 80px;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.logo-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo-link img {
  height: 55px;
  width: auto;
  flex-shrink: 0;
  max-width: none;
}

.phone-number {
  font-family: 'Archivo', sans-serif;
  color: #ffffff;
  font-size: 0.95rem;
  white-space: nowrap;
}

.phone-number a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
}

.phone-number a:hover {
  color: #DC5C01;
}

.cta-button {
  background-color: #12769E;
  color: #f5f5f5;
  border: none;
  border-radius: 6px;
  padding: 10px 20px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
  display: block;
  width: 100%;
}

.cta-button:hover {
  background-color: #DC5C01;
}

.nav-container {
  display: none;
  height: auto;
  overflow: visible;
}

.nav-container.active {
  display: flex;
}

.nav-links-header {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  font-family: 'Archivo', sans-serif;
}

.nav-link-header {
  text-decoration: none;
  color: #ffffff;
  font-weight: 400;
  transition: color 0.2s ease;
}

.nav-link-header:hover {
  color: #DC5C01;
}

/* Hamburger icon */
.mobile-menu-icon {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 25px;
  height: 20px;
  cursor: pointer;
}

.mobile-menu-icon .bar {
  height: 3px;
  background-color: white;
  width: 100%;
  border-radius: 2px;
}

.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 998;
}

.overlay.active {
  display: block;
}

/********************************************* FOOTER ***************************************************/
.site-footer {
background-color: #001952;
color: #fff;
padding: 3rem 2rem 1rem;
font-family: 'Archivo', sans-serif;
position: relative;
box-sizing: border-box;
overflow: hidden;
z-index: 2;
position: relative;
}
.footer-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 3rem;
max-width: 1200px;
margin: 0 auto;
align-items: start;
}
.footer-logo img {
height: 170px;
filter: brightness(0) invert(1);
object-fit: contain;
}
.footer-column h4 {
font-size: 1.2rem;
margin-bottom: 1rem;
color: #DC5C01;
font-weight: 700;
letter-spacing: 0.05em;
}
.footer-column ul {
list-style: none;
padding: 0;
margin: 0;
}
.footer-column li {
margin-bottom: 0.7rem;
}
.footer-column a {
color: #f5f5f5;
text-decoration: none;
transition: color 0.3s ease;
font-size: 1rem;
display: inline-flex;
align-items: center;
}
.footer-column a:hover {
color: #12769E;
}
.social-icon {
width: 100px;
height: 32px;
transition: filter 0.3s ease;
filter: brightness(0) invert(1);
}
.contact-list li {
display: flex;
align-items: center;
gap: 10px;
margin-bottom: 0.5rem;
}
.contact-list a {
font-weight: 500;
}
.contact-list .icon {
color: #DC5C01;
font-size: 1rem;
min-width: 20px;
transition: color 0.2s ease;
}
.contact-list a:hover .icon, .contact-list li:hover .icon {
color: #f5f5f5;
}
.footer-bottom {
text-align: center;
border-top: 1px solid #444;
margin-top: 2rem;
padding-top: 1rem;
font-size: 0.9rem;
color: #aaa;
}
.footer-logo {
position: relative;
width: 170px;
height: 170px;
}

/*********************************************** ACCEUIL ************************************************/
.hero-section {
height: 76vh;
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
padding: 3rem 2rem 1rem;
background-image: url('../images/couvertureHeroSCA.png');
background-size: cover;
background-position: center;
background-repeat: no-repeat;
}
.hero-logo-container {
display: flex;
align-items: center;
flex-direction: row;
max-width: 2000px;
justify-content: space-between;
gap: 4rem;
}
.hero-logo {
  position: relative;
  z-index: 1;
  max-width: 420px;
  height: auto;
  border-radius: 50%;
  background-color: #fff;
  box-shadow: 0 0 40px rgba(18,118,158,0.25);
  
  animation: floatTilt 6s ease-in-out infinite;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* Animation de base */
@keyframes floatTilt {
  0% {
    transform: translateY(0) rotate3d(1, 1, 0, 0deg);
    box-shadow: 0 0 40px rgba(18,118,158,0.25);
  }
  25% {
    transform: translateY(-12px) rotate3d(1, 1, 0, 4deg);
    box-shadow: 0 10px 50px rgba(18,118,158,0.35);
  }
  50% {
    transform: translateY(0) rotate3d(1, 1, 0, 0deg);
    box-shadow: 0 0 40px rgba(18,118,158,0.25);
  }
  75% {
    transform: translateY(-12px) rotate3d(-1, 1, 0, -4deg);
    box-shadow: 0 10px 50px rgba(18,118,158,0.35);
  }
  100% {
    transform: translateY(0) rotate3d(1, 1, 0, 0deg);
    box-shadow: 0 0 40px rgba(18,118,158,0.25);
  }
}
.hero-text h1 {
  font-size: 4rem;
  font-family: 'Archivo', sans-serif;
  margin: 0;
  color: #0A0F27;

  opacity: 0;
  transform: translateY(20px);
  animation: smoothFadeUp 1.2s ease-out forwards;
}
.hero-text h1:nth-child(2) {
  animation-delay: 0.4s; /* petite mise en scène */
}
.hero-text h4 {
  font-size: 1.2rem;
  font-family: 'Archivo', sans-serif;
  margin: 0.5rem 0 1.5rem;
  color: #0A0F27;

  opacity: 0;
  transform: translateY(15px);
  animation: smoothFadeUp 1.0s ease-out forwards;
  animation-delay: 0.6s;
}
@keyframes smoothFadeUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
.hero-cta-wrapper {
text-align: center;
margin-top: 0rem;
animation: fadeInUp 0.8s ease-in-out;
}
.cta-button {
background-color: #12769E;
color: rgb(255, 255, 255);
padding: 1rem 2rem;
font-size: 1rem;
border: none;
border-radius: 0.5rem;
text-decoration: none;
transition: background-color 0.2s ease;
}
.cta-button:hover {
background-color: #DC5C01;
}
.highlight-orange {
text-decoration: none;
color: #DC5C01;
}

@keyframes fadeInUp {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}

.about-section {
background-color: #001952;
padding: 4rem 0;
display: flex;
justify-content: center;
align-items: center;
position: relative;
overflow: hidden;
}
.about-section::before {
content: "";
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-image: url('../illustrations/bateau4.JPG');
background-size: cover;
background-position: center;
background-repeat: no-repeat;
filter: grayscale(100%) opacity(0.4);
z-index: 1;
}
.about-container {
max-width: 1000px;
text-align: center;
padding: 2rem;
background-color: #ffffff;
border-radius: 8px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
border-left: 6px solid #DC5C01;
overflow: hidden;
position: relative;
z-index: 2;
}
.about-container h2 {
font-size: 3rem;
color: #12769E;
margin-bottom: 1rem;
font-family: 'Archivo', sans-serif;
}
.about-container p {
font-size: 1.1rem;
line-height: 1.6;
color: #333;
font-family: 'Archivo', sans-serif;
text-align: center ;
}
.nav-link {
color: #001952;
text-decoration: none;
font-weight: 600;
}
.nav-link:hover {
text-decoration: underline;
}
@keyframes fadeInUp {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
/********************************************* LOGO CAROUSEL *********************************************/
.logo-carousel {
overflow: hidden;
position: relative;
width: 100%;
background-color: #f5f5f5;
padding: 2rem 0;
}
.logo-track {
display: flex;
width: max-content;
animation: scroll 60s linear infinite;
}
.logo-track img {
height: 60px;
margin: 0 2rem;
filter: grayscale(100%);
transition: filter 0.1s ease;
}
.logo-track img:hover {
filter: none;
}
@keyframes scroll {
0% {
transform: translateX(0);
}
100% {
transform: translateX(-50%);
}
}

/********************************************* TESTIMONIALS *********************************************/
.testimonial-section {
position: relative;
background-color: #ffffff;
padding: 4rem 2rem;
text-align: center;
color: #001952;
margin-bottom: 0rem;
overflow: hidden;
}
.testimonial-section::before {
content: "";
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-image: url('../illustrations/motodroite2.JPG');
background-size: cover;
background-position: center;
background-repeat: no-repeat;
filter: grayscale(100%) opacity(0.4);
z-index: 1;
}
.testimonial-container {
max-width: 1200px;
margin: 0 auto;
position: relative;
z-index: 2;
}
.testimonial-title {
font-size: 2.5rem;
margin-bottom: 1rem;
color: #0A0F27;
font-weight: 700;
z-index: 2;
}
.testimonial-intro {
font-size: 1.1rem;
margin-bottom: 3rem;
color: #333;
z-index: 2;
}
.testimonial-carousel {
position: relative;
overflow: hidden;
width: 100%;
padding: 0 40px;
box-sizing: border-box;
}
.testimonial-track {
display: flex;
transition: transform 0.5s ease;
will-change: transform;
gap: 16px;
}
.testimonial {
background-color: #ffffff;
border-left: 5px solid #12769E;
border-radius: 12px;
padding: 1.5rem;
text-align: left;
display: flex;
flex-direction: column;
justify-content: space-between;
height: 100%;
min-height: 320px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
flex: 0 0 calc((100% - 32px) / 3);
box-sizing: border-box;
}
.testimonial-quote {
font-style: italic;
font-size: 1rem;
color: #444;
margin-bottom: 1rem;
flex-grow: 1;

}
.testimonial-author {
font-weight: bold;
color: #0A0F27;
font-size: 0.95rem;
}
.highlight-client {
color: #DC5C01;
font-weight: 600;
}


/* Boutons du carrousel — base */
.testimonial-prev, .testimonial-next {
  position: absolute;
  top: 65%;
  transform: translateY(-50%); /* on complètera l'axe X par breakpoint */
  background-color: rgba(18, 118, 158, 0.8);
  border: none;
  color: #fff;
  font-size: 2rem;
  width: 40px;
  height: 40px;
  padding: 0;
  cursor: pointer;
  z-index: 10;
  border-radius: 50%;
  transition: background-color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.testimonial-prev:hover, .testimonial-next:hover { background-color: #0A0F27; }

.testimonial-prev { left: 0; }
.testimonial-next { right: 0; }

/********************************************* PARTENAIRES ***************************************************/
.partners-section {
  background-color: #f5f5f5;
  background-image: radial-gradient(circle, #d3d3d3 10%, transparent 10%);
  background-size: 20px 20px;
  padding: 80px 20px;
  text-align: center;
  color: #333;
  padding: 6rem 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
}
.partners-wrapper {
  background-color: #f5f5f5;
  border-radius: 100px;
  padding: 4rem 3rem;
  max-width: 1200px;
  width: 100%;
  text-align: center;
  font-family: 'Archivo', sans-serif;
  box-shadow: 0 0 60px 10px #00195233;
  position: relative;
  margin-bottom: 4rem;
}
.partners-wrapper .learn-more-button {
  position: absolute;
  left: 50%;
  bottom: -100px;           /* ajuste la valeur si tu veux qu'il dépasse + ou - */
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  justify-content: center;
  width: auto;
  pointer-events: auto;
}
.partners-wrapper h2 {
  font-size: 2.5rem;
  color: #12769E;
  margin-bottom: 1rem;
}

.partners-wrapper p {
  font-size: 1.2rem;
  color: #333;
  margin-bottom: 3rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}
.partner-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}
.partner-logos img {
  max-width: 180px;
  height: auto;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}
.partner-logos img:hover {
  transform: scale(1.05);
box-shadow: 0 0 30px rgba(18,118,158,0.3);
}
.partner-logos a img {
  cursor: pointer;
}
.learn-more-button {
  margin-top: 3rem;
  text-align: center;
}

.learn-more-button {
  margin-top: 2rem;   /* espace sous la pillule */
  text-align: center;

}


/********************************************* CA DEALER 2 ***************************************************/
.hero-section-cad2 {
background-color: #f5f5f5;
background: linear-gradient(180deg, #001952 0%, #f5f5f5 100%);
text-align: center;
padding: 50px 0;
}
.hero-section-cad2 .hero-content h1 {
color: #ffffff;
font-size: 48px;
margin-bottom: 15px;
}
.hero-section-cad2 .hero-image-cad2 {
  width: 80%;
  max-width: 1000px;
  border-radius: 12px;
  margin-top: 30px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.2);

  opacity: 0;
  transform: translateY(60px) scale(1.05);
  animation: imageFloatIn 1.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.3s;
}
@keyframes imageFloatIn {
  0% {
    opacity: 0;
    transform: translateY(60px) scale(1.05);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.hero-section-cad2 .hero-image-cad2 {
  animation: imageFloatIn 1.6s cubic-bezier(0.16, 1, 0.3, 1) forwards,
             subtleFloat 6s ease-in-out infinite 2s;
  will-change: transform, opacity;
  image-rendering: -webkit-optimize-contrast; /* Chrome */
  image-rendering: crisp-edges; /* fallback */
}
@keyframes subtleFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-8px); }
}
@media (max-width: 768px) {
  .hero-section-cad2 .hero-image-cad2 {
    animation: imageFloatIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards; /* seulement l’entrée */
  }
}
.boxes-section {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 30px;
padding: 40px 40px;
background-size: cover;
background-position: center;
background-repeat: no-repeat;
}
.box {
background-color: rgb(255, 255, 255, 0.85);
padding: 20px;
border-radius: 8px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
transition: transform 0.2s ease, box-shadow 0.3s ease;
}
.box:hover {
transform: translateY(-10px);
box-shadow: 0 0 30px rgba(18,118,158,0.3);
}
.box-title {
display: flex;
align-items: center;
margin-bottom: 15px;
}
.box-title .box-icon {
width: 30px;
height: 30px;
margin-right: 10px;
margin-left: 2px;
margin-top: 12px;
}
.box h2 {
color: #12769E;
font-size: 24px;
transition: color 0.2s ease;
}
.box:hover h2 {
color: #DC5C01;
}
.box p, .box ul {
color: #333;
font-size: 16px;
}
.box ul {
list-style-type: disc;
padding-left: 20px;
}

.hero2-section-cad2 {
background-color: #f5f5f5;
padding: 50px 0;
font-family: 'Archivo', sans-serif;
position: relative;
text-align: center;
margin-top: 3rem;
overflow: hidden;
}
.hero2-section-cad2::before {
content: "";
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-image: url('../illustrations/2homcrop.JPG');
background-size: cover;
background-position: center;
background-repeat: no-repeat;
filter: grayscale(100%) opacity(0.4);
z-index: 1;
}
.hero2-section-cad2 .hero2-content h1 {
color: #000000;
font-size: 48px;
margin-bottom: 15px;
z-index: 2;
position: relative;
}
.cadfi-section {
padding: 50px 20px;
text-align: center;
position: relative;
z-index: 2;
}
.cadfi-section .container {
max-width: 1200px;
margin: 0 auto;
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 30px;
}
.cadfi-box {
background-color: #ffffff;
padding: 30px;
border-radius: 8px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
margin-bottom: 30px;
transition: transform 0.2s ease, box-shadow 0.3s ease;
}
.cadfi-box:hover {
transform: translateY(-10px);
  box-shadow: 0 0 30px rgba(18,118,158,0.3);
}
.cadfi-box h2 {
color: #12769E;
font-size: 24px;
margin-bottom: 15px;
transition: color 0.2s ease;
}
.cadfi-box:hover h2 {
color: #DC5C01;
}
.cadfi-box p {
color: #333;
font-size: 16px;
line-height: 1.6;
}

/****************************************** À PROPOS SECTION **********************************************/

.made-in-quebec-section {
  position: relative;
  padding-top: 3rem;
  padding-bottom: 3rem;
  text-align: center;
  margin: 40px 0;
}
.made-in-quebec-section .section-title {
  display: inline-block;
  padding: 15px 30px;
  font-size: 3rem; /* un peu plus grand */
  font-weight: 900;
  color: transparent;
  background: linear-gradient(90deg, #12769E, #1c1f3a);
  -webkit-background-clip: text;
  background-clip: text;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.made-in-quebec-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(circle, #d3d3d3 10%, transparent 10%);
  background-size: 20px 20px;
  z-index: 0;
}
.arc-center img {
  position: relative;
  z-index: 1;
  max-width: 400px;
  height: auto;
  border-radius: 50%;
  box-shadow: 0 0 30px rgba(18,118,158,0.3);
  background-color: #fff;
    animation: float 4s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}

.arc-layout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4rem;
}
.arc-column {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2rem;
  font-family: 'Archivo', sans-serif;
  max-width: 280px;
}
.arc-item {
  padding: 1rem;
  border: 2px solid #12769E; 
  border-radius: 8px;
  background: #f9f9f9;
  opacity: 0; /* invisible au départ */
  animation: slideFromCenter 1.5s ease forwards;
  z-index: 1;
  transition: 
    transform 0.2s ease, 
    box-shadow 0.2s ease, 
    opacity 0.2s ease, 
    background-color 0.2s ease;
}
.arc-item:hover {
  transform: translateY(-5px) scale(1.02); 
  box-shadow: 0 0 30px rgba(18,118,158,0.4);
  background-color: #ffffff; /* plus clair au hover */
  opacity: 1; /* fade in */
}
.arc-item h3 {
  font-size: 1.2rem;
  color: #12769E;
  margin-bottom: 0.5rem;
}
.arc-item p {
  font-size: 1rem;
  line-height: 1.5;
  color: #1c1f3a;
}
.arc-column.left .arc-item:nth-child(1) {
  animation-delay: 0s;
  --target-translate: 25px;
}
.arc-column.left .arc-item:nth-child(2) {
  animation-delay: 0.2s;
  --target-translate: -60px;
}
.arc-column.left .arc-item:nth-child(3) {
  animation-delay: 0.4s;
  --target-translate: 25px;
}

.arc-column.right .arc-item:nth-child(1) {
  animation-delay: 0s;
  --target-translate: -25px;
}
.arc-column.right .arc-item:nth-child(2) {
  animation-delay: 0.2s;
  --target-translate: 60px;
}
.arc-column.right .arc-item:nth-child(3) {
  animation-delay: 0.4s;
  --target-translate: -25px;
}
@keyframes slideFromCenter {
  0% {
    opacity: 0;
    transform: translateX(0);
  }
  100% {
    opacity: 1;
    transform: translateX(var(--target-translate));
  }
}

.why-intro-section {
  background-color: #f5f5f5;
  padding: 8rem 2rem 8rem;
  font-family: 'Archivo', sans-serif;
  position: relative;
  overflow: hidden;
  z-index: 2;
}
.why-intro-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(rgba(0, 25, 82, 0.4), rgba(0, 25, 82, 0.4)),
    url('../illustrations/sbs2.JPG');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: opacity(0.2); 
  background-blend-mode: overlay;
  z-index: 1;
}
.section-title {
  font-size: 2.5rem;
  color: #12769E;
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
  z-index: 2;
}

.diagonal-texts {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 4rem;
  justify-content: center;
  position: relative;
  z-index: 2;
}
.top-left-text, .bottom-right-text {
  color: #000000;
  width: 45%;
  background-color: transparent;
  border-radius: 12px;
  transition: background-color 0.35s ease, backdrop-filter 0.35s ease;
  padding: 1rem;
  position: relative;
  z-index: 2;
  will-change: background-color, backdrop-filter;
}
.top-left-text.open, .bottom-right-text.open {
  background-color: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(4px);
}  
.title-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.5rem;
  z-index: 2;
  cursor: pointer;
}
.title-wrapper h2 {
  margin-right: 10px;
  transition: color 0.3s ease;
}
.toggle-button {
  background-color: #12769E;
  border: none;
  color: white;
  font-size: 1.8rem;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.title-wrapper:hover h2 {
  color: #DC5C01;
}
.title-wrapper:hover .toggle-button {
  background-color: #DC5C01;
}
.top-left-text.open .title-wrapper h2,
.bottom-right-text.open .title-wrapper h2 {
  color: #DC5C01;
}

.top-left-text.open .toggle-button,
.bottom-right-text.open .toggle-button {
  background-color: #DC5C01;
}
.content {
  display: block;
  max-height: 0;
  overflow: hidden;
  font-size: 1.05rem;
  line-height: 1.6;
  margin-top: 1rem;
  transition: max-height 0.5s ease-out;
}
.content p {
  margin-bottom: 1.5rem;
}
#top-left-text ul {
  list-style: none;
  margin-left: 0;
  padding-left: 0;
}
#top-left-text ul li {
  position: relative;
  padding-left: 25px; 
  margin-bottom: 2px;
  font-family: 'Archivo', sans-serif;
  color: #1c1f3a;
  line-height: 1.6;
}
#top-left-text ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 9px;
  height: 9px;
  background-color: #DC5C01;
  border-radius: 50%;
}
#bottom-right-text ul {
  list-style: none;
  margin-left: 0;
  padding-left: 0;
}
#bottom-right-text ul li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 2px;
  font-family: 'Archivo', sans-serif;
  color: #1c1f3a;
  line-height: 1.6;
}
#bottom-right-text ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 9px;
  height: 9px;
  background-color: #DC5C01; 
  border-radius: 50%;
}

.why-choose-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(circle, #d3d3d3 10%, transparent 10%);
  background-size: 20px 20px;
  z-index: 0;
}
.why-choose-section {
  text-align: center;
  padding-top: 1rem;
  padding-bottom: 3rem;
}
.why-choose-section .container {
  max-width: 1200px;
margin: 0 auto;
}
.why-choose-section h2 {
font-size: 36px;
margin-top: 40px;
margin-bottom: 40px;
color: #0a0f27;
}
.features {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 30px;
margin-bottom: 40px;
}
.feature {
background-color: #ffffff;
padding: 30px;
border-radius: 8px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
text-align: center;
transition: transform 0.2s ease, box-shadow 0.3s ease;
}
.feature i {
font-size: 40px;
color: #0a0f27;
margin-bottom: 15px;
}
.feature h3 {
font-size: 24px;
margin-bottom: 15px;
color: #12769E;
transition: color 0.2s ease;
}
.feature:hover {
  transform: translateY(-5px) scale(1.02); 
  box-shadow: 0 0 30px rgba(18,118,158,0.4);
  opacity: 1; /* fade in */
}
.feature p {
font-size: 16px;
color: #333;
line-height: 1.5;
}
.cta-links {
margin-top: 40px;
position: relative;
z-index: 2;
}
.cta-section {
z-index: 2;
position: relative;
margin-bottom: 40px;
}
.cta-links p {
font-size: 18px;
margin-bottom: 20px;
}
.cta-links .btn-primary, .cta-links .btn-secondary {
display: inline-block;
padding: 15px 30px;
font-size: 18px;
font-weight: 600;
border-radius: 50px;
margin: 10px;
text-decoration: none;
}
.cta-links .btn-secondary {
background-color: #12769E;
color: #fff;
transition: background-color 0.3s ease;
}
.cta-links .btn-secondary:hover {
background-color: #DC5C01;
}

/****************************************** PRIVACY POLICY SECTION **********************************************/
.privacy-policy-section {
position: relative;
background-color: #f0f4f7;
padding: 5rem 2rem;
z-index: 2;
}
.privacy-policy-content {
position: relative;
max-width: 1000px;
margin: 0 auto;
background-color: #ffffff;
padding: 3rem;
border-radius: 12px;
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.05);
z-index: 2;
}
.privacy-policy-content h1 {
font-size: 2.25rem;
color: #12769E;
font-family: 'Archivo', sans-serif;
margin-bottom: 1.5rem;
text-align: center;
}
.privacy-policy-content p {
font-size: 1.125rem;
line-height: 1.75;
color: #333;
margin-bottom: 1.5rem;
font-family: 'Arial', sans-serif;
}

/****************************************** DEMO CONTACT SECTION **********************************************/
.all-contact-class {
position: relative;
z-index: 2;
background-color: #f0f4f7;
}
.contact-intro, .contact-card, .contact-main {
position: relative;
z-index: 2;
}
.all-contact-class::before {
content: "";
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-image: url('../illustrations/motocross-gauche.jpg');
background-size: cover;
background-position: center;
background-repeat: no-repeat;
filter: grayscale(100%) opacity(0.2);
z-index: 1;
}
.contact-intro {
text-align: center;
padding: 4rem 2rem 0rem;
max-width: 900px;
margin: 0 auto;
overflow: hidden;
z-index: 2;
margin-bottom: 4rem;
}
.contact-intro h1 {
font-size: 2.5rem;
color: #12769E;
font-family: 'Archivo', sans-serif;
margin-bottom: 1rem;
}
.contact-intro p {
font-size: 1.2rem;
color: #333;
margin: 0;
}
.contact-box {
flex: none;
width: auto;
padding: 1.5rem;
background-color: #ffffff;
border-radius: 8px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
text-align: center;
min-width: 250px;
transition: transform 0.2s ease;
}
.contact-box h3 {
font-size: 1.5rem;
color: #12769E;
margin-bottom: 1rem;
}
.contact-box p {
font-size: 1rem;
color: #333;
line-height: 1.6;
}
.contact-box a {
color: #12769e;
text-decoration: none;
}
.contact-box a:hover {
text-decoration: underline;
}

.contact-main {
display: flex;
flex-direction: row-reverse;
justify-content: space-between;
gap: 2rem;
padding: 4rem 2rem;
max-width: 1200px;
margin: auto;
margin-bottom: 4rem;
background-color: #ffffff;
border-radius: 12px;
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.05);
}
.all-demo-class {
position: relative;
z-index: 2;
background-color: #f0f4f7;
min-height: auto;
overflow: hidden;
}
.all-demo-class::before {
content: "";
position: absolute;
inset: 0;
background-image: url('../illustrations/motoetvttpetit2.png');
background-size: cover;
background-position: center;
background-repeat: no-repeat;
filter: grayscale(100%) opacity(0.2);
z-index: 1;
height: 100%;
}
.demo-intro {
text-align: center;
padding: 4rem 2rem 4rem;
max-width: 900px;
margin: 0 auto;
z-index: 111111;
position: relative;
}
.demo-intro h1 {
font-size: 2.25rem;
color: #12769E;
font-family: 'Archivo', sans-serif;
margin-bottom: 1rem;
}
.demo-intro p {
font-size: 1.2rem;
color: #333;
margin: 0;
}
.contact-form {
flex: 1 1 60%;
}
#contactForm {
background-color: #ffffff;
padding: 2.5rem;
display: flex;
flex-direction: column;
gap: 1.25rem;
animation: slideIn 0.5s ease forwards;
}
#contactForm h2 {
font-size: 2rem;
margin-bottom: 1rem;
color: #0A0F27;
text-align: center;
}
.form-group label {
display: block;
margin-bottom: 0.5rem;
font-weight: 600;
color: #333;
}
.form-group input, .form-group textarea {
width: 100%;
padding: 0.75rem 1rem;
border: 1px solid #ccc;
border-radius: 6px;
background-color: #fff;
font-size: 1rem;
transition: border-color 0.3s ease;
}
.form-group input:focus, .form-group textarea:focus {
outline: none;
border-color: #12769e;
}
.cta-button-contact {
width: 100%;
background-color: #12769e;
color: white;
padding: 1rem;
font-size: 1rem;
border: none;
border-radius: 6px;
cursor: pointer;
transition: background-color 0.2s ease;
}
.cta-button-contact:hover {
background-color: #dc5c01;
}
.contact-info {
flex: 1 1 40%;
background-color: #f0f4f7;
padding: 2.5rem;
border-radius: 10px;
color: #333;
font-size: 1rem;
display: flex;
flex-direction: column;
justify-content: relative;
align-self: start;
margin-left: 2rem;
}
.contact-info h3 {
font-size: 1.5rem;
color: #12769E;
margin-bottom: 1.5rem;
text-align: center;
}
.contact-info p {
margin-bottom: 1rem;
line-height: 1.6;
text-align: center;
}
.contact-info a {
color: #12769e;
text-decoration: none;
}
.logo-contact-img {
max-width: 250px;
height: auto;
object-fit: contain;
display: block;
margin: 0 auto 2rem;
}
@keyframes slideIn {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}

.loader {
display: none;
margin-top: 1rem;
text-align: center;
}
.loader div {
display: inline-block;
width: 24px;
height: 24px;
border: 3px solid #12769e;
border-top: 3px solid transparent;
border-radius: 50%;
animation: spin 1s linear infinite;
}
@keyframes spin {
to {
transform: rotate(360deg);
}
}
.error-message {
color: #dc5c01;
font-size: 0.875rem;
margin-top: 0.3rem;
display: none;
}
#confirmation-message {
background-color: #f5f5f5;
padding: 3rem 2rem;
text-align: center;
animation: fadeIn 0.6s ease forwards;
border-radius: 10px;
max-width: 800px;
margin: 2rem auto;
justify-content: center;
align-items: center;
flex-direction: column;
overflow: hidden;
position: relative;
z-index: 2;
}
#demo-confirmation-message {
background-color: #f5f5f5;
padding: 3rem 2rem;
text-align: center;
animation: fadeIn 0.6s ease forwards;
border-radius: 10px;
max-width: 800px;
margin: 2rem auto;
justify-content: center;
align-items: center;
flex-direction: column;
overflow: hidden;
position: relative;
z-index: 2;
}
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
#confirmation-message h3 {
font-size: 2rem;
color: #12769E;
margin-bottom: 1.5rem;
font-family: 'Archivo', sans-serif;
}
#confirmation-message p {
font-size: 1.2rem;
color: #333333;
margin-bottom: 1rem;
line-height: 1.6;
max-width: 800px;
margin: 0 auto;
}
#confirmation-message a {
color: #12769E;
text-decoration: none;
font-weight: bold;
}
#confirmation-message a:hover {
color: #DC5C01;
text-decoration: underline;
}
#demo-confirmation-message h3 {
font-size: 2rem;
color: #12769E;
margin-bottom: 1.5rem;
font-family: 'Archivo', sans-serif;
}
#demo-confirmation-message p {
font-size: 1.2rem;
color: #333333;
margin-bottom: 1rem;
line-height: 1.6;
max-width: 800px;
margin: 0 auto;
}
#demo-confirmation-message a {
color: #12769E;
text-decoration: none;
font-weight: bold;
}
#demo-confirmation-message a:hover {
color: #DC5C01;
text-decoration: underline;
}
/* Style pour le bouton "Retour vers l'accueil" */
.cta-button-return {
    background-color: #12769E;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 1.1em;
    cursor: pointer;
    border-radius: 5px;
    margin-top: 20px;
    transition: background-color 0.3s ease;
    display: inline-block;
}

.cta-button-return:hover {
    background-color: #DC5C01;
}
/****************************************** MEDIA SECTION **********************************************/

@media (max-width: 768px) {
  .nav-container {
    display: flex;
    flex-direction: column;
    background-color: #001952;
    backdrop-filter: blur(6px);
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    z-index: 1000;
    padding: 0;
  }
  .nav-container.active {
    max-height: none;
  }
.cta-button {
  padding: 8px 12px;
  font-size: 14px;
  display: inline-block;    /* ensures anchors/buttons are visible */
  text-align: center;
  box-sizing: border-box;
}
.nav-container:not(.active) .cta-button {
  display: none;
}
.nav-container.active .cta-button {
  display: block;
  width: 100%;
  margin-top: 1rem;
  padding: 0.8rem 1.2rem;
}
  .mobile-menu-icon {
    display: block;
  }
  .overlay {
    position: fixed;
    top: 0; left: 0;
    height: 100vh; width: 100vw;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 999;
    display: none;
  }
  .overlay.active { display: block; }

  header {
    flex-wrap: wrap;
    justify-content: center;
    height: auto;
    padding: 1rem;
  }
  .mobile-phone {
    margin-top: 1rem;
    text-align: center;
    font-size: 1rem;
  }
  .mobile-phone a {
    color: #fff;
    text-decoration: none;
  }
  .mobile-phone a:hover {
    color: #DC5C01;
  }
  .hero-section {
    height: auto;
    background-position: center top;
    min-height: 100vh;
  }
  .hero-logo-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
  }
  .hero-text {
    max-width: 100%;
    animation: fadeInUp 0.8s ease-in-out;
  }
  .hero-text h1 {
    font-size: 2rem;
    line-height: 1.3;
  }
  .hero-text h4 {
    font-size: 1rem;
    margin-top: 1rem;
  }
  .hero-logo {
    max-width: 250px;
    width: 100%;
    height: auto;
    margin-top: 2rem;
  }
  .hero-cta-wrapper {
    margin-top: 2rem;
  }
  .cta-button {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
  }
  .hero-section-2 {
    padding: 2rem 1rem;
    flex-direction: column;
  }
  .hero-section-2 img {
    width: 100%;
    height: auto;
    max-width: 100%;
  }
  .about-container {
    margin: 0 1rem;
  }
  .site-footer {
    padding: 2rem;
  }
  .footer-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    margin: 0 auto;
    padding: 0;
  }
  .footer-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 170px; height: 170px;
  }
  .footer-column {
    text-align: center;
  }
  .footer-column h4,
  .footer-column ul {
    text-align: center;
  }
  .footer-column li {
    margin-bottom: 0.5rem;
  }
  .social-icon {
    margin: 0 auto;
  }
  .footer-bottom {
    font-size: 1rem;
    color: #aaa;
    margin-top: 1.5rem;
    padding-top: 1rem;
  }
  .logo-track img {
    height: 40px;
    margin: 0 1rem;
  }
  .testimonial-prev {
    left: 12px;
    transform: translateY(-50%);
  }
  .testimonial-next {
    right: 12px;
    transform: translateY(-50%);
  }
  .testimonial {
    flex: 0 0 100%;
  }
  .partners-wrapper {
    border-radius: 40px;
    padding: 3rem 1.5rem;
  }
  .partners-wrapper h2 {
    font-size: 2rem;
  }
  .partners-wrapper p {
    font-size: 1rem;
  }
  .partner-logos {
    flex-direction: column;
    gap: 2rem;
  }
  .partner-logos img {
    max-width: 140px;
  }

  .boxes-section {
    grid-template-columns: 1fr;
  }

  .cadfi-section .container {
    padding: 0 20px;
    grid-template-columns: 1fr;
  }

  /* Diagonal texts */
  .diagonal-texts {
    flex-direction: column;
    gap: 2rem;
  }
  .top-left-text,
  .bottom-right-text {
    width: 100%;
    text-align: center;
  }

  /* Features */
  .features {
    grid-template-columns: 1fr;
    padding: 0 1rem;
  }
  .feature {
    width: 100%;
    box-sizing: border-box;
  }
  .why-choose-section {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  /* Privacy */
  .privacy-policy-content {
    padding: 2rem;
  }
  .privacy-policy-content h1 {
    font-size: 1.75rem;
  }
  .privacy-policy-content p {
    font-size: 1rem;
  }

  /* Contact */
  .contact-box {
    width: 100%;
    max-width: 400px;
  }
  .contact-main {
    flex-direction: column;
    padding: 2rem 1rem;
    max-width: 100%;
    margin: 0 1rem 2rem;
  }
  .contact-info,
  .contact-form {
    flex: none;
    max-width: 100%;
  }
  .contact-info {
    margin: 0 2rem 2rem 1rem;
    padding: 2rem;
  }
  .contact-info h3,
  .contact-info p {
    text-align: left;
  }
}

/* 📱 Extra-small ≤480px */
@media (max-width: 480px) {
  .boxes-section {
    grid-template-columns: 1fr;
  }
  .cadfi-box h2 { font-size: 20px; }
  .cadfi-box p { font-size: 14px; }
}

/* 📱 Tablette 769–1200px */
@media (min-width: 769px) and (max-width: 1200px) {
  .hero-section {
    height: auto;
    padding: 2rem 1.5rem;
    background-position: center top;
  }
  .hero-logo-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
  }
  .hero-text h1 { font-size: 2.5rem; line-height: 1.3; }
  .hero-text h4 { font-size: 1.1rem; }
  .hero-logo {
    max-width: 300px;
    width: 100%;
    height: auto;
    margin-top: 1.5rem;
  }
  .cta-button {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
  }
  .hero-cta-wrapper { margin-top: 2rem; }

  /* Testimonials */
  .testimonial-prev { transform: translate(-40%, -50%); }
  .testimonial-next { transform: translate(40%, -50%); }
  .testimonial { flex: 0 0 calc((100% - 16px) / 2); }
}

/* 📱 Arc section ≤992px */
@media (max-width: 992px) {
  .arc-layout {
    flex-direction: column;
    gap: 2rem;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
  }
  .arc-column {
    width: 100%;
    max-width: 100%;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
  }
  .arc-column .arc-item {
    transform: none;
    width: 100%;
  }
  .arc-item {
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border-radius: 12px;
    padding: 1.5rem;
    opacity: 2;
    animation: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  }
  .arc-item h3 { font-size: 1.2rem; }
  .arc-item p { font-size: 0.95rem; line-height: 1.5; }
  .arc-center img {
    max-width: 80%;
    height: auto;
    margin: 1rem 0;
  }
  .made-in-quebec-section {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
}

/* 🖥️ Header ≤1200px */
@media (max-width: 1200px) {
  .header-container {
    justify-content: center;
  }
  .logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    width: auto;
  }
  .mobile-menu-icon { display: flex; }
  .nav-container {
    display: none;
    width: 100%;
    padding: 1rem 0;
  }
  .nav-container.active {
    display: flex;
    position: absolute;
    top: 80px; left: 0; right: 0;
    background: #001952;
    flex-direction: column;
    padding: 1rem;
    z-index: 999;
  }
  .nav-links-header {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 0;
  }
  .nav-links-header a.nav-link-header {
    display: block;
    color: white;
    font-size: 1.2rem;
    width: 100%;
    text-align: center;
  }
  .nav-links-header .cta-button {
    width: 100%;
    margin-top: 1rem;
  }
  .overlay.active { display: block; }
}

/* 🖥️ Desktop large ≥1201px */
@media (min-width: 1201px) {
  .header-container {
    justify-content: space-between;
  }
  .nav-container {
    display: block;
    position: static;
    background: none;
  }
  .nav-links-header {
    flex-direction: row;
    gap: 2.5rem;
    padding: 0;
  }
  .mobile-menu-icon,
  .overlay {
    display: none;
  }
  .nav-container.active {
    display: block;
  }
  .testimonial-prev { transform: translate(-70%, -50%); }
  .testimonial-next { transform: translate(70%, -50%); }
}
