
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.contact-title {
  text-align: center;
  color: #ff7f0e;
  margin-bottom: 30px;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  background-color: #f8f9fa;
  color: #333;
}

header.fixed-header {
  position: fixed;
  top: 0;
  width: 100%;
  background: white;
  border-bottom: 1px solid #ddd;
  z-index: 1000;
}

.container.header-content {
  max-width: 1200px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
}

.logo {
  height: 50px;
}

/* Style général pour tous les liens et boutons dans le nav */
nav a, nav button {
  margin: 0 10px;
  text-decoration: none;
  color: #333;
  font-weight: 500;
  background: none;
  border: none;
  cursor: pointer;
}

/* Boutons spéciaux stylisés en orange */
a.request-script,
button.request-script {
  all: unset;
  background-color: #ff7f0e;
  color: white;
  padding: 10px 20px;
  border-radius: 4px;
  font-weight: bold;
  font-size: 16px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  display: inline-block;
  transition: background-color 0.3s ease;
  width: auto;          /* overrides any default width */
  max-width: 200px;     /* cap its width */
  margin: 0 auto;       /* center it if it's a block element */
}

a.request-script:hover,
button.request-script:hover {
    background-color: darkorange;
    transform: scale(1.03);
}

.banner {
  margin-top: 80px;
  position: relative;
  text-align: center;
  color: white;
}

.banner img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  filter: brightness(60%);
}

.banner-text {
  position: absolute;
  top: 50%;
  left: 60%;
  transform: translate(-50%, -50%);
  max-width: 90%;
  text-align: left;
}

.services {
  max-width: 1200px;
  margin: 60px auto;
  padding: 20px;
  display: flex;
  gap: 20px;
  justify-content: space-around;
}

.service-box {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  flex: 1;
  min-width: 250px;
  margin-bottom: 40px;
}

.clients {
  max-width: 1200px;
  margin: 40px auto;
  padding: 20px;
  text-align: center;
}

.client-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 30px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px 0;
}

.client-row img {
  max-height: 80px;
  filter: grayscale(100%);
  opacity: 0.8;
  transition: 0.3s;
}

.client-row img:hover {
  opacity: 1;
  filter: grayscale(0%);
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 40px;
  background-color: #222;
  color: #fff;
}

.footer-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  margin: 10px;
}

.footer-logo {
  max-width: 300px;
  height: auto;
}


footer ul {
  list-style: none;
}

footer ul li {
  margin: 8px 0;
}

.footer-column:first-child {
  justify-content: flex-start; /* <<< this ensures your logo column is top-aligned */
}

form {
  max-width: 700px;
  margin: 0 auto;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

form label {
  display: flex;
  flex-direction: column;
  font-weight: bold;
  color: #333;
}

form input,
form textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 16px;
}

form input {
  height: 48px;
}

form select {
  width: 100%;
  height: 48px;
  padding: 0 15px;
  margin-bottom: 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: #fff;
  font-size: 14px;
  color: #333;
}

form textarea {
  min-height: 150px;
  resize: vertical; /* autorise l'utilisateur à agrandir vers le bas */
}


.form-consent {
  margin-top: 1px;
  margin-bottom: 1px;
  display: flex;                  /* NEW: align checkbox and label side-by-side */
  align-items: center;            /* NEW: fix vertical misalignment */
  flex-wrap: wrap;                /* Allow wrapping if the text is long */
  gap: 8px;                       /* Space between checkbox and text */
}

.form-consent input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;                      /* Reset any weird margins */
  transform: scale(0.9);         /* NEW: make it slightly smaller */
}

.form-consent label {
  display: inline;
  font-size: 14px;
}

.form-consent a {
  color: #ff7f0e;
  text-decoration: underline;
}

.form-consent a:hover {
    color: darkorange;
}

.form-row {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap; /* allows wrapping on small screens */
}

.form-row input {
  flex: 1;
  min-width: 200px;
  padding: 8px;
  font-size: 14px;
}


.consent-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
  font-size: 14px;
  flex-wrap: wrap;
}

.consent-checkbox input[type="checkbox"] {
  transform: scale(0.9);
  margin: 0;
}

.consent-checkbox a {
  color: orange;
  text-decoration: underline;
}


.main-content {
  margin-top: 120px;
}

.success-message {
  max-width: 600px;
  margin: 100px auto;
  padding: 40px;
  text-align: center;
  border: 2px solid #d4edda;
  background-color: #f6fffa;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.success-message h1 {
  color: #28a745;
  margin-bottom: 10px;
}

.success-message .check-icon {
  font-size: 48px;
  color: #28a745;
  margin-bottom: 20px;
}

.about-section {
  max-width: 800px;
  margin: 40px auto;
  padding: 0 20px;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  text-align: justify;
}

.about-section p {
  margin-bottom: 20px;
}

.about-photo {
  float: left;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  margin: 4px 28px 12px 0;
}

@media (max-width: 600px) {
  .about-photo {
    float: none;
    display: block;
    margin: 0 auto 24px;
  }
}

.service-section {
  max-width: 1000px;
  margin: 40px auto;
  padding: 0 20px;
}

.service-box {
  align-items: center;
  gap: 20px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.service-box img {
  width: 280px;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

/* EXCEPTION: override if using full-width layout */
.full-width-image img {
  width: 100% !important;
  max-height: 320px;
}

.service-box h2 {
  color: #ff7f0e;
  margin-top: 0;
}

.service-box p {
  font-size: 16px;
  line-height: 1.6;
}

.client-logos {
  margin-top: 20px;
  display: flex;
  gap: 20px;
  align-items: center;
}

.client-logo {
  height: 50px;
  width: auto;
  transition: transform 0.3s ease;
}

.client-logo:hover {
  transform: scale(1.05);
}

.service-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

.service-content {
  margin-top: 20px;
  font-size: 16px;
  line-height: 1.7;
  text-align: justify;
}

.service-content h2 {
  color: #ff7f0e;
  margin-bottom: 15px;
}

.styled-list {
  list-style: none;
  padding-left: 0;
  margin: 20px 0;
}

.styled-list li {
  margin-bottom: 10px;
  padding-left: 24px;
  position: relative;
}

.styled-list li::before {
  content: '✔';
  position: absolute;
  left: 0;
  color: #ff7f0e;
  font-weight: bold;
}

.client-logos {
  margin-top: 24px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.client-logo {
  height: 28px;
  object-fit: contain;
  opacity: 0.85;
  transition: transform 0.3s ease;
}

.client-logo:hover {
  transform: scale(1.05);
  opacity: 1;
}

service-box.full-width-image {
    display: block;
    width: 100%;
}

.service-header-image {
    display: block;
    width: 100%;
    height: auto;
    max-height: 240px;       /* optional: keeps it neat */
    object-fit: cover;       /* ensures good cropping */
    border-radius: 8px;      /* optional: matches site style */
    margin-bottom: 20px;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px; /* again, adjust this value */
}

footer a {
  color: white; /* makes links visible */
  text-decoration: none; /* optional, removes underline */
}

footer a:hover {
  text-decoration: underline; /* optional, adds underline on hover */
}

.flash-message {
  margin: 10px auto;
  max-width: 600px;
  padding: 15px;
  background-color: #fff3cd;
  color: #856404;
  border: 1px solid #ffeeba;
  border-radius: 4px;
  text-align: center;
}

@media (max-width: 768px) {
  .client-row {
    flex-direction: row;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
  }

  .client-row img {
    max-width: 40%;
    height: auto;
    margin: 10px 0;
  }

  .clients h1,
  .clients h3 {
    font-size: 20px;
    margin-bottom: 10px;
  }
}

@media (max-width: 768px) {
  .banner-text {
    top: 60%;                 /* descend un peu le texte */
    left: 50% !important;     /* recentre horizontalement */
    transform: translate(-50%, -50%);
    text-align: center !important;
    font-size: 16px;
  }

  .banner-text h1 {
    font-size: 24px;
  }

  .banner-text p {
    font-size: 14px;
  }

  .banner img {
    max-height: 250px;
    object-fit: cover;
  }
}

/* Projects page */
.projects {
  max-width: 900px;
  margin: 0 auto 60px;
  padding: 0 20px;
  color: #333;
}

.projects-intro {
  text-align: center;
  font-size: 17px;
  margin-bottom: 40px;
}

.project-card {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 32px;
  margin-bottom: 32px;
  line-height: 1.6;
}

.project-figure {
  margin: -32px -32px 24px;
}

.project-image {
  display: block;
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
}

.project-figure figcaption {
  padding: 4px 32px 0;
  font-size: 11px;
  color: #999;
  text-align: right;
}

.project-figure figcaption a {
  color: inherit;
}

.project-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: bold;
  color: #ff7f0e;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.project-card h2 {
  margin: 6px 0 4px;
  font-size: 24px;
  color: #222;
}

.project-meta {
  margin: 0 0 20px;
  font-size: 14px;
  color: #666;
}

.project-card h3 {
  margin: 20px 0 8px;
  font-size: 16px;
  color: #222;
}

.project-card .styled-list {
  margin: 0;
}

.project-result {
  margin-top: 24px;
  padding: 4px 20px 8px;
  background: #fff6ee;
  border-left: 4px solid #ff7f0e;
  border-radius: 0 6px 6px 0;
}

.project-result h3 {
  margin-top: 12px;
}

.project-result p {
  margin: 0 0 8px;
}

.project-links {
  margin: 20px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.project-links a {
  color: #ff7f0e;
  font-weight: bold;
  text-decoration: none;
}

.project-links a:hover {
  text-decoration: underline;
}

.projects-more-heading {
  margin-top: 48px;
  color: #222;
}

.projects-cta {
  margin-top: 48px;
  padding: 32px;
  text-align: center;
  background: #222;
  color: #fff;
  border-radius: 8px;
}

.projects-cta h2 {
  margin-top: 0;
}

@media (max-width: 600px) {
  .project-card {
    padding: 20px;
  }

  .project-figure {
    margin: -20px -20px 20px;
  }

  .project-image {
    height: 180px;
  }

  .project-figure figcaption {
    padding: 4px 20px 0;
  }

  .project-card h2 {
    font-size: 20px;
  }
}
