/* Impré'son — styles propres à la page nous-connaitre.html */

:root {
    --bleu-profond: #091b31;
    --bleu-impres: #0f2747;
    --bleu-ardoise: #1e293b;
    --orange-impres: #ea580c;
    --orange-vibrant: #f97316;
    --orange-lueur: rgba(234, 88, 12, 0.16);
    --fond-lumineux: #f8fafc;
    --surface-carte: #ffffff;
    --bordure-subtile: rgba(226, 232, 240, 0.85);
    --bordure-active: rgba(234, 88, 12, 0.35);
    --texte-sombre: #091322;
    --texte-corps: #475569;
    --texte-attenue: #627188;
    --ombre-douce: 0 4px 20px -2px rgba(15, 23, 42, 0.04), 0 2px 6px -1px rgba(15, 23, 42, 0.02);
    --ombre-survol: 0 20px 35px -8px rgba(15, 23, 42, 0.09), 0 6px 12px -3px rgba(15, 23, 42, 0.03);
    --transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

html,
body {
    min-height: 100vh;
    margin: 0;
    background-color: #fbfcfe;
}

body {
    display: flex;
    flex-direction: column;
    font-family: 'Inter', 'Inter Repli', system-ui, sans-serif;
    color: var(--texte-corps);
    background-image:
        radial-gradient(at 100% 0%, rgba(234, 88, 12, 0.03) 0px, transparent 50%),
        radial-gradient(at 0% 20%, rgba(15, 39, 71, 0.03) 0px, transparent 40%);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

main {
    flex: 1 0 auto;
}

h1,
h2,
h3,
h4 {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    color: var(--texte-sombre);
}

.conteneur-page {
    max-width: 1160px;
    width: 100%;
    box-sizing: border-box;
    margin: 0 auto;
    padding: 3rem 1.5rem 5rem 1.5rem;
}

/* Micro-badge de catégorie */
.pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: #fff7ed;
    color: var(--orange-action);
    border: 1px solid #ffedd5;
    margin-bottom: 1rem;
}

.pill-badge .point {
    width: 6px;
    height: 6px;
    background: var(--orange-impres);
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.2);
}

/* --- SECTION 1 : HÉRO --- */
.section-hero {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 3.5rem;
    align-items: center;
    margin-bottom: 5rem;
}

.hero-texte h1 {
    font-size: clamp(2rem, 2.7vw, 2.5rem);
    font-weight: 900;
    color: var(--bleu-profond);
    line-height: 1.18;
    letter-spacing: -0.03em;
    margin: 0 0 1.35rem 0;
}

/* Titre principal (H1) présenté comme le petit bandeau orange */
.hero-texte h1.pill-badge {
    font-family: 'Inter', 'Inter Repli', system-ui, sans-serif;
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--orange-action);
    line-height: 1.65;
    letter-spacing: 0.05em;
    margin: 0 0 1rem 0;
}

.hero-texte .chapeau {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--bleu-impres);
    line-height: 1.45;
    margin-bottom: 1.35rem;
    padding-left: 1.1rem;
    border-left: 3.5px solid var(--orange-impres);
}

.hero-texte p {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.7;
    margin-bottom: 1.1rem;
    text-align: justify;
}

.hero-image {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--bordure-subtile);
    box-shadow: 0 12px 30px -6px rgba(15, 23, 42, 0.08);
    /* Cadre au format de la photo (nous-connaitre1-v2, 1448 × 1086) : rien n'est rogné */
    aspect-ratio: 1448 / 1086;
    width: 100%;
}

.hero-image::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 18px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
    pointer-events: none;
}

.hero-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center 25%;
    transition: transform 0.5s ease;
}

.hero-image:hover img {
    transform: scale(1.02);
}

/* --- SECTION 2 : ATELIER --- */
.section-atelier {
    background: #ffffff;
    border: 1px solid var(--bordure-subtile);
    border-radius: 20px;
    padding: 2.75rem;
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 3rem;
    align-items: center;
    box-shadow: var(--ombre-douce);
    margin-bottom: 5rem;
    position: relative;
    overflow: hidden;
}

.section-atelier::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--orange-impres), #f59e0b, transparent);
}

.atelier-image {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--bordure-subtile);
    aspect-ratio: 4 / 3;
    background: var(--fond-lumineux);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.04);
}

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

.atelier-texte h2 {
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--bleu-profond);
    letter-spacing: -0.025em;
    margin: 0 0 0.85rem 0;
}

.atelier-texte .intro {
    font-size: 1rem;
    font-weight: 700;
    color: var(--orange-action);
    margin-bottom: 1rem;
    line-height: 1.45;
}

.atelier-texte p {
    font-size: 0.94rem;
    color: #475569;
    line-height: 1.65;
    margin-bottom: 1rem;
    text-align: justify;
}

.encadre-atelier {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 3.5px solid var(--bleu-impres);
    padding: 1rem 1.25rem;
    border-radius: 8px;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--texte-sombre);
    margin-top: 1.2rem;
    line-height: 1.5;
}

/* --- SECTION 3 : PILIERS --- */
.section-travail {
    margin-bottom: 5rem;
}

.en-tete-section {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 3rem auto;
}

.en-tete-section h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--bleu-profond);
    letter-spacing: -0.025em;
    margin: 0 0 0.5rem 0;
}

.en-tete-section p {
    font-size: 0.96rem;
    color: var(--texte-attenue);
    margin: 0;
}

.grille-piliers {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.35rem;
}

.carte-pilier {
    background: #ffffff;
    border: 1px solid var(--bordure-subtile);
    border-radius: 16px;
    padding: 1.75rem 1.35rem;
    box-shadow: var(--ombre-douce);
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    transition: var(--transition);
    position: relative;
}

.carte-pilier:hover {
    transform: translateY(-5px);
    box-shadow: var(--ombre-survol);
    border-color: var(--bordure-active);
}

.icone-pilier {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.carte-pilier:hover .icone-pilier {
    transform: scale(1.08);
}

.icone-orange {
    background: #fff7ed;
    color: var(--orange-impres);
}

.icone-bleu {
    background: #eff6ff;
    color: #2563eb;
}

.icone-ambre {
    background: #fefce8;
    color: #d97706;
}

.icone-vert {
    background: #f0fdf4;
    color: #059669;
}

.carte-pilier h3 {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--texte-sombre);
    margin: 0;
    line-height: 1.35;
}

.carte-pilier p {
    font-size: 0.88rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
    text-align: justify;
}

/* --- SECTION 4 : ÉQUIPE --- */
.section-equipe {
    margin-bottom: 5rem;
}

.grille-associes {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.35rem;
}

.carte-associe {
    background: #ffffff;
    border: 1px solid var(--bordure-subtile);
    border-radius: 16px;
    padding: 1.15rem;
    box-shadow: var(--ombre-douce);
    transition: var(--transition);
    text-align: center;
}

.carte-associe:hover {
    transform: translateY(-4px);
    box-shadow: var(--ombre-survol);
    border-color: rgba(37, 99, 235, 0.35);
}

.portrait-placeholder {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    border: 1px solid #e2e8f0;
    color: #94a3b8;
    overflow: hidden;
    position: relative;
}

.portrait-associe {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 1rem;
    background: #f1f5f9;
}

.tag-associe {
    font-size: 0.7rem;
    font-weight: 800;
    color: #2563eb;
    background: #eff6ff;
    padding: 0.2rem 0.6rem;
    border-radius: 9999px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.nom-associe {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--texte-sombre);
    margin: 0 0 0.4rem 0;
}

.bio-associe {
    font-size: 0.82rem;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
}

/* Encadré expérience métier (sous les associés) */
.encadre-experience {
    margin-top: 2rem;
    background: #ffffff;
    border: 1px solid var(--bordure-subtile);
    border-left: 4px solid var(--orange-impres);
    border-radius: 16px;
    padding: 1.75rem 2rem;
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 1.5rem;
    align-items: start;
    box-shadow: var(--ombre-douce);
}

.icone-experience {
    width: 52px;
    height: 52px;
    background: #fff7ed;
    border: 1.5px solid #fed7aa;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--orange-impres);
}

.experience-texte h3 {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--bleu-profond);
    margin: 0 0 0.65rem 0;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

/* Nom de la marque : orange Impré'son, comme sur l'accueil */
.experience-texte h3 .marque {
    color: var(--orange-impres);
}

.experience-texte p {
    font-size: 0.95rem;
    color: #334155;
    line-height: 1.65;
    margin: 0 0 0.65rem 0;
}

.experience-texte strong {
    color: var(--texte-sombre);
    font-weight: 700;
}

.experience-texte p.experience-complement {
    color: #64748b;
    margin: 0;
}

/* --- SECTION 5 : BANDEAU RELATIONNEL --- */
.bandeau-confiance {
    background: linear-gradient(135deg, #ffffff 0%, #fffbf7 100%);
    border: 1.5px solid #fed7aa;
    border-radius: 20px;
    padding: 2.25rem 2.5rem;
    display: grid;
    grid-template-columns: 60px 1fr; /* texte sur toute la largeur (ancienne 3e colonne : mention manuscrite retirée) */
    gap: 2rem;
    align-items: center;
    box-shadow: 0 10px 25px -5px rgba(234, 88, 12, 0.07);
}

.icone-poignee {
    width: 58px;
    height: 58px;
    background: #fff7ed;
    border: 1.5px solid #fdba74;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--orange-impres);
}

.confiance-texte h3 {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--bleu-profond);
    margin: 0 0 0.4rem 0;
    letter-spacing: -0.01em;
}

.confiance-texte p {
    font-size: 0.92rem;
    color: #475569;
    line-height: 1.6;
    margin: 0 0 0.35rem 0;
}

.confiance-manuscrit {
    font-family: 'Caveat', cursive;
    font-size: 1.65rem;
    font-weight: 700;
    color: #1e3a8a;
    line-height: 1.2;
    text-align: right;
    transform: rotate(-2deg);
}

/* Pied de page officiel calé en bas */
footer {
    flex-shrink: 0;
    margin-top: auto;
    width: 100%;
    background-color: #ffffff;
    border-top: 1px solid #e2e8f0;
    padding: 1.25rem 1rem;
    text-align: center;
    font-size: 0.82rem;
    color: #64748b;
}

/* Modale d'authentification Pro */
.modal-auth-fond {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 1rem;
}

.modal-auth-boite {
    background: #ffffff;
    border-radius: 12px;
    max-width: 420px;
    width: 100%;
    padding: 2rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
    text-align: center;
    animation: apparitionModal 0.2s ease-out;
}

@keyframes apparitionModal {
    from {
        opacity: 0;
        transform: scale(0.96);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* --- RESPONSIVE MOBILE & TABLETTE --- */
@media (max-width: 960px) {
    .section-hero {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Mobile : le texte prend toute la largeur (site.css lui ajoute 4rem à droite pour le bureau) */
    .hero-texte {
        padding-right: 0;
    }

    /* Mobile : photo exactement de la largeur du texte (bords alignés) */
    .hero-image {
        width: 100%;
        margin: 0;
    }


    .section-atelier {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 1.75rem;
    }

    .grille-piliers,
    .grille-associes {
        grid-template-columns: repeat(2, 1fr);
    }

    .bandeau-confiance {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 2rem 1.5rem;
    }

    .icone-poignee {
        margin: 0 auto;
    }

    .confiance-manuscrit {
        text-align: center;
        transform: none;
        margin-top: 0.75rem;
    }
}

@media (max-width: 560px) {
    .conteneur-page {
        padding: 1.5rem 1rem 4rem 1rem;
    }

    .grille-piliers,
    .grille-associes {
        grid-template-columns: 1fr;
    }

    .encadre-experience {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1.5rem 1.25rem;
    }

    .hero-texte h1 {
        font-size: 1.85rem;
    }

    /* Texte justifié (bords alignés sur la photo) : la césure automatique
       coupe les mots longs pour éviter les grands trous entre les mots */
    .hero-texte p,
    .atelier-texte p,
    .carte-pilier p {
        text-align: justify;
        -webkit-hyphens: auto;
        hyphens: auto;
    }
}
