body {
    font-family: Arial, Helvetica, sans-serif;
}

/* ----- Header général ----- */

#top-header {
    background: #f8f8f8;
    border-bottom: 1px solid #ddd;
    padding: 15px 0;
}

/* Container large + flex */
.header-container {
    width: 90%;
    max-width: 1400px;
    margin: auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ----- Colonne gauche : logo ----- */
.header-left {
    width: 25%;
    text-align: right;
}

.logo {
    height: 105px;
    max-width: 100%;
}

/* ----- Colonne centre : titre ----- */
.header-center {
    width: 33%;
    text-align: center;
}

.header-center h1 {
    margin: 0;
    font-size: 2em;
    font-weight: bold;
}

/* ----- Colonne droite : téléphone + Facebook ----- */
.header-right {
    width: 33%;
    text-align: left;   /* le bloc global est aligné à gauche */
}

/* Conteneur commun : numéro + icône */
.contact-block {
    display: inline-block;   /* la largeur s'adapte au contenu (le numéro) */
    text-align: center;      /* centre le texte et l'icône à l'intérieur */
}

/* Numéro de téléphone */
.contact-block .phone {
    font-size: 1.4em;
    font-weight: bold;
    margin: 0;
}

/* Bloc de l'icône Facebook */
.contact-block .social {
    margin-top: 5px;
}

/* Icône Facebook */
.facebook-icon {
    height: 40px;
    width: 40px;
    display: block;
    margin: 0 auto;    /* sécurité pour le centrage dans .social */
}


.phone a {
    color: inherit;      /* même couleur que le texte */
    text-decoration: none;
    font-weight: bold;
}

.phone a:hover {
    text-decoration: underline;
}

/* ----- Responsive simple ----- */
@media (max-width: 800px) {

    .header-container {
        flex-direction: column;
        text-align: center;
    }

    .header-left,
    .header-center,
    .header-right {
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }

    .logo {
        height: 60px;
    }

    .header-center h1 {
        font-size: 1.6em;
    }
}


/* ----- Menu principal ----- */

#main-nav {
    background: #ffffff;
    border-bottom: 1px solid #ddd;
}

#main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;

    display: flex;
    justify-content: center;   /* centre le menu */
    align-items: center;
    gap: 30px;                 /* espace entre les éléments */
}

#main-nav li {
    /* rien d’obligatoire ici pour l’instant */
}

#main-nav a {
    display: block;
    padding: 10px 18px;
    text-decoration: none;
    color: #333;
    font-weight: bold;
    font-size: 1em;

    border-radius: 20px;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

/* État survol */
#main-nav a:hover {
    background: #f0f0f0;
    color: #000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* État "actif" possible (à appliquer via une classe .active plus tard si tu veux) */
#main-nav a.active {
    background: #333;
    color: #fff;
}

/* ----- Menu : responsive simple ----- */
@media (max-width: 800px) {

    #main-nav ul {
        flex-wrap: wrap;       /* permet au menu de passer sur 2 lignes si besoin */
        gap: 10px;
        padding: 10px 0;
    }

    #main-nav a {
        padding: 8px 14px;
        font-size: 0.95em;
    }
}


/* ----- Footer ----- */

#site-footer {
    background: #ffffff;          /* footer plein écran blanc (ou transparent) */
    border-top: 1px solid #ddd;
    padding: 20px 0;
    margin-top: 30px;
}

.footer-container {
    text-align: center;           /* centre le contenu */
}


.footer-container p {
    display: inline-block;        /* largeur ajustée au texte */
    background: #f8f8f8;          /* gris clair localisé au texte */
    padding: 10px 20px;
    margin: 0;

    line-height: 1.5;
    font-size: 0.95em;
    color: #444;

    border-radius: 6px;           /* optionnel : coins arrondis */
    box-shadow: 0 1px 3px rgba(0,0,0,0.05); /* très léger, optionnel */
}

/* Container horizontal pour le footer */
.footer-flex {
    display: flex;
    justify-content: center;
    align-items: flex-start;
	margin-left: 200px;
    gap: 40px;  /* espace entre le texte et les liens */
}

/* Bloc liens */
.footer-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 8px; /* aligné visuellement avec le bloc texte */
}

.footer-links a {
    text-decoration: none;
    color: #000000;
    font-weight: bold;
    margin-bottom: 6px;
    font-size: 0.95em;
}

.footer-links a:hover {
    text-decoration: underline;
}

 .footer-sm {
        text-align: center;
        margin-top: 40px;
        opacity: 0.15;          /* discret mais visible = conforme Google */
        font-size: 11px;
    }
    .footer-sm a {
        color: inherit;         /* pas mis en avant */
        text-decoration: none;  /* aspect neutre */
    }
    .footer-sm a:hover {
        text-decoration: underline;
        opacity: 1;             /* visible si interaction = comportement propre */
    }


@media (max-width: 600px) {
    .footer-flex {
        flex-direction: column;
        gap: 20px;
    }

    .footer-links {
        align-items: center;
    }
}


/* ----- Vignette flottante Contact / Devis ----- */

/* Conteneur */
#contact-float-box {
    position: fixed;
    bottom: 50px;
    left: 20px;
    z-index: 9999;
}

/* Lien */
#contact-float-link {
    display: inline-block;
    background-color: #8b8b8c;    
    color: white;
    padding: 12px 18px;
    border-radius: 12px;
    border: 2px solid #000;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    font-weight: bold;
    font-size: 14px;
    line-height: 1.3;
    text-align: center;
    transition: background-color 0.3s ease, transform 0.1s ease;
}

/* Texte version desktop */
.contact-desktop {
    display: inline;
}

/* Texte version mobile */
.contact-mobile {
    display: none;
    font-size: 12px;
    font-weight: bold;
}

/* Hover */
#contact-float-link:hover {
    background-color: #bebebe;
    transform: translateY(-1px);
}

@media (max-width: 600px) {

    #contact-float-link {
        padding: 10px 14px;
        font-size: 12px;
    }

    .contact-desktop {
        display: none;
    }

    .contact-mobile {
        display: inline;
    }
}


/* ----- Conteneur principal des pages ----- */

#page-container {
    margin-left: 5%;
    margin-right: 7%;
    padding: 20px;
    position: relative;               /* important */

    border: 2px solid #555;
    border-radius: 12px;
    overflow: hidden;                 /* pour que l’overlay respecte les bords arrondis */

    background-image: url('../img/background/background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Overlay blanc transparent pour pâlir l'image */
#page-container::before {
    content: "";
    position: absolute;
    inset: 0;                          /* couvre tout le conteneur */
    background: rgba(255, 255, 255, 0.7);  /* règle l’intensité du voile */
    pointer-events: none;              /* ne bloque rien */
}

#page-container > * {
    position: relative;
    z-index: 2;
}



/* Pour que le texte reste bien lisible même avec un fond */
#page-container h1,
#page-container h2,
#page-container h3,
#page-container p {
    color: #222;
}

/* ----- Encart intro en haut du contenu ----- */

.intro-banner {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

/* Bloc texte (3/4 de la largeur) */
.intro-text {
    flex: 3;
    /*background: rgba(255, 255, 255, 0.7);   transparent / léger voile */
    padding: 15px 20px;
    border-radius: 10px;
}

.intro-text h2 {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 1.6em;
}

.intro-text p {
    margin: 0;
    line-height: 1.5;
}

/* Bloc photo (1/4 de la largeur) */
.intro-photo {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: stretch;
}

.intro-photo-inner {
    border: 2px solid #000;
    border-radius: 10px;
    padding: 5px;
    width: 100%;
   /* background: rgba(255, 255, 255, 0.8); */
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

.intro-photo img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

/* ----- Bloc Photos divers ----- */

.photos-divers {
    width: 90%;
    max-width: 1200px;
    margin: 60px auto;
    text-align: center;
}

.photos-divers h2 {
    margin-bottom: 30px;
}

/* Grille responsive */
.photos-divers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* Images */
.photos-divers-grid img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

/* Petit effet sobre au survol */
.photos-divers-grid img:hover {
    transform: scale(1.03);
}

/* ----- Responsive ----- */

/* Tablette */
@media (max-width: 900px) {
    .photos-divers-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 600px) {
    .photos-divers-grid {
        grid-template-columns: 1fr;
    }
}


/* ----- Encadré Photos divers (style "chantier à la une" mais fond transparent) ----- */
.photos-divers-box {
    width: 90%;
    max-width: 1200px;
    margin: 60px auto;
    text-align: center;

    border: 1px solid #000;
    border-radius: 14px;
    background: transparent;

    padding: 25px 20px 30px;
}

.photos-divers-box h2 {
    margin: 0 0 25px 0;
}

/* Grille responsive */
.photos-divers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* Item + image */
.photos-divers-item {
    margin: 0;
}

.photos-divers-item img {
    width: 100%;
    height: auto;
    display: block;

    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.10);
    transition: transform 0.25s ease;
}

.photos-divers-item img:hover {
    transform: scale(1.03);
}

/* Légende */
.photos-divers-item figcaption {
    margin-top: 10px;
    font-size: 0.95rem;
    line-height: 1.3;
    color: #111;
}

/* ----- Responsive ----- */
@media (max-width: 900px) {
    .photos-divers-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .photos-divers-grid {
        grid-template-columns: 1fr;
    }

    .photos-divers-box {
        padding: 20px 14px 24px;
        border-radius: 12px;
    }
}


/* ----- Chantier à la une ----- */

.chantier-une {
    margin-bottom: 25px;
    padding: 15px 20px;
    border: 2px solid #444;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.9);
}

.chantier-une-header {
    margin-bottom: 10px;
}

.chantier-une h3 {
    margin: 0;
    font-size: 1.4em;
}

.chantier-une-info {
    font-size: 0.9em;
    color: #666;
    margin-top: 4px;
}

.chantier-une-info span + span {
    margin-left: 8px;
}

.chantier-une-body {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.chantier-une-texte {
    flex: 3;
}

.chantier-une-texte h4 {
    margin-top: 0;
}

/* Photos du chantier : colonne à droite, images superposées */

.chantier-une-photos {
    flex: 1;                 /* prend une colonne à droite */
    max-width: 360px;        /* limite la largeur (ajuste : 300–450) */
    margin-left: auto;       /* colle à droite proprement */
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Chaque figure prend toute la largeur de la colonne */
.chantier-une-photo-item {
    margin: 0;
    width: 100%;
}

/* Image responsive dans la colonne */
.chantier-une-photo-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    border: 1px solid #ccc;
}

/* Légende */
.chantier-une-photo-item figcaption {
    margin-top: 6px;
    font-size: 0.95em;
    color: #444;
    text-align: center;
}

/* Responsive : en mobile, la colonne photo passe sous le texte et reprend toute la largeur */
@media (max-width: 800px) {
    .chantier-une-body {
        flex-direction: column;
    }

    .chantier-une-photos {
        max-width: 100%;
        margin-left: 0;
    }
}



.gallery {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
            gap: 1.5rem;
            margin: 2rem 0;
        }

        .gallery-item-container {
            text-align: center;
        }

        .gallery-item {
            width: 100%;
            height: auto;
            cursor: pointer;
            border-radius: 4px;
            box-shadow: 0 2px 6px rgba(0,0,0,0.15);
            transition: transform 0.2s ease, box-shadow 0.2s ease;
        }

        .gallery-item:hover {
            transform: scale(1.02);
            box-shadow: 0 4px 12px rgba(0,0,0,0.25);
        }

        .image-caption {
            margin-top: 0.4rem;
            font-size: 0.9rem;
        }

        /* Modal */

        .modal {
            display: none; /* affiché en JS */
            position: fixed;
            z-index: 9999;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            overflow: auto;
            background-color: rgba(0,0,0,0.8);
        }

        .modal-content {
            display: block;
            max-width: 90%;
            max-height: 80vh;
            margin: 5vh auto 1rem auto;
            border-radius: 4px;
        }

        .modal-caption {
            text-align: center;
            color: #fff;
            max-width: 90%;
            margin: 0 auto 2rem auto;
            font-size: 1rem;
        }

        .close {
            position: absolute;
            top: 15px;
            right: 25px;
            color: #fff;
            font-size: 32px;
            font-weight: bold;
            cursor: pointer;
        }

        .close:hover,
        .close:focus {
            color: #ccc;
        }
		
		/* ----- Menu vignette des catégories ----- */

.photo-menu {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.photo-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: #222;
    text-align: center;

    border: 2px solid #444;
    border-radius: 10px;
    padding: 10px;
    background: rgba(255,255,255,0.85);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.photo-card:hover {
    transform: translateY(-3px);
    background: rgba(255,255,255,0.95);
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.photo-thumb img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 6px;
}

.photo-title {
    margin-top: 10px;
    font-size: 1.1em;
    font-weight: bold;
}
