/**
 * Domelia Présentation - Styles
 * Charte graphique Domelia / SAP
 */

#domelia-presentation-app {
    /* === Charte graphique === */
    --sap-orange:   #ff7f00;
    --sap-rose:     #FF1F6E;
    --sap-orange-l: #FF8A50;
    --sap-gradient: linear-gradient(135deg, #ff7f00 0%, #FF1F6E 100%);
    --sap-ink:      #1A0A05;
    --sap-ink2:     #5C4A40;
    --sap-bg:       #FFFFFF;
    --sap-bg2:      #FFF7F3;
    --sap-border:   #F0E4DC;
    --sap-shadow:   0 4px 28px rgba(255, 127, 0, 0.10);
    --sap-radius:   14px;

    max-width: 1280px;
    margin: 30px auto;
    padding: 24px;
    font-family: 'Carlito', 'Calibri', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--sap-ink);
    background: var(--sap-bg2);
    border-radius: var(--sap-radius);
}

#domelia-presentation-app * {
    box-sizing: border-box;
}

/* === ISOLATION CSS (v1.10.1) === */
/* On force notre charte sur tout le contenu du shortcode pour ne pas être pollué par le thème WordPress */
#domelia-presentation-app,
#domelia-presentation-app * {
    box-sizing: border-box;
    font-family: 'Carlito', 'Calibri', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

/* Reset des marges et paddings WordPress par défaut sur les éléments qu'on utilise */
#domelia-presentation-app h1,
#domelia-presentation-app h2,
#domelia-presentation-app h3,
#domelia-presentation-app h4,
#domelia-presentation-app h5,
#domelia-presentation-app h6 {
    font-family: 'Carlito', 'Calibri', sans-serif !important;
    color: var(--sap-ink);
    margin: 0;
    padding: 0;
    line-height: 1.25;
    text-shadow: none;
    letter-spacing: normal;
    background: none;
    border: none;
    border-radius: 0;
}

#domelia-presentation-app p {
    margin: 0;
    padding: 0;
    line-height: 1.5;
    color: var(--sap-ink);
    font-size: 14px;
}

#domelia-presentation-app a {
    color: var(--sap-orange);
    text-decoration: none;
}

#domelia-presentation-app a:hover {
    color: var(--sap-rose);
    text-decoration: none;
}

#domelia-presentation-app ul,
#domelia-presentation-app ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

#domelia-presentation-app li {
    margin: 0;
    padding: 0;
}

/* Reset complet des boutons (le thème peut imposer ses propres styles) */
#domelia-presentation-app button {
    font-family: inherit !important;
    color: inherit;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    line-height: normal;
    text-shadow: none;
    box-shadow: none;
    border-radius: 0;
    text-transform: none;
    letter-spacing: normal;
    font-weight: normal;
    appearance: none;
    -webkit-appearance: none;
}

#domelia-presentation-app button:hover,
#domelia-presentation-app button:focus,
#domelia-presentation-app button:active {
    background: none;
    color: inherit;
    box-shadow: none;
    text-shadow: none;
    transform: none;
    border: none;
    outline: none;
}

/* Reset complet des inputs et textareas (les thèmes WP imposent souvent leur style) */
#domelia-presentation-app input,
#domelia-presentation-app textarea,
#domelia-presentation-app select {
    font-family: inherit !important;
    font-size: 14px;
    color: var(--sap-ink);
    background: white;
    border: 1.5px solid var(--sap-border);
    border-radius: 8px;
    padding: 10px 12px;
    margin: 0;
    line-height: 1.45;
    appearance: none;
    -webkit-appearance: none;
    box-shadow: none;
    text-shadow: none;
    text-transform: none;
    letter-spacing: normal;
}

#domelia-presentation-app input[type="checkbox"],
#domelia-presentation-app input[type="radio"] {
    width: auto;
    height: auto;
    padding: 0;
    margin: 0 8px 0 0;
    appearance: auto;
    -webkit-appearance: auto;
    background: none;
    border: 1.5px solid var(--sap-border);
}

#domelia-presentation-app input[type="file"] {
    background: none;
    border: none;
    padding: 0;
}

#domelia-presentation-app input:focus,
#domelia-presentation-app textarea:focus,
#domelia-presentation-app select:focus {
    outline: none;
    border-color: var(--sap-orange);
    box-shadow: 0 0 0 3px rgba(255, 127, 0, 0.12);
    background: white;
    color: var(--sap-ink);
}

#domelia-presentation-app input::placeholder,
#domelia-presentation-app textarea::placeholder {
    color: #B5A599;
    opacity: 1;
}

#domelia-presentation-app label {
    font-family: inherit !important;
    color: var(--sap-ink);
    font-weight: 600;
    font-size: 13px;
    margin: 0;
    padding: 0;
    text-transform: none;
    letter-spacing: normal;
}

#domelia-presentation-app img {
    max-width: 100%;
    height: auto;
    border: none;
    box-shadow: none;
    border-radius: 0;
}

#domelia-presentation-app strong,
#domelia-presentation-app b {
    color: inherit;
    font-weight: 700;
}

#domelia-presentation-app em,
#domelia-presentation-app i {
    color: inherit;
    font-style: italic;
}

#domelia-presentation-app code {
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace !important;
    background: var(--sap-bg2);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--sap-orange);
    font-size: 12px;
}

#domelia-presentation-app hr {
    border: none;
    border-top: 1px solid var(--sap-border);
    margin: 16px 0;
}

#domelia-presentation-app table {
    border-collapse: collapse;
    margin: 0;
    width: auto;
}

#domelia-presentation-app sup,
#domelia-presentation-app sub {
    font-size: 0.75em;
    line-height: 0;
}

/* Pour la page de login (avant connexion), même isolation */
.dp-login-prompt,
.dp-login-prompt * {
    font-family: 'Carlito', 'Calibri', sans-serif !important;
    box-sizing: border-box;
}

.dp-login-prompt h2 {
    font-family: 'Carlito', 'Calibri', sans-serif !important;
    text-shadow: none;
    letter-spacing: normal;
}

/* === Re-application de NOS classes avec spécificité plus haute (gagne sur le reset) === */

/* Titre du header en blanc forcé (gagne sur le reset color: var(--sap-ink)) */
#domelia-presentation-app .dp-header h1 {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    color: white !important;
    letter-spacing: -0.3px;
    position: relative;
    text-transform: none;
}

#domelia-presentation-app .dp-header .dp-subtitle {
    color: white !important;
    opacity: 0.95;
}

/* Titres de sections en rose vif Domelia, en minuscules, plus discrets */
#domelia-presentation-app .dp-section h2 {
    color: var(--sap-rose) !important;
    text-transform: lowercase;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.2px;
    border-bottom: 2px solid var(--sap-bg2);
}

/* === Re-application de NOS classes avec spécificité plus haute (gagne sur le reset) === */

#domelia-presentation-app button.dp-btn,
#domelia-presentation-app button.dp-btn:hover,
#domelia-presentation-app button.dp-btn:focus,
#domelia-presentation-app button.dp-btn:active {
    padding: 11px 22px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    line-height: 1.2;
}

#domelia-presentation-app button.dp-btn-primary {
    background: white;
    color: var(--sap-orange);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s, box-shadow 0.2s;
}

#domelia-presentation-app button.dp-btn-primary:hover {
    background: white;
    color: var(--sap-orange);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

#domelia-presentation-app button.dp-btn-secondary,
#domelia-presentation-app button.dp-btn-secondary:hover {
    background: var(--sap-gradient);
    color: white;
    box-shadow: 0 3px 12px rgba(255, 127, 0, 0.25);
    transition: transform 0.2s, box-shadow 0.2s;
}

#domelia-presentation-app button.dp-btn-secondary:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 16px rgba(255, 127, 0, 0.35);
}

#domelia-presentation-app button.dp-btn-secondary-outline {
    background: white;
    color: var(--sap-orange);
    border: 1.5px solid var(--sap-orange);
    transition: all 0.18s;
}

#domelia-presentation-app button.dp-btn-secondary-outline:hover {
    background: var(--sap-bg2);
    color: var(--sap-orange);
    border-color: var(--sap-rose);
}

#domelia-presentation-app button.dp-btn-ghost {
    background: rgba(255, 255, 255, 0.18);
    color: white;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(8px);
    transition: all 0.18s;
}

#domelia-presentation-app button.dp-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.28);
    color: white;
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
}

#domelia-presentation-app button.dp-btn-danger {
    background: white;
    color: #dc3545;
    border: 1.5px solid #dc3545;
    transition: all 0.18s;
}

#domelia-presentation-app button.dp-btn-danger:hover {
    background: #dc3545;
    color: white;
}

/* Inputs avec spécificité plus haute */
#domelia-presentation-app input.dp-input,
#domelia-presentation-app textarea.dp-textarea,
#domelia-presentation-app select.dp-input {
    width: 100%;
    background: white;
    border: 1.5px solid var(--sap-border);
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 14px;
    color: var(--sap-ink);
    transition: border-color 0.15s, box-shadow 0.15s;
}

#domelia-presentation-app input.dp-input:focus,
#domelia-presentation-app textarea.dp-textarea:focus,
#domelia-presentation-app select.dp-input:focus {
    border-color: var(--sap-orange);
    box-shadow: 0 0 0 3px rgba(255, 127, 0, 0.12);
}

#domelia-presentation-app textarea.dp-textarea {
    resize: vertical;
    min-height: 80px;
    line-height: 1.5;
}

/* === En-tête === */
.dp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--sap-gradient);
    color: white;
    padding: 28px 34px;
    border-radius: var(--sap-radius);
    margin-bottom: 24px;
    box-shadow: var(--sap-shadow);
    position: relative;
    overflow: hidden;
}

.dp-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

/* Image de fond "Domelia Création" en transparence légère */
.dp-header::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('https://domeliaconseil.fr/wp-content/uploads/2026/05/creation.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.32;
    mix-blend-mode: overlay;
    pointer-events: none;
    z-index: 0;
}

.dp-header > * {
    position: relative;
    z-index: 1;
}

.dp-header h1 {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    color: white;
    letter-spacing: -0.3px;
    position: relative;
}

.dp-subtitle {
    margin: 6px 0 0 0;
    opacity: 0.95;
    font-size: 14px;
    position: relative;
}

.dp-header-right {
    position: relative;
}

/* === Sections === */
.dp-section {
    background: var(--sap-bg);
    padding: 28px;
    border-radius: var(--sap-radius);
    margin-bottom: 22px;
    border: 1px solid var(--sap-border);
    box-shadow: 0 2px 10px rgba(255, 127, 0, 0.04);
}

.dp-section h2 {
    margin: 0 0 22px 0;
    font-size: 19px;
    font-weight: 700;
    color: var(--sap-ink);
    border-bottom: 2px solid var(--sap-border);
    padding-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dp-section-icon {
    display: inline-block;
    width: 32px;
    height: 32px;
    line-height: 32px;
    text-align: center;
    background: var(--sap-bg2);
    border-radius: 8px;
    font-size: 16px;
}

.dp-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
    border-bottom: 2px solid var(--sap-border);
    padding-bottom: 12px;
}

.dp-section-header h2 {
    margin: 0;
    border: none;
    padding: 0;
}

/* === Formulaires === */
.dp-form-row {
    margin-bottom: 18px;
}

.dp-form-row label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 13px;
    color: var(--sap-ink2);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.dp-input,
.dp-textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--sap-border);
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.2s;
    background: var(--sap-bg);
    color: var(--sap-ink);
}

.dp-input:focus,
.dp-textarea:focus {
    outline: none;
    border-color: var(--sap-orange);
    box-shadow: 0 0 0 3px rgba(255, 127, 0, 0.12);
}

.dp-textarea {
    resize: vertical;
    min-height: 80px;
}

select.dp-input {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23FF7F00' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
    appearance: none;
}

.dp-checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    color: var(--sap-ink);
    text-transform: none;
    letter-spacing: 0;
    font-size: 14px;
}

.dp-checkbox-label input {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--sap-orange);
}

.dp-help {
    margin: 8px 0 0 28px;
    font-size: 12px;
    color: var(--sap-ink2);
    font-style: italic;
}

.dp-form-row-split {
    display: flex;
    gap: 22px;
}

.dp-half {
    flex: 1;
    min-width: 0;
}

/* === Boutons === */
.dp-btn {
    padding: 11px 22px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.dp-btn-primary {
    background: white;
    color: var(--sap-orange);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
}

.dp-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

.dp-btn-secondary {
    background: var(--sap-gradient);
    color: white;
    box-shadow: 0 3px 12px rgba(255, 127, 0, 0.25);
}

.dp-btn-secondary:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 16px rgba(255, 127, 0, 0.35);
}

.dp-btn-icon-emoji {
    font-size: 16px;
}

.dp-btn-small {
    padding: 5px 11px;
    font-size: 12px;
    background: var(--sap-rose);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 6px;
    font-family: inherit;
}

.dp-btn-small:hover {
    background: #d81856;
}

.dp-btn-icon {
    background: var(--sap-bg2);
    border: 1px solid var(--sap-border);
    border-radius: 8px;
    padding: 6px 11px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
    color: var(--sap-ink2);
}

.dp-btn-icon:hover {
    background: var(--sap-orange);
    color: white;
    border-color: var(--sap-orange);
}

/* === Cartes de slides === */
.dp-slide-card {
    background: var(--sap-bg);
    border: 1.5px solid var(--sap-border);
    border-radius: var(--sap-radius);
    margin-bottom: 16px;
    overflow: hidden;
    transition: all 0.2s;
}

.dp-slide-card:hover {
    border-color: var(--sap-orange-l);
    box-shadow: var(--sap-shadow);
}

.dp-slide-header {
    background: linear-gradient(135deg, rgba(255,127,0,0.04) 0%, rgba(255,31,110,0.04) 100%);
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--sap-border);
}

.dp-slide-number {
    font-weight: 700;
    color: var(--sap-orange);
    font-size: 14px;
    letter-spacing: 0.3px;
}

.dp-slide-actions {
    display: flex;
    gap: 6px;
}

.dp-slide-body {
    padding: 22px;
}

/* === Aperçu d'image === */
.dp-image-preview {
    margin-top: 10px;
    padding: 10px;
    background: var(--sap-bg2);
    border: 1px solid var(--sap-border);
    border-radius: 8px;
}

.dp-image-preview img {
    max-width: 100%;
    max-height: 100px;
    display: block;
    border-radius: 6px;
}

/* === État vide === */
.dp-empty-state {
    text-align: center;
    padding: 50px 20px;
    background: var(--sap-bg2);
    border: 2px dashed var(--sap-border);
    border-radius: var(--sap-radius);
    color: var(--sap-ink2);
    font-size: 14px;
}

/* === Aperçu === */
.dp-preview-info {
    color: var(--sap-ink2);
    font-size: 13px;
    margin-bottom: 18px;
    padding: 12px 16px;
    background: var(--sap-bg2);
    border-left: 3px solid var(--sap-orange);
    border-radius: 6px;
}

#dp-preview {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
}

/* === Slides d'aperçu — A4 paysage 297×210 === */
.dp-preview-slide {
    width: 100%;
    max-width: 880px;
    aspect-ratio: 297 / 210;
    background: white;
    border-radius: 6px;
    box-shadow: 0 8px 30px rgba(255, 127, 0, 0.12);
    position: relative;
    overflow: hidden;
    font-family: 'Carlito', 'Calibri', sans-serif;
}

/* === Page de garde — Style "gradient" === */
.dp-preview-slide.dp-cover-gradient {
    background: var(--sap-gradient);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 60px 70px;
}

.dp-preview-slide.dp-cover-gradient::before {
    content: '';
    position: absolute;
    top: -150px;
    right: -150px;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.dp-preview-slide.dp-cover-gradient::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 350px;
    height: 350px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.dp-preview-slide.dp-cover-gradient .dp-cover-accent {
    width: 70px;
    height: 5px;
    background: white;
    border-radius: 3px;
    margin-bottom: 22px;
    position: relative;
}

.dp-preview-slide.dp-cover-gradient .dp-cover-title-display {
    font-size: 38px;
    font-weight: 700;
    color: white;
    line-height: 1.1;
    margin-bottom: 14px;
    letter-spacing: -0.5px;
    position: relative;
    max-width: 80%;
}

.dp-preview-slide.dp-cover-gradient .dp-cover-subtitle-display {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.92);
    font-weight: 400;
    line-height: 1.4;
    position: relative;
    max-width: 75%;
}

/* === Page de garde — Style "elegant" === */
.dp-preview-slide.dp-cover-elegant {
    background: var(--sap-bg2);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 70px;
    position: relative;
}

.dp-preview-slide.dp-cover-elegant::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 14px;
    background: var(--sap-gradient);
}

.dp-preview-slide.dp-cover-elegant::after {
    content: '';
    position: absolute;
    right: -120px;
    bottom: -120px;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: var(--sap-gradient);
    opacity: 0.08;
}

.dp-preview-slide.dp-cover-elegant .dp-cover-accent {
    width: 60px;
    height: 4px;
    background: var(--sap-gradient);
    border-radius: 3px;
    margin-bottom: 20px;
}

.dp-preview-slide.dp-cover-elegant .dp-cover-title-display {
    font-size: 38px;
    font-weight: 700;
    color: var(--sap-ink);
    line-height: 1.1;
    margin-bottom: 14px;
    letter-spacing: -0.5px;
    max-width: 75%;
    position: relative;
}

.dp-preview-slide.dp-cover-elegant .dp-cover-subtitle-display {
    font-size: 18px;
    color: var(--sap-ink2);
    font-weight: 400;
    max-width: 70%;
    position: relative;
}

/* === Page de garde — Style "minimal" === */
.dp-preview-slide.dp-cover-minimal {
    background: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 60px 70px;
}

.dp-preview-slide.dp-cover-minimal .dp-cover-accent {
    width: 60px;
    height: 4px;
    background: var(--sap-gradient);
    border-radius: 3px;
    margin-bottom: 22px;
}

.dp-preview-slide.dp-cover-minimal .dp-cover-title-display {
    font-size: 36px;
    font-weight: 700;
    color: var(--sap-ink);
    line-height: 1.15;
    margin-bottom: 14px;
}

.dp-preview-slide.dp-cover-minimal .dp-cover-subtitle-display {
    font-size: 17px;
    color: var(--sap-ink2);
    font-weight: 400;
}

/* === Logo (aperçu) — masqué : le logo n'apparaît que dans le PDF généré === */
.dp-preview-logo {
    display: none;
}

/* === Sommaire === */
.dp-preview-slide.dp-summary {
    background: white;
    padding: 50px 60px 40px 60px;
    position: relative;
}

.dp-preview-slide.dp-summary::before {
    content: '';
    position: absolute;
    left: 60px;
    top: 50px;
    width: 50px;
    height: 4px;
    background: var(--sap-gradient);
    border-radius: 3px;
}

.dp-preview-slide.dp-summary .dp-summary-title {
    font-size: 30px;
    font-weight: 700;
    color: var(--sap-ink);
    margin: 14px 0 28px 0;
    letter-spacing: -0.3px;
}

.dp-summary-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dp-summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--sap-border);
    font-size: 14px;
    transition: padding 0.2s;
}

.dp-summary-item-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    background: var(--sap-bg2);
    color: var(--sap-orange);
    border-radius: 6px;
    font-weight: 700;
    font-size: 12px;
    margin-right: 14px;
    padding: 0 8px;
}

.dp-summary-item-title {
    flex: 1;
    color: var(--sap-ink);
    font-weight: 500;
}

.dp-summary-item-page {
    color: var(--sap-orange);
    font-weight: 700;
    font-size: 15px;
    margin-left: 16px;
}

/* === Pages de contenu === */
.dp-preview-slide.dp-content {
    background: white;
    padding: 32px 50px 30px 50px;
    display: flex;
    flex-direction: column;
}

/* Bandeau d'en-tête de page de contenu */
.dp-content-header {
    border-left: 4px solid var(--sap-orange);
    padding-left: 14px;
    margin-bottom: 18px;
    margin-right: 90px; /* place pour le logo */
    background: linear-gradient(90deg, rgba(255, 127, 0, 0.04) 0%, transparent 100%);
    padding-top: 4px;
    padding-bottom: 4px;
    border-radius: 0 6px 6px 0;
}

.dp-content-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--sap-ink);
    margin: 0;
    line-height: 1.15;
    letter-spacing: -0.2px;
}

.dp-content-subtitle {
    font-size: 14px;
    color: var(--sap-ink2);
    margin: 3px 0 0 0;
    font-weight: 400;
    font-style: italic;
}

.dp-content-body {
    display: flex;
    flex: 1;
    gap: 24px;
    overflow: hidden;
    min-height: 0;
}

.dp-content-text {
    flex: 2;
    font-size: 12px;
    line-height: 1.55;
    color: var(--sap-ink);
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow: hidden;
}

/* === Image - tiers droit avec différents styles === */
.dp-content-image {
    flex: 0 0 33%;
    max-width: 33%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

/* Style : arrondi avec ombre */
.dp-image-rounded {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(255, 127, 0, 0.18), 0 2px 6px rgba(26, 10, 5, 0.08);
    background: white;
}

.dp-image-rounded img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Style : polaroid */
.dp-image-polaroid {
    width: 100%;
    background: white;
    padding: 8px 8px 30px 8px;
    box-shadow: 0 8px 25px rgba(26, 10, 5, 0.15), 0 2px 6px rgba(26, 10, 5, 0.1);
    border-radius: 3px;
    transform: rotate(-1.5deg);
    position: relative;
}

.dp-image-polaroid img {
    display: block;
    width: 100%;
    height: auto;
}

.dp-image-polaroid::after {
    content: '';
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: var(--sap-gradient);
    border-radius: 2px;
}

/* Style : cadre fin */
.dp-image-frame {
    width: 100%;
    padding: 4px;
    background: var(--sap-gradient);
    border-radius: 8px;
}

.dp-image-frame img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 5px;
    background: white;
}

/* Style : sans cadre */
.dp-image-bare {
    width: 100%;
}

.dp-image-bare img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 4px;
}

/* === Encadrés - style "badge" épuré === */
.dp-content-box {
    position: absolute;
    bottom: 26px;
    left: 50px;
    max-width: 50%;
    background: #f8f4f0;
    border-radius: 8px;
    overflow: hidden;
    display: block;
}

/* Badge coloré en haut : icône + label */
.dp-content-box-pastille {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 9px;
    height: 20px;
    width: 24px;
    box-sizing: border-box;
    float: left;
    margin-right: 0;
    border-radius: 8px 0 8px 0;
}

.dp-content-box-text {
    padding: 4px 14px 11px 14px;
    overflow: hidden;
}

.dp-content-box-title {
    font-weight: 700;
    margin: 5px 0 4px 0;
    font-size: 10px;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    display: inline-block;
    padding-left: 6px;
    line-height: 20px;
    vertical-align: top;
}

.dp-content-box-content {
    font-size: 12px;
    line-height: 1.45;
    color: var(--sap-ink);
    clear: both;
    padding-top: 4px;
}

/* Variantes par type — gradients sur le badge uniquement, contenu sur fond gris doux */
.dp-box-bonne-pratique .dp-content-box-pastille { background: linear-gradient(135deg, #ff7f00 0%, #ffa85f 100%); }
.dp-box-bonne-pratique .dp-content-box-title { color: #cc5f00; }

.dp-box-attention .dp-content-box-pastille { background: var(--sap-gradient); }
.dp-box-attention .dp-content-box-title { color: #dc3c5a; }

.dp-box-info .dp-content-box-pastille { background: linear-gradient(135deg, #ff8aaf 0%, #FF1F6E 100%); }
.dp-box-info .dp-content-box-title { color: #b4285a; }

.dp-box-conseil .dp-content-box-pastille { background: linear-gradient(135deg, #ff9a1e 0%, #ffc850 100%); }
.dp-box-conseil .dp-content-box-title { color: #c86e00; }

.dp-box-important .dp-content-box-pastille { background: var(--sap-gradient); }
.dp-box-important .dp-content-box-title { color: var(--sap-rose); }

.dp-box-cle .dp-content-box-pastille { background: linear-gradient(135deg, #1A0A05 0%, #FF1F6E 100%); }
.dp-box-cle .dp-content-box-title { color: var(--sap-ink); }

/* === Numéro de page === */
.dp-page-number {
    position: absolute;
    bottom: 12px;
    right: 50px;
    font-size: 10px;
    color: var(--sap-ink2);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dp-page-number::before {
    content: '';
    width: 22px;
    height: 2px;
    background: var(--sap-gradient);
    border-radius: 1px;
}

/* === Footer décoratif des pages === */
.dp-preview-slide.dp-content::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--sap-gradient);
    opacity: 0.25;
}

.dp-preview-slide.dp-summary::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--sap-gradient);
    opacity: 0.25;
}

/* === Modal === */
.dp-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 10, 5, 0.7);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.dp-modal-content {
    background: white;
    padding: 44px 70px;
    border-radius: var(--sap-radius);
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    min-width: 320px;
}

.dp-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--sap-bg2);
    border-top-color: var(--sap-orange);
    border-right-color: var(--sap-rose);
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: dp-spin 0.8s linear infinite;
}

@keyframes dp-spin {
    to { transform: rotate(360deg); }
}

#dp-loading-text {
    color: var(--sap-ink);
    font-size: 14px;
    margin: 0;
    font-weight: 500;
}

/* === Responsive === */
@media (max-width: 768px) {
    .dp-header {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .dp-form-row-split {
        flex-direction: column;
        gap: 14px;
    }
    
    .dp-section {
        padding: 20px;
    }
}

/* ============================================== */
/* === v1.2 : Nouveaux templates et UI         === */
/* ============================================== */

/* Boutons "Ajouter une page" avec dropdown */
.dp-add-slide-group {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.dp-add-slide-dropdown {
    position: relative;
}

.dp-btn-secondary-outline {
    background: white;
    color: var(--sap-orange);
    border: 1.5px solid var(--sap-orange);
    padding: 11px 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
}

.dp-btn-secondary-outline:hover {
    background: var(--sap-bg2);
    border-color: var(--sap-rose);
    color: var(--sap-rose);
}

.dp-add-slide-menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: white;
    border: 1.5px solid var(--sap-border);
    border-radius: 12px;
    padding: 6px;
    min-width: 280px;
    z-index: 1000;
    box-shadow: 0 8px 24px rgba(255, 127, 0, 0.18);
}

.dp-add-slide-menu.dp-open {
    display: block;
}

.dp-add-slide-menu-item {
    display: block;
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    padding: 10px 14px;
    cursor: pointer;
    border-radius: 8px;
    font-family: inherit;
    transition: background 0.15s;
}

.dp-add-slide-menu-item:hover {
    background: var(--sap-bg2);
}

.dp-add-slide-menu-item strong {
    display: block;
    color: var(--sap-ink);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
}

.dp-add-slide-menu-item span {
    display: block;
    color: var(--sap-ink2);
    font-size: 12px;
    font-weight: 400;
}

/* Cartes de slide spéciales : header coloré différent */
.dp-slide-card-special .dp-slide-header {
    background: linear-gradient(135deg, rgba(255,127,0,0.06) 0%, rgba(255,31,110,0.06) 100%);
}

.dp-slide-header-retenir { background: linear-gradient(135deg, rgba(255,127,0,0.12) 0%, rgba(255,31,110,0.12) 100%) !important; }
.dp-slide-header-conclusion { background: linear-gradient(135deg, rgba(40,167,69,0.10) 0%, rgba(32,201,151,0.10) 100%) !important; }
.dp-slide-header-citation { background: linear-gradient(135deg, rgba(111,66,193,0.10) 0%, rgba(176,106,179,0.10) 100%) !important; }
.dp-slide-header-chiffres { background: linear-gradient(135deg, rgba(23,162,184,0.10) 0%, rgba(77,208,225,0.10) 100%) !important; }

/* Annotations dans les labels */
.dp-label-optional {
    font-weight: 400;
    color: var(--sap-ink2);
    text-transform: none;
    letter-spacing: 0;
    font-size: 11px;
    font-style: italic;
}

.dp-label-hint {
    font-weight: 400;
    color: var(--sap-ink2);
    text-transform: none;
    letter-spacing: 0;
    font-size: 11px;
}

/* Compteur de caractères */
.dp-char-counter {
    margin-top: 4px;
    font-size: 11px;
    color: var(--sap-ink2);
    text-align: right;
}

.dp-char-counter.dp-char-near-limit {
    color: var(--sap-orange);
    font-weight: 600;
}

.dp-char-counter.dp-char-at-limit {
    color: var(--sap-rose);
    font-weight: 600;
}

/* Grille des chiffres clés dans le builder */
.dp-chiffres-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin-top: 10px;
}

.dp-chiffre-item {
    background: var(--sap-bg2);
    padding: 14px;
    border-radius: 10px;
    border: 1px solid var(--sap-border);
}

.dp-chiffre-item label {
    margin-bottom: 6px;
    font-size: 12px;
}

.dp-chiffre-value {
    font-weight: 700;
    font-size: 16px;
}

/* ============================================== */
/* === Aperçu HTML des nouvelles slides        === */
/* ============================================== */

/* Bande latérale gauche commune à toutes les slides de contenu */
.dp-preview-slide.dp-content::before,
.dp-preview-slide.dp-summary::before,
.dp-preview-slide.dp-retenir::before,
.dp-preview-slide.dp-conclusion::before,
.dp-preview-slide.dp-citation::before,
.dp-preview-slide.dp-chiffres::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 9px;
    background: var(--sap-gradient);
    z-index: 1;
}

/* On supprime l'ancien ::before du sommaire et on adapte */
.dp-preview-slide.dp-summary {
    padding-left: 56px;
}

.dp-preview-slide.dp-summary .dp-summary-title {
    margin-top: 0;
}

.dp-preview-slide.dp-content {
    padding-left: 50px;
}

.dp-preview-slide.dp-content .dp-content-header {
    margin-right: 90px;
}

/* En-tête (titre/sous-titre) — un peu plus généreux */
.dp-preview-slide.dp-content .dp-content-title {
    font-size: 22px;
}

.dp-preview-slide.dp-content .dp-content-subtitle {
    font-size: 14px;
}

.dp-preview-slide.dp-content .dp-content-text {
    font-size: 12px;
    line-height: 1.5;
}

/* Texte en 2 colonnes */
.dp-content-text-cols {
    column-count: 2;
    column-gap: 14px;
    column-rule: 1px solid var(--sap-border);
}

/* === Slide À RETENIR === */
.dp-preview-slide.dp-retenir {
    background: white;
    padding: 38px 50px 30px 56px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.dp-retenir-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--sap-orange);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.dp-retenir-label::before {
    content: '';
    width: 24px;
    height: 3px;
    background: var(--sap-gradient);
    border-radius: 2px;
}

.dp-retenir-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--sap-ink);
    margin: 0 0 16px 0;
}

.dp-retenir-headline {
    font-size: 32px;
    font-weight: 700;
    color: var(--sap-ink);
    line-height: 1.15;
    letter-spacing: -0.4px;
    margin-bottom: 20px;
    max-width: 85%;
}

.dp-retenir-headline .dp-retenir-quote-mark {
    color: var(--sap-orange);
    font-size: 1.2em;
    margin-right: 4px;
}

.dp-retenir-support {
    font-size: 13px;
    color: var(--sap-ink2);
    line-height: 1.55;
    max-width: 75%;
    border-left: 3px solid var(--sap-orange);
    padding-left: 14px;
}

/* === Slide CONCLUSION === */
.dp-preview-slide.dp-conclusion {
    background: white;
    padding: 32px 50px 30px 56px;
    position: relative;
}

.dp-conclusion-header {
    margin-right: 90px;
    margin-bottom: 22px;
}

.dp-conclusion-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--sap-ink);
    margin: 0;
    letter-spacing: -0.3px;
}

.dp-conclusion-subtitle {
    font-size: 13px;
    color: var(--sap-ink2);
    margin: 4px 0 0 0;
    font-style: italic;
}

.dp-conclusion-points-list {
    list-style: none;
    padding: 0;
    margin: 0 0 18px 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.dp-conclusion-point {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 14px;
    background: var(--sap-bg2);
    border-radius: 8px;
    border-left: 3px solid var(--sap-orange);
}

.dp-conclusion-point-num {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--sap-gradient);
    color: white;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dp-conclusion-point-text {
    font-size: 12px;
    color: var(--sap-ink);
    line-height: 1.4;
    flex: 1;
}

.dp-conclusion-cta {
    display: inline-block;
    background: var(--sap-gradient);
    color: white;
    padding: 9px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 13px;
    margin-top: 8px;
    box-shadow: 0 4px 14px rgba(255, 127, 0, 0.25);
}

/* === Slide CITATION === */
.dp-preview-slide.dp-citation {
    background: var(--sap-bg2);
    padding: 50px 70px 40px 76px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.dp-citation-mark {
    font-size: 90px;
    color: var(--sap-orange);
    line-height: 0.6;
    font-family: Georgia, serif;
    margin-bottom: 8px;
    opacity: 0.85;
}

.dp-citation-text {
    font-size: 24px;
    font-weight: 400;
    color: var(--sap-ink);
    line-height: 1.35;
    font-style: italic;
    max-width: 90%;
    margin-bottom: 24px;
    letter-spacing: -0.2px;
}

.dp-citation-author-block {
    display: flex;
    align-items: center;
    gap: 14px;
}

.dp-citation-author-bar {
    width: 30px;
    height: 2px;
    background: var(--sap-gradient);
    border-radius: 2px;
}

.dp-citation-author {
    font-size: 14px;
    font-weight: 700;
    color: var(--sap-ink);
}

.dp-citation-source {
    font-size: 12px;
    color: var(--sap-ink2);
    font-style: italic;
    margin-left: 6px;
}

/* === Slide CHIFFRES === */
.dp-preview-slide.dp-chiffres {
    background: white;
    padding: 32px 50px 30px 56px;
    position: relative;
}

.dp-chiffres-header {
    margin-right: 90px;
    margin-bottom: 26px;
}

.dp-chiffres-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--sap-ink);
    margin: 0;
    letter-spacing: -0.3px;
}

.dp-chiffres-subtitle {
    font-size: 13px;
    color: var(--sap-ink2);
    margin: 4px 0 0 0;
    font-style: italic;
}

.dp-chiffres-grid-display {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 18px;
    align-items: stretch;
}

.dp-chiffre-card {
    background: var(--sap-bg2);
    border-radius: 12px;
    padding: 18px 14px;
    text-align: center;
    border-top: 4px solid;
    border-image: linear-gradient(135deg, #ff7f00, #FF1F6E) 1;
    position: relative;
    overflow: hidden;
}

.dp-chiffre-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--sap-gradient);
}

.dp-chiffre-display-value {
    font-size: 36px;
    font-weight: 700;
    color: var(--sap-orange);
    line-height: 1;
    background: var(--sap-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 6px;
    letter-spacing: -1px;
}

.dp-chiffre-display-label {
    font-size: 11px;
    color: var(--sap-ink2);
    font-weight: 500;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

/* Date sur la couverture */
.dp-cover-date {
    margin-top: 10px;
    font-size: 13px;
    font-weight: 400;
    opacity: 0.85;
}

.dp-preview-slide.dp-cover-elegant .dp-cover-date {
    color: var(--sap-ink2);
    opacity: 1;
}

.dp-preview-slide.dp-cover-minimal .dp-cover-date {
    color: var(--sap-ink2);
    opacity: 1;
}


/* === v1.3 : sections de texte avec titres en gras === */
.dp-content-text-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.dp-content-section {
    display: flex;
    flex-direction: column;
}

.dp-content-section-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--sap-ink);
    margin: 0 0 5px 0;
    line-height: 1.25;
}

.dp-content-section .dp-content-text {
    margin: 0;
}

/* Section 2 : petit liseré orange à gauche pour la distinguer subtilement */
.dp-content-section-2 {
    padding-left: 10px;
    border-left: 2px solid var(--sap-orange);
    margin-top: 4px;
}

/* Bloc de section dans le builder (encadrement léger) */
.dp-section-block {
    background: rgba(255, 247, 243, 0.5);
    border: 1px solid var(--sap-border);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 12px;
}

.dp-section2-block {
    border-left: 3px solid var(--sap-orange);
}

/* === Boutons ghost (Import/Export) === */
.dp-btn-ghost {
    background: transparent;
    color: var(--sap-ink2);
    border: 1.5px solid var(--sap-border);
    padding: 11px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
    margin-right: 8px;
}

.dp-btn-ghost:hover {
    background: var(--sap-bg2);
    border-color: var(--sap-orange);
    color: var(--sap-orange);
}

.dp-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* === v1.4 : Barre d'outils gras === */
.dp-bold-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}

.dp-bold-btn {
    background: white;
    border: 1.5px solid var(--sap-border);
    border-radius: 6px;
    width: 30px;
    height: 28px;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    color: var(--sap-ink);
    transition: all 0.15s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.dp-bold-btn:hover {
    border-color: var(--sap-orange);
    color: var(--sap-orange);
    background: var(--sap-bg2);
}

.dp-bold-btn:active {
    transform: translateY(1px);
}

.dp-bold-hint {
    font-size: 11px;
    color: var(--sap-ink2);
    font-style: italic;
}

/* Le gras dans l'aperçu HTML : vrai <strong> */
.dp-content-text strong,
.dp-content-box-content strong,
.dp-retenir-support strong,
.dp-conclusion-point-text strong {
    font-weight: 700;
    color: inherit;
}

/* === v1.5 : Puces et justification === */

/* Puces avec petit rond dégradé Domelia */
ul.dp-bullets {
    list-style: none;
    padding: 0;
    margin: 4px 0;
}

ul.dp-bullets li {
    position: relative;
    padding-left: 16px;
    margin-bottom: 4px;
    line-height: 1.45;
}

ul.dp-bullets li::before {
    content: '';
    position: absolute;
    left: 2px;
    top: 0.5em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--sap-gradient);
    box-shadow: 0 1px 2px rgba(255, 127, 0, 0.3);
}

/* Texte justifié — appliqué quand la slide a justify activé */
.dp-content.dp-justify .dp-content-text {
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
}

.dp-content.dp-justify .dp-content-box-content {
    text-align: justify;
}

/* Bouton justify dans la barre d'outils */
.dp-justify-btn {
    background: white;
    border: 1.5px solid var(--sap-border);
    border-radius: 6px;
    width: 30px;
    height: 28px;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    color: var(--sap-ink);
    transition: all 0.15s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 4px;
}

.dp-justify-btn:hover {
    border-color: var(--sap-orange);
    color: var(--sap-orange);
    background: var(--sap-bg2);
}

.dp-justify-btn.dp-justify-active {
    background: var(--sap-gradient);
    color: white;
    border-color: transparent;
}

.dp-justify-btn:active {
    transform: translateY(1px);
}

/* === v1.5 : Slide Calendrier === */

/* Header de la slide dans le builder */
.dp-slide-header-calendrier { 
    background: linear-gradient(135deg, rgba(255, 127, 0, 0.10) 0%, rgba(255, 31, 110, 0.10) 100%) !important;
}

/* Liste des étapes dans le builder */
.dp-etapes-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.dp-etape-item {
    background: var(--sap-bg2);
    border: 1px solid var(--sap-border);
    border-left: 3px solid var(--sap-orange);
    border-radius: 8px;
    padding: 12px;
    position: relative;
    display: flex;
    gap: 12px;
}

.dp-etape-num {
    background: var(--sap-gradient);
    color: white;
    font-weight: 700;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 12px;
    height: 22px;
    flex-shrink: 0;
    align-self: flex-start;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dp-etape-fields {
    flex: 1;
    min-width: 0;
}

.dp-remove-etape {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 16px;
    opacity: 0.5;
    align-self: flex-start;
    transition: opacity 0.15s;
    padding: 4px;
}

.dp-remove-etape:hover {
    opacity: 1;
}

.dp-add-etape {
    width: 100%;
}

/* === Aperçu HTML : slide calendrier === */
.dp-preview-slide.dp-calendrier {
    background: white;
    padding: 32px 50px 30px 56px;
    position: relative;
}

.dp-calendrier-header {
    margin-right: 90px;
    margin-bottom: 28px;
}

.dp-calendrier-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--sap-ink);
    margin: 0;
    letter-spacing: -0.3px;
}

.dp-calendrier-subtitle {
    font-size: 13px;
    color: var(--sap-ink2);
    margin: 4px 0 0 0;
    font-style: italic;
}

/* La frise = ligne horizontale avec ronds dégradés et étiquettes */
.dp-frise {
    position: relative;
    margin-top: 30px;
    padding: 50px 20px 0 20px;
}

.dp-frise-line {
    position: absolute;
    top: 65px;
    left: 30px;
    right: 30px;
    height: 3px;
    background: var(--sap-gradient);
    border-radius: 2px;
    z-index: 1;
}

.dp-frise-etapes {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    z-index: 2;
    gap: 8px;
}

.dp-frise-etape {
    flex: 1;
    text-align: center;
    min-width: 0;
}

.dp-frise-etape-date {
    font-size: 11px;
    font-weight: 700;
    color: var(--sap-orange);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dp-frise-etape-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--sap-gradient);
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(255, 127, 0, 0.35);
    margin: 0 auto 12px auto;
    position: relative;
    z-index: 3;
}

.dp-frise-etape-titre {
    font-size: 12px;
    font-weight: 700;
    color: var(--sap-ink);
    margin-bottom: 4px;
    line-height: 1.25;
}

.dp-frise-etape-desc {
    font-size: 10px;
    color: var(--sap-ink2);
    line-height: 1.35;
    padding: 0 4px;
}

/* === v1.7 : Nouveaux types de slides === */

/* Headers de cartes builder */
.dp-slide-header-texte-continu { background: linear-gradient(135deg, rgba(40,167,69,0.10) 0%, rgba(255,127,0,0.10) 100%) !important; }
.dp-slide-header-texte-mixte { background: linear-gradient(135deg, rgba(255,127,0,0.10) 0%, rgba(111,66,193,0.10) 100%) !important; }
.dp-slide-header-image-pleine { background: linear-gradient(135deg, rgba(23,162,184,0.10) 0%, rgba(255,31,110,0.10) 100%) !important; }

/* Liste des sous-blocs (texte mixte) */
.dp-blocs-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.dp-bloc-item {
    background: var(--sap-bg2);
    border: 1px solid var(--sap-border);
    border-left: 3px solid var(--sap-orange);
    border-radius: 8px;
    padding: 12px;
    display: flex;
    gap: 12px;
}

.dp-bloc-num {
    background: var(--sap-gradient);
    color: white;
    font-weight: 700;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 12px;
    height: 22px;
    flex-shrink: 0;
    align-self: flex-start;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dp-bloc-fields { flex: 1; min-width: 0; }

.dp-remove-bloc {
    background: transparent; border: none; cursor: pointer;
    font-size: 16px; opacity: 0.5; align-self: flex-start;
    transition: opacity 0.15s; padding: 4px;
}
.dp-remove-bloc:hover { opacity: 1; }

.dp-add-bloc { width: 100%; }

/* === Aperçu HTML — Slide Texte continu === */
.dp-preview-slide.dp-texte-continu {
    background: white;
    padding: 32px 50px 30px 56px;
    position: relative;
}

.dp-preview-slide.dp-texte-continu::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 9px;
    background: var(--sap-gradient);
    z-index: 1;
}

.dp-texte-continu-header {
    margin-right: 90px;
    margin-bottom: 18px;
}

.dp-texte-continu-title {
    font-size: 22px; font-weight: 700;
    color: var(--sap-ink); margin: 0;
    letter-spacing: -0.3px;
}

.dp-texte-continu-subtitle {
    font-size: 13px; color: var(--sap-ink2);
    margin: 4px 0 0 0; font-style: italic;
}

.dp-texte-continu-body {
    font-size: 11px; line-height: 1.5;
    color: var(--sap-ink);
    column-count: 2;
    column-gap: 18px;
    column-rule: 1px solid var(--sap-border);
}

.dp-texte-continu-body h3 {
    font-size: 13px; font-weight: 700;
    color: var(--sap-orange);
    margin: 12px 0 4px 0;
    break-after: avoid;
    page-break-after: avoid;
}

.dp-texte-continu-body h3:first-child {
    margin-top: 0;
}

.dp-texte-continu-body p {
    margin: 0 0 6px 0;
}

/* === Aperçu HTML — Slide Texte mixte === */
.dp-preview-slide.dp-texte-mixte {
    background: white;
    padding: 32px 50px 30px 56px;
    position: relative;
}

.dp-preview-slide.dp-texte-mixte::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 9px;
    background: var(--sap-gradient);
    z-index: 1;
}

.dp-texte-mixte-header {
    margin-right: 90px;
    margin-bottom: 12px;
}

.dp-texte-mixte-title {
    font-size: 22px; font-weight: 700;
    color: var(--sap-ink); margin: 0;
    letter-spacing: -0.3px;
}

.dp-texte-mixte-subtitle {
    font-size: 13px; color: var(--sap-ink2);
    margin: 4px 0 0 0; font-style: italic;
}

.dp-texte-mixte-intro {
    font-size: 12px; line-height: 1.5;
    color: var(--sap-ink);
    margin-bottom: 16px;
    padding: 10px 14px;
    background: var(--sap-bg2);
    border-left: 3px solid var(--sap-orange);
    border-radius: 4px;
}

.dp-texte-mixte-blocs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.dp-texte-mixte-bloc {
    padding: 0;
}

.dp-texte-mixte-bloc-titre {
    font-size: 13px; font-weight: 700;
    color: var(--sap-ink);
    margin: 0 0 4px 0;
    padding-bottom: 4px;
    border-bottom: 2px solid var(--sap-orange);
    line-height: 1.25;
}

.dp-texte-mixte-bloc-texte {
    font-size: 11px; line-height: 1.45;
    color: var(--sap-ink2);
    margin: 0;
}

/* === Aperçu HTML — Slide Image pleine page === */
.dp-preview-slide.dp-image-pleine {
    padding: 0;
    position: relative;
    background: #1a0a05;
    overflow: hidden;
}

.dp-image-pleine-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dp-image-pleine-caption {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.55);
    color: white;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 11px;
    font-style: italic;
    backdrop-filter: blur(3px);
    max-width: 80%;
    text-align: center;
}

.dp-image-pleine-empty {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.4);
    font-style: italic;
    background: linear-gradient(135deg, #2a1810, #4a2418);
}

/* === Page de garde : image de fond + logo partenaire === */
.dp-cover-bg-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.25;
}

.dp-cover-partner-logo {
    position: absolute;
    top: 18px;
    right: 80px;
    height: 26px;
    width: auto;
    z-index: 5;
    opacity: 0.95;
}

/* Tous les éléments du cover doivent passer au-dessus du fond */
.dp-preview-slide[class*="dp-cover-"] > *:not(.dp-cover-bg-overlay) {
    position: relative;
    z-index: 2;
}

/* === v1.7.1 : Logo Domelia sur la page de garde (toujours visible) === */
.dp-cover-domelia-logo {
    position: absolute;
    top: 18px;
    right: 22px;
    height: 28px;
    width: auto;
    z-index: 10;
}

/* Sur la cover gradient (fond orange/rose) : logo en blanc */
.dp-preview-slide.dp-cover-gradient .dp-cover-domelia-logo {
    filter: brightness(0) invert(1);
    opacity: 0.95;
}

/* Le logo partenaire se positionne à gauche du logo Domelia */
.dp-cover-partner-logo {
    right: 90px; /* décalé pour laisser la place au logo Domelia (~32mm + marge) */
}

/* Sur la cover gradient, le logo partenaire bénéficie d'un fond blanc semi-transparent */
.dp-preview-slide.dp-cover-gradient .dp-cover-partner-logo {
    background: rgba(255, 255, 255, 0.92);
    padding: 4px 6px;
    border-radius: 4px;
    box-sizing: content-box;
}

/* === v1.8 : Pages de login/forbidden === */

.dp-login-prompt {
    max-width: 520px;
    margin: 60px auto;
    font-family: 'Carlito', 'Calibri', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.dp-login-card {
    background: white;
    border-radius: 16px;
    padding: 40px 36px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(255, 127, 0, 0.12);
    border: 1px solid #F0E4DC;
    position: relative;
    overflow: hidden;
}

.dp-login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(135deg, #ff7f00 0%, #FF1F6E 100%);
}

.dp-login-card h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1A0A05;
    margin: 8px 0 16px 0;
    letter-spacing: -0.3px;
}

.dp-login-card p {
    font-size: 14px;
    line-height: 1.5;
    color: #5C4A40;
    margin: 0 0 16px 0;
}

.dp-login-card p strong {
    color: #1A0A05;
}

.dp-login-help {
    font-size: 12px;
    color: #5C4A40;
    font-style: italic;
    margin-top: 12px !important;
}

.dp-login-btn {
    display: inline-block;
    background: linear-gradient(135deg, #ff7f00 0%, #FF1F6E 100%);
    color: white !important;
    text-decoration: none;
    padding: 12px 32px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    margin-top: 12px;
    box-shadow: 0 4px 14px rgba(255, 127, 0, 0.25);
    transition: transform 0.15s, box-shadow 0.15s;
}

.dp-login-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(255, 127, 0, 0.35);
    color: white !important;
}

.dp-login-btn:active {
    transform: translateY(0);
}

/* === v1.9 : Slides CV et Références === */

/* Headers de cartes builder */
.dp-slide-header-cv { background: linear-gradient(135deg, rgba(40, 167, 69, 0.10) 0%, rgba(255, 127, 0, 0.10) 100%) !important; }
.dp-slide-header-references { background: linear-gradient(135deg, rgba(255, 31, 110, 0.10) 0%, rgba(255, 127, 0, 0.10) 100%) !important; }

/* Sélecteur CV avec bouton "gérer" sur la même ligne */
.dp-cv-selector {
    display: flex;
    gap: 10px;
    align-items: center;
}

.dp-cv-selector .dp-input {
    flex: 1;
}

.dp-manage-cv-btn,
.dp-manage-ref-btn {
    text-decoration: none;
    white-space: nowrap;
    display: inline-block;
}

/* Aperçu mini du CV sélectionné dans le builder */
.dp-cv-preview-mini {
    background: var(--sap-bg2);
    border: 1px solid var(--sap-border);
    border-radius: 8px;
    padding: 12px;
    margin-top: 10px;
    display: flex;
    gap: 12px;
    align-items: center;
}

.dp-cv-preview-mini-photo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
    border: 2px solid white;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.dp-cv-preview-mini-info {
    flex: 1;
    min-width: 0;
}

.dp-cv-preview-mini-name {
    font-weight: 700;
    color: var(--sap-ink);
    font-size: 13px;
}

.dp-cv-preview-mini-fn {
    font-size: 11px;
    color: var(--sap-ink2);
    font-style: italic;
}

/* === Aperçu HTML : Slide CV === */
.dp-preview-slide.dp-cv-slide {
    background: white;
    padding: 38px 50px 30px 56px;
    position: relative;
    display: flex;
    gap: 28px;
}

.dp-preview-slide.dp-cv-slide::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 9px;
    background: var(--sap-gradient);
    z-index: 1;
}

.dp-cv-photo-zone {
    flex-shrink: 0;
    width: 35%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.dp-cv-photo {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    background-color: var(--sap-bg2);
    border: 4px solid white;
    box-shadow: 0 4px 16px rgba(255, 127, 0, 0.20);
    margin-bottom: 18px;
}

.dp-cv-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--sap-ink);
    text-align: center;
    margin-bottom: 4px;
    line-height: 1.2;
}

.dp-cv-function {
    font-size: 13px;
    color: var(--sap-orange);
    font-weight: 600;
    text-align: center;
    margin-bottom: 16px;
    font-style: italic;
}

.dp-cv-clients-zone {
    width: 100%;
    margin-top: 12px;
    text-align: center;
}

.dp-cv-clients-label {
    font-size: 10px;
    color: var(--sap-ink2);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 8px;
    font-weight: 700;
}

.dp-cv-clients {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    align-items: center;
}

.dp-cv-clients img {
    max-width: 50px;
    max-height: 28px;
    width: auto;
    height: auto;
    object-fit: contain;
    opacity: 0.85;
}

.dp-cv-content-zone {
    flex: 1;
    min-width: 0;
}

.dp-cv-section {
    margin-bottom: 18px;
}

.dp-cv-section:last-child {
    margin-bottom: 0;
}

.dp-cv-section-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--sap-orange);
    margin: 0 0 6px 0;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border-bottom: 2px solid var(--sap-orange);
    padding-bottom: 3px;
    display: inline-block;
}

.dp-cv-section-content {
    font-size: 12px;
    line-height: 1.5;
    color: var(--sap-ink);
}

.dp-cv-empty {
    background: var(--sap-bg2);
    border: 2px dashed var(--sap-border);
    padding: 60px 30px;
    text-align: center;
    border-radius: 8px;
    color: var(--sap-ink2);
    font-style: italic;
}

/* === Aperçu HTML : Slide Références === */
.dp-preview-slide.dp-references-slide {
    background: white;
    padding: 32px 50px 30px 56px;
    position: relative;
}

.dp-preview-slide.dp-references-slide::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 9px;
    background: var(--sap-gradient);
    z-index: 1;
}

.dp-references-header {
    margin-right: 90px;
    margin-bottom: 24px;
}

.dp-references-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--sap-ink);
    margin: 0;
    letter-spacing: -0.3px;
}

.dp-references-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.dp-ref-card {
    background: white;
    border: 1px solid var(--sap-border);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.dp-ref-card-logo {
    background: white;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70px;
    border-bottom: 1px solid var(--sap-border);
}

.dp-ref-card-logo img {
    max-width: 100%;
    max-height: 50px;
    object-fit: contain;
}

.dp-ref-card-body {
    padding: 14px 16px 16px 16px;
    flex: 1;
}

.dp-ref-card-category {
    display: inline-block;
    background: var(--sap-bg2);
    color: var(--sap-orange);
    font-size: 9px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 8px;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.dp-ref-card-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--sap-ink);
    margin: 0 0 4px 0;
    line-height: 1.25;
}

.dp-ref-card-subtitle {
    font-size: 11px;
    color: var(--sap-ink2);
    font-style: italic;
    margin: 0 0 6px 0;
}

.dp-ref-card-content {
    font-size: 11px;
    line-height: 1.4;
    color: var(--sap-ink);
}

.dp-ref-empty {
    background: var(--sap-bg2);
    border: 2px dashed var(--sap-border);
    padding: 40px 20px;
    text-align: center;
    border-radius: 8px;
    color: var(--sap-ink2);
    font-style: italic;
    font-size: 12px;
}

/* === v1.10 : Onglets et gestion intégrée CV/Références === */

/* === Barre d'onglets === */
.dp-tabs {
    display: flex;
    gap: 4px;
    background: white;
    padding: 6px;
    border-radius: 14px;
    margin-bottom: 24px;
    box-shadow: 0 2px 12px rgba(255, 127, 0, 0.06);
    border: 1px solid var(--sap-border);
    overflow-x: auto;
}

.dp-tab {
    flex: 1;
    background: transparent;
    border: none;
    padding: 12px 20px;
    border-radius: 9px;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    color: var(--sap-ink2);
    transition: all 0.18s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
    min-width: 140px;
}

.dp-tab:hover {
    background: var(--sap-bg2);
    color: var(--sap-orange);
}

.dp-tab.dp-tab-active {
    background: var(--sap-gradient);
    color: white;
    box-shadow: 0 3px 12px rgba(255, 127, 0, 0.25);
}

.dp-tab-icon {
    font-size: 18px;
}

/* === Section de gestion CV/Refs === */
.dp-manage-section {
    background: white;
    border-radius: var(--sap-radius);
    padding: 28px 32px;
    box-shadow: var(--sap-shadow);
    border: 1px solid var(--sap-border);
}

.dp-manage-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 2px solid var(--sap-bg2);
    flex-wrap: wrap;
}

.dp-manage-header h2 {
    margin: 0 0 6px 0;
    color: var(--sap-ink);
    font-size: 22px;
    font-weight: 700;
}

.dp-manage-subtitle {
    margin: 0;
    color: var(--sap-ink2);
    font-size: 13px;
    line-height: 1.5;
}

.dp-manage-subtitle code {
    background: var(--sap-bg2);
    padding: 2px 8px;
    border-radius: 4px;
    color: var(--sap-orange);
    font-size: 12px;
    font-family: monospace;
}

.dp-manage-loading {
    text-align: center;
    color: var(--sap-ink2);
    padding: 40px 0;
    font-style: italic;
}

.dp-manage-empty {
    text-align: center;
    color: var(--sap-ink2);
    padding: 40px 20px;
    font-style: italic;
    background: var(--sap-bg2);
    border-radius: 8px;
    border: 2px dashed var(--sap-border);
}

/* Layout en 2 colonnes : liste à gauche / formulaire à droite */
.dp-manage-layout {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 24px;
    align-items: start;
}

@media (max-width: 1100px) {
    .dp-manage-layout {
        grid-template-columns: 1fr;
    }
}

/* === Liste === */
.dp-manage-list {
    background: var(--sap-bg2);
    border-radius: 10px;
    padding: 12px;
    max-height: 70vh;
    overflow-y: auto;
}

.dp-manage-list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.15s;
    margin-bottom: 6px;
    background: white;
}

.dp-manage-list-item:hover {
    border-color: var(--sap-border);
    transform: translateX(2px);
}

.dp-manage-list-item.dp-active {
    border-color: var(--sap-orange);
    background: var(--sap-bg2);
    box-shadow: 0 2px 8px rgba(255, 127, 0, 0.12);
}

.dp-manage-list-thumb {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--sap-bg2);
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
    border: 2px solid white;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sap-orange);
    font-weight: 700;
    font-size: 18px;
}

.dp-manage-list-thumb-square {
    border-radius: 6px;
}

.dp-manage-list-info {
    flex: 1;
    min-width: 0;
}

.dp-manage-list-name {
    font-weight: 700;
    color: var(--sap-ink);
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dp-manage-list-sub {
    font-size: 12px;
    color: var(--sap-ink2);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}

.dp-manage-list-tag {
    display: inline-block;
    background: var(--sap-bg2);
    color: var(--sap-orange);
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 8px;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* === Formulaire d'édition === */
.dp-manage-form {
    background: white;
    border: 1px solid var(--sap-border);
    border-radius: 10px;
    padding: 24px 28px;
}

.dp-manage-form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 0 20px 0;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--sap-bg2);
}

.dp-manage-form-header h3 {
    margin: 0;
    color: var(--sap-ink);
    font-size: 18px;
    font-weight: 700;
}

/* Photo / Logo */
.dp-manage-photo-block {
    background: var(--sap-bg2);
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 18px;
}

.dp-manage-photo-block > label {
    display: block;
    font-weight: 600;
    color: var(--sap-ink);
    font-size: 13px;
    margin-bottom: 12px;
}

.dp-manage-photo-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.dp-manage-photo-preview {
    width: 90px;
    height: 90px;
    background: white;
    border: 2px dashed var(--sap-border);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.dp-manage-photo-circle {
    border-radius: 50%;
}

.dp-manage-photo-square {
    border-radius: 8px;
    width: 110px;
    height: 70px;
}

.dp-manage-photo-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.dp-manage-photo-preview span {
    font-size: 11px;
    color: var(--sap-ink2);
    text-align: center;
    padding: 0 8px;
    font-style: italic;
}

.dp-manage-photo-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Logos clients dans le CV */
.dp-cv-logos-zone {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
    min-height: 20px;
}

.dp-cv-logos-zone .dp-logo-thumb {
    position: relative;
    width: 90px;
    height: 56px;
    background: white;
    border: 1px solid var(--sap-border);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 4px;
}

.dp-cv-logos-zone .dp-logo-thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.dp-cv-logos-zone .dp-logo-thumb-remove {
    position: absolute;
    top: -7px;
    right: -7px;
    background: var(--sap-rose);
    color: white;
    border: 2px solid white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    cursor: pointer;
    font-size: 13px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    font-weight: 700;
}

/* Actions du formulaire */
.dp-manage-form-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 24px;
    padding-top: 18px;
    border-top: 2px solid var(--sap-bg2);
    flex-wrap: wrap;
}

.dp-manage-form-actions .dp-btn-danger {
    margin-left: auto;
    background: white;
    color: #dc3545;
    border: 1.5px solid #dc3545;
}

.dp-manage-form-actions .dp-btn-danger:hover {
    background: #dc3545;
    color: white;
}

/* Bouton link (style discret) */
.dp-btn-link {
    background: none;
    border: none;
    color: var(--sap-ink2);
    text-decoration: underline;
    cursor: pointer;
    font-size: 13px;
    padding: 4px 8px;
    font-family: inherit;
}

.dp-btn-link:hover {
    color: var(--sap-orange);
}

/* Toast notifications */
.dp-toast {
    position: fixed;
    top: 30px;
    right: 30px;
    background: white;
    padding: 14px 22px;
    border-radius: 10px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
    z-index: 100000;
    border-left: 4px solid var(--sap-orange);
    animation: dp-toast-in 0.3s ease-out;
    font-size: 14px;
    color: var(--sap-ink);
    font-weight: 500;
    max-width: 360px;
}

.dp-toast-success {
    border-left-color: #28a745;
}

.dp-toast-error {
    border-left-color: #dc3545;
}

@keyframes dp-toast-in {
    from { transform: translateX(40px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Spinner pendant l'upload */
.dp-uploading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.dp-uploading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2.5px solid var(--sap-bg2);
    border-top-color: var(--sap-orange);
    border-radius: 50%;
    animation: dp-spinner 0.7s linear infinite;
}

@keyframes dp-spinner {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ============================================================
   === SLIDE TABLEAU (v1.11) ===
   ============================================================ */

/* Bandeau d'en-tête de la carte d'édition */
#domelia-presentation-app .dp-slide-header-tableau {
    background: linear-gradient(90deg, rgba(255,127,0,0.10) 0%, rgba(255,31,110,0.10) 100%);
    border-left: 4px solid var(--sap-orange);
}

/* === Éditeur === */
#domelia-presentation-app .dp-tableau-editor {
    width: 100%;
    overflow-x: auto;
    background: #fff;
    border: 1px solid var(--sap-border);
    border-radius: 10px;
    padding: 8px;
    margin-top: 4px;
}

#domelia-presentation-app .dp-tableau-edit-grid {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
}

#domelia-presentation-app .dp-tableau-edit-grid th,
#domelia-presentation-app .dp-tableau-edit-grid td {
    padding: 3px;
    vertical-align: middle;
    border: 0;
}

#domelia-presentation-app .dp-tableau-edit-grid .dp-tableau-row-handle {
    width: 26px;
    min-width: 26px;
    text-align: center;
    padding: 0;
}

/* En-tête : champ texte sur fond dégradé léger pour évoquer le rendu PDF */
#domelia-presentation-app .dp-tableau-header-wrap {
    position: relative;
    background: linear-gradient(135deg, var(--sap-orange) 0%, var(--sap-rose) 100%);
    border-radius: 6px;
    padding: 2px 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

#domelia-presentation-app .dp-tableau-header-cell {
    flex: 1;
    width: 100%;
    background: transparent;
    border: none;
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    padding: 6px 6px;
    outline: none;
    font-family: 'Carlito', 'Calibri', sans-serif !important;
}

#domelia-presentation-app .dp-tableau-header-cell::placeholder {
    color: rgba(255,255,255,0.65);
    font-weight: 500;
}

/* Boutons supprimer colonne / ligne */
#domelia-presentation-app .dp-tableau-del-col,
#domelia-presentation-app .dp-tableau-del-row {
    background: rgba(255,255,255,0.20);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 4px;
    width: 22px;
    height: 22px;
    line-height: 18px;
    padding: 0;
    font-size: 12px;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s ease;
}

#domelia-presentation-app .dp-tableau-del-col:hover,
#domelia-presentation-app .dp-tableau-del-row:hover {
    background: rgba(255,255,255,0.40);
}

#domelia-presentation-app .dp-tableau-del-row {
    background: rgba(255,127,0,0.10);
    color: var(--sap-ink2);
    border: 1px solid var(--sap-border);
}

#domelia-presentation-app .dp-tableau-del-row:hover {
    background: rgba(255,127,0,0.20);
    color: var(--sap-orange);
}

/* Cellule (input) */
#domelia-presentation-app .dp-tableau-cell {
    width: 100%;
    background: #fff;
    border: 1px solid var(--sap-border);
    border-radius: 5px;
    padding: 6px 8px;
    font-size: 13px;
    color: var(--sap-ink);
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    font-family: 'Carlito', 'Calibri', sans-serif !important;
}

#domelia-presentation-app .dp-tableau-cell:focus {
    border-color: var(--sap-orange);
    box-shadow: 0 0 0 2px rgba(255,127,0,0.15);
}

#domelia-presentation-app .dp-tableau-cell-emphasis {
    font-weight: 700;
    background: var(--sap-bg2);
}

/* Actions : boutons + info de taille */
#domelia-presentation-app .dp-tableau-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 12px;
    flex-wrap: wrap;
}

#domelia-presentation-app .dp-tableau-size-info {
    color: var(--sap-ink2);
    font-size: 12px;
    font-style: italic;
    margin-left: auto;
}

/* === Preview HTML === */
#domelia-presentation-app .dp-tableau-slide {
    background: #fff;
    padding: 28px 32px 36px 32px;
    display: flex;
    flex-direction: column;
    border-left: 4px solid;
    border-image: linear-gradient(180deg, var(--sap-orange), var(--sap-rose)) 1;
}

#domelia-presentation-app .dp-tableau-preview-header {
    margin-bottom: 16px;
    padding-left: 6px;
    border-left: 3px solid var(--sap-orange);
}

#domelia-presentation-app .dp-tableau-preview-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--sap-ink);
    margin: 0;
    line-height: 1.2;
}

#domelia-presentation-app .dp-tableau-preview-subtitle {
    font-style: italic;
    color: var(--sap-ink2);
    margin: 4px 0 0 0;
    font-size: 13px;
}

#domelia-presentation-app .dp-tableau-preview-wrap {
    width: 100%;
    overflow-x: auto;
    flex: 1;
}

#domelia-presentation-app .dp-tableau-preview-grid {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

#domelia-presentation-app .dp-tableau-preview-grid thead th {
    background: linear-gradient(135deg, var(--sap-orange) 0%, var(--sap-rose) 100%);
    color: #fff;
    font-weight: 700;
    padding: 9px 10px;
    text-align: center;
    font-size: 13px;
    border: 1px solid rgba(255,255,255,0.25);
}

#domelia-presentation-app .dp-tableau-preview-grid tbody td {
    padding: 8px 10px;
    border: 1px solid var(--sap-border);
    color: var(--sap-ink2);
    vertical-align: top;
}

#domelia-presentation-app .dp-tableau-preview-grid tbody tr.dp-tableau-zebra-row td {
    background: var(--sap-bg2);
}

#domelia-presentation-app .dp-tableau-preview-grid td.dp-tableau-preview-first {
    font-weight: 700;
    color: var(--sap-ink);
}

/* ============================================================
   === Bouton « Retour aux applications » (v1.11.3) ===
   ============================================================ */
#domelia-presentation-app .dp-back-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: rgba(255,255,255,0.85) !important;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 6px;
    padding: 5px 11px;
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none !important;
    margin-bottom: 10px;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

#domelia-presentation-app .dp-back-link:hover,
#domelia-presentation-app .dp-back-link:focus {
    background: rgba(255,255,255,0.22);
    color: #fff !important;
    border-color: rgba(255,255,255,0.45);
    text-decoration: none !important;
}
