/*
Theme Name: Agence Pinci
Theme URI: https://agence-pinci.arneoz.eu/
Author: Agence Pinci
Author URI: https://www.agence-pinci.com
Description: Thème WordPress sur-mesure reproduisant fidèlement l'en-tête et le pied de page du site officiel Agence Pinci pour les pages de contenu statique.
Version: 1.1.0
Text Domain: agencepinci
*/

@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,300;0,400;0,700;1,300;1,400&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

/* --- Reset & Base --- */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    background-color: #ffffff;
    color: #242833;
    font-family: 'Lato', Helvetica, Arial, Tahoma, sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 26px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

a {
    color: #af8610;
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover, a:focus {
    color: #ddba56;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

/* ==========================================================================
   HEADER (Exact Agence Pinci Proportions)
   ========================================================================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: #030304;
    z-index: 9999;
    border-top: 10px solid #ffffff;
    padding: 10px 20px 14px 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
    transition: all 0.3s ease;
}

header > div.header-inner {
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

/* --- Zone Header Gauche (Logo + 2 Agences) --- */
.zone-header-left {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.zone-header-left .module-cluster {
    display: flex;
    align-items: center;
    gap: 20px;
}

.zone-header-left .module-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.zone-header-left .module-logo a {
    display: block;
}

.zone-header-left .module-logo img {
    height: 75px;
    width: auto;
    display: block;
    object-fit: contain;
}

/* Bloc Coordonnées Agences (Agence Pinci & Menton Riviera) */
.zone-header-left .module-cms.only-text {
    display: flex;
    align-items: center;
}

.zone-header-left .module-cms.only-text .info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.zone-header-left .module-cms.only-text .info > div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-left: 1px solid rgba(255, 255, 255, 0.18);
    padding-left: 16px;
}

.zone-header-left .module-cms.only-text .info > div h4 {
    margin: 0 0 2px 0;
    color: #ddba56;
    font-size: 14px;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    line-height: 1.2;
}

.zone-header-left .module-cms.only-text .info > div p {
    margin: 0;
    font-size: 12px;
    line-height: 18px;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.zone-header-left .module-cms.only-text .info > div p.address {
    color: #c7c7c7;
}

.zone-header-left .module-cms.only-text .info > div p.address span {
    color: #c7c7c7;
}

.zone-header-left .module-cms.only-text .info > div p a {
    color: #ffffff;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
}

.zone-header-left .module-cms.only-text .info > div p a:hover {
    color: #ddba56;
}

.zone-header-left .module-cms.only-text .info > div p i.mdi {
    color: #ddba56;
    font-size: 13px;
}

/* --- Zone Header Droite (Socials, Langues, Menu) --- */
.zone-header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    flex: 1 1 auto;
    margin-left: 20px;
}

/* Ligne supérieure (Réseaux Sociaux + Drapeaux Langues) */
.header-top-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
    margin-bottom: 6px;
}

/* Réseaux sociaux */
.module-social-menu ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 12px;
}

.module-social-menu ul li {
    display: inline-block;
}

.module-social-menu ul li a {
    color: #ffffff;
    font-size: 19px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease, transform 0.2s ease;
}

.module-social-menu ul li a:hover {
    color: #af8610;
    transform: translateY(-1px);
}

.module-social-menu ul li a svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    display: block;
}

.module-social-menu ul li span {
    display: none;
}

/* Sélecteur de Langues & Drapeaux */
.module-language {
    margin-left: 5px;
}

.module-language .content {
    display: block;
}

.module-language ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.module-language ul li {
    display: inline-flex;
    align-items: center;
}

.module-language ul li a {
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.flag-icon {
    display: inline-block;
    width: 21px;
    height: 15px;
    background-size: cover;
    background-position: center;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    vertical-align: middle;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.flag-icon:hover {
    transform: scale(1.15);
    opacity: 0.9;
}

.flag-icon-fr {
    background-image: url('assets/images/flags/fr.svg');
}

.flag-icon-gb {
    background-image: url('assets/images/flags/gb.svg');
}

.flag-icon-it {
    background-image: url('assets/images/flags/it.svg');
}

/* --- Menu Principal (Header Navigation) --- */
.zone-header-right .module-menu.main {
    width: 100%;
    margin-top: 6px;
    position: relative;
}

.zone-header-right .module-menu.main button {
    display: none;
    background: transparent;
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 6px;
    line-height: 1;
}

.zone-header-right .module-menu.main button i.mdi {
    font-size: 34px;
}

.zone-header-right .module-menu > ul {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.zone-header-right .module-menu > ul > li {
    display: inline-block;
    position: relative;
    list-style: none;
    margin: 0 0 0 20px;
}

.zone-header-right .module-menu > ul > li > a {
    color: #ffffff;
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    font-weight: 400;
    padding: 4px 0;
    text-transform: none;
    display: inline-flex;
    align-items: center;
    letter-spacing: 0.2px;
    transition: color 0.2s ease;
}

/* Cacher l'icône Accueil pour garder la typographie épurée */
.zone-header-right .module-menu > ul > li i.mdi.mdi-home {
    display: none;
}

.zone-header-right .module-menu > ul > li.current > a,
.zone-header-right .module-menu > ul > li.current-menu-item > a,
.zone-header-right .module-menu > ul > li > a:hover {
    color: #af8610;
}

/* Sous-menus éventuels */
.zone-header-right .module-menu > ul li.sub-menu ul {
    display: none;
    background: #030304;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    padding: 10px 0;
    margin: 0;
    list-style: none;
    border-top: 2px solid #af8610;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    z-index: 10;
}

.zone-header-right .module-menu > ul li.sub-menu:hover ul {
    display: block;
}

.zone-header-right .module-menu > ul li.sub-menu ul li {
    width: 100%;
    margin: 0;
}

.zone-header-right .module-menu > ul li.sub-menu ul li a {
    display: block;
    padding: 8px 16px;
    color: #ffffff;
    font-size: 13px;
}

.zone-header-right .module-menu > ul li.sub-menu ul li a:hover {
    color: #ddba56;
    background: #111111;
}

/* ==========================================================================
   CONTENT WRAPPER (PAGES STATIQUES)
   ========================================================================== */
.wrapper {
    margin-top: 135px;
    min-height: calc(100vh - 460px);
}

.zone-content {
    max-width: 1240px;
    margin: 45px auto 70px auto;
    padding: 0 25px;
}

/* Titre H1 doré Playfair Display */
.page-title,
.zone-content h1 {
    display: block;
    margin: 0 0 30px 0;
    color: #af8610;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 42px;
    font-weight: 700;
    line-height: 1.25;
    position: relative;
    padding-bottom: 18px;
}

.page-title::after,
.zone-content h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: #af8610;
}

/* Typographie du corps de page */
.page-entry-content {
    font-size: 16px;
    line-height: 1.8;
    color: #333333;
}

.page-entry-content h2 {
    font-family: 'Playfair Display', serif;
    color: #af8610;
    font-size: 28px;
    font-weight: 700;
    margin-top: 35px;
    margin-bottom: 15px;
}

.page-entry-content h3 {
    font-family: 'Playfair Display', serif;
    color: #af8610;
    font-size: 22px;
    font-weight: 600;
    margin-top: 30px;
    margin-bottom: 12px;
}

.page-entry-content p {
    margin-top: 0;
    margin-bottom: 1.5em;
}

.page-entry-content ul,
.page-entry-content ol {
    margin: 0 0 1.5em 25px;
    padding: 0;
}

.page-entry-content li {
    margin-bottom: 8px;
}

.page-entry-content blockquote {
    margin: 30px 0;
    padding: 20px 25px;
    border-left: 4px solid #af8610;
    background-color: #faf8f5;
    font-style: italic;
    color: #555555;
}

/* ==========================================================================
   FOOTER (Exact Agence Pinci Proportions & Logos)
   ========================================================================== */
footer {
    padding-top: 50px;
    margin-top: 80px;
    background: #030304;
    color: #fff5d8;
    clear: both;
}

footer a, footer li {
    color: #fff5d8;
}

.zone-footer {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Menu Footer --- */
footer .module-menu {
    width: 64%;
    margin: 0 auto 35px auto;
}

footer .module-menu ul {
    margin: 0 !important;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    gap: 15px;
}

footer .module-menu ul > li {
    margin: 0 10px;
}

footer .module-menu ul > li a {
    color: #fff5d8;
    font-size: 15px;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0.3px;
    transition: color 0.2s ease;
}

footer .module-menu ul > li a:hover {
    color: #ddba56;
}

footer .module-menu ul > li .mdi.mdi-home {
    display: none;
}

/* --- Logos Partenaires Footer (Taille généreuse et visible) --- */
.zone-footer .module-picture.basic-mod {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 45px;
    padding: 30px 0 55px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.zone-footer .module-picture.basic-mod > div,
.zone-footer .module-picture.basic-mod > a {
    margin: 0 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Logos images des partenaires (Holidays Beach & Optimal Immo) */
.zone-footer .module-picture.basic-mod .picture.img-partner {
    max-width: 140px;
    max-height: 95px;
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
    filter: brightness(0.95);
    transition: transform 0.2s ease, filter 0.2s ease;
}

.zone-footer .module-picture.basic-mod a:hover .picture.img-partner {
    filter: brightness(1.15) contrast(1.1);
    transform: scale(1.05);
}

/* Bloc texte Holidays Beach */
.zone-footer .module-picture.basic-mod h2 {
    font-size: 15px;
    font-family: 'Lato', sans-serif;
    font-weight: 600;
    color: #fff5d8;
    margin: 0;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 245, 216, 0.4);
    padding: 12px 24px;
    border-radius: 4px;
    text-transform: uppercase;
    transition: all 0.2s ease;
}

.zone-footer .module-picture.basic-mod a:hover h2 {
    color: #ddba56;
    border-color: #ddba56;
    background-color: rgba(221, 186, 86, 0.08);
}

/* --- Zone Légale --- */
footer .zone-legal {
    background-color: #000000;
    padding: 25px 20px;
    margin-top: 0;
}

footer .zone-legal .module-legal {
    max-width: 1240px;
    margin: 0 auto;
}

footer .zone-legal .module-legal ul {
    margin: 0;
    padding: 0;
    list-style: none;
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

footer .zone-legal .module-legal ul li {
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    color: #888888;
}

footer .zone-legal .module-legal ul li a {
    color: #aaaaaa;
    transition: color 0.2s ease;
}

footer .zone-legal .module-legal ul li a:hover {
    color: #ddba56;
}

footer .zone-legal .module-legal ul li:not(:first-child)::before {
    content: "•";
    color: #af8610;
    margin: 0 12px;
    font-size: 14px;
}

/* Crédit Apimo avec icône officielle */
footer .zone-legal .module-legal ul li.credit-apimo a {
    display: inline-flex;
    align-items: center;
}

footer .zone-legal .module-legal ul li.credit-apimo a::before {
    content: "";
    display: inline-block;
    width: 24px;
    height: 24px;
    margin-right: 8px;
    background: url('assets/images/credits.svg') center center no-repeat;
    background-size: contain;
    vertical-align: middle;
}

footer .zone-legal .module-legal ul li.credit-apimo span {
    font-weight: 700;
    color: #ffffff;
    margin-left: 4px;
}

/* ==========================================================================
   RESPONSIVE DESIGN (Pixel-perfect)
   ========================================================================== */
@media screen and (max-width: 1024px) {
    header {
        position: relative;
        padding: 15px 20px;
        border-top-width: 6px;
    }

    .wrapper {
        margin-top: 15px;
    }

    header > div.header-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .zone-header-left {
        width: 100%;
        justify-content: space-between;
        margin-bottom: 15px;
    }

    .zone-header-right {
        width: 100%;
        align-items: stretch;
    }

    .header-top-row {
        justify-content: space-between;
        margin-bottom: 12px;
    }

    /* Burger button visible */
    .zone-header-right .module-menu.main button {
        display: block;
        margin-left: auto;
    }

    .zone-header-right .module-menu > ul {
        display: none;
        flex-direction: column;
        background-color: #0b090d;
        border: 1px solid rgba(175, 134, 16, 0.3);
        border-radius: 4px;
        padding: 15px;
        width: 100%;
        gap: 5px;
        margin-top: 10px;
    }

    .zone-header-right .module-menu > ul.active {
        display: flex;
    }

    .zone-header-right .module-menu > ul > li {
        width: 100%;
        text-align: left;
        margin: 0;
    }

    .zone-header-right .module-menu > ul > li > a {
        display: block;
        padding: 10px 15px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    footer .module-menu {
        width: 90%;
    }

    .zone-footer .module-picture.basic-mod {
        gap: 25px;
    }
}

@media screen and (max-width: 768px) {
    .zone-header-left .module-cluster {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .zone-header-left .module-cms.only-text .info {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .zone-header-left .module-cms.only-text .info > div {
        margin-left: 0;
    }

    footer .module-menu {
        width: 100%;
    }

    footer .module-menu ul {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    footer .zone-legal .module-legal ul {
        flex-direction: column;
        gap: 10px;
    }

    footer .zone-legal .module-legal ul li:not(:first-child)::before {
        display: none;
    }
}

@media screen and (max-width: 480px) {
    .zone-header-left .module-logo img {
        height: 65px;
    }

    .zone-content h1 {
        font-size: 28px;
    }
}
