/* 
Fiducia Conseil - Style CSS
Palette de couleurs:
- Principale: #D60087 (fuchsia)
- Accentuée: #C6FF00 (vert lime)
- Fond: #3D348B (indigo)
- Texte: #FFF7E0 (crème)
- Interface: #00E8D1 (turquoise clair)
*/

/* ==== RESET & BASE ==== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Montserrat', Arial, sans-serif;
  background-color: #3D348B;
  color: #FFF7E0;
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 1rem;
}

a {
  color: #00E8D1;
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: #C6FF00;
}

ul {
  list-style-position: inside;
}

/* ==== LAYOUT ==== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 5rem 0;
  position: relative;
}

section:nth-child(odd) {
  background-color: #3D348B;
}

section:nth-child(even) {
  background-color: #341F69;
}

/* Animations générales */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.7; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0); }
}

/* ==== TYPOGRAPHIE ==== */
h1, h2, h3, h4, h5, h6 {
  margin-bottom: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: 3rem;
  color: #FFF7E0;
}

h2 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
  color: #C6FF00;
  position: relative;
  display: block;
}

h2::after {
  content: '';
  position: absolute;
  width: 60px;
  height: 4px;
  background: #D60087;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
}

h3 {
  font-size: 1.5rem;
  color: #00E8D1;
}

p {
  margin-bottom: 1.5rem;
}

/* ==== BOUTONS ==== */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 30px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

.btn-primary {
  background-color: #D60087;
  color: #FFF7E0;
  box-shadow: 0 4px 15px rgba(214, 0, 135, 0.3);
}

.btn-primary:hover {
  background-color: #F800A2;
  color: #FFF7E0;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(214, 0, 135, 0.4);
}

.btn-secondary {
  background-color: #C6FF00;
  color: #3D348B;
  box-shadow: 0 4px 15px rgba(198, 255, 0, 0.3);
}

.btn-secondary:hover {
  background-color: #D4FF4F;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(198, 255, 0, 0.4);
}

.btn-outline {
  background-color: transparent;
  color: #00E8D1;
  border: 2px solid #00E8D1;
}

.btn-outline:hover {
  background-color: #00E8D1;
  color: #3D348B;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 232, 209, 0.4);
}

/* ==== HEADER ==== */
header {
  background-color: rgba(61, 52, 139, 0.95);
  padding: 1rem 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-text {
  font-size: 1.8rem;
  font-weight: 800;
  color: #FFF7E0;
}

.logo-text span {
  color: #D60087;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #FFF7E0;
  font-size: 1.5rem;
  cursor: pointer;
}

.nav-list {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  color: #FFF7E0;
  font-weight: 600;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: #C6FF00;
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* ==== SECTION HERO ==== */
.hero {
  padding-top: 120px;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.hero-content {
  flex: 1;
  animation: fadeIn 1s ease-out;
}

.hero-image {
  flex: 1;
  position: relative;
}

.hero-image::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border: 3px solid #C6FF00;
  border-radius: 1rem;
  top: 20px;
  left: 20px;
  z-index: -1;
}

.hero-image img {
  border-radius: 1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  animation: float 6s ease-in-out infinite;
}

/* ==== SECTION AVANTAGES ==== */
.avantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.avantage-card {
  background: rgba(255, 247, 224, 0.05);
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5px);
}

.avantage-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.avantage-icon {
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
}

.icon-circle {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: #D60087;
  color: #FFF7E0;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  position: relative;
}

.icon-circle::before {
  content: '';
  position: absolute;
  width: 85px;
  height: 85px;
  border: 2px dashed #C6FF00;
  border-radius: 50%;
  animation: spin 15s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ==== SECTION OFFRE UNIQUE ==== */
.offre-unique .container {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.offre-content {
  flex: 1;
}

.offre-image {
  flex: 1;
  position: relative;
}

.offre-highlight {
  background: linear-gradient(135deg, rgba(214, 0, 135, 0.2) 0%, rgba(198, 255, 0, 0.2) 100%);
  padding: 2rem;
  border-radius: 1rem;
  margin: 2rem 0;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.offre-highlight h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.offre-highlight h3 span {
  color: #C6FF00;
  font-weight: 800;
}

.offre-animation {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 100px;
  height: 100px;
}

.pulse-circle {
  position: absolute;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: rgba(214, 0, 135, 0.3);
  animation: pulse-animation 2s infinite;
}

.pulse-circle.delay-1 {
  animation-delay: 0.6s;
}

.pulse-circle.delay-2 {
  animation-delay: 1.2s;
}

@keyframes pulse-animation {
  0% {
    transform: scale(0.8);
    opacity: 0.9;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.3;
  }
  100% {
    transform: scale(0.8);
    opacity: 0.9;
  }
}

/* ==== SECTION SERVICES ==== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  background: rgba(255, 247, 224, 0.03);
  border-radius: 1rem;
  padding: 2.5rem 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(214, 0, 135, 0.2) 0%, rgba(214, 0, 135, 0) 70%);
  top: -50px;
  right: -50px;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.service-card.featured {
  background: linear-gradient(135deg, rgba(214, 0, 135, 0.2) 0%, rgba(61, 52, 139, 0.3) 100%);
  border: 1px solid rgba(214, 0, 135, 0.3);
  transform: scale(1.05);
  z-index: 1;
}

.service-card.featured:hover {
  transform: scale(1.05) translateY(-10px);
}

.service-icon {
  margin-bottom: 1.5rem;
}

.icon-shape {
  width: 60px;
  height: 60px;
  background: #00E8D1;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  margin-bottom: 1.5rem;
}

.service-card ul {
  margin: 1.5rem 0;
  list-style: none;
}

.service-card li {
  margin-bottom: 0.8rem;
  padding-left: 1.5rem;
  position: relative;
}

.service-card li::before {
  content: "✓";
  color: #C6FF00;
  position: absolute;
  left: 0;
  font-weight: bold;
}

.service-card .btn {
  margin-top: 1rem;
}

/* ==== SECTION TEMOIGNAGES ==== */
.testimonial-slider {
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
}

.testimonial {
  padding: 2rem;
  margin-bottom: 2rem;
}

.testimonial-content {
  background: rgba(255, 247, 224, 0.05);
  border-radius: 1rem;
  padding: 2rem;
  position: relative;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.testimonial-content::before {
  content: '"';
  position: absolute;
  top: 10px;
  left: 20px;
  font-size: 5rem;
  line-height: 1;
  color: rgba(214, 0, 135, 0.2);
  font-family: Georgia, serif;
}

.testimonial-author {
  margin-top: 1.5rem;
  text-align: right;
  color: #00E8D1;
}

.testimonial-author span {
  display: block;
  color: #FFF7E0;
  font-size: 0.9rem;
  opacity: 0.7;
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.dot {
  width: 12px;
  height: 12px;
  background: rgba(255, 247, 224, 0.3);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: #D60087;
  transform: scale(1.2);
}

/* ==== SECTION POURQUOI NOUS ==== */
.pourquoi-nous .container {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.pourquoi-image {
  flex: 1;
  position: relative;
}

.pourquoi-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(0, 232, 209, 0.2) 0%, rgba(214, 0, 135, 0.2) 100%);
  mix-blend-mode: overlay;
}

.pourquoi-content {
  flex: 1;
}

.pourquoi-grid {
  display: grid;
  gap: 1.5rem;
}

.pourquoi-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.check-icon {
  width: 25px;
  height: 25px;
  min-width: 25px;
  background-color: #C6FF00;
  border-radius: 50%;
  position: relative;
  margin-top: 3px;
}

.check-icon::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 5px;
  border-left: 2px solid #3D348B;
  border-bottom: 2px solid #3D348B;
  transform: translate(-50%, -60%) rotate(-45deg);
}

.pourquoi-item p strong {
  color: #00E8D1;
}

/* ==== SECTION FORMULAIRE ==== */
.form-container {
  max-width: 600px;
  margin: 0 auto;
  background: rgba(255, 247, 224, 0.05);
  border-radius: 1rem;
  padding: 3rem 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.form-group {
  position: relative;
}

.form-group.full {
  grid-column: 1 / -1;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #00E8D1;
}

input, select, textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  background-color: rgb(61 52 139);
  border: 1px solid rgba(0, 232, 209, 0.3);
  border-radius: 0.5rem;
  color: #FFF7E0;
  font-family: inherit;
  transition: border-color 0.3s ease;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: #00E8D1;
  box-shadow: 0 0 0 2px rgba(0, 232, 209, 0.2);
}

textarea {
  resize: vertical;
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  grid-column: 1 / -1;
}

.checkbox input {
  width: auto;
  margin-right: 0.5rem;
}

.checkbox label {
  margin-bottom: 0;
  font-size: 0.9rem;
}

.checkbox a {
  text-decoration: underline;
}

.contact-form button[type="submit"] {
  margin-top: 1rem;
  grid-column: 1 / -1;
  justify-self: center;
}

/* ==== SECTION CONTACT INFO ==== */
.contact-info {
  text-align: center;
}

.contact-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.contact-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-icon {
  width: 70px;
  height: 70px;
  background: rgba(214, 0, 135, 0.1);
  border-radius: 50%;
  margin-bottom: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.contact-icon::before,
.contact-icon::after {
  content: '';
  position: absolute;
  border-radius: 50%;
}

.contact-icon::before {
  width: 80px;
  height: 80px;
  border: 1px dashed #D60087;
}

.contact-icon.address::after {
  content: '📍';
  font-size: 2rem;
}

.contact-icon.phone::after {
  content: '📞';
  font-size: 2rem;
}

.contact-icon.email::after {
  content: '✉️';
  font-size: 2rem;
}

.contact-icon.hours::after {
  content: '⏰';
  font-size: 2rem;
}

.contact-text h3 {
  margin-bottom: 0.5rem;
}

.contact-image {
  margin-top: 3rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.contact-image img {
  border-radius: 1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* ==== FOOTER ==== */
footer {
  background-color: #2A2260;
  padding: 4rem 0 1.5rem;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-logo {
  font-size: 1.8rem;
  font-weight: 800;
  color: #FFF7E0;
  margin-bottom: 1rem;
}

.footer-logo span {
  color: #D60087;
}

.footer-description {
  margin-bottom: 1.5rem;
}

.footer-heading {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: #00E8D1;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: #FFF7E0;
  opacity: 0.8;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  opacity: 1;
  color: #C6FF00;
  padding-left: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 247, 224, 0.1);
}

.copyright {
  font-size: 0.9rem;
  opacity: 0.7;
}

/* ==== COOKIE POPUP ==== */
.cookie-popup {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 400px;
  background: #2A2260;
  border-radius: 1rem;
  padding: 1.5rem;
  z-index: 1000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  display: none;
  animation: slideUp 0.5s forwards;
}

.cookie-content {
  text-align: center;
}

.cookie-content h3 {
  margin-bottom: 1rem;
}

.cookie-content p {
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.cookie-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translate(-50%, 100px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

/* ==== RESPONSIVE ==== */
@media (max-width: 992px) {
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  .services-grid{
    grid-template-columns: 1fr;
  }
  .hero .container,
  .offre-unique .container,
  .pourquoi-nous .container {
    flex-direction: column;
  }
  
  .hero-image::before {
    display: none;
  }
  
  .service-card.featured {
    transform: scale(1);
  }
  
  .service-card.featured:hover {
    transform: translateY(-10px);
  }
}

@media (max-width: 768px) {
  section {
    padding: 3rem 0;
  }
  
  .nav-toggle {
    display: block;
  }
  
  .nav-list {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100vh;
    background: #2A2260;
    flex-direction: column;
    padding: 80px 2rem 2rem;
    transition: right 0.3s ease;
    z-index: 900;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.2);
  }
  
  .nav-list.active {
    right: 0;
  }
  
  .contact-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .btn {
    padding: 0.7rem 1.5rem;
    font-size: 0.8rem;
  }
  
  .hero {
    padding-top: 100px;
    padding-bottom: 50px;
    min-height: auto;
  }
  
  .contact-details {
    grid-template-columns: 1fr;
  }
}

/* ==== FORM ERRORS ==== */
.form-errors {
  background-color: rgba(255, 0, 0, 0.1);
  border-left: 4px solid #D60087;
  padding: 1rem;
  margin-bottom: 1.5rem;
  border-radius: 0.5rem;
}

.error-message {
  color: #FFF7E0;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  position: relative;
  padding-left: 1.5rem;
}

.error-message:last-child {
  margin-bottom: 0;
}

.error-message::before {
  content: '!';
  position: absolute;
  left: 0;
  top: 0;
  width: 18px;
  height: 18px;
  background-color: #D60087;
  border-radius: 50%;
  color: #FFF7E0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 12px;
}

/* Ajout de style pour les champs invalides */
input:invalid, select:invalid, textarea:invalid {
  border-color: rgba(214, 0, 135, 0.5);
}

input:focus:invalid, select:focus:invalid, textarea:focus:invalid {
  box-shadow: 0 0 0 2px rgba(214, 0, 135, 0.2);
} 