# Master Traiteur — PHP + Bootstrap 5 Clone

A luxury catering/wedding website clone built with **PHP includes + HTML5 + CSS3 + jQuery + Bootstrap 5**.
No database, no backend framework — ready for shared hosting (Hostinger `public_html`).

## Structure

```
/
├── index.php          # Home
├── about.php          # À propos
├── services.php       # Nos Services
├── contact.php        # Contact + form
├── /assets
│   ├── /css/style.css
│   ├── /js/script.js
│   └── /images        # hero, about, gallery-1..6 (PNG)
├── /includes
│   ├── config.php     # ALL site settings (phone, email, WhatsApp, webhook)
│   ├── header.php
│   ├── navbar.php
│   └── footer.php
└── /components
    ├── hero.php
    ├── services.php
    ├── gallery.php
    ├── testimonials.php
    └── whatsapp-button.php
```

## 1. Configure your details

Edit **`includes/config.php`** — phone numbers, email, address, and the WhatsApp number
(`WHATSAPP_NUMBER`, digits only, e.g. `2120671746671`) are all defined there once.

## 2. WhatsApp button

Already wired to `wa.me/2120671746671`. Change `WHATSAPP_NUMBER` in `config.php` to update everywhere.

## 3. Contact form → Google Sheets

1. Create a Google Sheet with header row: `date | name | phone | email | event_type | message`.
2. **Extensions → Apps Script**, paste:

   ```js
   function doPost(e) {
     var sheet = SpreadsheetApp.getActiveSpreadsheet().getActiveSheet();
     var d = e.parameter;
     sheet.appendRow([d.date, d.name, d.phone, d.email, d.event_type, d.message]);
     return ContentService
       .createTextOutput(JSON.stringify({ result: "success" }))
       .setMimeType(ContentService.MimeType.JSON);
   }
   ```

3. **Deploy → New deployment → Web app** → Execute as **Me**, access **Anyone** → copy the `/exec` URL.
4. Paste that URL into `GOOGLE_SHEETS_WEBHOOK_URL` in **`assets/js/script.js`** (top of section 7).

> Until a URL is set, the form shows a success message on the front end only (no data sent).

## 4. Deploy to Hostinger

Upload the entire folder contents into `public_html` via File Manager or FTP. Requires PHP 7.4+.
No build step, no dependencies to install.
