/* ==================================================
   FEUILLE DE STYLE PRINCIPALE
   Site : Ain'croyable Photobooth
   Couleurs principales : bleu #1f3a5f / doré #d4a64a
   ================================================== */

/* ==================================================
   VARIABLES GLOBALES
   Pour changer les couleurs du site, modifier ces variables.
   ================================================== */
:root {
  --primary: #1f3a5f;
  --secondary: #d4a64a;
  --dark: #102033;
  --text: #334155;
  --light: #f4f7fb;
  --white: #ffffff;
  --radius: 24px;
  --shadow: 0 18px 45px rgba(31, 58, 95, 0.16);
}

/* ==================================================
   BASE DU SITE
   ================================================== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: Arial, sans-serif; color: var(--text); background: var(--white); line-height: 1.6; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
.container { width: min(1120px, 92%); margin: auto; }

/* ==================================================
   MENU / HEADER
   ================================================== */
.header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,0.94); backdrop-filter: blur(10px); box-shadow: 0 3px 20px rgba(31,58,95,0.08) height: 80px;; }
.nav { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; gap: 20px; }
.logo { font-weight: 900; font-size: 1.25rem; color: var(--primary); letter-spacing: -.03em; }
.logo span { color: var(--secondary); }
.main-nav { display: flex; align-items: center; gap: 22px; font-weight: 700; }
.main-nav a:hover { color: var(--secondary); }
.menu-toggle { display: none; border: 0; background: var(--primary); color: var(--white); border-radius: 12px; padding: 9px 12px; font-size: 1.25rem; }
.btn-small { background: var(--primary); color: var(--white); padding: 10px 16px; border-radius: 999px; }
.btn-small:hover { background: var(--secondary); color: var(--dark); }

/* ==================================================
   BOUTONS
   ================================================== */
.btn-primary, .btn-secondary { display: inline-block; border: none; cursor: pointer; font-weight: 900; border-radius: 999px; padding: 14px 22px; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.btn-primary { background: var(--secondary); color: var(--dark); box-shadow: 0 12px 25px rgba(212,166,74,.28); }
.btn-secondary { background: var(--primary); color: var(--white); box-shadow: 0 12px 25px rgba(31,58,95,.18); }
.btn-primary:hover, .btn-secondary:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

/* ==================================================
   SECTION HERO / ACCUEIL
   ================================================== */
.hero { position: relative; padding: 95px 0; background: linear-gradient(135deg, #f4f7fb 0%, #fff8e8 100%); overflow: hidden; }
.hero-bg { position: absolute; width: 520px; height: 520px; right: -160px; top: -140px; background: radial-gradient(circle, rgba(212,166,74,.35), rgba(212,166,74,0) 65%); pointer-events: none; }
.hero-content { position: relative; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 50px; align-items: center; }
.badge { display: inline-block; background: var(--white); color: var(--primary); padding: 8px 14px; border-radius: 999px; font-weight: 800; margin-bottom: 18px; box-shadow: var(--shadow); border: 1px solid rgba(212,166,74,.35); }
h1 { font-size: clamp(2.2rem, 5vw, 4.6rem); line-height: 1.05; color: var(--primary); margin-bottom: 22px; letter-spacing: -.05em; }
.intro { font-size: 1.18rem; max-width: 620px; margin-bottom: 30px; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-card { background: rgba(255,255,255,.9); border-radius: var(--radius); padding: 34px; text-align: center; box-shadow: var(--shadow); border: 1px solid rgba(212,166,74,.22); }
.floating { animation: float 4.5s ease-in-out infinite; }
.photobooth-shape { width: 210px; height: 330px; margin: 0 auto 20px; border-radius: 110px 110px 42px 42px; background: var(--primary); position: relative; box-shadow: inset 0 0 0 8px #2a4870; }
.screen { width: 110px; height: 78px; background: linear-gradient(135deg, #ffffff, #dbe7f5); border-radius: 16px; position: absolute; top: 80px; left: 50px; border: 5px solid var(--secondary); }
.camera { width: 38px; height: 38px; background: var(--secondary); border-radius: 50%; position: absolute; top: 32px; left: 86px; box-shadow: inset 0 0 0 10px rgba(255,255,255,.25); }
.slot { width: 120px; height: 12px; background: var(--white); border-radius: 20px; position: absolute; bottom: 86px; left: 45px; }
.print { position: absolute; left: 50%; bottom: 32px; transform: translateX(-50%); width: 120px; padding: 8px 6px; background: var(--white); color: var(--primary); font-size: .78rem; font-weight: 900; border-bottom: 5px solid var(--secondary); border-radius: 4px; }

/* ==================================================
   SECTIONS COMMUNES
   ================================================== */
.section { padding: 78px 0; }
.light { background: var(--light); }
h2 { color: var(--primary); font-size: clamp(1.8rem, 3vw, 2.7rem); text-align: center; margin-bottom: 14px; letter-spacing: -.04em; }
.left-title { text-align: left; }
.section-intro { text-align: center; max-width: 760px; margin: 0 auto 38px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card, .price-card, .option-card, .legal-card { background: var(--white); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); border: 1px solid rgba(31,58,95,.08); transition: transform .25s ease, box-shadow .25s ease; }
.card:hover, .price-card:hover, .option-card:hover { transform: translateY(-6px); box-shadow: 0 24px 55px rgba(31,58,95,.20); }
.card span { display: inline-grid; place-items: center; width: 42px; height: 42px; background: var(--secondary); color: var(--dark); border-radius: 50%; font-weight: 900; margin-bottom: 14px; }
.card h3, .price-card h3, .option-card h3 { color: var(--primary); margin-bottom: 10px; }
.icons div { background: var(--white); border-radius: var(--radius); padding: 26px; text-align: center; font-size: 2.5rem; box-shadow: var(--shadow); border: 1px solid rgba(212,166,74,.18); }
.icons p { font-size: 1rem; font-weight: 900; color: var(--primary); }

/* ==================================================
   SECTION ZONE / INFOS
   ================================================== */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 35px; align-items: center; }
.info-box, .contact-info { background: var(--light); padding: 24px; border-radius: var(--radius); border-left: 6px solid var(--secondary); }
.info-box p + p { margin-top: 14px; }
.info-box a, .contact-info a { color: var(--primary); font-weight: 800; }

/* ==================================================
   SECTION FORMULES
   ================================================== */
.pricing { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; align-items: stretch; }
.price-card { position: relative; display: flex; flex-direction: column; gap: 16px; }
.price-card.featured { border: 3px solid var(--secondary); transform: translateY(-8px); }
.price-card.featured:hover { transform: translateY(-14px); }
.popular { align-self: flex-start; background: var(--secondary); color: var(--dark); padding: 6px 12px; border-radius: 999px; font-weight: 900; font-size: .9rem; }
.price { font-size: 1.6rem; font-weight: 900; color: var(--primary); }
ul { padding-left: 20px; margin-bottom: 10px; }
.price-card .btn-primary { margin-top: auto; text-align: center; }

/* ==================================================
   SECTION OPTIONS
   ================================================== */
.options-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.option-card strong { display: inline-block; margin-top: 15px; color: var(--primary); background: #fff8e8; padding: 8px 12px; border-radius: 999px; }

/* ==================================================
   GALERIE
   ================================================== */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery div { height: 180px; display: grid; place-items: center; border-radius: var(--radius); background: linear-gradient(135deg, var(--primary), var(--secondary)); color: var(--white); font-weight: 900; box-shadow: var(--shadow); position: relative; overflow: hidden; transition: transform .25s ease; }
.gallery div:hover { transform: scale(1.03); }
.gallery div::after { content: ""; position: absolute; inset: 12px; border: 1px solid rgba(255,255,255,.35); border-radius: 18px; }

/* ==================================================
   CTA ET CONTACT
   ================================================== */
.cta { background: linear-gradient(135deg, var(--primary), #102033); color: var(--white); text-align: center; }
.cta h2 { color: var(--white); }
.cta p { margin-bottom: 24px; }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: start; }
.contact-section h2 { text-align: left; }
.contact-info { margin-top: 24px; }
.contact-form { display: grid; gap: 15px; background: var(--white); padding: 28px; border-radius: var(--radius); box-shadow: var(--shadow); }
.contact-form label { display: grid; gap: 7px; font-weight: 800; color: var(--primary); }
.contact-form input, .contact-form textarea { width: 100%; padding: 13px 14px; border: 1px solid rgba(31,58,95,.18); border-radius: 14px; font: inherit; }
.contact-form input:focus, .contact-form textarea:focus { outline: 3px solid rgba(212,166,74,.35); border-color: var(--secondary); }

/* ==================================================
   PAGE MENTIONS LÉGALES
   ================================================== */
.legal-page h1 { text-align: center; }
.legal-card { margin-bottom: 20px; }
.legal-card h2 { text-align: left; font-size: 1.5rem; }
.legal-card p + p { margin-top: 8px; }
.legal-card a { color: var(--primary); font-weight: 800; }

/* ==================================================
   FOOTER ET BOUTON RETOUR EN HAUT
   ================================================== */
.footer { background: var(--dark); color: var(--white); padding: 28px 0; }
.footer-content { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer a { color: var(--secondary); font-weight: 800; }
.back-to-top { position: fixed; right: 18px; bottom: 18px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--secondary); color: var(--dark); font-size: 1.4rem; font-weight: 900; cursor: pointer; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { transform: translateY(-3px); }

/* ==================================================
   ANIMATIONS CSS
   ================================================== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* ==================================================
   RESPONSIVE TABLETTE ET MOBILE
   ================================================== */
@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .main-nav { position: absolute; top: 72px; left: 4%; right: 4%; background: var(--white); border-radius: 18px; box-shadow: var(--shadow); padding: 18px; flex-direction: column; align-items: stretch; display: none; }
  .main-nav.open { display: flex; }
  .hero-content, .contact-grid, .split { grid-template-columns: 1fr; }
  .grid-4, .pricing, .gallery, .options-grid { grid-template-columns: 1fr 1fr; }
  .price-card.featured { transform: none; }
}

@media (max-width: 560px) {
  .hero { padding: 62px 0; }
  .grid-4, .pricing, .gallery, .options-grid { grid-template-columns: 1fr; }
  .footer-content { flex-direction: column; }
  .photobooth-shape { transform: scale(.85); margin-bottom: -5px; }
}


/* ==================================================
   FORMULAIRE - CHAMP ANTI-SPAM ET NOTE RGPD
   Le champ honeypot est caché aux visiteurs humains.
   S'il est rempli, contact.php bloque l'envoi.
   ================================================== */
.honeypot {
  display: none !important;
}

.form-note {
  font-size: 0.85rem;
  opacity: 0.8;
  margin: 0.5rem 0 1rem;
}

.alert {
  max-width: 760px;
  margin: 2rem auto;
  padding: 1.2rem;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 12px 35px rgba(31, 58, 95, 0.12);
}

.alert.success {
  border-left: 6px solid var(--or);
}

.alert.error {
  border-left: 6px solid #b00020;
}
/* =====================================
   LOGO
===================================== */

.logo {
    height: 80px;
    width: auto;
    display: block;
}

/* =====================================
   LOGO HERO
===================================== */
.hero-logo {
    max-width: 450px;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 25px auto;
}


@keyframes apparitionLogo {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =====================================
   MOBILE
===================================== */

@media (max-width: 768px) {

    .logo {
        height: 45px;
    }

    .hero-logo {
        max-width: 200px;
    }

}
/* Logo du menu */
.logo-menu {
    height: 140px;
    width: auto;
    display: block;
}

/* Version téléphone */
@media (max-width: 768px) {
    .logo-menu {
        height: 100px;
    }
}
.tirages {
    text-align: center;
    margin: 25px 0;
}

.tirages .nombre {
    display: block;
    font-size: 50px;
    font-weight: 900;
    color: #1f3a5f;
    line-height: 1;
}

.tirages .texte {
    display: inline-block;
    background: #d4a64a;
    color: #1f3a5f;

    padding: 8px 20px;
    border-radius: 999px;

    margin-top: 10px;

    font-weight: 700;
    text-transform: uppercase;
}
.grid-4 .card span {
    width: 70px;
    height: 70px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 auto 15px auto;

    border-radius: 50%;

    background: #d4a64a;
    color: #1f3a5f;

    font-size: 1.5rem;
    font-weight: 700;
}
.grid-4 .card {
    text-align: center;
}