/* 
* Équilibre Fiscal - Style principal
* Version: 1.0
* Palette de couleurs:
* - Fond principal: #F7F2EB (teinte parchemin)
* - Accent: #FF5A5F (rouge baie)
* - Secondaire: #0E1B2C (bleu charbon)
* - Éléments: #FFD275 (miel), #87CBB9 (menthe)
* Polices: "Manrope", "Inter", sans-serif
*/

/* ===== RÉINITIALISATION ET BASE ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  color: #0E1B2C;
  background-color: #F7F2EB;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: #FF5A5F;
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: #0E1B2C;
}

ul {
  list-style: none;
}

/* ===== CONTENEURS ===== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 80px 0;
}

/* ===== TYPOGRAPHIE ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: "Manrope", sans-serif;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 20px;
  color: #0E1B2C;
}

h1 {
  font-size: 3rem;
}

h2 {
  font-size: 2.5rem;
}

h3 {
  font-size: 1.75rem;
}

h4 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 20px;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  position: relative;
  display: inline-block;
  margin-bottom: 15px;
}

.section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -10px;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #FF5A5F;
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.2rem;
  color: #666;
  max-width: 700px;
  margin: 0 auto;
}

.accent {
  color: #FF5A5F;
}

/* ===== BOUTONS ===== */
.btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 30px;
  font-family: "Manrope", sans-serif;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  border: 2px solid transparent;
}

.btn-primary {
  background-color: #FF5A5F;
  color: white;
}

.btn-primary:hover {
  background-color: #0E1B2C;
  color: white;
}

.btn-outline {
  border: 2px solid #0E1B2C;
  color: #0E1B2C;
  background: transparent;
}

.btn-outline:hover {
  background-color: #0E1B2C;
  color: white;
}

.btn-sm {
  padding: 8px 20px;
  font-size: 0.9rem;
}

.btn-block {
  display: block;
  width: 100%;
}

/* ===== HEADER ET NAVIGATION ===== */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(247, 242, 235, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  z-index: 1001;
}

.logo-svg {
  height: 40px;
  width: auto;
}

.menu-toggle {
  display: none;
}

.menu-button {
  display: none;
  cursor: pointer;
  z-index: 1001;
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  background-color: #0E1B2C;
  margin: 5px 0;
  transition: all 0.3s ease;
}

.main-nav ul {
  display: flex;
}

.main-nav li {
  margin: 0 15px;
}

.nav-link {
  color: #0E1B2C;
  font-family: "Manrope", sans-serif;
  font-weight: 600;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0;
  height: 2px;
  background-color: #FF5A5F;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.header-contact {
  display: flex;
  align-items: center;
}

.phone-link {
  color: #0E1B2C;
  font-family: "Manrope", sans-serif;
  font-weight: 600;
}

.phone-link:hover {
  color: #FF5A5F;
}

/* ===== SECTION HERO ===== */
.hero {
  padding-top: 160px;
  padding-bottom: 100px;
  background-color: #0E1B2C;
  color: white;
  position: relative;
  overflow: hidden;
}

.hero-content {
  display: flex;
  align-items: center;
  gap: 40px;
}

.hero-text {
  flex: 1;
}

.hero-title {
  color: white;
  font-size: 3.5rem;
  margin-bottom: 25px;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

.hero-buttons {
  display: flex;
  gap: 20px;
}

.hero-buttons .btn-outline {
  border-color: white;
  color: white;
}

.hero-buttons .btn-outline:hover {
  background-color: white;
  color: #0E1B2C;
}

.hero-image {
  flex: 1;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  line-height: 0;
}

.hero-wave svg {
  width: 100%;
  height: auto;
}

/* ===== SECTION À PROPOS ===== */
.about {
  background-color: #F7F2EB;
}

.about-content {
  display: flex;
  align-items: center;
  gap: 40px;
}

.about-image {
  flex: 1;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.about-text {
  flex: 1;
}

.about-stats {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
  flex: 1;
  min-width: 120px;
  margin: 10px;
  padding: 20px;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-5px);
}

.stat-number {
  display: block;
  font-family: "Manrope", sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: #FF5A5F;
  margin-bottom: 5px;
}

.stat-text {
  font-size: 0.9rem;
}

/* ===== SECTION AVANTAGES ===== */
.advantages {
  background-color: white;
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.advantage-card {
  padding: 30px;
  background-color: #F7F2EB;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.advantage-card:hover {
  transform: translateY(-10px);
}

.advantage-icon {
  margin: 0 auto 20px;
  width: 70px;
  height: 70px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.advantage-card h3 {
  margin-bottom: 15px;
}

/* ===== SECTION SERVICES ===== */
.services {
  background-color: #F7F2EB;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.service-card {
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-10px);
}

.service-image {
  overflow: hidden;
  height: 200px;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-image img {
  transform: scale(1.1);
}

.service-content {
  padding: 30px;
}

.service-list {
  margin: 20px 0;
}

.service-list li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 10px;
}

.service-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  background-color: #87CBB9;
  border-radius: 50%;
}

/* ===== SECTION TARIFS ===== */
.pricing {
  background-color: white;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.pricing-card {
  background-color: #F7F2EB;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  position: relative;
}

.pricing-card:hover {
  transform: translateY(-10px);
}

.pricing-card.featured {
  background-color: #0E1B2C;
  color: white;
  box-shadow: 0 10px 25px rgba(14, 27, 44, 0.3);
  transform: scale(1.05);
}

.pricing-card.featured:hover {
  transform: scale(1.05) translateY(-10px);
}

.pricing-badge {
  position: absolute;
  top: 0;
  right: 0;
  background-color: #FF5A5F;
  color: white;
  padding: 8px 15px;
  font-size: 0.8rem;
  font-weight: 600;
  border-bottom-left-radius: 10px;
}

.pricing-header {
  text-align: center;
  padding: 30px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.pricing-card.featured .pricing-header {
  border-color: rgba(255, 255, 255, 0.1);
}

.pricing-card.featured h3 {
  color: white;
}

.pricing-price {
  margin: 20px 0;
}

.currency {
  font-size: 1.5rem;
  vertical-align: top;
  margin-right: 5px;
}

.amount {
  font-family: "Manrope", sans-serif;
  font-size: 3.5rem;
  font-weight: 700;
}

.period {
  font-size: 1rem;
  vertical-align: bottom;
}

.pricing-features {
  padding: 30px;
}

.pricing-features ul {
  margin-bottom: 0;
}

.pricing-features li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  position: relative;
  padding-left: 25px;
}

.pricing-card.featured .pricing-features li {
  border-color: rgba(255, 255, 255, 0.1);
}

.pricing-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #87CBB9;
}

.pricing-features li.not-included::before {
  content: '×';
  color: #FF5A5F;
}

.pricing-footer {
  padding: 20px 30px 30px;
}

.pricing-note {
  text-align: center;
  font-size: 0.9rem;
  color: #666;
  margin-top: 40px;
}

/* ===== SECTION TÉMOIGNAGES ===== */
.testimonials {
  background-color: #F7F2EB;
}

.testimonials-slider {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.testimonial-card {
  background-color: white;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-10px);
}

.testimonial-rating {
  margin-bottom: 15px;
}

.star {
  color: #FFD275;
  font-size: 1.2rem;
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 30px;
  color: #444;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.testimonial-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 15px;
  background-color: #87CBB9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-placeholder {
  color: white;
  font-weight: 600;
  font-size: 1.2rem;
}

.testimonial-info {
  flex-grow: 1;
}

.author-name {
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.author-company {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 0;
}

/* ===== SECTION CONTACT ===== */
.contact {
  background-color: white;
}

.contact-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.contact-card,
.form-card {
  background-color: #F7F2EB;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-details {
  margin-bottom: 30px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
}

.contact-icon {
  margin-right: 15px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-map {
  border-radius: 10px;
  overflow: hidden;
  height: 200px;
}

.contact-map img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.form-group {
  margin-bottom: 20px;
}

.form-error {
  background-color: #FF5A5F;
  color: white;
  padding: 10px;
  margin-bottom: 20px;
  border-radius: 5px;
  font-size: 0.9rem;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

input[type="text"],
input[type="tel"],
input[type="email"],
select,
textarea {
  width: 100%;
  padding: 12px 15px;
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="tel"]:focus,
input[type="email"]:focus,
select:focus,
textarea:focus {
  border-color: #87CBB9;
  outline: none;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
}

.checkbox-group input[type="checkbox"] {
  margin-right: 10px;
  margin-top: 6px;
}

.checkbox-group label {
  margin-bottom: 0;
  font-weight: 400;
  font-size: 0.9rem;
}

/* ===== FOOTER ===== */
.main-footer {
  background-color: #0E1B2C;
  color: white;
  padding: 80px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 50px;
}

.footer-logo {
  margin-bottom: 20px;
}

.footer-description {
  color: #ddd;
  font-size: 0.9rem;
}

.footer-contact h3,
.footer-links h3 {
  color: white;
  margin-bottom: 20px;
  font-size: 1.3rem;
}

.footer-contact address {
  font-style: normal;
  color: #ddd;
  font-size: 0.9rem;
}

.footer-contact address p {
  margin-bottom: 10px;
}

.footer-contact a {
  color: #FFD275;
}

.footer-links ul {
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #ddd;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: #FFD275;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  color: #ddd;
}

/* ===== COOKIE POPUP ===== */
.cookie-popup {
  position: fixed;
  bottom: -100%;
  left: 0;
  width: 100%;
  background-color: #0E1B2C;
  color: white;
  padding: 20px;
  box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
  transition: bottom 0.5s ease;
  z-index: 1000;
}

.cookie-popup.show {
  bottom: 0;
}

.cookie-content {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.cookie-content h3 {
  color: white;
  margin-bottom: 5px;
  font-size: 1.2rem;
}

.cookie-content p {
  margin: 0;
  font-size: 0.9rem;
  flex: 1;
}

.cookie-content a {
  color: #FFD275;
}

/* ===== PAGE MERCI ===== */
.merci-section {
  display: flex;
  align-items: center;
  justify-content: center;
  
  padding: 150px 0;
  text-align: center;
}

.merci-content {
  max-width: 600px;
  margin: 0 auto;
}

.merci-icon {
  margin: 0 auto 30px;
}

.merci-text {
  margin-bottom: 30px;
}

.merci-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

/* ===== PAGES LÉGALES ===== */
.legal-section {
  padding: 160px 0 80px;
}

.legal-header {
  text-align: center;
  margin-bottom: 60px;
}

.legal-date {
  color: #666;
  font-style: italic;
  margin-top: 10px;
}

.legal-block {
  margin-bottom: 40px;
}

.legal-block h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: #0E1B2C;
}

.legal-block h3 {
  font-size: 1.4rem;
  margin: 20px 0 15px;
}

.legal-block ul, .legal-block ol {
  margin-bottom: 20px;
  padding-left: 20px;
}

.legal-block ul li, .legal-block ol li {
  margin-bottom: 10px;
}

/* ===== MEDIA QUERIES ===== */
@media (max-width: 992px) {
  section {
    padding: 60px 0;
  }
  
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .hero {
    padding-top: 140px;
  }
  
  .hero-title {
    font-size: 2.8rem;
  }
  
  .about-content,
  .hero-content {
    flex-direction: column;
  }
  
  .hero-image {
    margin-top: 30px;
  }
  
  .about-image {
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .menu-button {
    display: block;
  }
  
  .menu-toggle:checked ~ .main-nav {
    right: 0;
  }
  
  .menu-toggle:checked ~ .menu-button .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .menu-toggle:checked ~ .menu-button .bar:nth-child(2) {
    opacity: 0;
  }
  
  .menu-toggle:checked ~ .menu-button .bar:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -8px);
  }
  
  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background-color: #F7F2EB;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    padding: 100px 20px;
    transition: right 0.5s ease;
  }
  
  .main-nav ul {
    flex-direction: column;
  }
  
  .main-nav li {
    margin: 10px 0;
  }
  
  .nav-link {
    font-size: 1.2rem;
  }
  
  .hero-title {
    font-size: 2.3rem;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .hero-buttons .btn {
    width: 100%;
  }
  
  .pricing-grid {
    gap: 20px;
  }
  
  .pricing-card.featured {
    transform: scale(1);
  }
  
  .pricing-card.featured:hover {
    transform: translateY(-10px);
  }
  
  .testimonials-slider {
    grid-template-columns: 1fr;
  }
  
  .cookie-content {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 576px) {
  section {
    padding: 50px 0;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.7rem;
  }
  
  h3 {
    font-size: 1.4rem;
  }
  
  .section-header {
    margin-bottom: 40px;
  }
  
  .hero {
    padding-top: 120px;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .about-stats {
    flex-direction: column;
  }
  
  .merci-buttons {
    flex-direction: column;
  }
  
  .merci-buttons .btn {
    width: 100%;
  }
  
  .header-contact {
    display: none;
  }
}