@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&family=Open+Sans:wght@400;600;700&display=swap');

:root {
  --primary-color: #286090;
  --accent-1: #6DBAD6;
  --accent-2: #A5D8DD;
  --bg-light: #F0F4F8;
  --bg-dark: #286090;
  --text-dark: #333333;
  --text-light: #666666;
  --white: #FFFFFF;
}

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

html, body {
  font-family: 'Open Sans', sans-serif;
  color: var(--text-dark);
  background-color: var(--white);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}

h1 {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 2rem;
}

h2 {
  font-size: 2rem;
  line-height: 1.3;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.5rem;
  line-height: 1.4;
  margin-bottom: 1rem;
}

p {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  color: var(--text-light);
}

body {
  padding-top: 80px;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--white);
  border-bottom: 1px solid #E8E8E8;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary-color);
  font-family: 'Montserrat', sans-serif;
}

.logo img {
  width: 40px;
  height: 40px;
  margin-right: 0.75rem;
}

nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

nav a {
  text-decoration: none;
  color: var(--primary-color);
  font-weight: 500;
  transition: color 0.3s ease;
  font-size: 0.95rem;
}

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

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 100px 0;
}

.hero {
  background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
  margin-top: -80px;
  padding-top: 80px;
}

.hero-content h1 {
  color: var(--white);
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-content p {
  color: var(--white);
  font-size: 1.3rem;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.introduction {
  background-color: var(--white);
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.intro-grid img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.nutriments {
  background-color: var(--bg-light);
}

.nutriments-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.nutrient-card {
  background-color: var(--white);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: box-shadow 0.3s ease;
}

.nutrient-card:hover {
  box-shadow: 0 8px 16px rgba(0,0,0,0.12);
}

.nutrient-card h3 {
  color: var(--primary-color);
}

.alimentation {
  background-color: var(--white);
}

.alim-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.alim-grid img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.alim-grid:nth-child(2) {
  direction: rtl;
}

.alim-grid:nth-child(2) > * {
  direction: ltr;
}

.types {
  background-color: var(--bg-light);
}

.types-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.type-card {
  background-color: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
}

.type-card:hover {
  transform: translateY(-8px);
}

.type-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.type-card-content {
  padding: 1.5rem;
}

.type-card h3 {
  color: var(--primary-color);
  margin-top: 0;
}

.vitalite {
  background-color: var(--white);
}

.vitalite-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.vitalite-grid img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.soin-peau {
  background-color: var(--bg-light);
}

.soin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.soin-grid img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.hydratation {
  background-color: var(--white);
  padding: 100px 0;
}

.hydratation h2 {
  text-align: center;
  margin-bottom: 3rem;
}

.hydratation-content {
  max-width: 900px;
  margin: 0 auto;
}

.genres {
  background-color: var(--white);
}

.genres-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.genres-grid img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.faq {
  background-color: var(--bg-light);
}

.faq h2 {
  text-align: center;
  margin-bottom: 3rem;
}

.faq-container {
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  background-color: var(--white);
  margin-bottom: 1rem;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.faq-question {
  padding: 1.5rem;
  cursor: pointer;
  background-color: var(--white);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: var(--primary-color);
  transition: background-color 0.3s ease;
}

.faq-question:hover {
  background-color: var(--bg-light);
}

.faq-toggle {
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.faq-toggle.active {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background-color: var(--bg-light);
}

.faq-answer.active {
  max-height: 500px;
  padding: 0 1.5rem 1.5rem 1.5rem;
}

.disclaimer-block {
  background-color: #FFF9F0;
  border-left: 4px solid var(--accent-1);
  padding: 2rem;
  margin: 3rem 0;
  border-radius: 4px;
}

.disclaimer-block h3 {
  color: var(--primary-color);
  margin-top: 0;
}

.form-section {
  background-color: var(--bg-light);
}

.form-section h2 {
  text-align: center;
  margin-bottom: 2rem;
}

.form-container {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--primary-color);
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #DDD;
  border-radius: 4px;
  font-family: 'Open Sans', sans-serif;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(40, 96, 144, 0.1);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  background-color: var(--primary-color);
  color: var(--white);
  text-decoration: none;
  border: none;
  border-radius: 4px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.btn:hover {
  background-color: var(--accent-1);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(40, 96, 144, 0.2);
}

.btn-secondary {
  background-color: var(--accent-2);
  color: var(--primary-color);
}

.btn-secondary:hover {
  background-color: var(--accent-1);
}

footer {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 3rem 0 1rem;
}

footer .container {
  margin-bottom: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-section p,
.footer-section a {
  color: rgba(255,255,255,0.9);
  font-size: 0.95rem;
  line-height: 1.8;
}

.footer-section a {
  display: block;
  text-decoration: none;
  transition: color 0.3s ease;
  cursor: pointer;
}

.footer-section a:hover {
  color: var(--accent-1);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 2rem;
  text-align: center;
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
}

.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  overflow-y: auto;
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background-color: var(--white);
  border-radius: 8px;
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem;
  border-bottom: 1px solid #EEE;
  background-color: var(--bg-light);
}

.modal-header h2 {
  margin: 0;
}

.close-modal {
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--primary-color);
  transition: color 0.3s ease;
}

.close-modal:hover {
  color: var(--accent-1);
}

.modal-body {
  padding: 2rem;
}

.modal-body img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  max-height: 300px;
  object-fit: cover;
}

.modal-body h3 {
  color: var(--primary-color);
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--primary-color);
  color: var(--white);
  padding: 1.5rem 2rem;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
  z-index: 999;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.cookie-banner.hidden {
  display: none;
}

.cookie-text {
  flex: 1;
  font-size: 0.95rem;
}

.cookie-buttons {
  display: flex;
  gap: 1rem;
}

.cookie-btn {
  padding: 0.5rem 1.5rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.cookie-accept {
  background-color: var(--accent-1);
  color: var(--primary-color);
}

.cookie-accept:hover {
  background-color: var(--accent-2);
}

.cookie-reject {
  background-color: transparent;
  color: var(--white);
  border: 1px solid var(--white);
}

.cookie-reject:hover {
  background-color: rgba(255,255,255,0.1);
}

.cookie-learn {
  background-color: transparent;
  color: var(--white);
  border: 1px solid var(--white);
}

.cookie-learn:hover {
  background-color: rgba(255,255,255,0.1);
}

.form-disclaimer {
  background-color: #F5F5F5;
  padding: 1rem;
  border-radius: 4px;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-light);
  text-align: center;
  border-left: 3px solid var(--accent-1);
}

.thank-you-message {
  display: none;
  background-color: #E8F5E9;
  border-left: 4px solid #4CAF50;
  padding: 1.5rem;
  border-radius: 4px;
  text-align: center;
  color: #2E7D32;
  font-weight: 600;
}

.thank-you-message.active {
  display: block;
}

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.25rem;
  }

  nav {
    gap: 1rem;
  }

  nav a {
    font-size: 0.85rem;
  }

  section {
    padding: 60px 0;
  }

  .intro-grid,
  .alim-grid,
  .vitalite-grid,
  .soin-grid,
  .genres-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .nutriments-grid,
  .types-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .cookie-banner {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }

  .cookie-buttons {
    width: 100%;
    flex-wrap: wrap;
  }

  .cookie-btn {
    flex: 1;
    min-width: 100px;
  }

  .modal-content {
    width: 95%;
  }

  .modal-header {
    padding: 1.5rem;
  }

  .modal-body {
    padding: 1.5rem;
  }

  header .container {
    padding: 0.75rem 0;
  }

  .logo {
    font-size: 1.2rem;
  }

  .logo img {
    width: 35px;
    height: 35px;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.25rem;
  }

  h3 {
    font-size: 1rem;
  }

  p {
    font-size: 0.95rem;
  }

  nav {
    gap: 0.5rem;
  }

  nav a {
    font-size: 0.75rem;
  }

  section {
    padding: 40px 0;
  }

  .hero-content h1 {
    font-size: 1.5rem;
  }

  .hero-content p {
    font-size: 0.9rem;
  }

  .cookie-banner {
    padding: 0.75rem;
  }

  .cookie-text {
    font-size: 0.85rem;
  }

  .cookie-btn {
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
  }

  .disclaimer-block {
    padding: 1rem;
  }
}
