/* 
   Verifin Conseil - Styles principal
   Auteur: Claude AI
   Date: 2024
*/

:root {
  /* Palette de couleurs principale */
  --primary: #FFE03F;        /* Jaune lazuli */
  --secondary: #0F1C55;      /* Bleu outremer foncé */
  --accent1: #FF6B00;        /* Mandarine vif */
  --accent2: #B3FFE2;        /* Jade clair */
  --background: #FFFCF5;     /* Blanc chaud */
  --text: #1E1E1E;           /* Graphite foncé */
  --light-text: #FFFFFF;     /* Texte blanc */
  --gray: #F0F0F0;           /* Gris clair */
  --dark-gray: #444444;      /* Gris foncé */
  
  /* Variables de mise en page */
  --padding-section: 5rem 2rem;
  --border-radius: 8px;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease-in-out;
  --container-width: 1200px;
  --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--accent1) 100%);
  --gradient-secondary: linear-gradient(135deg, var(--secondary) 0%, #344199 100%);
}

/* Reset et styles de base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Montserrat', 'Helvetica Neue', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--background);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

h1 {
  font-size: 2.75rem;
}

h2 {
  font-size: 2.25rem;
  margin-bottom: 2rem;
  position: relative;
}

h2:after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--primary);
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1.5rem;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--secondary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--accent1);
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1rem;
}

.section {
  padding: var(--padding-section);
  position: relative;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  display: inline-block;
}

.section-title h2:after {
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: var(--primary);
  color: var(--text);
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  background-color: #FFD700;
  color: var(--secondary);
}

.btn-secondary {
  background-color: var(--secondary);
  color: var(--light-text);
}

.btn-secondary:hover {
  background-color: #1a2980;
  color: var(--light-text);
}

.btn-accent {
  background-color: var(--accent1);
  color: var(--light-text);
}

.btn-accent:hover {
  background-color: #FF8C00;
  color: var(--light-text);
}

.text-center {
  text-align: center;
}

.flex {
  display: flex;
}

.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.grid {
  display: grid;
}

/* Header et Navigation */
.header {
  background-color: var(--background);
  box-shadow: var(--shadow);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: var(--transition);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--secondary);
  display: flex;
  align-items: center;
}

.logo img, .logo svg {
  height: 40px;
  margin-right: 0.5rem;
}

/* Navigation burger avec checkbox hack */
.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
  cursor: pointer;
  padding: 1rem;
  z-index: 1001;
}

.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
  display: block;
  background: var(--secondary);
  height: 2px;
  width: 24px;
  position: relative;
  transition: var(--transition);
}

.nav-toggle-label span::before,
.nav-toggle-label span::after {
  content: '';
  position: absolute;
}

.nav-toggle-label span::before {
  bottom: 8px;
}

.nav-toggle-label span::after {
  top: 8px;
}

.nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item {
  margin: 0 0.5rem;
}

.nav-link {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--text);
  font-weight: 600;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
  transform: translateX(-50%);
}

.nav-link:hover {
  color: var(--accent1);
}

.nav-link:hover::after {
  width: 70%;
}

/* Section Héro */
.hero {
  background: var(--gradient-secondary);
  color: var(--light-text);
  padding: 8rem 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('../img/5C0Ll9.jpg') center center/cover no-repeat;
  opacity: 0.2;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 2.5rem;
  font-weight: 300;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* À propos */
.about {
  background-color: var(--background);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-image {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.about-text h2:after {
  left: 0;
  transform: none;
}

/* Avantages */
.advantages {
  background-color: var(--gray);
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.advantage-card {
  background: var(--background);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.advantage-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.advantage-icon {
  width: 60px;
  height: 60px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  color: var(--secondary);
}

.advantage-title {
  margin-bottom: 1rem;
  color: var(--secondary);
}

/* Services */
.services {
  background-color: var(--background);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--light-text);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.service-image {
  height: 200px;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.service-card:hover .service-image img {
  transform: scale(1.05);
}

.service-content {
  padding: 1.5rem;
}

.service-title {
  color: var(--secondary);
  margin-bottom: 0.5rem;
}

.service-price {
  color: var(--accent1);
  font-weight: 700;
  margin: 1rem 0;
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(255, 107, 0, 0.1);
  border-radius: 4px;
}

/* Témoignages */
.testimonials {
  background-color: var(--secondary);
  color: var(--light-text);
  position: relative;
}

.testimonial-container {
  max-width: 800px;
  margin: 0 auto;
}

.testimonial-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: var(--border-radius);
  margin-bottom: 2rem;
  position: relative;
  backdrop-filter: blur(5px);
}

.testimonial-content {
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testimonial-content::before {
  content: '"';
  font-size: 3rem;
  position: absolute;
  top: 1rem;
  left: 1rem;
  opacity: 0.2;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.testimonial-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 1rem;
}

.testimonial-name {
  font-weight: 700;
}

.testimonial-position {
  font-size: 0.875rem;
  opacity: 0.8;
}

/* FAQ */
.faq {
  background-color: var(--gray);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 1rem;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: var(--background);
  cursor: pointer;
  font-weight: 600;
  color: var(--secondary);
  transition: var(--transition);
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  transition: var(--transition);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  background: var(--light-text);
  transition: max-height 0.3s ease;
  padding: 0 1.5rem;
}

.faq-item input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  z-index: -1;
}

.faq-item input[type="checkbox"]:checked ~ .faq-answer {
  max-height: 300px;
  padding: 1rem 1.5rem;
}

.faq-item input[type="checkbox"]:checked ~ .faq-question {
  background: var(--primary);
}

.faq-item input[type="checkbox"]:checked ~ .faq-question::after {
  transform: rotate(45deg);
}

/* Formulaire de commande */
.order-form {
  background-color: var(--background);
}

.form-container {
  max-width: 600px;
  margin: 0 auto;
  background: var(--light-text);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text);
  font-weight: 600;
}

.form-control {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--gray);
  border-radius: var(--border-radius);
  background: var(--light-text);
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 224, 63, 0.25);
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.checkbox-input {
  margin-right: 0.5rem;
  margin-top: 0.25rem;
  accent-color: var(--accent1);
}

.form-submit {
  width: 100%;
  padding: 1rem;
  background: var(--accent1);
  color: var(--light-text);
  border: none;
  border-radius: var(--border-radius);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.form-submit:hover {
  background: var(--secondary);
  transform: translateY(-2px);
}

/* Pied de page */
.footer {
  background: var(--secondary);
  color: var(--light-text);
  padding: 4rem 0 2rem;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.footer-column h3 {
  margin-bottom: 1.5rem;
  color: var(--primary);
}
.footer-columns{
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}
.footer-column ul{
    list-style: none;
}
.footer-column{
    margin: 15px 0;
}
.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--light-text);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.footer-contact-icon {
  margin-right: 0.75rem;
  color: var(--primary);
  font-size: 1.2rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Cookie Popup */
.cookie-popup {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 400px;
  padding: 1.5rem;
  background: var(--light-text);
  border-radius: var(--border-radius);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  display: none;
}

.cookie-popup.show {
  display: block;
  animation: slideUp 0.5s forwards;
}

.cookie-content {
  margin-bottom: 1rem;
}

.cookie-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

/* Page de remerciement */
.thank-you {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
  padding: 2rem;
}

.thank-you-icon {
  width: 120px;
  height: 120px;
  margin-bottom: 2rem;
}

.thank-you-title {
  color: var(--secondary);
  margin-bottom: 1rem;
}

.thank-you-subtitle {
  color: var(--accent1);
  margin-bottom: 2rem;
  font-size: 1.25rem;
}

.thank-you-message {
  max-width: 600px;
  margin-bottom: 2rem;
}

/* Pages politiques */
.policy-page {
  padding: 6rem 0;
}

.policy-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem;
}

.policy-title {
  margin-bottom: 3rem;
  color: var(--secondary);
}

.policy-content h3 {
  color: var(--secondary);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.policy-content p, .policy-content ul, .policy-content ol {
  margin-bottom: 1rem;
}

.policy-content ul, .policy-content ol {
  margin-left: 1.5rem;
}

/* Animations */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.animate-fade-in {
  animation: fadeIn 1s forwards;
}

/* Media queries pour la responsivité */
@media (max-width: 992px) {
  h1 {
    font-size: 2.25rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .about-content {
    grid-template-columns: 1fr;
  }
  
  .about-image {
    margin-bottom: 2rem;
    order: -1;
  }
}

@media (max-width: 768px) {
  :root {
    --padding-section: 4rem 1rem;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  .hero {
    padding: 6rem 0;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.25rem;
  }
  
  /* Navigation mobile */
  .nav-toggle-label {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--background);
    transform: scale(1, 0);
    transform-origin: top;
    transition: transform 0.3s ease-out;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    padding: 0;
  }
  
  .nav-list {
    flex-direction: column;
    width: 100%;
  }
  
  .nav-item {
    margin: 0;
    width: 100%;
    text-align: center;
  }
  
  .nav-link {
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.15s ease-out;
  }
  
  .nav-toggle:checked ~ .nav {
    transform: scale(1, 1);
  }
  
  .nav-toggle:checked ~ .nav .nav-link {
    opacity: 1;
    transition: opacity 0.25s ease-out 0.15s;
  }
  
  .nav-toggle:checked ~ .nav-toggle-label span {
    background: transparent;
  }
  
  .nav-toggle:checked ~ .nav-toggle-label span::before {
    transform: rotate(45deg);
    top: 0;
  }
  
  .nav-toggle:checked ~ .nav-toggle-label span::after {
    transform: rotate(-45deg);
    top: 0;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  :root {
    --padding-section: 3rem 1rem;
  }
  
  h1 {
    font-size: 1.75rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  .hero {
    padding: 5rem 0;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .hero-buttons .btn {
    width: 100%;
  }
  
  .service-image {
    height: 180px;
  }
  
  .advantage-card,
  .service-card {
    padding: 1.5rem;
  }
  
  .footer {
    padding: 3rem 0 1.5rem;
  }
}

/* Styles pour les erreurs de formulaire */
.form-errors {
  background-color: rgba(255, 107, 0, 0.1);
  border-left: 4px solid var(--accent1);
  padding: 1rem;
  margin-bottom: 1.5rem;
  border-radius: var(--border-radius);
}

.error-message {
  color: var(--accent1);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.error-list {
  margin: 0;
  padding-left: 1.5rem;
}

.error-list li {
  color: var(--accent1);
  margin-bottom: 0.25rem;
}

.error-list li:last-child {
  margin-bottom: 0;
}

/* Styles pour les champs de formulaire invalides */
.form-control:invalid:focus {
  border-color: var(--accent1);
  box-shadow: 0 0 0 2px rgba(255, 107, 0, 0.2);
}

/* Animation pour la page de remerciement */
.thank-you-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem 0;
}

.thank-you-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

@media (max-width: 576px) {
  .thank-you-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .thank-you-buttons .btn {
    width: 100%;
    margin-bottom: 1rem;
  }
} 