/**
 * ASLANE - Responsive styles for all Installation pages
 * installation-pac-air-eau, installation-ballon-thermodynamique, installation-pac-air-air,
 * installation-vmc-double-flux, installation-isolation-combles, installation-isolation-exterieur
 */

/* Base desktop styles for Installation PAC layouts */
.installation-pac-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: #f8f9fa;
}

.installation-pac-page .hero-section {
    background: linear-gradient(135deg, rgba(39, 36, 36, 0.95) 0%, rgba(58, 58, 58, 0.95) 100%);
    background-size: cover;
    background-position: center;
    color: white;
    padding: 30px 40px;
    border-radius: 20px;
    text-align: center;
    margin-bottom: 50px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.installation-pac-page .hero-section h1 {
    font-size: 1.8em;
    margin: 0 0 15px 0;
    font-weight: 900;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
    color: #ffffff;
}

.installation-pac-page .hero-section p {
    font-size: 1.1em;
    margin: 0;
    line-height: 1.6;
    font-weight: 500;
    color: #ffffff;
}

.installation-pac-page .content-box {
    background: #ffffff;
    padding: 45px;
    border-radius: 20px;
    box-shadow: 0 6px 25px rgba(0,0,0,0.12);
    margin-bottom: 35px;
    border: 1px solid #e8e8e8;
    text-align: center;
}

.installation-pac-page .content-box h2 {
    color: #272424;
    font-size: 2.2em;
    margin: 0 0 25px 0;
    font-weight: 800;
    text-align: center;
    border-bottom: 4px solid #d90429;
    padding-bottom: 15px;
}

.installation-pac-page .content-box h3 {
    color: #272424;
    font-size: 1.6em;
    margin: 35px 0 20px 0;
    font-weight: 700;
    text-align: center;
}

.installation-pac-page .content-box h4 {
    text-align: center;
}

.installation-pac-page .content-box ul,
.installation-pac-page .content-box ol {
    text-align: center;
    list-style-position: inside;
}

.installation-pac-page .content-box li {
    text-align: center;
}

.installation-pac-page .content-box p {
    color: #333333;
    font-size: 1.1em;
    text-align: center;
    line-height: 1.9;
    margin: 0 0 20px 0;
}

.installation-pac-page .highlight-box {
    background: linear-gradient(135deg, #f0f8ff 0%, #e0f0ff 100%);
    border-left: 5px solid #d90429;
    padding: 18px 22px;
    border-radius: 12px;
    margin: 20px 0;
    text-align: center;
}

.installation-pac-page .highlight-box h4 {
    color: #272424;
    font-size: 1.15em;
    margin: 0 0 12px 0;
    font-weight: 700;
    text-align: center;
}

.installation-pac-page .highlight-box p {
    color: #333333;
    font-size: 0.95em;
    line-height: 1.7;
    margin: 0;
    text-align: center;
}

.installation-pac-page .advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 35px 0;
}

.installation-pac-page .advantage-card {
    background: #ffffff;
    border: 2px solid #e8e8e8;
    border-radius: 15px;
    padding: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.installation-pac-page .advantage-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(217, 4, 41, 0.2);
    border-color: #d90429;
}

.installation-pac-page .advantage-card h4 {
    color: #272424;
    font-size: 1.3em;
    margin: 0 0 15px 0;
    font-weight: 700;
    text-align: center;
    display: block;
}

.installation-pac-page .advantage-card p {
    color: #555555;
    font-size: 1em;
    line-height: 1.7;
    margin: 0;
}

.installation-pac-page .image-box {
    background: #ffffff;
    border-radius: 15px;
    padding: 30px;
    margin: 35px 0;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.installation-pac-page .image-box img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    margin: 20px 0;
}

.installation-pac-page .graph-container {
    background: #f8f9fa;
    padding: 40px;
    border-radius: 15px;
    margin: 35px 0;
    border: 2px solid #e8e8e8;
}

.installation-pac-page .graph-bar {
    display: flex;
    align-items: center;
    margin: 20px 0;
    padding: 15px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.installation-pac-page .graph-bar-label {
    font-weight: 700;
    min-width: 200px;
    color: #272424;
    font-size: 1.1em;
}

.installation-pac-page .graph-bar-visual {
    flex: 1;
    height: 40px;
    background: #e8e8e8;
    border-radius: 20px;
    margin: 0 25px;
    position: relative;
    overflow: hidden;
}

.installation-pac-page .graph-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #d90429 0%, #b8001f 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1em;
}

.installation-pac-page .logos-section {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    align-items: center;
    justify-content: center;
    margin: 35px 0;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 15px;
    border: 2px solid #e8e8e8;
}

.installation-pac-page .logos-section img {
    max-height: 70px;
    max-width: 180px;
    object-fit: contain;
    padding: 10px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.installation-pac-page .schema-container {
    background: white;
    padding: 40px;
    border-radius: 15px;
    margin: 35px 0;
    border: 2px solid #e8e8e8;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.installation-pac-page .schema-box {
    display: flex;
    align-items: stretch;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 20px;
    margin: 30px 0;
}

.installation-pac-page .schema-item {
    text-align: center;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 15px;
    min-width: 250px;
    max-width: 300px;
    border: 2px solid #e8e8e8;
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.installation-pac-page .schema-item h4 {
    color: #272424;
    font-size: 1.3em;
    margin: 15px 0 10px 0;
    font-weight: 700;
}

.installation-pac-page .schema-item p {
    color: #555555;
    font-size: 1em;
    line-height: 1.6;
    margin: 0;
}

.installation-pac-page .schema-arrow {
    font-size: 2.5em;
    color: #d90429;
    font-weight: bold;
}

.installation-pac-page .form-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 50px;
    border-radius: 20px;
    margin: 50px 0;
    border: 2px solid #e8e8e8;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.installation-pac-page .form-section h2 {
    color: #272424;
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.2em;
    font-weight: 800;
    border-bottom: 4px solid #d90429;
    padding-bottom: 15px;
}

.installation-pac-page .form-section p {
    font-size: 1em;
    margin-bottom: 25px;
}

.installation-pac-page .form-section form p {
    margin-bottom: 18px;
}

.installation-pac-page .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 25px;
}

.installation-pac-page .form-group {
    margin-bottom: 25px;
}

.installation-pac-page .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: #272424;
    font-size: 1.05em;
}

.installation-pac-page .form-group input,
.installation-pac-page .form-group select,
.installation-pac-page .form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    font-size: 1.05em;
    box-sizing: border-box;
    transition: all 0.3s;
    color: #333;
}

.installation-pac-page .form-group input:focus,
.installation-pac-page .form-group select:focus,
.installation-pac-page .form-group textarea:focus {
    outline: none;
    border-color: #d90429;
    box-shadow: 0 0 0 3px rgba(217, 4, 41, 0.1);
}

.installation-pac-page .form-group textarea {
    min-height: 140px;
    resize: vertical;
}

.installation-pac-page .submit-btn {
    background: linear-gradient(135deg, #d90429 0%, #b8001f 100%);
    color: white;
    padding: 18px 50px;
    border: none;
    border-radius: 10px;
    font-size: 1.2em;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.installation-pac-page .submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(217, 4, 41, 0.4);
}

.installation-pac-page .benefits-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-left: 5px solid #d90429;
    border-radius: 12px;
    padding: 35px 40px;
    margin: 50px 0;
}

.installation-pac-page .benefits-section h2 {
    color: #000000;
    font-size: 1.8em;
    margin-bottom: 25px;
    text-align: center;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.installation-pac-page .benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.installation-pac-page .benefit-item {
    background: #ffffff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.installation-pac-page .benefit-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.installation-pac-page .benefit-item strong {
    color: #000000;
    font-size: 1.1em;
    display: block;
    margin-bottom: 8px;
}

.installation-pac-page .benefit-item p {
    color: #555;
    font-size: 0.95em;
    line-height: 1.6;
    margin: 0;
}

.installation-pac-page .partners-section {
    background: #ffffff;
    padding: 50px;
    border-radius: 20px;
    margin: 50px 0;
    border: 2px solid #e8e8e8;
    box-shadow: 0 6px 25px rgba(0,0,0,0.12);
}

.installation-pac-page .partners-section h2 {
    color: #272424;
    margin-bottom: 15px;
    font-size: 2.3em;
    font-weight: 800;
    text-align: center;
}

.installation-pac-page .partners-section > p {
    font-size: 1.15em;
    color: #666;
    margin: 0 0 40px 0;
    text-align: center;
}

.installation-pac-page .partners-container {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    border: 3px solid #f0f0f0;
    padding: 25px 20px;
    margin: 30px auto;
    max-width: 1050px;
}

.installation-pac-page .partners-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 15px;
    justify-content: center;
    align-items: stretch;
    margin-bottom: 15px;
}

.installation-pac-page .partners-row:last-child {
    margin-bottom: 0;
}

.installation-pac-page .partner-card {
    background: #f5f5f5;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    border: 2px solid #f0f0f0;
    padding: 15px 10px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 140px;
    overflow: hidden;
    height: 100%;
    flex: 1 1 0;
}

.installation-pac-page .partner-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
    border-color: #d90429;
}

.installation-pac-page .partner-logo-container {
    width: 100%;
    height: 75px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-radius: 8px;
    padding: 8px;
}

.installation-pac-page .partner-logo-container img {
    max-width: 100%;
    max-height: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

.installation-pac-page .partner-line {
    height: 2px;
    width: 100%;
    margin: 6px 0;
}

.installation-pac-page .partner-name {
    text-align: center;
    padding-top: 6px;
    font-size: 0.95em;
    font-weight: bold;
    margin: 0;
}

.installation-pac-page .partners-note {
    font-size: 0.95em;
    color: #555555;
    text-align: center;
    margin-top: 10px;
}

.installation-pac-page .schema-image {
    margin-top: 25px;
    text-align: center;
}

.installation-pac-page .schema-image img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.installation-pac-page .content-section {
    background: #ffffff;
    padding: 45px;
    border-radius: 20px;
    box-shadow: 0 6px 25px rgba(0,0,0,0.12);
    margin-bottom: 35px;
    border: 1px solid #e8e8e8;
    text-align: center;
}

.installation-pac-page .content-section h2 {
    color: #000000;
    font-size: 1.8em;
    margin: 0 0 25px 0;
    font-weight: 800;
    text-align: center;
    border-bottom: 4px solid #20B2AA;
    padding-bottom: 15px;
}

.installation-pac-page .content-section h3 {
    color: #333;
    font-size: 1.6em;
    margin: 35px 0 20px 0;
    font-weight: 700;
    text-align: center;
}

.installation-pac-page .content-section h4 {
    text-align: center;
}

.installation-pac-page .content-section p {
    text-align: center;
}

/* Base: prevent horizontal overflow */
.installation-pac-page {
    box-sizing: border-box;
    overflow-x: hidden;
}
.installation-pac-page *,
.installation-pac-page *::before,
.installation-pac-page *::after {
    box-sizing: border-box;
}
.installation-pac-page img {
    max-width: 100%;
    height: auto;
}

/* Tablet */
@media (max-width: 992px) {
    .installation-pac-page {
        padding: 16px;
    }
    .installation-pac-page .hero-section {
        padding: 24px 20px;
        margin-bottom: 35px;
    }
    .installation-pac-page .hero-section h1 {
        font-size: 1.5em;
    }
    .installation-pac-page .content-box,
    .installation-pac-page .content-section {
        padding: 30px 24px;
        margin-bottom: 28px;
    }
    .installation-pac-page .content-box h2,
    .installation-pac-page .content-section h2 {
        font-size: 1.7em;
    }
    .installation-pac-page .graph-bar-label {
        min-width: 140px;
        font-size: 1em;
    }
    .installation-pac-page .schema-item {
        min-width: 0;
    }
    .installation-pac-page .form-section {
        padding: 35px 24px;
    }
    .installation-pac-page .partners-section,
    .installation-pac-page .benefits-section {
        padding: 35px 24px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .installation-pac-page {
        padding: 12px 10px;
    }
    .installation-pac-page .hero-section {
        padding: 20px 16px;
        margin-bottom: 28px;
        border-radius: 14px;
    }
    .installation-pac-page .hero-section h1 {
        font-size: 1.35em;
        line-height: 1.3;
    }
    .installation-pac-page .hero-section p {
        font-size: 1em;
    }
    .installation-pac-page .content-box,
    .installation-pac-page .content-section {
        padding: 20px 16px;
        margin-bottom: 24px;
        border-radius: 14px;
    }
    .installation-pac-page .content-box h2,
    .installation-pac-page .content-section h2 {
        font-size: 1.4em;
        padding-bottom: 12px;
        margin-bottom: 18px;
    }
    .installation-pac-page .content-box h3,
    .installation-pac-page .content-section h3 {
        font-size: 1.25em;
        margin: 25px 0 14px 0;
    }
    .installation-pac-page .content-box p,
    .installation-pac-page .content-section p {
        font-size: 1em;
    }
    /* Flex header (logo + title) stack on mobile */
    .installation-pac-page .content-box > div[style*="display: flex"],
    .installation-pac-page .content-section > div[style*="display: flex"] {
        flex-direction: column !important;
        gap: 12px;
        text-align: center;
    }
    .installation-pac-page .content-box > div[style*="display: flex"] h2,
    .installation-pac-page .content-box > div[style*="display: flex"] h3,
    .installation-pac-page .content-section > div[style*="display: flex"] h2,
    .installation-pac-page .content-section > div[style*="display: flex"] h3 {
        margin: 0;
    }
    /* Form */
    .installation-pac-page .form-row {
        grid-template-columns: 1fr;
        gap: 0;
        margin-bottom: 18px;
    }
    .installation-pac-page .form-section {
        padding: 28px 16px;
        margin: 35px 0;
    }
    .installation-pac-page .form-section h2 {
        font-size: 1.35em;
    }
    /* Advantages grid */
    .installation-pac-page .advantages-grid {
        grid-template-columns: 1fr;
        gap: 18px;
        margin: 24px 0;
    }
    /* Graph bars: stack label above bar */
    .installation-pac-page .graph-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 12px;
    }
    .installation-pac-page .graph-bar-label {
        min-width: 0;
        text-align: center;
    }
    .installation-pac-page .graph-bar-visual {
        margin: 0;
    }
    .installation-pac-page .graph-container {
        padding: 20px 16px;
        margin: 24px 0;
    }
    /* Schema: stack items vertically */
    .installation-pac-page .schema-box {
        flex-wrap: wrap;
        gap: 15px;
        margin: 20px 0;
    }
    .installation-pac-page .schema-item {
        flex: 1 1 100%;
        max-width: 100%;
        min-width: 0;
        margin-bottom: 0;
    }
    .installation-pac-page .schema-arrow {
        display: none;
    }
    .installation-pac-page .schema-container {
        padding: 20px 16px;
        margin: 24px 0;
    }
    /* Tables: horizontal scroll */
    .installation-pac-page .content-box table,
    .installation-pac-page .content-section table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .installation-pac-page .content-box table th,
    .installation-pac-page .content-box table td,
    .installation-pac-page .content-section table th,
    .installation-pac-page .content-section table td {
        padding: 8px 6px;
        font-size: 0.85em;
    }
    /* Partners */
    .installation-pac-page .partners-row {
        flex-wrap: wrap;
        gap: 12px;
        margin-bottom: 12px;
    }
    .installation-pac-page .partner-card {
        flex: 0 1 calc(50% - 6px);
        min-width: 0;
    }
    .installation-pac-page .partners-section {
        padding: 28px 16px;
        margin: 35px 0;
    }
    .installation-pac-page .partners-section h2 {
        font-size: 1.5em;
        padding: 12px 16px;
    }
    .installation-pac-page .partners-container {
        padding: 16px 12px;
        margin: 20px 0;
    }
    /* Benefits */
    .installation-pac-page .benefits-section {
        padding: 28px 16px;
        margin: 35px 0;
    }
    .installation-pac-page .benefits-section h2 {
        font-size: 1.4em;
        white-space: normal;
    }
    .installation-pac-page .benefits-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    /* Logos section */
    .installation-pac-page .logos-section {
        padding: 18px 12px;
        gap: 14px;
    }
    .installation-pac-page .logos-section img {
        max-height: 55px;
        max-width: 120px;
    }
    /* Image + logo overlay: smaller logo on mobile */
    .installation-pac-page .hero-section + div[style*="position: relative"] img[alt*="ASLANE"],
    .installation-pac-page div[style*="position: absolute"][style*="bottom"] img {
        height: 40px !important;
        width: auto !important;
    }
    .installation-pac-page div[style*="position: absolute"][style*="bottom"] {
        bottom: 12px !important;
        right: 12px !important;
        padding: 8px 12px !important;
    }
    /* Highlight box */
    .installation-pac-page .highlight-box {
        padding: 14px 16px;
        margin: 16px 0;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .installation-pac-page {
        padding: 10px 8px;
    }
    .installation-pac-page .hero-section {
        padding: 18px 14px;
    }
    .installation-pac-page .hero-section h1 {
        font-size: 1.2em;
    }
    .installation-pac-page .content-box,
    .installation-pac-page .content-section {
        padding: 18px 14px;
    }
    .installation-pac-page .content-box h2,
    .installation-pac-page .content-section h2 {
        font-size: 1.25em;
    }
    .installation-pac-page .partner-card {
        flex: 0 1 100%;
    }
    .installation-pac-page .partners-row {
        gap: 10px;
    }
    .installation-pac-page .form-section {
        padding: 24px 14px;
    }
    .installation-pac-page .submit-btn {
        padding: 14px 24px;
        font-size: 1.05em;
    }
    .installation-pac-page .content-box table th,
    .installation-pac-page .content-box table td,
    .installation-pac-page .content-section table th,
    .installation-pac-page .content-section table td {
        padding: 6px 4px;
        font-size: 0.8em;
    }
}
