﻿/* Style global modernisé mais proche de ton site d'origine */

.titre {
    font-size:1.2rem;
    font-weight: bold;
}

.sstitre {
    font-size:1.1rem;
}

.titretbl {
    color: #198E21;
    font-size: 1.1rem;
    text-align:center;
    font-weight:bold
}

.contenu {
    color: #1941BC;
    font-size:  1.2rem;
    text-align: left;
}

.contenup {
    color: #1941BC;
    font-size: 1.1rem;
    text-align: left;
}

.contenutbl {
    color: #1941BC;
    font-size: 1.2rem;
    text-align: left;
}

.lientbl {
    color: #B116EA;
    font-size: 1.2rem;
    text-align:center;
    font-weight:bold;
    transition: background-color 0.2s, color 0.2s, text-decoration 0.2s
}

.lientblg {
    color: #B116EA;
    font-size: 1rem;
    text-align:left;
    font-weight:bold;
    transition: background-color 0.2s, color 0.2s, text-decoration 0.2s
}

.lientbly {
    color: #B116EA;
    font-size: 0.8rem;
    text-align:left;
    font-weight:bold;
    transition: background-color 0.2s, color 0.2s, text-decoration 0.2s
}


.lienbastbl {
    color: #198E21;
    font-size: 1rem;
    text-align:left;
    font-weight:bold;
    transition: background-color 0.2s, color 0.2s, text-decoration 0.2s
}

h1 {
    background: #20870F;
    color: white;
    text-align: center;
    font-size: 1.4rem;
    margin: 0
    padding: 5px;
    font-weight: bold;
}

h2 {
    color: #20870F;
    font-size: 1.1rem;
    margin: 0;
    padding: 5px 5px;
    font-weight: bold;
}

h3 {
    color: #20870F;
    font-size: 1rem;
    margin: 0;
    padding: 1px 0px;
}


body {
    font-family: Arial, sans-serif;
    margin: 0;
    background-color: #f4f4f4;
    color: #333;
}

header {
    background: #20870F;
    color: white;
    padding: 20px;
    text-align: center;
}

section.tuto {
	display: flex;
	gap: 20px;
	margin-bottom: 2.5rem;
}

pre {
    margin-left: 3rem;
    background: #f8f9fa;
    padding: 1rem;
    border-left: 4px solid #ccc;
    overflow-x: auto;
}

.indent {
    margin-left: 3rem;
}

.ad-slot {
    width: 100%;
    max-width: 800px;
    min-height: 90px;      /* évite les sauts de page */
    margin: 20px auto;
    text-align: center;
    background-color: #f5f5f5; /* temporaire */
    border: 1px dashed #ccc;   /* temporaire */
}

.ad-slot:empty {
    display: none;
}


/* Quand Adsense sera actif, tu pourras enlever le fond/bordure */

/* Ancien menu (si non utilisé tu peux supprimer) */
nav a {
    
}

nav a:last-child {
    border-right: none;
}

nav a:hover {
    text-decoration: underline;
}

/* Container corrigé */
.container {
    max-width: 1200px;
    margin: auto;
    background: white;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    border-radius: 5px;
}

footer {
    text-align: center;
    padding: 15px;
    margin-top: 20px;
    background: #20870F;
    color: white;
}


.img-page {
    display: block;
    float: none;
    margin: 1rem auto;
    max-width: 100%;
    height: auto;
}

.paypal {
    text-align: center;
    margin-top: 25px;
}

/* ----------- MENU PRINCIPAL ----------- */

.menu-site {
    background-color: #d6e3f3;
    border-bottom: 2px solid #20870F;
    padding: 8px 0;
}

.menu-site ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.menu-site li {
    display: inline-block;
    margin: 0;
}

.menu-site a {
    text-decoration: none;
    font-weight: bold;
    color: #20870F;
    padding: 6px 4px;
    border-radius: 4px;
    transition: background-color 0.2s, color 0.2s, text-decoration 0.2s;
}

.menu-site a:hover {
    background-color: #20870F;
    color: white;
    text-decoration: underline;
}


/* ----------- VERSION MOBILE ----------- */

@media (max-width: 700px) {
    .menu-site li {
        display: block;
        margin: 8px 0;
    }
}

/* Mise en page responsive */
@media (max-width: 600px) {
    nav a {
        display: block;
        margin: 8px 0;
    }

    .container {
        padding: 15px;
    }

    header h1 {
        font-size: 1.6em;
    }
}

/* ---- Table responsive : desktop fixe, mobile empilé ---- */

/* Desktop / tablette large : mise en page fixe (ton rendu actuel) */
@media (min-width: 700px) {
  table {
    border-collapse: collapse;
    width: 100%;
    table-layout: fixed;      /* colonnes régulières */
  }
  table td, table th {
    padding: 6px;
    vertical-align: top;
    word-wrap: break-word;    /* autorise le retour à la ligne dans les mots longs */
    white-space: normal;
  }
  /* première colonne en % (ajuste si besoin) */
  table td:first-child, table th:first-child {
    width: 25%;
  }
  /* assure que les images dans les cellules gardent leur taille */
  table img {
    max-width: 120px;
    height: auto;
    display: block;
  }
}

/* Mobile : empiler chaque ligne (lecture verticale) */
@media (max-width: 699px) {
  table {
    border-collapse: collapse;
    width: 100%;
    table-layout: auto; /* autorise largeur naturelle */
  }

  /* transforme la table en blocs */
  table, thead, tbody, th, td, tr {
    display: block;
  }

  /* espace entre les "blocs-lignes" */
  tr {
    margin-bottom: 1.0rem;
    padding: 0.6rem;
    border-bottom: 1px solid #e6e6e6;
    background: transparent;
  }

  /* 1 cellule par ligne (plein largeur) */
  td {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 6px 0;
  }

  /* rend la 1ère cellule comme un petit titre */
  td:first-child {
    font-weight: 700;
    margin-bottom: 0.35rem;
    color: #198E21; /* ou utilise .titretbl si tu préfères */
  }

  /* réduit la taille des images et les rend responsives */
  td img {
    max-width: 100%;
    height: auto;
    margin-bottom: 0.5rem;
  }

  /* assure retour à la ligne et coupage de mots si nécessaire */
  .contenutbl, .contenup, .contenu {
    white-space: normal;
    word-break: break-word;
  }
}


/* --- Bordures modernes pour tous les tableaux --- */

table {
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 20px;
    border: 1px solid #003366;;     /* bordure externe douce */
    background: white;
}

table th,
table td {
    border: 1px solid #003366;;     /* fine bordure interne */
    padding: 8px 10px;
}

/* En-têtes (si tu en utilises) */
table th {
    background-color: #e8f0fb;
    color: #003366;
    font-weight: bold;
}

/* Version mobile (déjà dans ton CSS, mais adaptée aux bordures) */
@media (max-width: 699px) {

    table, thead, tbody, tr, th, td {
        display: block;
    }

    table {
        border: none; /* pas de grande bordure externe */
    }

    tr {
        border: 1px solid #003366;;
        border-radius: 6px;
        padding: 10px;
        margin-bottom: 15px;
        background: #ffffff;
    }

    td {
        border: none; /* on enlève les bordures internes ici */
        padding: 6px 0;
    }

    td:first-child {
        font-weight: bold;
        margin-bottom: 5px;
        color: #198E21;
    }
}

