@charset "UTF-8";
/**
 * Styles pour la page Constitution SLP
 * Fichier: /assets/css/constitution-slp.css
 * Version professionnelle optimisï¿½e pour mobile et tablette
 * SLP - Sociï¿½tï¿½ en Libre Partenariat
 */

/* ===== RESET ET BASE ===== */
* {
    box-sizing: border-box;
}

/* Forcer l'encodage UTF-8 pour tout le contenu */
body {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Classes utilitaires pour la dï¿½tection d'appareil */
body.is-mobile {
    -webkit-tap-highlight-color: transparent;
}

body.is-tablet {
    -webkit-tap-highlight-color: transparent;
}

/* ===== HERO SECTION COMPACT ===== */
.hero-slp-compact {
    background: linear-gradient(135deg, #f5f5fe 0%, #e8e8fb 100%);
    padding: 3rem 0;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    color: #000091;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-align: center;
}

.hero-description {
    color: #3a3a3a;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    text-align: justify;
}

.hero-description-intro {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* ===== SECTIONS SPï¿½CIFIQUES SLP ===== */
.commandite-item,
.commanditaire-item {
    background: #f8f8fb;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #000091;
    position: relative;
}

.commandite-item h4,
.commanditaire-item h4 {
    color: #000091;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.remove-commandite,
.remove-commanditaire {
    background: #e1000f;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.remove-commandite:hover,
.remove-commanditaire:hover {
    background: #c60e13;
    transform: translateY(-1px);
}

.commandite-physique-1,
.commandite-morale-1,
.commanditaire-physique-1,
.commanditaire-morale-1 {
    transition: all 0.3s ease;
}

/* Styles pour les sections dynamiques */
[class^="commandite-physique-"],
[class^="commandite-morale-"],
[class^="commanditaire-physique-"],
[class^="commanditaire-morale-"] {
    margin-top: 1rem;
}

/* ===== PRICE BANNER ===== */
.price-banner {
    background: #000091;
    color: white;
    padding: 2rem;
    margin: -2rem -2rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 0;
    position: relative;
    overflow: visible;
}

.price-banner-left {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.price-banner-amount {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.price-banner-subtitle {
    font-size: 0.875rem;
    font-weight: 400;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.price-link {
    color: white !important;
    text-decoration: none !important;
    opacity: 0.9;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    position: relative;
    border: none !important;
    outline: none;
}

.price-link span {
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.price-link:hover {
    opacity: 1;
}

.price-link:hover span {
    border-bottom-color: white;
}

.price-link svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.price-banner-info {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.price-banner-ttc {
    font-size: 1.75rem;
    font-weight: 600;
}

.price-banner-info small {
    font-size: 0.875rem;
    opacity: 0.9;
}

/* Badge "Tarif rï¿½glementï¿½" */
.price-banner::before {
    content: "TARIF R\00C9GLEMENT\00C9";  /* É = \00C9 */
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #e1000f;
    color: white;
    padding: 0.375rem 1.25rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    border-radius: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    border: 1px solid #c60e13;
    display: inline-block;
    line-height: 1;
    z-index: 10;
    white-space: nowrap;
}

/* ===== EMAIL CAPTURE SECTION ===== */
.email-capture-section {
    background: #f8f8fb;
    padding: 1.5rem;
    margin: -2rem -2rem 2rem;
    border-bottom: 2px solid #e0e0e0;
}

.email-capture-section .form-group {
    margin-bottom: 0;
}

.email-capture-section .form-help {
    font-size: 0.75rem;
    color: #666;
    line-height: 1.4;
    margin-top: 0.5rem;
}

.email-capture-section .form-help a {
    color: #000091;
    text-decoration: underline;
    display: inline;
    position: relative;
}

.email-capture-section .form-help a:hover {
    color: #1212ff;
}

/* ===== FORM CONTAINER ===== */
.form-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 2rem;
    overflow: visible;
}

.form-step {
    margin-bottom: 3rem;
}

.form-step-header {
    background: #f5f5fe;
    padding: 1rem 1.5rem;
    margin: -2rem -2rem 2rem;
    border-left: 4px solid #000091;
}

.form-step-header h3 {
    color: #000091;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.step-number {
    background: #000091;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* ===== CLAUSES SECTION ===== */
.clause-section {
    background: #f8f8f8;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border-left: 3px solid #000091;
}

.clause-section h4 {
    color: #000091;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* ===== FORM FIELDS ===== */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    color: #161616;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-group .required {
    color: #ce614a;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    line-height: 1.4;
}

.form-control[readonly],
.form-control:read-only {
    background-color: #f5f5f5;
    cursor: not-allowed;
    padding: 0.75rem;
}

select.form-control {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1.2em;
    padding-right: 2.5rem;
    cursor: pointer;
}

input[type="date"].form-control,
input[type="text"].form-control,
input[type="number"].form-control,
input[type="email"].form-control,
input[type="tel"].form-control,
select.form-control {
    height: 48px;
    box-sizing: border-box;
}

textarea.form-control {
    height: auto;
    min-height: 50px;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    resize: vertical;
}

#objet {
    min-height: 50px !important;
    height: 50px !important;
}

.form-control:focus {
    outline: none;
    border-color: #000091;
}

.form-control.error {
    border-color: #ce614a;
}

.form-control.valid {
    border-color: #18753c;
}

.form-help {
    font-size: 0.875rem;
    color: #666;
    margin-top: 0.25rem;
}

.form-error {
    font-size: 0.875rem;
    color: #ce614a;
    margin-top: 0.25rem;
    display: none;
}

.form-control.error + .form-error {
    display: block;
}

/* ===== RADIO & CHECKBOX GROUPS ===== */
.form-radio-group,
.form-checkbox-group {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.form-radio,
.form-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-radio input[type="radio"],
.form-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
}

/* ===== INFO ALERTS ===== */
.info-alert {
    background-color: #e3e3fd;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 4px;
    border-left: 4px solid #000091;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.info-alert-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
}

.info-alert-content {
    flex: 1;
}

.info-alert-content p {
    margin: 0;
    font-size: 0.875rem;
    color: #161616;
}

/* ===== CAPITAL CALCULATOR ===== */
.capital-calculator {
    background: #f8f8f8;
    padding: 1.5rem;
    border-radius: 4px;
    margin: 1rem 0;
}

.capital-inputs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.capital-result {
    font-size: 1.25rem;
    font-weight: 700;
    color: #000091;
    text-align: center;
    padding: 1rem;
    background: white;
    border-radius: 4px;
}

.nature-details-section {
    border-left: 3px solid #000091;
}

.nature-details-section h5 {
    font-size: 1rem;
    font-weight: 600;
}

/* ===== INFO TOOLTIPS ===== */
.info-tooltip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 0.5rem;
    cursor: help;
    position: relative;
    vertical-align: middle;
    width: 18px;
    height: 18px;
    background: #e3e3fd;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-tap-highlight-color: transparent;
}

.info-tooltip::before {
    content: "?";
    font-size: 12px;
    font-weight: 600;
    color: #000091;
    line-height: 1;
}

.info-tooltip:hover {
    background: #000091;
    transform: scale(1.15);
    box-shadow: 0 2px 8px rgba(0, 0, 18, 0.15);
}

.info-tooltip:hover::before {
    color: white;
}

.info-tooltip svg {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
    pointer-events: none;
}

.tooltip-content {
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    background: white;
    color: #161616;
    padding: 1.25rem;
    border-radius: 12px;
    font-size: 0.875rem;
    line-height: 1.5;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15), 0 3px 10px rgba(0,0,0,0.1);
    border: 2px solid #000091;
    min-width: 280px;
    max-width: 320px;
    font-weight: normal;
    white-space: normal;
    pointer-events: none;
}

.tooltip-content strong {
    color: #000091;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 0.25rem;
}

.tooltip-content::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid white;
}

.tooltip-content::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-top: 12px solid #000091;
    margin-top: -2px;
}

.info-tooltip:hover .tooltip-content,
.info-tooltip:focus-within .tooltip-content {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-5px);
    pointer-events: auto;
}

/* ===== PREVIEW CARD ===== */
.preview-card {
    background: white;
    border: 2px solid #000091;
    border-radius: 8px;
    position: sticky;
    top: 2rem;
    overflow: hidden;
    padding: 0;
    max-width: 400px;
    margin: 0 auto;
}

.sidebar-card.preview-card {
    padding: 0;
}

.preview-header {
    background: #000091;
    color: white;
    padding: 1rem 1.5rem;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-header h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    color: white !important;
    font-size: 1.125rem;
}

.preview-header svg {
    color: white !important;
    fill: white !important;
    stroke: white !important;
}

.preview-content {
    background: white;
    padding: 1.2rem;
    border-radius: 8px;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.8rem;
    line-height: 1.35;
    max-height: 600px;
    overflow-y: auto;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.05);
    position: relative;
    text-align: left;
    color: #333;
    max-width: 100%;
}

.preview-annonce {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.85rem;
    line-height: 1.4;
    color: #333;
    text-align: left;
}

.preview-annonce-denomination {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 1rem 0;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.preview-annonce-text {
    margin-bottom: 0.3rem;
    text-align: justify;
    text-justify: inter-word;
}

.preview-annonce-text strong {
    font-weight: 600;
}

.preview-annonce span[id^="preview-"] {
    background: transparent !important;
    color: inherit !important;
    padding: 0 !important;
    font-weight: inherit !important;
}

.preview-signature {
    text-align: right;
    font-style: italic;
    margin-top: 2rem;
    font-size: 0.9rem;
}

.preview-footer {
    margin-top: 1rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid #e0e0e0;
    font-size: 0.75rem;
    color: #666;
    font-style: italic;
}

/* ===== SIDEBAR ===== */
.sidebar {
    position: sticky;
    top: 2rem;
}

.sidebar-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.sidebar-card h4 {
    color: #000091;
    margin-bottom: 1rem;
}

/* ===== BUTTONS ===== */
.btn-primary {
    background: #000091 !important;
    background-color: #000091 !important;
    color: white !important;
    padding: 0.75rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background: #1212ff !important;
    background-color: #1212ff !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn-primary:disabled {
    background: #929292 !important;
    background-color: #929292 !important;
    color: white !important;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    background: white;
    color: #000091;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border: 2px solid #000091;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #f5f5fe;
}

/* Bottom CTA */
.bottom-cta {
    background: #f5f5fe;
    padding: 2rem;
    margin: 2rem -2rem -2rem;
    text-align: center;
    border-top: 1px solid #e0e0e0;
}

/* ===== MOBILE SPECIFIC ===== */
@media (max-width: 767px) {
    .form-container .bottom-cta {
        display: none !important;
    }
    
    .hero-slp-compact {
        padding: 2rem 1rem;
    }
    
    .hero-title {
        font-size: 1.5rem;
        line-height: 1.3;
        margin-bottom: 1rem;
        padding: 0 0.5rem;
    }
    
    .hero-description {
        font-size: 0.9rem;
        text-align: left;
        padding: 0 0.5rem;
    }
    
    .price-banner {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
        padding: 2.5rem 1.5rem 2rem;
        margin: 0.5rem -1rem 1.5rem;
        border-radius: 0;
        overflow: visible !important;
        position: relative;
    }
    
    .price-banner::before {
        font-size: 0.7rem;
        padding: 0.3rem 1rem;
        top: -10px;
        z-index: 10;
    }
    
    .form-container {
        padding: 1rem;
        border-radius: 0;
        box-shadow: none;
        background: white;
    }
    
    .fr-container {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
        padding-bottom: 0 !important;
    }
    
    .form-step {
        margin-bottom: 2rem;
    }
    
    .form-step-header {
        margin: -1rem -1rem 1.5rem;
        padding: 1rem;
    }
    
    .commandite-item,
    .commanditaire-item {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .tooltip-content {
        display: none !important;
    }
    
    .info-tooltip {
        width: 24px;
        height: 24px;
        padding: 0;
        touch-action: manipulation;
    }
    
    .info-tooltip::before {
        font-size: 14px;
    }
    
    .sidebar {
        display: flex !important;
        flex-direction: column;
        position: static !important;
        margin: 2rem 0 0 0 !important;
        padding: 0 !important;
        flex: 1;
        padding-bottom: 100px !important;
    }
    
    .preview-card {
        display: block !important;
        position: static !important;
        max-width: 100% !important;
        margin: 0 0.75rem !important;
        border-radius: 8px;
        border: 2px solid #000091;
        flex: 1 1 auto;
        min-height: 300px;
    }
    
    .preview-content {
        max-height: none !important;
        overflow-y: visible !important;
    }
    
    .bottom-cta.mobile-only {
        display: block !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 1rem 0.75rem !important;
        background: #f5f5fe !important;
        border-top: 1px solid #e0e0e0 !important;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1) !important;
        z-index: 999 !important;
        text-align: center;
    }
    
    .bottom-cta.mobile-only .btn-primary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 1rem 1.5rem !important;
        font-size: 1rem !important;
    }
}

/* ===== TABLETTE ===== */
@media (min-width: 768px) and (max-width: 1023px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
        padding: 0 1rem;
    }
    
    .fr-container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    .fr-col-12.fr-col-lg-4 {
        padding-left: 0 !important;
        margin-top: 2rem;
    }
    
    .sidebar {
        position: static !important;
    }
    
    .sidebar-card.preview-card {
        position: static !important;
        max-width: 100%;
        margin: 0 auto 2rem;
    }
    
    .form-container {
        padding: 1.5rem;
    }
    
    .tooltip-content {
        display: none !important;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-step {
    animation: fadeIn 0.3s ease-out;
}

.commandite-item,
.commanditaire-item {
    animation: fadeIn 0.3s ease-out;
}

/* ===== SAVE NOTIFICATION ===== */
.save-notification {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #18753c;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    z-index: 9999;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ===== INDICATEUR DE SAUVEGARDE ===== */
#save-indicator {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #18753c;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
    display: none;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* ===== PRINT STYLES ===== */
@media print {
    .sidebar,
    .hero-slp-compact,
    .price-banner,
    .bottom-cta,
    .btn-secondary,
    .info-tooltip,
    .mobile-only {
        display: none !important;
    }
    
    .form-container {
        box-shadow: none;
        padding: 0;
    }
    
    .preview-content {
        max-height: none;
        overflow: visible;
    }
}
/* Fix pour l'icône d'interdiction sur les select error */
select.form-control.error {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") !important;
    cursor: pointer !important;
}

/* Override DSFR pour TOUS les selects avec classe error */
select.form-control.error:not(:focus):not([data-touched="true"]),
.form-control select.error:not(:focus):not([data-touched="true"]) {
    border-color: #ddd !important;
    background-color: #eee !important;
    cursor: pointer !important;
}

/* Afficher l'erreur seulement après interaction */
select.form-control.error[data-touched="true"]:not(:focus) {
    border-color: #ce614a !important;
}

/* Garder la bordure bleue au focus pour tous les selects */
select.form-control:focus {
    border-color: #000091 !important;
}

/* Retirer l'icône de curseur interdit sur tous les selects */
select.form-control {
    cursor: pointer !important;
}