/* ///////// */
/* Reset CSS */
/* ///////// */

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}

/* ///////// */
/*  Header   */
/* ///////// */

/* Header */ 
header {
    position: fixed;
    top: 0;
    width:100%;
    height: 80px;
    background: rgba(255, 255, 255, 0.85); /* Sleek modern white look */
    color: #141414;
    z-index: 100;
    display: flex;
    align-items: center;
    padding: 0 1em;
    box-sizing: border-box;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    transition: backdrop-filter 0.3s, background-color 0.3s;
}

header:hover {
    backdrop-filter: blur(15px);
    background: rgba(255, 255, 255, 0.95);
}

header #logo-container {
    height: 100%;
}

header #logo-container img {
    height: 100%;
}

header nav {
    position: relative;
    width: 80%;
    margin-left: 20%;
    height: 100%;
}

header nav #header-navigation-links {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    overflow: hidden;
}

header nav #header-navigation-links a {
    font-family: "Luckiest Guy", serif;
    font-weight: 400;
    text-align: center;
    padding: 10px 20px;
    font-size: 24px;
    letter-spacing: 1px;
    color: #141414;
    text-decoration: none;
    text-transform: uppercase;
    border: 2px solid transparent;
    transition: color 0.3s, transform 0.3s;
    border-radius: 5px;
    position: relative;
}

header nav #header-navigation-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #aaa;
    transition: width 0.3s, left 0.3s;
}

header nav #header-navigation-links a:hover::after {
    width: 100%;
    left: 0;
}

header nav #header-navigation-links a.active {
    color: #555;
}

/* ///////// */
/*  Default  */
/* ///////// */

main
{
    font-size: 24px;
    width:1080px;
    padding-top: 100px;
    padding-bottom: 250px;
    margin: 0 auto;
}

body {
    background: #f9f9f9;
    font-family: "Itim", serif;
    background-color: #5fa4ff;
    background-image: linear-gradient(135deg, #5fa4ff, #415dff);
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.1);
    height: 100%;
    min-height: 100vh;
    z-index: -2;
}

.duck {
    position: fixed;
    top: -50px;
    left: 50vw; 
    width: 50px;
    height: 50px;
    background-image: url('https://cdn0.iconfinder.com/data/icons/bathroom-flat/48/Household_Bathroom_Artboard_55-512.png');
    background-size: contain;
    background-repeat: no-repeat;
    pointer-events: none; /* Ducks won't block clicks */
    z-index: -1;
    animation: fall linear infinite, spin linear infinite;
}

@keyframes fall {
    from {
        transform: translateY(-100px) rotate(0deg);
    }
    to {
        transform: translateY(100vh) rotate(360deg);
    }
}

.open-in-new-icon {
    display: inline;
    width: 1rem !important;
    height: auto !important;
}

/* ///////// */
/*   Index   */
/* ///////// */

#welcome-banner {
    margin-bottom: 25px;
    height: 500px;
    display: flex;
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 5px 5px 15px 10px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    position: relative;
    border-radius: 15px;
    transition: all 0.3s;
}

#welcome-banner:hover {
    backdrop-filter: blur(15px);
    background: rgba(255, 255, 255, 0.95);
}

#welcome-banner-left-side {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 2rem;
    z-index: 2;
}

#welcome-banner-right-side {
    width: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

#welcome-banner #welcome-banner-left-side h1 {
    margin: 0;
    color: #141414;
    font-size: 4rem;
    font-family: "Luckiest Guy", serif;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
}

#welcome-banner #welcome-banner-left-side p {
    margin: 1rem 0;
    color: #141414;
    font-size: 1.3rem;
}

#welcome-banner #welcome-banner-left-side button {
    background: #141414;
    color: white;
    border: 2px solid transparent;
    width: 250px;
    margin-top: 50px;
    padding: 10px 20px;
    font-size: 1.2rem;
    border-radius: 10px;
    transition: background-color 0.2s, transform 0.2s;
    font-family: "Itim", serif;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

#welcome-banner #welcome-banner-left-side button:hover {
    background: white;
    color: black;
    transform: translateY(-5px);
}

#information-container-grid {
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.information-container {
    position: relative;
    overflow: hidden; /* No border radius */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: white;
}

.information-container:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.information-container .image-container {
    width: 100%;
    height: auto;
    overflow: hidden;
}

.information-container .image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.information-container:hover .image-container img {
    transform: scale(1.05);
}

.information-container h2,
.information-container p {
    margin: 0;
    padding: 0.5rem 1rem; /* Padding to make the text visually appealing */
    color: #141414;
    text-align: center; /* Centered text below image */
}

.information-container h2 {
    font-size: 1.5rem;
    font-family: "Luckiest Guy", serif;
    color: #141414;
}

.information-container p {
    font-size: 1rem;
    font-family: "Itim", serif;
}

#information-container-grid a {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* ///////// */
/*  Données  */
/* ///////// */

table {
    color: #141414;
}

#duck-table_filter label input {
    background-color: white !important;
    padding: 10px !important;
    border-radius: 15px !important;
    font-family: "Itim", serif !important;
    border: none !important;  
}

.dt-buttons button {
    font-family: "Itim", serif !important;
    padding: 10px !important;
    border-radius: 15px !important;
    border: none !important;  
    cursor: pointer;
}

.paginate_button, .dt-button.buttons-print{
    box-sizing: border-box;
    display: inline-block;
    min-width: 1.5em;
    padding: 0.5em 1em;
    margin-left: 2px;
    text-align: center;
    text-decoration: none !important;
    cursor: pointer;
    border: none !important;
    border-radius: 15px !important;
    color: rgb(63, 63, 63);
    background-color: #d6d6d6 !important; 
}

.paginate_button.current, .dt-button.buttons-print:hover{
    background-color: rgb(255, 255, 255) !important;
}

.dataTables_scroll {
    padding-top: 15px;
}

thead tr {
    background-color: white;
}

#duck-table_wrapper {
    padding-bottom: 100px;
    width: 95%;
    padding-left: 2.5%
}

td {
    background-color: #eee; 
    color: #1f1f1f;
}

tr:nth-child(odd) td {
    background-color: #ddd;
}

tr:hover td {
    color: black;
    background-color: white;
}

/* ///////// */
/*  Contact  */
/* ///////// */

form {
    margin: auto;
    width: 300px;
    background: rgba(255, 255, 255, 0.85);
    padding: 20px;
    border-radius: 15px;
    box-sizing: border-box;
    transition: all 0.3s;
    box-shadow: 5px 5px 15px 10px rgba(0, 0, 0, 0.15);
    margin-bottom: 150px;
}

form:hover {
    backdrop-filter: blur(15px);
    background: rgba(255, 255, 255, 0.95);
}

form #form-header {
    width: 100%;
    display: flex;
    gap: 10px;
    box-sizing: border-box;
}

form #form-header div {
    width: 50%;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

form label {
    font-size: 24px;
    color: black;
}

form input[type="text"],
form input[type="email"],
form input[type="submit"],
form input[type="file"],
form textarea {
    font-family: 'Itim', cursive;
    box-shadow: 5px 5px 15px 5px rgba(0, 0, 0, 0.15);
    width: 100%;
    height: 30px;
    margin-top: 5px;
    margin-bottom: 15px;
    border-radius: 10px;
    border: none;
    padding: 5px;
    box-sizing: border-box;
}

form textarea {
    height: 80px;
    resize: none;
}

.radio-label
{
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px;
}

.radio-label span {
    font-size: 20px;
}


form input[type="submit"] {
    background-color: blue;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

form input[type="submit"]:hover {
    background-color: darkblue;
}

/* ///////// */
/*  Galerie  */
/* ///////// */

#img-form {
    width: 95% !important;
    padding-left: 2.5% !important;
}

#img-container {
    width: 100%;
    height: auto;
    background-color: red;
}

#image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

#image-grid img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 5px;
    transition: filter 0.3s ease-in-out, transform 0.2s ease-in-out;
}

.galery-image {
    filter: grayscale(100%);
}

.galery-image:hover {
    filter: grayscale(0%);
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

form p
{
    font-size: 24px;
}

.success {
    color: green;
    font-weight: bold;
}

.error {
    color: red;
    font-weight: bold;
}

/* ///////// */
/*Partenaires*/
/* ///////// */

.agence-info {
    padding: 20px;
    margin-top: 30px;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 5px 5px 15px 10px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    position: relative;
    text-align: center;
    border-radius: 15px;
    transition: all 0.3s;
}

.agence-info:hover {
    backdrop-filter: blur(15px);
    background: rgba(255, 255, 255, 0.95);
}

.agence-info img {
    width: 150px;
    height: 150px;
    margin: 0 auto;
}

#profile-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    width: 100%;
    margin: auto;
}

.profile {
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 5px 5px 15px 10px rgba(0, 0, 0, 0.15);
    height: 850px;
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    padding: 15px;
    transition: all 0.3s ease-in-out;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.profile:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: scale(1.02);
}

.profile img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.card {
    width: 100%;
    aspect-ratio: 1/1;
    perspective: 1000px;
}

.card-inner {
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.6s;
}

.card:hover .card-inner {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
}

.card-back {
    transform: rotateY(180deg);
}
  

.text-area {
    padding: 10px;
    position: relative;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.text-area h2 {
    font-size: 1.5em;
    color: #333;
    margin: 10px 0;
}

.text-area p {
    font-size: 1em;
    color: #666;
    flex-grow: 1;
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

.text-area a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
    background: #007acc;
    height: 50px;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease-in-out;
    margin-top: auto;
    font-weight: bold;
}

.text-area a:hover {
    background: #0055aa;
    color: white;
    transform: scale(1.05);
}

/* ///////// */
/*  Crédits  */
/* ///////// */

#credit-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    background: #e0f0ff;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    font-family: 'Itim', cursive;
    text-align: center;
}

#credit-container h1, h2, h3 {
    color: #003366;
    text-align: center;
}

#credit-container h1 {
    font-family: "Luckiest Guy", serif;
    font-size: 3rem;
    margin-bottom: 15px;
}

#credit-container h2 {
    font-family: "Luckiest Guy", serif;
    font-size: 1.5rem;
    margin-top: 20px;
    display: inline-block;
    padding-bottom: 5px;
}

#credit-container h3 {
    font-size: 1.2rem;
    margin-top: 15px;
    color: #0055aa;
}

.link-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.link-container a {
    margin-top: 10px;
    background: #007acc;
    color: white;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease-in-out;
    font-weight: bold;
    display: inline-block;
    text-align: center;
}

.link-container a:hover {
    background: #0055aa;
    color: white;
    transform: scale(1.05);
}

/* ///////// */
/*  Footer   */
/* ///////// */

footer {
    position: fixed;
    bottom: 0px;
    width: 100%;
    height: 200px;
    background: rgba(255, 255, 255, 0.85);
    color: #141414;
    z-index: 100;
    padding-top: 1em;
    box-sizing: border-box;
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    transition: backdrop-filter 0.3s, background-color 0.3s;

    display: flex;
    justify-content: space-between; 
    align-items: center;

    transition: transform 0.3s ease-in-out;
    transform: translateY(100%);
}

footer:hover {
    backdrop-filter: blur(15px);
    background: rgba(255, 255, 255, 0.95);
}

footer #copyright,
footer #link-container {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

footer #link-container h3 {
    font-family: "Luckiest Guy", serif;
    font-size: 20px !important;
    margin-bottom: 1rem;
}

footer #link-container a {
    font-family: "Itim", serif;
    font-weight: 400;
    margin-left: 30px;
    text-align: center;
    font-size: 1rem;
    letter-spacing: 1px;
    color: #141414;
    text-decoration: none;
    border: 2px solid transparent;
    transition: color 0.3s, transform 0.3s;
    border-radius: 5px;
    position: relative;
}

footer #copyright p a {
    text-decoration: none;
}

footer #link-container a:hover {
    text-decoration: underline;
}

footer.hidden {
    transform: translateY(100%);
}

footer.shown {
    transform: translateY(0);
}