/* Base typography */
:root {
  --bg: #ffffff;
  --surface: #f4f4f4;
  --surface-alt: #280b0b; /* Utilisation du brun très sombre du logo au lieu du noir pur */
  --text: #280b0b; /* Utilisation de la couleur sombre du logo pour le texte principal */
  --text-alt: #ffffff;
  --muted: #6e6e73;
  --primary: #a88282; /* Utilisation du vieux rose du logo comme couleur primaire/accent */
  --primary-600: #8c6a6a;
  --border: #e5e5e5;
  --card: #ffffff;
  --accent: #a88282;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Montserrat", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}

/* Revans custom font */
@font-face {
  font-family: "RevansRegular";
  src: url("assets/fonts/Revans-Regular.otf") format("opentype");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

h1, h2, h3 { 
  font-family: "RevansRegular", "Montserrat", sans-serif; 
  letter-spacing: -0.02em; 
  font-weight: 800;
}

h1 { line-height: 1.0; text-transform: uppercase; }
h2 { font-size: 2.5rem; margin-bottom: 3rem; text-transform: uppercase; }
h3 { text-transform: none; }

.subtitle-section {
  color: var(--muted);
  font-size: 1.1rem;
  margin-top: 1rem;
  margin-bottom: 0;
  font-weight: 500;
}

.about-header .subtitle-section {
  color: rgba(255,255,255,0.7);
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.navbar-nav .nav-link {
  font-weight: 600;
  color: var(--text);
  transition: opacity 0.2s ease;
  margin: 0 15px;
  text-transform: uppercase;
  font-size: 0.9rem;
}
.navbar-nav .nav-link:hover {
  opacity: 0.7;
  color: var(--text);
}
.brand { padding-top: 0; padding-bottom: 0; margin-right: 1rem; }
.brand img { height: 60px; width: auto; display: block; filter: opacity(0.8); } /* Augmentation de la taille et application de la transparence */

.sr-only { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Language flags */
.lang-flags { gap: 12px; }
.lang-flags .lang-btn {
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  line-height: 0; /* Empêche tout espacement dû à la hauteur de ligne */
  display: inline-block; /* Utilisation de inline-block pour coller au contenu */
  vertical-align: middle;
  cursor: pointer;
  opacity: 1;
  transition: opacity 0.2s;
}
.lang-flags .lang-btn:hover { opacity: 1; }
.lang-flags .lang-btn .flag-icon { 
  display: block;
  width: 24px;
  height: auto;
  aspect-ratio: 3 / 2;
  shape-rendering: crispEdges; /* Force un rendu net des bords des rectangles SVG */
}

/* Hero - Block style */
.hero { 
  padding: 120px 0 100px; 
  background-color: var(--surface-alt);
  color: var(--text-alt);
}
.hero h1 { font-size: clamp(40px, 8vw, 80px); margin: 0 0 30px; }
.subtitle { color: #a1a1a6; font-size: 24px; line-height: 1.4; max-width: 700px; font-weight: 500; }

/* Sections */
.section { padding: 120px 0; }
.section.alt { 
  background: var(--surface-alt); 
  color: var(--text-alt);
}
.section h2 { text-align: left; }

.section.alt-no-title,
.section.pt-0 {
  padding-top: 0;
  padding-bottom: 0;
}

.card { 
  background: var(--surface); 
  border: none; 
  border-radius: 0; /* Carré pour l'aspect bloc */
  padding: 50px; 
  transition: transform 0.3s ease, background-color 0.3s ease;
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: scale(1.02) translateY(-10px);
  background-color: var(--bg);
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  outline: 2px solid var(--primary);
}
.section.alt .card:hover {
  transform: scale(1.02) translateY(10px);
}
.section.alt .card {
  background: var(--card);
  color: var(--text);
}
.section.alt .card h3 {
  color: var(--text);
}
.section.alt .card:hover {
  background-color: var(--bg);
  outline: 2px solid var(--primary);
}

.section:not(.alt) .card {
  background: var(--surface-alt);
  color: var(--text-alt);
}
.section:not(.alt) .card h3 {
  color: var(--text-alt);
}
.section:not(.alt) .card p {
  color: #a1a1a6;
}
.section:not(.alt) .card:hover {
  background-color: #3a1a1a;
  outline: 2px solid var(--primary);
}
.card h3 { margin-top: 0; font-size: 28px; color: var(--text); margin-bottom: 1.5rem; font-weight: 800; }
.card p { color: var(--muted); font-size: 1.1rem; line-height: 1.6; margin-bottom: 0; }

/* Boutons - Carrés */
.btn {
  padding: 18px 36px;
  border-radius: 0;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.2s ease;
}
.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--text-alt);
}
.btn-primary:hover {
  background-color: var(--primary-600);
  border-color: var(--primary-600);
  color: var(--text-alt);
}
.btn-outline-light {
  border: 2px solid var(--text-alt);
  color: var(--text-alt);
}
.btn-outline-light:hover {
  background-color: var(--text-alt);
  color: var(--surface-alt);
}

/* Testimonial Section - Grid style */
.testimonial-grid,
.services-grid,
.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: stretch;
}
.services-header,
.testimonial-header,
.about-header,
.contact-header {
  padding: 80px 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.services-header {
  background: var(--bg);
  align-items: flex-start;
}

.testimonial-header {
  background: var(--bg);
  align-items: flex-start;
}

.about-header {
  background: var(--surface-alt);
  align-items: flex-end;
  text-align: right;
}

.contact-header {
  background: var(--bg);
  align-items: flex-start;
}
.testimonial-header h2,
.about-header h2,
.contact-header h2,
.services-header h2 {
  font-size: 2.5rem;
  margin: 0;
}

.testimonial-content {
  background: var(--surface);
  padding: 80px 50px;
}
.testimonial-content .quote p { 
  font-size: 1.1rem; 
  line-height: 1.4; 
  color: var(--text);
  font-style: normal;
  margin-bottom: 30px;
  text-align: left;
}
.testimonial-content .author { 
  display: flex; 
  align-items: center; 
  gap: 20px; 
}
.testimonial-content .avatar img {
  width: 80px;
  height: 80px;
  border-radius: 0;
  object-fit: cover;
}
.testimonial-content .author-info {
  display: flex;
  flex-direction: column;
}
.testimonial-content .author .name { font-weight: 800; text-transform: uppercase; display: block; }
.testimonial-content .author .role { font-size: 0.9rem; color: var(--muted); }

/* About Section - Grid style */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: stretch;
}
.about-header h2 { color: var(--text-alt); }
.about-content {
  background: var(--bg);
  padding: 80px 50px;
  color: var(--text);
  display: flex;
  align-items: center;
}
.about-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin: 0;
  text-align: left;
}

/* Contact Section - Grid style */
.contact-header h2 {
  color: var(--surface-alt);
}
.contact-methods {
  background: var(--surface);
  padding: 80px 50px;
}
.contact-block {
  padding: 0;
  background: transparent;
  border: none;
  display: flex;
  flex-direction: column;
}
.contact-block:not(:last-child) {
  margin-bottom: 40px;
}
.contact-label {
  display: block;
  font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
  font-size: 1rem;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}
.contact-link {
  color: var(--text);
  font-size: 1.2rem;
  font-weight: 800;
  text-decoration: none;
  word-break: break-all;
  line-height: 1.2;
}
.contact-link:hover {
  color: var(--primary);
}
.contact-address {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text);
}

.navbar-toggler {
  border: none;
  border-radius: 0;
}
.navbar-toggler:focus {
  box-shadow: none;
}
.navbar-toggler-icon {
  filter: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(40, 11, 11, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.site-footer { 
  background: var(--surface-alt);
  color: #a1a1a6;
  padding: 60px 0 40px; 
  font-size: 14px; 
  text-align: center; 
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-top: none;
}

.fox-head {
  height: 80px;
  width: auto;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.fox-head:hover {
  opacity: 1;
}

.footer-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--primary);
}

@media (max-width: 768px) {
  .brand img { height: 45px; }
  .section { padding: 80px 0; }
  .section h2 { text-align: left; }

  .hero { padding: 80px 0; text-align: left; }
  .hero .subtitle { font-size: 1.25rem; }
  .hero .d-flex { justify-content: flex-start !important; }

  .testimonial-grid,
  .services-grid,
  .about-grid,
  .contact-grid { grid-template-columns: 1fr; }

  .about-grid { display: flex; flex-direction: column; }
  .about-header { order: 1; }
  .about-content { order: 2; }

  .testimonial-header,
  .testimonial-content,
  .about-header,
  .about-content,
  .contact-header,
  .contact-methods,
  .services-header { padding: 40px 30px; text-align: left; justify-content: center; }

  .card { padding: 40px 30px; text-align: left; }

  .testimonial-header { align-items: flex-start; }
  
  .services-header { align-items: flex-start; }
  
  .about-header { text-align: left; align-items: flex-start; }

  .contact-block { padding: 0; }
  .contact-header h2,
  .testimonial-header h2,
  .about-header h2 { font-size: 2.5rem; }

  .testimonial-content .author { justify-content: flex-start; flex-direction: column; text-align: left; align-items: flex-start; }

  /* Align language flags with nav items on mobile */
  .navbar-nav .nav-item .lang-flags {
    padding: 0.5rem 15px;
  }
}
