/* === RESET DE BASE === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

ul, ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* === TYPO & BASE === */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* === VARIABLES CSS === */
:root {
  /* Couleurs principales */
  --primary-color: #2e7d32;
  --secondary-color: #81c784;
  --accent-color: #1b5e20;
  --bg-color: #f5f5f5;
  --card-bg: #ffffff;
  --card-border: #e0e0e0;
  --text-color: #212121;
  --text-muted: #424242;

  /* Couleurs d’alerte */
  --error-color: #f44336;
  --error-bg: #fdecea;
  --success-color: #4caf50;
  --success-bg: #e8f5e9;
  --info-color: #009688;
  --info-bg: #e0f2f1;

  /* Boutons */
  --btn-primary-bg: var(--primary-color);
  --btn-primary-hover: #1b5e20;
  --btn-secondary-bg: var(--bg-color);
  --btn-secondary-color: var(--primary-color);
  --btn-secondary-hover-bg: #e0e0e0;
  --btn-danger-bg: var(--error-color);
  --btn-danger-hover: #ba2d25;

  /* Rayons & espaces */
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 30px;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
}

/* === TYPOGRAPHIE === */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: var(--space-sm);
}

p {
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}

/* === LIENS === */
a {
  color: var(--primary-color);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.3s ease, text-decoration 0.3s ease;
  outline-offset: 2px;
}

a:visited {
  color: #1b5e20;
}

a:hover,
a:focus {
  color: var(--accent-color);
  text-decoration: underline;
  outline: none;
}

a:active {
  color: var(--secondary-color);
}

/* === BOUTONS === */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  font-weight: 600;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
  text-align: center;
  user-select: none;
  box-shadow: 0 10px 30px rgba(46, 125, 50, 0.3);
}

.btn-primary {
  background-color: var(--btn-primary-bg);
  color: white;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--btn-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(27, 94, 32, 0.4);
  outline: none;
}

.btn-secondary {
  background-color: var(--btn-secondary-bg);
  color: var(--btn-secondary-color);
  border: 2px solid var(--btn-secondary-color);
  box-shadow: none;
}

.btn-secondary:hover,
.btn-secondary:focus {
  background-color: var(--btn-secondary-hover-bg);
  color: var(--accent-color);
  transform: translateY(-2px);
  outline: none;
  box-shadow: none;
}

.btn-danger {
  background-color: var(--btn-danger-bg);
  color: white;
  box-shadow: 0 10px 30px rgba(244, 67, 54, 0.3);
}

.btn-danger:hover,
.btn-danger:focus {
  background-color: var(--btn-danger-hover);
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(186, 45, 37, 0.4);
  outline: none;
}

/* === ICONES GÉNÉRALES === */
.nav-icon {
  font-size: 1.1rem;
  margin-right: 0.75rem;
  color: var(--primary-color);
  min-width: 1.25rem;
  text-align: center;
  display: inline-block;
  transition: color 0.3s ease;
}

a:hover .nav-icon,
a:focus .nav-icon {
  color: var(--accent-color);
}

/* === CARTES / SECTIONS === */
.card {
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.03);
  margin-bottom: var(--space-md);
  transition: box-shadow 0.3s ease;
}

.card:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.07);
}

/* === FORMULAIRES GÉNÉRAUX === */
.form-group {
  margin-bottom: var(--space-md);
  display: flex;
  flex-direction: column;
}

.form-label {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

input,
textarea,
select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid #ccc;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s, box-shadow 0.3s;
  resize: vertical;
  min-height: 50px;
  box-sizing: border-box;
}

textarea {
  min-height: 100px;
  padding-top: 1rem;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--secondary-color);
  box-shadow: 0 0 6px var(--secondary-color);
}

::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}

input[type="checkbox"],
input[type="radio"] {
  width: 18px;
  height: 18px;
  margin-right: 0.5rem;
  cursor: pointer;
  vertical-align: middle;
}

input[type="checkbox"]:focus,
input[type="radio"]:focus {
  outline-offset: 2px;
  outline-color: var(--secondary-color);
  outline-style: solid;
  outline-width: 2px;
}

.checkbox-group,
.radio-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: var(--space-md);
}

/* === MESSAGES D'ALERTE === */
.alert {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  margin-top: var(--space-sm);
  font-size: 0.95rem;
  font-weight: 600;
}

.alert-success {
  background-color: var(--success-bg);
  color: var(--success-color);
  border: 1px solid var(--success-color);
}

.alert-error {
  background-color: var(--error-bg);
  color: var(--error-color);
  border: 1px solid var(--error-color);
}

.alert-info {
  background-color: var(--info-bg);
  color: var(--info-color);
  border: 1px solid var(--info-color);
}

/* === UTILITAIRES === */
.text-center { text-align: center; }
.mt-1 { margin-top: var(--space-sm); }
.mt-2 { margin-top: var(--space-md); }
.mb-1 { margin-bottom: var(--space-sm); }
.mb-2 { margin-bottom: var(--space-md); }
.flex { display: flex; }
.flex-center { justify-content: center; align-items: center; }
.flex-column { flex-direction: column; }
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

/* === IMAGES === */
img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* === ANIMATION === */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fadeInUp {
  animation: fadeInUp 0.8s ease-out both;
}

/* === RESPONSIVE === 
@media (max-width: 1024px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }
  h1 { font-size: 2.2rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.5rem; }
  p { font-size: 1rem; }
  .btn {
    padding: 0.9rem 1.5rem;
    font-size: 0.95rem;
  }
  img {
    border-radius: var(--radius-sm);
  }
}
																																											

  @media (max-width: 480px) {
	h1 { font-size: 1.8rem; }
	h2 { font-size: 1.6rem; }
	h3 { font-size: 1.3rem; }
	p { font-size: 0.95rem; }
	.btn {
	  padding: 0.8rem 1.2rem;
	  font-size: 0.9rem;
	}
  }   
*/		


  /* Reset mobile */
  @media (max-width: 767px) {
    .hero-container {
      flex-direction: column !important;
      padding: 15px !important;
    }
    
    .hero-content, 
    .hero-image {
      width: 100% !important;
      max-width: 100% !important;
    }
    
    .hero-content h1 {
      font-size: 1.8rem !important;
      line-height: 1.3 !important;
    }
    
    .hero-subtitle {
      font-size: 1rem !important;
    }
    
    .cta-button {
      display: block;
      width: 100%;
      text-align: center;
      padding: 12px !important;
    }
  }

  /* Correction spécifique pour ton problème de texte */
  .hero-content {
    word-wrap: break-word;
    overflow-wrap: break-word;
  }