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

:root {
  --primary: #2C3E50;
  --accent-gold: #F39C12;
  --accent-green: #27AE60;
  --accent-red: #E74C3C;
  --text-primary: #34495E;
  --text-light: #7F8C8D;
  --bg-light: #ECF0F1;
  --white: #FFFFFF;
}

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

html {
  scroll-behavior: smooth;
}

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

h1, h2, h3 {
  font-family: 'Lora', serif;
  color: var(--primary);
  margin-bottom: 1.5rem;
  font-weight: 700;
}

h1 {
  font-size: 3rem;
  line-height: 1.2;
  text-align: center;
}

h2 {
  font-size: 2.2rem;
  line-height: 1.3;
}

h3 {
  font-size: 1.4rem;
  line-height: 1.3;
  color: var(--primary);
}

p {
  margin-bottom: 1rem;
  font-size: 1.05rem;
  color: var(--text-primary);
}

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  transition: all 0.3s ease;
  padding: 1rem 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

header.scrolled {
  background-color: rgba(255, 255, 255, 1);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

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

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

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

main {
  margin-top: 80px;
  padding: 0;
}

section {
  padding: 100px 0;
}

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

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

.full-width {
  width: 100%;
  padding-left: 0;
  padding-right: 0;
}

.hero {
  background: linear-gradient(135deg, rgba(44,62,80,0.85), rgba(243,156,18,0.1)), url('images/img-accueil.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--white);
  text-align: center;
  padding: 150px 2rem;
  margin-top: 80px;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 1rem;
  font-size: 2.8rem;
}

.hero p {
  color: rgba(255,255,255,0.95);
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.section-bg-accent {
  background-color: var(--accent-gold);
  color: var(--white);
}

.section-bg-accent h2,
.section-bg-accent h3 {
  color: var(--white);
}

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

.row {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.row-2col {
  grid-template-columns: 1fr 1fr;
}

.row-2col-img-right {
  grid-template-columns: 1fr 1fr;
}

.row-2col-img-left {
  grid-template-columns: 1fr 1fr;
}

.content-block {
  padding: 2rem;
}

.image-block {
  overflow: hidden;
  border-radius: 8px;
}

.image-block img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.image-block:hover img {
  transform: scale(1.05);
}

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

.card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  transform: translateY(-5px);
}

.card-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-content {
  padding: 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-content h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.card-content p {
  flex-grow: 1;
  margin-bottom: 1.5rem;
}

.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  background-color: var(--accent-gold);
  color: var(--white);
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn:hover {
  background-color: #E67E22;
  box-shadow: 0 6px 16px rgba(243,156,18,0.3);
  transform: translateY(-2px);
}

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

.btn-secondary:hover {
  background-color: #229954;
  box-shadow: 0 6px 16px rgba(39,174,96,0.3);
}

.faq-item {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--bg-light);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  font-size: 1.1rem;
}

.faq-question::before {
  content: '►';
  margin-right: 0.8rem;
  transition: transform 0.3s ease;
  display: inline-block;
  width: 20px;
}

.faq-item.active .faq-question::before {
  transform: rotate(90deg);
}

.faq-answer {
  display: none;
  color: var(--text-primary);
  padding-left: 28px;
  line-height: 1.8;
}

.faq-item.active .faq-answer {
  display: block;
}

footer {
  background-color: var(--primary);
  color: var(--white);
  padding: 4rem 2rem 2rem;
  margin-top: 100px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-section h3 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-section p {
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: var(--accent-gold);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

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

.disclaimer-banner {
  background-color: var(--accent-red);
  color: var(--white);
  padding: 1rem 2rem;
  text-align: center;
  font-weight: 500;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.disclaimer-section {
  background-color: var(--bg-light);
  padding: 3rem 2rem;
  border-left: 4px solid var(--accent-gold);
  margin: 3rem 0;
}

.disclaimer-section h3 {
  margin-top: 0;
}

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

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

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid var(--bg-light);
  border-radius: 4px;
  font-family: 'Open Sans', sans-serif;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-gold);
  background-color: rgba(243,156,18,0.05);
}

.form-disclaimer {
  background-color: rgba(243,156,18,0.1);
  padding: 1rem;
  border-radius: 4px;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  animation: fadeIn 0.3s ease;
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  background-color: var(--white);
  padding: 2.5rem;
  border-radius: 8px;
  max-width: 700px;
  max-height: 90vh;
  overflow-y: auto;
  width: 95%;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-close {
  float: right;
  font-size: 2rem;
  font-weight: bold;
  color: var(--primary);
  cursor: pointer;
  transition: color 0.3s ease;
  background: none;
  border: none;
  padding: 0;
  width: 30px;
  height: 30px;
}

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

.modal-content h2 {
  clear: both;
  margin-top: 1rem;
}

.modal-content ol,
.modal-content ul {
  margin-left: 2rem;
  margin-bottom: 1rem;
}

.modal-content li {
  margin-bottom: 0.8rem;
}

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

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

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

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

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

.cookie-btn-accept {
  background-color: var(--accent-gold);
  color: var(--white);
}

.cookie-btn-accept:hover {
  background-color: #E67E22;
}

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

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

.cookie-btn-more {
  background-color: transparent;
  color: var(--accent-gold);
  border: 1px solid var(--accent-gold);
}

.cookie-btn-more:hover {
  background-color: rgba(243,156,18,0.1);
}

.success-message {
  display: none;
  position: fixed;
  top: 100px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--accent-green);
  color: var(--white);
  padding: 1.5rem 2rem;
  border-radius: 4px;
  z-index: 2001;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    transform: translate(-50%, -100%);
    opacity: 0;
  }
  to {
    transform: translate(-50%, 0);
    opacity: 1;
  }
}

.success-message.show {
  display: block;
}

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

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.1rem;
  }

  .header-container {
    flex-direction: column;
    gap: 1rem;
  }

  nav a {
    margin-left: 1rem;
    font-size: 0.85rem;
  }

  .hero {
    padding: 80px 1rem;
    margin-top: 60px;
  }

  main {
    margin-top: 60px;
  }

  header {
    padding: 0.8rem 0;
  }

  section {
    padding: 60px 0;
  }

  .row-2col {
    grid-template-columns: 1fr;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

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

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

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

  .modal-content {
    padding: 1.5rem;
    margin: 1rem;
  }
}
