/* ===== RESET & BASE STYLES ===== */
:root {
  --primary-color: #e67e22; /* Orange chaleureux */
  --secondary-color: #2980b9; /* Bleu de confiance */
  --dark-color: #2c3e50;
  --light-color: #ecf0f1;
  --success-color: #27ae60;
  --error-color: #e74c3c;
  --font-main: 'Roboto', sans-serif;
  --font-heading: 'Open Sans', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  line-height: 1.6;
  color: var(--dark-color);
  background-color: #f9f9f9;
}

a {
  text-decoration: none;
  color: var(--secondary-color);
  transition: all 0.3s ease;
}

a:hover {
  color: var(--primary-color);
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.reveal-parallax {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  margin-bottom: 1rem;
  color: var(--dark-color);
}

h1 {
  font-size: 2.5rem;
  line-height: 1.2;
}

h2 {
  font-size: 2rem;
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 0.5rem;
  display: inline-block;
}

/* ===== HEADER STYLES ===== */
header {
    width: 100%;
    background-color: #fff;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-img {
  height: 60px;
  width: auto;
  object-fit: contain;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-main {
    color: #e67e22; /* Orange */
}

.logo-sub {
    color: #2980b9; /* Bleu */
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #2c3e50;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 4px;
}

.nav-link:hover {
    color: #e67e22;
    background-color: #f8f9fa;
}

.nav-link i {
    font-size: 1.1rem;
}

.donate-cta {
    background-color: #e67e22;
    color: white !important;
    padding: 8px 20px !important;
}

.donate-cta:hover {
    background-color: #d35400 !important;
}

/* ===== HERO SECTION ===== */
.hero {
  background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../img/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  color: white;
  text-align: center;
  padding: 6rem 0;
  margin-bottom: 3rem;
}

.hero h1 {
  color: white;
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.cta-button {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  margin-top: 1rem;
  transition: all 0.3s ease;
}

.cta-button:hover {
  background-color: #d35400;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* ===== CARD STYLES (Pour les actions) ===== */
.action-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  margin-bottom: 2rem;
  transition: transform 0.3s ease;
}

.action-card:hover {
  transform: translateY(-10px);
}

.card-img {
  height: 200px;
  overflow: hidden;
}

.card-content {
  padding: 1.5rem;
}

/* ===== FORM STYLES ===== */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: inherit;
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

.btn {
  background-color: var(--secondary-color);
  color: white;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.btn:hover {
  background-color: #1a5276;
}

/* ===== FOOTER ===== */
footer {
  background-color: #f5f5f5;
  font-size: 0.95rem;
  color: #333;
}

.footer-content {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 0.1rem 0; /* ← réduit verticalement */
}

.footer-section {
  flex: 1 1 200px;
  margin-bottom: 1rem;
  background: white;
  border-top: 30px solid #0066cc; /* Bande bleue */
  padding: 1rem;
  box-shadow: 0 0 0 1px #ddd; /* Alternative à border pour éviter le double trait */
  border-radius: 8px; /* Coins arrondis */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  /*transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);*/
  position: relative;
  overflow: hidden; /* Pour les pseudo-éléments */
  transform-style: preserve-3d; /* Active la 3D */
  transition: transform 0.8s ease;
  perspective: 1000px; /* Profondeur de la scène 3D */
  box-shadow: 
        10px 10px 20px rgba(0, 0, 0, 0.2),
        -5px -5px 15px rgba(255, 255, 255, 0.1); /* Ombre multidirectionnelle */
}

.footer-section:hover {
	transform: rotateY(15deg) rotateX(5deg); /* Inclinaison 3D */
    box-shadow: 0 12px 24px rgba(0, 102, 204, 0.2);
}

.footer-section h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.footer-section p {
  margin: 0.3rem 0;
  line-height: 1.4;
}

.social-links {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.social-links a {
  color: #333;
  text-decoration: none;
  font-size: 1.2rem;
}

.social-links a:hover {
  color: #f68b1e;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid #ddd;
  padding: 0.8rem 0;
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

.contact-page {
  background-image: url('/assets/img/fond3.png'); /* change le chemin selon ton image */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 4rem 2rem;
  position: relative;
}

.contact-page::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4); /* voile sombre */
  z-index: 1;
}

.contact-page > * {
  position: relative;
  z-index: 2;
}


.contact-intro {
  max-width: 700px;
  margin: 0 auto 2rem auto;
  text-align: center;
}

.contact-content {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem;
}

.contact-form {
  background-color: #f8f8f8;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 0; /* Supprime tout espacement automatique */
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 0.5rem; /* espacement contrôlé entre les lignes */
}

.form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-bottom: 0.5rem; /* réduit à un minimum */
}

.contact-form label {
  font-weight: 600;
  font-size: 0.95rem;
  margin: 0 0 0.25rem 0; /* réduit l’espace sous le label */
}

.contact-form input,
.contact-form textarea {
  margin: 0;
  padding: 0.5rem 0.75rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 0.95rem;
  line-height: 1.3;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form button {
  background-color: #f68b1e;
  color: white;
  border: none;
  padding: 0.7rem 1.4rem;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  margin-top: 0.8rem;
}

.contact-form button:hover {
  background-color: #e17812;
}

@media (max-width: 700px) {
  .form-row {
    flex-direction: column;
  }
}

/* ===== ANIMATIONS ===== */
.animate {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

.animate.animated {
  opacity: 1;
  transform: translateY(0);
}

/* Alertes */
.alert {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 15px 25px;
  border-radius: 5px;
  color: white;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  animation: slideIn 0.3s ease-out;
}

.alert.success {
  background-color: var(--success-color);
}

.alert.error {
  background-color: var(--error-color);
}

.alert.fade-out {
  animation: fadeOut 0.5s ease-out forwards;
}

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeOut {
  to { opacity: 0; transform: translateY(-20px); }
}



.about-page {
  padding: 2rem 0;
  font-family: 'Open Sans', sans-serif;
}

.about-page h1 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
  color: #f68b1e;
}

.about-page h2 {
  margin-top: 2rem;
  color: #444;
}

.about-intro, .about-mission, .about-values, .about-team, .about-docs {
  margin-bottom: 1.5rem;
}

.about-page ul {
  list-style-type: disc;
  padding-left: 1.5rem;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.values-grid div {
  background: #f5f5f5;
  padding: 1rem;
  border-radius: 6px;
  font-weight: 500;
  color: #333;
}

.about-docs a {
  text-decoration: none;
  color: #0066cc;
}

.about-docs a:hover {
  text-decoration: underline;
}

.bg-beige {
  background-color: #fef8f4;
}

.bg-blue {
  background-color: #f0f4f8;
}

.bg-lightgray {
  background-color: #f9f9f9;
}

.bg-peach {
  background-color: #fff6ec;
}

.bg-neutral {
  background-color: #f0f0f0;
}

.hero-section {
  background-color: #fef8f4;
  padding: 4rem 2rem;
  text-align: center;
}

.hero-content h1 {
  font-size: 2.5rem;
  color: #f68b1e;
}

.hero-buttons {
  margin-top: 1.5rem;
}

.btn-primary, .btn-outline {
  display: inline-block;
  padding: 0.75rem 1.4rem;
  border-radius: 6px;
  font-weight: bold;
  margin: 0.5rem;
  text-decoration: none;
  transition: 0.3s;
}

.btn-primary {
  background-color: #f68b1e;
  color: white;
  border: none;
}

.btn-outline {
  border: 2px solid #f68b1e;
  color: #f68b1e;
}

.btn-outline:hover {
  background: #f68b1e;
  color: white;
}

.actions-grid .card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 5px rgba(0,0,0,0.05);
  padding: 1rem;
  text-align: center;
}

.card img {
  width: 100%;
  border-radius: 6px;
  margin-bottom: 0.8rem;
}

.news-card {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  text-align: left;
}

.action-section h2 {
  color: #f68b1e;
  margin-bottom: 1rem;
}

.action-section ul {
  list-style: disc;
  padding-left: 1.5rem;
  color: #333;
}

.cta-section {
  padding: 3rem 0;
}

.cta-section h2 {
  margin-bottom: 1rem;
}

.responsive-img {
  width: 100%;
  border-radius: 8px;
}

.donation-form {
  max-width: 400px;
  margin: auto;
  padding: 2rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 5px rgba(0,0,0,0.05);
}

.donation-form label {
  font-weight: bold;
  display: block;
  margin: 1rem 0 0.3rem;
}

.donation-form input,
.donation-form select {
  width: 100%;
  padding: 0.7rem;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.nav-link.paypal-donate form {
  display: inline-block;
  margin-top: 0.5rem;
}

.alert {
  position: fixed;
  top: 20px;
  right: 20px;
  background-color: #27ae60;
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 5px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  z-index: 10000;
  transition: all 0.3s ease;
}

.alert.error {
  background-color: #e74c3c;
}

.alert.success {
  background-color: #27ae60;
}

/* Container Principal */
.gallery-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            gap: 15px;
            padding: 20px;
        }
        
        .gallery-img {
            width: 100%;
            height: 180px;
            object-fit: cover;
            cursor: zoom-in;
            transition: transform 0.3s;
        }
        
        .gallery-img:hover {
            transform: scale(1.02);
        }
        
        /* Lightbox amélioré */
        .lightbox {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.9);
            z-index: 1000;
            align-items: center;
            justify-content: center;
        }
        
        .lightbox-content {
            position: relative;
            max-width: 90vw;
            max-height: 90vh;
            text-align: center;
        }
        
        .lightbox-img {
            max-height: 80vh;
            max-width: 90vw;
            object-fit: contain;
        }
        
        .lightbox-btn {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background: rgba(255,255,255,0.3);
            color: white;
            border: none;
            font-size: 2rem;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            cursor: pointer;
            transition: all 0.3s;
        }
        
        .lightbox-btn:hover {
            background: rgba(255,255,255,0.5);
        }
        
        .lightbox-prev {
            left: 20px;
        }
        
        .lightbox-next {
            right: 20px;
        }
        
        .lightbox-close {
            position: absolute;
            top: 20px;
            right: 20px;
            font-size: 2rem;
            color: white;
            background: none;
            border: none;
            cursor: pointer;
        }

