procheimmo commited on
Commit
8febcbf
·
verified ·
1 Parent(s): 547cbeb

Add 1 files

Browse files
Files changed (1) hide show
  1. index.html +190 -343
index.html CHANGED
@@ -39,12 +39,15 @@
39
  .hidden {
40
  display: none;
41
  }
42
- #logoPreview, #heroPreview {
43
  max-width: 100%;
44
  max-height: 200px;
45
  margin-top: 10px;
46
  border-radius: 8px;
47
  }
 
 
 
48
  </style>
49
  </head>
50
  <body class="font-sans antialiased text-gray-800">
@@ -93,6 +96,178 @@
93
  </div>
94
  </div>
95
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
96
  <!-- Header -->
97
  <header class="gradient-bg text-white sticky top-0 z-50 shadow-lg">
98
  <div class="container mx-auto px-4 py-3 flex justify-between items-center">
@@ -122,6 +297,9 @@
122
  <button onclick="openModal()" class="bg-yellow-400 hover:bg-yellow-500 text-blue-900 font-bold px-4 py-2 rounded-full transition">
123
  <i class="fas fa-image mr-2"></i> Changer images
124
  </button>
 
 
 
125
  <button class="bg-yellow-400 hover:bg-yellow-500 text-blue-900 font-bold px-4 py-2 rounded-full transition">
126
  <i class="fas fa-user-plus mr-2"></i> Adhérer
127
  </button>
@@ -139,8 +317,8 @@
139
  <h2 class="text-4xl md:text-5xl font-bold mb-6">Club des Professionnels de l'Immobilier au Maroc</h2>
140
  <p class="text-xl mb-8">Un réseau d'excellence pour les acteurs du secteur immobilier marocain</p>
141
  <div class="flex flex-col sm:flex-row space-y-4 sm:space-y-0 sm:space-x-4">
142
- <button class="bg-yellow-400 hover:bg-yellow-500 text-blue-900 font-bold px-6 py-3 rounded-full transition">
143
- <i class="fas fa-home mr-2"></i> Découvrir nos annonces
144
  </button>
145
  <button class="bg-transparent hover:bg-blue-800 text-white font-bold px-6 py-3 border-2 border-white rounded-full transition">
146
  <i class="fas fa-info-circle mr-2"></i> En savoir plus
@@ -239,9 +417,15 @@
239
  <!-- Property Listings -->
240
  <section id="annonces" class="py-20 bg-gray-50">
241
  <div class="container mx-auto px-4">
242
- <h2 class="text-3xl font-bold text-center mb-16">Annonces Immobilières</h2>
 
 
 
 
 
243
 
244
- <div class="grid md:grid-cols-3 gap-8">
 
245
  <div class="property-card bg-white rounded-lg overflow-hidden shadow-md transition duration-300">
246
  <img src="https://via.placeholder.com/400x250" alt="Appartement luxueux" class="w-full h-48 object-cover">
247
  <div class="p-6">
@@ -444,342 +628,5 @@
444
  </section>
445
 
446
  <!-- Contact Section -->
447
- <section id="contact" class="py-20 bg-white">
448
- <div class="container mx-auto px-4">
449
- <h2 class="text-3xl font-bold text-center mb-16">Contactez-nous</h2>
450
-
451
- <div class="flex flex-col md:flex-row gap-12">
452
- <div class="md:w-1/2">
453
- <form class="space-y-6">
454
- <div>
455
- <label for="name" class="block text-gray-700 font-medium mb-2">Nom complet</label>
456
- <input type="text" id="name" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-900 focus:border-transparent">
457
- </div>
458
-
459
- <div>
460
- <label for="email" class="block text-gray-700 font-medium mb-2">Email</label>
461
- <input type="email" id="email" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-900 focus:border-transparent">
462
- </div>
463
-
464
- <div>
465
- <label for="subject" class="block text-gray-700 font-medium mb-2">Sujet</label>
466
- <select id="subject" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-900 focus:border-transparent">
467
- <option value="">Sélectionnez un sujet</option>
468
- <option value="membership">Adhésion au club</option>
469
- <option value="event">Événement</option>
470
- <option value="partnership">Partenariat</option>
471
- <option value="other">Autre</option>
472
- </select>
473
- </div>
474
-
475
- <div>
476
- <label for="message" class="block text-gray-700 font-medium mb-2">Message</label>
477
- <textarea id="message" rows="5" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-900 focus:border-transparent"></textarea>
478
- </div>
479
-
480
- <button type="submit" class="w-full bg-blue-900 hover:bg-blue-800 text-white py-3 rounded-lg transition font-medium">
481
- Envoyer le message
482
- </button>
483
- </form>
484
- </div>
485
-
486
- <div class="md:w-1/2">
487
- <div class="bg-gray-50 p-8 rounded-lg shadow-md h-full">
488
- <h3 class="text-2xl font-bold mb-6">Nos coordonnées</h3>
489
-
490
- <div class="space-y-6">
491
- <div class="flex items-start">
492
- <div class="flex-shrink-0">
493
- <i class="fas fa-map-marker-alt text-blue-900 text-xl mt-1"></i>
494
- </div>
495
- <div class="ml-4">
496
- <h4 class="text-lg font-medium">Adresse</h4>
497
- <p class="text-gray-600">Tour Atlas, Angle Bd Zerktouni et Bd Al Massira, Casablanca</p>
498
- </div>
499
- </div>
500
-
501
- <div class="flex items-start">
502
- <div class="flex-shrink-0">
503
- <i class="fas fa-phone-alt text-blue-900 text-xl mt-1"></i>
504
- </div>
505
- <div class="ml-4">
506
- <h4 class="text-lg font-medium">Téléphone</h4>
507
- <p class="text-gray-600">+212 5 22 45 67 89</p>
508
- </div>
509
- </div>
510
-
511
- <div class="flex items-start">
512
- <div class="flex-shrink-0">
513
- <i class="fas fa-envelope text-blue-900 text-xl mt-1"></i>
514
- </div>
515
- <div class="ml-4">
516
- <h4 class="text-lg font-medium">Email</h4>
517
- <p class="text-gray-600">contact@cpimaroc.ma</p>
518
- </div>
519
- </div>
520
-
521
- <div class="flex items-start">
522
- <div class="flex-shrink-0">
523
- <i class="fas fa-clock text-blue-900 text-xl mt-1"></i>
524
- </div>
525
- <div class="ml-4">
526
- <h4 class="text-lg font-medium">Horaires d'ouverture</h4>
527
- <p class="text-gray-600">Lundi - Vendredi: 9h00 - 18h00</p>
528
- </div>
529
- </div>
530
- </div>
531
-
532
- <div class="mt-8">
533
- <h4 class="text-lg font-medium mb-4">Suivez-nous</h4>
534
- <div class="flex space-x-4">
535
- <a href="#" class="bg-blue-900 text-white p-3 rounded-full hover:bg-blue-800 transition">
536
- <i class="fab fa-facebook-f"></i>
537
- </a>
538
- <a href="#" class="bg-blue-900 text-white p-3 rounded-full hover:bg-blue-800 transition">
539
- <i class="fab fa-linkedin-in"></i>
540
- </a>
541
- <a href="#" class="bg-blue-900 text-white p-3 rounded-full hover:bg-blue-800 transition">
542
- <i class="fab fa-instagram"></i>
543
- </a>
544
- <a href="#" class="bg-blue-900 text-white p-3 rounded-full hover:bg-blue-800 transition">
545
- <i class="fab fa-youtube"></i>
546
- </a>
547
- </div>
548
- </div>
549
- </div>
550
- </div>
551
- </div>
552
- </div>
553
- </section>
554
-
555
- <!-- Newsletter -->
556
- <section class="py-16 bg-blue-900 text-white">
557
- <div class="container mx-auto px-4 text-center">
558
- <h2 class="text-3xl font-bold mb-6">Abonnez-vous à notre newsletter</h2>
559
- <p class="text-xl mb-8 max-w-2xl mx-auto">Recevez les dernières actualités du secteur immobilier et les événements du CPI directement dans votre boîte email.</p>
560
-
561
- <form class="flex flex-col sm:flex-row max-w-md mx-auto sm:max-w-xl">
562
- <input type="email" placeholder="Votre email" class="flex-grow px-4 py-3 rounded-l-lg sm:rounded-r-none rounded-r-lg sm:rounded-l-lg focus:outline-none text-gray-900">
563
- <button type="submit" class="bg-yellow-400 hover:bg-yellow-500 text-blue-900 font-bold px-6 py-3 rounded-r-lg sm:rounded-l-none rounded-l-lg sm:rounded-r-lg mt-2 sm:mt-0 sm:ml-2 transition">
564
- <i class="fas fa-paper-plane mr-2"></i> S'abonner
565
- </button>
566
- </form>
567
- </div>
568
- </section>
569
-
570
- <!-- Footer -->
571
- <footer class="bg-gray-900 text-white py-12">
572
- <div class="container mx-auto px-4">
573
- <div class="grid md:grid-cols-4 gap-8">
574
- <div>
575
- <div class="flex items-center space-x-2 mb-4">
576
- <img id="footerLogo" src="https://via.placeholder.com/40" alt="Logo CPI" class="h-10 w-10 object-contain">
577
- <h3 class="text-xl font-bold">CPI Maroc</h3>
578
- </div>
579
- <p class="text-gray-400">Le Club des Professionnels de l'Immobilier au Maroc rassemble les acteurs majeurs du secteur autour des valeurs d'excellence et d'éthique.</p>
580
- </div>
581
-
582
- <div>
583
- <h4 class="text-lg font-bold mb-4">Liens rapides</h4>
584
- <ul class="space-y-2">
585
- <li><a href="#accueil" class="text-gray-400 hover:text-white transition">Accueil</a></li>
586
- <li><a href="#presentation" class="text-gray-400 hover:text-white transition">Présentation</a></li>
587
- <li><a href="#activites" class="text-gray-400 hover:text-white transition">Nos activités</a></li>
588
- <li><a href="#annonces" class="text-gray-400 hover:text-white transition">Annonces</a></li>
589
- <li><a href="#contact" class="text-gray-400 hover:text-white transition">Contact</a></li>
590
- </ul>
591
- </div>
592
-
593
- <div>
594
- <h4 class="text-lg font-bold mb-4">Documents</h4>
595
- <ul class="space-y-2">
596
- <li><a href="#" class="text-gray-400 hover:text-white transition">Statuts du club</a></li>
597
- <li><a href="#" class="text-gray-400 hover:text-white transition">Règlement intérieur</a></li>
598
- <li><a href="#" class="text-gray-400 hover:text-white transition">Charte éthique</a></li>
599
- <li><a href="#" class="text-gray-400 hover:text-white transition">Rapports annuels</a></li>
600
- </ul>
601
- </div>
602
-
603
- <div>
604
- <h4 class="text-lg font-bold mb-4">Contact</h4>
605
- <address class="not-italic text-gray-400">
606
- <p class="mb-2">Tour Atlas, Angle Bd Zerktouni et Bd Al Massira</p>
607
- <p class="mb-2">Casablanca, Maroc</p>
608
- <p class="mb-2">Tél: +212 5 22 45 67 89</p>
609
- <p>Email: contact@cpimaroc.ma</p>
610
- </address>
611
- </div>
612
- </div>
613
-
614
- <div class="border-t border-gray-800 mt-12 pt-8 flex flex-col md:flex-row justify-between items-center">
615
- <p class="text-gray-400 text-sm mb-4 md:mb-0">© 2023 CPI Maroc. Tous droits réservés.</p>
616
- <div class="flex space-x-6">
617
- <a href="#" class="text-gray-400 hover:text-white transition">
618
- <i class="fab fa-facebook-f"></i>
619
- </a>
620
- <a href="#" class="text-gray-400 hover:text-white transition">
621
- <i class="fab fa-linkedin-in"></i>
622
- </a>
623
- <a href="#" class="text-gray-400 hover:text-white transition">
624
- <i class="fab fa-instagram"></i>
625
- </a>
626
- <a href="#" class="text-gray-400 hover:text-white transition">
627
- <i class="fab fa-youtube"></i>
628
- </a>
629
- </div>
630
- </div>
631
- </div>
632
- </footer>
633
-
634
- <!-- Back to Top Button -->
635
- <button id="backToTop" class="fixed bottom-8 right-8 bg-blue-900 text-white p-3 rounded-full shadow-lg opacity-0 invisible transition-all duration-300">
636
- <i class="fas fa-arrow-up"></i>
637
- </button>
638
-
639
- <script>
640
- // Image Upload Functionality
641
- function openModal() {
642
- document.getElementById('uploadModal').classList.remove('hidden');
643
- }
644
-
645
- function closeModal() {
646
- document.getElementById('uploadModal').classList.add('hidden');
647
- // Reset previews
648
- document.getElementById('logoPreview').classList.add('hidden');
649
- document.getElementById('heroPreview').classList.add('hidden');
650
- // Reset file inputs
651
- document.getElementById('logoUpload').value = '';
652
- document.getElementById('heroUpload').value = '';
653
- // Reset file names
654
- document.getElementById('logoFileName').textContent = 'Aucun fichier sélectionné';
655
- document.getElementById('heroFileName').textContent = 'Aucun fichier sélectionné';
656
- }
657
-
658
- function previewLogo(event) {
659
- const input = event.target;
660
- const fileName = input.files[0]?.name || 'Aucun fichier sélectionné';
661
- document.getElementById('logoFileName').textContent = fileName;
662
-
663
- if (input.files && input.files[0]) {
664
- const reader = new FileReader();
665
- const preview = document.getElementById('logoPreview');
666
-
667
- reader.onload = function(e) {
668
- preview.src = e.target.result;
669
- preview.classList.remove('hidden');
670
- }
671
-
672
- reader.readAsDataURL(input.files[0]);
673
- }
674
- }
675
-
676
- function previewHero(event) {
677
- const input = event.target;
678
- const fileName = input.files[0]?.name || 'Aucun fichier sélectionné';
679
- document.getElementById('heroFileName').textContent = fileName;
680
-
681
- if (input.files && input.files[0]) {
682
- const reader = new FileReader();
683
- const preview = document.getElementById('heroPreview');
684
-
685
- reader.onload = function(e) {
686
- preview.src = e.target.result;
687
- preview.classList.remove('hidden');
688
- }
689
-
690
- reader.readAsDataURL(input.files[0]);
691
- }
692
- }
693
-
694
- function saveImages() {
695
- const logoInput = document.getElementById('logoUpload');
696
- const heroInput = document.getElementById('heroUpload');
697
-
698
- if (logoInput.files && logoInput.files[0]) {
699
- const reader = new FileReader();
700
- reader.onload = function(e) {
701
- document.getElementById('displayLogo').src = e.target.result;
702
- document.getElementById('footerLogo').src = e.target.result;
703
- // Store in localStorage for persistence
704
- localStorage.setItem('cpiLogo', e.target.result);
705
- }
706
- reader.readAsDataURL(logoInput.files[0]);
707
- }
708
-
709
- if (heroInput.files && heroInput.files[0]) {
710
- const reader = new FileReader();
711
- reader.onload = function(e) {
712
- document.getElementById('displayHero').src = e.target.result;
713
- // Store in localStorage for persistence
714
- localStorage.setItem('cpiHero', e.target.result);
715
- }
716
- reader.readAsDataURL(heroInput.files[0]);
717
- }
718
-
719
- closeModal();
720
- }
721
-
722
- // Load saved images on page load
723
- window.addEventListener('DOMContentLoaded', function() {
724
- const savedLogo = localStorage.getItem('cpiLogo');
725
- const savedHero = localStorage.getItem('cpiHero');
726
-
727
- if (savedLogo) {
728
- document.getElementById('displayLogo').src = savedLogo;
729
- document.getElementById('footerLogo').src = savedLogo;
730
- }
731
-
732
- if (savedHero) {
733
- document.getElementById('displayHero').src = savedHero;
734
- }
735
- });
736
-
737
- // Back to Top Button
738
- const backToTopButton = document.getElementById('backToTop');
739
-
740
- window.addEventListener('scroll', () => {
741
- if (window.pageYOffset > 300) {
742
- backToTopButton.classList.remove('opacity-0', 'invisible');
743
- backToTopButton.classList.add('opacity-100', 'visible');
744
- } else {
745
- backToTopButton.classList.remove('opacity-100', 'visible');
746
- backToTopButton.classList.add('opacity-0', 'invisible');
747
- }
748
- });
749
-
750
- backToTopButton.addEventListener('click', () => {
751
- window.scrollTo({
752
- top: 0,
753
- behavior: 'smooth'
754
- });
755
- });
756
-
757
- // Smooth scrolling for anchor links
758
- document.querySelectorAll('a[href^="#"]').forEach(anchor => {
759
- anchor.addEventListener('click', function (e) {
760
- e.preventDefault();
761
-
762
- document.querySelector(this.getAttribute('href')).scrollIntoView({
763
- behavior: 'smooth'
764
- });
765
- });
766
- });
767
-
768
- // Mobile menu toggle (if you want to implement it)
769
- const mobileMenuButton = document.querySelector('.md\\:hidden.text-white');
770
- mobileMenuButton.addEventListener('click', () => {
771
- const nav = document.querySelector('nav.hidden.md\\:flex');
772
- nav.classList.toggle('hidden');
773
- nav.classList.toggle('flex');
774
- nav.classList.toggle('flex-col');
775
- nav.classList.toggle('absolute');
776
- nav.classList.toggle('top-16');
777
- nav.classList.toggle('left-0');
778
- nav.classList.toggle('right-0');
779
- nav.classList.toggle('bg-blue-900');
780
- nav.classList.toggle('p-4');
781
- nav.classList.toggle('space-y-4');
782
- });
783
- </script>
784
- <p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=procheimmo/cpimaroc" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
785
  </html>
 
39
  .hidden {
40
  display: none;
41
  }
42
+ #logoPreview, #heroPreview, #propertyImagePreview {
43
  max-width: 100%;
44
  max-height: 200px;
45
  margin-top: 10px;
46
  border-radius: 8px;
47
  }
48
+ .transition-all {
49
+ transition: all 0.3s ease;
50
+ }
51
  </style>
52
  </head>
53
  <body class="font-sans antialiased text-gray-800">
 
96
  </div>
97
  </div>
98
 
99
+ <!-- Annonce Deposit Modal -->
100
+ <div id="annonceModal" class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 hidden">
101
+ <div class="bg-white rounded-lg p-6 w-full max-w-2xl max-h-[90vh] overflow-y-auto">
102
+ <div class="flex justify-between items-center mb-4">
103
+ <h3 class="text-xl font-bold">Déposer une annonce immobilière</h3>
104
+ <button onclick="closeAnnonceModal()" class="text-gray-500 hover:text-gray-700">
105
+ <i class="fas fa-times"></i>
106
+ </button>
107
+ </div>
108
+
109
+ <form id="annonceForm" class="space-y-4">
110
+ <div class="grid md:grid-cols-2 gap-4">
111
+ <div>
112
+ <label for="annonceType" class="block text-gray-700 font-medium mb-2">Type d'annonce*</label>
113
+ <select id="annonceType" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-900 focus:border-transparent" required>
114
+ <option value="">Sélectionnez un type</option>
115
+ <option value="vente">À vendre</option>
116
+ <option value="location">À louer</option>
117
+ <option value="colocation">Colocation</option>
118
+ <option value="vacances">Location vacances</option>
119
+ </select>
120
+ </div>
121
+
122
+ <div>
123
+ <label for="annonceCategory" class="block text-gray-700 font-medium mb-2">Catégorie*</label>
124
+ <select id="annonceCategory" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-900 focus:border-transparent" required>
125
+ <option value="">Sélectionnez une catégorie</option>
126
+ <option value="appartement">Appartement</option>
127
+ <option value="maison">Maison/Villa</option>
128
+ <option value="terrain">Terrain</option>
129
+ <option value="bureau">Bureau/Commerce</option>
130
+ <option value="autre">Autre</option>
131
+ </select>
132
+ </div>
133
+ </div>
134
+
135
+ <div>
136
+ <label for="annonceTitle" class="block text-gray-700 font-medium mb-2">Titre de l'annonce*</label>
137
+ <input type="text" id="annonceTitle" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-900 focus:border-transparent" placeholder="Ex: Magnifique appartement avec vue mer" required>
138
+ </div>
139
+
140
+ <div>
141
+ <label for="annonceDescription" class="block text-gray-700 font-medium mb-2">Description détaillée*</label>
142
+ <textarea id="annonceDescription" rows="4" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-900 focus:border-transparent" required></textarea>
143
+ </div>
144
+
145
+ <div class="grid md:grid-cols-3 gap-4">
146
+ <div>
147
+ <label for="annonceSurface" class="block text-gray-700 font-medium mb-2">Surface (m²)*</label>
148
+ <input type="number" id="annonceSurface" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-900 focus:border-transparent" required>
149
+ </div>
150
+
151
+ <div>
152
+ <label for="annoncePieces" class="block text-gray-700 font-medium mb-2">Nombre de pièces*</label>
153
+ <input type="number" id="annoncePieces" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-900 focus:border-transparent" required>
154
+ </div>
155
+
156
+ <div>
157
+ <label for="annoncePrix" class="block text-gray-700 font-medium mb-2">Prix*</label>
158
+ <input type="number" id="annoncePrix" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-900 focus:border-transparent" required>
159
+ </div>
160
+ </div>
161
+
162
+ <div class="grid md:grid-cols-2 gap-4">
163
+ <div>
164
+ <label for="annonceVille" class="block text-gray-700 font-medium mb-2">Ville*</label>
165
+ <select id="annonceVille" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-900 focus:border-transparent" required>
166
+ <option value="">Sélectionnez une ville</option>
167
+ <option value="casablanca">Casablanca</option>
168
+ <option value="rabat">Rabat</option>
169
+ <option value="marrakech">Marrakech</option>
170
+ <option value="tanger">Tanger</option>
171
+ <option value="agadir">Agadir</option>
172
+ <option value="fes">Fès</option>
173
+ <option value="meknes">Meknès</option>
174
+ <option value="oujda">Oujda</option>
175
+ <option value="autre">Autre</option>
176
+ </select>
177
+ </div>
178
+
179
+ <div>
180
+ <label for="annonceQuartier" class="block text-gray-700 font-medium mb-2">Quartier*</label>
181
+ <input type="text" id="annonceQuartier" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-900 focus:border-transparent" required>
182
+ </div>
183
+ </div>
184
+
185
+ <div>
186
+ <label for="annonceAdresse" class="block text-gray-700 font-medium mb-2">Adresse complète</label>
187
+ <input type="text" id="annonceAdresse" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-900 focus:border-transparent">
188
+ </div>
189
+
190
+ <div>
191
+ <label class="block text-gray-700 font-medium mb-2">Photo du bien*</label>
192
+ <div class="flex items-center">
193
+ <label for="propertyImageUpload" class="cursor-pointer bg-blue-100 text-blue-900 px-4 py-2 rounded-lg hover:bg-blue-200 transition">
194
+ <i class="fas fa-upload mr-2"></i> Choisir une image
195
+ </label>
196
+ <span id="propertyImageFileName" class="ml-3 text-gray-600 text-sm">Aucun fichier sélectionné</span>
197
+ </div>
198
+ <input type="file" id="propertyImageUpload" accept="image/*" class="hidden" onchange="previewPropertyImage(event)" required>
199
+ <img id="propertyImagePreview" class="hidden">
200
+ </div>
201
+
202
+ <div class="pt-4 border-t border-gray-200">
203
+ <h4 class="text-lg font-medium mb-3">Caractéristiques supplémentaires</h4>
204
+ <div class="grid md:grid-cols-3 gap-4">
205
+ <label class="flex items-center space-x-2">
206
+ <input type="checkbox" class="rounded text-blue-900">
207
+ <span>Meublé</span>
208
+ </label>
209
+ <label class="flex items-center space-x-2">
210
+ <input type="checkbox" class="rounded text-blue-900">
211
+ <span>Climatisation</span>
212
+ </label>
213
+ <label class="flex items-center space-x-2">
214
+ <input type="checkbox" class="rounded text-blue-900">
215
+ <span>Chauffage</span>
216
+ </label>
217
+ <label class="flex items-center space-x-2">
218
+ <input type="checkbox" class="rounded text-blue-900">
219
+ <span>Parking</span>
220
+ </label>
221
+ <label class="flex items-center space-x-2">
222
+ <input type="checkbox" class="rounded text-blue-900">
223
+ <span>Jardin</span>
224
+ </label>
225
+ <label class="flex items-center space-x-2">
226
+ <input type="checkbox" class="rounded text-blue-900">
227
+ <span>Piscine</span>
228
+ </label>
229
+ </div>
230
+ </div>
231
+
232
+ <div class="pt-4 border-t border-gray-200">
233
+ <h4 class="text-lg font-medium mb-3">Vos coordonnées</h4>
234
+ <div class="grid md:grid-cols-2 gap-4">
235
+ <div>
236
+ <label for="annonceContactName" class="block text-gray-700 font-medium mb-2">Nom complet*</label>
237
+ <input type="text" id="annonceContactName" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-900 focus:border-transparent" required>
238
+ </div>
239
+ <div>
240
+ <label for="annonceContactPhone" class="block text-gray-700 font-medium mb-2">Téléphone*</label>
241
+ <input type="tel" id="annonceContactPhone" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-900 focus:border-transparent" required>
242
+ </div>
243
+ <div>
244
+ <label for="annonceContactEmail" class="block text-gray-700 font-medium mb-2">Email*</label>
245
+ <input type="email" id="annonceContactEmail" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-900 focus:border-transparent" required>
246
+ </div>
247
+ <div>
248
+ <label for="annonceContactAgence" class="block text-gray-700 font-medium mb-2">Agence (si applicable)</label>
249
+ <input type="text" id="annonceContactAgence" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-900 focus:border-transparent">
250
+ </div>
251
+ </div>
252
+ </div>
253
+
254
+ <div class="flex justify-between items-center pt-4">
255
+ <div class="text-sm text-gray-500">
256
+ * Champs obligatoires
257
+ </div>
258
+ <div class="flex space-x-3">
259
+ <button type="button" onclick="closeAnnonceModal()" class="bg-gray-200 hover:bg-gray-300 text-gray-800 px-6 py-2 rounded-lg transition">
260
+ Annuler
261
+ </button>
262
+ <button type="submit" class="bg-blue-900 hover:bg-blue-800 text-white px-6 py-2 rounded-lg transition">
263
+ <i class="fas fa-paper-plane mr-2"></i> Publier l'annonce
264
+ </button>
265
+ </div>
266
+ </div>
267
+ </form>
268
+ </div>
269
+ </div>
270
+
271
  <!-- Header -->
272
  <header class="gradient-bg text-white sticky top-0 z-50 shadow-lg">
273
  <div class="container mx-auto px-4 py-3 flex justify-between items-center">
 
297
  <button onclick="openModal()" class="bg-yellow-400 hover:bg-yellow-500 text-blue-900 font-bold px-4 py-2 rounded-full transition">
298
  <i class="fas fa-image mr-2"></i> Changer images
299
  </button>
300
+ <button onclick="openAnnonceModal()" class="bg-green-500 hover:bg-green-600 text-white font-bold px-4 py-2 rounded-full transition">
301
+ <i class="fas fa-plus mr-2"></i> Déposer annonce
302
+ </button>
303
  <button class="bg-yellow-400 hover:bg-yellow-500 text-blue-900 font-bold px-4 py-2 rounded-full transition">
304
  <i class="fas fa-user-plus mr-2"></i> Adhérer
305
  </button>
 
317
  <h2 class="text-4xl md:text-5xl font-bold mb-6">Club des Professionnels de l'Immobilier au Maroc</h2>
318
  <p class="text-xl mb-8">Un réseau d'excellence pour les acteurs du secteur immobilier marocain</p>
319
  <div class="flex flex-col sm:flex-row space-y-4 sm:space-y-0 sm:space-x-4">
320
+ <button onclick="openAnnonceModal()" class="bg-yellow-400 hover:bg-yellow-500 text-blue-900 font-bold px-6 py-3 rounded-full transition">
321
+ <i class="fas fa-plus mr-2"></i> Déposer une annonce
322
  </button>
323
  <button class="bg-transparent hover:bg-blue-800 text-white font-bold px-6 py-3 border-2 border-white rounded-full transition">
324
  <i class="fas fa-info-circle mr-2"></i> En savoir plus
 
417
  <!-- Property Listings -->
418
  <section id="annonces" class="py-20 bg-gray-50">
419
  <div class="container mx-auto px-4">
420
+ <div class="flex justify-between items-center mb-8">
421
+ <h2 class="text-3xl font-bold">Annonces Immobilières</h2>
422
+ <button onclick="openAnnonceModal()" class="bg-green-500 hover:bg-green-600 text-white font-bold px-4 py-2 rounded-full transition">
423
+ <i class="fas fa-plus mr-2"></i> Déposer une annonce
424
+ </button>
425
+ </div>
426
 
427
+ <div class="grid md:grid-cols-3 gap-8" id="annoncesContainer">
428
+ <!-- Les annonces seront ajoutées dynamiquement ici -->
429
  <div class="property-card bg-white rounded-lg overflow-hidden shadow-md transition duration-300">
430
  <img src="https://via.placeholder.com/400x250" alt="Appartement luxueux" class="w-full h-48 object-cover">
431
  <div class="p-6">
 
628
  </section>
629
 
630
  <!-- Contact Section -->
631
+ <section id="contact" class="py-20 bg-white
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
632
  </html>