/* 2026-10-30 08:33 — PATCH 71 — Fenêtre indépendante déplacée hors de modales/. */
/* 2026-10-30 07:45 — PATCH 70 — Styles de contact extraits du HTML. */

   :root {
    font-family: Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
    color: #172339;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #f4f7fb;
}

.top {
    background: white;
    border-bottom: 1px solid #e5eaf2;
    padding: 20px clamp(16px,4vw,50px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.top h1 {
    margin: 0;
    font-size: 26px;
}

.top a {
    color: #0866dc;
    text-decoration: none;
    font-weight: 650;
}

.wrap {
    max-width: 1120px;
    margin: 16px auto;
    padding: 0 20px;
}

.intro {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 13px;
    text-align: left;
    margin: 0 24px 12px;
}

.intro h2 {
    margin: 0 0 5px;
    font-size: 27px;
    color: #143d91;
}

.intro .mail-icon {
    width: 64px;
    height: 64px;
    flex: 0 0 64px;
    background: #1261f4;
    border-radius: 15px;
    display: grid;
    place-items: center;
    box-shadow: 0 4px 12px #1261f42b;
}

.intro .mail-icon svg {
    width: 34px;
    height: 34px;
    fill: white;
}

.intro p {
    margin: 0;
}

.intro p {
    color: #718096;
}

.panel {
    background: white;
    border: 1px solid #d8e2ef;
    border-radius: 16px;
    padding: 20px 24px 12px;
    box-shadow: 0 15px 28px #14233c30,0 5px 10px #14233c18;
    display: grid;
    grid-template-columns: minmax(0,1fr) 340px;
    gap: 30px;
}

label {
    display: block;
    font-weight: 650;
    font-size: 14px;
    margin-bottom: 10px;
}

input,textarea {
    display: block;
    width: 100%;
    font: inherit;
    padding: 11px;
    margin-top: 6px;
    border: 1px solid #d4dce8;
    border-radius: 9px;
}

textarea {
    min-height: 145px;
    resize: vertical;
}

.two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

button {
    background: #0866dc;
    color: white;
    border: 0;
    border-radius: 10px;
    padding: 12px 22px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

button:disabled {
    background: #cbd4e1;
    color: #738196;
    cursor: not-allowed;
    opacity: 1;
}

.consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    font-weight: 400;
    color: #44546b;
    line-height: 1.5;
}

.consent input {
    width: auto;
    margin: 3px 0 0;
    flex-shrink: 0;
}

.consent a {
    color: #27679d;
}

.visual {
    align-self: start;
    margin-top: 23px;
    min-height: 0;
    height: 376px;
    max-height: none;
    overflow: hidden;
    border-radius: 12px;
    background: #eaf2fc;
}

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

.status {
    min-height: 0;
    font-weight: 600;
    margin: 6px 0;
}

.fine {
    margin: 6px 0 0;
}

.status:empty {
    display: none;
}

.fine {
    font-size: 12px;
    color: #718096;
}

@media(max-width:800px) {
    .panel {
        grid-template-columns: 1fr;
    }
    
    .visual {
        height: 260px;
        max-width: 420px;
        width: 100%;
        margin: auto;
    }
    
    .intro {
        justify-content: flex-start;
    }
    
    .intro .mail-icon {
        width: 52px;
        height: 52px;
        flex-basis: 52px;
    }
    
    .intro h2 {
        font-size: 23px;
    }
}

@media(max-width:480px) {
    .two {
        grid-template-columns: 1fr;
    }
    
    .panel {
        padding: 17px;
    }
}

body.modal-mode {
    background: #f4f7fb;
}

body.modal-mode .top {
    display: none;
}

body.modal-mode .wrap {
    margin: 0 auto;
    padding: 16px 0 8px;
}

body.modal-mode .panel {
    box-shadow: none;
    border: 0;
    border-top: 1px solid #e1e8f2;
    border-radius: 0;
    padding-top: 14px;
}

body.modal-mode .intro {
    margin: 0 0 12px;
    padding-right: 110px;
}

body.modal-mode .intro .mail-icon {
    width: 52px;
    height: 52px;
    flex-basis: 52px;
}

body.modal-mode .intro h2 {
    font-size: 25px;
}

@media(max-width:800px) {
    body.modal-mode .wrap {
        padding: 0 10px;
    }
}

input.email-invalid {
    border-color: #cf293f !important;
    box-shadow: 0 0 0 2px #cf293f18;
}

.email-error {
    display: block;
    color: #b42335;
    font-size: 12px;
    font-weight: 600;
    margin-top: 5px;
}

.email-error:empty {
    display: none;
}

/* Présentation Contact : image À propos, sans changement de traitement du formulaire */
body {
    background: linear-gradient(135deg,#edf1f5,#d6dce3);
}

.wrap {
    max-width: 1350px;
    margin: 24px auto;
    padding: 0 18px;
}

.panel {
    grid-template-columns: minmax(0,1fr) minmax(300px,1fr);
    gap: 36px;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 18px 60px #1b293c26;
    align-items: stretch;
}

.visual {
    margin: 0;
    height: auto;
    min-height: 590px;
    max-height: none;
    border: 6px solid #a16d3d;
    border-radius: 16px;
}

.visual img {
    height: 100%;
    object-fit: cover;
}

.intro {
    margin: 0 0 18px;
    padding: 0 0;
}

.intro h2 {
    font-family: Georgia,serif;
    font-size: 42px;
    color: #253448;
}

button {
    background: white;
    border: 2px solid #0866c2;
    color: #0866c2;
    border-radius: 10px;
    padding: 11px 20px;
}

button:disabled {
    background: #e6eaf0;
    color: #738196;
    border-color: #d5dce7;
}

body.modal-mode .panel {
    border: 1px solid #e1e8f2;
    border-radius: 16px;
    padding: 24px;
}

body.modal-mode .wrap {
    padding: 16px;
}

.fine {
    margin-top: 12px;
}

.contact-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

@media(max-width:850px) {
    .panel {
        grid-template-columns: 1fr;
    }
    
    .visual {
        min-height: 270px;
        height: 340px;
    }
    
    .intro h2 {
        font-size: 32px;
    }
}

/* L’image occupe tout le cadre, y compris en mode fenêtre. */
.visual {
    position: relative;
}

.visual img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Affichage compact et défilable dans la fenêtre modale */
body.modal-mode .wrap {
    max-width: 100%;
    margin: 0;
    padding: 15px 15px 18px;
}

body.modal-mode .intro {
    margin: 0 0 8px;
    padding: 0;
    gap: 10px;
}

body.modal-mode .intro h2 {
    font: 700 25px/1.15 Georgia,serif;
    margin: 0 0 2px;
}

body.modal-mode .intro p {
    font-size: 13px;
    line-height: 1.3;
}

body.modal-mode .intro .mail-icon {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
    border-radius: 10px;
}

body.modal-mode .intro .mail-icon svg {
    width: 24px;
    height: 24px;
}

body.modal-mode .panel {
    padding: 14px 18px;
    gap: 20px;
    grid-template-columns: minmax(0,1fr) minmax(220px,.85fr);
}

body.modal-mode label {
    margin-bottom: 7px;
    font-size: 13px;
}

body.modal-mode input,body.modal-mode textarea {
    padding: 7px 9px;
    margin-top: 4px;
}

body.modal-mode textarea {
    min-height: 95px;
}

body.modal-mode .visual {
    min-height: 0;
    height: 100%;
    max-height: 440px;
    border-width: 4px;
}

body.modal-mode .contact-actions button {
    padding: 7px 12px;
}

@media(max-width:650px) {
    body.modal-mode .panel {
        grid-template-columns: 1fr;
    }
    
    body.modal-mode .visual {
        height: 180px;
        min-height: 180px;
    }
}
  
 .intro{position:relative;padding-right:110px!important} .intro .pcm-drapeau-gif {
    position:absolute;
    right:8px;
    top:-10px;
    width:88px;
    height:64px;
    object-fit:contain;
} 

/* Correctif 523 : thème sombre des pages embarquées, PC seulement. */
html.aw-pc-dark,html.aw-pc-dark body,html.aw-pc-dark body.modal-mode{background:#202831!important;color:#e8edf4!important}
html.aw-pc-dark :is(.top,.panel,.card,.box,.section,.content,.form-card,.status,.fine,.accueil,.contact-actions) {
    background-color:#2b3541!important;
    color:#e8edf4!important;
    border-color:#526171!important;
}
html.aw-pc-dark :is(h1,h2,h3,h4,h5,p,label,small,strong,span,legend){color:inherit!important}
html.aw-pc-dark :is(.intro h1,.intro h2,.top h1){color:#f1f5fa!important}
html.aw-pc-dark :is(input:not([type=checkbox]):not([type=radio]),textarea,select) {
    background:#202a35!important;
    color:#f1f5fa!important;
    border-color:#657489!important;
}
html.aw-pc-dark :is(input,textarea)::placeholder{color:#b8c4d2!important}
html.aw-pc-dark :is(button,.accueil) {
    background:#34475c!important;
    color:#f1f5fa!important;
    border-color:#72859a!important;
}
html.aw-pc-dark a{color:#9cc9ff!important}
html.aw-pc-dark .visual{background:#263443!important}
