/* ==========================================================================
   NOYA BÉNIN — feuille de style
   Charte rose & or. Refonte design (impeccable) : hero photo-led, motion
   au scroll, contraste AA, rythme typographique soigné.
   ========================================================================== */

:root {
    /* Couleurs */
    --blanc: #ffffff;
    --creme: #fffaf7;
    --rose-pastel: #fdeef1;
    --rose-accent: #f3c6d3;
    --rose-profond: #e79fb2;
    --bordeaux: #7a2e3d;
    --bordeaux-fonce: #611f2c;
    --or: #c9a227;          /* or décoratif (jamais en texte) */
    --or-texte: #8a6a10;    /* or lisible pour libellés & accents typo (AA) */
    --or-clair: #e8cf7d;
    --encre: #241c1f;
    --texte-clair: #6f6266;

    /* Typo */
    --serif: 'Playfair Display', Georgia, serif;
    --sans: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;

    /* Espacements */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 3rem;
    --space-xl: 5rem;
    --space-2xl: 7.5rem;

    /* Rayons & ombres */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 999px;
    --shadow-sm: 0 4px 16px rgba(36, 28, 31, 0.06);
    --shadow-md: 0 12px 32px rgba(36, 28, 31, 0.10);
    --shadow-lg: 0 30px 60px -24px rgba(122, 46, 61, 0.35);
    --shadow-gold: 0 14px 30px -12px rgba(201, 162, 39, 0.45);

    /* Courbe d'animation (ease-out-quint) */
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* --- Reset --- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--sans);
    background-color: var(--creme);
    color: var(--encre);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: var(--serif);
    font-weight: 600;
    color: var(--encre);
    text-wrap: balance;
    letter-spacing: -0.01em;
}

p { text-wrap: pretty; }

em { font-style: italic; color: var(--bordeaux); }

a { color: inherit; }

img { display: block; max-width: 100%; }

::selection { background: var(--rose-accent); color: var(--bordeaux-fonce); }

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--or-texte);
    outline-offset: 3px;
    border-radius: 4px;
}

/* --- Reveal au scroll (par défaut visible ; l'animation n'est activée
       que si JS + mouvement autorisé, jamais gate sur le contenu) --- */
.reveal { opacity: 1; }
html.js-reveal .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
    transition-delay: calc(var(--i, 0) * 90ms);
}
html.js-reveal .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
    .reveal { opacity: 1 !important; transform: none !important; }
}

/* ==========================================================================
   EN-TÊTE
   ========================================================================== */
.header {
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: rgba(255, 250, 247, 0.82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(243, 198, 211, 0.6);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-sm) var(--space-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
}

.logo {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: var(--shadow-sm);
    outline: 2px solid var(--blanc);
    outline-offset: -2px;
}

.logo-word {
    font-family: var(--serif);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--encre);
    letter-spacing: 0.01em;
}

.logo-word em { color: var(--or-texte); font-style: italic; }

.nav {
    display: flex;
    gap: var(--space-lg);
    margin-left: auto;
    margin-right: var(--space-lg);
}

.nav a {
    position: relative;
    text-decoration: none;
    font-size: 0.95rem;
    color: var(--texte-clair);
    transition: color 0.25s var(--ease);
}

.nav a::after {
    content: "";
    position: absolute;
    left: 0; bottom: -4px;
    width: 100%; height: 1.5px;
    background: var(--bordeaux);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s var(--ease);
}

.nav a:hover { color: var(--bordeaux); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background-color: var(--bordeaux);
    color: var(--blanc);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.65rem 1.3rem;
    border-radius: var(--radius-full);
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.25s var(--ease);
    white-space: nowrap;
}

.nav-cta:hover { transform: translateY(-2px); background-color: var(--bordeaux-fonce); box-shadow: var(--shadow-md); }

.icon-whatsapp { width: 16px; height: 16px; fill: currentColor; }

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.nav-login {
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--bordeaux);
    padding: 0.6rem 1.1rem;
    border-radius: var(--radius-full);
    border: 1.5px solid var(--rose-accent);
    white-space: nowrap;
    transition: border-color 0.25s var(--ease), color 0.25s var(--ease), background-color 0.25s var(--ease);
}

.nav-login:hover { border-color: var(--bordeaux); background-color: var(--rose-pastel); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: clamp(3rem, 8vw, var(--space-2xl)) var(--space-md) var(--space-xl);
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: clamp(2rem, 5vw, var(--space-2xl));
    /* Pleine hauteur harmonieuse à l'arrivée (moins l'en-tête), sans jamais couper le contenu. */
    min-height: min(760px, calc(100svh - 80px));
}

.hero-content { animation: hero-rise 0.9s var(--ease) both; }

@keyframes hero-rise {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--or-texte);
    font-weight: 600;
    margin-bottom: var(--space-md);
}

.eyebrow::before {
    content: "";
    width: 26px; height: 1.5px;
    background: linear-gradient(90deg, var(--or), var(--rose-profond));
}

.hero h1 {
    font-size: clamp(2.6rem, 5.2vw, 4rem);
    line-height: 1.06;
    margin-bottom: var(--space-md);
}

.hero h1 em { color: var(--bordeaux); }

.hero p {
    font-size: 1.12rem;
    color: var(--texte-clair);
    max-width: 30ch;
    margin-bottom: var(--space-lg);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-md);
}

.btn-commander {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--bordeaux);
    color: var(--blanc);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.95rem 2rem;
    border-radius: var(--radius-full);
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background-color 0.3s var(--ease);
    box-shadow: var(--shadow-gold);
}

.btn-commander::after {
    content: "→";
    transition: transform 0.3s var(--ease);
}

.btn-commander:hover {
    background-color: var(--bordeaux-fonce);
    transform: translateY(-3px);
    box-shadow: 0 18px 34px -12px rgba(122, 46, 61, 0.5);
}
.btn-commander:hover::after { transform: translateX(4px); }

.btn-secondary {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    color: var(--encre);
    padding: 0.6rem 0;
    border-bottom: 2px solid var(--rose-accent);
    transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}

.btn-secondary:hover { color: var(--bordeaux); border-color: var(--bordeaux); }

/* --- Visuel hero : vraie photo cadrée (or) sur halo rose --- */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: clamp(340px, 42vw, 480px);
    animation: hero-rise 1s var(--ease) 0.1s both;
}

.hero-visual::before {
    content: "";
    position: absolute;
    width: 82%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 45%, var(--rose-accent), transparent 68%);
    filter: blur(6px);
    z-index: 0;
}

.photo-frame {
    position: relative;
    z-index: 2;
    width: min(76%, 320px);
    aspect-ratio: 4 / 5;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    rotate: -3deg;
    transition: rotate 0.6s var(--ease), transform 0.6s var(--ease);
}

.photo-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(201, 162, 39, 0.55);
    box-shadow: inset 0 0 0 5px rgba(255, 255, 255, 0.35);
    pointer-events: none;
}

.photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
    /* Zoom sur la zone produit (bas-centre) : pousse le texte incrusté
       des captures hors du cadre. */
    transform: scale(1.5);
    transform-origin: 50% 76%;
    transition: transform 0.7s var(--ease);
}

.hero-visual:hover .photo-frame { rotate: -1deg; transform: translateY(-6px); }
.hero-visual:hover .photo-frame img { transform: scale(1.56); }

/* Photo des nounous : pas de zoom (les montrer en entier) */
.photo-frame--teddy img {
    object-position: center 38%;
    transform: scale(1.02);
    transform-origin: center;
}
.hero-visual:hover .photo-frame--teddy img { transform: scale(1.07); }

/* Pastille flottante « livraison » */
.hero-chip {
    position: absolute;
    z-index: 3;
    bottom: 8%;
    right: 2%;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--blanc);
    color: var(--encre);
    font-size: 0.82rem;
    font-weight: 500;
    padding: 0.6rem 1rem;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-md);
    animation: float-y 4s ease-in-out infinite;
}

.hero-chip b { color: var(--bordeaux); font-weight: 600; }
.hero-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: #25d366; box-shadow: 0 0 0 4px rgba(37, 211, 102, 0.18); }

@keyframes float-y {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* ==========================================================================
   NOS UNIVERS
   ========================================================================== */
.univers {
    max-width: 1120px;
    margin: 0 auto;
    padding: var(--space-xl) var(--space-md);
    text-align: center;
}

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--or-texte);
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.section-eyebrow::before,
.section-eyebrow::after {
    content: "";
    width: 22px; height: 1.5px;
    background: var(--or);
    opacity: 0.7;
}

.univers h2, .gallery h2 {
    font-size: clamp(2rem, 3.4vw, 2.6rem);
    margin-bottom: var(--space-lg);
}

.univers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: var(--space-md);
}

.univers-card {
    position: relative;
    background-color: var(--blanc);
    border-radius: var(--radius-lg);
    padding: var(--space-lg) var(--space-md);
    box-shadow: var(--shadow-sm);
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
    text-align: left;
    overflow: hidden;
}

.univers-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, var(--rose-profond), var(--or));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--ease);
}

.univers-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.univers-card:hover::before { transform: scaleX(1); }

.univers-icon {
    width: 46px;
    height: 46px;
    padding: 10px;
    border-radius: 14px;
    background: var(--rose-pastel);
    fill: var(--bordeaux);
    margin-bottom: var(--space-sm);
}

.univers-card h3 {
    font-size: 1.3rem;
    margin-bottom: var(--space-xs);
}

.univers-card p {
    font-size: 0.95rem;
    color: var(--texte-clair);
}

/* ==========================================================================
   GALERIE
   ========================================================================== */
.gallery {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-xl) var(--space-md);
    text-align: center;
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: var(--space-md);
    text-align: left;
}

.card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    aspect-ratio: 3 / 4;
    transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }

.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}

.card:hover img { transform: scale(1.06); }

.card figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: var(--space-lg) var(--space-md) var(--space-sm);
    font-family: var(--serif);
    font-size: 1.2rem;
    color: var(--blanc);
    background: linear-gradient(to top, rgba(36, 28, 31, 0.8), rgba(36, 28, 31, 0));
}

/* ==========================================================================
   BANDEAU CTA
   ========================================================================== */
.cta-banner {
    position: relative;
    text-align: center;
    padding: var(--space-2xl) var(--space-md);
    margin: var(--space-lg) auto 0;
    max-width: 1120px;
    border-radius: var(--radius-lg);
    background: linear-gradient(155deg, var(--bordeaux), var(--bordeaux-fonce));
    color: var(--blanc);
    overflow: hidden;
}

.cta-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(60% 80% at 80% 0%, rgba(201, 162, 39, 0.28), transparent 60%);
}

.cta-banner > * { position: relative; }

.cta-banner h2 {
    font-size: clamp(1.9rem, 3vw, 2.4rem);
    color: var(--blanc);
    margin-bottom: var(--space-xs);
}

.cta-banner p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--space-lg);
}

.cta-banner .btn-commander {
    background-color: var(--blanc);
    color: var(--bordeaux);
    box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.4);
}
.cta-banner .btn-commander:hover { background-color: var(--or-clair); color: var(--bordeaux-fonce); }

.fan {
    position: relative;
    width: 220px;
    height: 220px;
}

.fan span {
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 34px;
    height: 160px;
    border-radius: var(--radius-md);
    transform-origin: bottom center;
    box-shadow: var(--shadow-sm);
}

.fan span:nth-child(1) { background: var(--rose-accent); transform: translateX(-50%) rotate(-50deg); }
.fan span:nth-child(2) { background: var(--or-clair); transform: translateX(-50%) rotate(-30deg); }
.fan span:nth-child(3) { background: var(--or); transform: translateX(-50%) rotate(-10deg); }
.fan span:nth-child(4) { background: var(--rose-profond); transform: translateX(-50%) rotate(10deg); }
.fan span:nth-child(5) { background: var(--or); transform: translateX(-50%) rotate(30deg); }
.fan span:nth-child(6) { background: var(--rose-accent); transform: translateX(-50%) rotate(50deg); }

.fan--small { width: 120px; height: 120px; margin: 0 auto var(--space-md); }
.fan--small span { width: 16px; height: 84px; box-shadow: none; }

/* ==========================================================================
   PIED DE PAGE
   ========================================================================== */
.footer {
    text-align: center;
    padding: var(--space-xl) var(--space-md);
    background-color: var(--blanc);
    border-top: 1px solid rgba(243, 198, 211, 0.6);
}

.footer-logo {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto var(--space-xs);
    outline: 2px solid var(--blanc);
    outline-offset: -2px;
    box-shadow: var(--shadow-sm);
}

.footer-word {
    font-family: var(--serif);
    font-size: 1.2rem;
    margin-bottom: var(--space-sm);
}

.footer-word em { color: var(--or-texte); font-style: italic; }

.footer-link {
    display: inline-block;
    text-decoration: none;
    color: var(--bordeaux);
    font-weight: 500;
    font-size: 0.95rem;
    margin-bottom: var(--space-md);
    border-bottom: 1px solid var(--rose-accent);
    transition: border-color 0.25s var(--ease);
}
.footer-link:hover { border-color: var(--bordeaux); }

.footer-nav {
    margin-bottom: var(--space-md);
}

.footer-nav a {
    text-decoration: none;
    font-size: 0.9rem;
    color: var(--texte-clair);
    border-bottom: 1px solid transparent;
    transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.footer-nav a:hover {
    color: var(--or-texte);
    border-color: var(--or);
}

.footer-copy {
    font-size: 0.8rem;
    color: var(--texte-clair);
}

/* ==========================================================================
   BOUTON WHATSAPP FLOTTANT
   ========================================================================== */
.whatsapp-float {
    position: fixed;
    right: var(--space-md);
    bottom: var(--space-md);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: #25d366;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    z-index: 60;
    animation: float-pulse 2.6s ease-in-out infinite;
    transition: transform 0.25s var(--ease);
}

.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { width: 28px; height: 28px; fill: var(--blanc); }

@keyframes float-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.35), var(--shadow-md); }
    50% { box-shadow: 0 0 0 12px rgba(37, 211, 102, 0), var(--shadow-md); }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 900px) {
    .hero { grid-template-columns: 1fr; text-align: center; padding-top: var(--space-lg); gap: var(--space-lg); min-height: 0; }
    .hero p { margin-left: auto; margin-right: auto; }
    .hero-actions { justify-content: center; }
    .eyebrow { justify-content: center; }
    .hero-visual { order: -1; min-height: 300px; }
    .univers-card { text-align: center; }
    .univers-card::before { display: none; }
}

@media (max-width: 640px) {
    .nav { display: none; }
    .logo-word { font-size: 1.1rem; }
    .header-inner { justify-content: space-between; }
    .photo-frame { width: min(82%, 280px); }
    .hero-chip { right: 6%; }
}
