/* Variables globales */
:root {
  /* Couleurs principales */
  --header-color: #f2b88d;      /* Couleur d'en-tête */
  --primary: #e19b6c;          /* Version plus foncée pour les accents */
  --secondary: #8fd1d3;        /* Turquoise clair complémentaire */
  --accent: #7c6355;          /* Brun chaleureux pour le contraste */
  --background: #faf6f2;      /* Fond légèrement teinté */

  /* Variations de gris */
  --text-dark: #333333;
  --text-medium: #666666;
  --text-light: #999999;
}

/* Global Styles */
body {
  font-family: 'Arial', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #fff;
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 {
  font-family: 'Arial', sans-serif;
  font-weight: bold;
  letter-spacing: -0.02em;
}

a {
  text-decoration: none;
  color: var(--primary);
  transition: color 0.3s ease;
}

a:hover {
  color: var(--accent);
}

/* Header Styles */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 50px;
  background-color: var(--header-color);
  color: white;
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  height: 100px;
}

.logo {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo img {
  width: 250px;
  height: auto;
  margin: 0;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

nav a {
  color: white;
  font-weight: bold;
  font-size: 1em;
  transition: color 0.3s ease;
}

nav a:hover {
  color: var(--background);
}

/* Main Container */
main.container {
  max-width: 900px;
  margin: 40px auto;
  padding: 40px 20px;
  background-color: white;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Typography */
h2 {
  font-size: 2.5em;
  color: #e19b6c;
  text-align: center;
  margin-bottom: 30px;
}

h3 {
  font-size: 1.8em;
  color: var(--text-dark);
  margin-bottom: 20px;
}

p {
  font-size: 1.2em;
  color: var(--text-medium);
  line-height: 1.8;
  margin-bottom: 20px;
  text-align: justify;
}

/* Contact Section */
.contact {
  padding: 40px 20px;
  background-color: var(--header-color);
  color: white;
  width: 100%;
  margin-bottom: 0;
}

.contact-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.logo-and-description {
  flex: 1;
}

.contact-logo {
  font-size: 2.5em;
  font-weight: bold;
  margin-bottom: 15px;
}

.contact-description {
  font-size: 1.2em;
  line-height: 1.6;
}

.social-links-contact {
  margin-top: 20px;
  display: flex;
  gap: 15px;
}

.social-icon {
  width: 40px;
  height: 40px;
  filter: invert(100%);
  transition: transform 0.3s ease;
}

.social-icon:hover {
  transform: scale(1.1);
}

.contact-info {
  flex: 1;
  text-align: right;
}

.contact-info h2 {
  font-size: 2em;
  color: white;
  margin-bottom: 20px;
}

.contact-info p {
  color: white;
  font-size: 1.1em;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.contact-icon {
  width: 24px;
  height: 24px;
  margin-right: 10px;
  filter: invert(100%);
  transition: transform 0.3s ease;
}

/* Footer */
.footer {
  background-color: var(--header-color);
  color: white;
  padding: 10px 20px;
  width: 100%;
  margin-top: 0;
}

.footer-content {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.footer-content p {
  color: white;
  margin: 0;
  font-size: 0.9em;
}

.legal-link {
  color: white;
  font-size: 0.9em;
  margin-left: 10px;
  transition: color 0.3s ease;
}

.legal-link:hover {
  color: var(--background);
}


/* Responsive Design */
@media (max-width: 768px) {
  body, html {
    font-size: 3vw;
    background-color: #fff;
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Assurez-vous que le débordement horizontal est bien caché */
    box-sizing: border-box;
  }

  h1 {
    font-size: 2rem; /* Taille de police relative à la taille de base du document */
  }

  header {
    display: flex;
    justify-content: center; /* Centre le logo horizontalement */
    align-items: center; /* Centre verticalement */
    padding: 10px 20px;
    background-color: #f2b88d;
    position: relative; /* Nécessaire pour positionner les icônes de réseaux sociaux */
  }

  .logo {
    width: 150px; /* Réduit la taille du logo pour mobile */
    display: block;
  }

  .social-links {
    position: absolute;
    right: 20px;
    top: 35px;
  }

  .social-links a {
    margin: 0 7px;
  }

  .social-icon {
    width: 25px;
    height: auto;
    transition: transform 0.3s ease;
  }

  .social-icon:hover {
    transform: scale(1.2);
  }

  main.container {
    padding: 20px 15px;
  }

  h2 {
    font-size: 2em;
  }

  h3 {
    font-size: 1.5em;
  }

  p {
    font-size: 1.1em;
  }
}

/* Contact Section for Mobile */
@media (max-width: 768px) {
  .contact {
    padding: 20px 20px;
    background-color: #f2b88d;
    color: #f1f1f1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
  }

  .contact-container {
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .logo-and-description {
    margin-bottom: 20px;
  }

  .social-links-contact {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 20px;
  }

  /* Contacts section */
  .contact-info {
    margin-top: 10px; /* Add space between description and contact info */
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px; /* Add spacing between email and phone */
    align-items: center;
    justify-content: center;
  }

  .contact-info h2 {
    margin-bottom: 10px; /* Reduce space for better balance */
  }

  .contact-info p {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1em;
  }

  .contact-info p img.contact-icon {
    margin-right: 8px; /* Add space between the icon and the text */
    width: 20px;
    height: 20px;
  }

  .contact-info p:first-child {
    margin-bottom: 5px; /* Reduce space between email and phone number */
  }

  .contact-info p:nth-child(2) {
    margin-top: 0; /* Make sure there's no extra margin */
  }
}

/* Footer Section for Mobile */
@media (max-width: 768px) {
  .footer {
    padding: 10px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.9em;
  }

  .footer-content {
    display: flex;
    justify-content: center;
    width: 100%;
    text-align: center;
    flex: 1;
  }

  .legal-link {
    margin-top: 10px;
  }

  .legal-link:hover {
    color: #c89d56;
  }
}

