/* Created by http://freehtml5templates.com */

/* reset */
* {
margin: 0;
padding: 0;
}

/* render html5 elements as block */
header, footer, section, aside, nav, article {
display: block;
}
img{
	max-width:100%;
	height:auto;}
body {
line-height: 1;
background: #ddd url(images/64bg.jpg) repeat;
font-family: Verdana, Arial, Helvetica, sans-serif;
color: #333;
font-size: 14px;
line-height: 18px;
}
	
/* layout */

#wrapper {
max-width: 940px;
margin: 0 auto;
margin-top: 20px;
margin-bottom: 20px;
border: 3px solid #888;
background: #fff;
/* curved border radius */
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
}

nav {
max-width: 100%;
height: 50px;
margin: 0 auto;
background: #570f04;
margin-top: -5px;
}

#main {
max-width: 100%;
margin: 0 auto;
overflow: hidden;
}

#content {
padding-top: 30px;
float: left;
width: 57%;
border-right:3px solid #333;
border-left:3px solid #333;
/*margin-left: 40px;*/
}

#sidebar1 {
padding-top: 30px;
float: left;
width: 21%;
}

#sidebar2 {
padding-top: 30px;
float: right;
width: 21%;
}
#sidebar1 h3, #sidebar2 h3{
	padding-left:5px;
	padding-right:5px;}
footer {
max-width: 100%;
margin: 0 auto;
overflow:hidden;
clear: both;
}

/* basics */

h1,h2,h3,h4,h5,h6 {
font-weight: bold;
clear: both;
color: #333;
}

a:link, a:visited {
color:#861B0B;
}

a:hover, a:active {
color: #333;
}

p {
margin-bottom: 18px;
}

li {
padding-left: 5px;
}

/* nav */

nav .menu {
font-size: 16px;
font-weight: bold;
}

nav .menu ul {
margin: 0;
padding: 17px 0 0 20px;
list-style: none;
line-height: normal;
}

nav .menu li {
display: block;
float: left;
}

nav .menu a {
display: block;
float: left;
margin-right: 5px;
padding: 0px 15px;
text-decoration: none;
color: #F2E0DF;
}

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

/** HEADER */

header {
padding: 20px 0 0 0;
}

header>h1 {
float: left;
margin: 0 0 18px 10px;
width: 59%;
font-size: 40px;
line-height: 36px;
}

header>h1 a {
color: #333;
font-weight: bold;
text-decoration: none;
text-shadow: 0px 2px 3px #555;
}

header>h2 {
color: #777;
clear: right;
width:49%;
float: right;
font-style: italic;
font-size: 14px;
margin: 14px 10px 18px 0;
}

/** ARTICLES **/
article{
	padding:0 15px;}
article img {
border: none;
-webkit-box-shadow: 3px 3px 7px #777;
-moz-box-shadow: 3px 3px 7px #777;
}

#content p, ul, ol, hr {
margin-bottom: 24px;
}

#content ul ul, ol ol, ul ol, ol ul {
margin-bottom: 0;
}

#content h1, h2, h3, h4, h5, h6 {
color: #333;
margin: 0 0 20px 0;
line-height: 1.5em;
}

.alignleft, img.alignleft {
display: inline;
float: left;
margin-right: 10px;
}

.alignright, img.alignright {
display: inline;
float: right;
margin-left: 10px;
}

.aligncenter, img.aligncenter {
clear: both;
display: block;
margin-left: auto;
margin-right: auto;
}

img.alignleft, img.alignright, img.aligncenter {
margin-bottom: 12px;
}

/* sidebar and footer widget blocks */

aside h3 {
font-size: 18px;
text-shadow: 0px 2px 3px #ddd;
}

aside ul {
list-style: square;
color: #bbb;
margin: -15px 0 15px 25px;
}

#footer-area {
background: #570f04;
color: #f2e0df;
font-size: 90%;
padding: 18px 0;
overflow: hidden;
/* curved border radius */
-moz-border-radius-bottomright: 8px;
-moz-border-radius-bottomleft: 8px;
-webkit-border-bottom-left-radius: 8px;
-webkit-border-bottom-right-radius: 8px;
}

.footer-segment {
float: left;
width: 25%;
}
iframe{
	max-width:99% !important;}
.footer-segment h4, 
.footer-segment ul, 
.footer-segment p{
    margin-left: 20px;
    margin-right: 20px;:}
footer aside h4 {
color: #faf0e6;
font-size: 16px;
line-height: 1.5em;
}

footer ul {
list-style: none;
margin: -15px 0;
}

footer a:link, footer a:visited {
color: #ccc;
}

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

footer p {
margin-top: -15px;
color: #faf0e6;
}
@media (max-width: 768px) {
	nav .menu a{
		padding: 0 10px;
		font-size:14px;
		}
	}
@media (max-width: 767px) {
	nav{
		height:auto;
		overflow:hidden;}
	nav .menu li{
		float:none;}
	nav .menu a{
		padding: 5px 5px;
		font-size:12px;
		float:none;
		}
	#sidebar1, #sidebar2, #content{
		width:100%;}
	#content{
		border:none;}
	.footer-segment {
		width: 50%;
		margin-bottom:35px;
	}
	header>h2, header>h1{
		width:96%;}
}
@media (max-width: 320px) {
	.footer-segment {
		width: 100%;
	}
}

/* Correctif responsive propre : image, menu et contrastes conservés */
#wrapper {
  width: calc(100% - 40px);
  max-width: 940px;
  margin: 20px auto;
  border: 3px solid #888;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
}

header {
  padding: 20px 0 0 0;
  background: #fff;
}

header img {
  display: block;
  width: 100%;
  max-width: 940px;
  height: auto;
}

nav {
  width: 100%;
  max-width: 100%;
  height: auto;
  min-height: 50px;
  margin-top: -5px;
  background: #570f04;
}

nav .menu ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 16px 20px;
  margin: 0;
}

nav .menu li {
  float: none;
  display: block;
}

nav .menu a {
  float: none;
  display: block;
  padding: 0 12px;
  margin: 0;
  line-height: 22px;
}

#main {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 32px 32px 32px;
  background: #fff;
  overflow: visible;
}

#sidebar1,
#sidebar2 {
  display: none !important;
}

#content {
  float: none;
  width: 100%;
  max-width: 100%;
  padding-top: 30px;
  border-left: 0;
  border-right: 0;
  margin: 0;
}

article {
  padding: 0 4px;
}

#content img,
#content iframe {
  max-width: 100% !important;
}

#content img {
  height: auto;
}

#content iframe {
  width: 100%;
}

footer {
  clear: both;
  width: 100%;
  max-width: 100%;
}

#footer-area {
  background: #570f04;
  color: #f2e0df;
  font-size: 90%;
  padding: 22px 20px;
  overflow: hidden;
  border-radius: 0 0 8px 8px;
}

.footer-sidebars {
  display: grid;
  gap: 18px;
  width: 100%;
  margin: 0;
}

.footer-cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.footer-sidebar-col {
  min-width: 0;
  padding: 0 14px;
  border-left: 1px solid rgba(255,255,255,0.22);
}

.footer-sidebar-col:first-child {
  border-left: 0;
}

.footer-sidebar-col h3,
.footer-sidebar-col h4 {
  color: #faf0e6;
  font-size: 16px;
  line-height: 1.35;
  margin: 0 0 12px 0;
}

.footer-sidebar-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-sidebar-col li,
.footer-sidebar-col p {
  margin: 0 0 9px 0;
  padding: 0;
  line-height: 1.45;
  color: #faf0e6;
}

.footer-sidebar-col a:link,
.footer-sidebar-col a:visited {
  color: #ddd;
}

.footer-sidebar-col img {
  max-width: 100%;
  height: auto;
  box-shadow: none;
}

@media (max-width: 900px) {
  .footer-cols-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-sidebar-col:nth-child(odd) {
    border-left: 0;
  }
}

@media (max-width: 767px) {
  #wrapper {
    width: 100%;
    margin: 0 auto;
    border-left: 0;
    border-right: 0;
    border-radius: 0;
  }

  #main {
    padding: 0 18px 26px 18px;
  }

  nav {
    margin-top: 0;
  }

  nav .menu ul {
    display: block;
    padding: 10px 16px;
  }

  nav .menu a {
    padding: 7px 0;
    font-size: 15px;
  }

  .footer-cols-4 {
    grid-template-columns: 1fr;
  }

  .footer-sidebar-col {
    border-left: 0;
    border-top: 1px solid rgba(255,255,255,0.22);
    padding: 14px 0 0 0;
  }

  .footer-sidebar-col:first-child {
    border-top: 0;
    padding-top: 0;
  }
}

/* Correction texte coupé à droite */
#wrapper {
  overflow-x: hidden !important;
}

#main {
  width: auto !important;
  max-width: none !important;
  padding-left: 32px !important;
  padding-right: 32px !important;
  overflow-x: hidden !important;
}

#content {
  float: none !important;
  width: auto !important;
  max-width: 100% !important;
  margin: 0 !important;
  overflow-x: hidden !important;
}

article,
article p,
article li,
article h1,
article h2,
article h3,
article h4 {
  max-width: 100% !important;
  overflow-wrap: break-word !important;
  white-space: normal !important;
}

/* ==================================================================
   TAILLE DU TEXTE

   Le corps de texte etait a 14 px : trop petit pour une lecture
   confortable, et en dessous des 16 px attendus sur telephone.
   On le remonte a 16 px. Les elements d'en-tete et de menu,
   dimensionnes en em et souvent places dans des blocs a hauteur
   fixe, sont figes a leur taille actuelle pour ne pas bouger.
   ================================================================== */

body { font-size: 16px; line-height: 1.6; }
body, th, td, input, textarea, select { font-size: 16px; }
p, li, dd, blockquote { font-size: inherit; }
img, iframe, video, table { max-width: 100%; }
img { height: auto; }


/* ==================================================================
   TAILLE DU TEXTE DU PIED DE PAGE, 25/09/2026

   Le pied etait reduit par un pourcentage herite par tout son
   contenu, ce qui le faisait tomber sous le seuil de lisibilite,
   en particulier sur telephone. Il repasse a la taille du corps
   de texte, les liens compris.
   ================================================================== */

#footer {
	font-size: 100%;
}

#footer p,
#footer li,
#footer a,
#footer div,
#footer span,
#footer td,
.footer,
.footer p,
.footer li,
.footer a,
.footer-column,
.footer-column p,
.footer-column li,
.footer-column a,
.pied-3col,
.pied-col,
.pied-ajoute,
.pied-ajoute p,
.pied-ajoute a,
.announce,
.announce p {
	font-size: 16px;
	line-height: 1.55;
}

#footer h2,
#footer h3,
#footer h4,
.footer-column h2,
.footer-column h3,
.footer-column h4 {
	font-size: 18px;
}
