:root {
    //--accent-color: #39a0edff; /* Bleu */
    --accent-color: #616163ff; /* Gris foncé */
    --secondary-color: #616163ff; /* Gris foncé */
    --primary-color: #cc9966ff; /* Marron/Orange */
    --dark-bg: #616163ff; /* Gris foncé */
    /* --light-bg: #a9bcd0ff; */ /* Bleu clair */
    --light-bg: #fff; /* Blanc */
    --text-color-dark: #111;
    --text-color-light: #fff;
    --link-color: #996633ff;
}

body {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 0.8rem;
    margin: 0;
    padding: 0;
    line-height: 1.2;
    color: var(--text-color-dark);
    background-color: var(--light-bg); /* Fond général léger */
    z-index: 2;
}

/* Fond adapté comme suggéré dans les maquettes */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('/images/tech-background.jpg') no-repeat center center/cover;
    opacity: 0.9; /* Transparence pour que le contenu reste lisible */
    z-index: -1;
}

p {
    z-index: 2;
}

br {
    z-index: 2;
}

/* ------------ */

/* from https://www.w3schools.com/howto/tryit.asp?filename=tryhow_js_mobile_navbar */

/* Style the navigation menu */
.topnav {
  overflow: hidden;
  background-color: white;
  position: fixed;
  border: 2px solid var(--secondary-color);
  top: 0;
  right: 0;
  z-index: 1000;
}

/* Hide the links inside the navigation menu (except for logo/home) */
.topnav #myLinks {
  display: none;
  text-alignment: right;
}

/* Style navigation menu links */
.topnav a {
  color: black;
  padding: 6px 10px;
  text-decoration: none;
  font-size: 12px;
  display: block;
  right: 0;
}

/* Style the hamburger menu */
.topnav a.icon {
  background: white;
  display: block;
  position: fixed;
  right: 0;
  top: 0;
}

/* Add a grey background color on mouse-over */
.topnav a:hover {
  background-color: #ddd;
  color: black;
}

/* Style the active link (or home/logo) */
.active {
  background-color: transparent;
  color: black;
}


/* ------------ */

.container {
    width: 96%;
    margin: auto;
    overflow: hidden;
    padding: 10px 0;
    z-index: 1;
}

.container h3 {
    font-size: 2.5 em;
    color: black;
    background-color: var(--primary-color);
    padding: 10px 0px 10px 0px;
    width: 100%;
    text-align: center;
    /* text-shadow: 3px 3px 2px black; */
}

.container h4 {
    font-size: 2 em;
    display: inline;
    /*background-color: var(--text-color-light);*/
    padding: 12px 0 12px 0;
}

header {
    position: fixed;
    width: 100%;
    z-index: 2;
    background: var(--light-bg);
    color: var(--text-color-light);
    padding: 0;
    border-bottom: 3px solid var(--secondary-color);
}

header .logo {
    float: left;
    display: flex;
    align-items: center;
}

header .logo img {
    height: 54px; /* Taille du logo */
    margin-right: 8px;
}

header .logo h1 {
    margin: 0;
    color: var(--light-bg); /* Couleur du texte du logo (invisible sur le fond) */
}

header nav {
    float: right;
    margin-top: 10px;
}

header ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

header li {
    display: inline;
    padding: 0 15px;
}

header a {
    color: var(--text-color-dark); /* Couleur des liens de navigation */
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2em;
}

header a:hover {
    color: var(--primary-color); /* Couleur au survol */
}

/* Styles pour les sections, cartes, boutons... */
section {
    padding: 60px 0 20px 0;
    text-align: center;
    color: var(--test-color-dark);
}

#hero {
    background: var(--primary-color); /* Fond de la section héros */
    color: black;
    padding: 50 0 0 0;
    border-bottom: 2px solid var(--secondary-color);
    /* text-shadow: 4px 4px 2px black; */
}

#hero h2 {
    font-size: 1.5em;
    margin-top: 60px;
    margin-bottom: 0px;
}


.btn {
    display: inline-block;
    color: var(--text-color-light);
    background: var(--primary-color);
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 20px;
}

.btn:hover {
    background: var(--accent-color);
}

.service-cards, .course-cards {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-top: 40px;
}

.card {
    width: 46%;
    z-index: 1;
    height=80%;
}

.cardl {
    width: 80%;
    text-align: left;
    text-align-last: left;
    z-index: 1;
}

.card, .cardl {
    background: var(--text-color-light); /* Fond des cartes */
    border: 1px solid var(--secondary-color);
    border-radius: 8px;
    padding: 8px;
    margin: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

a.fill-div {
    display: block;
    position: absolute;
    height: 30%;
    width: 100%;
    text-decoration: none;
    z-index: 1;
}

.card ul, .cardl ul {
    list-style: none;
}

.card p a, .cardl p a {
    text-decoration: none;
    color: var(--link-color);
}

.card a, .cardl a {
    text-decoration: none;
    color: var(--link-color);
}

.card h4 a, .cardl h4 a {
    text-decoration: none;
    color: var(--link-color);
}

.card:hover, .cardl:hover {
    /* transform: translateY(-10px); */
}

.service-icon, .course-icon {
    font-size: 3em;
    color: var(--primary-color); /* Couleur des icônes */
    margin-top: 20px;
    margin-bottom: 12px;
}

footer {
    
    background-color:#616163dd;
    color: var(--text-color-light);
    text-align: center;
    padding: 20px 0;
    margin-top: 20px;
}

footer a {
    color: var(--text-color-light);
    text-decoration: underline;
}

.always-at-bottom a {
    font-size: 2em;
    height: 55px;
    padding: 10px 0 0 0;
    position: fixed;
    right: 0;
    bottom: 0%;
    width: 60;
    text-decoration: none;
    color: var(--secondary-color);
    background: var(--light-bg);
    z-index: 5000;
}

.always-at-top a {
    font-size: 1.5em;
    height: 45px;
    position: fixed;
    right: 0;
    top: 0%;
    width: 60;
    text-decoration: none;
    color: var(--text-color-dark);
    background: var(--light-bg);
}

/* form */
/* inspired by: */
/* https://www.youtube.com/watch?v=W77XNwZKpuE */

.frm {
    width: 80%;
    margin: 0px;
    padding: 0px;
    background: var(--primary-color);
    position: relative;
    top: 50%
    left: 50%
    transform: translate(-50%, -50%);
    z-index: 1000;
}

form {
    background: var(--light-bg);
    padding: 30px;
    z-index: 1000;
}

form .separation {
    width: 100%;
    height: 1px;
    background: var(--secondary-color);
}

form .corps-formulaire {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 30px;
    z-index: 1000;
}

form .corps-formulaire .groupe {
    position: relative;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
}

form .corps-formulaire .gauche .groupe input {
    margin-top: 5px;
    padding: 10px 5px 10px 30px;
    border: 1px solid #000;
    outline-color: #000;
    border-radius: 5px;
    size: 30;
}

form .corps-formulaire .gauche .groupe i {
    position: absolute;
    left: 0;
    top: 20px;
    padding: 9px; 8px;
    color: var(--secondary-color);
}

form .corps-formulaire .droite {
    margin-left: 40px;
    width: 60%;
}

form .corps-formulaire .droite .groupe {
    height: 100%;
    width: 100%;
}

form .corps-formulaire .droite .groupe textarea {
    margin-top: 5px;
    padding: 10px;
    background: #cccccc;
    border: 1px solid #000;
    outline: none;
    border-radius: 5px;
    resize: none;
    height: 83%;
}

form .pied-formulaire button {
  margin-top: 10px;
  background: var(--primary-color);
  color: black;;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  outline: none;
  cursor: pointer;
  transition: transform 0.5s;
}

form .pied-formulaire button:hover {
  transform: scale(1.05);
}

#textBox {
    z-index: 1000;
}

@media screen and (max-width:900px) {
    form .corps-formulaire .droite {
        margin-left: 0px;
        width: 100%;
        font-size: 8;
    }
    nav {
        display: none;
    }
}

/* /form */

/* grid */

.grid-container {
    width: 80%;
    margin: 0px;
    padding: 0px;
    position: fixed;
    top: 50%
    left: 50%
    transform: translate(-50%, -50%);
    display: inline-grid;
    /* display: grid; */
    grid-template-columns: [col1-start] auto [col2-start] auto [col3-start] auto [col3-end] ;
    grid-template-rows: 80px;
    grid-auto-rows: 70px;
        justify-content: space-between;
    align-content: space-evenly;
    place-items: center;
    /* */
    background: var(--light-bg);
    padding: 30px;
    z-index: -1;
}

.grid-column {
    [col1-start / col3-end];
    z-index: -1;
}
.col1-start .col2-start .col3-start .col3-end {
    z-index: -1;
    position: fixed;
}

.grid-container > div h4 {
    font-weight: bold;
    text-decoration: underline;
    z-index: -1;
}
.grid-container img {
    width: 60px;
}

.grid-container > div {
  border: 0px solid black;
  padding: 10px;
  z-index: -1;
}
/* /grid */

/* cookies */
.cookies-container {
    width: 90%;
    height: 55px;
    display: flex;
    flex-wrap: inline;
}

.cookies-container .gauche {
    width: 40%;
}

.cookies-container .droite {
    width: 60%;
}

.cookies-footer {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    background :rgba(0,0,0,0.75);
    color: white;
    padding: 5px;
    font-size: 0.7em;
    z-index: 5000;
}

.cookies-container .btn {
    display: inline-block;
    color: var(--text-color-light);
    background: var(--primary-color);
    padding: 8px;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 0;
}

.cookies-container .btn:hover {
    background: var(--accent-color);
}

.about-table {
    table-layout: fixed;
    width: 100%;
    border-collapse: collapse;
    border: 0px solid lightgray;
}

.about-table th, .about-table td {
    padding: 20px;
    border: 0px solid lightgray;
}

.inner-table {
    border: 1px solid lightgray;
}

.ref-table {
    table-layout: fixed;
    width: 100%;
    border-collapse: collapse;
    border: 0px solid lightgray;
}

.ref-table thead th:nth-child(1) {
    width: 80px;
}

.ref-table thead th:nth-child(3) {
    width: 30%;
}

.ref-table th, td {
    padding: 20px;
    border: 1px solid lightgray;
}

.ref-table td img {
    width: 80px;
}

/* /cookies */
