/* ==========================================================================
   Affidavit Guide Pratique - Styles
   Calqués sur le site affidavit.notaires.fr
   Playfair Display (titres), Source Sans Pro (corps)
   Couleur primaire : #E94E1D
   ========================================================================== */

/* Reset shortcode */
.agp-wrapper {
    margin: 0;
    padding: 0;
    font-family: "Source Sans Pro", sans-serif;
    color: #545454;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.agp-wrapper *,
.agp-wrapper *::before,
.agp-wrapper *::after {
    box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   Contenu principal - fond #f7f7f7 comme les pages internes
   -------------------------------------------------------------------------- */
.agp-content {
    background: #f7f7f7;
    padding: 60px 0 80px;
}

.agp-content-inner {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    gap: 80px;
    align-items: flex-start;
}

/* --------------------------------------------------------------------------
   Colonne gauche : description
   -------------------------------------------------------------------------- */
.agp-description {
    flex: 1;
    min-width: 0;
    padding-top: 10px;
}

/* Label de section - Playfair Display 25px uppercase, comme "POUR LES PROFESSIONNELS" */
.agp-section-label {
    font-family: "Playfair Display", serif;
    font-weight: 500;
    font-size: 25px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #292929;
    margin: 0 0 20px;
}

/* Titre principal - Source Sans Pro 50px light, comme "Compétence & réactivité" */
.agp-title {
    font-family: "Source Sans Pro", sans-serif;
    font-weight: 300;
    font-size: 50px;
    color: #292929;
    line-height: 1.2;
    margin: 0 0 25px;
}

/* Séparateur orange */
.agp-separator {
    width: 50px;
    height: 3px;
    background-color: #E94E1D;
    margin-bottom: 35px;
}

/* Texte body - Source Sans Pro 16px */
.agp-text {
    font-family: "Source Sans Pro", sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #545454;
    line-height: 1.8;
    margin: 0 0 20px;
}

.agp-text strong {
    color: #292929;
    font-weight: 600;
}

.agp-text--cta {
    margin-top: 10px;
}

/* Liste à puces - style du site */
.agp-list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px;
}

.agp-list li {
    font-family: "Source Sans Pro", sans-serif;
    font-size: 16px;
    color: #545454;
    padding: 5px 0 5px 22px;
    position: relative;
    line-height: 1.7;
}

.agp-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 14px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: #E94E1D;
}

/* --------------------------------------------------------------------------
   Colonne droite : card avec aperçu PDF + formulaire
   -------------------------------------------------------------------------- */
.agp-download-col {
    width: 400px;
    flex-shrink: 0;
}

/* Card blanche avec ombre (comme les cards articles du site) */
.agp-card {
    background: #ffffff;
    border-radius: 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

/* Couverture du PDF */
.agp-pdf-cover {
    width: 100%;
    aspect-ratio: 3 / 4;
    background: linear-gradient(160deg, #E94E1D 0%, #c93d14 100%);
    position: relative;
}

.agp-pdf-cover-inner {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px 25px;
    position: relative;
}

.agp-pdf-logo {
    font-family: "Playfair Display", serif;
    font-size: 48px;
    font-style: italic;
    color: rgba(255, 255, 255, 0.18);
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.agp-pdf-logo span {
    font-style: normal;
}

.agp-pdf-cover-text {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.agp-pdf-type {
    font-family: "Source Sans Pro", sans-serif;
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
}

.agp-pdf-doc-title {
    font-family: "Playfair Display", serif;
    font-weight: 700;
    font-size: 24px;
    color: #ffffff;
    line-height: 1.3;
    text-align: center;
}

.agp-pdf-year {
    font-family: "Source Sans Pro", sans-serif;
    font-weight: 300;
    font-size: 22px;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 4px;
}

.agp-pdf-footer-text {
    position: absolute;
    bottom: 18px;
    font-family: "Source Sans Pro", sans-serif;
    font-weight: 600;
    font-size: 9px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
}

/* --------------------------------------------------------------------------
   Formulaire (dans la card blanche, sous la couverture)
   -------------------------------------------------------------------------- */
.agp-form-wrapper {
    padding: 30px 25px 35px;
}

.agp-form {
    width: 100%;
}

.agp-form-label {
    display: block;
    font-family: "Source Sans Pro", sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: #292929;
    margin-bottom: 10px;
}

.agp-form-input {
    width: 100%;
    height: 46px;
    padding: 0 16px;
    font-family: "Source Sans Pro", sans-serif;
    font-size: 15px;
    color: #333;
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 0;
    outline: none;
    transition: border-color 0.3s ease;
    margin-bottom: 15px;
}

.agp-form-input:focus {
    border-color: #E94E1D;
}

.agp-form-input::placeholder {
    color: #bbb;
}

/* Bouton - style identique aux boutons du site (border-radius 24px, orange) */
.agp-form-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 46px;
    padding: 0 20px;
    font-family: "Source Sans Pro", sans-serif;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.15px;
    text-transform: uppercase;
    color: #ffffff;
    background-color: #E94E1D;
    border: 1px solid #E94E1D;
    border-radius: 24px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.agp-form-button:hover {
    background-color: #d14418;
}

.agp-form-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.agp-btn-loader {
    display: inline-flex;
    align-items: center;
}

.agp-form-notice {
    font-family: "Source Sans Pro", sans-serif;
    font-size: 12px;
    color: #999;
    line-height: 1.5;
    margin: 14px 0 0;
}

/* --------------------------------------------------------------------------
   Messages succès / erreur
   -------------------------------------------------------------------------- */
.agp-success {
    text-align: center;
    padding: 25px 15px;
}

.agp-success-icon {
    margin-bottom: 12px;
}

.agp-success-text {
    font-family: "Source Sans Pro", sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #292929;
    margin: 0 0 12px;
    line-height: 1.5;
}

.agp-download-link {
    font-family: "Source Sans Pro", sans-serif;
    font-size: 14px;
    color: #E94E1D;
    text-decoration: none;
    border-bottom: 1px solid #E94E1D;
    transition: opacity 0.3s ease;
}

.agp-download-link:hover {
    opacity: 0.8;
}

.agp-error {
    padding: 12px 15px;
    background: #fff5f5;
    border-left: 3px solid #cc0000;
    margin-top: 10px;
}

.agp-error-text {
    font-family: "Source Sans Pro", sans-serif;
    font-size: 14px;
    color: #cc0000;
    margin: 0;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 960px) {
    .agp-content-inner {
        flex-direction: column;
        gap: 40px;
        padding: 0 25px;
    }

    .agp-download-col {
        width: 100%;
        max-width: 400px;
    }

    .agp-title {
        font-size: 36px;
    }

    .agp-section-label {
        font-size: 20px;
    }
}

@media (max-width: 600px) {
    .agp-content {
        padding: 40px 0 50px;
    }

    .agp-title {
        font-size: 28px;
    }

    .agp-section-label {
        font-size: 18px;
    }

    .agp-content-inner {
        padding: 0 20px;
    }
}
