:root {
  /* Couleurs principales */
  --primary-color: #383838;           /* Orange vif */
  --primary-color-dark: #383838;      /* Variante plus sombre pour hover/focus */
  --primary-text-color: #fff;      /* Texte principal sur fond clair */

  /* Couleurs secondaires */
  --secondary-color: #06031b;         /* Noir profond */
  --secondary-color-light: #130c42;   /* Variante plus douce pour fonds ou bordures */
  --secondary-text-color: #fbcf23;    /* Jaune pâle pour le texte sur fond sombre */

  /* Couleurs d'accent */
  --accent-color: #FF914C;            /* Orange brûlé pour appels à l'action */
  --accent-color-light: #ffa733;

  /* Couleurs de fond */
  --background-color: #ffffff;         /* Fond principal */
  --background-accent-color: #383838;  /* Fond secondaire (cartes, sections) */
  --surface-color: #494949;             /* Surfaces comme les cartes ou modales */

  /* Couleurs de texte */
  --text-color : #000000;                 /* Noir */
  --text-light-color: #fff;                 /* Blanc */
  --text-accent-color: #FF914C;       /* Orange */

  /* Dimensions */
  --header-height: 110px;
  --max-width-tablet: 768px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: Arial, sans-serif;
  color: var(--primary-color);
  margin-bottom: 10px;
}

header, footer {
  h1, h2, h3, h4, h5, h6 {
  color: var(--primary-text-color);
  }
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: Tahoma, Verdana, sans-serif;
}

body {
  font-family: Tahoma, Verdana, sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

header {
  background-color: var(--background-accent-color);
  color: var(--text-light-color);
  height: var(--header-height);
  display: flex;
  align-items: center;
  padding: 0 20px;
  border-bottom: 2px solid var(--accent-color);

  .header-text {
    text-align: center;
    width: 100%;
  }

  h2 {
    font-weight: normal;
    color: var(--text-accent-color);
    font-size: 1.2rem;
  }
}

ul.inline-list {
  list-style: none;

  li::before {
    content: '-';
    color: var(--primary-text-color);
    margin-right: 0.5em;
  }
}

p {
  margin: 10px 0;
}

button,
a.button {
  border: none;
  padding: 10px 15px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  text-decoration: none;

  &.primary {
    background-color: var(--accent-color);
    color: var(--text-color);
  }

  &.secondary {
    background-color: var(--surface-color);
    color: var(--primary-text-color);
  }

  &:hover {
    opacity: 0.8;
  }
}

input {
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid var(--secondary-color);
  width: 90%;
  border-radius: 5px;
  box-sizing: border-box;
}

textarea {
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid var(--secondary-color);
  width: 90%;
  border-radius: 5px;
  box-sizing: border-box;
  font-family: inherit;
}

.header {
  display: flex;
  align-items: center;
  text-decoration: none;
}

main {
  flex: 1;
  padding: 20px;
  gap: 20px;
}

section {
  background-color: var(--background-color);
  padding: 15px;
  margin-top: 2em;
  display: flex;
  flex-direction: column;
  align-items: center;
}

div.main-content {
  flex: 2 1 60%;
}

.marques {
  display: flex;
  justify-content: center;
  gap: 20px;
  width: 80vw;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
}

.partner-logo {
  max-width: 150px;
  max-height: 80px;
  object-fit: contain;
}

/* Footer styles */

footer {
  background-color: var(--primary-color);
  color: var(--primary-text-color);
  text-align: center;
  padding: 10px;
  font-size: 0.9rem;
  border-top: 2px solid var(--accent-color);
}

/* Responsive design for mobile */
@media (max-width: 768px) {
  main {
    flex-direction: column;
  }

  #illustration h2 {
    font-size: 3rem;
  }

  span.full {
    display: none;
  }
}

/* Responsive header */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    gap: 10px;
    height: auto;
    padding: 0 10px;
    a {
      padding-top: 1.2em;
      padding-bottom: 1.2em;
    }    
  }

  .header {
    justify-content: space-between;
  }
}



/* Card styles */

#presentation ul{
  display: flex;
  width: fit-content;
}

@media (max-width: 768px) {
  #presentation {
    display: none;
  }
}

.carte {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background-color: var(--surface-color);
  color: var(--text-accent-color);
  font-size: 1.2em;
  padding: 1em;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(204, 97, 9, 0.466);
  width: 12em;
  margin: 0 4vw 1.5em;

  & img {
    width: 6em;
  }
}

/* Google reviews block */
.google-reviews {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
  align-items: start;
  justify-items: center;
  max-width: 1200px;
  margin: 0.8rem auto;
}

.g-review {
  width: 100%;
  min-width: 0;
}

.review-card {
  background: var(--background-color);
  border: 1px solid rgba(0,0,0,0.2);
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.2);
  max-width: 360px;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.review-head{
  display: flex;
  background-color: var(--background-accent-color);
  color: var(--text-light-color);
  padding: 0.5em 1em;
  margin-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent-color);
  grid-template-rows: auto;
  gap: 10px;
  border-radius: 8px 8px 0 0;
  align-items: center;
}

.review-avatar{
  width: 48px;
  height: 48px;
  object-fit: cover;
}

.review-meta{
  display:flex;
  flex-direction: column;
  gap: 2px;
}

.review-author{
  font-weight:700;
  color:var(--primary-text-color);
}

.review-rating{
  color:var(--accent-color);
  font-size:0.95rem;
}

.review-time{
  font-size:0.8rem;
  color:var(--text-light-color);
}

.review-text{
  font-size:0.95rem;
  padding: 0 1em;
  line-height:1.3;
  color:var(--text-color);
}

.google-reviews .no-reviews {
  text-align:center;
  color:rgba(0,0,0,0.6);
}

/* Mobile: single column and tighter spacing */
@media (max-width: 768px) {
  .google-reviews {
    grid-template-columns: 1fr;
    gap: 0.8rem;
    padding: 0 8px;
  }

  .review-head {
    background-color: var(--background-accent-color);
    color: var(--text-light-color);
    padding: 0.5em 2em;
    margin-bottom: 0.5rem;
    grid-template-rows: auto;
  }

  /* Limit to 3 reviews on mobile */
  .google-reviews .g-review:nth-child(n+4) {
    display: none;
  }
}

/* Small tablet: two columns */
@media (min-width: 769px) and (max-width: 1024px) {
  .google-reviews {
    grid-template-columns: repeat(2, 1fr);
  }
}