


/* ------------------------------------------------------------
   TAILLE DE TEXTE ADAPTÉE (pour téléphone / laptop)
------------------------------------------------------------- */

/* Base par défaut (laptop, écran normal) */
html {
    font-size: 17px; /* texte lisible mais pas énorme */
}

/* Smartphone : texte plus grand et très lisible */
@media (max-width: 600px) {
    html {
        font-size: 20px; /* ***ICI le texte devient beaucoup plus grand*** */
    }
}

/* Écrans très larges : éviter que tout devienne immense */
@media (min-width: 1400px) {
    html {
        font-size: 16px; /* stabilise la taille sur les grands écrans */
    }
}

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

   STYLE GLOBAL
------------------------------------------------------------- */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(175, 192, 255, 0.33);
    backdrop-filter: blur(0.9px);
    z-index: -1;
}

body {
    background-image: url("./images/tile2.png");
    font-family: "Trebuchet MS", Arial, Verdana, sans-serif;
    color: #3a3a3a;
    font-size: 1.65em; /**** */
    text-align: center;
    line-height: 1.7;
    margin: 0;
    padding: 0;
}

/* ------------------------------------------------------------
   VARIABLES
------------------------------------------------------------- */
:root {
    --radius: 0.6em;
    --shadow: 0 0.3em 0.8em rgba(0,0,0,0.12);
}

/* ------------------------------------------------------------
   BLOCS PRINCIPAUX (header / section)
------------------------------------------------------------- */

header, section {
  background-color: #F7F4E3;
    border: 0.06em solid #d8d0a8;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.67em;
    width: 95%;
    max-width: 60em;
    margin: 1.67em auto;
    /*! text-align: left; */
    box-sizing: border-box;
}

/* ------------------------------------------------------------
   TITRES
------------------------------------------------------------- */

h1 { font-size: 2.7em; color: #6A2626; text-align: center; margin-top: 0; }
h2 { font-size: 2em; color: #6A2626; text-align: center; }
h3 { font-size: 2.6em; color: #6f0000; border-radius: 0.25em; text-align: center; }
h4 { font-size: 1.35em; text-align: center; color: #6f0000; }
h5 { font-size: 1.25em; text-align: center; }
h6 { font-size: 1.1em; }
/* ------------------------------------------------------------
   IMAGES
------------------------------------------------------------- */

figure {
		display: block;
    	text-align: center;
    	margin:auto;
}

img {
    border: 3px solid #bfa8a8;
    border-radius: 6px;
    /*margin:auto;
    display: block;*/
    max-width: 100%;
    height: auto;
    /*text-align: center;*/
    /*display: inline-block;*/
}

/* ------------------------------------------------------------
   TEXTE ET ÉLÉMENTS GÉNÉRAUX
------------------------------------------------------------- */

article {
    font-size: 1.4em;
    display: inline-block;
    vertical-align: middle;
    text-align: justify;
    margin-bottom: 1.11em; /* 20px */
    width: 100%;
}

aside {
    display: inline-block;
    vertical-align: top;
    padding: 0.56em; /* 10px */
    width: 100%;
    max-width: 380px;
    margin: 0.56em auto;
    text-align: center;
    font-size: 1.2em;
}

strong { font-weight: bold; }

a {
    color: #8b2d2d;
    text-decoration: none;
}
a:hover {
    color: #b84242;
    text-decoration: underline;
}

textarea {
    border: 2px solid #bfa8a8;
    background-color: #fafafa;
    height: 13.33em; /* 240px */
    width: 19.44em; /* 350px */
    resize: none;
    padding: 0.56em; /* 10px */
}

/* ------------------------------------------------------------
   ÉLÉMENTS SPÉCIFIQUES
------------------------------------------------------------- */

.element_dossier {
    border: 2px solid #bfa8a8;
    background-color: #f0eeee;
    padding: 0.56em;
    border-radius: 6px;
}

.cadre {
    border: 1px solid #c8c8c8;
    padding: 1.11em;
    border-radius: 10px;
    background-color: #fafafa;
    margin: 1.11em auto;
    box-shadow: 0px 2px 8px rgba(0,0,0,0.08);
    text-align: justify;
    /*! font-size: 1.2em; */
}
.cadre h3 {
    text-align: center;
}

/* ------------------------------------------------------------
   MENU DE NAVEGACIÓN DESTACADO - PALETA B
------------------------------------------------------------- */

nav {
    margin-bottom: 2.22em;
    font-family: "Trebuchet MS", Arial, sans-serif;
    text-align: center;
    background-color: #e5dfc3; 
    padding: 0.8em 0; 
    border-radius: 10px;
    box-shadow: 0px 3px 8px rgba(0,0,0,0.15);
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 1em;
    flex-wrap: nowrap;
}

nav li {
    display: flex;
}

nav a {
    color: #FAFAF6; /* texto claro sobre fondo oscuro */
    font-size: 1.22em;
    padding: 0.3em 0.8em;
    border-radius: 5px;
    transition: all 0.2s;
}

nav a:hover {
    background-color: #7ABDA3; /* acento menta al pasar el mouse */
    color: #8f0000; /* texto oscuro para contraste sobre el hover */
}
/* ------------------------------------------------------------
   BOUTONS MODERNES
------------------------------------------------------------- */

.button_menu {
    /*! box-shadow: 0px 0px 11px 7px #5555551a; */
    background: linear-gradient(to bottom, #fffce5 5%, #ffea5d 100%);
    background-color: #FFF3A3;
    border: 2.5px solid #93775bcf;
    border-radius: 8px;
    padding: 0.1em 0.3em; /* 10px 18px */
    color: #6A2626;
    font-size: 1.3em;
    cursor: pointer;
    transition: background-color 0.2s;
    display: inline-block;
    text-shadow:0px 1px 0px #263666;
    box-shadow: -1px 9px 8px rgb(95 83 60 / 8%);
    margin: 0 0.5em; 	
}
.button_menu:hover {
    background: linear-gradient(to bottom, #ffe38a 5%, #ffd45c 100%);
    background-color: #ffd45c;
}

 


.botones-final {
    display: flex;
    justify-content: center;
    /*flex-wrap: wrap;*/
    gap: 3em; 
    margin-top: 0.9em;
}

.boton {
    background-color: #8b2d2d;
    padding: 0.4em 1.56em;
    border-radius: var(--radius);
    color: white;
    font-size: 1.11em;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 12em;
    min-height: 4em;
    text-align: center;
}
.boton:hover {
    background-color: #860000;
    color: #ffe2bd;
}

/* Bouton bleu demandé CHATGPT */
.button {
    display: inline-block;
    padding: 0.56em 1.11em; /* 10px 20px */
    font-size: 0.89em; /* 16px */
    color: white;
    background-color: #007BFF;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    
}
.button:hover {
    background-color: #0056b3;
}

/* ------------------------------------------------------------
   AUTRES
------------------------------------------------------------- */

.introduction {
    margin-top: 8.33em; /* 150px */
    color: blue;
    text-align: center;
}

.important {
    color: red;
    text-align: center;
    font: bold 1.11em Arial; /* 20px */
}

.comment {
    width: 33.33em; /* 600px */
    text-align: center;
}

.justify_left{
    
    text-align:left;
   display: inline-block }

/* ------------------------------------------------------------
   ACCUEIL : TEXTE + IMAGE
------------------------------------------------------------- */

section:first-of-type {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 1.11em;
}

section:first-of-type article.preambule {
    flex: 1;
    min-width: 300px;
    margin: 0;
}

section:first-of-type aside {
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
    text-align: center;
}

/* Conteneur pour centrer l'image, le titre et les boutons en colonne */
.conteneur-image-texte {
  text-align: center;
  margin: auto;
}

/* Image centrée et taille ajustée */
.conteneur-image-texte .image {
  display: block;
  margin: 0 auto 20px auto;
  max-width: 100%;
  height: auto;
}

/* Titre placé sous l'image */
.conteneur-image-texte h3 {
  margin-top: 0;
}

/* Ajoute de l'espace entre le titre et les boutons */
.conteneur-image-texte .botones-final {
  margin-top: 1.11em; /* 20px */
}

/* -----------------------------------------
   BOTÓN ACTIVO EN EL MENÚ
------------------------------------------ */
nav a.button_active {
    background: linear-gradient(to bottom, #fdf5c7 5%, #ffd146 100%);
    background-color: #ffda78;
    color: #6A2626;
    font-weight: bold;
    border-radius: 6px;
    padding: 0.1em 0.3em;
    text-decoration: none;
    font-family: inherit;
    font-size: 1.3em;
    margin: 0 0.5em; 
    

   border: 1.5px solid #9d7a38;
    /* Relieve coherente con .button_menu */
    box-shadow:
        inset 0px 1px 2px rgba(255,255,255,0.5), /* luz arriba */
        0px 3px 6px rgba(0,0,0,0.15);            /* sombra externa */
}




nav a.button_active:hover {
    background: linear-gradient(to bottom, #ffdb7f 5%, #ffd36b 100%);
    color: #512020;
}
