:root {
    --tds-marron: #432918;
    --tds-creme: #d0c9b7;
}

@font-face {
    font-family: 'MaPolice';
    src: url('/fonts/Futura_Bk_BT_Book.woff2') format('woff2'),
         url('/fonts/Futura_Bk_BT_Book.woff') format('woff'),
         url('/fonts/Futura_Bk_BT_Book.ttf') format('truetype'); /* backup possible */
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* ## BALISES ## */
a.cta-contact {
    position: fixed;
    bottom: 20px;
    right: 20px;

    background-color: var(--tds-marron); /* ta couleur */
    color: var(--tds-creme);
    padding: 12px 20px;

    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;

    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: background-color 0.3s, transform 0.2s;

    z-index: 9999; /* toujours visible */
}


a.nav-link,
a.nav-link:hover {
    color:var(--tds-marron);
    font-size: 1.25rem;
}

a.front-light {
    text-decoration: none;
    color: var(--tds-creme);
}

a.mentions {
    text-decoration: none;
    color: var(--tds-marron);
}

a.suite {
    text-decoration: none;
    color: var(--tds-marron);
    text-align: right;    
}

body {
    background: var(--tds-creme);
    color: black;
}

div.backIcon {
    border-radius: 10px;
    background-color: var(--tds-marron);
    width: 15vh;
    height: 15vh;
    max-width: 150px;
    max-height: 150px;
}

div.backIcon img {
    width: 15vh;
    height: 15vh;
    max-width: 150px;
    max-height: 150px;
    margin: auto;
}

div.btn-dash {
	text-align: center;
	padding: 5vh;
}

div.prestIcon {
    padding: 10px;
}

div.rowPresta {
    margin-bottom: 3vh;
}

h1 {
    text-align: center;
    font-size: 2rem;
    margin: 5vh auto;
	color: var(--tds-marron);
	letter-spacing: 0.5em;
}

h2 {
	text-align: center;
    font-size: 2rem;
    margin: 5vh auto;
	color: var(--tds-marron);
	letter-spacing: 0.25em;
}

h2.mentions {
    margin: 5vh auto 2vh auto;
}

h2.presta {
    margin : 0 0 2vh 0;
}

img.logoCentral {
	margin-left: auto;
	margin-right: auto;
	max-width: 80vw;
}

img.zoneInter {
    width: 90%;
    max-width: 500px;
    height: auto;
    margin: auto;
}

p {
    color: var(--tds-marron);
    font-size: 1.1rem;
}

p.article {
    font-size: 1rem;
}

p.mentions {
    text-align: center;
}

p.zoneInter {
    font-size: 2rem;
    text-align: center;
}

section {
	margin-bottom: 5vh;
}

ul.mentions {
    text-align: center;
    font-size: 1.1rem;
    color: var(--tds-marron);
}


/* ## CLASSES ## */
.btn-secondary {
    padding: 5vh 5vw;
    font-size: 1.5rem;
    width: 80%;
}

.nav-tds {
    background: var(--tds-creme);
    padding: 0;
}

.btn-contact {
    background-color: var(--tds-marron); /* ta couleur */
    color: var(--tds-creme);
    padding: 12px 20px;

    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;

    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: background-color 0.3s, transform 0.2s;
}

/* ## ID ## */
#logo {
	text-align: center;
	position: relative;  /* nécessaire pour activer z-index */
    z-index: 50;         /* plus haut que le carrousel */
    margin-bottom: 10vh;
}


/* ## CARROUSEL ## */
/* Section sans marge/padding */
.tds-hero {
	margin: 0;
	padding: 0;
}

/* Carrousel qui casse le container pour prendre tout le viewport */
#tdsCarousel {
	width: 100vw;
	position: relative;
	/* margin-left: -50vw;
	margin-right: -50vw; */
	overflow: hidden; /* évite les débordements bizarres */
	position: relative;
    z-index: 1;          /* plus bas que le logo */
}

/* Même hauteur pour tous les slides */
#tdsCarousel .carousel-inner,
#tdsCarousel .carousel-item {
	height: 450px;     /* adapte : 50vh, 70vh, etc. */
	max-height: 650px; /* optionnel */
}

/* Les images remplissent la boîte sans déformer, cadrées en haut */
#tdsCarousel .carousel-item img {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
	object-position: top;
	margin: 0;
	padding: 0;
}

/* Pas de marge / padding fantôme */
#tdsCarousel,
#tdsCarousel .carousel-inner,
#tdsCarousel .carousel-item {
	margin: 0;
	padding: 0;
}

/* ## AFFICHAGE DYNAMIQUE DES SECTIONS ## */
/* État de base : invisible + décalé */
.reveal {
    opacity: 0;
    transform: translateY(20px); /* petit décalage par défaut */
    transition: opacity .6s ease, transform .6s ease;
    transition-delay: 250ms;
}

/* Variante : arrive de la gauche */
.reveal-left {
    transform: translateX(-60px);
}

/* Variante : arrive de la droite */
.reveal-right {
    transform: translateX(60px);
}

/* Variante : arrive d'en haut */
.reveal-up {
    transform: translateY(40px);
}

/* Variante : arrive d'en bas */
.reveal-down {
    transform: translateY(-40px);
}

/* Quand l’élément devient visible */
.reveal.visible {
    opacity: 1;
    transform: translateX(0) translateY(0);
}

/* Bonus confort : si l’utilisateur a réduit les animations dans son OS */
@media (prefers-reduced-motion: reduce) {
    .reveal,
    .reveal-left,
    .reveal-right {
        opacity: 1;
        transform: none !important;
        transition: none;
    }
}


/* ## CARTES PRESTATIONS ## */
/* Le conteneur de la carte */
.flip-card {
    display: block;
    width: 100%;
    height: 250px; /* ajuste la hauteur */
    perspective: 1000px;
    text-decoration: none;
    color: inherit; /* garde tes couleurs */
    position: relative;
    margin-bottom: 24px;
}

/* L’élément qui tourne */
.flip-inner {
    width: 100%;
    height: 100%;
    transition: transform 0.7s ease;
    transform-style: preserve-3d;
}

/* Faces */
.flip-front,
.flip-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    top: 0;
    left: 0;
    border-radius: 8px; /* custom */
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Recto */
.flip-front {
    background: var(--tds-marron);
    color: white;
}

/* Verso */
.flip-back {
    background: var(--tds-marron);
    color: var(--tds-creme);
    transform: rotateY(180deg);
}

h3.flip {
    text-align: center;
    color: var(--tds-creme);
}

img.flip {
    width: 40%;
    height: auto;
    color: var(--tds-creme);
    margin: 0 auto;
}

p.flip {
    text-align: center;
    color: var(--tds-creme);
}

/* Le flip au hover… mais uniquement en ≥ md */
@media (min-width: 768px) {
    .flip-card:hover .flip-inner {
        transform: rotateY(180deg);
    }
}

/* ## PAVES ARTICLES PAGE ACCUEIL */
 .article-card {
    background-size: cover;
    background-position: center;
    border-radius: 0.5rem;
    overflow: hidden;
    min-height: 220px;
    display: flex;
    align-items: flex-end;
}

.article-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.9),
        rgba(0, 0, 0, 0.5),
        rgba(0, 0, 0, 0.3)
    );
}

.article-card-content {
    padding: 1.25rem;
}

.article-excerpt {
    font-size: 0.9rem;
    color: white;
}

.article-meta .badge {
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ## PAVES CHANTIER PAGE ACCUEIL */
.home-chantiers {
    margin-block: 4rem;
}

.home-chantiers h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.chantiers-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    margin-bottom: 3vh;
}

/* Mobile : 1 colonne */
@media (max-width: 768px) {
    .chantiers-grid {
        grid-template-columns: 1fr;
    }
}

.chantier-card {
    display: block;
    perspective: 1200px;
    text-decoration: none;
    color: inherit;
}

.chantier-card-inner {
    position: relative;
    width: 100%;
    padding-top: 70%; /* ratio */
    transform-style: preserve-3d;
    transition: transform 0.6s ease;
}

/* Flip au hover */
.chantier-card:hover .chantier-card-inner {
    transform: rotateY(180deg);
}

/* Les deux faces */
.chantier-card-face {
    position: absolute;
    inset: 0;
    border-radius: 1rem;
    overflow: hidden;
    backface-visibility: hidden;  /* 👈 clé pour ne pas voir la face arrière */
}

/* RECTO */
.chantier-card-front {
    background: #111;
    color: #fff;
    transform: rotateY(0deg);
}

.chantier-card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.15;                /* 👈 très faded */
    filter: grayscale(30%);
}

.chantier-card-content {
    position: relative;
    z-index: 1;
    height: 100%;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.5rem;
    text-align: center;
}

.badge-chantier {
    font-size : 1rem;
}

/* VERSO */
.chantier-card-back {
    transform: rotateY(180deg);
    background: #000;             /* 👈 fond opaque pour ne rien voir derrière */
}

.chantier-card-back img {
    width: 100%;
    height: 100%;
    object-fit: cover;            /* 👈 photo pleine et opaque */
    display: block;
}

/* Option mobile : désactiver le flip si tu veux */
@media (max-width: 768px) {
    .chantier-card:hover .chantier-card-inner {
        transform: none;
    }
}

.contact-form label {
    color: var(--tds-marron);
}

