/* Polices */
@font-face {
  font-family: 'Phudu';
  src: url('assets/fonts/Phudu-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: 'Phudu';
  src: url('assets/fonts/Phudu-ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
}

/* Variables */
:root {
  --main-color: #e63990;
  --accent-color: #f9f9f9;
  --text-color: #333;
  --background-color: #fff;
}

/* Structure de base */
html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  font-size: 16px;
  color: var(--text-color);
  background: var(--background-color);
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  width: 100%;
  max-width: 90%;
  margin: 1em auto 2em;
  font-family: Arial, Helvetica, sans-serif;
  color: #0074a2;
}

h1,
h2,
h3 {
  font-family: 'Phudu', sans-serif;
  font-weight: 800;
  margin-bottom: 0.5em;
  color: #e63990;
}

p {
  margin-bottom: 1em;
}

/* Header */
header {
  background: var(--main-color);
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.header-container {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 0.5em 1em;
  justify-content: space-between;
}

.logo-container {
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
}

.logo-container img.logo {
  width: 80px;
  height: auto;
  margin-right: 0.7em;
}

.site-title {
  font-size: 1.5em;
  color: #fff;
  font-weight: bold;
}

header nav a {
  margin-left: 1.5em;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.1em;
  position: relative;
  transition: color 0.3s;
}

header nav a::after {
  content: '';
  display: block;
  height: 2px;
  background: #fff;
  width: 0;
  transition: width 0.3s;
  position: absolute;
  bottom: -4px;
  left: 0;
}

header nav a:hover::after,
header nav a.active::after {
  width: 100%;
}

header nav a:hover,
header nav a.active {
  opacity: 0.9;
}

/* Boutons */
.button {
  display: inline-block;
  background: var(--main-color);
  color: #fff;
  padding: 0.7em 1.2em;
  border-radius: 4px;
  text-decoration: none;
  margin-top: 1em;
  transition: background 0.3s;
}

.button:hover {
  background: #cc2d7d;
}

/* Sections générales */
.hero,
.about,
.whyus,
.testimonial {
  background: var(--accent-color);
  padding: 2em;
  border-radius: 8px;
  margin-top: 3em;
}

.hero {
  text-align: center;
}

.hero h1,
.hero p {
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
}

.hero-background {
  position: relative;
  background-image: url('assets/bonbons-des-vosges.jpg');
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  margin: 2em 0;
  text-align: center;
  color: #fff;
  padding: 4em 1em;
  overflow: hidden;
}

.hero-background::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 0;
}

.hero-background > * {
  position: relative;
  z-index: 1;
}

/* Gallery */
.gallery {
  background: #f9f9f9;
  padding: 2em 1em;
  border-radius: 8px;
  margin-top: 3em;
}

.gallery-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1em;
}

.gallery-container img {
  width: 100%;
  height: 200px;
  border-radius: 8px;
  object-fit: cover;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-container a:hover img {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

/* Pourquoi nous choisir */
.whyus {
  background: var(--accent-color);
  padding: 2em;
  border-radius: 8px;
  margin-top: 3em;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.whyus .intro-text {
  max-width: 700px;
  margin: 0 auto 2em;
  text-align: center;
}

.whyus h2 {
  margin-bottom: 0.5em;
  text-align: center;
}

.whyus-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 2em;
  justify-content: center;
}

.whyus-card {
  background: white;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 1.5em;
  max-width: 300px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.whyus-card:hover {
  transform: translateY(-5px);
}

.whyus-card i {
  font-size: 2em;
  color: var(--main-color);
  margin-bottom: 0.5em;
}

/* Partenaires */
.partner-block {
  display: flex;
  flex-wrap: wrap;
  gap: 2em;
  margin-bottom: 3em;
  align-items: center;
}

.partner-text {
  flex: 1 1 60%;
}

.partner-logo {
  flex: 1 1 250px;
  text-align: center;
  background: #fff;
  padding: 1em;
  border-radius: 12px;
}

.partner-logo img {
  max-width: 100%;
  height: auto;
}

.partner-text a {
  color: var(--main-color);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px dotted var(--main-color);
  transition: color 0.3s, border-bottom-color 0.3s;
}

.partner-text a:hover {
  color: #cc2d7d;
  border-bottom-color: #cc2d7d;
}

.pink-background {
  background-color: #e63990;
}

.cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-top: 3em;
}

/* Footer */
footer {
  background: var(--main-color);
  color: #fff;
  text-align: center;
  padding: 1em;
  font-size: 0.9em;
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-contact {
  margin-top: 0.5em;
}

.footer-container p {
  margin: 0.3em 0;
  line-height: 1.4;
}

.footer-container i {
  margin-right: 0.4em;
  font-size: 1em;
}

.footer-container a {
  color: #fff;
  text-decoration: none;
}

.footer-container a:hover {
  text-decoration: underline;
}

.footer-social {
  margin-top: 1em;
}

.footer-social a {
  color: #fff;
  margin: 0 0.5em;
  font-size: 1.3em;
  transition: opacity 0.3s;
}

.footer-social a:hover {
  opacity: 0.8;
}
