/* Site public du GIL, repris des pages publiques d'Ivociel (Views/Shared/home.cshtml, Views/Accueil/_StylesAccueil.cshtml,
   menu de _EnteteAccueil.cshtml) : mêmes couleurs, en-tête, menu, bandeau défilant, offre et pied de page. */
:root {
    --vert-fonce: #147420;
    --vert-lien: #158128;
    --vert-pastille: #6f9a4b;
    --bleu-titre: #497b80;
    --gris-texte: #8e9098;
    --rouge: #ef5934;
    --pied: #549163;
    --orange: #c25700;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: Helvetica, Arial, sans-serif; background: #fff; color: #333; }
a { color: inherit; }
/* Un seul cadre pour tout le site : en-tête, menu, contenu et pied de page ont les mêmes bords gauche et droit. */
.cadre { width: 94%; max-width: 1240px; margin: 0 auto; }

/* En-tête : logo, drapeaux, slogan */
.entete { background: linear-gradient(to bottom, rgba(78,181,65,0.9) 0%, rgba(82,182,67,0.85) 29%, rgba(111,194,82,0.8) 67%, rgba(119,197,86,0.75) 100%); }
.entete .cadre { display: flex; align-items: center; min-height: 134px; position: relative; }
.entete .logo img { width: 110px; display: block; padding: 8px 0; }
.entete .slogan { flex: 1; text-align: center; margin: 40px 0 0; font-family: 'Trebuchet MS', sans-serif; font-style: italic; font-weight: bold; font-size: 25px; color: #fff; }
.drapeaux { position: absolute; top: 12px; right: 0; display: flex; gap: 20px; margin: 0; padding: 0; list-style: none; }
.drapeaux img { width: 20px; display: block; }
.drapeaux .courant { opacity: 0.55; cursor: default; }
.drapeaux .courant img { border: 1px solid #ffff76; border-radius: 50%; }
.drapeaux .indisponible { opacity: 0.45; cursor: not-allowed; }

/* Menu : consultation (Accueil… Contact) soulignée, action (Revendeur… Connexion) en boutons verts */
.menu { background: #fff; border-bottom: 2px solid #e8f2d3; }
.menu > .cadre { display: flex; align-items: center; min-height: 50px; gap: 8px; }
.menu ul { flex: 1 1 auto; display: flex; flex-wrap: nowrap; justify-content: space-between; gap: 4px; margin: 0 4px 0 0; padding: 0; list-style: none; }
.menu ul li a, .menu .bouton-connexion { display: inline-flex; align-items: center; justify-content: center; height: 32px; min-width: 0; padding: 0 12px;
    font-size: 13px; font-weight: bold; white-space: nowrap; text-decoration: none; }
.menu ul li a { background: none; color: var(--vert-lien); border-bottom: 2px solid transparent; }
/* Le texte du premier lien part du bord du cadre, comme le logo et le contenu. */
.menu ul li:first-child a { padding-left: 0; }
.menu ul li a.actif { color: var(--orange); border-bottom-color: var(--orange); }
.menu ul li a:hover:not(.actif) { border-bottom-color: var(--vert-lien); }
.boutons-action { display: flex; gap: 6px; flex: none; }
.menu .bouton-connexion { flex: none; margin-left: 0; background: var(--vert-fonce); color: #fff; border-radius: 999px; padding: 0 16px; }
.menu .bouton-connexion.actif { background: var(--orange); }
.menu .bouton-connexion:hover { opacity: .9; }
.menu a:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

/* Bandeau défilant */
.bandeau { background: linear-gradient(to bottom, #ffffff 0%, #fefefe 51%, #f0f0f0 65%, #d0d0d0 88%, #c3c3c3 100%); }
.bandeau .cadre { display: flex; align-items: center; }
.fleche { background: none; border: 0; padding: 0; cursor: pointer; flex: 0 0 5%; align-self: flex-start; margin-top: 190px; }
.fleche img { display: block; }
.diapos { flex: 1; position: relative; min-height: 470px; }
.diapo { position: absolute; inset: 0; display: flex; align-items: center; opacity: 0; visibility: hidden; transition: opacity .3s; }
.diapo.visible { opacity: 1; visibility: visible; }
.diapo .visuel { flex: 0 0 45%; }
.diapo .visuel img { width: 100%; display: block; }
.diapo .texte { flex: 0 0 53%; text-align: center; color: var(--vert-fonce); font-weight: bold; }
.diapo .texte p { margin: 16px 0; }
.diapo .pastilles { list-style: none; margin: 24px 0 0; padding: 0; }
.diapo .pastilles li { margin: 0 0 12px; }
/* Pastilles comme sur ivociel.net : majuscules, 12 px, marges 8 / 9 px. */
.diapo .pastilles b { display: inline-block; background: var(--vert-pastille); color: #fff; font-size: 12px; padding: 8px 9px; text-transform: uppercase; }
.diapo .texte .titre { font-size: 21px; text-transform: uppercase; }
.diapo .texte .sous-titre-diapo { font-size: 15px; text-transform: uppercase; }
.points { display: flex; justify-content: center; gap: 8px; padding: 0 0 14px; margin: 0; list-style: none; }
.points button { width: 10px; height: 10px; border-radius: 50%; border: 0; background: #b9c9b0; cursor: pointer; padding: 0; }
.points button.actif { background: var(--vert-fonce); }

/* Tarifs et solutions */
.details { background: #fff; padding: 22px 0 24px; }
.details .cadre { display: flex; align-items: stretch; }
.tarifs { flex: 0 0 45%; text-align: center; color: var(--bleu-titre); font-size: 15px; }
.tarifs .icone { width: 90px; }
.tarifs p { margin: 4px 0; }
.tarifs strong { display: block; font-size: 22px; color: var(--vert-fonce); margin: 6px 0; }
.separation { flex: 0 0 5%; display: flex; justify-content: center; }
.separation span { width: 1px; background: #d8d8d8; }
.bouton-rouge { display: inline-block; margin-top: 14px; background: var(--rouge); color: #fff; text-decoration: none; padding: 6px 12px; font-size: 13px; }
.solutions { flex: 0 0 50%; }
.solution { display: flex; gap: 2%; margin-bottom: 18px; }
.solution img { flex: 0 0 22%; width: 22%; align-self: flex-start; }
.solution h2 { color: var(--bleu-titre); font-size: 15px; margin: 16px 0 8px; }
.gris { color: var(--gris-texte); font-size: 12px; margin: 0; line-height: 1.35; }

/* Offre */
.offre { background: #e6e7ec; padding: 16px 0 40px; }
.offre h1 { color: var(--bleu-titre); font-size: 19px; text-align: center; margin: 0 0 30px; }
.modules { display: flex; flex-wrap: wrap; justify-content: space-between; margin: 0; padding: 0; list-style: none; }
.modules li { width: 23%; background: #fff; border-radius: 6px; padding: 18px 14px 20px; text-align: center; border-top: 4px solid var(--vert-pastille); }
.modules .pictogramme { font-size: 38px; line-height: 1; }
.modules h2 { font-size: 15px; text-align: center; margin: 14px 0 12px; color: var(--vert-fonce); }

/* Pages intérieures (Société, Nos services, Nos produits, Contact…) */
.page { padding: 28px 0 40px; }
.page h1 { color: var(--vert-fonce); font-size: 24px; margin: 0 0 18px; }
.page h2 { color: var(--vert-fonce); font-size: 18px; margin: 26px 0 12px; }
.page h3 { color: var(--vert-lien); font-size: 15px; margin: 0 0 4px; }
.page p { color: #666; font-size: 14px; line-height: 1.55; margin: 0 0 10px; }
.page ul.puces { color: #666; font-size: 14px; line-height: 1.6; }
.sous-titre { color: var(--vert-fonce) !important; font-weight: bold; }
.grille-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 40px; margin: 0; padding: 0; list-style: none; }
.grille-2 li { display: flex; gap: 14px; align-items: flex-start; }
.grille-2 img { width: 50px; flex: none; }
.pictogramme-rond { width: 50px; height: 50px; flex: none; border-radius: 50%; background: #e8f2d3; display: flex; align-items: center; justify-content: center; font-size: 24px; }
.bande-grise { background: #e6e7ec; padding: 26px 0 40px; }
.grille-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin: 0; padding: 0; list-style: none; }
.grille-3 li { background: #fff; border-radius: 6px; padding: 16px; text-align: center; }
.grille-3 .nom { color: var(--vert-fonce); font-weight: bold; text-transform: uppercase; font-size: 14px; margin-bottom: 10px; }
.grille-3 img { height: 70px; max-width: 100%; margin-bottom: 10px; }
.grille-3 p { color: #555; font-size: 13px; margin: 2px 0; }
.produit { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid #e8f2d3; border-radius: 6px; padding: 14px 16px; }
.produit .etiquette { display: inline-block; font-size: 11px; font-weight: bold; padding: 2px 8px; border-radius: 10px; margin-left: 6px; vertical-align: middle; }
.etiquette.dispo { background: #e8f2d3; color: var(--vert-fonce); }
.etiquette.bientot { background: #fff1e0; color: var(--orange); }
.liste-produits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 0 0 10px; padding: 0; list-style: none; }

/* Formulaires (repris de la page Contact d'Ivociel) */
.formulaire { max-width: 620px; background: #f4f6ee; border: 1px solid #e8f2d3; border-radius: 6px; padding: 20px 22px; }
.formulaire label { display: block; font-size: 13px; color: #444; margin: 0 0 12px; }
.formulaire input[type=text], .formulaire input[type=email], .formulaire input[type=tel], .formulaire textarea { display: block; width: 100%; margin-top: 4px; border: 1px solid #c9ccbc; border-radius: 4px; padding: 8px 10px; font: inherit; font-size: 14px; }
.formulaire textarea { height: 120px; resize: vertical; }
.formulaire .deux { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.formulaire button { background: #719a1f; color: #fff; border: 0; border-radius: 4px; padding: 8px 22px; font-size: 14px; cursor: pointer; }
.piege { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.retour { border-radius: 6px; padding: 10px 14px; margin-bottom: 14px; font-size: 14px; max-width: 620px; }
.retour.ok { background: #e8f2d3; color: var(--vert-fonce); }
.retour.erreur { background: #fdecee; color: #b00020; }

/* Pied de page */
.pied { background: var(--pied); color: #fff; font-size: 12px; padding: 16px 0 30px; }
.pied .cadre { display: flex; justify-content: space-between; align-items: flex-start; }
.pied ul { list-style: none; margin: 0; padding: 0; }
.pied a { color: #fff; text-decoration: none; }
.pied a:hover { text-decoration: underline; }
.liens-pied { margin-top: 15px !important; }
.liens-pied li { margin-bottom: 4px; }
.reseaux p { text-align: center; margin: 0 0 15px; }
.reseaux ul { display: flex; gap: 22px; justify-content: center; }
.mentions { text-align: center; opacity: .85; margin-top: 18px; }

/* Petits écrans */
@media (max-width: 900px) {
    .cadre { width: auto; margin: 0 16px; }
    .entete .cadre { flex-direction: column; padding: 40px 0 16px; }
    .entete .slogan { margin-top: 12px; font-size: 18px; }
    .drapeaux { left: 0; right: 0; justify-content: center; }
    .menu > .cadre { flex-direction: column; align-items: stretch; gap: 8px; padding: 8px 0; width: auto; }
    .menu ul { flex-wrap: wrap; justify-content: center; margin-right: 0; }
    .menu ul li:first-child a { padding-left: 12px; }
    .menu .bouton-connexion { align-self: center; margin-left: 0; }
    .boutons-action { flex-wrap: wrap; justify-content: center; }
    .entete .slogan { padding: 0 8px; }
    .diapo .pastilles b { white-space: normal; }
    .diapos { min-height: 640px; }
    .diapo { flex-direction: column; justify-content: center; }
    .diapo .visuel { flex-basis: auto; width: 70%; }
    .diapo .texte { flex-basis: auto; }
    .fleche { flex-basis: 32px; align-self: center; margin-top: 0; }
    .fleche img { width: 24px; }
    .details .cadre { flex-direction: column; gap: 24px; }
    .separation { display: none; }
    .modules li { width: 47%; margin-bottom: 18px; }
    .grille-2, .grille-3, .liste-produits { grid-template-columns: 1fr; }
    .formulaire .deux { grid-template-columns: 1fr; }
    .pied .cadre { flex-direction: column; gap: 24px; }
}
@media (max-width: 520px) {
    .modules li { width: 100%; }
}
