/*
Theme Name: Acheter en Israël
Theme URI: https://acheter-en-israel.fr
Author: François / Esther Référencement
Author URI: https://miitsuv.co
Description: Plateforme francophone N°1 — Immobilier neuf en Israël. Thème custom marketplace B2B2C.
Version: 1.0.0
Requires at least: 5.3
Requires PHP: 7.4
License: Proprietary
Text Domain: acheter-israel

Acheter en Israël — Hand-off V2 — Mars 2026
*/

/* ============================================
   DESIGN SYSTEM — TOKENS
   ============================================ */

:root {
    /* --- Palette (hand-off V2 §2.1) --- */
    --brand-primary: #0E2A47;
    --accent: #C8915A;
    --accent-light: #E8C9A0;
    --dark: #091C30;
    --light: #F9F6F2;
    --gray: #F4F1ED;
    --green: #16A34A;
    --red: #E03E3E;
    --orange: #E8760A;
    --white: #FFFFFF;
    --text: #0E2A47;
    --text-muted: #5A6A7A;
    --border: rgba(14, 42, 71, 0.1);

    /* --- Radius (§2.3) --- */
    --r-sm: 8px;
    --r-md: 12px;
    --r-lg: 16px;
    --r-xl: 24px;
    --r-pill: 100px;

    /* --- Shadows (§2.4) --- */
    --shadow-md: 0 4px 20px rgba(0,0,0,.08);
    --shadow-lg: 0 12px 48px rgba(0,0,0,.12);
    --shadow-glow: 0 0 40px rgba(200,145,90,.15);

    /* --- Typography (§2.2) --- */
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, sans-serif;

    /* --- Easing (§2.5) --- */
    --ease-standard: cubic-bezier(.4,0,.2,1);
    --ease-spring: cubic-bezier(.34,1.56,.64,1);

    /* --- Layout --- */
    --container: 1200px;
    --sidebar-w: 380px;
    --header-h: 72px;
}

/* ============================================
   RESET & BASE
   ============================================ */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--white);
}

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

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s var(--ease-standard);
}

a:hover {
    color: var(--brand-primary);
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
    color: var(--brand-primary);
}

h1 { font-size: clamp(2rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); }
h4, h5, h6 {
    font-family: var(--font-body);
    font-weight: 600;
    line-height: 1.3;
    color: var(--brand-primary);
}

p {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

/* ============================================
   LAYOUT
   ============================================ */

.ai-container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

.ai-section {
    padding: 80px 0;
}

.ai-section--gray {
    background: var(--gray);
}

.ai-section--dark {
    background: var(--dark);
    color: var(--white);
}

.ai-section--dark h2,
.ai-section--dark h3 {
    color: var(--white);
}

.ai-section--dark p {
    color: var(--accent-light);
}

.ai-grid {
    display: grid;
    gap: 24px;
}

.ai-grid--2 { grid-template-columns: repeat(2, 1fr); }
.ai-grid--3 { grid-template-columns: repeat(3, 1fr); }
.ai-grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ============================================
   SECTION HEADER (§2.6 .sot + .st + .ss)
   ============================================ */

.sot {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    margin-bottom: 8px;
}

.st {
    font-family: var(--font-display);
    font-weight: 600;
    margin-bottom: 16px;
}

.ss {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 640px;
}

.ai-section-header {
    text-align: center;
    margin-bottom: 48px;
}

.ai-section-header .ss {
    margin: 0 auto;
}

/* ============================================
   BUTTONS
   ============================================ */

.ai-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 14px 28px;
    border-radius: var(--r-pill);
    border: none;
    cursor: pointer;
    transition: all 0.3s var(--ease-spring);
    text-decoration: none;
    line-height: 1;
}

.ai-btn--primary {
    background: var(--accent);
    color: var(--white);
}

.ai-btn--primary:hover {
    background: #B8813A;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.ai-btn--secondary {
    background: transparent;
    color: var(--brand-primary);
    border: 2px solid var(--brand-primary);
}

.ai-btn--secondary:hover {
    background: var(--brand-primary);
    color: var(--white);
    transform: translateY(-2px);
}

.ai-btn--sm {
    padding: 10px 20px;
    font-size: 0.85rem;
}

.ai-btn--lg {
    padding: 18px 36px;
    font-size: 1.05rem;
}

/* ============================================
   PROGRAMME CARD (§2.6 .pc)
   ============================================ */

.pc {
    background: var(--white);
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s var(--ease-standard);
}

.pc:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.pc__img {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

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

.pc:hover .pc__img img {
    transform: scale(1.05);
}

.pc__tags {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.pc__tag {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: var(--r-pill);
    background: rgba(255,255,255,.9);
    backdrop-filter: blur(4px);
    color: var(--brand-primary);
}

.pc__tag--green { background: var(--green); color: var(--white); }
.pc__tag--orange { background: var(--orange); color: var(--white); }
.pc__tag--red { background: var(--red); color: var(--white); }

.pc__body {
    padding: 20px;
}

.pc__title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--brand-primary);
}

.pc__location {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.pc__price {
    font-family: var(--font-body);
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 12px;
}

.pc__specs {
    display: flex;
    gap: 16px;
    font-size: 0.8rem;
    color: var(--text-muted);
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.pc__spec {
    display: flex;
    align-items: center;
    gap: 4px;
}

.pc__cta {
    display: block;
    text-align: center;
    padding: 12px;
    margin-top: 16px;
    background: var(--brand-primary);
    color: var(--white);
    border-radius: var(--r-md);
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.pc__cta:hover {
    background: var(--accent);
    color: var(--white);
}

/* ============================================
   TRUST ITEM (§2.6 .ti)
   ============================================ */

.ti {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ti__icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.2rem;
}

.ti__text {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--brand-primary);
}

/* ============================================
   FAQ ITEM (§2.6 .fi)
   ============================================ */

.fi {
    border-bottom: 1px solid var(--border);
}

.fi__q {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    color: var(--brand-primary);
    background: none;
    border: none;
    width: 100%;
    text-align: left;
}

.fi__q::after {
    content: '+';
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--accent);
    transition: transform 0.3s var(--ease-standard);
}

.fi.is-open .fi__q::after {
    transform: rotate(45deg);
}

.fi__a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--ease-standard), padding 0.3s;
}

.fi.is-open .fi__a {
    max-height: 500px;
    padding-bottom: 20px;
}

.fi__a p {
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ============================================
   TOOL BOX (§2.6 .tool-box)
   ============================================ */

.tool-box {
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    margin-bottom: 8px;
    overflow: hidden;
}

.tool-box__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--brand-primary);
    background: var(--light);
    border: none;
    width: 100%;
    text-align: left;
}

.tool-box__header::after {
    content: '▾';
    font-size: 0.8rem;
    transition: transform 0.3s;
}

.tool-box.is-open .tool-box__header::after {
    transform: rotate(180deg);
}

.tool-box__body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--ease-standard);
}

.tool-box.is-open .tool-box__body {
    max-height: 600px;
}

.tool-box__content {
    padding: 16px;
}

/* ============================================
   TIMESTAMP BADGE (§2.6 .stimestamp)
   ============================================ */

.stimestamp {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(22, 163, 74, 0.1);
    color: var(--green);
    border-radius: var(--r-pill);
    font-size: 0.8rem;
    font-weight: 600;
}

.stimestamp__dot {
    width: 8px;
    height: 8px;
    background: var(--green);
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

/* ============================================
   ANIMATIONS (§2.5)
   ============================================ */

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

@keyframes float-orb {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(10px, -15px); }
    50% { transform: translate(-5px, -25px); }
    75% { transform: translate(-15px, -10px); }
}

.fade-up {
    opacity: 0;
    transform: translateY(24px);
}

.fade-up.is-visible {
    animation: fadeUp 0.6s var(--ease-standard) forwards;
}

/* ============================================
   FORMS
   ============================================ */

.ai-input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text);
    background: var(--white);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.ai-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(200,145,90,.15);
}

.ai-input::placeholder {
    color: #A0AEC0;
}

.ai-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230E2A47' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

textarea.ai-input {
    resize: vertical;
    min-height: 100px;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
    .ai-grid--3 { grid-template-columns: repeat(2, 1fr); }
    .ai-grid--4 { grid-template-columns: repeat(2, 1fr); }
    .ai-section { padding: 60px 0; }
}

@media (max-width: 768px) {
    .ai-grid--2,
    .ai-grid--3,
    .ai-grid--4 { grid-template-columns: 1fr; }
    .ai-section { padding: 40px 0; }
    .ai-container { padding: 0 16px; }
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.4rem; }
}
