/* ===================================================
 * ABCISSE ABOUT WIDGET - STYLES
 * =================================================== */

.pabout-wrapper {
    --pabout-accent: #F36A1E;
    --pabout-dark: #1a1a1a;
    --pabout-light: #FDF1E6;
    --pabout-text: #5a6068;
    position: relative;
    width: 100%;
}

.pabout-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1280px;
    margin: 0 auto;
}

/* Inversion images <-> contenu */
.pabout-img-right .pabout-col-images   { order: 2; }
.pabout-img-right .pabout-col-content  { order: 1; }

/* ===== COLONNE IMAGES ===== */
.pabout-col-images { position: relative; }

.pabout-images-stack {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 0;
    width: 100%;
    min-height: 580px;
}

.pabout-image { position: relative; }
.pabout-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

/* Image 1 : haut-gauche, plus large */
.pabout-image-1 {
    grid-column: 1 / span 1;
    grid-row: 1 / span 1;
    z-index: 2;
}
.pabout-image-1 img {
    aspect-ratio: 1;
    max-height: 450px;
}

/* Image 2 : bas-droite, plus haute */
.pabout-image-2 {
    grid-column: 2 / span 1;
    grid-row: 2 / span 1;
    z-index: 2;
    margin-top: -40px;
}
.pabout-image-2 img {
    aspect-ratio: 5/6;
    max-height: 450px;
}

/* Si pas de 2ème image, l'image 1 prend tout */
.pabout-images-stack:not(:has(.pabout-image-2)) .pabout-image-1 {
    grid-column: 1 / -1;
    grid-row: 1 / -1;
}

/* ===== BADGE ANNÉES (top-right) ===== */
.pabout-years-badge {
    grid-column: 2 / span 1;
    grid-row: 1 / span 1;
    align-self: start;
    justify-self: start;
    background-color: var(--pabout-light);
    color: var(--pabout-dark);
    padding: 24px 28px;
    border-radius: 0 16px 0 0;
    text-align: center;
    z-index: 3;
    position: relative;
    margin-left: 30px;
    min-width: 160px;
}
.pabout-years-badge::after {
    /* Coin arrondi inversé bottom-left du badge */
    content: '';
    position: absolute;
    bottom: 0;
    left: -20px;
    width: 20px;
    height: 20px;
    background-color: var(--pabout-light);
    -webkit-mask: radial-gradient(circle at 0 0, transparent 20px, #000 21px);
    mask: radial-gradient(circle at 0 0, transparent 20px, #000 21px);
}
.pabout-years-num {
    font-size: 56px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 6px;
    letter-spacing: -0.02em;
}
.pabout-years-txt {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    opacity: 0.85;
}

/* ===== BADGE STATISTIQUE (bottom-left) ===== */
.pabout-stats-badge {
    grid-column: 1 / span 1;
    grid-row: 2 / span 1;
    align-self: end;
    justify-self: end;
    background-color: var(--pabout-accent);
    color: #ffffff;
    padding: 24px 28px;
    border-radius: 0 0 16px 16px;
    text-align: center;
    z-index: 3;
    position: relative;
    margin-right: 30px;
    min-width: 180px;
}
.pabout-stats-badge::after {
    /* Coin arrondi inversé top-right */
    content: '';
    position: absolute;
    top: 0;
    right: -20px;
    width: 20px;
    height: 20px;
    background-color: var(--pabout-accent);
    -webkit-mask: radial-gradient(circle at 100% 100%, transparent 20px, #000 21px);
    mask: radial-gradient(circle at 100% 100%, transparent 20px, #000 21px);
}
.pabout-stats-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 8px;
    line-height: 1;
}
.pabout-stats-icon svg, .pabout-stats-icon i { width: 26px; height: 26px; }
.pabout-stats-num {
    font-size: 32px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 6px;
    letter-spacing: -0.01em;
}
.pabout-stats-txt {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.35;
    opacity: 0.95;
}

/* ===== LIGNE DIAGONALE ===== */
.pabout-diagonal-line {
    position: absolute;
    z-index: 4;
    top: 35%;
    left: 20%;
    width: 60%;
    height: 6px;
    background: linear-gradient(135deg, var(--pabout-accent) 0%, var(--pabout-accent) 100%);
    transform: rotate(45deg);
    transform-origin: center;
    pointer-events: none;
    border-radius: 3px;
}

/* ===== BOUTON PLAY ===== */
.pabout-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background-color: var(--pabout-accent);
    color: #fff;
    border: 5px solid rgba(243, 106, 30, 0.25);
    background-clip: padding-box;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: pabout-pulse 2.4s ease-in-out infinite;
    padding: 0;
}
.pabout-play-btn svg { width: 24px; height: 24px; margin-left: 3px; }
.pabout-play-btn:hover { transform: translate(-50%, -50%) scale(1.1); }
@keyframes pabout-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(243, 106, 30, 0.6); }
    100% { box-shadow: 0 0 0 24px rgba(243, 106, 30, 0); }
}

/* ===== CONTENU ===== */
.pabout-col-content { display: flex; flex-direction: column; }

.pabout-supra {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--pabout-accent);
    margin-bottom: 14px;
    line-height: 1;
}

.pabout-title {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--pabout-dark);
    margin: 0 0 20px;
    letter-spacing: -0.01em;
}

.pabout-desc {
    font-size: 16px;
    line-height: 1.7;
    color: var(--pabout-text);
    margin: 0 0 30px;
}
.pabout-desc p { margin: 0 0 1em; }
.pabout-desc p:last-child { margin-bottom: 0; }

/* ===== FEATURES (2 boxes avec icône) ===== */
.pabout-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 30px;
}
.pabout-feat {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}
.pabout-feat-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: rgba(243, 106, 30, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pabout-accent);
    font-size: 22px;
}
.pabout-feat-icon svg, .pabout-feat-icon i { width: 22px; height: 22px; }
.pabout-feat-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--pabout-dark);
    margin-bottom: 4px;
    line-height: 1.3;
}
.pabout-feat-text {
    font-size: 14px;
    color: var(--pabout-text);
    line-height: 1.5;
}

/* ===== BLOC AVANTAGES (checklist + reviews) ===== */
.pabout-benefits {
    background-color: var(--pabout-light);
    border-radius: 12px;
    padding: 28px 32px;
    margin-bottom: 30px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
}

.pabout-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.pabout-check-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--pabout-dark);
    font-size: 15px;
    font-weight: 500;
}
.pabout-check-icon {
    display: inline-flex;
    color: var(--pabout-accent);
    font-size: 18px;
    line-height: 1;
    flex-shrink: 0;
}
.pabout-check-icon svg, .pabout-check-icon i { width: 18px; height: 18px; }

/* Reviews */
.pabout-reviews {
    text-align: center;
}
.pabout-avatars {
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
}
.pabout-avatars img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 3px solid #fff;
    object-fit: cover;
    margin-left: -10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
.pabout-avatars img:first-child { margin-left: 0; }

/* Premier avatar plus visible (mis en avant comme dans la capture) */
.pabout-avatars img:first-child {
    border-color: var(--pabout-accent);
    border-width: 2px;
}

.pabout-stars {
    display: inline-flex;
    gap: 2px;
    font-size: 18px;
    color: var(--pabout-accent);
    line-height: 1;
    margin-bottom: 8px;
}
.pabout-stars .empty { color: #e0e0e0; }
.pabout-stars .half {
    background: linear-gradient(90deg, var(--pabout-accent) 50%, #e0e0e0 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pabout-reviews-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--pabout-dark);
    line-height: 1.3;
}

/* ===== BOUTON CTA (deux blocs : texte + flèche) ===== */
.pabout-bottom {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: space-between;
}

.pabout-cta {
    display: inline-flex;
    text-decoration: none;
    line-height: 1;
    transition: all 0.3s ease;
}
.pabout-cta-text {
    background-color: var(--pabout-accent);
    color: #fff;
    padding: 18px 30px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.03em;
    transition: background-color 0.3s ease;
}
.pabout-cta-arrow {
    background-color: var(--pabout-dark);
    color: #fff;
    width: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}
.pabout-cta-arrow svg, .pabout-cta-arrow i { width: 18px; height: 18px; transition: transform 0.3s ease; }
.pabout-cta:hover .pabout-cta-arrow svg,
.pabout-cta:hover .pabout-cta-arrow i { transform: translateX(4px); }

/* ===== AUTEUR ===== */
.pabout-author {
    display: flex;
    align-items: center;
    gap: 14px;
}
.pabout-author-photo {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 3px solid var(--pabout-accent);
}
.pabout-author-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.pabout-author-info { line-height: 1.3; }
.pabout-author-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--pabout-dark);
}
.pabout-author-role {
    font-size: 13px;
    color: var(--pabout-text);
}
.pabout-author-sig {
    width: 90px;
    height: 40px;
    flex-shrink: 0;
}
.pabout-author-sig img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ===== MODAL VIDÉO ===== */
.pabout-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
}
.pabout-modal.is-open { display: flex; }
.pabout-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.85);
    animation: pabout-fade-in 0.3s ease;
}
.pabout-modal-inner {
    position: relative;
    z-index: 2;
    width: min(900px, 90vw);
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    animation: pabout-zoom-in 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.pabout-modal-frame { width: 100%; height: 100%; }
.pabout-modal-frame iframe { width: 100%; height: 100%; border: 0; }
.pabout-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 0;
    background: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}
@keyframes pabout-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes pabout-zoom-in { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .pabout-grid { gap: 40px; }
    .pabout-title { font-size: 34px; }
    .pabout-years-num { font-size: 44px; }
    .pabout-stats-num { font-size: 26px; }
}

@media (max-width: 768px) {
    .pabout-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .pabout-img-right .pabout-col-images   { order: 1; }
    .pabout-img-right .pabout-col-content  { order: 2; }
    .pabout-images-stack { min-height: 480px; }
    .pabout-title { font-size: 28px; }
    .pabout-features { grid-template-columns: 1fr; gap: 18px; }
    .pabout-benefits { grid-template-columns: 1fr; padding: 24px; gap: 24px; }
    .pabout-bottom { flex-direction: column; align-items: flex-start; gap: 20px; }
    .pabout-author-sig { display: none; }
    .pabout-years-badge { padding: 18px 22px; min-width: 130px; }
    .pabout-stats-badge { padding: 18px 22px; min-width: 150px; }
    .pabout-years-num { font-size: 36px; }
    .pabout-stats-num { font-size: 22px; }
}

@media (max-width: 480px) {
    .pabout-images-stack { min-height: 380px; }
    .pabout-image-2 img { aspect-ratio: 1; }
    .pabout-cta-text { padding: 14px 22px; font-size: 14px; }
    .pabout-cta-arrow { width: 48px; }
}


/* ===================================================
 * 🏗️ PRESET 1 : CONSTRUCTION PRO (capture)
 * Orange · 2 images diagonales · badges · ligne décorative
 * =================================================== */
/* Le preset Construction est le DÉFAUT déjà appliqué ci-dessus.
   On ajoute juste les rappels et fine-tuning pour bien matcher la capture. */

.pabout-preset-construction {
    --pabout-accent: #F36A1E;
    --pabout-dark: #1a1a1a;
    --pabout-light: #FDF1E6;
}

.pabout-preset-construction .pabout-title {
    font-weight: 800;
    letter-spacing: -0.02em;
}

.pabout-preset-construction .pabout-image img {
    box-shadow: 0 16px 40px rgba(0,0,0,0.08);
}


/* ===================================================
 * 🏢 PRESET 2 : CORPORATE CLEAN
 * Bleu pro · 1 image · compteurs en ligne · sobre
 * =================================================== */
.pabout-preset-corporate {
    --pabout-accent: #0073e6;
    --pabout-dark: #0f172a;
    --pabout-light: #f0f7ff;
    --pabout-text: #475569;
}

.pabout-preset-corporate .pabout-images-stack { min-height: auto; }
.pabout-preset-corporate .pabout-image-1 {
    grid-column: 1 / -1;
    grid-row: 1 / -1;
}
.pabout-preset-corporate .pabout-image-2 { display: none; }
.pabout-preset-corporate .pabout-diagonal-line { display: none; }
.pabout-preset-corporate .pabout-image-1 img {
    aspect-ratio: 4/5;
    max-height: 600px;
    border-radius: 16px;
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.15);
}

/* Badges réorganisés en flottant sur l'image */
.pabout-preset-corporate .pabout-years-badge {
    position: absolute;
    grid-column: auto;
    grid-row: auto;
    top: 30px;
    right: -20px;
    margin: 0;
    border-radius: 12px;
    background-color: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.18);
    padding: 22px 26px;
}
.pabout-preset-corporate .pabout-years-badge::after { display: none; }
.pabout-preset-corporate .pabout-years-num { color: var(--pabout-accent); font-weight: 800; }

.pabout-preset-corporate .pabout-stats-badge {
    position: absolute;
    grid-column: auto;
    grid-row: auto;
    bottom: 30px;
    left: -20px;
    margin: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #0073e6 0%, #005bb5 100%);
    box-shadow: 0 12px 30px rgba(0, 115, 230, 0.35);
    padding: 22px 26px;
}
.pabout-preset-corporate .pabout-stats-badge::after { display: none; }

.pabout-preset-corporate .pabout-play-btn {
    background-color: #ffffff;
    color: var(--pabout-accent);
    border-color: rgba(255,255,255,0.4);
}

.pabout-preset-corporate .pabout-title { font-weight: 700; letter-spacing: -0.025em; }
.pabout-preset-corporate .pabout-feat-icon { background: rgba(0, 115, 230, 0.1); }
.pabout-preset-corporate .pabout-cta-text { border-radius: 8px 0 0 8px; }
.pabout-preset-corporate .pabout-cta-arrow { border-radius: 0 8px 8px 0; }


/* ===================================================
 * 🌙 PRESET 3 : MODERN TECH
 * Sombre · cyan néon · glow · barres de progression
 * =================================================== */
.pabout-preset-modern {
    --pabout-accent: #00d9ff;
    --pabout-dark: #ffffff;
    --pabout-light: rgba(0, 217, 255, 0.08);
    --pabout-text: #94a3b8;
    background-color: #0f0f12;
}

.pabout-preset-modern .pabout-wrapper {
    background-color: #0f0f12;
}

.pabout-preset-modern .pabout-image img {
    border-radius: 16px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0, 217, 255, 0.15);
}

.pabout-preset-modern .pabout-years-badge {
    background: rgba(0, 217, 255, 0.08);
    border: 1px solid rgba(0, 217, 255, 0.3);
    color: #ffffff;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
}
.pabout-preset-modern .pabout-years-badge::after { display: none; }
.pabout-preset-modern .pabout-years-num { color: var(--pabout-accent); text-shadow: 0 0 16px rgba(0, 217, 255, 0.5); }

.pabout-preset-modern .pabout-stats-badge {
    background: linear-gradient(135deg, #00d9ff 0%, #0073e6 100%);
    color: #0f0f12;
    box-shadow: 0 10px 40px rgba(0, 217, 255, 0.4);
    border-radius: 16px;
}
.pabout-preset-modern .pabout-stats-badge::after { display: none; }

.pabout-preset-modern .pabout-play-btn {
    background: linear-gradient(135deg, #00d9ff 0%, #0073e6 100%);
    box-shadow: 0 0 30px rgba(0, 217, 255, 0.5);
    border-color: rgba(0, 217, 255, 0.25);
}

.pabout-preset-modern .pabout-diagonal-line {
    background: linear-gradient(135deg, #00d9ff 0%, #7b2cbf 100%);
    box-shadow: 0 0 12px rgba(0, 217, 255, 0.6);
}

.pabout-preset-modern .pabout-supra {
    color: var(--pabout-accent);
    text-shadow: 0 0 8px rgba(0, 217, 255, 0.5);
}
.pabout-preset-modern .pabout-title {
    color: #ffffff;
    font-weight: 800;
    text-shadow: 0 0 30px rgba(0, 217, 255, 0.2);
}
.pabout-preset-modern .pabout-desc { color: var(--pabout-text); }

.pabout-preset-modern .pabout-feat-icon {
    background: rgba(0, 217, 255, 0.08);
    border: 1px solid rgba(0, 217, 255, 0.3);
    color: var(--pabout-accent);
}
.pabout-preset-modern .pabout-feat-title { color: #ffffff; }
.pabout-preset-modern .pabout-feat-text { color: var(--pabout-text); }

.pabout-preset-modern .pabout-benefits {
    background: rgba(0, 217, 255, 0.05);
    border: 1px solid rgba(0, 217, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.pabout-preset-modern .pabout-check-item { color: #cbd5e1; }
.pabout-preset-modern .pabout-check-icon { color: var(--pabout-accent); }
.pabout-preset-modern .pabout-reviews-text { color: #ffffff; }

.pabout-preset-modern .pabout-cta-text {
    background: linear-gradient(135deg, #00d9ff 0%, #0073e6 100%);
    color: #0f0f12;
    box-shadow: 0 8px 24px rgba(0, 217, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.pabout-preset-modern .pabout-cta-arrow {
    background-color: #ffffff;
    color: #0f0f12;
}
.pabout-preset-modern .pabout-cta:hover .pabout-cta-text { background: #ffffff; color: var(--pabout-accent); }
.pabout-preset-modern .pabout-cta:hover .pabout-cta-arrow { background: var(--pabout-accent); color: #0f0f12; }

.pabout-preset-modern .pabout-author-name { color: #ffffff; }
.pabout-preset-modern .pabout-author-role { color: var(--pabout-text); }
.pabout-preset-modern .pabout-author-photo { border-color: var(--pabout-accent); box-shadow: 0 0 16px rgba(0, 217, 255, 0.4); }
.pabout-preset-modern .pabout-author-sig img { filter: invert(1) brightness(2); }
