/*
Theme Name:   Cadeau Photo (Astra Child)
Theme URI:    https://cadeauphoto.com/
Description:  Thème enfant Astra — système de design Cadeau Photo (V2).
Author:       RSM Trading
Version:      1.0.0
Template:     astra
Text Domain:  cadeau-photo-child
*/

/* ========================================================================
   1. DESIGN TOKENS
   ======================================================================== */
:root {
    --ink:        #16110D;
    --ink-soft:   #56463A;
    --ink-mute:   rgba(22, 17, 13, 0.55);
    --coral:      #B8765F;
    --coral-deep: #9A5E47;
    --paper:      #F6F1EA;
    --paper-warm: #FAF3E8;
    --rose:       #F4C4B8;
    --rose-deep:  #E89C8A;
    --peach:      #F4C496;
    --butter:     #F5DEA0;
    --sage:       #CFD3B8;
    --plum:       #C39A9B;
    --line:       rgba(22, 17, 13, 0.10);
    --line-soft:  rgba(22, 17, 13, 0.06);

    --cp-font-sans:  'Inter Tight', 'Inter', system-ui, -apple-system, sans-serif;
    --cp-font-serif: 'Instrument Serif', Georgia, serif;

    --cp-container: 1200px;
    --cp-gutter:    32px;
    --cp-radius-card: 18px;
    --cp-radius-pill: 999px;

    --cp-shadow-soft: 0 14px 36px -12px rgba(22, 17, 13, 0.25), 0 2px 8px rgba(22, 17, 13, 0.06);
    --cp-shadow-hover: 0 18px 36px -16px rgba(22, 17, 13, 0.18);
}

/* ========================================================================
   2. BASE OVERRIDES (Astra)
   ======================================================================== */
html { background-color: var(--paper); }

body {
    background-color: var(--paper);
    color: var(--ink);
    font-family: var(--cp-font-sans);
    font-size: 17px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* Astra wraps content in several full-width containers — make them transparent
   so the paper-coloured body shows through on the sides. */
.site,
#page,
.site-content,
.ast-container,
.ast-container-fluid,
.ast-primary-header-bar,
.main-header-bar,
.ast-mobile-header-wrap,
.ast-single-post .entry-content,
.entry-content,
.ast-plain-container,
.ast-page-builder-template,
.ast-separate-container,
.ast-narrow-container {
    background-color: transparent !important;
}

::selection { background: var(--coral); color: var(--paper); }

h1, h2, h3, h4, h5, h6,
.entry-content h1, .entry-content h2, .entry-content h3, .entry-content h4 {
    font-family: var(--cp-font-sans);
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1.15;
    color: var(--ink);
}

a { color: var(--coral); }
a:hover, a:focus { color: var(--coral-deep); }

/* Astra entry content wide width alignment with the design container */
.ast-container,
.site-content > .ast-container {
    max-width: var(--cp-container);
}

/* ========================================================================
   3. UTILITY CLASSES (re-usable across patterns AND any future content)
   ======================================================================== */
.cp-container { max-width: var(--cp-container); margin: 0 auto; padding: 0 var(--cp-gutter); }

.cp-it,
.cp-section-head h2 em,
.cp-hero h1 em,
.cp-about h2 em {
    font-family: var(--cp-font-serif);
    font-style: italic;
    font-weight: 400;
    color: var(--coral);
    letter-spacing: -0.005em;
}

.cp-kicker {
    display: inline-flex; align-items: center; gap: 10px;
    background: #fff;
    border: 1px solid var(--line);
    padding: 7px 14px;
    border-radius: var(--cp-radius-pill);
    font-size: 13px;
    font-weight: 500;
    color: var(--ink-soft);
    box-shadow: 0 1px 0 rgba(22, 17, 13, 0.04);
}

.cp-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 14px;
    background: var(--rose);
    color: var(--ink);
    border-radius: var(--cp-radius-pill);
    font-size: 13px; font-weight: 500;
}

.cp-section-head { text-align: center; margin-bottom: 56px; }
.cp-section-head h2 {
    font-size: clamp(32px, 4vw, 52px);
    max-width: 18ch;
    margin: 18px auto 0;
    text-wrap: balance;
}
.cp-section-head .cp-sub {
    font-size: 18px;
    color: var(--ink-soft);
    max-width: 56ch;
    margin: 18px auto 0;
    line-height: 1.5;
}

.cp-btn,
.entry-content .cp-btn,
a.cp-btn {
    display: inline-flex; align-items: center; gap: 9px;
    padding: 14px 24px;
    background: var(--coral);
    color: var(--paper);
    border-radius: var(--cp-radius-pill);
    font-family: var(--cp-font-sans);
    font-weight: 500;
    font-size: 15px;
    text-decoration: none;
    border: 0;
    cursor: pointer;
    transition: background .15s, transform .15s, box-shadow .15s;
    box-shadow: 0 6px 16px -8px rgba(184, 118, 95, 0.5);
}
.cp-btn:hover,
a.cp-btn:hover {
    background: var(--ink);
    color: var(--paper);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -8px rgba(22, 17, 13, 0.4);
}
.cp-btn.ghost,
a.cp-btn.ghost {
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--line);
    box-shadow: none;
}
.cp-btn.ghost:hover,
a.cp-btn.ghost:hover {
    background: #fff;
    color: var(--ink);
    border-color: var(--ink);
}

/* ========================================================================
   4. SECTION SPACING DEFAULT
   ======================================================================== */
.cp-section { padding: 88px 0; position: relative; }

/* ========================================================================
   5. PATTERN: TOP STRIP (announcement banner above header)
   ======================================================================== */
.cp-top-strip {
    background: var(--ink);
    color: var(--paper);
    font-size: 13px;
    text-align: center;
    padding: 10px var(--cp-gutter);
}
.cp-top-strip em.cp-em {
    color: var(--rose);
    font-family: var(--cp-font-serif);
    font-style: italic;
    font-size: 17px;
    margin-right: 6px;
}

/* ========================================================================
   6. PATTERN: HERO
   ======================================================================== */
.cp-hero { padding: 72px 0 88px; position: relative; overflow: hidden; }
.cp-hero::before {
    content: "";
    position: absolute;
    inset: 0 -200px 0 50%;
    background: radial-gradient(ellipse at left center, var(--rose) 0%, transparent 60%);
    opacity: 0.55;
    pointer-events: none;
}
.cp-hero .cp-hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 60px;
    align-items: center;
    position: relative;
}
.cp-hero h1 {
    font-size: clamp(38px, 5.2vw, 68px);
    line-height: 1.05;
    margin: 28px 0 24px;
    max-width: 16ch;
    text-wrap: balance;
}
.cp-hero .cp-lede {
    font-size: 19px;
    color: var(--ink-soft);
    line-height: 1.55;
    max-width: 48ch;
    margin: 0 0 36px;
}
.cp-hero .cp-cta-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.cp-hero .cp-kicker .cp-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--coral);
    animation: cp-pulse 1.8s ease-in-out infinite;
}
@keyframes cp-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.4; transform: scale(1.5); }
}

/* Hero polaroid stack illustration */
.cp-hero-stack {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    max-width: 520px;
    margin-left: auto;
}
.cp-hero-stack .cp-card {
    position: absolute;
    background: #fff;
    border-radius: 6px;
    box-shadow: var(--cp-shadow-soft);
    padding: 12px 12px 38px;
    transition: transform .4s cubic-bezier(.2, .7, .3, 1);
}
.cp-hero-stack .cp-card:hover { transform: rotate(0deg) scale(1.04) !important; z-index: 5; }
.cp-hero-stack .cp-card .cp-ph { width: 100%; border-radius: 2px; aspect-ratio: 4 / 5; }
.cp-hero-stack .cp-card .cp-cap {
    position: absolute;
    bottom: 8px; left: 12px; right: 12px;
    font-family: var(--cp-font-serif);
    font-style: italic;
    font-size: 14px;
    color: var(--ink-soft);
    text-align: center;
}
.cp-hero-stack .cp-c1 { top: 8%;  left: 18%; width: 52%; transform: rotate(-4deg); z-index: 3; }
.cp-hero-stack .cp-c1 .cp-ph { background: linear-gradient(135deg, var(--rose), var(--peach)); }
.cp-hero-stack .cp-c2 { top: 22%; left: 0;   width: 44%; transform: rotate(-12deg); z-index: 1; }
.cp-hero-stack .cp-c2 .cp-ph { background: linear-gradient(135deg, var(--butter), var(--peach)); aspect-ratio: 1 / 1; }
.cp-hero-stack .cp-c3 { bottom: 4%; right: 4%; width: 46%; transform: rotate(7deg); z-index: 4; }
.cp-hero-stack .cp-c3 .cp-ph { background: linear-gradient(135deg, var(--coral), var(--rose-deep)); aspect-ratio: 5 / 4; }
.cp-hero-stack .cp-c4 {
    bottom: 12%; left: 8%;
    width: 32%; height: 28%;
    transform: rotate(-3deg);
    z-index: 2;
    background: var(--sage);
    border-radius: 14px;
    padding: 0;
    overflow: hidden;
}
.cp-hero-stack .cp-c4 .cp-cap {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    color: var(--ink);
    bottom: auto; left: 0; right: 0;
    font-size: 32px;
}
.cp-hero-stack .cp-heart {
    position: absolute;
    top: 4%; right: 6%;
    width: 64px; height: 64px;
    background: var(--coral);
    border-radius: 50%;
    display: grid; place-items: center;
    color: var(--paper);
    font-size: 28px;
    z-index: 6;
    box-shadow: 0 8px 20px -6px rgba(184, 118, 95, 0.55);
    transform: rotate(8deg);
}

/* ========================================================================
   7. PATTERN: OCCASIONS STRIP
   ======================================================================== */
.cp-occasions {
    background: #fff;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 22px 0;
}
.cp-occasions .cp-occasions-inner {
    display: flex; align-items: center; gap: 14px;
    overflow-x: auto;
    scrollbar-width: none;
}
.cp-occasions .cp-occasions-inner::-webkit-scrollbar { display: none; }
.cp-occasions .cp-label {
    font-family: var(--cp-font-serif);
    font-style: italic;
    font-size: 17px;
    color: var(--ink-soft);
    flex-shrink: 0;
    margin-right: 8px;
}
.cp-chip {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 16px;
    border: 1px solid var(--line);
    border-radius: var(--cp-radius-pill);
    font-size: 14px;
    font-weight: 500;
    color: var(--ink-soft);
    background: var(--paper);
    text-decoration: none;
    flex-shrink: 0;
    transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.cp-chip:hover {
    background: var(--coral);
    color: var(--paper);
    border-color: var(--coral);
    transform: translateY(-1px);
}

/* ========================================================================
   8. PATTERN: CATEGORIES GRID
   ======================================================================== */
.cp-categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.cp-cat {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--cp-radius-card);
    overflow: hidden;
    display: flex; flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: transform .25s ease, box-shadow .25s ease;
}
.cp-cat:hover {
    transform: translateY(-4px);
    box-shadow: var(--cp-shadow-hover);
    color: inherit;
}
.cp-cat .cp-cat-img {
    aspect-ratio: 4 / 3;
    position: relative;
    overflow: hidden;
}
.cp-cat .cp-cat-img .cp-product {
    position: absolute;
    inset: 0;
    display: grid; place-items: center;
    font-size: 64px;
    opacity: 0.85;
    filter: drop-shadow(0 8px 14px rgba(22, 17, 13, 0.18));
}
.cp-cat .cp-cat-body {
    padding: 22px 24px 26px;
    display: flex; flex-direction: column; gap: 6px;
    flex: 1;
}
.cp-cat .cp-cat-body h3 { font-size: 22px; letter-spacing: -0.02em; margin: 0; }
.cp-cat .cp-cat-body .cp-cat-desc {
    font-size: 15px;
    color: var(--ink-soft);
    line-height: 1.5;
    margin: 0 0 12px;
    flex: 1;
}
.cp-cat .cp-cat-meta {
    display: flex; align-items: center; justify-content: space-between;
    font-size: 13px;
}
.cp-cat .cp-when {
    color: var(--coral);
    font-weight: 500;
    display: inline-flex; align-items: center; gap: 6px;
}
.cp-cat .cp-when::before {
    content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--coral);
}
.cp-cat .cp-arr {
    color: var(--ink-soft);
    transition: transform .2s, color .15s;
}
.cp-cat:hover .cp-arr { color: var(--coral); transform: translateX(3px); }

/* Per-card pastel backgrounds */
.cp-cat-1 .cp-cat-img { background: linear-gradient(135deg, var(--rose),     var(--peach)); }
.cp-cat-2 .cp-cat-img { background: linear-gradient(135deg, var(--butter),   var(--peach)); }
.cp-cat-3 .cp-cat-img { background: linear-gradient(135deg, var(--sage),     var(--butter)); }
.cp-cat-4 .cp-cat-img { background: linear-gradient(135deg, var(--coral),    var(--rose-deep)); }
.cp-cat-5 .cp-cat-img { background: linear-gradient(135deg, var(--plum),     var(--rose)); }
.cp-cat-6 .cp-cat-img { background: linear-gradient(135deg, var(--peach),    var(--butter)); }
.cp-cat-7 .cp-cat-img { background: linear-gradient(135deg, var(--rose-deep),var(--coral)); }
.cp-cat-8 .cp-cat-img { background: linear-gradient(135deg, var(--sage),     var(--plum)); }

/* ========================================================================
   9. PATTERN: METHODOLOGY (CRITÈRES)
   ======================================================================== */
.cp-method {
    background: #fff;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.cp-method-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 36px;
}
.cp-crit {
    background: var(--paper);
    border-radius: var(--cp-radius-card);
    padding: 28px 24px 30px;
    display: flex; flex-direction: column; gap: 12px;
    transition: transform .2s;
}
.cp-crit:hover { transform: translateY(-3px); }
.cp-crit .cp-crit-emoji { font-size: 36px; line-height: 1; margin-bottom: 6px; }
.cp-crit h4 { font-size: 19px; letter-spacing: -0.015em; margin: 0; }
.cp-crit p { font-size: 14.5px; color: var(--ink-soft); line-height: 1.5; margin: 0; }
.cp-crit:nth-child(1) { background: #fff; border: 1px solid var(--rose); }
.cp-crit:nth-child(2) { background: #fff; border: 1px solid var(--peach); }
.cp-crit:nth-child(3) { background: #fff; border: 1px solid var(--butter); }
.cp-crit:nth-child(4) { background: #fff; border: 1px solid var(--sage); }

/* ========================================================================
   10. PATTERN: ABOUT
   ======================================================================== */
.cp-about {
    background: linear-gradient(135deg, var(--rose) 0%, var(--peach) 100%);
    border-radius: 28px;
    padding: 64px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}
.cp-about h2 {
    font-size: clamp(30px, 3.6vw, 44px);
    margin: 16px 0 20px;
    text-wrap: balance;
}
.cp-about h2 em { color: var(--ink); font-family: var(--cp-font-serif); font-style: italic; font-weight: 400; }
.cp-about p { font-size: 17px; color: var(--ink); line-height: 1.6; margin: 0 0 14px; }
.cp-about p strong { font-weight: 600; }
.cp-pillars { display: grid; gap: 16px; }
.cp-pillar {
    background: rgba(255, 255, 255, 0.55);
    border-radius: 14px;
    padding: 18px 22px;
    display: flex; gap: 16px; align-items: flex-start;
}
.cp-pillar .cp-pillar-em { font-size: 28px; line-height: 1; flex-shrink: 0; }
.cp-pillar h4 { font-size: 16px; margin: 0 0 4px; }
.cp-pillar p { margin: 0; font-size: 14px; color: var(--ink-soft); line-height: 1.5; }

/* ========================================================================
   11. PATTERN: NEWSLETTER
   ======================================================================== */
.cp-newsletter {
    background: var(--ink);
    color: var(--paper);
    text-align: center;
}
.cp-newsletter h2 {
    color: var(--paper);
    font-size: clamp(32px, 4vw, 52px);
    max-width: 18ch;
    margin: 0 auto 22px;
    text-wrap: balance;
}
.cp-newsletter h2 em { color: var(--rose); font-family: var(--cp-font-serif); font-style: italic; font-weight: 400; }
.cp-newsletter .cp-sub {
    color: rgba(246, 241, 234, 0.7);
    font-size: 18px;
    max-width: 50ch;
    margin: 0 auto 36px;
    line-height: 1.55;
}
.cp-newsletter form {
    display: flex;
    background: #fff;
    border-radius: var(--cp-radius-pill);
    overflow: hidden;
    max-width: 520px;
    margin: 0 auto;
}
.cp-newsletter input {
    flex: 1; min-width: 0;
    border: 0; background: transparent;
    padding: 16px 22px;
    font-family: var(--cp-font-sans);
    font-size: 15px;
    color: var(--ink);
    outline: none;
}
.cp-newsletter button {
    border: 0;
    background: var(--coral);
    color: var(--paper);
    padding: 16px 26px;
    font-family: var(--cp-font-sans);
    font-weight: 500;
    font-size: 15px;
    cursor: pointer;
    transition: background .15s, color .15s;
}
.cp-newsletter button:hover { background: var(--paper); color: var(--ink); }
.cp-newsletter .cp-commits {
    display: flex; justify-content: center; gap: 24px; flex-wrap: wrap;
    margin-top: 22px;
    font-size: 13px;
    color: rgba(246, 241, 234, 0.55);
}
.cp-newsletter .cp-commits span { display: inline-flex; align-items: center; gap: 6px; }

/* ========================================================================
   12. FOOTER (4 colonnes + bottom strip)
   ======================================================================== */
.site-footer.cp-footer,
.cp-footer {
    background: var(--paper);
    padding: 64px 0 36px;
    color: var(--ink);
}
.cp-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}
.cp-footer h5 {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    margin: 0 0 14px;
    letter-spacing: -0.01em;
}
.cp-footer .cp-brand img { height: 30px; margin-bottom: 16px; }
.cp-footer .cp-brand p {
    font-size: 14px;
    color: var(--ink-soft);
    max-width: 38ch;
    line-height: 1.55;
    margin: 0;
}
.cp-footer .cp-col a {
    display: block;
    font-size: 14px;
    color: var(--ink-soft);
    padding: 4px 0;
    text-decoration: none;
    transition: color .15s;
}
.cp-footer .cp-col a:hover { color: var(--coral); }
.cp-footer .cp-legal {
    border-top: 1px solid var(--line);
    padding-top: 24px;
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
    font-size: 12px;
    color: var(--ink-mute);
    line-height: 1.55;
}
.cp-footer .cp-legal .cp-disclosure { max-width: 70ch; }
.cp-footer .cp-legal .cp-edited { font-style: italic; }

/* Hide the default Astra footer credit/copyright text (we use our own) */
.ast-small-footer,
.ast-footer-overlay {
    display: none !important;
}

/* ========================================================================
   13. RESPONSIVE
   ======================================================================== */
@media (max-width: 1100px) {
    .cp-categories-grid { grid-template-columns: repeat(2, 1fr); }
    .cp-method-grid     { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
    .cp-hero .cp-hero-grid { grid-template-columns: 1fr; gap: 56px; }
    .cp-hero-stack { max-width: 420px; margin: 0 auto; }
    .cp-about { grid-template-columns: 1fr; gap: 36px; padding: 40px; }
    .cp-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 600px) {
    .cp-section { padding: 64px 0; }
    .cp-categories-grid { grid-template-columns: 1fr; }
    .cp-method-grid     { grid-template-columns: 1fr; }
    .cp-footer-grid     { grid-template-columns: 1fr; gap: 32px; }
    .cp-hero-stack { aspect-ratio: 1 / 1.1; }
    .cp-newsletter form { flex-direction: column; border-radius: var(--cp-radius-card); padding: 6px; gap: 6px; }
    .cp-newsletter input  { border-radius: calc(var(--cp-radius-card) - 6px); }
    .cp-newsletter button { border-radius: calc(var(--cp-radius-card) - 6px); }
}
