/* =============================================
   WE BRICOL — Styles Globaux
   ============================================= */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&family=Inter:wght@400;500;600&display=swap');

/* ---- Variables CSS ---- */
:root {
  /* Couleurs */
  --color-primary: #FF6B35;
  --color-primary-dark: #e55a24;
  --color-secondary: #004E89;
  --color-secondary-dark: #003d6b;
  --color-accent: #F5A623;
  --color-bg-light: #F7F7F7;
  --color-bg-dark: #2D2D2D;
  --color-text: #333333;
  --color-text-light: #666666;
  --color-text-muted: #999999;
  --color-success: #27AE60;
  --color-error: #E74C3C;
  --color-white: #FFFFFF;
  --color-border: #E0E0E0;
  --color-heading: #2D2D2D;

  /* Typographie */
  --font-title: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Espacements */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;
  --space-7: 80px;
  --space-8: 96px;

  /* Rayons */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Ombres */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.16);

  /* Transitions */
  --transition: 0.25s ease;
}

/* ---- Reset & Base ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

ul, ol {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

button {
  cursor: pointer;
  font-family: var(--font-body);
  border: none;
  background: none;
}

input, textarea, select {
  font-family: var(--font-body);
  font-size: 1rem;
}

/* ---- Typographie ---- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  line-height: 1.2;
  color: var(--color-text);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.5rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 2vw, 1.75rem); font-weight: 600; }
h4 { font-size: 1.25rem; font-weight: 600; }

p {
  color: var(--color-text-light);
  line-height: 1.7;
}

/* ---- Layout ---- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-3);
}

.section {
  padding: var(--space-7) 0;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-6);
}

.section-header h2 {
  margin-bottom: var(--space-2);
}

.section-header p {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.section-tag {
  display: inline-block;
  background: rgba(255, 107, 53, 0.1);
  color: var(--color-primary);
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-2);
}

/* ---- Grid ---- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-4); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-3); }

/* ---- Utilitaires ---- */
.text-center { text-align: center; }
.text-primary { color: var(--color-primary); }
.text-secondary { color: var(--color-secondary); }
.bg-light { background-color: var(--color-bg-light); }
.bg-dark { background-color: var(--color-bg-dark); }
.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }

/* ---- Header / Navigation ---- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
  transition: background var(--transition), box-shadow var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}


.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--color-text);
}

.nav-logo span {
  color: var(--color-primary);
}

.nav-logo-icon {
  width: 36px;
  height: 36px;
  background: var(--color-primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.1rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.nav-links a {
  font-weight: 500;
  color: var(--color-text);
  transition: color var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: all var(--transition);
  border-radius: 2px;
}


/* ---- Hero Section ---- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 72px;
  background-color: var(--color-bg-dark);
}

/* Overlay sombre sur la photo de fond */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    /* Coin bas-droite très sombre pour masquer le filigrane */
    radial-gradient(ellipse 35% 25% at 90% 95%, rgba(0,0,0,0.97) 0%, transparent 100%),
    /* Overlay général */
    linear-gradient(
      135deg,
      rgba(0, 20, 40, 0.78) 0%,
      rgba(0, 40, 70, 0.60) 50%,
      rgba(0, 0, 0, 0.50) 100%
    );
  z-index: 0;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.1);
  color: var(--color-white);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: var(--space-3);
  border: 1px solid rgba(255,255,255,0.2);
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background: var(--color-success);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.hero h1 {
  color: var(--color-white);
  margin-bottom: var(--space-3);
}

.hero h1 span {
  color: var(--color-primary);
}

.hero p {
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  margin-bottom: var(--space-5);
  max-width: 550px;
}

/* ---- Barre de recherche hero ---- */
.hero-search {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-1);
  display: flex;
  align-items: center;
  gap: var(--space-1);
  box-shadow: var(--shadow-lg);
  margin-bottom: var(--space-4);
}

.hero-search-field {
  flex: 1;
  display: flex;
  align-items: center;
  gap: var(--space-1);
  padding: 10px var(--space-2);
}

.hero-search-field i {
  color: var(--color-text-muted);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.hero-search-field input {
  border: none;
  outline: none;
  width: 100%;
  font-size: 0.95rem;
  color: var(--color-text);
}

.hero-search-divider {
  width: 1px;
  height: 32px;
  background: var(--color-border);
  flex-shrink: 0;
}

.hero-search-btn {
  background: var(--color-primary);
  color: white;
  padding: 12px 24px;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-md);
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.95rem;
  transition: background var(--transition), transform var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.hero-search-btn:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
}

.hero-stats {
  display: flex;
  gap: var(--space-4);
}

.hero-stat {
  color: white;
}

.hero-stat strong {
  display: block;
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-white);
}

.hero-stat span {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}

/* ---- Footer ---- */
.footer {
  background: var(--color-bg-dark);
  color: rgba(255,255,255,0.7);
  padding: var(--space-7) 0 var(--space-4);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-6);
  margin-bottom: var(--space-6);
}

.footer-brand p {
  color: rgba(255,255,255,0.6);
  margin-top: var(--space-2);
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--color-white);
  margin-bottom: var(--space-2);
}

.footer-logo span { color: var(--color-primary); }

.footer-social {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.footer-social a {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  transition: all var(--transition);
  font-size: 0.9rem;
}

.footer-social a:hover {
  background: var(--color-primary);
  color: white;
}

.footer-col h4 {
  color: var(--color-white);
  font-family: var(--font-title);
  font-size: 1rem;
  margin-bottom: var(--space-3);
}

.footer-col ul li {
  margin-bottom: var(--space-1);
}

.footer-col ul li a {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer-col ul li a:hover {
  color: var(--color-primary);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: var(--space-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
}

.footer-bottom p {
  color: rgba(255,255,255,0.4);
}

/* ---- Page Header ---- */
.page-header {
  background: linear-gradient(135deg, var(--color-secondary) 0%, #002d50 100%);
  padding: 120px 0 60px;
  text-align: center;
  color: white;
}

.page-header h1 {
  color: white;
  margin-bottom: var(--space-2);
}

.page-header p {
  color: rgba(255,255,255,0.7);
  font-size: 1.1rem;
  max-width: 500px;
  margin: 0 auto;
}

/* ---- Animations ---- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

.animate-fade-up {
  animation: fadeInUp 0.6s ease forwards;
}

.animate-fade-up-delay-1 { animation-delay: 0.1s; }
.animate-fade-up-delay-2 { animation-delay: 0.2s; }
.animate-fade-up-delay-3 { animation-delay: 0.3s; }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
