/* 
 * Style principal pour domain.com
 * Cabinet d'audit financier
 */

/* ---------- VARIABLES ET RESET ---------- */
:root {
  --color-primary: #0A1F44;     /* Bleu Minuit Profond */
  --color-accent: #FF6F61;      /* Corail Vibrant */
  --color-secondary: #A8E6CF;   /* Vert Menthe Doux */
  --color-tertiary: #F9E2AE;    /* Beige Doré */
  --color-bg: #FDFDFD;          /* Blanc Crème Clair */
  --color-text: #333333;        /* Texte Foncé */
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Lato', sans-serif;
  --transition: all 0.3s ease;
  --shadow: 0 4px 12px rgba(10, 31, 68, 0.1);
  --border-radius: 8px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  overflow-x: hidden;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--color-primary);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ---------- TYPOGRAPHIE ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

h1 {
  font-size: 3rem;
  font-weight: 700;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

p {
  margin-bottom: 1.5rem;
}

.section-title {
  position: relative;
  margin-bottom: 2.5rem;
}

.section-title.centered {
  text-align: center;
}

.section-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
  font-size: 1.2rem;
}

.accent-line {
  height: 4px;
  width: 60px;
  background: var(--color-accent);
  margin-bottom: 2rem;
}

.accent-line.centered {
  margin-left: auto;
  margin-right: auto;
}

/* ---------- LAYOUT ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 5rem 0;
}

section:nth-child(even) {
  background-color: #f8f9fa;
}

/* ---------- HEADER ---------- */
header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  padding: 1rem 0;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: var(--transition);
}

.header-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  flex: 0 0 auto;
}

.logo a {
  display: block;
}

.logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 2.2rem;
  color: var(--color-primary);
}

.footer-logo-text {
  color: white;
  font-size: 2.4rem;
}

.nav-toggle {
  display: none;
}

.main-nav ul {
  display: flex;
  list-style: none;
}

.main-nav li {
  margin-left: 2rem;
}

.main-nav a {
  color: var(--color-primary);
  font-weight: 500;
  padding: 0.5rem;
  position: relative;
}

.main-nav a:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-accent);
  transition: var(--transition);
}

.main-nav a:hover:after {
  width: 100%;
}

/* ---------- HERO SECTION ---------- */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
  margin-top: 0;
  padding-top: 0;
  padding-bottom: 0;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(10, 31, 68, 0.7), rgba(10, 31, 68, 0.8));
  z-index: -1;
}

.hero-content {
  color: white;
  max-width: 800px;
  padding-top: 80px;
  text-align: center;
  margin: 0 auto;
}

.hero-content h1 {
  color: white;
  margin-bottom: 1.5rem;
  font-size: 3.5rem;
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.cta-button {
  display: inline-block;
  background-color: var(--color-accent);
  color: white;
  font-weight: 600;
  padding: 1rem 2rem;
  border-radius: var(--border-radius);
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 12px rgba(255, 111, 97, 0.3);
  transition: var(--transition);
}

.cta-button:hover {
  background-color: #ff5a4b;
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(255, 111, 97, 0.4);
}

/* ---------- ABOUT SECTION ---------- */
.about-wrapper {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.about-content {
  flex: 1.5;
}

.about-image {
  flex: 1;
  max-width: 40%;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.about-image img {
  transition: var(--transition);
}

.about-image:hover img {
  transform: scale(1.03);
}

/* ---------- SERVICES SECTION ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-card {
  background-color: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(10, 31, 68, 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-card h3 {
  margin: 1.5rem 1.5rem 1rem;
}

.service-card p {
  margin: 0 1.5rem 1.5rem;
  color: #666;
}

/* ---------- AUDIT TYPES SECTION ---------- */
.audit-types-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.audit-type-card {
  background-color: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
  border: 1px solid rgba(168, 230, 207, 0.3);
}

.audit-type-card:hover {
  transform: translateY(-5px);
  border-color: var(--color-secondary);
}

.audit-icon {
  margin: 0 auto 1.5rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- BENEFITS SECTION ---------- */
.why-us-section {
  background-color: #f8f9fa;
  position: relative;
}

.benefits-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.benefit-item {
  display: flex;
  gap: 1.5rem;
  background-color: white;
  padding: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.benefit-item:hover {
  transform: translateX(5px);
  box-shadow: 0 6px 15px rgba(10, 31, 68, 0.1);
}

.benefit-icon {
  flex: 0 0 50px;
}

.benefit-content h3 {
  margin-bottom: 0.5rem;
}

.benefit-content p {
  margin-bottom: 0;
  color: #666;
}

/* ---------- STATISTICS SECTION ---------- */
.statistics-section {
  background-color: var(--color-primary);
  color: white;
}

.statistics-section .section-title {
  color: white;
}

.statistics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}

.statistic-item {
  padding: 2rem;
}

.statistic-number {
  font-size: 3.5rem;
  font-weight: 700;
  font-family: var(--font-heading);
  color: var(--color-accent);
  margin-bottom: 1rem;
  line-height: 1;
}

.statistic-label {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
}

/* ---------- TESTIMONIALS SECTION ---------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.testimonial-card {
  background-color: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(10, 31, 68, 0.1);
}

.testimonial-content {
  padding: 2rem 2rem 1rem;
  position: relative;
}

.quote-icon {
  font-size: 3rem;
  line-height: 1;
  color: var(--color-accent);
  opacity: 0.2;
  position: absolute;
  top: 10px;
  left: 15px;
}

.testimonial-content p {
  position: relative;
  z-index: 1;
  font-style: italic;
}

.testimonial-author {
  padding: 1rem 2rem 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-image {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #f8f9fa;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border: 1px solid var(--color-secondary);
}

.author-details h4 {
  margin-bottom: 0.25rem;
  font-size: 1.1rem;
}

.author-details p {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 0;
}

/* ---------- FORM SECTION ---------- */
.form-section {
  background-color: #f8f9fa;
}

.form-container {
  max-width: 700px;
  margin: 0 auto;
  background-color: white;
  padding: 3rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

input[type="text"],
input[type="tel"],
input[type="email"],
select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition);
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(255, 111, 97, 0.2);
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.checkbox input {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.checkbox label {
  margin-bottom: 0;
  font-weight: normal;
}

.submit-button {
  background-color: var(--color-accent);
  color: white;
  border: none;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
  width: 100%;
}

.submit-button:hover {
  background-color: #ff5a4b;
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(255, 111, 97, 0.3);
}

.form-submit {
  margin-top: 2rem;
}

/* ---------- BLOG SECTION ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.blog-card {
  background-color: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(10, 31, 68, 0.1);
}

.blog-image {
  height: 200px;
  overflow: hidden;
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.blog-card:hover .blog-image img {
  transform: scale(1.05);
}

.blog-content {
  padding: 1.5rem;
}

.blog-content h3 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}

.blog-content p {
  color: #666;
  margin-bottom: 1rem;
}

.read-more {
  display: inline-block;
  font-weight: 500;
  position: relative;
}

.read-more:after {
  content: "→";
  margin-left: 0.25rem;
  transition: var(--transition);
}

.read-more:hover:after {
  margin-left: 0.5rem;
}

/* ---------- FOOTER ---------- */
footer {
  background-color: var(--color-primary);
  color: white;
  padding: 5rem 0 2rem;
}

.footer-wrapper {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 3rem;
}

.footer-logo {
  margin-bottom: 1.5rem;
}

.footer-about p {
  color: rgba(255, 255, 255, 0.8);
}

.footer-contact h4,
.footer-links h4 {
  color: white;
  margin-bottom: 1.5rem;
}

.footer-contact ul,
.footer-links ul {
  list-style: none;
}

.footer-contact li,
.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-contact a,
.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition);
}

.footer-contact a:hover,
.footer-links a:hover {
  color: var(--color-accent);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* ---------- COOKIE POPUP ---------- */
.cookie-popup {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background-color: white;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  max-width: 400px;
  z-index: 9999;
  display: none;
}

.cookie-popup.visible {
  display: block;
}

.cookie-content p {
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.btn-accent {
  background-color: var(--color-accent);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
}

.btn-accent:hover {
  background-color: #ff5a4b;
}

/* ---------- THANK YOU PAGE ---------- */
.thank-you-section {
  min-height: 70vh;
  display: flex;
  align-items: center;
  text-align: center;
  padding: 8rem 0 5rem; /* Augmenté l'espacement en haut */
}

.thank-you-content {
  max-width: 600px;
  margin: 0 auto;
  padding: 3rem;
  border: 2px solid var(--color-accent);
  border-radius: var(--border-radius);
  background-color: white;
  box-shadow: var(--shadow);
}

.thank-you-icon {
  margin: 0 auto 2rem;
}

.return-home {
  display: inline-block;
  background-color: var(--color-accent);
  color: white;
  padding: 1rem 2rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  margin-top: 2rem;
  transition: var(--transition);
}

.return-home:hover {
  background-color: #ff5a4b;
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(255, 111, 97, 0.3);
}

/* ---------- POLICY PAGES ---------- */
.policy-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 0;
}

.policy-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
}

.policy-content h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.policy-content ul,
.policy-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.policy-content li {
  margin-bottom: 0.5rem;
}

.policy-content strong {
  color: var(--color-primary);
}
