/* =============================================================
   PAGE.CSS — pages intérieures
   ============================================================= */

body {
    font-family: var(--font-body, 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif);
    background: #fff;
    color: var(--neutral-700, #4a5568);
}

* { font-size: inherit; }

strong { font-weight: 600; }

.container > div { max-width: var(--max-width, 1170px); width: 100%; margin: 0 auto; }

#niv1 > div, #niv2 > div, #nivF > div {
    max-width: var(--max-width, 1170px);
    width: 100%;
    margin: 0 auto;
}

#niv3 {
    background: linear-gradient(to right, #f5f9fb 50%, #f8fbfc 50%) !important;
}


#niv1 { display: block; margin-bottom: 0; }

#global {
    width: 100%;
    max-width: var(--max-width, 1170px);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    padding: 0 24px;
}

/* =============================================================
   BANDEAU BREADCRUMB
   ============================================================= */
#niv2 {
    display: block;
    background: var(--primary, #156082);
    color: #fff;
    padding: 10px 0;
    width: 100%;
}

/* =============================================================
   COLONNE GAUCHE — #ct_g / #ct_c
   ============================================================= */
#ct_g {
    float: left;
    width: 66%;
    background: #fff;
}

#ct_c {
    float: left;
    width: 100%;
    background: #fff;
}

#ct_g article {
    padding: 48px;
}

#ct_c article {
    padding: 48px;
}

#ctI {
    margin-bottom: 28px;
}

#ctI img {
    width: 100%;
    border-radius: var(--radius-md, 12px);
    display: block;
}

/* H1 pages intérieures */
#ct_g h1,
#ct_c h1 {
    color: var(--primary, #156082);
    font-size: 1.9rem;
    font-weight: 700;
    margin: 0 0 36px;
    line-height: 1.2;
    letter-spacing: -.015em;
    padding: 0;
    background: none;
}

#ct_g h1 span,
#ct_c h1 span {
    display: inline;
    background: none;
    padding: 0;
}

/* H2 dans le texte */
#texte h2,
#ct_c article h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary, #156082);
    margin: 2em 0 .6em;
    text-align: left;
    padding-left: 12px;
    border-left: 3px solid var(--accent, #54c1d8);
    letter-spacing: -.01em;
    text-transform: none;
}

#texte h2:first-child { margin-top: 0; }

/* H3 dans le texte */
h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-mid, #1c7fa8);
    margin: 1.5em 0 .5em;
    text-align: left;
    padding: 0;
    background: none;
    line-height: 1.4;
}

/* H4 */
h4 {
    text-align: left;
    margin: 0 0 16px;
    color: var(--primary, #156082);
    text-transform: uppercase;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: .08em;
}

/* Texte courant */
#texte p,
#ct_c article p {
    color: var(--neutral-700, #4a5568);
    text-align: left;
    line-height: 1.8;
    margin-bottom: 1em;
    font-size: 15.5px;
}

/* Liens */
#ct_d a,
#texte a {
    color: var(--primary-mid, #1c7fa8);
    text-decoration: underline;
    text-decoration-color: var(--accent-soft, #a8dfe8);
    text-underline-offset: 3px;
}

#ct_d a:hover,
#texte a:hover {
    color: var(--accent, #54c1d8);
}

/* Listes */
#texte ul {
    padding: 0 0 8px 8px;
    margin: 8px 0 16px;
    list-style: none;
}

#texte ul li {
    padding: 5px 0 5px 20px;
    position: relative;
    color: var(--neutral-700, #4a5568);
    line-height: 1.6;
	text-align:left;
}

#texte ul li::before {
    content: "›";
    position: absolute;
    left: 0;
    color: var(--accent, #54c1d8);
    font-weight: 700;
    font-size: 1.2em;
    line-height: 1.3;
}

ul.disc li {
    list-style: disc inside !important;
    color: var(--primary-mid, #1c7fa8);
}

/* Blockquote */
blockquote {
    font-style: italic;
    padding: 16px 16px 16px 20px;
    border-left: 3px solid var(--accent, #54c1d8);
    background: var(--accent-pale, #eaf4f8);
    border-radius: 0 var(--radius-sm, 6px) var(--radius-sm, 6px) 0;
    margin: 16px 0;
}

blockquote * { font-size: 14px; color: var(--neutral-700, #4a5568); }

blockquote p:before {
    content: '\201C';
    font-size: 2em;
    color: var(--accent, #54c1d8);
    line-height: .1em;
    margin-right: .2em;
    vertical-align: -.4em;
    font-family: Georgia;
}

blockquote:after {
    content: '\201D';
    font-size: 2em;
    color: var(--accent, #54c1d8);
    line-height: .1em;
    margin-left: .2em;
    vertical-align: -.4em;
    font-family: Georgia;
}

/* HR */
hr { border: none; border-top: 1px solid var(--neutral-200, #d4ecf3); margin: 24px 0; }

/* Tableaux */
table { width: 100%; border-collapse: collapse; }

table tr th {
    background: var(--accent-pale, #eaf4f8);
    color: var(--primary, #156082);
    font-weight: 700;
    padding: 12px 16px;
    text-align: left;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

table tr td {
    padding: 12px 16px;
    text-align: left;
    color: var(--neutral-700, #4a5568);
    border-bottom: 1px solid var(--neutral-100, #eaf4f8);
    font-size: 15px;
}

/* Bouton savoir plus */
.savoirPlus {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 2px solid var(--accent, #54c1d8);
    border-radius: 50px;
    color: var(--primary, #156082);
    margin-top: 24px;
    padding: 10px 24px;
    font-weight: 600;
    font-size: 14px;
    transition: background var(--transition, .25s ease), color var(--transition, .25s ease);
    text-decoration: none;
}

.savoirPlus:hover {
    background: var(--accent, #54c1d8);
    color: #fff;
    text-decoration: none;
}

/* Bouton RDV */
#rdv {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent, #54c1d8);
    color: #fff !important;
    font-weight: 700;
    font-size: 15px;
    padding: 12px 24px;
    border-radius: 50px;
    box-shadow: 0 4px 16px rgba(84,193,216,.3);
    transition: background var(--transition, .25s ease), transform var(--transition, .25s ease);
    text-decoration: none;
    margin: 16px 0;
}

#rdv:hover {
    background: var(--primary, #156082);
    color: #fff !important;
    transform: translateY(-2px);
}

/* Utilitaires */
.blue { color: var(--primary, #156082); font-weight: 700; text-transform: uppercase; font-size: 13px; letter-spacing: .04em; }
.red { color: var(--error, #c0392b) !important; }
.comp { display: inline-block; width: 20%; padding: 2%; }
.legende { margin-top: 16px; text-align: justify; color: var(--neutral-700, #4a5568); font-size: 14px; }
.quote { font-size: 2em; vertical-align: middle; padding: 0 5px; color: var(--accent-soft, #a8dfe8); }

.adr { font-size: 14.5px; padding: 16px; line-height: 1.6; }
.adr div:first-child { font-weight: 600; color: var(--primary, #156082); }
.adr svg { vertical-align: middle; }

/* =============================================================
   COLONNE DROITE — #ct_d (sidebar)
   ============================================================= */
#ct_d {
    float: left;
    width: 33%;
    padding: 48px 0 0 24px !important;
    text-align: left;
    color: var(--neutral-700, #4a5568);
}

#ct_d > div {
    width: auto;
    float: none;
    margin: 0 0 0 0;
    background: var(--accent-pale, #eaf4f8);
    border-radius: var(--radius-md, 12px);
    padding: 24px;
    position: sticky;
    top: 104px;
}

#ct_d img {
    text-align: center;
    margin: 0 0 16px;
    max-width: 100%;
    border-radius: var(--radius-sm, 6px);
}

#ct_d div ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

#ct_d div ul li {
    list-style: none;
    text-align: left;
    margin: 0 0 10px;
    border-radius: var(--radius-sm, 6px);
    border: 1px solid var(--neutral-200, #d4ecf3);
    overflow: hidden;
    background: #fff;
    transition: box-shadow var(--transition, .25s ease), transform var(--transition, .25s ease);
}

#ct_d div ul li:hover {
    box-shadow: var(--shadow-sm, 0 2px 8px rgba(21,96,130,.08));
    transform: translateY(-2px);
}

#ct_d div ul li img {
    border-radius: 0;
    width: 100%;
    display: block;
    /* height: 110px; */
    object-fit: cover;
}

#ct_d div ul li span {
    color: #fff;
    line-height: 1.3;
    font-size: 13px;
    font-weight: 600;
    background: var(--primary, #156082);
    width: 100%;
    display: block;
    padding: 8px 10px;
    text-align: center;
    transition: background var(--transition, .25s ease);
}

#ct_d div ul a:hover li span { background: var(--accent, #54c1d8); }

#ct_d div ul li div {
    line-height: 1.4;
    color: var(--neutral-500, #8ba8b5);
    background: #fff;
    padding: 8px 10px;
    font-size: 12.5px;
}

/* Infos contact dans sidebar */
#ct_d > div > div { margin: .4em 0; font-size: 14px; color: var(--neutral-700, #4a5568); }
#ct_d > div > div b { color: var(--primary, #156082); font-weight: 700; text-transform: uppercase; font-size: 11px; letter-spacing: .06em; }

/* =============================================================
   ENCART PHOTOS DIPLÔMES (#diplomes)
   ============================================================= */
#diplomes img {
    border: 3px solid var(--accent, #54c1d8);
    width: calc(50% - 16px);
    margin: 12px 4px;
    display: inline-block;
    border-radius: var(--radius-sm, 6px);
}

/* =============================================================
   IMAGES FLOTTANTES
   ============================================================= */
.iml img {
    float: left;
    margin: 4px 16px 8px 0;
    width: auto !important;
    border-radius: var(--radius-sm, 6px);
}

/* =============================================================
   BLOCS div2 (cabinet.css est géré ici aussi)
   ============================================================= */
#divs2 { display: flex; gap: 32px; }
.div2 { flex: 1; }
.div2 img { width: 100%; padding: 0; border-radius: var(--radius-sm, 6px); }
.div2 h3 { padding: 12px 0; }
.tb { margin: 12px 0; }
.tb tr td { padding: 6px; }
.div2 iframe { max-width: 100%; border-radius: var(--radius-sm, 6px); }

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 1170px) {
    #global { width: 100%; padding: 0 16px; }
    #ct_g article { padding: 40px 16px 40px 0; }
    #ct_c article { padding: 40px 16px; }
}

@media (max-width: 959px) {
    #ct_g { width: 100%; }
    #ct_c { width: 100%; }

    #ct_d {
        width: 100%;
        float: none;
        border-top: 1px solid var(--neutral-200, #d4ecf3);
        padding: 24px 0 0 !important;
        clear: both;
        text-align: center;
    }

    #ct_d > div {
        position: static;
        max-width: 560px;
        margin: 0 auto;
    }

    #ct_d img { margin: 0 0 16px; }

    #ct_d div ul li {
        max-width: 90%;
        width: 320px;
        display: inline-block;
        margin: 10px;
    }

    #ct_g article { padding: 32px 0; }

    .comp { display: block; margin: 0 auto; }
    div.comp { width: 460px !important; }
    .savoirPlus { margin: 10px 0 20px; }

    #divs2 { flex-direction: column; }
    .div2 { flex: none; }

    .iml img { float: none; margin: 0 0 16px; display: block; }
}

@media (max-width: 640px) {
    #niv3 { margin-top: 64px !important; }
    #global { padding: 0 12px; }
    h4, #ct_d div ul li { text-align: center; }
    div.comp { width: 100% !important; }
    #diplomes img { width: 100%; margin: 8px 0; }
}

@media (max-width: 500px) {
    div.comp { width: 100% !important; }
}
