An hermetic integrated-circuit casing having a bottom, a peripheral wall rising from the bottom and defining an interior cavity of the casing, an integrated circuit in the cavity, and a closing plate , which is adhesively bonded to the upper portion of the peripheral wall, hermetically closing the cavity, the casing being such that - the upper surface of the peripheral wall has a relief comprising, on the one hand, a first planar zone (z1) that makes direct contact with the closing plate, without interposition of adhesive, over the entire length of the peripheral wall on an interior side of the cavity, except where planarity defects prevent contact, and on the other hand, on the exterior of this first planar zone, a recessed zone (z2) that is not in direct contact with the closing plate, - an closing adhesive bead is present in the recessed zone and joins the closing plate and the upper portion of the peripheral wall over the entire peripheral length of the latter, and - the closing adhesive bead has a surface (Se) in open air between the closing plate and the recessed zone, on the exterior side of the casing, wherein the recessed zone comprises a second planar zone (z2) that is lower than the first planar zone (z1), wherein the relief in the upper surface of the peripheral wall comprises a third planar zone (z3) along the wall on the exterior side of the casing, and the second planar zone is lower than the third planar zone, the casing being characterised in that the flank between the recessed zone, and the first planar zone and/or between the recessed zone and the third planar zone, has a profile such that the width of the peripheral wall increases with distance from the level of upper surface of the highest planar zone to the level of the planar recessed zone (z2). - the upper surface of the peripheral wall has a relief comprising, on the one hand, a first planar zone (z1) that makes direct contact with the closing plate, without interposition of adhesive, over the entire length of the peripheral wall on an interior side of the cavity, except where planarity defects prevent contact, and on the other hand, on the exterior of this first planar zone, a recessed zone (z2) that is not in direct contact with the closing plate, - an closing adhesive bead is present in the recessed zone and joins the closing plate and the upper portion of the peripheral wall over the entire peripheral length of the latter, and - the closing adhesive bead has a surface (Se) in open air between the closing plate and the recessed zone, on the exterior side of the casing, wherein the recessed zone comprises a second planar zone (z2) that is lower than the first planar zone (z1), wherein the relief in the upper surface of the peripheral wall comprises a third planar zone (z3) along the wall on the exterior side of the casing, and the second planar zone is lower than the third planar zone, the casing being characterised in that the flank between the recessed zone, and the first planar zone and/or between the recessed zone and the third planar zone, has a profile such that the width of the peripheral wall increases with distance from the level of upper surface of the highest planar zone to the level of the planar recessed zone (z2). <EOS>